Skip to content

Instantly share code, notes, and snippets.

@wynst
Created June 8, 2010 08:37
Show Gist options
  • Save wynst/429766 to your computer and use it in GitHub Desktop.
Save wynst/429766 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# put in /home/username/bin
# USAGE : rotate_video.rb filename
original = ARGV.shift
ext = File.extname(original)
rotated = original.gsub(ext, "[rotated]" + ext)
system "mencoder -vf rotate=1 -o '#{ rotated }' -oac copy -ovc lavc '#{ original }'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment