summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdir-to-movie.pl5
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) {