From 0ecd9fcea8e7426c003baadc0cd67b62e5cf382f Mon Sep 17 00:00:00 2001 From: jules on spawn Date: Tue, 10 Apr 2018 12:40:06 +0200 Subject: ffmpeg less verbose, get should append suffix --- datasets/get.pl | 3 ++- datasets/split44k.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'datasets') diff --git a/datasets/get.pl b/datasets/get.pl index 8b821c6..531b9f7 100755 --- a/datasets/get.pl +++ b/datasets/get.pl @@ -1,4 +1,5 @@ #!/usr/bin/perl -foreach (@ARGV){ system('/usr/bin/wget', 'https://asdf.us/neural/' . $_); } +foreach (@ARGV){ + my $s = $_; if ($s !~/\..*$/) { $s .= ".wav"; } system('/usr/bin/wget', 'https://neural:spawn5@asdf.us/neural/' . $s); } diff --git a/datasets/split44k.sh b/datasets/split44k.sh index 4884af1..b679d29 100755 --- a/datasets/split44k.sh +++ b/datasets/split44k.sh @@ -11,7 +11,7 @@ dataset_path=$3 converted=".temp2.wav" rm -f $converted -ffmpeg -i $fn -ac 1 -ar 44100 $converted +ffmpeg -hide_banner -loglevel error -i $fn -ac 1 -ar 44100 $converted mkdir $dataset_path length=$(ffprobe -i $converted -show_entries format=duration -v quiet -of csv="p=0") -- cgit v1.2.3-70-g09d2