PDA

View Full Version : how to encode mkv vfr to xvid avi ?


adrianmak
25th June 2007, 05:03
I'm not sure this is the forum for my post because my problem is related to several problems.

My story is, Ive a 1280x720 x264 aac mkv video. In the past, I
wrote an avs script like the following

loadplugin("C:\Program Files\GordianKnot\AviSynthPlugins\VSFilter.dll")
)
DirectShowSource("video.mkv",audio=false).lanczosresize(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 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 ?

MetalheadGautham
25th June 2007, 08:07
I think you can use the VLC media player for that.

1. install/extract the player.
2. drag, drop file into the player
3. select file>wizard
4. click transcode/save to file
5. click next
6. click choose existing playlist item
7. click next
8. the rest is all a self explanatory GUI.

best of luck

foxyshadis
25th June 2007, 09:24
http://avisynth.org/mediawiki/VFR#encoding_to_cfr_-_120_fps

This method has one significant downside: Playback filters (like ffdshow sharpening) will put 4-5 times as much stress on your system. But it's the only way to get VFR in avi.

IanB
2nd July 2007, 00:45
For this specific example# timecode format v1
Assume 23.976
0,24063,23.9760
24064,24168,16.1365
24169,35433,23.9764Using the convertfps option of DirectShowSource will help.

DirectShowSource("video.mkv",audio=false, convertfps=true, fps=23.976)

The video is fundamentally 23.976, the small section of 16.x FPS in the middle will be a very low motion segment for which the frames have been time compressed. ConvertFPS undoes this temporal compression.