zyrouge / symphony

🎵 Lightweight, elegant music player for Android 9+.
https://zyrouge.github.io/symphony/
GNU Affero General Public License v3.0
1.25k stars 81 forks source link

[Bug] Some songs are not recognised / cannot be played #416

Open BigBoyBarney opened 10 months ago

BigBoyBarney commented 10 months ago

Description

Some songs in my collection (seemingly random) cannot be played and the metadata isn't recognised either. I have uploaded one of them to gofile for you. One of the songs in question

The song can be played with mpv android and on my pc as well, so the file is 100% not corrupt.

Steps to Reproduce

  1. Import the song
  2. Go to songs
  3. Try to play it (album art + metadata aren't present either)
  4. See error

Expected Behavior

Song plays and metadata is present

Screenshots

Screenshot_2024-01-13-21-31-37-383_io github zyrouge symphony

Screenshot_2024-01-13-21-31-39-683_io github zyrouge symphony

Device

Additional Context

The stock android music player can't play the file either, so it's not purely a Symphone issue, but since mpv android can, and there is no reason why the file would be unplayable, there probably is a way to fix it. It affects a total 17 out of 6939 songs in my library. All of them are verified, not corrupt opus files.

I love the app otherwise, thank you so much!! <3 💌

Checklist

zyrouge commented 10 months ago

MPV does all the decoding stuff by itself. Symphony uses Android's MediaStore/MediaMetadataRetriever to get metadata. This might be solved by implementing a custom metadata decoder in the future. There might not be a fix until then.

BigBoyBarney commented 10 months ago

Oh that's interesting. Does that mean that the song won't play because it can't properly read the metadata? Explains why the stock android player won't play it either then! Thanks!

On a sidenote, do you have an idea what's 'wrong' with the song? I converted it to 'opus' from 'flac' with ffmpeg, and even on repeated conversions, the exact same songs fail to play.

Thanks!

zyrouge commented 10 months ago

Oh that's interesting. Does that mean that the song won't play because it can't properly read the metadata? Explains why the stock android player won't play it either then! Thanks!

On a sidenote, do you have an idea what's 'wrong' with the song? I converted it to 'opus' from 'flac' with ffmpeg, and even on repeated conversions, the exact same songs fail to play.

Thanks!

Afaik, both formats use Vorbis comments. Maybe try using MP3 and see what happens? I'm not sure of how data is arranged in container, so don't know what actually happens.