⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpegtranscode

📁 Motion JPEG编解码器源代码
💻
字号:
#!/bin/shusage(){echo "Usage: transcode -S|-V [-T] [-s mins] [-b bitrate] [-F framerate] [-o dstfile] srcfile ..."echo "o - output file root name"echo "b - bitrate for video in kbps"echo "s - sleep for specified number of minutes before starting work"echo "T - Use test encoder"echo "S - Transcode for SVCD or"echo "V - Transcode for VCD"echo "F - fhe frame rate can also be specified, choose one if needed: "mpeg2enc -F -hexit 0}#  Use this commented-out version if you haven't got sox and toolame#MP2ENC="nice -n 29 wav2mp2 -v -o" MPEG2ENC=mpeg2encMPLEX=mplexif [ $# -lt 3 ]thenusagefioutpat=".%d"outfile=transcodedbitrate=""sleep=0decode="YUVh"while getopts ":o:b:s:F:SVTXh" optdocase $opt ins) sleep=$OPTARG;;b) bitrate="-b $OPTARG";;o) outfile=$OPTARG;;F) framerate="-F $OPTARG";;T)echo Using test encoderMPEG2ENC="mpeg2enc.test"MPLEX=mplex.test;;h)echo hi-res modeMPEGOPTS="$MPEGOPTS -H";;X)echo Using test encoder max speedMPEGOPTS="$MPEGOPTS -4 1 -2 1";;V)echo Generating VCD streamMPEGOPTS="$MPEGOPTS -f 1"decode="YUVh";;S)echo Generating SVCD streamMPEGOPTS="$MPEGOPTS -f 4 -q 9 -P -V 200"bitrate="-b 2500"decode="YUVs";;?) usage;;esacdoneif [ x"$MPEGOPTS" = "x" ]thenecho "Must specify -V or -S!"useagefishift `expr $OPTIND - 1`sleep `expr $sleep * 60`cat $* | mpeg2dec -s -o $decode | \        ${MPEG2ENC} ${MPEGOPTS} $bitrate $framerate -o $outfile.m1vcat $* | extract_a52 - -s | a52dec -m wav | \        sox -t wav /dev/stdin -t wav -r 44100 /dev/stdout | \        toolame -p 2 -b 224 /dev/stdin $outfile.mp2# Eventually mux-ing goes here!

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -