Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/var/bin/mksh
- INFILE='RDCK_pro003ASI_204071001_HD.wmv'
- OUTFILE='interview_48.mp4'
- WIDTH=768
- HEIGHT=432
- FRAMERATE=30
- AUDIOHZ=48000
- AUDIOCHAN=2
- AUDIOBITRATE=24
- THREADS=2
- SECONDS=0
- ffmpeg -y -threads ${THREADS} -i "${INFILE}" -s ${WIDTH}x${HEIGHT} -r ${FRAMERATE} -vcodec h264 -g 300 -aspect ${WIDTH}:${HEIGHT} -qmin 27 -b 900 -level 30 -loop 1 -strict -2 -bug auto -sc_threshold 40 -partp4x4 1 -rc_eq 'blurCplx^(1-qComp)' -refs 2 -qmax 51 -maxrate 1400 -async 50 -acodec aac -ar ${AUDIOHZ} -ac ${AUDIOCHAN} -ab ${AUDIOBITRATE} "${OUTFILE}"
- if (( $SECONDS < 60 )) ; then
- exit
- fi
- echo $(( $SECONDS / 3600 )) hours $(( $SECONDS % 3600 / 60 )) min
- osascript -e 'tell application "Finder" to sleep'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement