View Full Version : Calculating delay value
mdoubledragon
13th October 2006, 11:39
I happen to have a MP4 video file and its audio track in .OGG. Now when I play the files with
mplayer c:\vid.mp4 -audiofile c:\aud.ogg,
the file plays fine but mplayer has some builtin synch mechanism afak.
When I mux the streams using mkvtoolnix, and then play the file using Windows Media Player (or any windows player), there is a synch issue.
Now, I know that there is a delay field in mkvtoolnix but I cant seem to figure out how to calculate the exact delay. I dont want to use "observaton" method as it can never be perfect and requires re-muxing many times to achieve result even close to reasonable.
Please guide me if there is a way to calculate automatically the delay. Thanks.
CWR03
13th October 2006, 11:59
Please guide me if there is a way to calculate automatically the delay.
There's not.
I happen to have a MP4 video file and its audio track in .OGG.
You might want to re-read the forum rules (http://forum.doom9.org/forum-rules.htm), particularly #6. If your request does not fall under that rule, you should explain why.
mdoubledragon
13th October 2006, 12:11
Thanks for the reminder of rules but I didnt ask for serials, wares and neither did I say that I have video/audio streams of Ronin that I wish to mux so that I can enjoy the charms of piracy.
So, pls avoid being suspicious for no good reason. I dont think anyone needs to mention with every post that its a home video or a video from africa where no copyrights apply.
mdoubledragon
13th October 2006, 12:41
I used the following process to create the streams. Correct me anywhere I went the wrong way that now causes the sync issue (apart from commenting on my selection on codecs):
1) Used Nero Recode to encode a video only stream in a mp4 file
2) Used mplayer -audiodump option to get the AC3 stream
3) Used BeLite to transcode AC3 to Vorbis
4) Now using MkvToolnix to mux the streams together
The muxed file plays well in mplayer but directshow based players give sync problems. When mplayer can calculate over the span of a second or two what delay to use, there must be a utility or something that can do so and give us a value or atleast mux the files together in accordance with the delay.
CWR03
13th October 2006, 19:46
You might consider streamlining your conversion process - using separate methods of encoding audio and video will strip away whatever was used for audio synch, such as ripping with DVD Decrypter. In that instance, demuxing a ripped file will include a delay value which is used when remuxing, and most all-inclusive programs will use that value when remuxing. Otherwise you're left with manually resynching.
As far as a possible rule 6 violation, nearly all first posters that start with something like "I happen to have a file" are asking about downloaded, pirated material, and my intent was to persuade you to either display something about how you created the file (which you did) or honestly admit that it did not fall under this forum's policy of Fair Use (which a few have done) and not pursue it further. I felt there was good reason to be suspicious and had no intention to be helpful until you clarified.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.