Could someone help me?
I got a black and green screen like this, for the output of cutting a video
Way 1. BoilsoftVideoSplitter/SMMVSplitter/mkvtoolnix(cut from key frames)
Way 2.re-encode(tried HandBrake and mediecoder, for test so just use deafult setting and set a timeline)
no matter which way
If I do not cut/encode the origian video from the begining(0 second)
the output will be like the image all through the video
Maybe it is the problem of " this video is Hi444p + 10bit" ?
media info for the origian file
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 4:4:4 Predictive@L5
Format settings : CABAC / 5 Ref Frames
Codec ID : V_MPEG4/ISO/AVC
Bit rate : 6 405 kb/s
Width : 1 920
Height : 1 080
Display aspect ratio : 16:9
Color space : YUV
Chroma subsampling : 4:4:4
Bit depth : 10 bit
Bits/(Pixel*Frame) : 0.108
Stream size : 6.70 GiB (97%)
Writing library : x264 core 142 r2431+42 37160de tMod [10-bit@all X86_64]
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / fade_compensate=0.00 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=4 / threads=12 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=20.0000 / qcomp=0.60 / qpmin=0:0:0 / qpmax=81:81:81 / qpstep=4 / ip_ratio=1.40 / aq=1:0.80 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0
Color range : Full
Matrix coefficients : BT.470 System B/G
+ Reply to Thread
Results 1 to 9 of 9
Last edited by wy112233; 16th Oct 2019 at 00:01.
Saying you used "many softwares" but not mentioning anything other about your workflow is not a good report.
As to the problem:
Last edited by sneaker; 14th Oct 2019 at 18:40.
Use x264 switch 'stitchable=1' at first, secondly you can find position for IDR frame and cut at this boundary...
If you are familiar with ffmpeg...
The latest versions of FFMpeg recognize Key frames if you specify their location in -SS input search (they didn't before) and set the PTS/DTS to 0.000000. This allows you to encode only the portion before a key frame and merge it together with a copied segment. In the example form below, the keyframes are at 0,50,100,etc, I wanted to cut at a B frame half way between Key Frames (frame 25).
[Attachment 50539 - Click to enlarge]
To encode that segmnent you would use:
ffmpeg -i "C:\PathToVideo\G50_25_Test_Pattern_w_sound.mp4" -ss 1 -t 1 -c:v libx264 -c:a copy -y "C:\OutputFolderPath\0_0_G50_25_Test_Pattern_w_sound.mp4"
ffmpeg -ss 2.000000 -i "C:\PathToVideo\G50_25_Test_Pattern_w_sound.mp4" -t 2.000000 -c:v copy -c:a copy -y "C:\OutputFolderPath\0_1_G50_25_Test_Pattern_w_sound.mp4"
# This Is a Comment
file 'C:\OutputFolderPath\0_0_G50_25_Test_Pattern_w_sou nd.mp4'
file 'C:\OutputFolderPath\0_1_G50_25_Test_Pattern_w_sou nd.mp4'
ffmpeg -safe 0 -f concat -i "C:\PathToMyList\MyList.txt" -c copy "C:\Users\Bud\Desktop\merged_0_0_G50_25_Test_Pattern_w_sound.mp4"
Last edited by Budman1; 14th Oct 2019 at 12:50.
BoilsoftVideoSplitter/SMMVSplitter/mkvtoolnix(just cut from key frames, nearly nothing to set)
even re-encode partly(not from the start)(tried HandBrake and mediecoder, for test so just use deafult setting and set a timeline)
ALL do not solve it
I have to re-encode from 0 second, otherwise the problem will happen
IS the Black and Green square only at the beginning of the video? Does it play the rest of the video? Are you attempting to cut between Key Frames?
How long is the portion you are cutting? Longer than 8 seconds?
Like I said in the other thread: the problem is a buggy x264 encode. ffmpeg based decoders can read the x264 custom SEI and fall back to a mode that can decode those buggy decodes correctly. But the x264 custom SEI is only at the start of the stream. If you split into multiple parts using e.g. MKVToolNix the custom SEI will only be in the first part. That's why the first part decodes correctly while the other parts do not. When you re-append the files all will work again.
You can "fix" (they still violate the H.264 spec) the parts by adding such a missing SEI again:
ffmpeg -i "INPUT" -map 0 -c copy -bsf:v "h264_metadata=sei_user_data=dc45e9bde6d948b7962cd820d923eeef+x264 - core 142" "OUTPUT"