diff options
Diffstat (limited to 'rhimport-eu')
-rwxr-xr-x | rhimport-eu | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rhimport-eu b/rhimport-eu index c11f9c7..4678846 100755 --- a/rhimport-eu +++ b/rhimport-eu @@ -164,6 +164,16 @@ if($file eq "" || !(-e "$file")) { exit 1; } +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"; my $error_cb = sub { |