VideoHelp Forum
+ Reply to Thread
Results 1 to 12 of 12
Thread
  1. Since zones don't work with 10-bit in x264, I decided to encode credits at lower bitrate and then join the two up but it's not working. I used the same encoding settings for both except the lower bitrate. Why can't I join them?
    Quote Quote  
  2. Member netmask56's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Search Comp PM
    Post a MediaInfo report of both files ie MediaInfo ->Text View-> Copy and paste into post
    SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851
    Quote Quote  
  3. General
    Unique ID : 187141895354917483386712576831841563745 (0x8CCA37CF975F3F9599D76AA21ABEF461)
    Complete name : M:\sav.mkv
    Format : Matroska
    Format version : Version 4 / Version 2
    File size : 590 KiB
    Duration : 10 s 0 ms
    Overall bit rate : 484 kb/s
    Encoded date : UTC 2017-04-16 00:33:15
    Writing application : mkvmerge v10.0.0 ('To Drown In You') 32bit
    Writing library : libebml v1.3.4 + libmatroska v1.4.5

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High 10@L3.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 8 frames
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 10 s 0 ms
    Bit rate : 477 kb/s
    Nominal bit rate : 1 067 kb/s
    Width : 704 pixels
    Height : 576 pixels
    Display aspect ratio : 1.222
    Frame rate mode : Constant
    Frame rate : 25.000 FPS
    Standard : PAL
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 10 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.047
    Stream size : 583 KiB (99%)
    Writing library : x264 core 148 r2744 b97ae06
    Encoding settings : cabac=1 / ref=8 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=11 / psy=0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=0 / threads=12 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=250 / rc=2pass / mbtree=1 / bitrate=1067 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00
    Language : English
    Default : Yes
    Forced : No

    General
    Complete name : M:\SavCds.mkv
    Format : Matroska
    Format version : Version 2
    File size : 2.75 MiB
    Duration : 3 min 8 s
    Overall bit rate : 122 kb/s
    Writing application : x264 r2744 b97ae06
    Writing library : Haali Matroska Writer b0
    IsTruncated : Yes

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High 10@L3.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 8 frames
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 3 min 8 s
    Bit rate : 120 kb/s
    Width : 704 pixels
    Height : 576 pixels
    Display aspect ratio : 1.222
    Frame rate mode : Constant
    Frame rate : 25.000 FPS
    Standard : PAL
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 10 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.012
    Stream size : 2.69 MiB (98%)
    Writing library : x264 core 148 r2744 b97ae06
    Encoding settings : cabac=1 / ref=8 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=11 / psy=0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=0 / threads=12 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=250 / rc=2pass / mbtree=1 / bitrate=120 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00
    Language : English
    Default : Yes
    Forced : No
    Quote Quote  
  4. Marsia Mariner
    Guest
    Two things:

    -- (not so important) you forgot to define the pixel aspect ratio

    -- (important) you forgot to use the --stitchable switch

    Anyway: I could demux the elementary streams with ffmpeg and then I concatenated them with the olde and goode copy /b.
    Then I remuxed the full-length video with mkvmerge. The new MKV file plays fine in both MPlayer and MPC-HC.
    Quote Quote  
  5. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    Originally Posted by Aludin View Post
    I used the same encoding settings for both except the lower bitrate.
    Quote Quote  
  6. Since zones don't work with 10-bit in x264
    What? Since when?
    Why can't I join them?
    mkvmerge complains with:
    The track number 0 from the file '... sav.mkv' can probably not be appended correctly to the track number 0 from the file ' ... SavCds.mkv': The codec's private data does not match (lengths: 43 and 44). Please make sure that the resulting file plays correctly the whole time. The author of this program will probably not give support for playback issues with the resulting file.
    This happens because you didn't use '--stitchable' when encoding the clips.
    Code:
          --stitchable            Don't optimize headers based on video content
                                  Ensures ability to recombine a segmented encode
    => x264 is optimizing the headers of the video content which makes them incompatible.
    (took to long: Marsia Mariner also posted a workaround.)
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  7. Originally Posted by Selur View Post
    Since zones don't work with 10-bit in x264
    Well, it didn't work for me with megui.

    I've joined MKVs before this way without problems and I don't remember having to use --stichable, this is the first time I hear of such a setting.

    Marsia, what is the exact ffmpeg commandline?
    Quote Quote  
  8. Well, it didn't work for me with megui.
    -> Sounds like a bug in MeGui, would be new to me that this is a general bug in x264.

    I've joined MKVs before this way without problems and I don't remember having to use --stichable, this is the first time I hear of such a setting.
    -> luck is with the ignorant The point is that header optimization might result in different sized headers, but it doesn't have to. So yes, you were simply lucky to haven't run into this problem before.

    what is the exact ffmpeg commandline?
    Code:
    ffmpeg -i "path to input .mkv" -vcodec copy -an -bsf:v h264_mp4toannexb "path to output .264"
    and
    Code:
    copy /b "path to part1.264" + "path to part2.264" + "path to part3.264" "path to output .264"
    should be prototypes of calls Marsia Mariner referred to.

    Cu Selur
    Last edited by Selur; 16th Apr 2017 at 04:12.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  9. Originally Posted by Selur View Post
    Well, it didn't work for me with megui.
    It works with 8-bit x264 but not 10-bit in megui. I'll do some tests later.

    I don't get your ffmpeg script. Are they 2 separate scripts or one? The first one only has one input. I have two, so do I put a +?
    Quote Quote  
  10. No scripts, just two command line calls.
    1st call is the ffmpeg call meant to extract the raw .264 stream from a .mkv file. (see: https://www.ffmpeg.org/ffmpeg-all.html)
    2nd script shows how to concatenate multiple raw streams (in my example case three) into on file raw .264 output file. If you only have two files use:
    Code:
    copy /b "path to part1.264" + "path to part2.264" "path to output .264"
    if you have 4 use:
    Code:
    copy /b "path to part1.264" + "path to part2.264" + "path to part3.264" + "path to part4.264"  "path to output .264"
    see: bottom of https://support.microsoft.com/en-us/help/240268/copy,-xcopy,-and-move-overwrite-functi...ges-in-windows
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  11. Wait a minute, this copy function is without ffmpeg? So it's literally joining the files bit-by-bit? How is that even possible? I never knew H264 streams were that simple.
    Quote Quote  
  12. Wait a minute, this copy function is without ffmpeg?
    Yes.
    So it's literally joining the files bit-by-bit?
    Yes.
    I never knew H264 streams were that simple.
    They are not, but that doesn't mean in some cases one can't create slightly 'broken' streams and rely on other tools to handle the streams as they should.

    -> The proper solution is to use '--stitchable' using those two options is a workaround that should work assuming the streams are compatible and just the headers are 'off'.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  



Similar Threads

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