Skip to content

Instantly share code, notes, and snippets.

@elecnix
Created April 6, 2011 22:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elecnix/906694 to your computer and use it in GitHub Desktop.
Save elecnix/906694 to your computer and use it in GitHub Desktop.
Convert video to 720p HD
#!/bin/bash
#
# Scales down (or up) a video to 720p, re-encoding it as MPEG4.
#
# Useful as a Nautilus Script in Gnome.
#
# https://help.ubuntu.com/community/AndroidVideoEncoding#Expert mode: Using ffmpeg (command line)
ffmpeg -strict experimental -i "$1" -s 1280x720 -vcodec mpeg4 -b 3000k -acodec aac -ac 1 -ar 16000 -r 13 -ab 64000 "$1.shrinked.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment