Skip to content

Instantly share code, notes, and snippets.

@williamcanin
Created November 22, 2015 21:27
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 williamcanin/54638a84b2fd1b6b508c to your computer and use it in GitHub Desktop.
Save williamcanin/54638a84b2fd1b6b508c to your computer and use it in GitHub Desktop.
Script shell (Linux) convert video. Dependencies: Mencoder.
#!/bin/bash
# Video
INPUT="input.mkv"
OUTPUT="output.mp4"
# Codecs
VIDEO="x264"
AUDIO="mp3lame"
# Start
mencoder $INPUT -o $OUTPUT -ovc $VIDEO -oac $AUDIO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment