Bug 399056

Summary: Impossible to add certain audio files to an audio CD project. K3b says that they are unsupported.
Product: [Applications] k3b Reporter: Patrick Silva <bugseforuns>
Component: Audio ProjectAssignee: k3b developers <k3b>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, lukas, michalm, trueg, viktor.mastoridis
Priority: NOR    
Version: 19.12   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: error message
WAV test file

Description Patrick Silva 2018-09-25 14:40:54 UTC
Created attachment 115227 [details]
error message

STEPS TO REPRODUCE
1. open K3b, create an audio cd project
2. add some m4a file to the project
3. 

OBSERVED RESULT
Sometimes K3b shows an error message when I try to add a m4a file to an audio cd project. See the screenshot.

EXPECTED RESULT
m4a file should be added to the project without any error message.

SOFTWARE VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.13.90
Qt Version: 5.11.2
KDE Frameworks Version: 5.50.0
Kernel Version: 4.18.9-arch1-1-ARCH
 

ADDITIONAL INFORMATION
K3b does not show such error to all m4a files.
Comment 1 Patrick Silva 2020-02-02 16:40:24 UTC
Created attachment 125618 [details]
WAV test file

This error message also can appear when I try to add a WAV file to an audio CD project.
I'm attaching a test file.
Comment 2 Albert Astals Cid 2020-02-04 22:22:08 UTC
Git commit 2491cc70f9ffb129cf49633cbdc4f0d77789677d by Albert Astals Cid.
Committed on 04/02/2020 at 22:21.
Pushed by aacid into branch 'release/19.12'.

Accept WAV files in K3bLibsndfileDecoderFactory::canDecode

The comment said
   we exclude only WAVE as there is another plugin for this
i guess refering to the K3bWaveDecoder, but with the file from bug
399056 K3bWaveDecoder doesn't know how to handler it and
K3bLibsndfileDecoder does

Also K3bWaveDecoder is always running first than K3bLibsndfileDecoder in
AudioDecoderFactory::createDecoder so the new code is only really used
if the other one fails

M  +1    -2    plugins/decoder/libsndfile/k3blibsndfiledecoder.cpp

https://commits.kde.org/k3b/2491cc70f9ffb129cf49633cbdc4f0d77789677d
Comment 3 Patrick Silva 2020-02-05 00:58:14 UTC
Albert, I have just built source code of 19.12 branch on my system, now I can add the wav file to an audio project. Thank you. But the problem with certain m4a files persists. I can't add a test file here because copyright, can I send a link to it to your email? Thank you again.
Comment 4 Albert Astals Cid 2020-02-05 19:02:03 UTC
(In reply to Patrick Silva from comment #3)
> Albert, I have just built source code of 19.12 branch on my system, now I
> can add the wav file to an audio project. Thank you. But the problem with
> certain m4a files persists. I can't add a test file here because copyright,
> can I send a link to it to your email? Thank you again.

Sure
Comment 5 Albert Astals Cid 2020-02-05 23:43:29 UTC
Git commit 24d966d4fa065ab1176b329d0689673a54eea12c by Albert Astals Cid.
Committed on 05/02/2020 at 23:43.
Pushed by aacid into branch 'release/19.12'.

K3bFFMpegFile: Support files with more than one stream

If only one of those streams is audio

M  +27   -13   plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp

https://commits.kde.org/k3b/24d966d4fa065ab1176b329d0689673a54eea12c
Comment 6 Patrick Silva 2020-02-06 01:30:00 UTC
*** Bug 400553 has been marked as a duplicate of this bug. ***
Comment 7 Patrick Silva 2020-02-06 01:35:13 UTC
*** Bug 394836 has been marked as a duplicate of this bug. ***
Comment 8 Patrick Silva 2020-02-06 12:30:12 UTC
Thank you Albert.
I can add and burn wav files now.
I also can add m4a files but K3b fails to burn them, it says
"Error while decoding audio tracks".

Probably because bug 119302.