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

 
 

bug #51859: audio utilities should display clearer error message

Submitted by:  Zilu Tian <zilutian>
Submitted on:  Sat 26 Aug 2017 06:07:07 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Missed Error or Warning
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission 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>
Project 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>
Project Member
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>
Project Member
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>
Project 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>
Project Administrator
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>
Project Administrator
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>
Project Administrator
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:

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>
Project Member
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 File(s):
   
   
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
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by lostbard (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by mmuetzel (Updated the item)
  • -unavailable- added by zilutian (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 16 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 29 Aug 2017 03:02:22 PM UTCjweStatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Mon 28 Aug 2017 04:58:01 PM UTCmmuetzelAttached File-=>Added bug51859_audioread_error_message.patch, #41688
      StatusIn Progress=>Patch Submitted
    Mon 28 Aug 2017 09:16:50 AM UTCmmuetzelItem GroupIncorrect Result=>Missed Error or Warning
      StatusInvalid=>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
    Sun 27 Aug 2017 05:05:46 PM UTCmtmillerStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Sun 27 Aug 2017 04:08:28 PM UTCmtmillerCategoryGUI=>Octave Function
    Sun 27 Aug 2017 02:17:25 PM UTCmmuetzelStatusNone=>Need Info
    Sun 27 Aug 2017 02:00:33 PM UTCmmuetzelAttached File-=>Added audioinfo2.cc, #41679
    Sat 26 Aug 2017 06:07:07 PM UTCzilutianAttached File-=>Added bug.png, #41669

    Back to the top


    Powered by Savane 3.1-cleanup1