How to convert video to FLV using Mencoder

One of the most popular video format in recent years is Flash Video or so called FLV because it supports streaming over the web architecture using normal http protocol. In another point of view, 3GP is widely used in mobile phone because it is very small and efficient for small screen like mobile phone. The technology is going to emerge someday. 3GP would be available on the web for massive distribution. The best approach for publishing video on the web is to use FLV. I will give an example of unattended command for converting any video files including 3GP to FLV using Mencoder.

If you want to read/write 3GP in Mencoder, you have to compile it yourself to include AMR codecs. Below is what I used.

mencoder input.3gp \
         -of lavf \
         -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames \
         -ovc lavc \
         -lavcopts vcodec=flv:vbitrate=150 \
         -ofps 15 \
         -oac mp3lame \
         -lameopts abr:br=32 \
         -srate 22050 \
         -vf scale=320:-3 \
         -o output.flv

According to the command, the FLV will have 150 kbits video bitrate at 15 frame per second using codec flv. For audio, it is mp3 sampling at 22050 Hz and bitrate at 32 kbps. The output FLV will also be resized to smaller than 320 in width.

Tags: , ,

Thanks!

Thanks for the CLI for this. Now I'm able to convert wmv to flv on the fly now. h

another good prog

hi all i want to advice you another good prog wich i useing now. its very simple and helpful tool with demo without timelimit. Video to Flash Converter Pro this wonderful tool can convert all common formats and add watermarks on your video...its very helpful! i advice you to check it out! GLuck!

No Audio in the transcoded file?

Hi, I tried using the command line but couldn't get the audio part in the video. The original 3gp file does have the audio in it. NOTE: The original 3gp file is generated from a Nokia E65 phone. Regards, Yogesh

Post new comment