Menu

#1494 Impossible to import audio files

None
closed
nobody
1
2016-02-15
2016-01-27
MichelV
No

Version 15.12 Qt version 4.8.6 Build key -1
When I try to add any audio file from audio files manager I get te message "Failed to add file. Abnormal file. Failed converting or resampling imported file." (Translated from French, maybe not exactly the same message on an English system)
I tried with wav, flac or ogg files with different sampling rates, same message, same failure.

Related

Bugs: #1503

Discussion

  • D. Michael McIntyre

    I tried for myself. I had no problem importing .wav, .flac, .ogg files. I got the same error as you when I tried to import an .mp3, but I didn't think that would work, and it isn't a surprise.

    This is probably a case of a useless error message. A helpful error message would probably advise you to install some missing third-party utility. It has been years since I last looked at the audio file importer, and I don't remember exactly how it works.

    I'll have a look.

     
  • D. Michael McIntyre

    I had a look. Loading an .mp3 fails, and here's what that looks like in the command line debug stream:

    WavFileReadStream::initialize: Failed to open file "blah.mp3" (File contains data in an unknown format.)

    Loading a .wav file works, and it looks like this:

    WavFileWriteStream::initialize: Opened output file blah.wav for writing

    That's as far as I have time to follow this rabbit. It looks like a nasty one to untangle, and this won't be solved quickly.

     
  • MichelV

    MichelV - 2016-01-27

    Ok, thanks for trying. Another user on linuxmao.org had the same problem after updating Rosegarden.

     
  • Charade

    Charade - 2016-01-27

    HI! I am the other user. I also tried to add an audio file which was already known by the audio files manager (so I would have it twice in the list of audio files if it had worked) and it refused it. I don't know whether there is a check in order to avoid duplications, but the error message was the one about sampling rate and format.

     
  • MichelV

    MichelV - 2016-01-27

    I did the following test :

    • open Rosegarden, record a sound from microphone in an audio track. Works fine.
    • export the sound as a wav file. Works ok. The file can be opened in Audacity.
    • close Rosegarden, re-open it an try to import the file I just created : same error message as described in previous posts, and failure.
     
  • Ted Felix

    Ted Felix - 2016-01-27

    Maybe rosegarden was built without libsndfile or libsamplerate? I'm not sure if that's even possible, but it's something to check anyway.

     
  • MichelV

    MichelV - 2016-01-27

    I'm using rosegarden provided with KXStudio, I didn't build it myself.
    If I ask
    ldd /usr/bin/rosegarden
    there's neither libsndfile nor libsamplerate in result.

     
  • Charade

    Charade - 2016-01-27

    I am using the same package and I can't see these librairies either.

     
  • Ted Felix

    Ted Felix - 2016-01-27

    Here's what I get with my development version:

    $ ldd build/rosegarden | grep sndfile
    libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007ff1f1d66000)

    I guess this means the KXStudio build of rg was done without libsndfile. That would certainly cause trouble. You might want to try building it yourself. Make sure you have the libsndfile development files installed (and all the others in the build requirements). And carefully check the output of cmake to see if anything was missed.

    A bug report against the rosegarden package in KXStudio is probably in order.

     
  • MichelV

    MichelV - 2016-01-28

    Ok. I opened a bug report on KXStudio launchpad :
    https://bugs.launchpad.net/kxstudio/+bug/1538937

     
  • Ted Felix

    Ted Felix - 2016-02-10
    • labels: Audio, Import --> Import, audio
     
  • D. Michael McIntyre

    Contacted KXStudio to advise them to look for the impending 16.02 release, and to confess that we are responsible for this one. Yves corrected this issue in revision 14518. See [#1503] for details.

     

    Related

    Bugs: #1503


    Last edit: D. Michael McIntyre 2016-02-15
  • D. Michael McIntyre

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB