Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.30 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. input = ARGV[0]
  4. output = ARGV[1]
  5. tipo = ARGV[2]
  6.  
  7. t1 = Thread.new do
  8.     if tipo == "ogg" || tipo == "webm"
  9.         system("avconv -i " + input + " " + output) #ogg ou #webm
  10.     elsif tipo == "mp4"
  11.         system("avconv -i " + input + " -c copy " + output) #mp4
  12.     end;
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement