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.
Instead of -sameq (removed by FFMpeg), use -qscale 0 : the file size will increase but it will preserve the quality.
FFmpeg is a command line based tools which allows to do very neat video manipulations. We would like to share this small script, which our IT specialists have used for one of our video conversion projects. It parses a directory, finds all flv (Flash video) files and converts them to mp4.
As a powerful command-line tool, FFmpeg allows you to convert/stream/record video and audio file. Its advanced codec library - libavcodec ensures high portability and codec quality. To use this open source AVI to MP4 converter for Mac, you must know some basic coding techniques. Otherwise, you won't be able to start.
FFmpeg can input most container formats natively, including MP4, . ts, MOV, AVI, Y4M, MKV, and many others. This is the output file.
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
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
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With