Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What I'd like to achieve is getting the same effect as I get with (assuming 1.7x speed up) :

mplayer -af scaletempo -speed 1.7 myvideo.mp4

This command gives me exactly what I want, but I need to save the result in file somehow.

What I don't want to get is this:

mplayer -vf scale -speed 1.7 myvideo.mp4

I need this to be done in file (file has to be recoded) because I have to play it outside Linux box.

CLI is preferable, because I want to make it in script. Googled around a lot and found lots of suggestions - ffmpeg, mencoder and many funny exotic uncompilable tools, nothing gives me the exact result. Actually almost nothing of this works (I guess it worked in sometime, long long ago).

Unfortunately I upgraded and use Ubuntu 13.04 and it seems that almost all solutions do not work in this version ;(

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Example using ffmpeg with the setpts multimedia filter and atempo audio filter:

ffmpeg -i input -filter_complex "setpts=PTS/1.7;atempo=1.7" output

Note that the atempo range must be 0.5-2.0.

The fake "ffmpeg" in the repository lacks atempo, so you'll have to find another method if you want to continue using it, or you can follow a step-by-step guide to compile ffmpeg, or you can use an already made ffmpeg build (see instructions).

Also see Who can tell me the difference and relation between ffmpeg, libav, and avconv?

share|improve this answer
    
you literally saved me. Didn't even know that ffmpeg in Ubuntu is something ancient. I used static build, because there is no ppa or deb for 13.04 and compiling looks really painful. –  Viacheslav Rodionov Jul 8 '13 at 13:24

Try this:

Video:

mkfifo stream.yuv
mplayer -vf scale -speed 1.7 -vo yuv4mpeg source.avi

cat stream.yuv | yuv2lav -o result.avi

or

ffmpeg -i source.avi -filter "setpts=PTS/1.7" result.avi

Audio:

mplayer -vf scale -speed 1.7 -vo null -ao pcm -ao pcm:file=result.wav source.avi

Result files: result.avi, result.wav

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.