Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #!/bin/bash
  2.     # TODO this script will need to be customized for each run until it is expanded
  3.     # to take more parameters with getopt
  4.     for f in "$@"
  5.     do
  6.         output=${f##*/}
  7.         output=${output// /_}
  8.         output=${output%.*}.ogv
  9.         vidfile=${output%.*}.ogg
  10.      
  11.         echo "Transcoding $f to $output"
  12.         ffmpeg -i "$f" -c:v libtheora -b:v 500k -c:a libvorbis -b:a 128k -v error "$vidfile" #
  13.     done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement