Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- input = ARGV[0]
- output = ARGV[1]
- tipo = ARGV[2]
- t1 = Thread.new do
- if tipo == "ogg" || tipo == "webm"
- system("avconv -i " + input + " " + output) #ogg ou #webm
- elsif tipo == "mp4"
- system("avconv -i " + input + " -c copy " + output) #mp4
- end;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement