一些视频视频转换脚本
博客专区 > xslh 的博客 > 博客详情
一些视频视频转换脚本
xslh 发表于10个月前
一些视频视频转换脚本
  • 发表于 10个月前
  • 阅读 5
  • 收藏 0
  • 点赞 0
  • 评论 0

标题:腾讯云 新注册用户域名抢购1元起>>>   

DVD转vob

#mplayer dvd://1 -dvd-device /dev/sr0 -dumpstream -dumpfile myvideo1.vob
#mplayer dvd://2 -dvd-device /dev/sr0 -dumpstream -dumpfile myvideo2.vob
mplayer dvd://3 -dvd-device /dev/sr0 -dumpstream -dumpfile myvideo3.vob
mplayer dvd://4 -dvd-device /dev/sr0 -dumpstream -dumpfile myvideo4.vob

转成flv

mencoder  -quiet   -oac mp3lame -lameopts abr:br=56  -srate 22050 -af channels=2 -ovc lavc -vf harddup,hqdn3d,scale=176:-3 -lavcopts vcodec=flv:vbitrate=152:mbd=2:trell:v4mv:turbo:keyint=45  -ofps 15  -of lavf   VTS_02_1.VOB  -o v2.flv

转高质量flv

mencoder  -quiet   -oac mp3lame -lameopts abr:br=56  -srate 22050 -af channels=2 -ovc lavc -vf harddup,hqdn3d -lavcopts vcodec=flv:vbitrate=152:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2:keyint=45  -ofps 15  -of lavf   VTS_01_1.VOB  -o v11.flv

转标准flv

#提取dvd的文件,直接copy出来的有问题 mplayer dvd://1 -dumpstream -dumpfile myvideo.vob
# mencoder myvideo.vob -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=150 -ofps 25 -oac mp3lame -lameopts abr:br=32 -srate 44100 -vf scale=720 -o outputfile.flv

#mencoder VTS_01_1.VOB -o v12.flv -of lavf \
#    -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \
#    -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
#mencoder VTS_02_1.VOB -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=150 -ofps 25 -oac mp3lame -lameopts abr:br=32 -srate 44100 -vf scale=720 -o outputfile.flv
mencoder myvideo2.vob -o v2.flv -of lavf \
    -oac mp3lame -lameopts abr:br=128 -srate 22050 -ovc lavc \
    -lavcopts vcodec=flv:vbitrate=1000:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
mencoder myvideo3.vob -o v3.flv -of lavf \
    -oac mp3lame -lameopts abr:br=128 -srate 22050 -ovc lavc \
    -lavcopts vcodec=flv:vbitrate=1000:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
mencoder myvideo4.vob -o v4.flv -of lavf \
    -oac mp3lame -lameopts abr:br=128 -srate 22050 -ovc lavc \
    -lavcopts vcodec=flv:vbitrate=1000:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
#mencoder VTS_01_1.VOB -o v1.flv -of lavf \
#    -oac mp3lame -lameopts abr:br=128 -srate 22050 -ovc lavc \
#    -lavcopts vcodec=flv:vbitrate=1000:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 

转wmv

#mencoder   $1 -ovc x264 -x264encopts bitrate=300:qcomp=0.6:qp_min=10:qp_max=51:qp_step=4:threads=auto:level_idc=40:dct_decimate:keyint=250:keyint_min=25:cabac:direct_pred=auto:nomixed_refs:fast_pskip:nobrdo:bime:bframes=3:b_adapt:8x8dct:pass=1:turbo=2 -oac copy -o /dev/null

#mencoder  -vf harddup $1 -ovc x264 -x264encopts bitrate=300:qcomp=0.6:qp_min=10:qp_max=51:qp_step=4:threads=auto:level_idc=40:dct_decimate:keyint=250:keyint_min=25:cabac:direct_pred=auto:nomixed_refs:fast_pskip:nobrdo:bime:bframes=3:b_adapt:8x8dct:frameref=2:b_pyramid:weight_b:trellis=1:me=hex:me_range=16:subq=6:pass=2 -oac mp3lame -lameopts abr:br=128 -o $2

#mencoder $1 -ovc x264 -x264encopts bitrate=300:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:pass=1:turbo=2 -mc 0 -noskip  -oac copy -o /dev/null
#mencoder $1 -ovc x264 -x264encopts bitrate=300:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:pass=2 -mc 0 -noskip -oac mp3lame -lameopts abr:br=128  -o $2
mencoder  -ovc wmv1  -noskip -oac faac -lameopts abr:br=128  -o v1. VTS_01_1.VOB 

 

共有 人打赏支持
粉丝 0
博文 5
码字总数 1371
×
xslh
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: