34 lines
548 B
Bash
Executable File
34 lines
548 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if=$1
|
|
of=`basename "$1"`".mp4"
|
|
|
|
schedtool -De \
|
|
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 && \
|
|
schedtool -De \
|
|
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"
|
|
|