Prev: wxpython: wx.media.MediaCtrl with icecast streaming: won't work as expected.
Next: wxpython: wx.media.MediaCtrl with icecast streaming: won'twork as expected.
From: nextime on 31 May 2009 06:00 After trying also to update, the issue remain the same. But i've found something new. After many try, i found that if i try to open the stream using mplayer ( with subprocess.Popen ), if i set the -nocache option in the mplayer command line, i don't get any sound and i see in stdout "stream not seekable", if i put a -cache 32, all work great. The same using directly WMP, if i let the player doing some caching, it work, if i set cache to 0 it won't work. So, maybe can be just a caching issue, on gstreamer it work, but on quicktime and wmp if i don't let the player doing some minimal caching, the stream won't work, and wx.media.mediactrl seem to launch the player without any caching. Is there any way to set a minimal cache on both wmp and quicktime? On Sat, May 30, 2009 at 05:02:34AM -0700, Jacob wrote: > Have you tried upgrading your version of Python to 2.6? Perhaps there is an > issue with the way python is handling something on the OS. It works on Linux > like it should you say. > > > Jacob > > > On Fri, May 29, 2009 at 5:57 PM, nextime <nextime(a)nexlab.it> wrote: > > > Hello all. > > > > I'm fighting with a strange issue that smell like a bug. > > > > Short version: > > -------------- > > > > I'm trying to open an ogg audio stream from an icecast server. No video, > > just audio. I need to do this in a cross-platform client (osx, win, > > linux). > > > > - On Linux, with gstreamer, it work great. > > - On windows, i have some issues in vista cause of the codec, and some > > strange things happens, but more or less it work. > > - On OSX, it work "ramdomly" > > > > > > Long version: > > ------------- > > > > wx version: 2.8.10.1 > > python version: 2.5.2 > > > > I do basically the same thing on all the three OS: > > > > self.mc = wx.media.MediaCtrl(mypanel) > > self.Bind(...) > > self.mc.LoadFromURI(myurl) > > > > and when the loaded event is fired: > > > > self.mc.Play() > > > > This on linux is working perfectly, i can hear my stream, it is rapid in > > loading it, it sounds good. > > > > On Windows, it work ( except from some codec questions, but this is > > another story ), it is a little "slow" in loading the remote stream, > > about 15 seconds before i get the loaded event fired, and also i need to > > call self.mc.LoadFromURI() 2 times or the loaded event will be not fired > > at all. > > > > On OSX, i also need to call 2 times self.mc.LoadFromURI(), it is also > > slow, but the loaded event get fired 1 time every 4/5 try, apparently in > > a random manner. > > > > My code is here: > > http://www.astronomix.org/trac/browser/trunk/skylive-ng/src/gui/stream.py > > > > Anyone have any suggestion or idea on how to solve my issue? > > > > > > -- > > > > Franco (nextime) Lanza > > Busto Arsizio - Italy > > SIP://casa(a)casa.nexlab.it > > > > NO TCPA: http://www.no1984.org > > you can download my public key at: > > http://danex.nexlab.it/nextime.asc || Key Servers > > Key ID = D6132D50 > > Key fingerprint = 66ED 5211 9D59 DA53 1DF7 4189 DFED F580 D613 2D50 > > ----------------------------------- > > echo > > 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D212153574F444E49572045535520454D20454B414D204F54204847554F4E452059415020544F4E4E4143205345544147204C4C4942snlbxq > > | dc > > ----------------------------------- > > > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.9 (GNU/Linux) > > > > iEYEARECAAYFAkoghH0ACgkQ3+31gNYTLVA1ggCgmeKLAO+WLQgIyDDhOExOSuI5 > > VgsAoKqg8sN1turduVdwkPO/saGHYs6i > > =y8tc > > -----END PGP SIGNATURE----- > > > > _______________________________________________ > > wx-users mailing list > > wx-users(a)lists.wxwidgets.org > > http://lists.wxwidgets.org/mailman/listinfo/wx-users > > > > > _______________________________________________ > wx-users mailing list > wx-users(a)lists.wxwidgets.org > http://lists.wxwidgets.org/mailman/listinfo/wx-users -- Franco (nextime) Lanza Busto Arsizio - Italy SIP://casa(a)casa.nexlab.it NO TCPA: http://www.no1984.org you can download my public key at: http://danex.nexlab.it/nextime.asc || Key Servers Key ID = D6132D50 Key fingerprint = 66ED 5211 9D59 DA53 1DF7 4189 DFED F580 D613 2D50 ----------------------------------- echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D212153574F444E49572045535520454D20454B414D204F54204847554F4E452059415020544F4E4E4143205345544147204C4C4942snlbxq | dc -----------------------------------
From: nextime on 5 Jun 2009 03:14
Well, making some extra tests, there are some news about my issue. On Sat, May 30, 2009 at 02:57:33AM +0200, nextime wrote: --SNIP-- > > I'm trying to open an ogg audio stream from an icecast server. No video, > just audio. I need to do this in a cross-platform client (osx, win, > linux). > > - On Linux, with gstreamer, it work great. ... And it continue to work absolutely great > - On windows, i have some issues in vista cause of the codec, and some > strange things happens, but more or less it work. ... A little hack solve the problem. Just using mp3 streaming ( bad thing... but it is a codec issue, not a wxpython one ) and forcing WMP10 backend it work great. > - On OSX, it work "ramdomly" Here the problem remain. But it isn't really random, the problem is when i try to open an icecast stream. Assuming to eliminate every codec issue, i'm now trying to open the mp3 stream. Using QuickTime directly, if i try to open the url of my stream, http://skylive3.astronomix.org:8000/skylive.mp3, it won't work. But if i do the trick to change http:// with icy://, it work good. Trying to use http://skylive3.astronomix.org:8000/skylive.mp3.m3u won't work. Using wx.media.MediaCtrl, it won't work at all, my stream will never be opened, and the MEDIA_LOADED event will be never catched, even if i try to open icy://... Anyone have an idea on what i can i try? -- SNIP -- > My code is here: > http://www.astronomix.org/trac/browser/trunk/skylive-ng/src/gui/stream.py -- Franco (nextime) Lanza Busto Arsizio - Italy SIP://casa(a)casa.nexlab.it NO TCPA: http://www.no1984.org you can download my public key at: http://danex.nexlab.it/nextime.asc || Key Servers Key ID = D6132D50 Key fingerprint = 66ED 5211 9D59 DA53 1DF7 4189 DFED F580 D613 2D50 ----------------------------------- echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D212153574F444E49572045535520454D20454B414D204F54204847554F4E452059415020544F4E4E4143205345544147204C4C4942snlbxq | dc ----------------------------------- |