Dynamic pipeline #3771
-
Hello ! I'm new to Liquidsoap, I used it though Airtime and Azuracast but now I need to put my hands in it so I'm creating my own scripts. Here is the context : I have a webradio portal, each channel output an icecast stream after the audio processing, the icecast is currently processed by a tool and then transformed in a SRT stream.. Currently the transcoding tool isn't optimized for icecast and I think that we could make it with Liquidsoap, so I made it for a channel and it works (Only on Linux because of the #2461 issue). I would liked to host the script on Windows because that would have made things easy.. (each channel is lonely VM instances). In reason of this problem I have to host it using a Linux farm. Now the fact is the pipelines are not statics, there are new almost every months and it's going to be a problem to need to restart every streams to add one.. I saw the doc and I thought that we could use the provided telnet or feature to dynamically add, list or delete a stream. The fact is I wasn't able to make it. I have some experiences with programming language (Golang / Python / Swift..) but I'm still having difficulties with the Liquidsoap's one. Does an expert of Liquidsoap would have an idea about the ability of Liquidsoap to do it ? Best regards ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @frant1, I think it is possible to create a dynamic pipeline, but I haven't seen anyone do it.
The common practice used to be to give each user a separate process to avoid mixing businesses. |
Beta Was this translation helpful? Give feedback.
Hi @frant1,
I think it is possible to create a dynamic pipeline, but I haven't seen anyone do it.
For example, the Dynamic sources section on page 207 of the book explains how to create and control sources after the process has started.
It's even possible to create a visual pipeline editor, but that would require some serious development outside of liquidsoap.
You could use http+json to transfer your payload to and from the liquidsoap.
The common practice used to be to give each user a separate process to avoid mixing businesses.