How to get better image quality when getting frames from a video?

Questions involving a Windows version of FFmpeg.
Post Reply
bratsburger
Posts: 1
Joined: Wed Jul 12, 2017 7:02 am

How to get better image quality when getting frames from a video?

Post by bratsburger »

Hi,

I am using this to get a number of frames from a video:
https://trac.ffmpeg.org/wiki/Create%20a ... he%20video

I wrote this in the command line:
ffmpeg -i input.avi -vf fps=3 out%d.jpg

But the quality of the images are poor. Is there a way to improve the output image quality?

Thank you in advance for your help.

llogan
Posts: 332
Joined: Fri Mar 14, 2014 3:29 am

Re: How to get better image quality when getting frames from a video?

Post by llogan »

For JPEG output add "-q:v 2" output option.

Code: Select all

ffmpeg -i input.avi -vf fps=3 -q:v 2 out%d.jpg

Markk786
Posts: 2
Joined: Fri Jul 28, 2017 1:58 am

Re: How to get better image quality when getting frames from a video?

Post by Markk786 »

Is adding "-q:v 2" enough??
DiagnosisDosagesubchorionichemorrhage
Last edited by Markk786 on Sun Aug 13, 2017 2:03 pm, edited 1 time in total.

llogan
Posts: 332
Joined: Fri Mar 14, 2014 3:29 am

Re: How to get better image quality when getting frames from a video?

Post by llogan »

Hard to say since quality is a subjective matter. Is the output not good enough with "-q:v 2"? You can try "-qmin 1 -q:v 1" instead.

You can always output to PNG instead (and omit "-q:v" and "-qmin" because PNG ignores those options).

Post Reply