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.

My app interface is recorded with FFMPEG:

ffmpeg -f rawvideo -vcodec rawvideo -s,1280x720 -pix_fmt argb -r 15 -i - -c:v libx264 -b:v 1024k result.mp4

All works very well except that the output video is too fast (and too short) and was sped up.

It seems that my app is not able to send at least 15 raw images per seconds, according to my specified frame rate (-r 15). So FFMPEG is building a video with not enough frames for this frame rate.

Is there a way to force FFMPEG to duplicate frames until it has obtained the next frame, and to write it with the real timestamp?

In others words, I need a 10 seconds video for 10 seconds of recording.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.