Internet Radio

Here is a place for your projects which are not officially supported by the Porteus Team. For example: your own kernel patched with extra features; desktops not included in the standard ISO like Gnome; base modules that are different than the standard ISO, etc...
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Internet Radio

Post#16 by Rava » 13 Aug 2021, 09:08

Kulle wrote:
02 Aug 2021, 10:30
Here is another radio player pmrp
(a simple script, but lots of radio stations):

https://github.com/hakerdefo/pmrp
Tried some stations, but none worked.

After selecting a station I get this screen

Code: Select all

 PMRP  ->  Classical  ->  Classical Ways :

Press  [Space]  to pause : Press  [Q]  to stop


 Playlist :
and then it switches back to the station select.
Seems I need to tweak the code to get the error message (But unlike the other script, the code is kind of complicated.). Maybe it can be debugged.

When a station works it looks like this:

Code: Select all

PMRP  ->  Classical  ->  Classical Ways :

Press  [Space]  to pause : Press  [Q]  to stop


 Playlist :

HiGhMaS - Old Sound Mix Up
Anitek - Circadian
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2092
Joined: 02 Jan 2011, 11:33
Location: italy

Internet Radio

Post#17 by beny » 13 Aug 2021, 10:23

hi work:
PMRP -> 181FM -> Country -> Kickin' Country :

Press [Space] to pause : Press [Q] to stop


Playlist :


Lee Brice - Memory I Dont Mess With
Listen.FM - Listen.FM
181.FM - THIS STATION WILL CONTINUE AFTER THIS BREAK
181.FM - THIS STATION WILL CONTINUE AFTER THIS BREAK
Kickin Kountry@Listen.FM - Rejoin 5
Keith Urban - Who Wouldnt Wanna Be Me (Radio Edit) we need mpg123 to work

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Internet Radio

Post#18 by Rava » 08 Sep 2022, 02:39

^
Nice, you get the raw code via https://raw.githubusercontent.com/haker ... aster/pmrp

Some stations won't work, nothing is displayed and the mentioned "q" key won't work either. But Ctrl + C does, it takes you back to the "select station" part.

Added in 7 minutes 35 seconds:
According to XFCE Volume Control the script uses mpg123 … and according to man mpg123 there is no interactive way to adjust the volume via keys (like 9 and 0 do for ffplay):

Code: Select all

guest@porteus:/$ man mpg123|grep -C 2 vol

       --rva-mix, --rva-radio
              Enable RVA (relative volume adjustment) using the values  stored
              for  ReplayGain  radio  mode  / mix mode with all tracks roughly
              equal loudness.  The first valid information found in ID3V2 Tags
--

       --rva-album, --rva-audiophile
              Enable RVA (relative volume adjustment) using the values  stored
              for ReplayGain audiophile mode / album mode with usually the ef‐
              fect of adjusting album loudness but keeping  relative  loudness
--

       100=085
              set volume and the RVA-modified effective volume after the equal
              sign

I had to use XFCE Volume Control instead.
But hey, it calls itself Poor Man's Radio Player :D

Added in 9 minutes 55 seconds:
Some stuff I learned browsing https://github.com/hakerdefo/pmrp/issues

When adding stations
aac is not supported - https://github.com/hakerdefo/pmrp/issues/10
https is not supported - https://github.com/hakerdefo/pmrp/issues/6 - replace https in the URL with http

Added in 3 minutes 52 seconds:
To test if a new URL works, just run mpg123 URL is a separate terminal like so

Code: Select all

mpg123  http://orfeyfm.hostingradio.ru:8034/orfeyfm128.mp3
Cheers!
Yours Rava

Kulle
Warlord
Warlord
Posts: 598
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

Internet Radio

Post#19 by Kulle » 08 Sep 2022, 06:55

Here's another player: click-radio
I included the dependencies.

https://www.mediafire.com/file/suvdr122 ... e.xzm/file

Works for me (Porteus 5.0 Xfce)

Post Reply