Skip to content

Instantly share code, notes, and snippets.

@gurdiga
Created April 11, 2012 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gurdiga/2356487 to your computer and use it in GitHub Desktop.
Save gurdiga/2356487 to your computer and use it in GitHub Desktop.
batch transcode with vlc
for file in *.mkv; do out=`basename "$file" .mkv`.mp4; cvlc "$file" :sout="#transcode{vcodec=h264,scale=0.5}:std{access=file,mux=ps,dst='$out'}" vlc://quit; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment