36 lines
705 B
Bash
36 lines
705 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
if=$1
|
||
|
of=`basename "$1"|sed -e 's/.avi/.mp4/'`
|
||
|
|
||
|
schedtool -De \
|
||
|
~/ffmpeg/ffmpeg -i "$if" \
|
||
|
-threads 2 \
|
||
|
-f mp4 \
|
||
|
-an \
|
||
|
-vcodec libx264 \
|
||
|
-vpre slower_firstpass \
|
||
|
-b 800k \
|
||
|
-bt 800k \
|
||
|
-s 720x406 \
|
||
|
-pass 1 \
|
||
|
-passlogfile "$of.ffmpeg2pass" \
|
||
|
-y \
|
||
|
/dev/null && \
|
||
|
schedtool -De \
|
||
|
~/ffmpeg/ffmpeg -i "$if" \
|
||
|
-threads 2 \
|
||
|
-f mp4 \
|
||
|
-acodec libmp3lame \
|
||
|
-ab 160k \
|
||
|
-vcodec libx264 \
|
||
|
-vpre slower \
|
||
|
-b 800k \
|
||
|
-bt 800k \
|
||
|
-s 720x406 \
|
||
|
-pass 2 \
|
||
|
-passlogfile "$of.ffmpeg2pass" \
|
||
|
-y \
|
||
|
"$of"
|
||
|
|