Replies: 5 comments 8 replies
-
Interestingly I just re-read the output when it exits and it looks like it does actually try and switch, but I get this:
From my broad understanding of the above, it is trying to switch to the next stream, but I can't understand what the errors mean. |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm just revisiting this and have been able to get it working by switching The problem is that it takes quite a while to switch between inputs and also the RTMP disconnects while this happens. Interestingly, switching back from emergency to live it happens immediately and does not drop the RMTP connection. Does Liquidsoap have a better way for me to handle this? Ideally i'd like it to switch as quickly as happens and definitely not drop the RTMP stream between live and emergency, or am I doing something wrong? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
@gavin2812 Hi! Something similar @Mikulskii have been doing with Nginx-rtmp-backup. It is slightly different approach but maybe this option will do for you. Worth a try. https://mikulski.rocks/backup-stream-for-24-7/ |
Beta Was this translation helpful? Give feedback.
-
@gAlleb HI, thank you. Unfortunately for this particular use-case I cannot use the nginx configuration to make changes, I am hoping to do it using Liquidsoap. Thank you very much for your reply and suggestion. @toots sure, below is the script and log. My main issue is that although now it works correctly (switches from main stream to backup and back again), when it switches to the backup stream the RTMP stream drops and take a very long time to reconnect (approx 30 seconds). What I am hoping to achieve is a seamless switch between the 'live' and 'emergency' streams, or at least that it does not disconnect the output RTMP stream when it happens. Thanks in advance!
Here is the log (this includes the script starting when the main live feed is already up, the disconnection of the live feed, the starting of the backup feed and then reconnecting the live feed again):
|
Beta Was this translation helpful? Give feedback.
-
Hi, I'm picking this back up again from a while back as I'd like to get it working. My intention is to simply switch between a live and main (like autodj) stream without the output disconnecting. I'm currently running 2.2.3 This is what I have at the moment:
And this works, but this switch between the sources is nowhere near as seamless as it should be, it will switch between the main and live feeds OK, but then going back to the main feed it takes around 30 seconds. Is there are better way to achieve what I am trying to do? Thanks again in advance. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Apologies if I have missed it, but is there an equivalent of input.harbor but for video streams?
I was looking to create a simple "play main live video stream and if main stream fails, play backup live stream", kind of along these lines:
Is this currently possible?
P.S. I tried the code above and it plays the main stream, but if the main stream is disconnected, the code exits.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions