Log in

View Full Version : Re-encoding video for mobile device


Eretria-chan
21st November 2010, 19:36
I'm trying to re-encode a video to put in on my mobile device, but of course, I am having problems.

My source is a VFR source, so I can't find a good way to change the fps to 30, which my device requires in order to play the video fine.
Since it's a VFR source, I guess Avisynth is out of the question.
Another thing I've tried is Avidemux's fps filter. But it only changes the fps of the video, leaving the audio seriously out-of-sync.

Also, I do, of course, need to make sure that the audio is in sync, as well.
I'm not sure if there is a way to change the fps while making sure the audio is in sync at the same time. Otherwise, I may need to find some other tool to process the audio to play slower.

Any ideas or suggestions?

sneaker_ger
21st November 2010, 23:43
You can use AviSynth for a VFR -> CFR conversion.

Use e.g.: DirectShowSource("source.mkv", fps=30/1.001, convertfps=true)
or DSS2("source.mkv") (copy avss.dll from Haali's splitter to AviSynth plugin folder)
or FFVideoSource("source.mkv", fpsnum=30000, fpsden=1001) (needs ffmpegsource plugin (http://code.google.com/p/ffmpegsource/))

Eretria-chan
23rd November 2010, 20:24
Thanks. Works perfectly, it seems.