Switching between live rtmp stream and video playlist is not working #2331
Replies: 17 comments 9 replies
-
The fallback is |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay, track_sensitive=false works a gem! |
Beta Was this translation helpful? Give feedback.
-
After further testing i can see some problems.
Less frequently, upon reconnect i also see this:
Updated configuration:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I would like to touch base to see if there has been any progress with this? I can do some additional testing if any changes in the recent months may have brought improvements to this area |
Beta Was this translation helpful? Give feedback.
-
I'm gonna prioritize getting back into these next week. Thanks for your patience and the remainder. |
Beta Was this translation helpful? Give feedback.
-
Could you try again with the latest |
Beta Was this translation helpful? Give feedback.
-
H! Any chance you could try again with the latest |
Beta Was this translation helpful? Give feedback.
-
Hi! I did a test with a ffmpeg rtmp server as input:
And was able to see the stream switching back and forth successfully so I'm marking this one as fixed. Thanks for reporting! |
Beta Was this translation helpful? Give feedback.
-
Hi @toots sorry for the delay; time escapes us! I plan to be testing this more thouroughly in a few days time and i'll update you regardless as to the results. Thanks for your efforts! |
Beta Was this translation helpful? Give feedback.
-
Hey @toots thanks for your awesome work on this though I cant get this working well with I have also tried using buffer(buffer=30.) however the broadcast still locks up within 2 seconds of disconnecting the live source. Recorded video of LS output, and video playback at https://share.mediacp.net/v1ugbLpB . File i'm testing with at https://we.tl/t-21mbtbfxuK
LS Output
|
Beta Was this translation helpful? Give feedback.
-
Hi! Thanks for your patience as well. I just tested again and was still unable to reproduce. Could you send your logs with a higher log level? Just add:
to your script.. |
Beta Was this translation helpful? Give feedback.
-
Hello! Running through nginx-rtmp server with defaults just FYI. I stopped the live input stream at exactly 22:11:12 in this instance.
|
Beta Was this translation helpful? Give feedback.
-
Let me know if there is anything else i can do to help with this, any additional logging i can provide or access to a test environment even. |
Beta Was this translation helpful? Give feedback.
-
I'm gonna look at it this week. I want to address this with |
Beta Was this translation helpful? Give feedback.
-
Hey @toots i've been doing some more testing and set I can see that when OBS connects to the RTMP stream, ffmpeg immediately reacts but upon disconnection the rtmp output stalls but there is no output from ffmpeg for almost 15 seconds. I've run another ffmpeg instance parallel to just read the stream that liquidsoap was delivering:
I can see that on connection to /live the following errors repeated for ~3 seconds before its corrected:
On disconnection of OBS/encoder, ffmpeg freezes within 1 second of disconnection and after about 5 seconds continuously spits out errors until i quit ffmpeg: https://pastebin.com/EWEYKBEA Hopefully this information is useful to you! |
Beta Was this translation helpful? Give feedback.
-
I was able to reproduce. It seems like I was able to make it work as expected by adding the following directive:
For good measure, I also suggest to add:
This should help making sure that ffmpeg auto-detects the correct content type. |
Beta Was this translation helpful? Give feedback.
-
I'm still struggling here. As soon as i stop the live broadcast from OBS the audio/video becomes out of sync. Audio plays but video content is broken (see gif below). The stream never recovers.
nginx.conf
liquidsoap.conf
|
Beta Was this translation helpful? Give feedback.
-
I'm hoping to be able to switch between a live rtmp input and a playlist or video file.
Using the below code, the liveInput never seems to be engaged:
Changing the output.url to the below is working OK:
Log:
Beta Was this translation helpful? Give feedback.
All reactions