[FFmpeg-user] convert mp4 to flv

Bhikkhu Mettavihari tv.lists at gmail.com
Wed Apr 25 13:53:03 CEST 2012


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.


More information about the ffmpeg-user mailing list