Så konverterar man en mobiltelefons .3gp-fil till flash flv-format på Linux

published Jul 06, 2008 08:14   by admin ( last modified Jul 06, 2008 08:14 )

Man behöver mencoder, som är en del av mplayer.

Det blev lite snabbare än originalvideon, men i just detta fall så passade det bra. Jag strök en option (den i fetstil), för den ville min mencoder inte ta:

 

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

Receptet taget från: How to convert video to FLV using Mencoder | howforge.com

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.