Ffmpeg extract lossless image from video

extractffmpegimagesjpegvideo

I have a 5s fps25 mp4 video and I use the following command to extract jpg images from the video

ffmpeg -i input.mp4 -r 1 -q:v 1 output_%01d.jpg

The images are extracted successfully, but jpg files quality isn't good enough.

How can I extract better quality images?

Best Answer

Try

ffmpeg -i input.mp4 -r 1 -q:v 1 -qmin 1 -qmax 1 output_%01d.jpg

If not good enough, use

ffmpeg -i input.mp4 -r 1 output_%01d.bmp 

and use another JPEG encoder.

Related Question