Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!perl
  2.  
  3. use strict;
  4. use warnings;
  5. use v5.20.1;
  6.  
  7. my $outdir = 'E:\\TVTest\\out';
  8. my $cmd = qq{TsSplitter -EIT -SD -1SEG -CS -OUT "$outdir" -GOP "%s"};
  9.  
  10. if (@ARGV) {
  11. foreach (@ARGV) {
  12. next unless /\.ts$/i;
  13. say sprintf $cmd, $_;
  14. }
  15. }
  16. else {
  17. opendir my $d, '.' or die $!;
  18. while (readdir $d) {
  19. next unless /\.ts$/i;
  20. say sprintf $cmd, $_;
  21. }
  22. closedir $d;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement