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.

I am trying to record every 12th frame from a webcam to a video file using ffmpeg to do fast motion (time delay) recording:

ffmpeg -f oss -i /dev/dsp -r 2 -f video4linux2 -s 640x480 -i /dev/video0 -r 24 out.mpg

No matter what I set the -r's too, it always seems to record at the same framerate.

share|improve this question

1 Answer 1

mpg doesn't support low frame rates.

But to record at a certain FPS you can go:

ffmpeg -r 2 -f video4linux2 -s 640x480 -i /dev/video0 -r 2 out.avi

which records at 2FPS.

To speed that up 10x then you can pipe through yuvfps:

ffmpeg -i out.avi -f yuv4mpegpipe - | yuvfps -s 10:1 -r 10:1 | ffmpeg -f yuv4mpegpipe -i - -y faster.avi

The result is a video recorded at 2FPS that plays back at 20FPS (10x faster than original recording! yay)

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.