[FFmpeg-user] Convert flv to mp4. Bad video quality

Ulf Zibis Ulf.Zibis at CoSoCo.de
Fri May 28 13:02:09 EEST 2021


Am 28.05.21 um 11:44 schrieb Michael Koch:
> Am 28.05.2021 um 11:25 schrieb Flavio Sartoretto:
>> I use ffmpeg in order to convert fname.flv video to mp4:
>> ffmpeg -i fname.flv -c:v mpeg4 -copyts -loglevel verbose fname.mp4
>>
>> The video quality of my output is bad. How can I improve it?
>
> Add -q:v 1 to your command line. The number does specify the compression ratio. 0 ist best quality and 9 is highest compression.

Alternatively you may drop "-c:v mpeg4". Then libx264 is used instead FFmpegs internal mpeg4 encoder by default and you will get good quality.

-Ulf



More information about the ffmpeg-user mailing list