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
+ Reply to Thread
Results 1 to 21 of 21
-
-
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.
-
-
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. -
-
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.
-
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! -
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 -
This is a new problem including couple of problems. Can't understand why! Failure in getting video track.
[Attachment 53728 - Click to enlarge] -
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 -
-
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 youLast edited by davexnet; 9th Jun 2020 at 17:15.
-
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?
-
-
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. -
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. -
-
Last edited by jagabo; 10th Jun 2020 at 17:56.
Similar Threads
-
DV File Audio Video Sync Issues - Audio Drift
By Christina in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 13Last Post: 2nd Mar 2020, 06:58 -
Audio sync problem — video goes out of sync after a while
By maxalfreeman in forum AudioReplies: 4Last Post: 12th Sep 2019, 13:07 -
Video and Audio out of sync
By TheOfficialAGP in forum Video ConversionReplies: 1Last Post: 20th Nov 2017, 01:38 -
Random audio/video sync problem with webcam recorded video
By TinoArts in forum Video ConversionReplies: 2Last Post: 3rd Aug 2016, 12:57 -
VirtualDub audio out of sync, other video players all in sync
By a1s2d3f4 in forum Newbie / General discussionsReplies: 7Last Post: 11th Apr 2016, 21:36