radio streamer Bionic 32 (solved)

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
gilles
Posts: 186
Joined: Fri Aug 21, 2020 11:07 pm
Location: France
Has thanked: 44 times
Been thanked: 13 times

radio streamer Bionic 32 (solved)

Post by gilles »

Hello,
I am looking for a radio streamer that works with the radios of my choice (for example https://latina104.net/ or https://radios.com.do/perla-106-3-fm) with display of the name of the singers and title of the songs.
Thanks in advance

Last edited by gilles on Tue Dec 06, 2022 5:00 pm, edited 1 time in total.
User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: radio streamer Bionic 32

Post by Jasper »

Hi there

I have had a stab at this but got stuck and hopefully someone with more knowledge can provide a solution.

Using your 1st link, I opened up the code for the page and looked for the audio track/playlist that was being used.

I then used streamripper to see if it would allow me record the audio.

Initially it gives me the track name but it fails. I had to change the UserAgent in order to connect to the stream initially. Without it, you cannot connect.

Hopefully someone else has a solution for you.

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: radio streamer Bionic 32

Post by Jasper »

Forget the nonsense above :lol:

If you have mpv available to you. It might work the same way with VLC, Mplayer :?:

Simply drop this url into it and it will give you the track names:

https://radio.dominiserver.com/proxy/la ... mp=/stream

Here's the mpv app:
http://distro.ibiblio.org/puppylinux/pe ... bionic.pet

gilles
Posts: 186
Joined: Fri Aug 21, 2020 11:07 pm
Location: France
Has thanked: 44 times
Been thanked: 13 times

Re: radio streamer Bionic 32

Post by gilles »

Thank you Jasper.
But I use Bionic 32 not Bionic 64
I just installed mpv 32. But I don't see how to drop an URL in it !

I am looking for a streamer which shows directly the name of the singer and the title, juste like the radio website

User avatar
Trapster
Posts: 182
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 54 times

Re: radio streamer Bionic 32

Post by Trapster »

smplayer plays this stream and shows artist and title

https://radio.dominiserver.com/proxy/la ... mp=/stream

Image

EDIT:
you can always start mpv in a console and paste the stream url into it.
The console does show artist and title while playing.

Code: Select all

mpv https://radio.dominiserver.com/proxy/latina104?mp=/stream
Last edited by Trapster on Fri Dec 02, 2022 4:08 pm, edited 1 time in total.
User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: radio streamer Bionic 32

Post by Jasper »

@gilles

If you have difficulties then open up terminal as I have shown in my screenshot and then type in:

Code: Select all


mpv https://radio.dominiserver.com/proxy/latina104?mp=/stream

Better still try @Trapster idea :thumbup:

User avatar
Trapster
Posts: 182
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 54 times

Re: radio streamer Bionic 32

Post by Trapster »

Damn, I never new mpv had so many options.

Code: Select all

mpv --list-options

You can start mpv with

Code: Select all

 mpv --force-window https://radio.dominiserver.com/proxy/latina104?mp=/stream

I am using icewm and the artist and title shows in the window title bar.
You can always "Rollup" the window to just show the title bar while playing.

gilles
Posts: 186
Joined: Fri Aug 21, 2020 11:07 pm
Location: France
Has thanked: 44 times
Been thanked: 13 times

Re: radio streamer Bionic 32

Post by gilles »

Trapster wrote: Fri Dec 02, 2022 3:48 pm

smplayer plays this stream and shows artist and title

https://radio.dominiserver.com/proxy/la ... mp=/stream

Image

Hi
Thank you. smplayer is exactly what I am looking for. So I installed it in my bionic 32. But it does'nt work.Please see the enclosed screen pictures. ffmpeg is installed.
Any idea ? Thank you for your help
https://c.gmx.fr/@562951818338899669/GK ... yR8n7mDH6Q https://c.gmx.fr/@562951818338899669/y8 ... 10yIvNP-VQ https://c.gmx.fr/@562951818338899669/Wz ... ESGZMyNDXA https://c.gmx.fr/@562951818338899669/k7 ... ymYrOVDGgw

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: radio streamer Bionic 32

Post by Jasper »

@gilles

Sorry to hear your still having difficulties.

Looking at the last screenshot you provided it looks like the backend ie mpv and ffmpeg needs to updated :cry:

At the bottom of this page you can find the mpv application.

Maybe it has been compiled with the additional options
https://packages.ubuntu.com/bionic/mpv]

also for ffmpeg
https://packages.ubuntu.com/bionic/ffmpeg

Another solution might be to try Yradio provided by @fredx181

viewtopic.php?p=74256#p74256

Simply download the Yradio.gz file, extract it and run via terminal.

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: radio streamer Bionic 32

Post by williams2 »

like the backend ie mpv and ffmpeg needs to updated

There are static builds of ffmpeg.

Most software that uses ffmpeg do not use the ffmpeg executable directly, they use the ffmpeg library files.

Updating to a newer static build of ffmpeg might not update the ffmpeg libs.

Installing a newer version of a static ffmpeg might uninstall some or all of the ffmpeg lib files.

Which might or might not apply to your particular situation.

gilles
Posts: 186
Joined: Fri Aug 21, 2020 11:07 pm
Location: France
Has thanked: 44 times
Been thanked: 13 times

Re: radio streamer Bionic 32

Post by gilles »

Jasper wrote: Sat Dec 03, 2022 6:30 pm

@gilles

Sorry to hear your still having difficulties.

Looking at the last screenshot you provided it looks like the backend ie mpv and ffmpeg needs to updated :cry:

At the bottom of this page you can find the mpv application.

Maybe it has been compiled with the additional options
https://packages.ubuntu.com/bionic/mpv]

also for ffmpeg
https://packages.ubuntu.com/bionic/ffmpeg

@jasper

I uninstalled mpv and installed it again with your link
I installed ffmpeg with your link.

But I have still the same problems

Thank you for your help

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: radio streamer Bionic 32

Post by Jasper »

@gilles

The only thing I can suggest is to ask in the Bionic forum and hopefully someone may have a solution for you.

viewforum.php?f=115

BTW I liked Latina 104 so much, I bookmarked in my radio list, love Bacchata :thumbup2:

Philh
Posts: 30
Joined: Sun Aug 16, 2020 1:50 pm
Been thanked: 7 times

Re: radio streamer Bionic 32

Post by Philh »

If you can play in your browser.
This site tells you whats playing.

https://onlineradiobox.com/do/latina104 ... 4&played=1

User avatar
mikewalsh
Moderator
Posts: 6163
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1983 times

Re: radio streamer Bionic 32

Post by mikewalsh »

@williams2 :-

williams2 wrote: Sat Dec 03, 2022 7:59 pm

like the backend ie mpv and ffmpeg needs to updated

There are static builds of ffmpeg.

Most software that uses ffmpeg do not use the ffmpeg executable directly, they use the ffmpeg library files.

Updating to a newer static build of ffmpeg might not update the ffmpeg libs.

Installing a newer version of a static ffmpeg might uninstall some or all of the ffmpeg lib files.

Which might or might not apply to your particular situation.

Mm.....nope. Updating a static version of ffmpeg will always update the associated lib files, because the linking is all done at compile time. Hence, they don't need to be 'on the system'.....and as a result, the compiled binary is usually far more robust. I was under the impression you understood this..? :?

https://en.wikipedia.org/wiki/Static_bu ... c_building

https://en.wikipedia.org/wiki/Static_li ... advantages

Mike. ;)

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: radio streamer Bionic 32

