VideoHelp Forum
+ Reply to Thread
Results 1 to 9 of 9
Thread
  1. Could someone help me?
    I got a black and green screen like this, for the output of cutting a video
    Click image for larger version

Name:	2019-10-14_132056.png
Views:	90
Size:	7.5 KB
ID:	50525
    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
    Last edited by wy112233; 16th Oct 2019 at 01:01.
    Quote Quote  
  2. Saying you used "many softwares" but not mentioning anything other about your workflow is not a good report.

    As to the problem:
    https://forum.videohelp.com/threads/393667-Decoding-errors-on-my-encode
    Last edited by sneaker; 14th Oct 2019 at 19:40.
    Quote Quote  
  3. Use x264 switch 'stitchable=1' at first, secondly you can find position for IDR frame and cut at this boundary...
    Quote Quote  
  4. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    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).

    Image
    [Attachment 50539 - Click to enlarge]


    To encode that segmnent you would use:

    Code:
    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"
    To COPY the following segment from the Key Frame at Frame 50, you would use:

    Code:
    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"
    Then Create a text file '"C:\PathToMyList\MyList.txt"' containing your outputted files:

    # 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'
    And finally merge with:

    Code:
    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 13:50.
    Quote Quote  
  5. Originally Posted by sneaker View Post
    Saying you used "many softwares" but not mentioning anything other about your workflow is not a good report.

    As to the problem:
    https://forum.videohelp.com/threads/393667-Decoding-errors-on-my-encode
    I have edited for some detail and include some new process

    no matter
    BoilsoftVideoSplitter/SMMVSplitter/mkvtoolnix(just cut from key frames, nearly nothing to set)
    or
    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
    Quote Quote  
  6. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    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?
    Quote Quote  
  7. Originally Posted by Budman1 View Post
    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?
    It is all through the output video when I cut/encode the origian one not from the begining
    Quote Quote  
  8. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    How long is the portion you are cutting? Longer than 8 seconds?
    Quote Quote  
  9. 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:
    Code:
    ffmpeg -i "INPUT" -map 0 -c copy -bsf:v "h264_metadata=sei_user_data=dc45e9bde6d948b7962cd820d923eeef+x264 - core 142" "OUTPUT"
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!