Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2014
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.29 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4.  
  5. die if @ARGV != 3;
  6. unless(($ARGV[1] and $ARGV[2]) =~ /(\d+?\:\d+?\:\d)/) { die }
  7.  
  8. my($videoname,$from,$to) = @ARGV;
  9.  
  10. my $prog = "ffmpeg -i $videoname -ss $from.000 -to $to.000 -c:v libvpx -crf 15 -b:v 1500K -vf scale=640:-1 $videoname.webm";
  11.  
  12. system($prog);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement