Can't read certain FLAC files #1968

Closed
opened 2026-02-06 21:35:15 +03:00 by OVERLORD · 24 comments
Owner

Originally created by @Jerroder on GitHub (Jul 28, 2020).

Originally assigned to: @gnattu on GitHub.

Describe the bug
I can play all of my FLAC music but I have one album for which I get :

Playback Error
This client isn't compatible with the media and the server isn't sending a compatible media format.

System (please complete the following information):

  • OS: Debian 10
  • Virtualization: KVM
  • Clients: Browser
  • Browser: Firefox 78.1.0esr
  • Jellyfin Version: 10.6.1 but also present in 10.5
  • Playback: Direct Play I believe
  • Installed Plugins: none,
  • Reverse Proxy: none
  • Base URL: none
  • Networking: LAN
  • Storage: local

Logs

[2020-07-28 15:44:07.497 +02:00] [INF] GetPostedPlaybackInfo profile: DeviceProfile { Name: null, Id: null, Identification: null, FriendlyName: null, Manufacturer: null, ManufacturerUrl: null, ModelName: null, ModelDescription: null, ModelNumber: null, ModelUrl: null, SerialNumber: null, EnableAlbumArtInDidl: False, EnableSingleAlbumArtLimit: False, EnableSingleSubtitleLimit: False, SupportedMediaTypes: "Audio,Photo,Video", UserId: null, AlbumArtPn: null, MaxAlbumArtWidth: 0, MaxAlbumArtHeight: 0, MaxIconWidth: null, MaxIconHeight: null, MaxStreamingBitrate: 8000000, MaxStaticBitrate: 8000000, MusicStreamingTranscodingBitrate: 128000, MaxStaticMusicBitrate: null, SonyAggregationFlags: null, ProtocolInfo: null, TimelineOffsetSeconds: 0, RequiresPlainVideoItems: False, RequiresPlainFolders: False, EnableMSMediaReceiverRegistrar: False, IgnoreTranscodeByteRangeRequests: False, XmlRootAttributes: [], DirectPlayProfiles: [DirectPlayProfile { Container: "opus", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "mp3", AudioCodec: "mp3", VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "aac", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "m4a", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "m4b", AudioCodec: "aac", VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "flac", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "webma", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "webm", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "wav", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "ogg", AudioCodec: null, VideoCodec: null, Type: Audio }], TranscodingProfiles: [TranscodingProfile { Container: "ts", Type: Audio, VideoCodec: null, AudioCodec: "aac", Protocol: "hls", EstimateContentLength: False, EnableMpegtsM2TsMode: False, TranscodeSeekInfo: Auto, CopyTimestamps: False, Context: Streaming, EnableSubtitlesInManifest: False, MaxAudioChannels: null, MinSegments: 0, SegmentLength: 0, BreakOnNonKeyFrames: False }], ContainerProfiles: [], CodecProfiles: [], ResponseProfiles: [], SubtitleProfiles: [] }
[2020-07-28 15:44:07.506 +02:00] [INF] User policy for "user". EnableAudioPlaybackTranscoding: True
[2020-07-28 15:44:07.506 +02:00] [INF] RemoteClientBitrateLimit: 700000000, RemoteIp: "xx.xx.xx.xx", IsInLocalNetwork: True

Additional context
I passed two different FLAC files (one that works, one that doesn't) through MediaInfo to check if it was a codec or bitrate issue or whatever but they seem identical. The one that works:

Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 6 min 35 s
Bit rate mode                            : Variable
Bit rate                                 : 860 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 40.6 MiB (99%)
Writing library                          : libFLAC 1.3.2 (UTC 2017-01-01)

The one that doesn't:

Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 3 min 46 s
Bit rate mode                            : Variable
Bit rate                                 : 871 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 23.5 MiB (93%)
Writing library                          : libFLAC 1.2.1 (UTC 2007-09-17)
Originally created by @Jerroder on GitHub (Jul 28, 2020). Originally assigned to: @gnattu on GitHub. **Describe the bug** I can play all of my FLAC music but I have one album for which I get : ```` Playback Error This client isn't compatible with the media and the server isn't sending a compatible media format. ```` **System (please complete the following information):** - OS: Debian 10 - Virtualization: KVM - Clients: Browser - Browser: Firefox 78.1.0esr - Jellyfin Version: 10.6.1 but also present in 10.5 - Playback: Direct Play I believe - Installed Plugins: none, - Reverse Proxy: none - Base URL: none - Networking: LAN - Storage: local **Logs** ```` [2020-07-28 15:44:07.497 +02:00] [INF] GetPostedPlaybackInfo profile: DeviceProfile { Name: null, Id: null, Identification: null, FriendlyName: null, Manufacturer: null, ManufacturerUrl: null, ModelName: null, ModelDescription: null, ModelNumber: null, ModelUrl: null, SerialNumber: null, EnableAlbumArtInDidl: False, EnableSingleAlbumArtLimit: False, EnableSingleSubtitleLimit: False, SupportedMediaTypes: "Audio,Photo,Video", UserId: null, AlbumArtPn: null, MaxAlbumArtWidth: 0, MaxAlbumArtHeight: 0, MaxIconWidth: null, MaxIconHeight: null, MaxStreamingBitrate: 8000000, MaxStaticBitrate: 8000000, MusicStreamingTranscodingBitrate: 128000, MaxStaticMusicBitrate: null, SonyAggregationFlags: null, ProtocolInfo: null, TimelineOffsetSeconds: 0, RequiresPlainVideoItems: False, RequiresPlainFolders: False, EnableMSMediaReceiverRegistrar: False, IgnoreTranscodeByteRangeRequests: False, XmlRootAttributes: [], DirectPlayProfiles: [DirectPlayProfile { Container: "opus", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "mp3", AudioCodec: "mp3", VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "aac", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "m4a", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "m4b", AudioCodec: "aac", VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "flac", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "webma", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "webm", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "wav", AudioCodec: null, VideoCodec: null, Type: Audio }, DirectPlayProfile { Container: "ogg", AudioCodec: null, VideoCodec: null, Type: Audio }], TranscodingProfiles: [TranscodingProfile { Container: "ts", Type: Audio, VideoCodec: null, AudioCodec: "aac", Protocol: "hls", EstimateContentLength: False, EnableMpegtsM2TsMode: False, TranscodeSeekInfo: Auto, CopyTimestamps: False, Context: Streaming, EnableSubtitlesInManifest: False, MaxAudioChannels: null, MinSegments: 0, SegmentLength: 0, BreakOnNonKeyFrames: False }], ContainerProfiles: [], CodecProfiles: [], ResponseProfiles: [], SubtitleProfiles: [] } [2020-07-28 15:44:07.506 +02:00] [INF] User policy for "user". EnableAudioPlaybackTranscoding: True [2020-07-28 15:44:07.506 +02:00] [INF] RemoteClientBitrateLimit: 700000000, RemoteIp: "xx.xx.xx.xx", IsInLocalNetwork: True ```` **Additional context** I passed two different FLAC files (one that works, one that doesn't) through MediaInfo to check if it was a codec or bitrate issue or whatever but they seem identical. The one that works: ```` Format : FLAC Format/Info : Free Lossless Audio Codec Duration : 6 min 35 s Bit rate mode : Variable Bit rate : 860 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 44.1 kHz Bit depth : 16 bits Compression mode : Lossless Stream size : 40.6 MiB (99%) Writing library : libFLAC 1.3.2 (UTC 2017-01-01) ```` The one that doesn't: ```` Format : FLAC Format/Info : Free Lossless Audio Codec Duration : 3 min 46 s Bit rate mode : Variable Bit rate : 871 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 44.1 kHz Bit depth : 16 bits Compression mode : Lossless Stream size : 23.5 MiB (93%) Writing library : libFLAC 1.2.1 (UTC 2007-09-17) ````
OVERLORD added the bugconfirmed labels 2026-02-06 21:35:15 +03:00
Author
Owner

@neteroster commented on GitHub (Oct 18, 2020):

I also met the problem and I found that after clearing the cover of the FLAC file, it can be played properly.

@neteroster commented on GitHub (Oct 18, 2020): I also met the problem and I found that after clearing the cover of the FLAC file, it can be played properly.
Author
Owner

@Jerroder commented on GitHub (Oct 18, 2020):

I suspect that the writing library is too old (2007). Re-encoding the file with ffmpeg and -c:a flac has solved this.

@Jerroder commented on GitHub (Oct 18, 2020): I suspect that the writing library is too old (2007). Re-encoding the file with ffmpeg and `-c:a flac` has solved this.
Author
Owner

@Salamandar commented on GitHub (Feb 1, 2021):

Same issue here. Also, the logs pointed to an artwork issue, and clearing the cover in the audio metadata solved the issue. Here are 2 images :

  • one that works
  • one that doesn't

EDIT : I guess the image file is NOT the issue because i added it back into the flac file metadatas, and it works. I guess the issue is linked to the version of the encoder / metadata editor.

As a matter of fact, the "non-working" files are fully re-written by Easytag, but editing them again is almost instantaneous (like only some part of the file had to be written).

Also, changing ANY metadata in the audio file (in my case, the total track count) solves the issue.

EDIT 2 : I tried using metaflac to remove/add fields, but I could not manage to "make a file work". Removing lyrics, picture, nothing worked. For now, I only have Easytag to solve this.

@Salamandar commented on GitHub (Feb 1, 2021): Same issue here. Also, the logs pointed to an artwork issue, and clearing the cover in the audio metadata solved the issue. Here are 2 images : * one that works <img src="https://user-images.githubusercontent.com/6552989/106486554-0ec9e200-64b2-11eb-853a-3a78a1ffe54f.jpg" alt="" width="200" /> * one that doesn't <img src="https://user-images.githubusercontent.com/6552989/106486560-112c3c00-64b2-11eb-88df-f64263385b75.jpg" alt="" width="200" /> EDIT : I guess the image file is NOT the issue because i added it back into the flac file metadatas, and it works. I guess the issue is linked to the version of the encoder / metadata editor. As a matter of fact, the "non-working" files are fully re-written by Easytag, but editing them again is almost instantaneous (like only some part of the file had to be written). Also, changing ANY metadata in the audio file (in my case, the total track count) solves the issue. EDIT 2 : I tried using metaflac to remove/add fields, but I could not manage to "make a file work". Removing lyrics, picture, nothing worked. For now, I only have Easytag to solve this.
Author
Owner

@Jerroder commented on GitHub (Feb 1, 2021):

Good thing you bring this up, I just checked and after re-encoding with ffmpeg with -c:a copy, the pixel format went from yuvj420p (for the non-working file) to rgb24 (for the same file, re-encoded) so I guess that is the problem since nothing else changed.

@Jerroder commented on GitHub (Feb 1, 2021): Good thing you bring this up, I just checked and after re-encoding with ffmpeg with `-c:a copy`, the pixel format went from yuvj420p (for the non-working file) to rgb24 (for the same file, re-encoded) so I guess that is the problem since nothing else changed.
Author
Owner

@Salamandar commented on GitHub (Feb 1, 2021):

@rderensy The image is not the issue here. I have 2 files with the SAME metaflac --list output (PICTURE block included), but one is working (edited with easytag) the other is not.

Although i confirm that for me too, ffmpeg -c:a copy fixes the issue and even converts the image from jpeg to png.

EDIT :
I think all those "buggy" musics are the ones edited by my ancient music player, GMusicBrowser, that added lyrics to the metadatas. Not sure, but if @rderensy had the same software or equivalent, that would validate my theory.

EDIT 2 : Well, editing the tags with Easytag or FFMPEG solves the issue for the web client and Android TV, but the tracks are still unreadable using Gelly (the excellent Android client based on Phonograph). That may be an unrelated issue ?

EDIT 3 : That issue is really weird. But at least I found a way to :

  • Make it work everywhere
  • keep cover art as jpeg (8 times smaller than png)
  • keep the lyrics even if they won't be really useful

A flac reencode was necessary. -c:a copy was not enough.
This code is untested, i manually used the ffmpeg command:

fix_flac_file() {
    file=$1 ; orig="${file}.orig"
    mv "$file" "$orig"
    ffmpeg -i "$orig" -c:a flac -c:v copy "$file"
    rm "$orig"
}
@Salamandar commented on GitHub (Feb 1, 2021): @rderensy The image is not the issue here. I have 2 files with the SAME `metaflac --list` output (PICTURE block included), but one is working (edited with easytag) the other is not. Although i confirm that for me too, ffmpeg -c:a copy fixes the issue and even converts the image from jpeg to png. EDIT : I think all those "buggy" musics are the ones edited by my ancient music player, GMusicBrowser, that added lyrics to the metadatas. Not sure, but if @rderensy had the same software or equivalent, that would validate my theory. EDIT 2 : Well, editing the tags with Easytag or FFMPEG solves the issue for the web client and Android TV, but the tracks are still unreadable using Gelly (the excellent Android client based on Phonograph). That may be an unrelated issue ? EDIT 3 : That issue is really weird. But at least I found a way to : * Make it work everywhere * keep cover art as jpeg (8 times smaller than png) * keep the lyrics even if they won't be really useful A flac reencode was necessary. `-c:a copy` was not enough. This code is untested, i manually used the ffmpeg command: fix_flac_file() { file=$1 ; orig="${file}.orig" mv "$file" "$orig" ffmpeg -i "$orig" -c:a flac -c:v copy "$file" rm "$orig" }
Author
Owner

@stale[bot] commented on GitHub (Jun 2, 2021):

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale[bot] commented on GitHub (Jun 2, 2021): This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on [Matrix or Social Media](https://docs.jellyfin.org/general/getting-help.html).
Author
Owner

@Jerroder commented on GitHub (Jun 2, 2021):

Issue still occurring with Firefox ESR 78.11.0 and Jellyfin 10.7.5. It works when reading the file with the windows desktop app, iOS app and Brave (chromium based) though, only Firefox is broken.

@Jerroder commented on GitHub (Jun 2, 2021): Issue still occurring with Firefox ESR 78.11.0 and Jellyfin 10.7.5. It works when reading the file with the windows desktop app, iOS app and Brave (chromium based) though, only Firefox is broken.
Author
Owner

@Salamandar commented on GitHub (Jun 3, 2021):

Yeah, still occurs. Editing the metadatas solves the issue so i batch-edited all my flac files but... that's not a solution.

@Salamandar commented on GitHub (Jun 3, 2021): Yeah, still occurs. Editing the metadatas solves the issue so i batch-edited all my flac files but... that's not a solution.
Author
Owner

@stale[bot] commented on GitHub (Oct 2, 2021):

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale[bot] commented on GitHub (Oct 2, 2021): This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on [Matrix or Social Media](https://docs.jellyfin.org/general/getting-help.html).
Author
Owner

@Jerroder commented on GitHub (Oct 2, 2021):

Still happening on Firefox 91.1.0esr

@Jerroder commented on GitHub (Oct 2, 2021): Still happening on Firefox 91.1.0esr
Author
Owner

@seanbruno commented on GitHub (Jul 17, 2022):

I just ran into this today on FreeBSD 102.0 (64-bit). Re-encoding the FLAC files in question does indeed resolve the issue for me. I have posted a "broken" file here for anyone who wants to try and debug/patch further.

@seanbruno commented on GitHub (Jul 17, 2022): I just ran into this today on FreeBSD 102.0 (64-bit). Re-encoding the FLAC files in question does indeed resolve the issue for me. I have posted a "broken" file [here](https://people.freebsd.org/~sbruno/john_lee_hooker-baby_lee_with_robert_cray.flac) for anyone who wants to try and debug/patch further.
Author
Owner

@thornbill commented on GitHub (Dec 7, 2022):

Checking that sample, I see

Audio file with ID3 version 2.3.0, contains:FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 9963660 samples

ID3 tags are not supported by the FLAC spec. Most players seem to just ignore them, but Firefox will not play files that contain them.

@thornbill commented on GitHub (Dec 7, 2022): Checking that sample, I see ``` Audio file with ID3 version 2.3.0, contains:FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 9963660 samples ``` ID3 tags are not supported by the FLAC spec. Most players seem to just ignore them, but Firefox will not play files that contain them.
Author
Owner

@AngelPone commented on GitHub (Feb 2, 2023):

Same issue. I fixed it by changing the webp artwork to jpg.

@AngelPone commented on GitHub (Feb 2, 2023): Same issue. I fixed it by changing the webp artwork to jpg.
Author
Owner

@IrmatDen commented on GitHub (Mar 28, 2023):

Same issue. I fixed it by changing the webp artwork to jpg.

Thank a lot for posting this!

@IrmatDen commented on GitHub (Mar 28, 2023): > Same issue. I fixed it by changing the webp artwork to jpg. Thank a lot for posting this!
Author
Owner

@holotone commented on GitHub (Mar 30, 2023):

Changing the artwork doesn't work for me, even made sure it was a JPG. Editing the ID3 tags also did not work. The problem only occurs for me in Firefox, Chrome plays the album with no issue. Only a small percentage of albums are affected, can't figure out what the commonality is.

@holotone commented on GitHub (Mar 30, 2023): Changing the artwork doesn't work for me, even made sure it was a JPG. Editing the ID3 tags also did not work. The problem only occurs for me in Firefox, Chrome plays the album with no issue. Only a small percentage of albums are affected, can't figure out what the commonality is.
Author
Owner

@Bond-009 commented on GitHub (Mar 30, 2023):

@holotone see @thornbill response

ID3 tags are not supported by the FLAC spec. Most players seem to just ignore them, but Firefox will not play files that contain them.

@Bond-009 commented on GitHub (Mar 30, 2023): @holotone see @thornbill response > ID3 tags are not supported by the FLAC spec. Most players seem to just ignore them, but Firefox will not play files that contain them.
Author
Owner

@holotone commented on GitHub (Mar 30, 2023):

@Bond-009 I use the app Mp3Tag to edit what I assume is the ID3 tag on all most all of my FLAC files so I don't think that's it. Only a small minority of albums do not work.

Edit: I take that back, I didn't understand that FLAC files could have multiple types of tags. All of the albums I have that work have FLAC tags, and the ones that don't have FLAC ID3v1 or FLAC ID3v2. When I used mp3tag to remove the FLAC ID3 tags and just use FLAC tags the album plays properly in Firefox.

Thanks for the help!

@holotone commented on GitHub (Mar 30, 2023): @Bond-009 I use the app Mp3Tag to edit what I assume is the ID3 tag on all most all of my FLAC files so I don't think that's it. Only a small minority of albums do not work. Edit: I take that back, I didn't understand that FLAC files could have multiple types of tags. All of the albums I have that work have FLAC tags, and the ones that don't have FLAC ID3v1 or FLAC ID3v2. When I used mp3tag to remove the FLAC ID3 tags and just use FLAC tags the album plays properly in Firefox. Thanks for the help!
Author
Owner

@knuurr commented on GitHub (Jul 26, 2023):

Just to bump this thread, I've experienced this very issue.

I encountered issue with certain FLAC files (some, but not all) that I just couldn't play inside browser.

I tested them not only through Jellyfin but also through Navidrome, and the same files I checked also wouldn;t play.

  • would play fine via AIMP on Windows 10
  • would play fine from Navidrome/jellyfin when MS Edge was used, instead of Firefox.

I wonder if there is any mitigation for Firefox possible as it seems there is issue with Firefox browser.

@knuurr commented on GitHub (Jul 26, 2023): Just to bump this thread, I've experienced this very issue. I encountered issue with certain FLAC files (some, but not all) that I just couldn't play inside browser. I tested them not only through Jellyfin but also through Navidrome, and the same files I checked also wouldn;t play. - would play fine via AIMP on Windows 10 - would play fine from Navidrome/jellyfin when MS Edge was used, instead of Firefox. I wonder if there is any mitigation for Firefox possible as it seems there is issue with Firefox browser.
Author
Owner

@holotone commented on GitHub (Jul 26, 2023):

Heya @knuurr , the problem is caused by FLAC files that are improperly tagged with MP3 ID3 tags. Most browsers ignore it but for some reason Firefox refuses to play them. You can solve the issue by using a tagger to remove the MP3 ID3 tags and replace them with FLAC tags. In the app mp3tag you can just select all the tracks, cut all tags, and paste all tags and it'll paste them back as proper FLAC tags.

Hope that helps!

@holotone commented on GitHub (Jul 26, 2023): Heya @knuurr , the problem is caused by FLAC files that are improperly tagged with MP3 ID3 tags. Most browsers ignore it but for some reason Firefox refuses to play them. You can solve the issue by using a tagger to remove the MP3 ID3 tags and replace them with FLAC tags. In the app mp3tag you can just select all the tracks, cut all tags, and paste all tags and it'll paste them back as proper FLAC tags. Hope that helps!
Author
Owner

@Shadowghost commented on GitHub (Jul 26, 2023):

A technical FYI on that: per spec adding ID3 to FLAC is not supported behavior, FLAC only supports VorbisComment. So all in all mp3tag writing it is technically breaking the spec and any browser silently dropping it is accepting incorrect FLAC.

@Shadowghost commented on GitHub (Jul 26, 2023): A technical FYI on that: per spec adding ID3 to FLAC is not supported behavior, FLAC only supports VorbisComment. So all in all mp3tag writing it is technically breaking the spec and any browser silently dropping it is accepting incorrect FLAC.
Author
Owner

@kwhat commented on GitHub (Nov 6, 2023):

can i get a command line Linux method of making this work? Its pretty disappointing that my first experience with Jellyfin is this error.

@kwhat commented on GitHub (Nov 6, 2023): can i get a command line Linux method of making this work? Its pretty disappointing that my first experience with Jellyfin is this error.
Author
Owner

@Jerroder commented on GitHub (Nov 6, 2023):

@kwhat assuming you're using bash: cd into the directory with the FLAC files and run for name in *.flac; do old_name="$name.orig"; mv $name $old_name; ffmpeg -i $old_name -c:a flac -c:v copy $name; done

Then you can rm *.orig if you want to delete the original files (maybe makes sure it works before doing so).

@Jerroder commented on GitHub (Nov 6, 2023): @kwhat assuming you're using bash: cd into the directory with the FLAC files and run `for name in *.flac; do old_name="$name.orig"; mv $name $old_name; ffmpeg -i $old_name -c:a flac -c:v copy $name; done` Then you can `rm *.orig` if you want to delete the original files (maybe makes sure it works before doing so).
Author
Owner

@kwhat commented on GitHub (Nov 7, 2023):

@rderensy Thanks for that! I ended up with find . -name '*.flac' -exec mv '{}' '{}'.orig \; -exec ffmpeg -i '{}'.orig -c:a flac -c:v copy '{}' \; -exec rm '{}'.orig \; and it worked!

@kwhat commented on GitHub (Nov 7, 2023): @rderensy Thanks for that! I ended up with `find . -name '*.flac' -exec mv '{}' '{}'.orig \; -exec ffmpeg -i '{}'.orig -c:a flac -c:v copy '{}' \; -exec rm '{}'.orig \;` and it worked!
Author
Owner

@twisted-nematic57 commented on GitHub (Apr 20, 2024):

@kwhat your code snippet worked for me, my Firefox is now happily playing my previously-broken FLAC files from a Jellyfin server. (I am posting this comment because it is impossible to react with 'thumbs up' for some reason and I wanted to confirm that the commands work)

@twisted-nematic57 commented on GitHub (Apr 20, 2024): @kwhat your code snippet worked for me, my Firefox is now happily playing my previously-broken FLAC files from a Jellyfin server. (I am posting this comment because it is impossible to react with 'thumbs up' for some reason and I wanted to confirm that the commands work)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#1968