Hi, I discovered shout-python. I use it to straem theora to an icecast server. But works quite right except some times, it hangs, with no reasons. I built it against libshout 2.2 The server i an IceCast 2.3.1 I have some notes: The stream type, in the example could be vorbis | mp3. Wouldn't it be the time to change it to ogg | mp3? As well as theora can be in a ogg. Is there any known issues streaming ogg/theora to an icecast server? Thank you. Unfortunately, I am not a C/Python developper yet, and can neither fix the bugs my self (If there are) nor ehance the software. The best I can do is to test and report some bugs if there are. -- A powerfull GroupWare, CMS, CRM, ECM: CPS (Open Source & GPL). Opengroupware, SPIP, Plone, PhpBB, JetSpeed... are good: CPS is better. http://www.cps-project.org for downloads & documentation. Free hosting of CPS groupware: http://www.objectis.org.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Rakotomandimby Mihamina wrote:> Hi, > > I discovered shout-python. I use it to straem theora to an icecast > server. But works quite right except some times, it hangs, with no > reasons. I built it against libshout 2.2 The server i an IceCast > 2.3.1 > > I have some notes: > > The stream type, in the example could be vorbis | mp3. Wouldn't it > be the time to change it to ogg | mp3? As well as theora can be in > a ogg. > > Is there any known issues streaming ogg/theora to an icecast > server? > > Thank you. Unfortunately, I am not a C/Python developper yet, and > can neither fix the bugs my self (If there are) nor ehance the > software. The best I can do is to test and report some bugs if > there are.When I wrote shoutpy (a boost.python alternative to shout-python) I had to hack libshout so that it could time both ogg/theora and ogg/vorbis, the combined stream being recognized as something like ogg/vorbis+theora. Otherwise, libshout would not be able to stream data at the same speed at which it is being played back. I have a vague recollection of hanging libshout myself. Notice the libshout delay() function. It probably picks up a large number and sleeps for much longer than you expect. So my advice is that you make sure your libshout can recognize and provide timing information for all the codecs enclosed in your ogg stream. Or, do the timing yourself (liboggz may be able to help) and use the non-timed send - data function. Sorry, but I cannot provide a working hacked libshout. I think someone else has done the necessary work in the two years since I tried though. - - Daniel Holth -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD19PPVh4W2pVfoMsRAmQsAJwJzhug4EVPm6FSj7T+VJorKsXmvACfaqoU 4UC51RKoBqRQ1U7M0spOG+A=Py7L -----END PGP SIGNATURE-----
On Wed, 2006-01-25 at 12:38, Daniel Holth wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Rakotomandimby Mihamina wrote: > > > Hi, > > > > I discovered shout-python. I use it to straem theora to an icecast > > server. But works quite right except some times, it hangs, with no > > reasons. I built it against libshout 2.2 The server i an IceCast > > 2.3.1 > > > > I have some notes: > > > > The stream type, in the example could be vorbis | mp3. Wouldn't it > > be the time to change it to ogg | mp3? As well as theora can be in > > a ogg. > > > > Is there any known issues streaming ogg/theora to an icecast > > server? > > > > Thank you. Unfortunately, I am not a C/Python developper yet, and > > can neither fix the bugs my self (If there are) nor ehance the > > software. The best I can do is to test and report some bugs if > > there are. > > When I wrote shoutpy (a boost.python alternative to shout-python) I > had to hack libshout so that it could time both ogg/theora and > ogg/vorbis, the combined stream being recognized as something like > ogg/vorbis+theora. Otherwise, libshout would not be able to stream > data at the same speed at which it is being played back. I have a > vague recollection of hanging libshout myself.The latest libshout has my changes to correctly enable Theora timing as well as providing timing for OGG Speex. I unfortunately am really busy right now so can't investigate shout-python. btw. the type is already internally OGG with the VORBIS type deprecated but supported. My streams appear to be working fine so if you could clarify the conditions that hangs occur under, what OS are you using, version of python, what exactly is being streamed (mp3, Vorbis, Theora/Vorbis), that might narrow the search down. HTH, William.