Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert flv to avi using ffmpeg high quality

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.

like image 344
Naota Avatar asked Jun 12 '11 11:06

Naota


People also ask

How do I use FFmpeg without losing quality?

Instead of -sameq (removed by FFMpeg), use -qscale 0 : the file size will increase but it will preserve the quality.

Can FFmpeg convert FLV to mp4?

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.

Can FFmpeg convert AVI?

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.

Does FFmpeg work with mp4?

FFmpeg can input most container formats natively, including MP4, . ts, MOV, AVI, Y4M, MKV, and many others. This is the output file.


4 Answers

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 
like image 126
laurent Avatar answered Sep 25 '22 14:09

laurent


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 
like image 34
Elby Avatar answered Sep 25 '22 14:09

Elby


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
like image 40
Semertzidis Aris Avatar answered Sep 25 '22 14:09

Semertzidis Aris


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.

like image 23
Saad Anees Avatar answered Sep 24 '22 14:09

Saad Anees