From fce8a69e04876379794d91e7cdc0d74ab8a36c80 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 20 Jun 2018 15:05:53 +0200 Subject: live path stuff and dir 2movie --- dir-to-movie.pl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dir-to-movie.pl') diff --git a/dir-to-movie.pl b/dir-to-movie.pl index 7bc48c5..7e74eec 100755 --- a/dir-to-movie.pl +++ b/dir-to-movie.pl @@ -3,6 +3,13 @@ my $tag = $ARGV[0] or "pix2pixhd_" . time; $tag =~ s/\....$//; +if (! -e "results/$tag") { + print "usage: $0 [tag]\n"; + exit(1); +} + +chdir('results/$tag'); + my $i = 0; my $ls = `ls -1v *.png`; my @lines = split('\n', $ls); @@ -28,4 +35,5 @@ system("ffmpeg", END { system('rm', '-rf', 'tmp'); + chdir('../..'); } -- cgit v1.2.3-70-g09d2