Can't play certain FLAC files

Issue description:

For some reason, some of my FLAC files will not play in Symfonium. My issue is very similar to Cannot Play Certain FLAC Files

My media provider is Subsonic, however, I’ve cached this album to my phone. I’m not sure if that makes a difference. I clicked on More actions / Offline cache and download and I see that it says Status: In rolling cache.

I’ve tried going to Settings / Playback / Decoding and transcoding and turning off Prefer internal decoder, like in the linked issue, but that doesn’t fix the playback issue for me.

I’ve also tried running flac --test song.flac to check for corruption, but no errors were found. Not sure if there is a better way to check for corruption. I am able to play the FLAC file on my laptop.

Logs:

Upload description: eiho7e

Additional information:

 
Symfonium version: 11.4.0 (127264)
Phone: Pixel 8
Android: 15
 

Reproduction steps:

 

  • I added an album to Navidrome.
  • I added a Subsonic media provider in Symfonium
  • I pressed Sync to download the album to Symfonium (I have music be cached)
  • I go to play the album
  • Some songs play, some do not
     

Media provider:

Subsonic

That’s a good starting point. Have you tried reencoding the files in question with the latest flac encoder? Since flac is lossless this yields no quality penalty.
You could use
flac --best --verify --padding=4096 --silent song.flac song_enc.flac
to test one song.

Or if you’d rather do it on a bigger scale you could give my python script flacr a go to do it recursively (and optionally calculate replaygain values).
flacr.py -Q for example would calculate replaygain values for all songs in the current dir + all subdirs using all threads available on the system and then reencode all .flac files with the latest encoder while showing progress bars and returning errors on the cli (once again using all available threads).
It’s my alias for flacr.py -m 32 -rp (my cpu has 16c32t).
Good luck!

Huh. Yeah. Reencoding fixed this issue.

I ran these commands.

cd album
ls -1 | xargs flac --verify --warnings-as-errors --force

Then I deleted the existing album from my Symfonium cache and resynced it.

The album is playing fine now. Thanks!

I’m still curious about what the underlying issue is here. Is this a bug in Symfonium? Or intended behavior? Is it possible that the encoder version is no longer supported or something like that?

I’m fine with reencoding albums that don’t play. Thanks again!

From the logs the files are indeed invalid.

But the file you uploaded does play without issue so I’m lost here did you upload the fixed one ?

The file I uploaded plays fine in Symfonium? Uh, I think I uploaded the bugged file. Here are some hashes of the FLAC: the bugged original one and then the fixed reencoded one. Maybe you can compare them with the file I uploaded.

$ shasum -a 256 03-bugged.flac 
40b45f2cabfa97eef752a3eea15a2670f79158f5072539786840246267ed387e  03-bugged.flac

$ shasum -a 256 03-fixed.flac 
b28af55eb4956db0160b248a5212cc5fc62b7eea711323dc6a272f2f48867f38  03-fixed.flac
 shasum -a 256 03-los_cazahuates.flac 
40b45f2cabfa97eef752a3eea15a2670f79158f5072539786840246267ed387e  03-los_cazahuates.flac

It is the bugged one and I have no issue playing it, do you have some forced transcoding setting server side ?