Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Liquidsoap
-
Labels:None
Description
Hi, Savonet Team!
I have an idea to implement an ability to specify accepted input.harbor format.
i think this can be done using on_connect callback. say, if i check i have wrong information in headers i will return "true" back to input.harbor and then harbor.input will disconnect the client.
this will be useful for live shows, for example. on my radio there're live translations from different cities (for example from Moscow to Saint-Petersburg, where our radio station is situated) and if DJs misconfigures encoders in the club, the live is constantly gets interrupted due to frequent bufferization process.
so, if i check the headers (and hence the format of broadcasting) is incorrectly set then the DJ won't be able to connect to the station
I have an idea to implement an ability to specify accepted input.harbor format.
i think this can be done using on_connect callback. say, if i check i have wrong information in headers i will return "true" back to input.harbor and then harbor.input will disconnect the client.
this will be useful for live shows, for example. on my radio there're live translations from different cities (for example from Moscow to Saint-Petersburg, where our radio station is situated) and if DJs misconfigures encoders in the club, the live is constantly gets interrupted due to frequent bufferization process.
so, if i check the headers (and hence the format of broadcasting) is incorrectly set then the DJ won't be able to connect to the station
The solution that you're proposing seems to make sense. However, the current heavy changes won't make it easy to implement or try it before a little while, depending on how fast we're progressing.
But, what exactly are you thinking of? Accepting only Vorbis and not MP3, or more like accepting audio but not video? Actually, the current changes might already have the expected result: a harbor source will now if it has to stream audio or video (or both). But, as you point out, the format verifications should be done as soon as possible (i.e. at connection): it'd be stupid to let somebody connect if we know we won't be able to decode its stream.
Please confirm the details of what you're thinking of, and we'll come back to this discussion when liquidsoap SVN becomes functional again.
i mean filter incoming streams by mime types (as you described, accepting only vorbis, not mp3, or any combination of supported streams), bitrate or quality (for example, i wish to make strict quality limits in order to accept only certain bitrates (or qualities) on harbor.input