VideoHelp Forum




+ Reply to Thread
Results 1 to 21 of 21
  1. I use MeGui to encode my files, this time Video and Audio are out of sync!

    Source is a WEB-DL MKV files with E-AC-3 audio


    This is the source INFO:

    Audio
    ID : 2
    Format : E-AC-3
    Format/Info : Enhanced Audio Coding 3
    Format profile : E-AC-3+Atmos / E-AC-3
    Codec ID : A_EAC3
    Duration : 1 h 4 min
    Bit rate mode : Constant
    Bit rate : 768 kb/s
    Channel(s) : 15 objects / 6 channels
    Channel positions : 15 objects / Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 kHz
    Frame rate : 187.500 FPS (256 SPF)
    Compression mode : Lossy
    Stream size : 352 MiB (14%)
    Language : English
    Service kind : Complete Main
    Default : Yes
    Forced : No

    This encoded INFO:

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : HE-AAC / LC
    Format settings : Explicit
    Codec ID : A_AAC-2
    Duration : 1 h 4 min
    Bit rate : 185 kb/s
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 kHz / 24.0 kHz
    Frame rate : 23.438 FPS (1024 SPF)
    Compression mode : Lossy
    Delay relative to video : 31 ms
    Stream size : 84.6 MiB (12%)
    Language : English
    Default : Yes
    Forced : No
    Quote Quote  
  2. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    Only an analysis of the audio is not sufficient. The relation between video and audio is in the container. If the original clip had a delay between video and audio track, it has to be recreated in the copy or fixed during the conversion.
    Quote Quote  
  3. Originally Posted by LigH.de View Post
    Only an analysis of the audio is not sufficient. The relation between video and audio is in the container. If the original clip had a delay between video and audio track, it has to be recreated in the copy or fixed during the conversion.

    No the original clip had no delay between video and audio track! How do i fix it?
    Quote Quote  
  4. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    I believe you misunderstood.

    Some clips let the audio play earlier or later than the video start to achieve a synchronous experience. This may happen when video and audio were cut independently and later combined, so they start at different times. One of both tracks already plays a little while before the other starts, so that eventually both play in sync later.

    Such a delay should be reported in the container. You may possibly only read such a value in the extended report mode of MediaInfo. Converters which separate video and audio during the conversion will often create the audio track with the delay in milliseconds in its filename so that a multiplexer can recreate it when combining video and audio after the conversion.
    Quote Quote  
  5. Originally Posted by LigH.de View Post
    I believe you misunderstood.

    Some clips let the audio play earlier or later than the video start to achieve a synchronous experience. This may happen when video and audio were cut independently and later combined, so they start at different times. One of both tracks already plays a little while before the other starts, so that eventually both play in sync later.

    Such a delay should be reported in the container. You may possibly only read such a value in the extended report mode of MediaInfo. Converters which separate video and audio during the conversion will often create the audio track with the delay in milliseconds in its filename so that a multiplexer can recreate it when combining video and audio after the conversion.

    I already shared the MediaInfo the two scripts above! Need to know how do i solve that problem of delay?
    Quote Quote  
  6. Since you won't give the information that was asked for the only possible reply is: Adjust the audio so it matches the video. Or adjust the video to suit the audio.
    Last edited by jagabo; 8th Jun 2020 at 15:18.
    Quote Quote  
  7. Originally Posted by jagabo View Post
    Since you won't give the information that was asked for the only possible reply is: Adjust the audio so it matches the video. Or adjust the video to suit the audio.

    This was the whole MediaInfo for the original file:

    General
    Unique ID : 72538742570978935719633853379457445316 (0x369274220CD8BDDB7356C674B079EDC4)
    Complete name : D:\American Series\When They See Us\When They See Us - EP01.mkv
    Format : Matroska
    Format version : Version 4 / Version 2
    File size : 2.37 GiB
    Duration : 1 h 4 min
    Overall bit rate mode : Variable
    Overall bit rate : 5 302 kb/s
    Writing application : mkvmerge v30.1.0 ('Forever And More') 64-bit
    Writing library : libebml v1.3.6 + libmatroska v1.4.9

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4
    Format settings : CABAC / 4 Ref Frames
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 1 h 4 min
    Bit rate mode : Variable
    Bit rate : 4 429 kb/s
    Maximum bit rate : 20.0 Mb/s
    Width : 1 920 pixels
    Height : 960 pixels
    Original height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 23.976 (24000/1001) FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.100
    Stream size : 1.98 GiB (84%)
    Writing library : x264 core 148 r2715 7e75228
    Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x111 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=120 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=8 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=121 / scenecut=0 / intra_refresh=0 / rc_lookahead=240 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.50 / qpmin=6 / qpmax=51 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:0.80
    Language : English
    Default : Yes
    Forced : No

    Audio
    ID : 2
    Format : E-AC-3
    Format/Info : Enhanced Audio Coding 3
    Format profile : E-AC-3+Atmos / E-AC-3
    Codec ID : A_EAC3
    Duration : 1 h 4 min
    Bit rate mode : Constant
    Bit rate : 768 kb/s
    Channel(s) : 15 objects / 6 channels
    Channel positions : 15 objects / Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 kHz
    Frame rate : 187.500 FPS (256 SPF)
    Compression mode : Lossy
    Stream size : 352 MiB (14%)
    Language : English
    Service kind : Complete Main
    Default : Yes
    Forced : No

    This is after the encode

    General
    Unique ID : 63944250457762789836848463794113781113 (0x301B36F4CBF071DE6BBEA776F49E9D79)
    Complete name : D:\American Series\When They See Us\When.mkv
    Format : Matroska
    Format version : Version 2
    File size : 686 MiB
    Duration : 1 h 4 min
    Overall bit rate mode : Variable
    Overall bit rate : 1 498 kb/s
    Encoded date : UTC 2020-06-07 06:03:00
    Writing application : mkvmerge v42.0.0 ('Overtime') 64-bit
    Writing library : libebml v1.3.10 + libmatroska v1.5.2

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings : CABAC / 5 Ref Frames
    Format settings, CABAC : Yes
    Format settings, ReFrames : 5 frames
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 1 h 4 min
    Bit rate mode : Variable
    Bit rate : 1 314 kb/s
    Maximum bit rate : 62.5 Mb/s
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 23.976 (24000/1001) FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.059
    Stream size : 601 MiB (88%)
    Writing library : x264 core 157 r2969 d4099dd
    Encoding settings : cabac=1 / ref=5 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=11 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=16 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=13 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=80 / rc=2pass / mbtree=1 / bitrate=1314 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=62500 / vbv_bufsize=78125 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=2:0.65
    Default : Yes
    Forced : No
    Color range : Limited
    Color primaries : BT.709
    Transfer characteristics : BT.709
    Matrix coefficients : BT.709

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : HE-AAC / LC
    Format settings : Explicit
    Codec ID : A_AAC-2
    Duration : 1 h 4 min
    Bit rate : 185 kb/s
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 kHz / 24.0 kHz
    Frame rate : 23.438 FPS (1024 SPF)
    Compression mode : Lossy
    Delay relative to video : 31 ms
    Stream size : 84.6 MiB (12%)
    Language : English
    Default : Yes
    Forced : No

    The problem is i don't know how to ajust and sync them!
    Quote Quote  
  8. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    In mpc-hc you can use the number pad - and + to alter the audio delay while the file is playing.
    Take a note of the amount when you find out where it should be.
    Then,
    In MKVtoolnix-GUI you can introduce an audio delay, either positive or negative, using the value y9u found,
    then save as a new file
    Image Attached Thumbnails Click image for larger version

