Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Convert MP4 Video File into FLV Format Using FFMPEG

Tags:

ffmpeg

mp4

flv

i have to Convert MP4 Video File into FLV Format Using FFMPEG which i received from different mobile device. i found most of the stuff to convert flv video into mp4 and all.

can any body help me out to convert mp4 format into flv using FFMPEG. i am using windows 7 64bit machine.

like image 796
nipul_tech Avatar asked Dec 14 '11 13:12

nipul_tech


People also ask

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. No switch necessary; just the file name.


1 Answers

I'm late, but if this can help somebody, it's time well spent.

If I understand correctly, you want to convert MP4 to FLV using FFMPEG. Here are two command lines to help you do that; I'm currently using them myself (you can adjust them to your needs too) :

ffmpeg -i source.mp4 -c:v libx264 -crf 19 destinationfile.flv

and if the first one doesn't work :

ffmpeg -i source.mp4 -c:v libx264 -ar 22050 -crf 28 destinationfile.flv

Please note that -crf XX is the quality of the video you will create. It's between 0 and 51 (but between 17 and 23 is a reasonable range and the lower the number is, the better quality the video is going to be).

The -ar 22050 is for adjusting the audio sample range (audio quality). You can choose 11025, 22050 or 44100.

I suggest you read this Tutorial for FFMPEG . It's really complete and has many useful tips.

Hope this will help you or somebody in the same situation.

like image 113
John_D Avatar answered Oct 22 '22 01:10

John_D