VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Anonymous847344
    Guest
    This situation is driving me crazy.
    I downloaded a video using DownloaderHelper. My main problem is there is no way after enconding to get the audio and video synchronized. It plays perfectly in MPC and in the preview of VirtualDub2, but after I play the reencoded video it always get desync.
    Here is the original video:

    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom (isom/iso2/avc1/mp41)
    File size : 7.26 GiB
    Duration : 2 h 44 min
    Overall bit rate mode : Variable
    Overall bit rate : 6 307 kb/s

    Video
    ID : 2
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L3.2
    Format settings : CABAC / 1 Ref Frames
    Format settings, CABAC : Yes
    Format settings, Reference : 1 frame
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 2 h 44 min
    Source duration : 2 h 44 min
    Bit rate mode : Variable
    Bit rate : 6 181 kb/s
    Maximum bit rate : 9 000 kb/s
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Variable
    Frame rate : 54.560 FPS
    Minimum frame rate : 0.010 FPS
    Maximum frame rate : 60.000 FPS
    Original frame rate : 60.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.123
    Stream size : 7.12 GiB (98%)
    Source stream size : 7.12 GiB (98%)
    Color range : Limited
    Color primaries : BT.709
    Transfer characteristics : BT.709
    Matrix coefficients : BT.709
    mdhd_Duration : 9888647
    Codec configuration box : avcC

    Audio
    ID : 1
    Format : AAC LC SBR
    Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication
    Commercial name : HE-AAC
    Format settings : Implicit
    Codec ID : mp4a-40-2
    Duration : 2 h 30 min
    Source duration : 2 h 44 min
    Bit rate mode : Variable
    Bit rate : 114 kb/s
    Nominal bit rate : 127 kb/s
    Maximum bit rate : 196 kb/s
    Channel(s) : 2 channels
    Channel layout : L R
    Sampling rate : 48.0 kHz
    Frame rate : 23.438 FPS (2048 SPF)
    Compression mode : Lossy
    Stream size : 122 MiB (2%)
    Source stream size : 136 MiB (2%)
    mdhd_Duration : 9001430

    Text
    ID : 2-CC1
    Format : EIA-608
    Muxing mode : SCTE 128 / DTVCC Transport
    Muxing mode, more info : Muxed in Video #1
    Duration : 2 h 44 min
    Bit rate mode : Constant
    Stream size : 0.00 Byte (0%)
    CaptionServiceName : CC1

    Here the resulted video in MeGui using the following script (auto generated after File Indexer):
    LoadPlugin("C:\Megui\tools\lsmash\LSMASHSource.dll ")
    LWLibavVideoSource("C:\Users\Username\dwhelper\spo rts.mp4")
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom (isom/avc1)
    File size : 3.25 GiB
    Duration : 2 h 44 min
    Overall bit rate mode : Variable
    Overall bit rate : 2 827 kb/s
    Encoded date : UTC 2021-02-22 20:34:49
    Tagged date : UTC 2021-02-22 20:34:49

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4
    Format settings : CABAC / 8 Ref Frames
    Format settings, CABAC : Yes
    Format settings, Reference : 8 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 2 h 44 min
    Bit rate : 2 676 kb/s
    Maximum bit rate : 8 874 kb/s
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 54.560 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.053
    Stream size : 3.08 GiB (95%)
    Writing library : x264 core 157 r2969 d4099dd
    Encoding settings : cabac=1 / ref=8 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=22 / lookahead_threads=1 / 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=546 / keyint_min=54 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=21.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Encoded date : UTC 2021-02-22 20:34:49
    Tagged date : UTC 2021-02-22 20:35:29
    Codec configuration box : avcC

    Audio
    ID : 2
    Format : AAC LC
    Format/Info : Advanced Audio Codec Low Complexity
    Codec ID : mp4a-40-2
    Duration : 2 h 30 min
    Bit rate mode : Variable
    Bit rate : 160 kb/s
    Maximum bit rate : 164 kb/s
    Channel(s) : 2 channels
    Channel layout : L R
    Sampling rate : 48.0 kHz
    Frame rate : 46.875 FPS (1024 SPF)
    Compression mode : Lossy
    Stream size : 172 MiB (5%)
    Language : English
    Encoded date : UTC 2021-02-22 18:31:55
    Tagged date : UTC 2021-02-22 20:35:29

    File generated with Virtualdub2 (drag and drop video):

    Format : AVI
    Format/Info : Audio Video Interleave
    Format profile : OpenDML
    File size : 12.5 GiB
    Duration : 2 h 44 min
    Overall bit rate : 10.8 Mb/s
    Writing library : VirtualDub2 build 44282/release

    Video
    ID : 0
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : Baseline@L3.2
    Format settings : 1 Ref Frames
    Format settings, CABAC : No
    Format settings, Reference : 1 frame
    Codec ID : H264
    Duration : 2 h 44 min
    Bit rate : 7 757 kb/s
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate : 54.560 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.154
    Stream size : 8.93 GiB (72%)
    Writing library : x264 core 152 r2851bm ba24899
    Encoding settings : cabac=0 / ref=1 / deblock=0:0:0 / analyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=22 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=0 / intra_refresh=0 / rc=crf / mbtree=0 / crf=21.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=0

    Audio
    ID : 1
    Format : PCM
    Format profile : Float
    Codec ID : 00000003-0000-0010-8000-00AA00389B71
    Codec ID/Hint : IEEE
    Duration : 2 h 44 min
    Bit rate mode : Constant
    Bit rate : 3 072 kb/s
    Channel(s) : 2 channels
    Channel layout : L R
    Sampling rate : 48.0 kHz
    Bit depth : 32 bits
    Stream size : 3.54 GiB (28%)
    Alignment : Aligned on interleaves
    Interleave, duration : 18 ms (1.00 video frame)
    Interleave, preload duratio : 500 ms

    I also tried LWLibavVideoSource("C:\Users\Jorgito\dwhelper\spor ts.mkv", FPSNum=60000, FPSDen=1001) with same results.

    What I noticed is that the webvideo lenght is 2:30 but downloaded is 2:44. When playing the downloaded video there is no problem. But I saw the commercials were cut and that creates the desync in the resulted video. When playing in that part (there are many commercials) the video freezes and the audio keeps playing but stops after a few seconds, you must to click the timeline to continue playing the video (in this case is automatically synced when you do this). This is all in the downloaded video, not re-encoded.
    Quote Quote  
  2. You need to force constant frame rate in the decoder.
    Quote Quote  
  3. Anonymous847344
    Guest
    Originally Posted by jagabo View Post
    You need to force constant frame rate in the decoder.
    It didn't work for me in MeGui doing LWLibavVideoSource("C:\Users\Jorgito\dwhelper\spor ts.mkv", FPSNum=60000, FPSDen=1001), I will try doing the frame constant in VirtualDub2 and telling the results.

    Edit: Worked forcing to constant framerate at 59.940fps in VirtualDub2. It would be good to know if this can be done in MeGui too, because with the script mentioned above didn't work.
    Last edited by Anonymous847344; 23rd Feb 2021 at 22:31. Reason: Worked
    Quote Quote  



Similar Threads

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