diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-09-13 20:10:10 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-09-13 20:10:10 +0200 |
| commit | b87ba417108de1085030c511561e3d1fcae92ed6 (patch) | |
| tree | 45e7610f1905fe892d752bf20be13bb25a64f432 | |
| parent | cf9887238e074c32ba028415979d8ab743194790 (diff) | |
print curl output
| -rwxr-xr-x | dir-to-movie.pl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dir-to-movie.pl b/dir-to-movie.pl index c0cfb45..f9cfc13 100755 --- a/dir-to-movie.pl +++ b/dir-to-movie.pl @@ -70,16 +70,14 @@ my $ffmpeg = `ffmpeg -i ./tmp/frame_%05d.png -y -c:v libx264 -vf fps=25 -pix_fmt my @lines = split("\n", $ffmpeg); for my $line (@lines) { - print $line; + print $line . "\n"; } + if (defined $endpoint) { print("upload to $endpoint\n"); print("$module $tag $parent_dir/renders/$tag.mp4\n"); my $curl = `curl -X POST -F module=$module -F activity=live -F generated=true -F dataset=$tag -F datatype=video -F file=@$parent_dir/renders/$tag.mp4 $endpoint` - my @lines = split("\n", $curl); - for my $line (@lines) { - print $line; - } + print $curl . "\n"; # system("curl", # "-X", "POST", |
