Video transcoding device MPlayer installation and use
#!/bin/bash#1, ensure the system can be connected to the external network, need to download the installation package and the dependency package set-emplayer= "/usr/myapp" mpver= "MPlayer-1.3.0" mkdir $MPlayer-pv Yum Install wget gcc git-ycd/usr/local/srcwget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2wget http:/ /www.mplayerhq.hu/mplayer/releases/mplayer-1.3.0.tar.gzecho "Export path=" $PATH:/usr/myapp/ffmpeg/bin "" >>/ Etc/profilesource/etc/profiletar XF All-20110131.tar.bz2tar XF mplayer-1.3.0.tar.gzmv/usr/local/src/all-20110131/ usr/local/lib/codecscd/usr/local/src/$MPVer./configure--prefix= $MPlayer/mplayer--codecsdir=/usr/local/lib/ Codecs && make && make InstallIf [[$ = = 0]];then cd $MPlayer/mplayer/bin && ls echo-e "\ 033[31m usage:\n\t Path:/usr/myapp/mplayer/bin/\033[0m "echo-e" \033[31m usage:\n\t mencoder 1.rmvb-o Output.avi-oa C mp3lame-lameopts CBR:BR=32-OVC x264-x264encopts bitrate=440-vf scale=448:-3 \033[0m "echo" Export PATH= "$PATH:/US R/myapp/mplayer/bin "" >>/etc/profile Source/etc/profilE #mencoder 1.rmvb-o output.avi-oac mp3lame-lameopts cbr:br=32-ovc x264-x264encopts bitrate=440-vf Scale=448:-3el Se BREAKFI
Video transcoding: Using MPlayer to do video transcoding under Linux