2010-11-10 01:58:38 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if=$1
|
2011-10-06 23:22:34 +02:00
|
|
|
of=`basename "$1"`".mp4"
|
2010-11-10 01:58:38 +01:00
|
|
|
|
|
|
|
schedtool -De \
|
2012-04-05 03:23:09 +02:00
|
|
|
ffmpeg -i "$if" \
|
|
|
|
-f mp4 \
|
|
|
|
-an \
|
|
|
|
-threads 4 \
|
|
|
|
-deinterlace \
|
|
|
|
-vcodec libx264 \
|
|
|
|
-vpre libx264-ipod640 \
|
|
|
|
-b:v 400k \
|
|
|
|
-pass 1 \
|
|
|
|
-passlogfile "$of.ffmpeg2pass" \
|
|
|
|
-y \
|
|
|
|
/dev/null && \
|
2010-11-10 01:58:38 +01:00
|
|
|
schedtool -De \
|
2012-04-05 03:23:09 +02:00
|
|
|
ffmpeg -i "$if" \
|
|
|
|
-f mp4 \
|
|
|
|
-acodec libmp3lame \
|
|
|
|
-ab 96k \
|
|
|
|
-threads 4 \
|
|
|
|
-deinterlace \
|
|
|
|
-vcodec libx264 \
|
|
|
|
-vpre libx264-ipod640 \
|
|
|
|
-b:v 400k \
|
|
|
|
-pass 2 \
|
|
|
|
-passlogfile "$of.ffmpeg2pass" \
|
|
|
|
-y \
|
|
|
|
"$of"
|
2010-11-10 01:58:38 +01:00
|
|
|
|