Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. function iphone_encode() {
  2.   if [ -z "$1" ];
  3.     then echo "Usage: iphone_encode infile"
  4.     return 1
  5.   fi
  6.  
  7.   FIN="${1}"
  8.   FOUT="${1%.*}-iphone.mp4"
  9.  
  10.   mencoder -vf scale=480:-10,harddup -lavfopts format=mp4 -faacopts mpeg=4:object=2:raw:br=128 -oac faac -ovc x264 -sws 9 -x264encopts nocabac:level_idc=30:bframes=0:global_header:threads=auto:subq=5:frameref=6:partitions=all:trellis=1:chroma_me:me=umh:bitrate=500:pass=1 -of lavf "$FIN" -o /dev/null
  11.   mencoder -vf scale=480:-10,harddup -lavfopts format=mp4 -faacopts mpeg=4:object=2:raw:br=128 -oac faac -ovc x264 -sws 9 -x264encopts nocabac:level_idc=30:bframes=0:global_header:threads=auto:subq=5:frameref=6:partitions=all:trellis=1:chroma_me:me=umh:bitrate=500:pass=2 -of lavf "$FIN" -o "$FOUT"
  12.  
  13.   rm divx2pass.log*
  14.  
  15.   return 0
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement