Jump to content

Music stops playing after 2 songs


Recommended Posts

madevil
Posted

Songs stop playing after 2 songs, I've tested this on two different phones using cellular data, both phones are Samsung, Galaxy 21 Ultra and 24 Ultra. I've trying uninstalling Emby and reinstalling, and I've tested on desktop, laptop and a Samsung Tab S9 tablet and no issue with playback. On the phones I've tested other albums and it doesn't always happen, last test was FLAC but in past I've had it happen on MP3 files, and I've had no issues with video playback on the phones also tested phones on Wi-Fi and still same issue.

embyserver.txt ffmpeg-transcode-7c81627c-b5a3-436c-9f1d-7c878b250980_1.txt

  • Agree 1
sa2000
Posted

I see these being played 

Megadeth - I Don’t Care
Megadeth - Hey, God?!

Then there was a request for another track but no playback being reported

Could you have a look at How to Report An Android Problem and repeat the test with debug logging enabled on both emby server and the emby for android

After enabling debug logging on Emby for Android app settings, you need to restart the app for it to take effect

Server debug logging can be enabled in server settings, logs, settings

So please provide debug Emby Server log, all the ffmpeg logs for the test period, and download the Emby for Android debug logs as well and attach

As there may be security tokens logged in the android logs, you can zip and send these to me by Private Message

Also include a screenshot to show what is on the screen on emby for android after completing the first two tracks

Thanks

 

 

 

sa2000
Posted

Thanks for providing the android debug log file and corresponding emby server logs. The android log shows Exoplayer errors for the flac files and in fact these errors are arising on all tracks and fallback to HLS was made for the first 2 tracks. Not sure why that was not the case for the 3rd track. I would like to get a copy of the album to pass to the development team. Also would like to see logs of it playing all 3 tracks ok the S9 Samsung tablet you mentioned and confirmation that you are seeing the same for mp3 files - similar diagnostics would be needed.

Does the issue arise when playback is within the local network on wifi ?

Sending you an upload link for the Megadeth album

Thanks

sa2000
Posted
On 30/01/2026 at 10:52, sa2000 said:

Also would like to see logs of it playing all 3 tracks ok the S9 Samsung tablet you mentioned

Have the logs now for this and the Tablet S9 was on the local network and no transcoding

So at the moment it is looking like only when on a remote connection with flac playback. 

Will need to see if the phone can playback the whole album when on the local network

sa2000
Posted

Thank you @madevilfor the further tests which has confirmed that the issue only arises when on a remote connection playing flac audio tracks. The direct play when on wifi was ok on same device

I have passed this and latest logs to the development team

 

madevil
Posted

Happy to help, look forward to this issue being resolved.

  • Thanks 2
  • 1 month later...
sa2000
Posted

@madevilCould you let me know if the problem is still arising with the latest beta build. The current beta is 3.5.31 - download link available here

madevil
Posted

Unfortunately, still the same issue using the beta

  • Thanks 1
  • 2 months later...
Eidolf
Posted

