Advance playlist when no data received on stream for a timeout? #16582
Unanswered
nicktelford
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When a playlist entry is a "stream" (e.g. stdin), is there a way to have MPV automatically advance to the next entry in the playlist when no data is received on the stream for a certain period of time?
My use-case is Streamlink, which will "pause" a Twitch stream when ads are rolling. MPV patiently waits for more data, and then continues playing.
What I'd like to do is add an image to the playlist, that is automatically transitioned to when no data has been received on the stream for ~100ms, to display an "ads are playing" sign. I then have MPV loop the playlist, with
--image-display-duration=1
, so that it will attempt to resume the Streamlink stream as soon as it starts sending data again.I've spent some time going through the docs, and couldn't find anything. It's possible there's an ffmpeg demuxer option I've missed, but I didn't see anything obvious.
Beta Was this translation helpful? Give feedback.
All reactions