2007-06-25, 00:32 | Link #1 |
Member
Join Date: Nov 2006
|
conversion of mkv h264 aac vfr to xvid avi
i read thru this post
http://forums.animesuki.com/showthread.php?t=34738 but I still can't figure out to encode in xvid avi My story is, Ive a 1280x720 x264 aac mkv video. In the past, I wrote an avs script like the following Code: loadplugin("C:\Program Files\GordianKnot\AviSynthPlugins\VSFilter.dll") ) DirectShowSource("video.mkv",audio=false).lanczosr esize(704,396) return rextsub("subtitle.ass") and passed it to VDM for xvid avi encoding and then mux with audio track. I found that the audio and video is out of sync staring in the middle of the video. I tried encoding on other PC and got the same results. After digging the Internet and found it maybe the problem of mkv vfr. Then I used mkv2fr to get the timecode file. Here it is # timecode format v1 Assume 23.976 0,24063,23.9760 24064,24168,16.1365 24169,35433,23.9764 As you see that it is a mkv vfr. ( 16.xxx fps, what a strange fps rate) This is the first time I come across mkv vfr. How to encode it to xvid avi video ? |
2007-06-25, 00:54 | Link #2 |
In exile
Join Date: May 2006
Location: There! Not there! There!
Age: 36
|
Stop using VirtualDubMod. It's ancient and you should always use VirtualDub instead.
Script to use on the original mkv (not the avi you got from mkv2vfr) Code:
LoadPlugin("C:\Program Files\GordianKnot\AviSynthPlugins\VSFilter.dll") DirectShowSource("C:\video.mkv" audio=false, fps=23.976, convertfps=true) LanczosResize(704,396) # resize to inefficient non-mod16 resolution TextSub("C:\subtitle.ass")
__________________
|
2007-06-25, 01:15 | Link #3 |
Member
Join Date: Nov 2006
|
I used your avs script and virtualdub to encode to xvid avi again.
How about the audio ?? Just extract the aac from mkv and convert to mp3 and the mux with the avi encoded previously ? I'm worried about the mux of video and audio is result out A/V is out of sync. Let's show you something. Under the same scene but the time is different Original mkv file xvid avi file If just simply mux the audio and video (without special handling), I guess the final avi should be A/V out of sync Last edited by adrianmak; 2007-06-25 at 02:20. |
2007-06-25, 05:44 | Link #5 |
Disciple of the Flames
Join Date: Sep 2004
|
To be honest i got frustrated using trying to encode mkv to avi. I'm not a tech wizz so i had difficulty following supposed walk throughs. In the end i bought WinAVI. It converts the mkv to avi and all i have to do is press 2 buttons.
For the few shows i had with external subs, after i converted them i used AVIMux, and all was solved, with no pulling out of the hair |
|
|