Hi Romain,

Thanks for your comments and suggestions, especially about redefining the playlist operator. :-)

I will definitely keep tweaking and experimenting, especially as I go through the API over time and play with various options. So much fun stuff in here!

Damien

On 09/24/11 15:59, Romain Beauxis wrote:
Hi Damien!

Your script looks fine. I would just suggest to indent it as I find it easier to read and fix when it is indented.
Another remark which is optional but can make the script look nicer and help you to make sure you have the right parameters: since all your playlists share the same conservative and length parameters, you could do that:

(beginning of the script..)

# Specialize playlist with common settings
playlist = playlist(conservative=true, lenght=4000.)

(rest of the script goes here..)

This redefines the playlist operator with those two parameters already applied, Then, later in the code, you just have to do:

output.icecast(%vorbis, 
       host = "localhost", port = 8000,
       password = "(password)", mount = "techno.ogg",
       description="Synthetronica Radio: Techno", genre="Techno",
       url=""true" href="http://audiodef:8000/techno.ogg" target="_blank" style="color: rgb(7, 77, 143);">http://audiodef:8000/techno.ogg", name="Techno",
       
       fallback( [ 
            normalize( playlist( "techno.m3u" ) ),
            single("/var/www/audiodef/htdocs/audio/dc3.ogg") ]
          )
       )


Concerning the number of queues, one per stream is probably a good rule of thumbs in your case. With more streams, you may not need a one-by-one correspondance tho. More importantly, this is up to your situation: just try, see what works through the logs and get the right number accordingly :-)

Finally, I know that VLC used to have issues with ogg streams but that was a long time ago and it has been fixed since then. I have never tried audacious personally, but maybe others here know better about this player..

Good luck with your streams and have a good week-end!
Romain


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to