[FFmpeg-user] convert mp4 to flv

me at renecalles.de me at renecalles.de
Wed Apr 25 15:09:58 CEST 2012


Hi,

as i'm not shure which FFmpeg-Version you are using, try:

ffmpeg -i grade-05-anil-pushapakumara-01.mp4 -vcodec libx264 -preset 
fast -profile baseline -x264opts  bitrate=300 -s 320x240 -r 12 -g 12 
-acodec libmp3lame -ar 44100 -f flv testvideo.flv

i added after "-g 12" the audio encoding options "-acodec libmp3lame 
-ar 44100"

Best,
René


On Wed, 25 Apr 2012 04:53:03 -0700 (PDT), Bhikkhu Mettavihari wrote:
> Hello
>
> I have a customer who need to have his output in 300bps and flv video
>
> I saw the post on your web
> 
> http://ffmpeg-users.933282.n4.nabble.com/web-videos-with-flv-td4397676.html
>
> Try something like this:
>
> ffmpeg -i video.avi -vcodec libx264 -preset fast -profile baseline 
> -x264opts
> bitrate=300 -s 320x240 -r 12 -g 12 -f flv testvideo.flv
>
> Ii have a compressed mp4 file and I run the following command:
>
> ffmpeg -i video.mp4 -vcodec libx264 -preset fast -profile baseline 
> -x264opts
> bitrate=300 -s 320x240 -r 12 -g 12 -f flv testvideo.flv
>
> When I run this command I get
>
> Output #0, flv, to 'testvideo.flv':
>   Metadata:
>     major_brand     : isom
>     minor_version   : 512
>     compatible_brands: isomiso2avc1mp41
>     creation_time   : 1970-01-01 00:00:00
>     encoder         : Lavf52.32.0
>     Stream #0:0(eng): Video: h264, yuv420p, 176x144, q=-1--1, 90k 
> tbn, 12
> tbc
>     Metadata:
>       creation_time   : 1970-01-01 00:00:00
>       handler_name    :
>                         VideoHandler
>     Stream #0:1(eng): Audio: none, 48000 Hz, stereo, s16
>     Metadata:
>       creation_time   : 1970-01-01 00:00:00
>       handler_name    :
> Stream mapping:
>   Stream #0:0 -> #0:0 (h264 -> libx264)
>   Stream #0:1 -> #0:1 (aac -> libmp3lame)
> Error while opening encoder for output stream #0:0 - maybe incorrect
> parameters such as bit_rate, rate, width or height
>
> I have put my file up here if you like to have a look at it
> http://learntv.lk/grade-05-anil-pushapakumara-01.mp4
>
> Help is much appreciated.
>
> Regards
> Mettavihari
>
>
> --
> View this message in context:
> 
> http://ffmpeg-users.933282.n4.nabble.com/convert-mp4-to-flv-tp4586331p4586331.html
> Sent from the FFmpeg-users mailing list archive at Nabble.com.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list