Bernard Blackham
2004-Aug-06 15:01 UTC
linux.conf.au and streaming (was Re: [speex-dev] patch for libspeex)
Hi Jens,> There is already streaming support in the xmms-plugin. > The 0.6.0 version found at http://jzb.rapanden.dk/speex/ is hopelessly > outdated, but the nightly version should work.D'oh, should've looked at this before hand. Seems you've done more or less what I've done and taken the streaming code from the mpeg/vorbis plugins and meshed it in with yours. I can't seem to get yours to work - it hangs at "CONNECTED: WAITING FOR REPLY". My version is at http://dagobah.ucc.asn.au/speex-xmms-0.6.0brb.tar.gz It hasn't yet been extensively tested (ie, all the streaming options), but it streams :) Bugs and comments welcome please! The other oddball thing that you've probably already found is that when xmms interrogates each plugin asking if it can handle it, the mpg123 plugin accepts all http streams that aren't oggs. Grrr. The workaround is to get the speex plugin before the mpg123 plugin in the chain, by giving it a name that comes before "MPEG..." - I've used " Speex..." (leading space).> I haven't worked on it in a while since I'm really busy at school, but if > anyone makes any patches, I'll be happy to look at them.In the process of merging your code with the http code, I've ripped yours to shreds to fit... Hope you dont mind. Perhaps you could bless it with a new version number? :) Cheers, Bernard. -- Bernard Blackham -- bernard at blackham dot com dot au <shameless plug follows/> Alan, Rasmus, HPA, Bdale, Rusty, Tridge, Hemos and more... Four days. One place. How would you feel if you missed it? http://www.linux.conf.au/ -------------- next part -------------- A non-text attachment was scrubbed... Name: part Type: application/pgp-signature Size: 190 bytes Desc: not available Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20021218/15bfa00d/part-0001.pgp
Jens Burkal
2004-Aug-06 15:01 UTC
linux.conf.au and streaming (was Re: [speex-dev] patch for libspeex)
On Wed, Dec 18, 2002 at 11:46:42PM +0800, Bernard Blackham wrote:> Hi Jens, > > > There is already streaming support in the xmms-plugin. > > The 0.6.0 version found at http://jzb.rapanden.dk/speex/ is hopelessly > > outdated, but the nightly version should work. > > D'oh, should've looked at this before hand. Seems you've done more > or less what I've done and taken the streaming code from the > mpeg/vorbis plugins and meshed it in with yours. > > I can't seem to get yours to work - it hangs at "CONNECTED: WAITING > FOR REPLY". My version is at > http://dagobah.ucc.asn.au/speex-xmms-0.6.0brb.tar.gz >Have you tried to compile it with debug? (make debug). What does it say in the terminal? (I assume you can get the file with wget)> It hasn't yet been extensively tested (ie, all the streaming > options), but it streams :) Bugs and comments welcome please! > > The other oddball thing that you've probably already found is that > when xmms interrogates each plugin asking if it can handle it, the > mpg123 plugin accepts all http streams that aren't oggs. Grrr. > > The workaround is to get the speex plugin before the mpg123 plugin > in the chain, by giving it a name that comes before "MPEG..." - I've > used " Speex..." (leading space).Or: 1. Disable the mpg123 plugin! I rarely have the need to play mp3 anymore :) 2. Get xmms from cvs. Edit xmms/Input/mpg123/mpg123.c. Add '.spx' to the exclude list at around line 395-400. Recompile the MPEG plugin.> > > I haven't worked on it in a while since I'm really busy at school, but if > > anyone makes any patches, I'll be happy to look at them. > > In the process of merging your code with the http code, I've ripped > yours to shreds to fit... Hope you dont mind. Perhaps you could > bless it with a new version number? :)Sure. I'll look at it tomorrow.> Cheers, > > Bernard. >/jens -- After Goliath's defeat, giants ceased to command respect. - Freeman Dyson -------------- next part -------------- A non-text attachment was scrubbed... Name: part Type: application/pgp-signature Size: 233 bytes Desc: not available Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20021218/eba85c85/part-0001.pgp
Bernard Blackham
2004-Aug-06 15:01 UTC
[speex-dev] xmms plugin (was Re: linux.conf.au and streaming)
On Wed, Dec 18, 2002 at 06:25:39PM +0100, Jens Burkal wrote:> Have you tried to compile it with debug? (make debug). > What does it say in the terminal? (I assume you can get the file with > wget)Okay, I figured out that one - the default Buffer Size is 0, so it hangs in http_buffer_loop waiting for some buffer space it'll never get... Adding some buffer solves that :) (Or changing the default buffer size). Next issue is that it stops before the end of the stream - I suspect when it completes streaming/downloading, and not playing.> > The workaround is to get the speex plugin before the mpg123 plugin > > in the chain, by giving it a name that comes before "MPEG..." - I've > > used " Speex..." (leading space). > > Or: > 1. Disable the mpg123 plugin! I rarely have the need to play mp3 > anymore :) > 2. Get xmms from cvs. Edit xmms/Input/mpg123/mpg123.c. Add '.spx' to the > exclude list at around line 395-400. Recompile the MPEG plugin.Thought of these, but I want to be able to distribute this to people and not have to ask them to disable their mp3 plugin or recompile xmms. I'd like to dispel rumours that *nix isn't user friendly :) -- Bernard Blackham -- bernard at blackham dot com dot au <shameless plug follows/> Alan, Rasmus, HPA, Bdale, Rusty, Tridge, Hemos and more... Four days. One place. How would you feel if you missed it? http://www.linux.conf.au/ -------------- next part -------------- A non-text attachment was scrubbed... Name: part Type: application/pgp-signature Size: 190 bytes Desc: not available Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20021219/b5d56008/part-0001.pgp