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

Specifying command line options to mpv-player #250

Open
wturrell opened this issue Aug 23, 2024 · 5 comments
Open

Specifying command line options to mpv-player #250

wturrell opened this issue Aug 23, 2024 · 5 comments

Comments

@wturrell
Copy link

wturrell commented Aug 23, 2024

(I suppose this is a feature request, or maybe just a "how do I" that might be impossible…)

For a while now, in the latest curveball the BBC have thrown at direct stream listeners, the BBC HLS streams keep cutting out after a few minutes - MPV exits with a "terminated abnormally" message.

mpv-player/mpv#13428
https://www.reddit.com/r/mpv/comments/181yu2z/problem_streaming_radio/

There is a fix for this, which is to use mpv-player with the --loop-playlist=forceor (better, I suspect) --demuxer-lavf-o=max_reload=1000 options - is there anyway we you could enable specifying extra playback options per playlist item?

Or switch a particular station to a different player (e.g. someone in that thread suggested ffplay instead..)

Thanks,
William

@s-n-g
Copy link
Collaborator

s-n-g commented Aug 23, 2024

Hi @wturrell

A per station solution does not exist (yet?)

Can you please specify a URL to use for my tests?

@wturrell
Copy link
Author

BBC Radio 3:

this'll exit after some unspecified period of time, maybe 5 minutes, maybe less, just now it took 18:

mpv http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_three/bbc_radio_three.isml/bbc_radio_three-audio=320000.m3u8

versus this which will keep going:

mpv --demuxer-lavf-o=max_reload=1000 http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_three/bbc_radio_three.isml/bbc_radio_three-audio=320000.m3u8

@s-n-g
Copy link
Collaborator

s-n-g commented Aug 23, 2024

ok, on it...

@s-n-g
Copy link
Collaborator

s-n-g commented Aug 23, 2024

So...

Here's a quick and temporary way to get it to work

Open ~/.config/mpv/mpv.conf and modify it so that the pyradio entry contains any of the parameters you specified above. For example

[pyradio]
volume=50
loop-playlist=force

or

[pyradio]
volume=50
demuxer-lavf-o=max_reload=1000

Please check that using any of these parameters do not negatively impact the playback of any other station; I have had no problem with either of them on a linux system

I will leave this one open and keep working on it, and notify yu of that I can come up

@wturrell
Copy link
Author

(this is working well so far)

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

No branches or pull requests

2 participants