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.
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.
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.
Ok, thanks for trying. Another user on linuxmao.org had the same problem after updating Rosegarden.
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.
I did the following test :
Maybe rosegarden was built without libsndfile or libsamplerate? I'm not sure if that's even possible, but it's something to check anyway.
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.
I am using the same package and I can't see these librairies either.
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.
Ok. I opened a bug report on KXStudio launchpad :
https://bugs.launchpad.net/kxstudio/+bug/1538937
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:
#1503Last edit: D. Michael McIntyre 2016-02-15