Log in

View Full Version : convert video with variable frame rate


akby
29th November 2006, 10:38
how am i to convert files with variable frame rate

akby
30th November 2006, 11:42
uhh....?

Daodan
30th November 2006, 12:55
In what state is the file? (so original mpeg2 (vob,ts)), wmv, mp4, etc. How do you know it's variable..etc

movmasty
30th November 2006, 17:33
how am i to convert files with variable frame rate

generally the converter(like asftools, tmpg, Vdub)does the average itself.

sometime you need to decompress audio to wav and use this file instead of original.

akby
30th November 2006, 19:08
its xvid
and i know because vdubmod tells me so
and it suggests i use some other tool

i tried megui but the audio is always out of synch

Daodan
30th November 2006, 19:47
My question was directed at what container is the file in, not the codec. I presume by what you say that the container is mkv. If yes, it's simple: extract with mkvextract the video track (it will be avi) and the timecodes (a .txt file).
Now comes the part: do you want to keep it variable framerate or do you want to make it cfr
If you want it vbr encode that avi with your codec and remux in mkv along with the timecodes.
If you want it cfr you open the file like this in avs:

DirectShowSource("C:\vfrvideo", fps=119.88, convertfps=true)
Changefps(23,976)

This is the most unelegant method. You can try using fdecimate or other tools to maybe give a smoother decimation.

akby
1st December 2006, 12:48
thanks i ll just leave it at vfr

stolarzz
3rd December 2006, 22:28
Hello

I have similar problem with VFR. Trying encode one anime trailer from wmv. Convertfps=true isn't working good in this source. In some moments in encoded video i have freezeed frames from next scene, i mean those passages which in source are full black after encode some frames from next scene changing frames which should be black.

Know that can be done with timecodes method but there is a problem. I totally don't know how to do it with this method.
Can someone explain me how to remove VFR timecodes method?

PS. Sorry for my english.

akby
4th December 2006, 12:43
download the latest mkvmerge and mkvextract
put the avi into mkvmerge to make mkv file
then put the file into mkvextract (mine is 1.6.4)
up at options go to attachments and check timecodes then extract the video (and audio though i dont think its necessary)
now you have timecodes
after encoding put the video in mkvmerge select it from the tracks and put in the timecode

thanks to daodon and the good ppl at doom9 for this one

stolarzz
4th December 2006, 21:53
download the latest mkvmerge and mkvextract
put the avi into mkvmerge to make mkv file
then put the file into mkvextract (mine is 1.6.4)
up at options go to attachments and check timecodes then extract the video (and audio though i dont think its necessary)
now you have timecodes
after encoding put the video in mkvmerge select it from the tracks and put in the timecode

thanks to daodon and the good ppl at doom9 for this one
Heh i didn't tell if i need it with 23.976fps. Source it's wmv, muxed it to mkv and got timecodes v1. And now how to encode it with conversion to 23.976fps?

thuongshoo
5th December 2006, 10:30
I like this subject.
I use Megui.
Source file mpg, wmv, rmvb. How can I do ? Which script should I use in AVS ?

Thanks!