Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ffmpeg.49023] Stream error: TimeoutError while streaming from Samba to player #3347

Open
1 task done
BlaXun opened this issue Dec 23, 2024 · 2 comments
Open
1 task done
Labels

Comments

@BlaXun
Copy link

BlaXun commented Dec 23, 2024

What version of Music Assistant has the issue?

2.3.4

What version of the Home Assistant Integration have you got installed?

2024.12.5

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

When I am streaming music I often get the following error:
ERROR (MainThread) [ffmpeg.49023] Stream error: TimeoutError

My setup is as follows:
All music I play is served from a local samba server. The samba server is running on a Raspberry Pi 4 (this is the only thing that is running on the raspberry).

The music players I use are M5 AudioCast (https://de.aliexpress.com/item/1005007243745126.html?spm=a2g0o.order_list.order_list_main.47.17595c5fqnOKgP&gatewayAdapt=glo2deu)

The Raspberry Pi is connected to my LAN by cable
The AudioCast players are connected by WiFi

What I tried so far:

  • Upgraded the Samba Server from a Raspberry Pi 3B to a Raspberry Pi 4
  • Changed "HTTP Profile used for sending audio" - None of the options fixed the issue
  • Switched the "Enforce (lossy) mp3 stream" from off to on and back again - Didn't fix the issue

I now don't have any more ideas. The last thing I tried was switching from a Raspberry Pi 3B to a Raspberry Pi 4 as I had assumed the device may not be up to the task of serving music using a samba server.

When checking the log you will find the following entry
2024-12-23 09:10:25.157 ERROR (MainThread) [ffmpeg.49023] Stream error: TimeoutError

This is the one that finally got me to submit the issue here.
In the log you will also find references to a Raspberry Pi 3... which was the raspberry I used earlier to serve the music (I since turned that off)

How to reproduce

Play random music files. At some point it will fail with the above error. Most likely right before moving from one song to the next

Music Providers

Filesystem (remote share)

Player Providers

Home Assistant MediaPlayers

Full log output

music-assistant.log

Additional information

It does not matter if I start the music playback using the UI or using an automation.

And it happened again just now, but there is no error log entry (yet)
The UI looks like this
image

It suddenly stopped playing without any user interaction. There is no error in the log this time... no indication about what might have happened.

Also: "Don't stop the music" is not supported on these players

What version of Home Assistant Core are your running

2024.12.5

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

@BlaXun BlaXun added the triage label Dec 23, 2024
@BlaXun
Copy link
Author

BlaXun commented Dec 23, 2024

Edit:
It seems to be only specific songs.
I checked them using foobar2000 and used the Utilities -> Repair Stream ...that didn't help either.

Also, its far too many songs that fail across different albums

@BlaXun
Copy link
Author

BlaXun commented Dec 23, 2024

I'd be happy to share the file which has the mentioned problem for futher analysis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant