Tracks starting over during playback

Issue description:

This happens to me fairly regularly playing music from my Plex server: I’ll be listening to an album and some tracks will play for a bit and then start over from the beginning. It’s not consistent: it could be seconds or minutes into the track. It seems like when it happens it will happen several times for a single track, but then it might not happen at all for the next several tracks. Usually I’ll get frustrated and skip the track.

I finally was able to get lucky turning on debug logs and then reproducing the problem immediately. In the attached log file, the name of the track that restarted by itself mid-playback is “Pan and Broom” by Bright Eyes.

I hope the logs will be useful. Thanks!

Logs:

debug-20220520_071654.zip (25.6 KB)

Hum unfortunately the logs does not contains everything :frowning: That’s strange :frowning: Would be nice if you could leave the debug mode on, restart the app to be sure then try to repro.

onPositionDiscontinuity: 5 [5]

I can see there’s an issue inside ExoPlayer but since 5 is Internal Reason it does not tell much and don’t know why the debugging of ExoPlayer was not enabled in those logs.

What’s also strange is that Plex says the app needs transcoding when it should not, can you send me that file in private so I can try to reproduce and fix the transcoding profiles too ?

I’ll have to try to repro it again when I’m not at work, but sure, here’s the file:

Bright Eyes - Down in the Weeds, Where the World Once Was - 06 - Pan and Broom.ogg.zip (4.3 MB)

Ok thanks was able to reproduce the transcoding issue.

Will be fixed for next release, that will probably also fix your issue trigged by Plex transcoding doing something strange, but logs would still be nice to really understand the cause and see if I can workaround that case too.

1 Like

Okay, I will turn on the logs the next time I’m listening to music and see if I can capture it again.

Okay, it happened again this morning (and also yesterday, but I’m not 100% sure if I had the debug turned on then or not).

I was listening to the album “Dragon New Warm Mountain I Believe in You” by “Big Thief.” The track was “Time Escaping” and it happened fairly early on in the track.

debug-20220527_080401.zip (479.4 KB)

Ok thanks so yes it’s due to transcoding, so the next version will workaround this.

But to resume your plex server transcode (in this case not wanted but might be) to a non seekable format, for some reason the transcode is not fast enough or the network is a little slow at that moment, Exoplayer tries to buffer and seek to fix itself on the underrun but since the transcoding does not support seek it restart from the start :frowning:

I’ll have to see if I can do something about that.

Logs still shows “throttled”:true in the transcoding answer from Plex, so maybe there’s some settings on the server or something else running that impact transcoding ?

There could be a few reasons for it. Sometimes I’m streaming over VPN. And yes, I’ve also done some stuff with the transcoding configuration settings on Plex in the past to try to force direct play. I will wait for the next release and see how it works and possibly revisit my settings if needed. Thanks a lot!