VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Hi folks,

    I have file $1:

    Container: MP4
    Duration: 00:20:07.40
    $Video:
    Resolution: 640x352
    Codec: MP4
    Framerate: 23,98 fps

    $Audio:
    Samplerate: 44100Hz
    Language: Portuguese
    Codec: AAC

    And file #2:
    Container: MKV
    Duration: 00:19:47.04
    $Video:
    Resolution: 1280x720
    Codec: H264
    Framerate: 23,98 fps

    $Audio:
    Samplerate: 48000Hz
    Language: English
    Codec: AC3

    Also, audio from file #1 has 2236ms of silence at beginning, which means a constant delay.
    Using mkvmerge to mux them all in one MKV, and putting a -2236ms delay on portuguese audio track, this track starts synced but the longer the film runs the more its being out of sync.

    I also tried to extract audio track with MP4Box to AAC and insert to MKV using mkvmerge, and alternatively converting AAC to MP3 or AC3, but in the end is always out of sync.

    The output of ffprobe for file #1 is:
    Code:
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'dub.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 1
        compatible_brands: isommp423gp5
        creation_time   : 2013-01-28 04:43:33
      Duration: 00:20:07.40, start: 0.000000, bitrate: 499 kb/s
        Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x352, 366 kb/s, 23.98 fps, 23.98 tbr, 785647.00 tbn, 47.95 tbc
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
        Metadata:
          creation_time   : 2013-01-28 04:43:33
          handler_name    : GPAC ISO Audio Handler
    and for file #2 is:
    Code:
    Input #0, matroska,webm, from 'en.mkv':
      Metadata:
        creation_time   : 1970-01-01 00:00:00
      Duration: 00:19:47.04, start: 0.000000, bitrate: 4159 kb/s
        Stream #0:0: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
        Stream #0:1(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Can you help me on this? It would be very appreciated!
    Last edited by tribulusterrestris; 14th May 2013 at 15:47. Reason: puts [Help Wanted] in title to easy the purpouse of the thread
    Quote Quote  
  2. a. Assuming both file are synch on their own:
    Have you tried to feed them to mmg (gui for mkvmerge), simply disable the track you don't want and save it as a mkv file?
    (mmg should get the initial delay&timecodes from the input without you having to insert a delay manually)

    b. better analyse your content with
    Code:
    MediaInfo --full "Path to file"
    instead of ffprobe
    Quote Quote  
  3. Originally Posted by Selur View Post
    a. Assuming both file are synch on their own:
    Have you tried to feed them to mmg (gui for mkvmerge), simply disable the track you don't want and save it as a mkv file?
    (mmg should get the initial delay&timecodes from the input without you having to insert a delay manually)

    b. better analyse your content with
    Code:
    MediaInfo --full "Path to file"
    instead of ffprobe
    Sorry for my incorrect expression, i did actually used mmg. And yes, both files are sync on their own.
    Delay field came blank and I had to manually insert and about timecodes I don't know how to determine.

    Analysing with MediaInfo:

    File #1
    Code:
    General
    CompleteName                     : D:\Tools\Adicionar Trilha Dublada\dub.mp4
    Format                           : MPEG-4
    Format_Profile                   : Base Media / Version 2
    CodecID                          : mp42
    FileSize/String                  : 71.8 MiB
    Duration/String                  : 20mn 7s
    OverallBitRate_Mode/String       : Variable
    OverallBitRate/String            : 499 Kbps
    Encoded_Date                     : UTC 2013-01-28 04:43:33
    Tagged_Date                      : UTC 2013-01-28 04:43:33
    
    Video
    ID/String                        : 201
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format_Profile                   : High@L3.0
    Format_Settings_CABAC/String     : Yes
    Format_Settings_RefFrames/String : 4 frames
    CodecID                          : avc1
    CodecID/Info                     : Advanced Video Coding
    Duration/String                  : 20mn 6s
    BitRate_Mode/String              : Variable
    BitRate/String                   : 366 Kbps
    BitRate_Maximum/String           : 4 237 Kbps
    Width/String                     : 640 pixels
    Height/String                    : 352 pixels
    DisplayAspectRatio/String        : 16:9
    FrameRate_Mode/String            : Constant
    FrameRate/String                 : 23.976 fps
    ColorSpace                       : YUV
    ChromaSubsampling                : 4:2:0
    BitDepth/String                  : 8 bits
    ScanType/String                  : Progressive
    Bits-(Pixel*Frame)               : 0.068
    StreamSize/String                : 52.6 MiB (73%)
    Encoded_Library/String           : x264 core 128 r2216 198a7ea
    Encoded_Library_Settings         : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00: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=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Tagged_Date                      : UTC 2013-01-28 04:43:36
    
    Audio
    ID/String                        : 101
    Format                           : AAC
    Format/Info                      : Advanced Audio Codec
    Format_Profile                   : LC
    CodecID                          : 40
    Duration/String                  : 20mn 7s
    BitRate_Mode/String              : Variable
    BitRate/String                   : 128 Kbps
    BitRate_Maximum/String           : 135 Kbps
    Channel(s)/String                : 2 channels
    ChannelPositions                 : Front: L R
    SamplingRate/String              : 44.1 KHz
    Compression_Mode/String          : Lossy
    Video_Delay/String               : 83ms
    StreamSize/String                : 18.4 MiB (26%)
    Encoded_Date                     : UTC 2013-01-28 04:43:33
    Tagged_Date                      : UTC 2013-01-28 04:43:36
    File #2
    Code:
    General
    UniqueID/String                  : 0 (0x0)
    CompleteName                     : D:\Tools\Adicionar Trilha Dublada\en.mkv
    Format                           : Matroska
    Format_Version                   : Version 2
    FileSize/String                  : 589 MiB
    Duration/String                  : 19mn 47s
    OverallBitRate/String            : 4159 Kbps
    Encoded_Date                     : UTC 2010-02-22 21:41:29
    Encoded_Application              : no_variable_data
    Encoded_Library/String           : no_variable_data
    
    Video
    ID/String                        : 2
    Format                           : AVC
    Format/Info                      : Advanced Video Codec
    Format_Profile                   : High@L4.1
    Format_Settings_CABAC/String     : Yes
    Format_Settings_RefFrames/String : 5 frame3
    CodecID                          : V_MPEG4/ISO/AVC
    Duration/String                  : 19mn 47s
    BitRate/String                   : 3693 Kbps
    Width/String                     : 1280 pixel3
    Height/String                    : 720 pixel3
    DisplayAspectRatio/String        : 16:9
    FrameRate_Mode/String            : CFR
    FrameRate/String                 : 23.976 fps2
    ColorSpace                       : YUV
    ChromaSubsampling                : 4:2:0
    BitDepth/String                  : 8 bit3
    ScanType/String                  : Progressive
    Bits-(Pixel*Frame)               : 0.167
    StreamSize/String                : 523 MiB (89%)
    Encoded_Library/String           : x264 core 116 r2074+5M 4c8a10f
    Encoded_Library_Settings         : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00: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=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=19.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Language/String                  : en
    Default/String                   : No
    Forced/String                    : No
    
    Audio
    ID/String                        : 1
    Format                           : AC-3
    Format/Info                      : Audio Coding 3
    Format_Settings_ModeExtension    : CM (complete main)
    Format_Settings_Endianness       : Big
    CodecID                          : A_AC3
    Duration/String                  : 19mn 47s
    BitRate_Mode/String              : CBR
    BitRate/String                   : 384 Kbps
    Channel(s)/String                : 6 channel3
    ChannelPositions                 : Front: L C R, Side: L R, LFE
    SamplingRate/String              : 48.0 KHz
    BitDepth/String                  : 16 bit3
    Compression_Mode/String          : Lossy
    StreamSize/String                : 54.3 MiB (9%)
    Default/String                   : Yes
    Forced/String                    : No
    Quote Quote  
  4. a. output is far to short to be the output of MediaInfo with --full.
    b. how did you come up with '2236ms ' as delay?
    Quote Quote  
  5. Originally Posted by Selur View Post
    a. output is far to short to be the output of MediaInfo with --full.
    b. how did you come up with '2236ms ' as delay?
    So.. my windows version of MediaInfo isn't accepting commandline usage (only GUI). So on GUI I selected View>Text and Debug>Details - 10 and got a really big output. So I'm assuming that is equivalent of MediaInfo --full:

    File #1

    Code:
    General
    Count                                    : 284
    Count of stream of this kind             : 1
    Kind of stream                           : General
    Kind of stream                           : General
    Stream identifier                        : 0
    Count of video streams                   : 1
    Count of audio streams                   : 1
    Video_Format_List                        : AVC
    Video_Format_WithHint_List               : AVC
    Codecs Video                             : AVC
    Audio_Format_List                        : AAC
    Audio_Format_WithHint_List               : AAC
    Audio codecs                             : AAC LC
    Complete name                            : D:\Tools\Adicionar Trilha Dublada\dub.mp4
    Folder name                              : D:\Tools\Adicionar Trilha Dublada
    File name                                : dub
    File extension                           : mp4
    Format                                   : MPEG-4
    Format                                   : MPEG-4
    Format/Extensions usually used           : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
    Commercial name                          : MPEG-4
    Format profile                           : Base Media / Version 2
    Internet media type                      : video/mp4
    Codec ID                                 : mp42
    Codec ID/Url                             : http://www.apple.com/quicktime/download/standalone.html
    Codec                                    : MPEG-4
    Codec                                    : MPEG-4
    Codec/Extensions usually used            : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
    File size                                : 75326332
    File size                                : 71.8 MiB
    File size                                : 72 MiB
    File size                                : 72 MiB
    File size                                : 71.8 MiB
    File size                                : 71.84 MiB
    Duration                                 : 1207402
    Duration                                 : 20mn 7s
    Duration                                 : 20mn 7s 402ms
    Duration                                 : 20mn 7s
    Duration                                 : 00:20:07.402
    Overall bit rate mode                    : VBR
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 499097
    Overall bit rate                         : 499 Kbps
    Stream size                              : 824339
    Stream size                              : 805 KiB (1%)
    Stream size                              : 805 KiB
    Stream size                              : 805 KiB
    Stream size                              : 805 KiB
    Stream size                              : 805.0 KiB
    Stream size                              : 805 KiB (1%)
    Proportion of this stream                : 0.01094
    HeaderSize                               : 824297
    DataSize                                 : 74502035
    FooterSize                               : 0
    IsStreamable                             : Yes
    Encoded date                             : UTC 2013-01-28 04:43:33
    Tagged date                              : UTC 2013-01-28 04:43:33
    File creation date                       : UTC 2013-05-14 18:27:42.144
    File creation date (local)               : 2013-05-14 15:27:42.144
    File last modification date              : UTC 2013-01-28 04:58:51.000
    File last modification date (local)      : 2013-01-28 01:58:51.000
    
    Video
    Count                                    : 263
    Count of stream of this kind             : 1
    Kind of stream                           : Video
    Kind of stream                           : Video
    Stream identifier                        : 0
    StreamOrder                              : 0
    ID                                       : 201
    ID                                       : 201
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format/Url                               : http://developers.videolan.org/x264.html
    Commercial name                          : AVC
    Format profile                           : High@L3.0
    Format settings                          : CABAC / 4 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4
    Format settings, ReFrames                : 4 frames
    Internet media type                      : video/H264
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Codec ID/Url                             : http://www.apple.com/quicktime/download/standalone.html
    Codec                                    : AVC
    Codec                                    : AVC
    Codec/Family                             : AVC
    Codec/Info                               : Advanced Video Codec
    Codec/Url                                : http://developers.videolan.org/x264.html
    Codec/CC                                 : avc1
    Codec profile                            : High@L3.0
    Codec settings                           : CABAC / 4 Ref Frames
    Codec settings, CABAC                    : Yes
    Codec_Settings_RefFrames                 : 4
    Duration                                 : 1206162
    Duration                                 : 20mn 6s
    Duration                                 : 20mn 6s 162ms
    Duration                                 : 20mn 6s
    Duration                                 : 00:20:06.162
    Bit rate mode                            : Variable
    Bit rate                                 : 366006
    Bit rate                                 : 366 Kbps
    Maximum bit rate                         : 4237168
    Maximum bit rate                         : 4 237 Kbps
    Width                                    : 640
    Width                                    : 640 pixels
    Height                                   : 352
    Height                                   : 352 pixels
    Pixel aspect ratio                       : 1.000
    Display aspect ratio                     : 1.818
    Display aspect ratio                     : 16:9
    Rotation                                 : 0.000
    Frame rate mode                          : CFR
    Frame rate mode                          : Constant
    FrameRate_Mode_Original                  : VFR
    Frame rate                               : 23.976
    Frame rate                               : 23.976 fps
    Frame count                              : 28919
    Resolution                               : 8
    Resolution                               : 8 bits
    Colorimetry                              : 4:2:0
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Scan type                                : Progressive
    Interlacement                            : PPF
    Interlacement                            : Progressive
    Bits/(Pixel*Frame)                       : 0.068
    Delay                                    : -83
    Delay                                    : -83ms
    Delay                                    : -83ms
    Delay                                    : -83ms
    Delay                                    : -00:00:00.083
    Delay, origin                            : Container
    Delay, origin                            : Container
    Stream size                              : 55182991
    Stream size                              : 52.6 MiB (73%)
    Stream size                              : 53 MiB
    Stream size                              : 53 MiB
    Stream size                              : 52.6 MiB
    Stream size                              : 52.63 MiB
    Stream size                              : 52.6 MiB (73%)
    Proportion of this stream                : 0.73259
    Writing library                          : x264 - core 128 r2216 198a7ea
    Writing library                          : x264 core 128 r2216 198a7ea
    Writing library/Name                     : x264
    Writing library/Version                  : core 128 r2216 198a7ea
    Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00: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=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Tagged date                              : UTC 2013-01-28 04:43:36
    
    Audio
    Count                                    : 220
    Count of stream of this kind             : 1
    Kind of stream                           : Audio
    Kind of stream                           : Audio
    Stream identifier                        : 0
    StreamOrder                              : 1
    ID                                       : 101
    ID                                       : 101
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Commercial name                          : AAC
    Format profile                           : LC
    Codec ID                                 : 40
    Codec                                    : AAC LC
    Codec                                    : AAC LC
    Codec/Family                             : AAC
    Codec/CC                                 : 40
    Duration                                 : 1207402
    Duration                                 : 20mn 7s
    Duration                                 : 20mn 7s 402ms
    Duration                                 : 20mn 7s
    Duration                                 : 00:20:07.402
    Bit rate mode                            : VBR
    Bit rate mode                            : Variable
    Bit rate                                 : 128000
    Bit rate                                 : 128 Kbps
    Maximum bit rate                         : 135048
    Maximum bit rate                         : 135 Kbps
    Channel(s)                               : 2
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Channel positions                        : 2/0/0
    Sampling rate                            : 44100
    Sampling rate                            : 44.1 KHz
    Samples count                            : 53246428
    Frame count                              : 52000
    Compression mode                         : Lossy
    Compression mode                         : Lossy
    Delay                                    : 0
    Delay                                    : 00:00:00.000
    Delay, origin                            : Container
    Delay, origin                            : Container
    Delay relative to video                  : 83
    Delay relative to video                  : 83ms
    Delay relative to video                  : 83ms
    Delay relative to video                  : 83ms
    Delay relative to video                  : 00:00:00.083
    Video0 delay                             : 83
    Video0 delay                             : 83ms
    Video0 delay                             : 83ms
    Video0 delay                             : 83ms
    Video0 delay                             : 00:00:00.083
    Stream size                              : 19319002
    Stream size                              : 18.4 MiB (26%)
    Stream size                              : 18 MiB
    Stream size                              : 18 MiB
    Stream size                              : 18.4 MiB
    Stream size                              : 18.42 MiB
    Stream size                              : 18.4 MiB (26%)
    Proportion of this stream                : 0.25647
    Encoded date                             : UTC 2013-01-28 04:43:33
    Tagged date                              : UTC 2013-01-28 04:43:36


    File #2

    Code:
    General
    Count                                    : 284
    Count of stream of this kind             : 1
    Kind of stream                           : General
    Kind of stream                           : General
    Stream identifier                        : 0
    Inform                                   : Matroska: 589 MiB, 19mn 47s
    Unique ID                                : 0
    Unique ID                                : 0 (0x0)
    Count of video streams                   : 1
    Count of audio streams                   : 1
    Video_Format_List                        : AVC
    Video_Format_WithHint_List               : AVC
    Codecs Video                             : AVC
    Video_Language_List                      : English
    Audio_Format_List                        : AC-3
    Audio_Format_WithHint_List               : AC-3
    Audio codecs                             : AC3
    Audio_Language_List                      : English
    Complete name                            : D:\Tools\Adicionar Trilha Dublada\en.mkv
    Folder name                              : D:\Tools\Adicionar Trilha Dublada
    File name                                : en
    File extension                           : mkv
    Format                                   : Matroska
    Format                                   : Matroska
    Format/Url                               : http://packs.matroska.org/
    Format/Extensions usually used           : mkv mk3d mka mks
    Commercial name                          : Matroska
    Format version                           : Version 2
    Codec                                    : Matroska
    Codec                                    : Matroska
    Codec/Url                                : http://packs.matroska.org/
    Codec/Extensions usually used            : mkv mk3d mka mks
    File size                                : 617161254
    File size                                : 589 MiB
    File size                                : 589 MiB
    File size                                : 589 MiB
    File size                                : 589 MiB
    File size                                : 588.6 MiB
    Duration                                 : 1187040
    Duration                                 : 19mn 47s
    Duration                                 : 19mn 47s 40ms
    Duration                                 : 19mn 47s
    Duration                                 : 00:19:47.040
    Overall bit rate                         : 4159329
    Overall bit rate                         : 4 159 Kbps
    Stream size                              : 12290594
    Stream size                              : 11.7 MiB (2%)
    Stream size                              : 12 MiB
    Stream size                              : 12 MiB
    Stream size                              : 11.7 MiB
    Stream size                              : 11.72 MiB
    Stream size                              : 11.7 MiB (2%)
    Proportion of this stream                : 0.01991
    Encoded date                             : UTC 2010-02-22 21:41:29
    File creation date                       : UTC 2013-05-14 18:27:54.121
    File creation date (local)               : 2013-05-14 15:27:54.121
    File last modification date              : UTC 2011-10-07 03:00:00.000
    File last modification date (local)      : 2011-10-07 00:00:00.000
    Writing application                      : no_variable_data
    Writing library                          : no_variable_data
    Writing library                          : no_variable_data
    
    Video
    Count                                    : 263
    Count of stream of this kind             : 1
    Kind of stream                           : Video
    Kind of stream                           : Video
    Stream identifier                        : 0
    StreamOrder                              : 1
    Inform                                   : English, 3 693 Kbps, 1280*720 (16:9), at 23.976 fps, AVC (High@L4.1) (CABAC / 5 Ref Frames)
    ID                                       : 2
    ID                                       : 2
    Unique ID                                : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format/Url                               : http://developers.videolan.org/x264.html
    Commercial name                          : AVC
    Format profile                           : High@L4.1
    Format settings                          : CABAC / 5 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 5
    Format settings, ReFrames                : 5 frames
    Internet media type                      : video/H264
    Codec ID                                 : V_MPEG4/ISO/AVC
    Codec ID/Url                             : http://ffdshow-tryout.sourceforge.net/
    Codec                                    : V_MPEG4/ISO/AVC
    Codec                                    : AVC
    Codec/Family                             : AVC
    Codec/Info                               : Advanced Video Codec
    Codec/Url                                : http://ffdshow-tryout.sourceforge.net/
    Codec profile                            : High@L4.1
    Codec settings                           : CABAC / 5 Ref Frames
    Codec settings, CABAC                    : Yes
    Codec_Settings_RefFrames                 : 5
    Duration                                 : 1187020
    Duration                                 : 19mn 47s
    Duration                                 : 19mn 47s 20ms
    Duration                                 : 19mn 47s
    Duration                                 : 00:19:47.020
    Bit rate                                 : 3692558
    Bit rate                                 : 3 693 Kbps
    Width                                    : 1280
    Width                                    : 1 280 pixels
    Height                                   : 720
    Height                                   : 720 pixels
    Pixel aspect ratio                       : 1.000
    Display aspect ratio                     : 1.778
    Display aspect ratio                     : 16:9
    Frame rate mode                          : CFR
    Frame rate mode                          : Constant
    Frame rate                               : 23.976
    Frame rate                               : 23.976 fps
    Frame count                              : 28460
    Resolution                               : 8
    Resolution                               : 8 bits
    Colorimetry                              : 4:2:0
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Scan type                                : Progressive
    Interlacement                            : PPF
    Interlacement                            : Progressive
    Bits/(Pixel*Frame)                       : 0.167
    Delay                                    : 0
    Delay                                    : 00:00:00.000
    Delay, origin                            : Container
    Delay, origin                            : Container
    Stream size                              : 547892740
    Stream size                              : 523 MiB (89%)
    Stream size                              : 523 MiB
    Stream size                              : 523 MiB
    Stream size                              : 523 MiB
    Stream size                              : 522.5 MiB
    Stream size                              : 523 MiB (89%)
    Proportion of this stream                : 0.88776
    Writing library                          : x264 - core 116 r2074+5M 4c8a10f
    Writing library                          : x264 core 116 r2074+5M 4c8a10f
    Writing library/Name                     : x264
    Writing library/Version                  : core 116 r2074+5M 4c8a10f
    Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00: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=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=19.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Language                                 : en
    Language                                 : English
    Language                                 : English
    Language                                 : en
    Language                                 : eng
    Language                                 : en
    Default                                  : No
    Default                                  : No
    Forced                                   : No
    Forced                                   : No
    
    Audio
    Count                                    : 241
    Count of stream of this kind             : 1
    Kind of stream                           : Audio
    Kind of stream                           : Audio
    Stream identifier                        : 0
    StreamOrder                              : 0
    Inform                                   : 384 Kbps, 48.0 KHz, 16 bits, 6 channels, AC-3
    ID                                       : 1
    ID                                       : 1
    Unique ID                                : 2
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : AC-3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Codec ID                                 : A_AC3
    Codec                                    : AC3
    Codec                                    : AC3
    Codec/Family                             : AC3
    Codec/Info                               : Dolby AC3
    Duration                                 : 1187040
    Duration                                 : 19mn 47s
    Duration                                 : 19mn 47s 40ms
    Duration                                 : 19mn 47s
    Duration                                 : 00:19:47.040
    Bit rate mode                            : CBR
    Bit rate mode                            : Constant
    Bit rate                                 : 384000
    Bit rate                                 : 384 Kbps
    Channel(s)                               : 6
    Channel(s)                               : 6 channels
    Channel positions                        : Front: L C R, Side: L R, LFE
    Channel positions                        : 3/2/0.1
    Sampling rate                            : 48000
    Sampling rate                            : 48.0 KHz
    Samples count                            : 56977920
    Resolution                               : 16
    Resolution                               : 16 bits
    Bit depth                                : 16
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Compression mode                         : Lossy
    Delay                                    : 0
    Delay                                    : 00:00:00.000
    Delay, origin                            : Container
    Delay, origin                            : Container
    Delay relative to video                  : 0
    Video0 delay                             : 0
    Stream size                              : 56977920
    Stream size                              : 54.3 MiB (9%)
    Stream size                              : 54 MiB
    Stream size                              : 54 MiB
    Stream size                              : 54.3 MiB
    Stream size                              : 54.34 MiB
    Stream size                              : 54.3 MiB (9%)
    Proportion of this stream                : 0.09232
    Default                                  : Yes
    Default                                  : Yes
    Forced                                   : No
    Forced                                   : No
    dialnorm                                 : -24
    dialnorm/String                          : -24 dB
    compr                                    : 1.49
    compr/String                             : 1.49 dB
    bsid                                     : 6
    acmod                                    : 7
    lfeon                                    : 1
    dialnorm_Average                         : -24
    dialnorm_Average/String                  : -24 dB
    dialnorm_Minimum                         : -24
    dialnorm_Minimum/String                  : -24 dB
    dialnorm_Maximum                         : -24
    dialnorm_Maximum/String                  : -24 dB
    dialnorm_Count                           : 2
    compr_Average                            : 1.49
    compr_Average/String                     : 1.49 dB
    compr_Minimum                            : 1.49
    compr_Minimum/String                     : 1.49 dB
    compr_Maximum                            : 1.49
    compr_Maximum/String                     : 1.49 dB
    compr_Count                              : 2
    B. 2236ms i got on a trial and error basis
    Quote Quote  
  6. Video 1.
    length 20mn 6s 162ms
    + audio delay: 83ms

    Video 2.
    length: 19mn 47s

    -> 19+ seconds difference in length
    I'm unclear how a delay of ' 2236ms ' ~ 2.2 seconds could fix this,...
    Quote Quote  
  7. Originally Posted by Selur View Post
    Video 1.
    length 20mn 6s 162ms
    + audio delay: 83ms

    Video 2.
    length: 19mn 47s

    -> 19+ seconds difference in length
    I'm unclear how a delay of ' 2236ms ' ~ 2.2 seconds could fix this,...
    I stated that dubbed version had aproximately 2.2 seconds of padded silence in the beginning, relative to first audio wave of original version.
    Even so, i extracted this dubbed to ac3 and used ffmpeg to cut padded silence and difference on the end:
    Code:
    ffmpeg -ss 2.236 -t 1187.04 -i dub.ac3 dub-rightduration.ac3
    Tried also convert sampling rate, from 44.1KHz to 48Khz (just to try, no scientific basis)

    Mux'ed both audio options adjusting delay to 0 (since versions had almost the same duration of original, compensated delay) and still got the same result.

    Where could I be wrong?
    Quote Quote  
  8. MediaInfo Debug 10 of dub-rightduration.ac3

    Code:
    General
    Count                                    : 284
    Count of stream of this kind             : 1
    Kind of stream                           : General
    Kind of stream                           : General
    Stream identifier                        : 0
    Count of audio streams                   : 1
    Audio_Format_List                        : AC-3
    Audio_Format_WithHint_List               : AC-3
    Audio codecs                             : AC3
    Complete name                            : D:\Tools\Adicionar Trilha Dublada\dub2-tamanhocerto.ac3
    Folder name                              : D:\Tools\Adicionar Trilha Dublada
    File name                                : dub2-tamanhocerto
    File extension                           : ac3
    Format                                   : AC-3
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Format/Extensions usually used           : ac3
    Commercial name                          : AC-3
    Codec                                    : AC-3
    Codec                                    : AC-3
    Codec/Info                               : Audio Coding 3
    Codec/Extensions usually used            : ac3
    File size                                : 28489728
    File size                                : 27.2 MiB
    File size                                : 27 MiB
    File size                                : 27 MiB
    File size                                : 27.2 MiB
    File size                                : 27.17 MiB
    Duration                                 : 1187072
    Duration                                 : 19mn 47s
    Duration                                 : 19mn 47s 72ms
    Duration                                 : 19mn 47s
    Duration                                 : 00:19:47.072
    Overall bit rate mode                    : CBR
    Overall bit rate mode                    : Constant
    Overall bit rate                         : 192000
    Overall bit rate                         : 192 Kbps
    Stream size                              : 0
    Stream size                              : 0.00 Byte (0%)
    Stream size                              :  Byte0
    Stream size                              : 0.0 Byte
    Stream size                              : 0.00 Byte
    Stream size                              : 0.000 Byte
    Stream size                              : 0.00 Byte (0%)
    Proportion of this stream                : 0.00000
    File creation date                       : UTC 2013-05-14 19:58:32.560
    File creation date (local)               : 2013-05-14 16:58:32.560
    File last modification date              : UTC 2013-05-14 19:58:37.840
    File last modification date (local)      : 2013-05-14 16:58:37.840
    
    Audio
    Count                                    : 234
    Count of stream of this kind             : 1
    Kind of stream                           : Audio
    Kind of stream                           : Audio
    Stream identifier                        : 0
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : AC-3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Codec                                    : AC3
    Codec                                    : AC3
    Duration                                 : 1187072
    Duration                                 : 19mn 47s
    Duration                                 : 19mn 47s 72ms
    Duration                                 : 19mn 47s
    Duration                                 : 00:19:47.072
    Bit rate mode                            : CBR
    Bit rate mode                            : Constant
    Bit rate                                 : 192000
    Bit rate                                 : 192 Kbps
    Channel(s)                               : 2
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Channel positions                        : 2/0/0
    Sampling rate                            : 48000
    Sampling rate                            : 48.0 KHz
    Samples count                            : 56979456
    Frame count                              : 37096
    Resolution                               : 16
    Resolution                               : 16 bits
    Bit depth                                : 16
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Compression mode                         : Lossy
    Stream size                              : 28489728
    Stream size                              : 27.2 MiB (100%)
    Stream size                              : 27 MiB
    Stream size                              : 27 MiB
    Stream size                              : 27.2 MiB
    Stream size                              : 27.17 MiB
    Stream size                              : 27.2 MiB (100%)
    Proportion of this stream                : 1.00000
    dsurmod                                  : 0
    dialnorm                                 : -31
    dialnorm/String                          : -31 dB
    bsid                                     : 8
    acmod                                    : 2
    lfeon                                    : 0
    dialnorm_Average                         : -31
    dialnorm_Average/String                  : -31 dB
    dialnorm_Minimum                         : -31
    dialnorm_Minimum/String                  : -31 dB
    dialnorm_Maximum                         : -31
    dialnorm_Maximum/String                  : -31 dB
    dialnorm_Count                           : 32
    Quote Quote  
  9. no clue where you go wrong, your best choice would probably to look at the whole thing in a NLE
    Quote Quote  
  10. NLE exposed my problem. Files were from different release groups, with different cuts between comercials.
    After every commercial breaks it introduces a new constant delay. Can be fixed, but I want to 5 full seasons, 24 episodes each, so it won't worth the effort.

    Anyway, thank you Selur for your time. I learned a lot during this campaign
    Quote Quote  



Similar Threads

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