bugGNU Octave - Bugs: bug #51859, audio utilities should display...

 
 

bug #51859: audio utilities should display clearer error message

Submitter:  Zilu Tian <zilutian>
Submitted:  Sat 26 Aug 2017 06:07:07 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 29 Aug 2017 03:02:22 PM UTC, comment #10: 

Markus:  I pushed your changeset here:

http://hg.savannah.gnu.org/hgweb/octave/rev/3dd89a7b92c8

John W. Eaton <jwe>
Group administrator
Mon 28 Aug 2017 04:58:01 PM UTC, comment #9: 

With the attached patch, the error message from libsndfile is also displayed if an audio file cannot be opened.

(file #41688)

Markus Mützel <mmuetzel>
Group administrator
Mon 28 Aug 2017 09:16:50 AM UTC, comment #8: 

It should be possible to display libsndfile's error message in these cases. That should give the user a better hint as to what is going on.
I can provide a patch today or in the next few days if no one else beats me on it.
Re-purposing that bug report for it.

Markus Mützel <mmuetzel>
Group administrator
Sun 27 Aug 2017 11:52:52 PM UTC, comment #7: 

I have seen this message before on a wav file - it just shows the failed to open file message which really is misleading as the issue is more of 'invalid format' than can't open the file.

It would be nice o report a litle more verbose message in this case so that the use knows what the real issue is.

John Donoghue <lostbard>
Group Member
Sun 27 Aug 2017 05:06:46 PM UTC, comment #6: 

Thank you for helping to test Octave's audio functions.

Mike Miller <mtmiller>
Group Member
Sun 27 Aug 2017 05:04:34 PM UTC, comment #5: 

Hello,

Thanks for the clarification! I downloaded another .wav sample file to test and audioread command works fine this time. I must have made a mistake in format conversion. Thank you for the help!

Zilu Tian <zilutian>
Sun 27 Aug 2017 04:59:14 PM UTC, comment #4: 

Being able to open the file in Windows Media Player does not guarantee that it is a free and open format that is supported by Octave.

There is no wav file attached to this report, it might be over the max attachment size, maybe you can post it somewhere else and provide a link.

Mike Miller <mtmiller>
Group Member
Sun 27 Aug 2017 04:53:29 PM UTC, comment #3: 

Hello,

With the additional file, it now produces the error message
"File contains data in an unknown format".

I can open the file fine in Windows Media Player and other music player. I have attached the file in the attachment.

Thanks!

Zilu Tian <zilutian>
Sun 27 Aug 2017 04:08:28 PM UTC, comment #2: 

Also please attach the 08.wav file to this bug report if it is possible.

Mike Miller <mtmiller>
Group Member
Sun 27 Aug 2017 02:00:33 PM UTC, comment #1: 

Octave uses libsndfile to read and write audio files. Unfortunately, it does not support mp3 (yet). [1]

With respect to the .wav file, could you please download the attached file and store it in the same folder as your .wav files. Then try the following in Octave:

mkoctfile audioinfo2.cc -lsndfile -DHAVE_SNDFILE
audioinfo2 ('08.wav')


That should produce a more verbose error message. Please copy and paste it here.

[1]: http://www.mega-nerd.com/libsndfile/FAQ.html#Q020

(file #41679)

Markus Mützel <mmuetzel>
Group administrator
Sat 26 Aug 2017 06:07:07 PM UTC, original submission:  

I am trying to work on an audio file but Octave wouldn't read in the source file and return the error message "audioinfo: failed to open file 08.wav". I also tried audioread() which results in the same error message.

Zilu Tian <zilutian>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #41688:  bug51859_audioread_error_message.patch added by mmuetzel (1KiB - application/octet-stream)
file #41679:  audioinfo2.cc added by mmuetzel (4KiB - application/octet-stream)
file #41669:  bug.png added by zilutian (40KiB - image/png - screen shot of the error message)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by mmuetzel (Updated the item)
  • -email is unavailable- added by zilutian (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 16 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-29 jwe StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2017-08-28 mmuetzel Attached File- Added bug51859_audioread_error_message.patch, #41688
        StatusIn Progress Patch Submitted
    2017-08-28 mmuetzel Item GroupIncorrect Result Missed Error or Warning
        StatusInvalid / Not an Octave Bug In Progress
        Open/ClosedClosed Open
        Release4.2.1 dev
        Operating SystemMicrosoft Windows Any
        Summaryaudio utilities fail to work in GUI on Windows 10 audio utilities should display clearer error message
    2017-08-27 mtmiller StatusNeed Info Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2017-08-27 mtmiller CategoryGUI Octave Function
    2017-08-27 mmuetzel StatusNone Need Info
    2017-08-27 mmuetzel Attached File- Added audioinfo2.cc, #41679
    2017-08-26 zilutian Attached File- Added bug.png, #41669

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code