All pastes #2103097 Raw Edit

Stuff

public text v1 · immutable
#2103097 ·published 2012-01-15 05:02 UTC
rendered paste body
#!/bin/bash

if [ -z "$1" ]; then
    echo "Usage: ./std_* [FILE]"
    exit 1
fi

fn=${1%.*}
output=$fn.lines432.mp4
outputtmp=tmp.$output
avconv -i $1 -c:v libx264 -pass 1 -preset fast -b:v 250K -bt 250K -aspect 4:3 -s 576x432 -threads 0 -deinterlace -an -f mp4 -y /dev/null
avconv -i $1 -c:v libx264 -pass 2 -preset fast -b:v 250K -bt 250K -aspect 4:3 -s 576x432 -threads 0 -deinterlace -c:a libfaac -ac 1 -ar 44100 -b:a 96k -y "$output"
MP4Box -add "$output" -fps 25 "$outputtmp"
#rm "$output"
#mv "$outputtmp" "$output"