Page 2 of 5

Posted: Tue 23 Aug 2005, 01:25
by GuestToo
Lobster said something about Austrumi had a quick launcher for streaming audio (internet "radio" ... and some of the streams are actually real radio stations) ... since i already had a simple launcher, i made a quick demo to see if there was any interest ... i don't know what Austrumi's is like, i haven't tried Austrumi for a long time

you can use the playlist feastures in gxine and xmms to make and save and load playlists ... i thought a simple window that pops up instantly and plays a radio station with one click of the button might be useful, and easier than the playlists

xmms can play mrls, but it doesn't seem to be able to play a pls url directly from the command line (maybe it can, i haven't done a thorough study) ... it does seem to play playlists if you download them first

gxine does seem to be able to play a pls file directly from the comand line

some playlists seem to work in gixine and not in xmms ... some playlists seem to work in xmms but not in gxine

xmms may not have all the codecs/plugins setup

i think some servers check what program is trying to access the stream, and won't serve gxine ... wget can pretend to be Winamp ... i don't think gxine can fake the UserAgent

mplayer can't seem to play a pls file, but it can play the url's in the playlist

it's better to use the playlist url, because the playlist from the server has the latest streamcast urls ... they change sometimes, and the server may be using load balancing, sending you a playlist with urls that are not heavily loaded

and another thing ... not all the urls in the playlist may be working ... this can cause xmms to popup an error message, i don't know how to prevent that yet

in other words, it's more complicated than you might think ... i don't think it's possible to make a radio app that will work perfectly every time ... things change, and urls stop working

i didn't think of having station lists on the wiki ... i did think of having station lists as text files, maybe uploaded to the forum, maybe as zip files ... i also thought of making dotpup installers to easily install a new station list (one click, and you have the latest stations list installed ... actually, the whole program is not very big, so the dotpup could install the latest version of the program too)

Posted: Tue 23 Aug 2005, 03:41
by GuestToo
i uploaded a new version
this one reads the station list from a text file
(the text file is in the roxapp)

it's called Radio3 and is put in my-roxapps
so it should not interefere with other versions
for example, Pizzasgood's version

all the stations in the list were working when i uploaded it

maybe lists of stations on the wiki would be the best way to keep the station lists updated

Posted: Tue 23 Aug 2005, 04:57
by edoc
GuestToo wrote:i uploaded a new version
it's called Radio3
OK, I give up, to where did you upload it please?

I looked around the dotpups and must have missed it.

doc

Posted: Tue 23 Aug 2005, 05:08
by Lobster
Hi edoc

Go to page 1 of this thread and download the original file - hooray BBC radio stations . . . (it has been updated)

Who has tried Pizzasgood wiki radio? Let us know

G2 - am running from Alpha 1.0.5 rc2 (new developers Pup) and got the following message "Error loading library:cook.so.6.0" which I am pretty sure is nothing to do with your program (the same message comes up when trying to run a radio selection in Xine)

Posted: Tue 23 Aug 2005, 05:29
by GuestToo
i have not downloaded or tried Alpha 1.0.5 rc2 yet
i don't know what is included and what is left out

i tested all the radio stations, they all worked on my machine
(Puppy 1.0.4) ... some of them probably need broadband

the realplayer codecs are in /usr/lib/win32/
cook.so and cook.so.6.0

they aren't very big (about 53k) ... i could upload a cook dotpup

Posted: Tue 23 Aug 2005, 05:34
by edoc
[quote="Lobster"]
Who has tried Pizzasgood wiki radio? Let us know/quote]

I got myself added to the Wiki and added an entry but have not yet located Radio2.

I do have Radio and Radio 3.

doc

Posted: Tue 23 Aug 2005, 05:48
by GuestToo
i think if you rename the original Radio program to Radio2
then click UpdateRadio, it downloads the station list from the wiki page and modifes (updates) the Radio2 program

it seems to work for me, anyway

i guess it would work with Radio3 too, if you copied or renamed it to Radio2

i don't have a copy of the original Radio program
it got deleted
come to think of it, i uploaded my latest version over the original version ... so it's gone

it was pretty crude anyway
the newer one can play more kinds of playlists ... though it still has a lot of crude workarounds in it

Posted: Tue 23 Aug 2005, 05:55
by edoc
GuestToo wrote:i think if you rename Radio3 to Radio2 then click UpdateRadio, it downloads the station list from the wiki page and modifes (updates) the Radio2 program
That nails it!

Thanks! Now I can get some shut-eye.

doc

Posted: Tue 23 Aug 2005, 06:38
by flamesage
I have a quesiton, say i want to put JOY FM on the blog, but for some reason, whenever I try to connect to it, I don't get a .pls file..
I get just a weird address....

http://www.live365.com/cgi-bin/play.pls ... 2479182030

How would I go about converting this to something this radio can use?

Posted: Tue 23 Aug 2005, 07:05
by Lobster
GuestToo wrote:
the realplayer codecs are in /usr/lib/win32/
cook.so and cook.so.6.0