Post by Jasper »

@mikewalsh

Excellent news :thumbup2:

So @gilles should be able to download this file :

https://johnvansickle.com/ffmpeg/releas ... tic.tar.xz

Extract it and overwrite his existing binary.

BTW, I could not see on John Van Sickle's website if he has compiled this with SSL support.

User avatar
mikewalsh
Moderator
Posts: 6163
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1983 times

Re: radio streamer Bionic 32

Post by mikewalsh »

@Jasper :-

Do bear in mind that although JvS's static ffmpeg binaries are "all-inclusive", you still need to consider the "date-sensitive" nature of all this. This is all the more important when dealing with anything older than a currently-supported Puppy, because whatever program/app is making use of ffmpeg still needs to access other stuff, too....which with dynamically-loaded libraries, is very much dependent on the age of all the other system components from the time when the OS was created.

In other words, one of the older static ffmpegs from around the same time-frame as the rest of Bionic's components will probably be more effective than always trying to use the very newest release.....a sensible point in itself, but not always the best move. It's a point I always consider when trying to build packages that will function across as wide a range of Puppies as possible; flies in the face of accepted practice, because Windoze has put everybody in the mind-set of "Ooh, must have the very newest version of everything all the time!"

It's NOT always necessary. Make sense?

Mike. ;)

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: radio streamer Bionic 32

