Skip to content

Instantly share code, notes, and snippets.

Created Jun 2, 2009
What would you like to do?
# 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 =
puts "Encoding #{outfile}"
puts "Encoded #{outfile} in #{ - t0} seconds"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment