Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function videoConvert() {
- VF='dsize=1376:592,scale=-8:-8,harddup' # HD Ready
- #VF='dsize=720:576,scale=-8:-8,pp=lb' # DVD size
- x264encopts='turbo=1:keyint=125:bitrate=2500:vbv_maxrate=5000:vbv_bufsize=450:cabac:direct_pred=auto:me=umh:me_range=16:scenecut=40:qcomp=0.6:qp_min=10:qp_max=51:qp_step=4:bframes=6:b_adapt:weight_b:b_pyramid=normal:partitions=all:8x8dct:nofast_pskip:threads=auto:mixed_refs:chroma_me'
- if [ ! -f "$TMP-firstpass.log" ]; then
- # pass 1
- # -vf dsize=1376:592,scale=-8:-8,harddup
- # -vf dsize=720:576,scale=-8:-8,pp=lb
- mencoder -msglevel all=1 -vf $VF -mc 0 -noskip -ofps 25 \
- -ovc x264 -x264encopts "$x264encopts:pass=1" \
- -nosound -passlogfile "$TMP-firstpass.log" -of rawvideo -o /dev/null $1
- fi
- if [ ! -f "$TMP-rawvideo.h264" ]; then
- # pass 2
- mencoder -msglevel all=1 -vf $VF -mc 0 -noskip -ofps 25 \
- -ovc x264 -x264encopts "$x264encopts:pass=2" \
- -nosound -passlogfile "$TMP-firstpass.log" -of rawvideo -o "$TMP-rawvideo.h264" $1
- fi
- if [ -e "$TMP-rawvideo.h264" ] && [ -e "$TMP-rawaudio.aac" ]; then
- MP4Box -fps 25 -lang HUN -add "$TMP-rawaudio.aac" -add "$TMP-rawvideo.h264" "${FILE[0]}.mp4"
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement