Reputation: 668
Need to convert flv files to avi or mov, trying out ffmpeg but the output quality is terrible. How can I get the video output to be on par quality with the source?
I thought ffmpeg -i name.flv -s 320x... name.avi would do it, but no good.
Upvotes: 35
Views: 61399
Reputation: 1430
To preserve quality use -qscale 0
.
For example ffmpeg.exe -i InputVid.avi -qscale 0 OutputVid.mp4
I converted my 1.64 GB avi video to 4.35 MB mp4 file.
Upvotes: 5
Reputation: 175
There is also another solution found on the internet and works like charm!
Just use same quality parameter -sameq
.
ffmpeg.exe -i video.flv -sameq outputVideo.avi
Actually the command sameq is not same quality. In order to successfully do it this one must be applied: in case you have multiple files to do here is the complete command
for %i in (*.flv) do ffmpeg -i "%i" -q:a 0 -q:v 0 "%i".avi
Upvotes: 9
Reputation: 1674
This is a Good solutions
ffmpeg -async 1 -i inputVideo.flv -f avi -b 700k -qscale 0 -ab 160k -ar 44100 outputVideo.avi
Or Used following one
ffmpeg -loglevel 0 -async 1 -i inputVideo.flv -f avi -b 700k -sameq -ab 160k -ar 44100 outputVideo.avi
Upvotes: 16
Reputation: 90853
That's the command I was using for a ffmpeg project, the quality should be good enough. If not, try increasing the bitrate (-b
argument):
ffmpeg -i input.flv -ar 22050 -b 2048k output.avi
Upvotes: 30