The syntax for a desktop movie is

ffmpeg -f x11grab -r 100 -s 1200x500 -i :0.0 \
-vcodec libx264  -threads 3 output.mp4

I want to take a single snapshot instead of a video and save it in jgep.

Which ffmpeg command allow me to do so?

  • Is using ffmpeg a hard requirement? It sounds like you would be better served by an image-centric tool instead. – dhag Feb 10 '17 at 14:41

If you want to use ffmpeg, you can do :

ffmpeg -f x11grab -framerate 1 -video_size 1200x500 -i :0.0 -vframes 1 output.jpeg

But I think there are better/simpler tools than ffmpeg to do that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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