Forum Archive Home -> Video Conversion -> MKV to AVI Audio Sync Problem
| MKV to AVI Audio Sync Problem | ||
| adalect posted 2008 Sep 27 23:06 | ||
| I am trying to get an MKV file I converted in sync with its audio, and so that it is playable on my standalone Divx Player.
What I did was that I used MKVExtract GUI to extract the video and audio from the MKV. I then used mpegmodifier to unpack the bitstream of the video file (MediaInfo says its a packed xvid) and Spesoft Audio Convertor to convert the OGG audio file to MP3. After that, I used VirtualDubMod to combine the audio with the video but the final AVI has the audio out of sync. It is not obvious in the beginning, but seem to progressivly increase until by the seventh minute, you notice it. In the end, I want to be able to get the audio in sync but I don' t know how. Any suggestion would be aprreciated. | ||
| 45tripp posted 2008 Sep 27 23:23 | ||
| that will be vfr.
the easiest way is to install avisynth. open notepad write directshowsource("moviename.mkv", fps=23.976, convertfps=true) set the predominant framerate at fps. probably 23.976 save file as 'movie'avs' under the same directory as the mkv. treat 'movie.avs' as your video now. import into vdub, set encoder to xvid. set audio encoder to lame mp3. encode. tripp | ||
| adalect posted 2008 Sep 28 19:40 | ||
| 45tripp or anybody who knows...
When I am using VirtualDubMod to encode to XVID, does anyone know what settings I should use? I want to keep the same quality of the video but I see that when I press configure, there are a bunch of different options. I want this video to be compatible with my standalone divx player, but I don't know what setting to choose. Should I also disable the packed bitstream option? ...adalect | ||
| 45tripp posted 2008 Sep 28 19:47 | ||
| encode with a targer quantizer,
set it to 2 or 3. defaults should be ok.
only you and your player know... you could always drop b frames. tripp | ||
| adalect posted 2008 Sep 29 23:39 | ||
| Uh... another problem...
I had earlier reencoded the OGG audio in VDM and saved it as a MP3 when I was trying to solve this problem solo and decided just to add that audio instead of reencoding the original in VDM. In another guide for making XVID encodes compatible with standalones, it said to select a bitrate so I did that instead. The end result was that the audio was still out of sync. So does anybody think I should go with the original instructions above this post or there is something else I have to do... Thanks in advance. | ||
| poisondeathray posted 2008 Sep 29 23:49 | ||
| Did you encode the video with the script? You should follow 45tripp's instructions
use mediainfo to determine what the fps should be, use that for the script (e.g. it might have been a PAL source, then it would be 25, not 23.976) | ||
| Midzuki posted 2008 Sep 30 01:20 | ||
| Vorbis audio ??? I'm afraid you'll have to extract it into a standalone OGG file,
open this latter in Winamp, convert it to a stereo WAV with the "Disk Writer Plugin", and finally use LAME for getting a perfectly-synced audio track. I really hope you don't need to go through this whole insane job :| | ||
| adalect posted 2008 Oct 01 21:14 | ||
| I had some free time today so I decided to give the instructions a shot.
So I open up the script but VDM ends up giving me a error saying "No video stream found." I then open the original .mkv and it gives me a warning saying: - MKV: Subtitle stream(4) contains overlapping subtitles. SOme of them may nob e kept when editing. - MKV: The video may have a variable framerate. If so we strongly advise you to use another tool to safely process your file What do I do now? | ||
| adalect posted 2008 Oct 01 22:04 | ||
| PS - I am quite sure that the script was typed properly | ||
| 45tripp posted 2008 Oct 01 22:56 | ||
| you download mkvtoolnix,
import the mkv into mkvmerge, select and tick only video and audio, remux. try process again with the new mkv. if it fails, check codecs | ||
| adalect posted 2008 Oct 01 23:30 | ||
| ...uh...
How do you import the video? And 45tripp, thanks for your generous help so far. | ||
| adalect posted 2008 Oct 01 23:33 | ||
| Never mind. I was using an outdated version. | ||
| adalect posted 2008 Oct 01 23:46 | ||
| An edited post. I had another problem but fixed it. Ignore this post. | ||
| adalect posted 2008 Oct 04 17:17 | ||
| Well... the converted video now works. So I say thanks to everybody who has contributed to this post and those who helped me.
...I now just wonder why the original mkv doesn't work with the script in VDM... I guess that doesn't matter though... |
Login/Register to our forum to be able to post here.
