diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-11-12 21:23:28 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-11-12 21:23:28 +0100 |
| commit | 389d3270a84f381996c58f302e9cac5e783c333b (patch) | |
| tree | fd9bb4b84a0fbc9a62302ab11c4bb943be3f45cb | |
| parent | d0efaea49fb1dd04786881cb0ff0a48bdf64cda2 (diff) | |
fix
| -rwxr-xr-x | dir-to-movie.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dir-to-movie.pl b/dir-to-movie.pl index aff33d6..3222b1f 100755 --- a/dir-to-movie.pl +++ b/dir-to-movie.pl @@ -49,7 +49,7 @@ chdir("$path/$tag"); my $i = 0; -my @lines = read_dir('.') +my $lines = read_dir('.') my $pwd = `pwd`; chomp $pwd; $pwd .= '/'; @@ -57,7 +57,7 @@ print $pwd . "\n"; mkdir('./tmp'); -for my $line (sort @lines) { +for my $line (sort @$lines) { if ($line !~ /$prefix/) { next; } @@ -82,8 +82,8 @@ if ($tag =~ /\//) { my $ffmpeg = `ffmpeg -hide_banner -i ./tmp/frame_%05d.png -y -c:v libx264 -preset slow -crf 19 -vf fps=25 -pix_fmt yuv420p -s 1024x512 $parent_dir/renders/$tag.mp4`; -my @lines = split("\n", $ffmpeg); -for my $line (@lines) { +my @ffmpeg_lines = split("\n", $ffmpeg); +for my $line (@ffmpeg_lines) { print $line . "\n"; } |
