summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrhimport-dn10
1 files changed, 10 insertions, 0 deletions
diff --git a/rhimport-dn b/rhimport-dn
index 0c5fb8e..47933f4 100755
--- a/rhimport-dn
+++ b/rhimport-dn
@@ -191,6 +191,16 @@ unless($IGNORE_HEADLINE) {
print "\n";
}
+print "converting $file ... ";
+my $infile = $file;
+$file =~ s/\.mp3$/.wav/;
+system("ffmpeg", "-i", $infile, "-acodec", "pcm_s16le", $file);
+if( $! != 0) {
+ die "ffmpeg returned with error: " . $!;
+}
+print "ok\n";
+unlink $infile;
+
print "will import $file to dropbox $dropbox (cart=$to_cart)\n\n";
my $error_cb = sub {