Post by Jasper »

@mikewalsh

Okay I followed what you explained and it makes sense :thumbup:

My understanding before then was that on that website it said that the builds were suitable for Linux kernels 3.20 upwards.
A quick check said that Bionic was 4.x.
I jumped to the conclusion that the binaries would be compatible :oops:

Also, as an afterthought I wasn't too sure if the existing SMPlayer had also been compiled with TLS support too if that would be an issue.

Thanks for the tips though :thumbup2:

gilles
Posts: 186
Joined: Fri Aug 21, 2020 11:07 pm
Location: France
Has thanked: 44 times
Been thanked: 13 times

Re: radio streamer Bionic 32

Post by gilles »

Jasper wrote: Sun Dec 04, 2022 1:25 pm

@mikewalsh

Excellent news :thumbup2:

So @gilles should be able to download this file :

https://johnvansickle.com/ffmpeg/releas ... tic.tar.xz

Extract it and overwrite his existing binary.

BTW, I could not see on John Van Sickle's website if he has compiled this with SSL support.

Hi,
download the file and extract it = no problem
overwrite my existing binary.... ???
I did this :

Code: Select all

# ~/Téléchargements/ffmpeg-5.1.1-i686-static
bash: /root/Téléchargements/ffmpeg-5.1.1-i686-static: Is a directory
# ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg
bash: ffmpeg:: Commande non trouvée
User avatar
mikewalsh
Moderator
Posts: 6163
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1983 times

Re: radio streamer Bionic 32

Post by mikewalsh »

@gilles :-

That 5.1.1 build of ffmpeg is way too new for Bionic, and SMPlayer will be expecting to work with far newer dynamic libraries than Bionic possesses.

Try this 32-bit build of v3.3.4, from 2018:-

https://drive.google.com/file/d/17Po4mt ... sp=sharing

----------------------------------------------

This is the version of SMPlayer I would recommend for Bionic32. It's one of Norgo's static builds of SMPlayer, which function very, very well.

https://drive.google.com/file/d/11trIec ... sp=sharing

---------------------------------------------

For SMPlayer, you also need the MPlayer 'backend'; SMPlayer is essentially a front-end GUI for this. You can check in /usr/bin to see if 'mplayer' exists. If not, you'll be able to install this from the PPM.

---------------------------------------------

  • Remove the ffmpeg you've already installed. Replace it with the v3.3.4 .pet.

  • Check to see if 'mplayer' exists, and install - from the PPM - if necessary.

  • Remove the version of SMPlayer you installed, then re-install from the version I've linked to.

Once you've done all that, start smplayer from the terminal:-

Code: Select all

root# smplayer

If there's any errors or it 'throws a wobbly' and goes into a sulk, copy/paste that output into your next post, please. Let us know how you get on.

Mike. ;)

User avatar
mikewalsh
Moderator
Posts: 6163
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 795 times
Been thanked: 1983 times

Re: radio streamer Bionic 32

Post by mikewalsh »

@Jasper :-

Oh, every one of those builds will be kernel-compatible, yes.....but many tend to forget (or else haven't been round the block enough times to get the hang of things), that that's only half the story.

The kernel doesn't directly control whatever dependencies/other software any given app might expect to find. Experience - simply using stuff/encountering certain situations many times over the course of the years - counts for a lot. It's amazing how often you can "extrapolate" the resolution to a problem from past experience, and often you can re-use existing snippets of code you may have employed in the past......either directly, or with modification.

I couldn't have imagined, when I began with Linux some 8 1/2 yrs ago, that I would be capable of half the stuff I now do without even thinking about it.

Mike. ;)

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: radio streamer Bionic 32

Post by OscarTalks »

Is audacious audio player not suitable?
Here is one that I compiled in BionicPup32 some time ago:-
http://smokey01.com/OscarTalks/audaciou ... bionic.pet
It displays song information (if it is being sent) as well as other information like station name and stream web domain, plus you have the little bar-graph audio display.
If there is a .pls link you can load that directly into audacious to start playback, or you can download the .pls file and open it as text to see the stream URL which you can also enter into audacious that way.

Attachments
audacious.jpg
audacious.jpg (74.8 KiB) Viewed 1479 times
gilles
Posts: 186
Joined: Fri Aug 21, 2020 11:07 pm
Location: France
Has thanked: 44 times
Been thanked: 13 times

Re: radio streamer Bionic 32

Post by gilles »

Hi OscarTalks,

Thank you very much.
It works but it is not perfect :
I wrote this URL in audacious : https://radio.dominiserver.com/proxy/la ... mp=/stream and it works fine.
But adding this one https://radios.com.do/perla-106-3-fm/ , (or many others URLs), it doesn't work. I have this message : "error playing https://radios.com.do/perla-106-3-fm/: File format not recognized"
I don't understand !
Any idea ?
Thank you

User avatar
OscarTalks
Posts: 623
Joined: Tue Jul 14, 2020 10:11 pm
Location: London UK
Has thanked: 2 times
Been thanked: 247 times

Re: radio streamer Bionic 32

Post by OscarTalks »

The problem is that you need to find and enter the stream URL not the web page URL.
If you are initially finding the audio stream (or radio station) via a web page, you do usually need to search for the direct media stream URL. Often you will find that they give it to you in some form as a link. In the case of latina 104 there is the "Listen with Winamp" button. If you right-click that and download the .pls file you can use that or open it as text and paste the URL into Audacious via File > Open URL or File > Add URL

If there is no obvious link for playing the stream in an external player you should be able to use the "Developer Tools" in the browser and go to the "Network" section. This should reveal the stream URL but you will probably need to reload the page. Again you can right-click and copy and paste if you find it. Often these websites deliberately embed the stream in a player in the web page and do not offer the stream URL openly because they want you to use a browser so they can force you to see their advertising. Maybe some of the other media players like SMPlayer or VLC will parse a web URL with embedded stream URL and play the stream, but I suspect not. If you are browsing large numbers of streams in a radio directory website it is probably best to use a browser. For a relatively small number of favourites, it takes a few extra moments to find the stream URL, but then once you store it, you can return to it any time and listen whenever you want without needing to use your browser for it.

User avatar
norgo
Posts: 283
Joined: Mon Jul 13, 2020 6:39 pm
Location: Germany
Has thanked: 6 times
Been thanked: 111 times
Contact:

Re: radio streamer Bionic 32

Post by norgo »

OscarTalks wrote: Mon Dec 05, 2022 6:18 pm

The problem is that you need to find and enter the stream URL not the web page URL.

so it is
To find the stream URL this Website will help.

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: radio streamer Bionic 32

Post by Jasper »

@norgo

Nice share :thumbup:

@gilles

this is the link copied from the website

Code: Select all


https://radio5.domint.net:8216/stream

User avatar
norgo
Posts: 283
Joined: Mon Jul 13, 2020 6:39 pm
Location: Germany
Has thanked: 6 times
Been thanked: 111 times
Contact:

Re: radio streamer Bionic 32

Post by norgo »

did a short test with the ffmpeg and mpv version (see links above) and a lot of dependencies
worked as expected

smplayer.jpg
smplayer.jpg (51.12 KiB) Viewed 1406 times

Code: Select all

ffmpeg version 3.4.11-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/i386-linux-gnu --incdir=/usr/include/i386-linux-gnu --enable-gpl --disable-stripping --enable-avresample
   --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype 
   --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband 
   --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack 
   --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm 
   --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100

mpv 0.27.2 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
ffmpeg library versions:
   libavutil       55.78.100
   libavcodec      57.107.100
   libavformat     57.83.100
   libswscale      4.8.100
   libavfilter     6.107.100
   libswresample   2.9.100
ffmpeg version: 3.4.11-0ubuntu0.1

This is SMPlayer v. 21.10.0 (revision 10000) running on Linux
Compiled with Qt v. 5.6.1, using 5.6.1
User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: radio streamer Bionic 32

Post by Jasper »

I can see it was compiled with GnuTLS so it should work with the streams :thumbup2:

gilles
Posts: 186
Joined: Fri Aug 21, 2020 11:07 pm
Location: France
Has thanked: 44 times
Been thanked: 13 times

Re: radio streamer Bionic 32

Post by gilles »

Hello,
As usual, a wonderful help in this forum.

@OscarTalks I liked very much your very detailed explanations. I followed yours instructions and it works fine.
@norgo : very useful link
@Jasper the URL works fine
@mikewalsh as usual, very good help

Thank you

Post Reply

Return to “Beginners Help”