summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-22 17:31:49 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-22 17:31:49 +0200
commita77ddb5896fc69a6afdf5800a27f5159478972bf (patch)
tree203c1a1e7abeb69fe911199ae8599be5d3b5ed1d
parent1d6c3cee5d6062c94852551037dc36c770bb69d8 (diff)
getttttt
-rwxr-xr-xget.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/get.pl b/get.pl
index ac6d0bd..5f4cf78 100755
--- a/get.pl
+++ b/get.pl
@@ -68,8 +68,13 @@ if ($video_fn) {
print "Video filename: $video_fn\n";
my $tag = sanitize($video_fn);
print "creating dataset: $tag\n";
+ my @partz = split(".", $video_fn);
+ my $ext = $partz[$#partz];
+ my $new_fn = $tag . '.' . $ext;
+ system('mv', $video_fn, $new_fn);
+ print "new video filename: $video_fn\n";
mkdir($tag);
- system('ffmpeg', '-i', $video_fn, "-filter:v", "scale=1024x512", $tag . '/frame_%05d.png');
+ system('ffmpeg', '-i', $new_fn, "-filter:v", "scale=1024x512", $tag . '/frame_%05d.png');
print "created dataset: $tag\n";
}