Thursday, December 17, 2009

Playing Videos on Android

Here's a quick and dirty way to get video playing on your Android phone from Linux.

These instructions are for Jeff Hamilton's free "Video Player" available on the Android Market.
I copied the mencoder command from here.

First encode the video in a format that the player can understand.

mencoder input.avi -o output.mp4 -vf dsize=480:352:2,scale=-8:-8,harddup -oac faac -faacopts mpeg=4:object=2:raw:br=128 -of lavf -lavfopts format=mp4 -ovc x264 -sws 9 -x264encopts nocabac:level_idc=30:bframes=0:bitrate=512:threads=auto:turbo=1:global_header:threads=auto:subq=5:frameref=6:partitions=all:trellis=1:chroma_me:me=umh


Plug your phone into the computer using the USB cable.

Mount the SD card by pulling down the top bar USB notification and pressing the "USB connected/Mount" button.

Mount the drive in Linux.

Copy the output.mp4 to the SD drive mounted in linux.

Unmount the drive in the phone by pulling down the top bar USB notification and pressing the "Turn of USB Storage" button.

Run the Video Player app on the phone.

Select your video, and enjoy.

34 comments:

cutie said...
This comment has been removed by a blog administrator.
said...
This comment has been removed by a blog administrator.
亮麗 said...
This comment has been removed by a blog administrator.
白色情人節 said...
This comment has been removed by a blog administrator.
pass said...
This comment has been removed by a blog administrator.
宥軒 said...
This comment has been removed by a blog administrator.
張怡伶 said...
This comment has been removed by a blog administrator.
v辰原 said...
This comment has been removed by a blog administrator.
ToryB_He231147 said...
This comment has been removed by a blog administrator.
逸凡逸凡 said...
This comment has been removed by a blog administrator.
CoryToy1 said...
This comment has been removed by a blog administrator.
IrmaOrbison said...
This comment has been removed by a blog administrator.
韋于倫成 said...
This comment has been removed by a blog administrator.
韋于倫成 said...
This comment has been removed by a blog administrator.
逸凡 said...
This comment has been removed by a blog administrator.
木儀 said...
This comment has been removed by a blog administrator.
NohemiL_Be06威宇 said...
This comment has been removed by a blog administrator.
adkinsra said...
This comment has been removed by a blog administrator.
慈佐 said...
This comment has been removed by a blog administrator.
雅慧雅慧雅慧 said...
This comment has been removed by a blog administrator.
陳芳 said...
This comment has been removed by a blog administrator.
江婷 said...
This comment has been removed by a blog administrator.
政儒 said...
This comment has been removed by a blog administrator.
王名仁 said...
This comment has been removed by a blog administrator.
ToryO_Viss鈺雯er0316 said...
This comment has been removed by a blog administrator.
吳婷婷 said...
This comment has been removed by a blog administrator.
張書岑張書岑 said...
This comment has been removed by a blog administrator.
婷珊 said...
This comment has been removed by a blog administrator.
楊家堯楊家堯楊家堯 said...
This comment has been removed by a blog administrator.
思恬 said...
This comment has been removed by a blog administrator.
珮瑜 said...
This comment has been removed by a blog administrator.
徐俊賴靜雯賢 said...
This comment has been removed by a blog administrator.
恩李如恩李如 said...
This comment has been removed by a blog administrator.
黃怡張華樺張華樺妹 said...
This comment has been removed by a blog administrator.