Hello community,
I am working on a project now which requires to stream 'Live Radio streams' together from multiple browsers at the same time, may be in the same patch. I couldn't figure out which 'Object' would let me do this multiple streams in one patch.
Any possible solutions, or suggestions would be appreciated. :)
Thanks in advance, Bidisha
Again, just to clarify, I want to receive three separate internet mp3 streams within one PD patch. Is that possible?
Thanks in advance. :)
On Wed, 2025-05-21 at 09:40 +0000, bidsmails.d@gmail.com wrote:
Again, just to clarify, I want to receive three separate internet mp3 streams within one PD patch. Is that possible?
There is [readanysf~] which supports many protocols and audio formats. It's included in Debian and its derivatives as 'pd-readanysf':
sudo apt install pd-readanysf
Unfortunately, I started experiencing crashes with [readanysf~] lately. However, it seems those occur only when playing local files, but not when playing URLs. You mileage may vary. I've been using [readanysf~] for playing web radios and I haven't found a stream that couldn't be played.
I heard that [play.file~] from ELSE has gained capabilities to stream web sources. You can install ELSE through Deken. Search for 'else'. I couldn't test myself since I get 'undefined symbol' errors when trying to load compiled objects from the library.
While I like very much the wide format support and the simple interface of [readanysf~], it's based on libraries whose development has stopped years ago and the external itself currently hasn't a maintainer. ELSE, on the other hand, has a very active and responsive maintainer. Depending on your OS, ELSE might work out of the box (currently, it doesn't for me on Ubuntu 24.04) and I am confident reported issues are addressed within reasonable time.
https://github.com/porres/pd-else/
https://github.com/pd-externals/readanysf
Roman
Yes, so, a couple of weeks ago I upload a major update with countless new things and bugfixes, and one of them was streaming support for [play.file~]. I was able to test and play one stream just fine when it came out, but I made a silly bug and couldn't play from roman's netpd stream or local streams later. I fixed that now on master and will make a whole new update maybe next week or so.
The thing is that some users are having issues with this object on Linux and I have to figure out why it might work sometimes and why not. It seems fine on macOS/Win though. I tried fixing the Linux issue this week and it didn't work. It's having some issues linking ffmpeg, I'm not sure.
And by the way, while I was fixing the streaming, I took the streaming capability away from [play.file~] and just put into a new [streamin~] object, which is already up in my master branch with the mentioned fixes. And yeah, I'm also including a [streamout~] object. The idea is to offer a more modern option that can handle mp3, ogg/vorbis, ogg/opus, flac and what not. I guess I can squeeze it in with at least ogg support in the next update next week. For later, I'll work on write.file~, which will handle all the many many formats ffmpeg and play.file~ can handle.
Sorry it's all still coming out of the oven, it'll be ready soon ;) It's supposed to be much more modern and offer more features and be more stable than existing old externals.
If you're not in Linux you might be able to work with the existing [play.file~], but note all that's about to come in a week or so.
cheers
Em qua., 21 de mai. de 2025 às 07:47, Roman Haefeli reduzent@gmail.com escreveu:
On Wed, 2025-05-21 at 09:40 +0000, bidsmails.d@gmail.com wrote:
Again, just to clarify, I want to receive three separate internet mp3 streams within one PD patch. Is that possible?
There is [readanysf~] which supports many protocols and audio formats. It's included in Debian and its derivatives as 'pd-readanysf':
sudo apt install pd-readanysf
Unfortunately, I started experiencing crashes with [readanysf~] lately. However, it seems those occur only when playing local files, but not when playing URLs. You mileage may vary. I've been using [readanysf~] for playing web radios and I haven't found a stream that couldn't be played.
I heard that [play.file~] from ELSE has gained capabilities to stream web sources. You can install ELSE through Deken. Search for 'else'. I couldn't test myself since I get 'undefined symbol' errors when trying to load compiled objects from the library.
While I like very much the wide format support and the simple interface of [readanysf~], it's based on libraries whose development has stopped years ago and the external itself currently hasn't a maintainer. ELSE, on the other hand, has a very active and responsive maintainer. Depending on your OS, ELSE might work out of the box (currently, it doesn't for me on Ubuntu 24.04) and I am confident reported issues are addressed within reasonable time.
https://github.com/porres/pd-else/
https://github.com/pd-externals/readanysf
Roman
pd-list@lists.iem.at - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/pd-list@lists.iem.at/message/FYQG75AO4R...
To unsubscribe send an email to pd-list-leave@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
D'oh! I always forget, now you can download things from github actions, you can see one of my last commits is [streamin~] https://github.com/porres/pd-else/actions
You can download the binaries and test it, if you're in Linux let me know if you're having the issue. If not, you should have it working ;)
cheers
Em qua., 21 de mai. de 2025 às 10:37, Alexandre Torres Porres < porres@gmail.com> escreveu:
Yes, so, a couple of weeks ago I upload a major update with countless new things and bugfixes, and one of them was streaming support for [play.file~]. I was able to test and play one stream just fine when it came out, but I made a silly bug and couldn't play from roman's netpd stream or local streams later. I fixed that now on master and will make a whole new update maybe next week or so.
The thing is that some users are having issues with this object on Linux and I have to figure out why it might work sometimes and why not. It seems fine on macOS/Win though. I tried fixing the Linux issue this week and it didn't work. It's having some issues linking ffmpeg, I'm not sure.
And by the way, while I was fixing the streaming, I took the streaming capability away from [play.file~] and just put into a new [streamin~] object, which is already up in my master branch with the mentioned fixes. And yeah, I'm also including a [streamout~] object. The idea is to offer a more modern option that can handle mp3, ogg/vorbis, ogg/opus, flac and what not. I guess I can squeeze it in with at least ogg support in the next update next week. For later, I'll work on write.file~, which will handle all the many many formats ffmpeg and play.file~ can handle.
Sorry it's all still coming out of the oven, it'll be ready soon ;) It's supposed to be much more modern and offer more features and be more stable than existing old externals.
If you're not in Linux you might be able to work with the existing [play.file~], but note all that's about to come in a week or so.
cheers
Em qua., 21 de mai. de 2025 às 07:47, Roman Haefeli reduzent@gmail.com escreveu:
On Wed, 2025-05-21 at 09:40 +0000, bidsmails.d@gmail.com wrote:
Again, just to clarify, I want to receive three separate internet mp3 streams within one PD patch. Is that possible?
There is [readanysf~] which supports many protocols and audio formats. It's included in Debian and its derivatives as 'pd-readanysf':
sudo apt install pd-readanysf
Unfortunately, I started experiencing crashes with [readanysf~] lately. However, it seems those occur only when playing local files, but not when playing URLs. You mileage may vary. I've been using [readanysf~] for playing web radios and I haven't found a stream that couldn't be played.
I heard that [play.file~] from ELSE has gained capabilities to stream web sources. You can install ELSE through Deken. Search for 'else'. I couldn't test myself since I get 'undefined symbol' errors when trying to load compiled objects from the library.
While I like very much the wide format support and the simple interface of [readanysf~], it's based on libraries whose development has stopped years ago and the external itself currently hasn't a maintainer. ELSE, on the other hand, has a very active and responsive maintainer. Depending on your OS, ELSE might work out of the box (currently, it doesn't for me on Ubuntu 24.04) and I am confident reported issues are addressed within reasonable time.
https://github.com/porres/pd-else/
https://github.com/pd-externals/readanysf
Roman
pd-list@lists.iem.at - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/pd-list@lists.iem.at/message/FYQG75AO4R...
To unsubscribe send an email to pd-list-leave@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
Hi if you are ok to use ogg, there is [oggcast~] from pdogg lib in deken. It is very reliable: I have two Bela devices and a computer streaming since almost one year with no issue.
rph
Le 20/05/2025 à 09:45, bidsmails.d@gmail.com a écrit :
Hello community,
I am working on a project now which requires to stream 'Live Radio streams' together from multiple browsers at the same time, may be in the same patch. I couldn't figure out which 'Object' would let me do this multiple streams in one patch.
Any possible solutions, or suggestions would be appreciated. :)
Thanks in advance, Bidisha
pd-list@lists.iem.at - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/pd-list@lists.iem.at/message/HHX6HOEOR4...
To unsubscribe send an email to pd-list-leave@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/