ffmpeg extract lossless image from video

4

2

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?

Chito Cheng

Posted 2016-01-28T11:41:35.020

Reputation: 175

try using value 2 instead of 1 in -qscale:v – Rico – 2016-01-28T11:59:07.430

Answers

6

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.

Gyan

Posted 2016-01-28T11:41:35.020

Reputation: 21 016

i get error-"qmin and or qmax are invalid, they must be 0 < min <= max" using first command..i tried setting-"-qmin","0", "-qmax","1" but still same error.. – Android Developer – 2018-12-08T10:27:45.763

See updated cmd. – Gyan – 2018-12-08T10:49:17.310