Hello,
Please can you help me?
I'm trying to mux a video with two ac3 audio tracks using mkvtoolnix. One track is from another source. I was able to determine using Adobe's Audition that for the two tracks to be in sync I'll have to apply a 850ms negative delay to one (-850ms). I entered this value into mkvtoolmix's delay box, but the muxed mkv is out-of-sync. Mediainfo reports a positive delay by 14ms (-850÷32ms per frame = 26.5, so 27 frames x 32ms = 854ms-850ms=14ms).
How do I solve my out-of-sync problem? Any help would be greatly appreciated.
V
+ Reply to Thread
Results 1 to 15 of 15
-
-
-
Hi sneaker,
one track is from another source (foreign audio) but I'm positive the waveforms match when I apply a precise -850ms delay. Any clues?
Thanks,
V -
Does MediaInfo show any delay for your original file? Is the original file actually in sync? How do you open your files in Audition? I think MKV is not natively supported by Audition. Are you extracting the AC3 tracks using e.g. mkvextract first?
-
No delay in the original file. I extract the first few minutes with ffmpeg into a container that Audition understands. Then I sync the waveforms and that gives me the delay. When the delay is positive it works very well, but when the delay is negative -as it happens in some cases, the muxed file is out-of-sync. Weird.
-
Is the original file mkv or something else? Mkvtoolnix might work a bit differently depending on whether the input files are mkv, mp4 or ac3. Is the resulting file sync at the exact point where you "matched" the waveforms? As I said sync may get progressively worse over the course of a file. If you only look at the first few minutes you might not see it.
Try just to wav, i.e. like:
Code:ffmpeg -i "original.mkv" -to 300 "original.wav" ffmpeg -i "other_file.mkv" -to 300 "other_file.wav"
-
-
@vangeliis can load the audio into 'UsEac3to' and apply the delay .. and we get the audio ready for remux ..
In Output format->
with ac3: %_.ac3 -864ms
or
with ac3-ffm: stdout.w64 -864ms | ffmpeg -i - -c:a ac3 -b:a 640k -center_mixlev 0.707 %_.ac3
[Attachment 51991 - Click to enlarge]Last edited by sekininsha; 12th Feb 2020 at 19:25.
責任者-MDX -
Thank you all for the very useful tips. I should have said I am on a Mac so most of these tools don't work. However I used IINA player to mux video and audio on the fly and to my surprise I had to apply a positive delay to the foreign track to get it in sync. So I went back in Audition and double checked whether I had mixed the tracks up, but I did not.
How peculiar this is. Any clues as to why this is? -
-
-
Originally Posted by vangeliis
in your case 864ms (27x32) and then apply a positive delay of 14 ms.責任者-MDX -
You can remux the video to mkv with negatice delay with my smart FFmpeg gui
https://forum.videohelp.com/threads/395425-New-small-GUI-for-FFmpegLast edited by ProWo; 29th Feb 2020 at 04:54.
Similar Threads
-
ffmpeg cutting: how to get negative start time?
By Luke M in forum EditingReplies: 1Last Post: 25th Jul 2018, 11:00 -
Transition to negative video
By geertpeeters in forum LinuxReplies: 4Last Post: 7th May 2018, 12:42 -
Film reels looks like negative?
By Sealilly in forum RestorationReplies: 10Last Post: 3rd Feb 2018, 14:42 -
Convert Video from Negative Mode to Full Color?
By JonnieGee in forum Video ConversionReplies: 5Last Post: 12th Feb 2016, 13:03 -
Convert film negative to digital
By pchan in forum ComputerReplies: 9Last Post: 27th May 2015, 23:07