diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-13 19:54:39 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-13 19:54:39 +0200 |
| commit | 6dae756fb447a8cd978b1427f9b6a6abfc79e935 (patch) | |
| tree | 0ae4350c286d2f2cd9df0df8454f0f16effbf0fa | |
| parent | 4e9dd6aec7aa75129c09e66812f2de578741011f (diff) | |
no_symlinkS
| -rwxr-xr-x | dir-to-movie.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dir-to-movie.pl b/dir-to-movie.pl index 718e7ff..5a631f0 100755 --- a/dir-to-movie.pl +++ b/dir-to-movie.pl @@ -32,7 +32,6 @@ if (! -e "$path/$tag") { } chdir("$path/$tag"); -print `pwd`; my $i = 0; my $ls = `ls -1v *.png`; @@ -65,7 +64,9 @@ if ($tag =~ /\//) { $tag =~ s/\//_/g; } -my $ffmpeg = `ffmpeg -i ./tmp/frame_%05d.png -y -c:v libx264 -vf fps=25 -pix_fmt yuv420p -s 1024x512 $parent_dir/$path/$tag.mp4`; +mkdir("$parent_dir/renders"); + +my $ffmpeg = `ffmpeg -i ./tmp/frame_%05d.png -y -c:v libx264 -vf fps=25 -pix_fmt yuv420p -s 1024x512 $parent_dir/renders/$tag.mp4`; my @lines = split("\n", $ffmpeg); for my $line (@lines) { |
