bbc / audiowaveform

C++ program to generate waveform data and render waveform images from audio files
https://waveform.prototyping.bbc.co.uk
GNU General Public License v3.0
1.93k stars 242 forks source link

Spaces on input filename or path causes no output #162

Closed Don1948 closed 2 years ago

Don1948 commented 2 years ago

Any spaces in the filename or its path will produce no output. Can this be fixed?

chrisn commented 2 years ago

Is there any error reported? If the filename has spaces, you can put the file name in quotes. For example, on Windows:

audiowaveform -i "test file.mp3" -o "test file.png"
Don1948 commented 2 years ago

Chrisn.

Putting the file name in quotes is the first thing I did and it did not work. Shell "audiowaveform1 -i "Track -1.mp3" -o Track-1.dat" Shell "audiowaveform1 -i " & "Track -1.mp3" & " -o Track-1.dat"

But I tried this and it did work: Shell "audiowaveform1 -i ""Track -1.mp3"" -o Track-1.dat"

Thank you for your help and prompt answer.


From: Chris Needham @.> Sent: Wednesday, February 16, 2022 11:52 AM To: bbc/audiowaveform @.> Cc: Don1948 @.>; Author @.> Subject: Re: [bbc/audiowaveform] Spaces on input filename or path causes no output (Issue #162)

Is there any error reported? If the filename has spaces, you can put the file name in quotes. For example, on Windows:

audiowaveform -i "test file.mp3" -o "test file.png"

— Reply to this email directly, view it on GitHubhttps://github.com/bbc/audiowaveform/issues/162#issuecomment-1042104489, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXZVBJ2WTUJC437P4TH3WCLU3P6A7ANCNFSM5OSN7GDA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

chrisn commented 2 years ago

It works fine if you type on the command line., so the problem must lie elsewhere. I don't recognise "Shell ..." so I don't know which tool you're using. The only thing I can see from the examples is that you have nested quotes, so I'd check how these are handled.