Prev: wxpython: wx.media.MediaCtrl with icecast streaming: won't work as expected.
Next: FINAL NOTICE: Mail list migration
From: Steve Cookson on 31 May 2009 08:44 Hi Franco, It's good to hear that I'm not the only one using wxMediaCtrl :) Although it has a steep learning curve, I do seem to get around all my problems eventually. And I now have a nice display of wxMediaCtrl and I even have some editing going on. With regard to your problem: 1) Firstly, do you have control over the server end? Maybe you could experiment with using a different codec? 2) Secondly Windows is generally very tolerant of poor encoding, but VLC is better. There is a VLC backend out there somewhere: http://www.nabble.com/Introduction-%2B-patches-for-wxGrid-%2B-proposal-for-v lcbackend-td20090167.html But it's not part of wxWidgets yet (apparently). I think it would be very a nice addition. Try using VLC standalone and see if it works. Good luck. Regards Steve São Paulo, Brasil -----Original Message----- From: wx-users-bounces(a)lists.wxwidgets.org [mailto:wx-users-bounces(a)lists.wxwidgets.org] On Behalf Of nextime Sent: 31 May 2009 07:01 To: wx-users(a)lists.wxwidgets.org Subject: Re: wxpython: wx.media.MediaCtrl with icecast streaming: won'twork as expected. 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/stre > > am.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]sbA0D212153574F444E4957204553552045 > > 4D20454B414D204F54204847554F4E452059415020544F4E4E414320534554414720 > > 4C4C4942snlbxq > > | 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]sbA0D212153574F444E49572045535520454D20454B 414D204F54204847554F4E452059415020544F4E4E4143205345544147204C4C4942snlbxq | dc ----------------------------------- |