ffmpeg - converting to MJPEG with FPS filter doesn't change FPS

Viewed 13

I'm trying to change the FPS of a video, and convert it to MJPEG with ffmpeg. The following doesn't change the actual FPS of the video (read through ffprobe), although it does seem to change the number of frames. I've tried:

ffmpeg -i in.mp4 -filter:v fps=60 -vcodec mjpeg -q:v 2 -r 60 out.mjpeg

As well as encoding to an intermediate file (which has the correct FPS), and then encoding to mjpeg.

ffmpeg -i in.mp4 -filter:v fps={fps} -preset veryslow -crf 0 -r 60 temp.mp4
ffmpeg -i temp.mp4 -vcodec mjpeg -q:v 2 out.mjpeg

This seems specific to mjpeg in particular - why isn't my video FPS changing?

0 Answers
Related