Created
June 2, 2009 16:54
-
-
Save elight/122357 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# A little hack that I threw together to help me bulk transcode content for our Apple TVs. | |
while !ARGV.empty? | |
infile = ARGV.shift | |
outfile = infile[0..-5] + ".mp4" | |
cmd = "mencoder -profile appletv-mod \"#{infile}\" -o \"/home/evan/Desktop/Drobo/Movies/#{outfile}\"" | |
puts cmd | |
t0 = Time.now | |
puts "Encoding #{outfile}" | |
`#{cmd}` | |
puts "Encoded #{outfile} in #{Time.now - t0} seconds" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment