Welcome, Guest | Home | Search | Login | Register
Author A music stream player running on 68k ? (Read 91302 times)
cballero
1024 MB
******
Posts: 1176
System 7, today and forever
View Profile
Reply #15 on: September 18, 2022, 18:28

Well, my crazy little idea has been for quite a while now that Classic Mac users (wait, I think that's us!! lol) could teach each others (newbies :)) the ways of the Classic Mac jedis through these same Macs, whether a family member passed them down one, they got one by any other means, or they built one on their own using real parts or emulated Mac software, it doesn't matter! :D

But this now has me thinking, so a file server is all we need for playing MP3s, right? Or would that merely download the MP3s? I can test a few MP3 songs off of my local http server, I suppose from my phone Mac for now. The only (itty bitty) downside I can think of is that on a browser, the files would just look so so, whereas it could look cooler with a MP3 jukebox styled-server! Sigh, toys waiting to be programmed, lol ;)

And I already have a local PDF and ebook server, but I haven't tried accessing it from a Classic Mac yet, but it may just work since my local server applications all serve HTTP files so that hurdle is already crossed off. Off to test I'll go then :)
ovalking
128 MB
****
Posts: 199
View Profile
Reply #16 on: September 18, 2022, 20:50

Thanks Galgot - I finally got it to work.

By comparing our text files, I eventually spotted a subtle difference.

There MUST be a carriage return after the URL in the text, or MPEGDec won't play.
SoundJam doesnt require this.y
MTT
256 MB
*****
Posts: 394
SSW7 Oldtimer
View Profile
Reply #17 on: September 19, 2022, 04:57

I've since found that radio channels that may work fine in more recent players, many of those will not work outright with MpegDec. It's a process of elimination and manual discovery to find those that do.

Here's a small playlist of radio channels that do work in MpegDec OK

Most are French and UK in origin:

[Filelist]
NumberOfEntries=16
File1=http://icecast.radiofrance.fr/fip-midfi.mp3
File2=http://icecast.rtl.fr/rtl-1-44-128
File3=http://icecast.rtl2.fr/rtl2-1-44-128
File4=http://radio-contact.ice.infomaniak.ch/radio-contact-high
File5=http://str0.creacast.com/magnum
File6=http://str0.creacast.com/pharefm
File7=http://stream.live.vc.bbcmedia.co.uk/bbc_radio_one
File8=http://stream.live.vc.bbcmedia.co.uk/bbc_radio_two
File9=http://stream.live.vc.bbcmedia.co.uk/bbc_radio_three
File10=http://stream.live.vc.bbcmedia.co.uk/bbc_radio_fourfm
File11=http://stream.live.vc.bbcmedia.co.uk/bbc_radio_five_live
File12=http://stream.live.vc.bbcmedia.co.uk/bbc_6music
File13=http://stream.live.vc.bbcmedia.co.uk/bbc_world_service
File14=http://rs26.stream24.net/stream
File15=http://listen.radionomy.com/australia-128
File16=http://www.radioking.com/play/poptastic-radio

Copy & Paste and save as a .pls

A large collection of links here: https://samsoft.org.uk/iTunes/InternetRadio.asp
He created it with iTunes in mind, but several will work in MpegDec - a lot of sifting to do, some 6000+ entries and perhaps only 5% of these will work. Maybe more.
Bolkonskij
Administrator
1024 MB
*****
Posts: 2023
View Profile Cornica - Video Entertainment for Mac OS users
Reply #18 on: September 19, 2022, 09:39

For friends of Russian Chanson :)

File17=http://chanson.hostingradio.ru:8041/chanson128.mp3
cballero
1024 MB
******
Posts: 1176
System 7, today and forever
View Profile
Reply #19 on: September 19, 2022, 14:16

Yay!!! :D Very, very nice list indeed!!! :)

I'm sure some US-side and even Spanish ones will eventually surface someplace ;)
Neal_SE30
256 MB
*****
Posts: 401
System 7 Newcomer!
View Profile
Reply #20 on: September 24, 2022, 18:51

Interesting,
I tried that software on my se/30 but using a downloaded mp3. It pretty much froze it, a stuttering mess lol. Not unexpected on a 16mhz machine. 128kbps radio though could work even on zippy my se/30 humm.
cballero
1024 MB
******
Posts: 1176
System 7, today and forever
View Profile
Reply #21 on: September 24, 2022, 23:50

A few key tips that helped me to test why MPEGDEC was so glitchy for me when I first tried it:

1. open your sound panel and select your output settings
2. check to make sure your audio is set to 8-bit rather than 16-bit
3. try lowering the playback quality to a lower setting
4. also tweak your MPEGDEC settings to see if your playback improves
5. one setting that helped my playback was selecting maximum buffer size

Hopefully these settings will make possible to play your MP3 file. And I'm guessing that possibly an MP3 with a lower bit-rate may play more easily on your Mac.

Good luck testing some of these ideas; I hope MPEGDEC pulls through with some of these setting tweaks! :D
Neal_SE30
256 MB
*****
Posts: 401
System 7 Newcomer!
View Profile
Reply #22 on: September 25, 2022, 15:38

Thanks for that Cballera. I hadn’t Actually looked any further than simply trying it so didn’t look at the settings. i just thought i’d try it for giggles 🤭 to see what would happen as I had read somewhere a top end 68040 was probably the lowest spec to run mp3.

Now you’re said that, i will have a fiddle with the settings and see what it can achieve. I’ll let you know :)
cantonjohn
16 MB
***
Posts: 26
System 7 Newcomer!
View Profile
Reply #23 on: February 13, 2023, 17:19

Anyone able to get the title of the stream showing? All I can get is 'Streaming pls' displayed for each stream. Would be nice to know the name of the current station.

The format - https://en.wikipedia.org/wiki/PLS_(file_format) - suggests you should be able to put a title tag in the .pls file, like so:

Code: [Select]
File1=http://stream.live.vc.bbcmedia.co.uk/bbc_radio_one
Title1=Radio One
File2=http://stream.live.vc.bbcmedia.co.uk/bbc_radio_two
Title2=Radio Two

... but no luck with that. The MpegDec Readme suggests that '.m3u' files can be used for streaming too (as well as '.pls'), so maybe I'll give that a go.
cantonjohn
16 MB
***
Posts: 26
System 7 Newcomer!
View Profile
Reply #24 on: February 13, 2023, 17:40

Well, I tried the bbc m3u files here: https://gist.github.com/bpsib/67089b959e4fa898af69fea59ad74bc3

.. and I just get 'Streaming m3u' as the displayed title. Either I'm doing something wrong with the formatting of these playlist files, or MpegDec doesn't support it. Maybe I need to look at the MpegDec source code...

Neal_SE30
256 MB
*****
Posts: 401
System 7 Newcomer!
View Profile
Reply #25 on: February 13, 2023, 22:12

When i get zippy working and at 50mhz this is definitely something i want to try. I didn’t try radio before on the program, as i think i said belie only tried an mp3 which was to high a bit rate to run properly. These streams seem like s perfect way to use it.

Really helpful info on how to do it.
68040
512 MB
*****
Posts: 950
68k - thy kingdom come, thy will be done !
View Profile
Reply #26 on: February 13, 2023, 22:47

@cballero - With a streaming service the buffer size should actually be smaller as faster your underlying system is. Otherwise you only adding load in case the transfer gets interrupted, you pause or any other action happens that invalidates the buffer - and thus requires it to be refilled from scratch.

A buffer is only a crotch to be used to compensate for lack of speed. But if you've got a fast system + fats network) then adding a large buffer on top might actually slow you down again.
cballero
1024 MB
******
Posts: 1176
System 7, today and forever
View Profile
Reply #27 on: February 14, 2023, 01:47

Thanks for that insight, 68040! :)

And @CantonJohn: if you're looking at the source code to display a station's name, you may also like to look at Mark White's development plan to make MPEGDEC skinnable, too! :D
MTT
256 MB
*****
Posts: 394
SSW7 Oldtimer
View Profile
Reply #28 on: February 14, 2023, 06:53

@cantonjohn: It looks as though MPegDec ignores or doesn't know about "Title=" entered into the playlist.

I think it also depends on the radio broadcast for the title to show when MPegDec is streaming audio.

It didn't seem to work for you, but I get "BBC" showing in the title for all of those BBC stations posted above. No variation, just BBC for all of them.

For the Australian channel it returns "Jamendo Lounge", and the German channel returns "Radio Arabella Muenchen" when playing.

A couple of the French ones return "Contact, la radio enjoy" and "Magnum La Radio" when playing.

Unless... are you expecting the title to show up in the blue bar at the top of the player window?

Perhaps you haven't expanded the widow to show channels that give the channel title?

About midway down the player's window on left side is "ID3" with a small triangle next to it. Click the triangle to expose additional info if you haven't done this as yet.
Last Edit: February 14, 2023, 07:04 by MTT
cantonjohn
16 MB
***
Posts: 26
System 7 Newcomer!
View Profile
Reply #29 on: February 14, 2023, 11:21

Quote
Perhaps you haven't expanded the widow to show channels that give the channel title?

About midway down the player's window on left side is "ID3" with a small triangle next to it. Click the triangle to expose additional info if you haven't done this as yet.

Yes, you’re right. I didn’t see that. But as you say, it just shows ‘BBC’ which is not great. I’ve got a solution whereby I make separate ‘.pls’ files for each station. And then I created different desktop images for each station. I then put an AppleScript for each station in my Apple Menu, which:
1. Opens the .pls (ie the BBC Radio One pls)
2. Sets the Desktop wallpaper image to the correct image, ie BBC-Radio-One logo. This is done using Decor, because on its own System 7 can only do patterns on the desktop. Decor is well supported by AppleScript
Pages: 1 [2] 3

© 2021 System7Today.com.
The Apple Logo, Macintosh™, Mac OS™, and others property of Apple Computer, Inc.
This site is in no way affiliated with Apple Computer, Inc.