finamp icon indicating copy to clipboard operation
finamp copied to clipboard

Gapless playback not working consistently

Open Zedniac opened this issue 11 months ago • 7 comments

When the screen is on and I play a short track from the beginning to the end, gapless playback works correctly. However, if the screen is off, there is a noticeable moment of silence and click sound between tracks. This seems to be happening more often with longer tracks, for whatever reason, but the issue is somewhat inconsistent - sometimes it's fine, sometimes not, and I haven't yet found a variable that reliably causes the issue.

Unsure if related, but when seeking through a track, any seeking seems to throw off the elapsed / remaining time counters, and when the progress bar gets to the end, the remaining time will continue past 0:00 until the audio of the track actually ends (depending on the length of the track, I've seen it go as far as 00:-23). When this happens, the gapless playback always fails as far as I can tell (momentary silence between tracks).

I've confirmed by playing the source tracks through several other music players that nothing appears to be wrong with the source, as gapless playback works consistently through Plexamp or MusicBee.

From what I've read gapless playback sounds like it's handled client-side so wanted to mention it here. I'm happy to provide logs from Jellyfin or Finamp if you let me know what to look for / what to send. I also have a screen recording of the remaining time counter bug and the gapless playback bug happening in the same playback shown here.

iPhone 14 Pro Max iOS 18.2 Jellyfin 10.10.3 Finamp 0.9.12 Transcoding is fully disabled in Finamp Volume Normalization is fully disabled in Finamp Restarted Jellyfin, cleared all cache / transcode directories, reinstalled Finamp, but no change

Zedniac avatar Dec 31 '24 19:12 Zedniac

Thanks for the report and the video, that's really helpful.
Does enabling transcoding change anything? (You'll have to restart the app or at least start a new queue for it to apply)

Chaphasilor avatar Jan 25 '25 21:01 Chaphasilor

@Zedniac ?

Chaphasilor avatar Feb 27 '25 17:02 Chaphasilor

Sorry for the delay. Just tested this again with the same song as the video example and got the same results as before with direct play (remaining time shows a negative value and there's a gap before the next track).

Switched to a different play queue, enabled transcoding (MP4 / AAC / 256kbps) fully restarted Finamp, and played the same track as before. The remaining time displayed correctly and gapless playback worked correctly.

FWIW, when testing this both ways just now, I just skipped near the end of the track rather than let the whole eight minute track play. Not sure whether that makes a difference or not. I do recall previously listening to this track from the beginning via direct play, and I wasn't watching the remaining time, but the gapless playback also failed when playing it from the beginning.

Any other info needed just let me know!

Zedniac avatar Feb 28 '25 23:02 Zedniac

I also forgot to attach logs previously - attached are all logs from today between the first mention of the problematic track and the last mention. The track in question is 'The Stargate [Tablet I]' which should play gapless into the next track 'The Stargate [Tablet II]'.

finamp_logs_feb_28_2025.txt

Zedniac avatar Feb 28 '25 23:02 Zedniac

Just wanted to add my own experiences -- I'm on an iPod Touch (6th Generation) on iOS 12.5.7 (aka the highest that iPod can go up to), running the newest stable iOS release of Finamp (0.6.25) w/ Jellyfin 10.10.6. While it's MUCH closer to gapless playback than some apps have gotten, I'm not getting gapless playback, with transcoding off or on, with bitrate set to 256 or not, with the original files played being FLAC or not, etc. Maybe that's how it is on 0.6.25, because I can see Zedniac's reporting from the future (I don't think 12.5.7 can get that beta TestFlight app-- seems to be too new)... but just thought I'd say so, since this app is just gorgeous, and gapless would really be the only thing needed to make it perfect. Somewhere in these logs is PROBABLY me switching tracks:

finamp_logs_apr_4_2025.txt

EDIT: Oh! Interesting wrinkle-- Finamp 0.6.27 running on my Samsung Galaxy Tab S2 on Android 7.0 (which is around as old as iOS 12) does have gapless playback for the FLACs I uploaded, but the 320kbps MP3s I uploaded still have a stutter to them, although a bit better than on iOS. Once again, some logs from this device:

finamp_logs_apr_4_2025_tab_s2.txt

HomeStarRunnerTron avatar Apr 04 '25 10:04 HomeStarRunnerTron

I also experienced this on Android running on Galaxy 24+. I've been enjoying gapless playback for as long as I can remember, including Finamp. But lately when I heard those enormous gaps I almost questioned my own sanity lol. For me it is broken for mp3, at direct play or local play. Playing with Musicolet, no gap, so my audio files are fine. OGG format is fine.

chunjiw avatar May 29 '25 18:05 chunjiw

Felt like I might add to this thread: iPhone 15 Pro on iOS 26.0, gapless playback is close to working but not as close as my iTunes downloads get. However, Finamp Desktop works just fine. Streaming FLAC audio with direct play for both scenarios.

hainesnoids avatar Oct 22 '25 00:10 hainesnoids