Bug 452594 - Audio CDs produced with K3B are producing discs with no sound when the FLAC source file has abnormal characters in its name
Summary: Audio CDs produced with K3B are producing discs with no sound when the FLAC s...
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: Audio Project (show other bugs)
Version: 21.12.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: k3b developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-14 02:25 UTC by 0x10c961
Modified: 2022-04-14 22:55 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Difference in filetype descriptions (7.78 KB, image/png)
2022-04-14 02:25 UTC, 0x10c961
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 0x10c961 2022-04-14 02:25:56 UTC
Created attachment 148151 [details]
Difference in filetype descriptions

SUMMARY
***
Audio CDs produced with K3B are producing discs with no sound when the source file has abnormal/foreign characters in its name. E.G. " ü " "ラ" " ê " etc, and the source file is of the FLAC file format
***

STEPS TO REPRODUCE
1. Create a new audio CD project with K3B
2. Add a track with a foreign character in the *filename* (not track title metadata, the actual filename)
3. burn the disc
4. playback the disc in a CD Player, or rip the data from the disc onto a computer
5. Observe no sound if playing on a CD player, or empty file produced from ripping the disc

OBSERVED RESULT
When playing the disc in a CD player, or when attempting to rip the music from the disc back onto a computer, the resulting file will produce only silence/static (when played in a CD player), or produce a very small file with only metadata (about 40KB) and no audio data when ripped to a computer.

EXPECTED RESULT
The disc should play the burned music, and the tracks should rip correctly to a computer with actual audio data in them.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux (x86-64) release 5.16.18-1-MANJARO
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
During the actual burning process, the progress bar shows that megabytes of data is being written to the disk for the malfunctioning tracks, these tracks appear to be "empty" and produce no sound when played.

In the bottom of the K3B window where it lists the filetype of the sourcefile, FLAC files show up as just "FLAC" for the file type when there is a foreign character in the filename, but show up as "FLAC (Free Lossless Audio Codec)" from files without foreign characters in them. (See attached screenshot) This might be related to the bug.

If I transcode the FLAC source with foreign characters to any other supported format (e.g. mp3, ogg, wav), then use those as the source for burning to the disk, the corresponding tracks work perfectly.

If I remove any foreign characters from the filenames of the FLAC source files before importing them into the audio project, they will also burn to the disc and work perfectly (and not show up as just "FLAC" in the file type, as described above).
Comment 1 Albert Astals Cid 2022-04-14 22:49:02 UTC
abnormal/foreign?

You need to learn more words
Comment 2 Albert Astals Cid 2022-04-14 22:51:28 UTC
https://invent.kde.org/multimedia/k3b/-/merge_requests/28
Comment 3 Albert Astals Cid 2022-04-14 22:55:43 UTC
Git commit 99252d0957ffb865b93ce5cd13d8f37a70f40d0d by Albert Astals Cid.
Committed on 14/04/2022 at 22:50.
Pushed by aacid into branch 'release/22.04'.

flac: Work on files with non latin1 characters

M  +1    -1    plugins/decoder/flac/k3bflacdecoder.cpp

https://invent.kde.org/multimedia/k3b/commit/99252d0957ffb865b93ce5cd13d8f37a70f40d0d
Comment 4 Albert Astals Cid 2022-04-14 22:55:51 UTC
Git commit f5e662460a0b16b36aeccf3460ee9b789bd61c2b by Albert Astals Cid.
Committed on 14/04/2022 at 22:50.
Pushed by aacid into branch 'release/22.04'.

flac: Catch FLAC::Metadata::get_streaminfo failing

M  +4    -1    plugins/decoder/flac/k3bflacdecoder.cpp

https://invent.kde.org/multimedia/k3b/commit/f5e662460a0b16b36aeccf3460ee9b789bd61c2b