they aren't very big (about 53k) ... i could upload a cook dotpup
That would be pretty kewl - I am kinda of in Love with the new Alpha Pup ("Lobster Loves Puppy - True") - no interspecies giggling . . .

so am gonna have a go at using the new Rox you created with the Alpha (I already changed the Mozilla theme)

:)

Posted: Tue 23 Aug 2005, 07:09
by flamesage
Quick Question: In the next verson of puppy, will gxine and rox be updated to their new versions?

Then the radio would look better on the desktop, since for some reason when it updated, it allowed the name to blend in with the background.

Posted: Tue 23 Aug 2005, 07:45
by Guest
Lobster as Guest (incognito)

I think the new Rox will be available as a pupget or dotpup (the old version is sufficient for most tasks and is much smaller - BUT the language thing might be an issue)

the default xine has been upgraded to 0.4.6 (using it now in the Alpha rc2 of 1.0.5)

the cook.so and cook.so.6.0 libraries are solved by downloading the puppget "extra codecs"

The sound becomes strange (using xine) not sure if this is a buffering problem - sounds OK then repeats itself . . . (this is using the new radio stations which includes BBC7 which is comedy - hooray) - so you have two signals
- so the Radio3 program is dependent on Xine

- halt the cook.so and cook.so.6.0 (if you have started this - sorry . . .)

Posted: Tue 23 Aug 2005, 08:02
by GuestToo
JOY FM works in my Radio3 program

Pizzasgood's UpdateRadio uses an older version of my program, which probably doesn't work for JOY FM

Posted: Tue 23 Aug 2005, 08:04
by flamesage
Hmmmm weird.
Im using yours...
Oh well, I found another one (which I recently added to the blog list)

Posted: Tue 23 Aug 2005, 19:29
by edoc
GuestToo wrote:JOY FM works in my Radio3 program
I don't see it on the Wiki list, how did you get it to work?

doc

Posted: Wed 24 Aug 2005, 03:05
by GuestToo
i added some stations to my radio program
(just download and install the same radio.pup here)

Pizzasgood's UpdateRadio program downloads stations from the wiki page, and rewrites the radio program in Radio2

if you copy or rename my Radio or Radio3 program to Radio2, it will work with Radio2

but it is based on an older version of my Radio program (in fact my first crude demo) ... my older program, and Pizzasgood's program, does not play as many types of playlist files as my newest version (which is still pretty crude)

so at the moment, they are 2 different programs, basically 2 different experiments ... since they have different names, they should not interefere with each other

my Radio3 program does not download and update the station list from the wiki page (not yet, anyway)

Posted: Wed 24 Aug 2005, 03:15
by flamesage
Wow this is going to be confused.
Why not have a G2 Radio (Guest Two) and A Pizza-Radio (Pizza good's verson)

Posted: Thu 25 Aug 2005, 00:40
by Pizzasgood
Well, mine doesn't deserve to be called a radio, because all it does is download the list of stations, then replaces the stations in G2's radio with those ones. The resulting radio is nearly identical, but it has different radiostations and a quote might be moved. Otherwise it doesn't change anything. That's why I called it an updater. I almost combined them into one that automatically updated when it was run, but I didn't have enough energy left, and this was is safer incase the station list gets screwed up (because then the script would be screwed up every time it is run, whereas this way you can fix it and just run the radio).
I haven't looked at the newest rendition yet, maybe on Friday I'll see what's inside. This weekend I think I'll devise a cleaner way to load the list, so they don't need to be numbered. Then they could be categorized. I'm also going to see if I can get it to let you add your own stations and keep them. I already have a couple ideas, and I can expand on them in math class (not that I don't pay attention, I just learn it the first time, so I zone out after that until we get to something new).

Remember young pup's, DO NOT follow Pizzasgood's examples. His habits are BAD (or at least that's what the establisments tell me. I disagree, of course....)

Posted: Fri 26 Aug 2005, 03:44
by edoc
GuestToo wrote:JOY FM works in my Radio3 program
Is it possible to capture the streaming audio via Radio3?

I would really like to record the Christian jazz on JoyFM on Sunday evenings to listen to all week.

Also, and I know I am asking a lot, but is it possible to set date/time schedules to open Radio3 in the background, open a station, and record the streaming audio?

Getting greedy for Puppy-to-the-max! doc

Posted: Fri 26 Aug 2005, 04:31
by doopdoop
xine does not support putting the stream directly to your disc, put you can redirect the output to an uncompressed wav-file. (tried this with a recent xine on Arch Linux, but should work in puppy too)

Code: Select all

gxine -A file http://mystream.adress.ca/stream.asx
The output is saved in xine-out.wav in the current directory.
If you install mplayer, you can redirect the media stream and keep it compressed

Code: Select all

mplayer -dumpstream -dumpfile output.asx http://mystream.adress.ca/stream.asx
Scheduling on Unix-like-systems is usually a job for a cron daemon - there is none in puppy (yet?).
A poormans solution would be to let the computer wait and then execute the recording

Code: Select all

sleep 160m;gxine -A file http://mystream.adress.ca/stream.asx