Skip to content

Instantly share code, notes, and snippets.

@huacnlee
Created October 20, 2010 03:36
Show Gist options
  • Save huacnlee/635714 to your computer and use it in GitHub Desktop.
Save huacnlee/635714 to your computer and use it in GitHub Desktop.
使用 Mencoder 将视频转换为支持iOS和Android的H.264视频格式
$ sudo apt-get install mencoder
$ mencoder origin.mp4 -o new.mp4 -vf dsize=480:360: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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment