Easiest way to Convert Videos for Android – Ffmpeg




If you are looking for easiest way to convert videos for Android over Linux box, this one is probably best option. All you need is ffmpeg installed.

Install ffmpeg
Fedora
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum install ffmpeg -y

Ubuntu

apt-get install fmpeg

e.g Convert .mkv to .avi

ffmpeg -i src.mkv dst.avi

If above does not give you good quality for mov files, try following command.
ffmpeg -i srv.mov -sameq -vcodec msmpeg4v2 -acodec pcm_u8 dst.avi

Do suggest us better ffmpeg syntax for android devices.
This is working for me on Galaxy 3. We wish to make this article better by user comments, same as previous article.


if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.
Read 240 articles by
  • http://ubuntumanual.org/ Thomas

    In FFmpeg we can convert videos from one format to other by using following commands .avi to divx format: ffmpeg -i input.avi -s 320×240 -vcodec msmpeg4v2 output.avi .avi to dv format: ffmpeg -i input.avi -s pal -r pal -aspect 4:3 -ar 48000 -ac 2 final.dv .mpg to .avi format: ffmpeg -i input.mpg ouput.avi wav file to mp3 format: ffmpeg -i input.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output.mp3 ogg theora to mpeg format: ffmpeg -i input.ogm -s 720×576 -vcodec mpeg2video -acodec mp3 ouput .mpg To know more visit UbuntuManual.org

Trending Posts