Name:	tn.jpg
Views:	189
Size:	135.1 KB
ID:	53719  

    Quote Quote  
  9. This is a new problem including couple of problems. Can't understand why! Failure in getting video track.


    Image
    [Attachment 53728 - Click to enlarge]
    Quote Quote  
  10. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Post the mediainfo (text view) of the source file
    Quote Quote  
  11. Originally Posted by davexnet View Post
    Post the mediainfo (text view) of the source file

    This is it.


    General
    Unique ID : 164196308315128979521959790351122049758 (0x7B870F06952E2E45A007550E39DE2ADE)
    Complete name : D:\American Series\When They See Us\When They See Us - EP04.mkv
    Format : Matroska
    Format version : Version 4 / Version 2
    File size : 3.80 GiB
    Duration : 1 h 28 min
    Overall bit rate mode : Variable
    Overall bit rate : 6 174 kb/s
    Writing application : mkvmerge v30.1.0 ('Forever And More') 64-bit
    Writing library : libebml v1.3.6 + libmatroska v1.4.9

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4
    Format settings : CABAC / 4 Ref Frames
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 1 h 28 min
    Bit rate mode : Variable
    Bit rate : 5 283 kb/s
    Maximum bit rate : 20.0 Mb/s
    Width : 1 920 pixels
    Height : 960 pixels
    Original height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Constant
    Frame rate : 23.976 (24000/1001) FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.120
    Stream size : 3.25 GiB (86%)
    Writing library : x264 core 148 r2715 7e75228
    Encoding settings : cabac=1 / ref=4 / deblock=1:0:0 / analyse=0x3:0x111 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=120 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=8 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=121 / scenecut=0 / intra_refresh=0 / rc_lookahead=240 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.50 / qpmin=6 / qpmax=51 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:0.80
    Language : English
    Default : Yes
    Forced : No

    Audio
    ID : 2
    Format : E-AC-3
    Format/Info : Enhanced Audio Coding 3
    Format profile : E-AC-3+Atmos / E-AC-3
    Codec ID : A_EAC3
    Duration : 1 h 28 min
    Bit rate mode : Constant
    Bit rate : 768 kb/s
    Channel(s) : 15 objects / 6 channels
    Channel positions : 15 objects / Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 kHz
    Frame rate : 187.500 FPS (256 SPF)
    Compression mode : Lossy
    Stream size : 484 MiB (12%)
    Language : English
    Service kind : Complete Main
    Default : Yes
    Forced : No
    Quote Quote  
  12. Originally Posted by davexnet View Post
    In mpc-hc you can use the number pad - and + to alter the audio delay while the file is playing.
    Take a note of the amount when you find out where it should be.
    Then,
    In MKVtoolnix-GUI you can introduce an audio delay, either positive or negative, using the value y9u found,
    then save as a new file
    Nothing happened by the way :'(

    The audio delay is "31 ms"
    Quote Quote  
  13. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    I don't see anything obviously wring with your video file mediainfo details.
    Try to update MEgUI and it's add-ons, use another source filter, or try a different encoder.

    Regarding the sync,
    "Nothing happened by the way " << what does this mean ?
    If you're unable to describe in any detail what you see about the sync behavior and attempts to alter it, I can no longer help you
    Last edited by davexnet; 9th Jun 2020 at 17:15.
    Quote Quote  
  14. Originally Posted by yaston View Post
    Originally Posted by davexnet View Post
    In mpc-hc you can use the number pad - and + to alter the audio delay while the file is playing.
    Take a note of the amount when you find out where it should be.
    Then,
    In MKVtoolnix-GUI you can introduce an audio delay, either positive or negative, using the value y9u found,
    then save as a new file
    Nothing happened by the way :'(
    Why do you have to make this so hard? Nothing happened WHEN? When you used MPCHC to determine how much delay you need? Or when you used MKVToolNix to set a new delay?
    Quote Quote  
  15. Originally Posted by jagabo View Post
    Originally Posted by yaston View Post
    Originally Posted by davexnet View Post
    In mpc-hc you can use the number pad - and + to alter the audio delay while the file is playing.
    Take a note of the amount when you find out where it should be.
    Then,
    In MKVtoolnix-GUI you can introduce an audio delay, either positive or negative, using the value y9u found,
    then save as a new file
    Nothing happened by the way :'(
    Why do you have to make this so hard? Nothing happened WHEN? When you used MPCHC to determine how much delay you need? Or when you used MKVToolNix to set a new delay?

    Sorry if i'm not being clear pr i'm not explaining properly!

    I imported the video file to MKVtoolnix-GUI i set the delayed time as described in the screenshot! The new created file was the same! the video and audio still not sync!
    Quote Quote  
  16. Originally Posted by yaston View Post
    I imported the video file to MKVtoolnix-GUI i set the delayed time as described in the screenshot! The new created file was the same! the video and audio still not sync!
    What value did you specify? What does MediaInfo say about the new file? Does it show the audio delay you entered? What player did you use to view the new file? Some may not pay attention to the delay flag.
    Quote Quote  
  17. Originally Posted by yaston View Post
    i set the delayed time as described in the screenshot!
    31ms is so small you most likely wouldn't be able to tell even if the audio was delayed by that amount. If you have an obvious delay, then do as davexnet suggested earlier. Play it in a player and adjust the delay until it sounds okay. Then check at other places to make sure it's correct throughout the video. Then use that delay when remuxing.

    And I agree with the others; getting information out of you is like pulling teeth.
    Quote Quote  
  18. Originally Posted by manono View Post
    Originally Posted by yaston View Post
    i set the delayed time as described in the screenshot!
    31ms is so small you most likely wouldn't be able to tell even if the audio was delayed by that amount. If you have an obvious delay, then do as davexnet suggested earlier. Play it in a player and adjust the delay until it sounds okay. Then check at other places to make sure it's correct throughout the video. Then use that delay when remuxing.

    And I agree with the others; getting information out of you is like pulling teeth.

    Sorry, my knowledge to MeGUI and and its settings and functions is very limited! That's why im making hard to explain! Can i illustrate it using a video? In order to make more clear!
    Quote Quote  
  19. As manono said, a 31ms delay is all but undetectable. If somebody is standing 30 feet away from you do you notice the sound of their voice is delay compared to the motion of their lips? That's about a 30 ms delay.

    What's so hard about following the instructions you were given in post #8? Use MPCHC to detect how much delay/advance you need (most other players have a similar feature), then MKVToolnixGUI to set that delay. It will only take a minute.
    Quote Quote  
  20. Originally Posted by jagabo View Post
    As manono said, a 31ms delay is all but undetectable. If somebody is standing 30 feet away from you do you notice the sound of their voice is delay compared to the motion of their lips? That's about a 30 ms delay.

    What's so hard about following the instructions you were given in post #8? Use MPCHC to detect how much delay/advance you need (most other players have a similar feature), then MKVToolnixGUI to set that delay. It will only take a minute.

    How do i determine the delay using MPCHC ?! Which button i should click?
    Quote Quote  
  21. Originally Posted by yaston View Post
    How do i determine the delay using MPCHC ?! Which button i should click?
    You were already told that in post #8. Pay attention!
    Last edited by jagabo; 10th Jun 2020 at 17:56.
    Quote Quote  



Similar Threads

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