Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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"
Add Comment
Please, Sign In to add comment