I followed this topic because I have the same issue. Since this is going a while I had shortly the oportunity to use my phone in an car with Android Auto (Connected via USB).
When I start the FLAC Albums from the car head unit it will play the album completely fine, if I start the same album direct from my phone 2 songs and thats it.
I don`t know if this helps for the case but like to share the knowledge.

  • 3 weeks later...
Htwenty
Posted (edited)

Same issues but only with flac. m4a 128 - 256 and mp3 160 - 320 not any issues

Edited by Htwenty
  • 4 weeks later...
Posted

Hi, we are looking into this. Thanks.

Smokeysevin
Posted

I am now getting the issue with mp3s at 320kbps in addition the the Flac files as before. Previously they were unaffected. 

 

Android auto still plays fine with both.

  • 1 month later...
Posted

I know this isn't the big issue to fix but wondering if there's any update. Still having the issue and I've been trying every beta update that comes out.

  • Agree 1
  • 1 month later...
Posted
On 9/15/2026 at 12:31 AM, madevil said:

I know this isn't the big issue to fix but wondering if there's any update. Still having the issue and I've been trying every beta update that comes out.

@madevilHi, can you please provide the Emby android app log from when this happens?

Thanks !

  • 3 weeks later...
Posted

Hi @Luke,

over the last couple of hours I have been investigating the reproducible Android music playback issue using my Emby-LogAnalyzer application together with AI-assisted log analysis. I wanted to take a systematic approach and compare multiple Android client logs with matching server-side evidence.

I hope the findings below can help identify the underlying cause and contribute to a proper fix, rather than just relying on the workaround I've found.

Environment

Emby Server: 4.10.1.0

Emby for Android: 3.5.72

Client log reports AndroidX Media3 1.8.0

Media: FLAC album played from the Android app over mobile data

The same album reportedly works, like I already mentioned over Wi-Fi and when playback is initiated from Android Auto. These observations may indicate different playback behavior, although they do not prove identical playback paths are being used.


Symptom and Reproduction

Enable diagnostic logging in the Android app.

Connect via mobile data.

Leave audio streaming quality on Automatic.

Start playback of a FLAC album and advance through tracks.

In repeated tests:

The first two started tracks play successfully.

The third started track remains stuck at 0:00.

Seeking does not recover playback.

I also intentionally changed the starting position:

Starting at playlist index 1 failed at index 3.

Starting at playlist index 2 failed at index 4.

This makes a single corrupt file or a fixed playlist position seem unlikely. The tests mainly involved manually advancing tracks; uninterrupted playback behavior still requires separate verification.


What the Android Client Logs Show

The first playback request in a failing session contained:

MaxStreamingBitrate=1000001

For the first two started tracks the client consistently logged:

ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED
UnrecognizedInputFormatException
Attempting to fallback to HLS playback
...
PlaybackManager state: STATE_PLAYING

For the third started track:

ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED
UnrecognizedInputFormatException
...
PlaybackManager state: STATE_ERROR
PlaybackManager state: STATE_STOPPED

Notably, there is no corresponding HLS fallback message before the terminal error, unlike the previous tracks.

Example timeline from a fresh test (log timestamps are GMT+01:00):

Local Time Observation
03:57:52.077 Container error -> explicit HLS fallback -> playback starts
03:58:04.772 Container error -> explicit HLS fallback -> playback starts
03:58:18.201 Container error -> STATE_ERROR -> no fallback logged

This appears to be inconsistent recovery behavior within the same playback session.

One possible explanation could be a fallback or retry state that isn't fully reset between playlist items. However, I have not reviewed the Android client implementation and therefore cannot claim that as the root cause.


What the Server-Side Evidence Confirms

In an earlier synchronized client/server analysis:

The failing track's /Audio/<id>/universal request did reach the server.

Emby returned HTTP 200 with an HLS playlist.

No subsequent HLS media-segment requests were observed for that failed playback attempt.

For the earlier successful tracks:

Corresponding FFmpeg AAC/HLS transcoding activity was visible.

No transcoding errors were reported.

This disproved my original assumption that the playback request never reached the server.

What remains unclear is whether:

the client successfully received the response,

the playlist content was accepted,

or another client-side issue prevented the HLS stream from being opened.

I also found that the server's reported DirectPlay value alone was not reliable enough to determine the actual playback path in these tests.


Workaround and Follow-Up Testing

My first attempt was increasing the mobile video quality from:

720p / 1 Mbps

to

720p / 4 Mbps

This had no effect on the audio request. The log still showed:

MaxStreamingBitrate=1000001

I then explicitly increased both Android audio streaming quality settings to 4 Mbps.

The resulting requests showed:

MaxStreamingBitrate=4000000
audioInputFormat ... container=audio/flac

During this test:

Four consecutive tracks entered STATE_PLAYING.

No unsupported-container errors occurred.

No HLS fallback attempts were logged.

No STATE_ERROR events occurred.

This suggests that the higher audio bitrate limit avoids whatever path is triggering the unsupported-container error and subsequent fallback logic.

However, it does not prove:

mobile bandwidth limitations,

why Automatic selected the lower value,

or that 4 Mbps is universally sufficient.


Questions for the Development Team

Why does the Android client initially select a playback path that results in an ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED error and only then recover through HLS?

Is the HLS fallback/retry state fully reset for every playlist item, including after manual track skips?

Why is HLS fallback explicitly logged for the first two tracks but not before the later terminal error?

How is the audio bitrate limit determined when Automatic quality is selected, and how is it related to the mobile video quality setting?

If there are additional traces, debug builds, or specific test scenarios that would help narrow down the remaining possibilities, I'd be happy to run them. My goal is to help identify the underlying bug and not just rely on the 4 Mbps workaround.

Thanks and sorry for the AI Text, but I must sleep now and that was the quickest solution to write ;)

Posted
On 11/17/2026 at 4:57 AM, Eidolf said:

Hi @Luke,

over the last couple of hours I have been investigating the reproducible Android music playback issue using my Emby-LogAnalyzer application together with AI-assisted log analysis. I wanted to take a systematic approach and compare multiple Android client logs with matching server-side evidence.

I hope the findings below can help identify the underlying cause and contribute to a proper fix, rather than just relying on the workaround I've found.

Environment

Emby Server: 4.10.1.0

Emby for Android: 3.5.72

Client log reports AndroidX Media3 1.8.0

Media: FLAC album played from the Android app over mobile data

The same album reportedly works, like I already mentioned over Wi-Fi and when playback is initiated from Android Auto. These observations may indicate different playback behavior, although they do not prove identical playback paths are being used.


Symptom and Reproduction

Enable diagnostic logging in the Android app.

Connect via mobile data.

Leave audio streaming quality on Automatic.

Start playback of a FLAC album and advance through tracks.

In repeated tests:

The first two started tracks play successfully.

The third started track remains stuck at 0:00.

Seeking does not recover playback.

I also intentionally changed the starting position:

Starting at playlist index 1 failed at index 3.

Starting at playlist index 2 failed at index 4.

This makes a single corrupt file or a fixed playlist position seem unlikely. The tests mainly involved manually advancing tracks; uninterrupted playback behavior still requires separate verification.


What the Android Client Logs Show

The first playback request in a failing session contained:

MaxStreamingBitrate=1000001

For the first two started tracks the client consistently logged:

ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED
UnrecognizedInputFormatException
Attempting to fallback to HLS playback
...
PlaybackManager state: STATE_PLAYING

For the third started track:

ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED
UnrecognizedInputFormatException
...
PlaybackManager state: STATE_ERROR
PlaybackManager state: STATE_STOPPED

Notably, there is no corresponding HLS fallback message before the terminal error, unlike the previous tracks.

Example timeline from a fresh test (log timestamps are GMT+01:00):

Local Time Observation
03:57:52.077 Container error -> explicit HLS fallback -> playback starts
03:58:04.772 Container error -> explicit HLS fallback -> playback starts
03:58:18.201 Container error -> STATE_ERROR -> no fallback logged

This appears to be inconsistent recovery behavior within the same playback session.

One possible explanation could be a fallback or retry state that isn't fully reset between playlist items. However, I have not reviewed the Android client implementation and therefore cannot claim that as the root cause.


What the Server-Side Evidence Confirms

In an earlier synchronized client/server analysis:

The failing track's /Audio/<id>/universal request did reach the server.

Emby returned HTTP 200 with an HLS playlist.

No subsequent HLS media-segment requests were observed for that failed playback attempt.

For the earlier successful tracks:

Corresponding FFmpeg AAC/HLS transcoding activity was visible.

No transcoding errors were reported.

This disproved my original assumption that the playback request never reached the server.

What remains unclear is whether:

the client successfully received the response,

the playlist content was accepted,

or another client-side issue prevented the HLS stream from being opened.

I also found that the server's reported DirectPlay value alone was not reliable enough to determine the actual playback path in these tests.


Workaround and Follow-Up Testing

My first attempt was increasing the mobile video quality from:

720p / 1 Mbps

to

720p / 4 Mbps

This had no effect on the audio request. The log still showed:

MaxStreamingBitrate=1000001

I then explicitly increased both Android audio streaming quality settings to 4 Mbps.

The resulting requests showed:

MaxStreamingBitrate=4000000
audioInputFormat ... container=audio/flac

During this test:

Four consecutive tracks entered STATE_PLAYING.

No unsupported-container errors occurred.

No HLS fallback attempts were logged.

No STATE_ERROR events occurred.

This suggests that the higher audio bitrate limit avoids whatever path is triggering the unsupported-container error and subsequent fallback logic.

However, it does not prove:

mobile bandwidth limitations,

why Automatic selected the lower value,

or that 4 Mbps is universally sufficient.


Questions for the Development Team

Why does the Android client initially select a playback path that results in an ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED error and only then recover through HLS?

Is the HLS fallback/retry state fully reset for every playlist item, including after manual track skips?

Why is HLS fallback explicitly logged for the first two tracks but not before the later terminal error?

How is the audio bitrate limit determined when Automatic quality is selected, and how is it related to the mobile video quality setting?

If there are additional traces, debug builds, or specific test scenarios that would help narrow down the remaining possibilities, I'd be happy to run them. My goal is to help identify the underlying bug and not just rely on the 4 Mbps workaround.

Thanks and sorry for the AI Text, but I must sleep now and that was the quickest solution to write ;)

@madevil Can you try the workaround that worked for me on your clients? 
I didn't add Luke correctly when copying the text, but I'm really curious to know if this is the right way to do it.

Posted

@Eidolfcan you please provide the server log, ffmpeg log and android app log files together? Thanks !!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...