Monday, October 5, 2009

Covert Video File Format

Kalo guna ubuntu, bleh pkai ffmeg utk convert file video FLV kpd lain-lain format seperti WMV, AVI dan MP3. Aku convert nie coz nk play video nie dalam streaming server guna Window Media Services.

Convert FLV kpd WMV
----------------------------------------
ffmpeg -i ustaz\ azhar\ idrus\ -\ sunnah\ \&\ kias\ kepal\ tanah\ kubur.flv -vcodec wmv1 -acodec adpcm_ima_wav tanah-kubur.wmv

Convert FLV kpd AVI
----------------------------------
ffmpeg -i 10-ustaz\ azhar\ idrus\ -\ hukum\ jaga\ \&\ beri\ nafkah\ kpd\ orang\ tua.flv -vcodec msmpeg4v2 test.avi

Convert FLV kpd MP3
-------------------------------------

Basic ::

ffmpeg -i inpuvvideofile.flv outputaudiofile.mp3

By default, ffmpeg akan encode mp3 kpd 64kb/s. Guna command -ab untuk tukar kepada 128kb/s.

ffmpeg -i inpuvvideofile.flv -ab 128k outputaudiofile.mp3

By default, mp3 file telah di encode ke dlm file FLV. Guna command -acodec copy untuk output yg lebih cepat.

ffmpeg -i inpuvvideofile.flv -acodec copy outputaudiofile.mp3

Untuk check file FLV lebih details, issue command di bawah ::

ffmpeg -i inputvideo.flv

Youtube ke MP3 (Play dahulu file Youtube sampai habis)

ffmpeg -i /tmp/FlashTAx7jp -acodec libmp3lame output.mp3


Reference ::
https://wiki.ubuntu.com/ffmpeg
http://ubuntuforums.org/archive/index.php/t-343537.html
http://gebaar.blogspot.com/2009/06/howto-easily-enable-mp3-mpeg4-aac-and.html
http://ubuntuforums.org/showthread.php?t=852027
http://ubuntuforums.org/showthread.php?t=786095
http://pasindudps.blogspot.com/2010/12/compiling-ffmpeg-in-ubuntu-1010.html

No comments: