Skip to content

Instantly share code, notes, and snippets.

@3on
Created April 10, 2014 18:26
Show Gist options
  • Select an option

  • Save 3on/10409318 to your computer and use it in GitHub Desktop.

Select an option

Save 3on/10409318 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ $# -lt 2 ] ; then
echo "usage: $0 in.mov out.ogg"
exit 1
fi
IN=$1
OUT=$2
VLC=/Applications/VLC.app/Contents/MacOS/VLC
TRANS_VIDEO="vcodec=theo";
TRANS_AUDIO="acodec=vorb";
TRANSCODE="transcode{$TRANS_AUDIO, $TRANS_VIDEO}";
STD="std{access=file, mux=ogg, dst=$OUT}"
$VLC "$IN" --intf rc --verbose 1 --sout-theora-quality=10 --sout="#$TRANSCODE:$STD" vlc://quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment