ffmpeg extract lossless image from video
18,685
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 videos on Youtube
Author by
Chito Cheng
Updated on September 18, 2022Comments
-
Chito Cheng over 1 year
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?
-
Rico over 8 yearstry using value 2 instead of 1 in -qscale:v
-
-
Android Developer over 5 yearsi 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.. -
Gyan over 5 yearsSee updated cmd.