Skip to content

Instantly share code, notes, and snippets.

@elight
Created Jun 2, 2009
Embed
What would you like to do?
#!/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