Created
September 30, 2010 22:41
-
-
Save oneman/605453 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# this program is liscnesed to swapnil for 1 time use only | |
# any time after that he better use a different codec than mpeg2 to edit like dnxhd | |
# also u can chew on RMS beard as desired | |
case $1 in | |
*.MTS) | |
input="$1" | |
base=`echo $input | sed "s/\.mts$//"` ;; | |
*.m2ts) | |
input="$1" | |
base=`echo $input | sed "s/\.m2ts$//"` ;; | |
*.m2t) | |
echo "Warning: sound/video synchonization may be lost if this m2t file" | |
echo "was produced by dvgrab. If this is the case, please remultiplex" | |
echo "with Project X before proceding." | |
echo "" | |
input="$1" | |
base=`echo $input | sed "s/\.m2t$//"` ;; | |
*.mpg) | |
input="$1" | |
base=`echo $input | sed "s/\.mpg$//"` ;; | |
*) | |
help ;; | |
esac | |
echo 24PF $input to ${base}-24.mpg video... | |
ffmpeg -i $input -ab 384000 -f mp2 -y $base.m2a | |
ffmpeg -i $input -r 30000/1001 -f yuv4mpegpipe -pix_fmt yuv420p -y /dev/stdout | | |
yuvkineco -F 1 | | |
mpeg2enc --no-constraints -f3 -nn -a3 -Ktmpgenc -lh \ | |
-b24000 -V488 -r32 -G18 -D10 -q3 -s -o $base.m2v | |
mplex -f3 $base.m2a $base.m2v -r28000 -b800 -o $base-24.mpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment