Guest User

Untitled

a guest
May 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ -z "$1" ]; then
  4. echo "Usage: ./std_* [FILE]"
  5. exit 1
  6. fi
  7.  
  8. fn=${1%.*}
  9. output=$fn.lines432.mp4
  10. outputtmp=tmp.$output
  11. 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
  12. 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"
  13. MP4Box -add "$output" -fps 25 "$outputtmp"
  14. #rm "$output"
  15. #mv "$outputtmp" "$output"
Add Comment
Please, Sign In to add comment