Assorted FFMPEG scripts for compressing and cutting videos.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
csc-media/make-mpg.sh

15 lines
279 B

V_BIT_RATE=768k
A_BIT_RATE=128k
LOG="timings/$2-mpg.log"
TIC=`date +%s`
$ffmpeg -i "$1" $ffmpegopts -v -1 -y \
-vcodec mpeg2video -b "$V_BIT_RATE" \
-acodec mp2 -ac 1 -ab "$A_BIT_RATE" \
"encodes/$2.mpg"
TOC=`date +%s`
echo "`expr $TOC - $TIC`" >> $LOG