RadioParadise plugin Flac, works only for a while.

If something seems really buggy, report it here!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

RadioParadise plugin Flac, works only for a while.

Postby danielfelix » Mon Apr 22 2019 19:34

Hello Marco, I was finally able to make the idea that I had commented to you work, to make a download of the RP block, to play it, in the end to do the same again.
It really works fine, there is not a pause that is annoying at the end of the block playback, at least with my connection.
I developed it in python, which was the simplest for my knowledge. I run it via SSH with Putty, there are a couple of folders that you may have to create and install some Python library to make it work.
You will understand that it is an amateur job, but it works, it is not cut, it is a pleasure to listen for hours without intervening.
I pass the code to you if you want to look at it:
https://pastebin.com/Vi07p4tY
I hope you understand that it is an amateur code, it only serves to approach the idea from another point of view.
regard

Daniel
Daniel
RaspberryPi3 + Allo Boos DAC + Amp. Kenwood KA-400 + Focal Chorus 726 + Turntable Dual 504 + Cartdrige Shure M91E + Linear Power Unit DIY
User avatar
danielfelix
Objectivist
Objectivist
 
Posts: 473
Joined: Wed Feb 08 2017 16:24

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


RadioParadise plugin Flac, works only for a while.

Postby marco79cgn » Wed May 15 2019 13:48

Hi Daniel,
I was already working on a download-solution in order to fix the dropout issues (which I still don't have personally by the way but obviously some others). The problem is that I didn't get the metadata in sync while playing audio so I stopped this approach.

Did you see what Bill wrote the other day?
OK. We have an experimental FLAC stream URL available:

http://audio-3.radioparadise.com:8000/flac

NOTES:

1. There is no metadata (song titles). It appears that we just can't do that. You can use our web player in 'track' mode to see what's playing.

2. This is subject to outages and glitches as we refine our setup.
User avatar
marco79cgn
Audiophile
Audiophile
 
Posts: 106
Joined: Sun Aug 27 2017 22:12
Location: Cologne, Germany


RadioParadise plugin Flac, works only for a while.

Postby danielfelix » Wed May 15 2019 15:14

Hello Marco, since last night I am trying it, it seems to work well, at night I can have a preliminary conclusion.
What is soothing is that the problem exists and it is not in our hands to remedy it.
I think you should stop all the probable developments, you have to wait for Bill.
An option to obtain the metadata would be for RP to implement something similar to what it is using now, that with each topic upload a file with the metadata, hence you already know how to read them. Does it seem to suggest this to Bill?
Regarding downloading the pack and then playing it, in my little program what I do is read the time of each one and present the data during that time. It is very rudimentary, but generally works well.
regard
Daniel
RaspberryPi3 + Allo Boos DAC + Amp. Kenwood KA-400 + Focal Chorus 726 + Turntable Dual 504 + Cartdrige Shure M91E + Linear Power Unit DIY
User avatar
danielfelix
Objectivist
Objectivist
 
Posts: 473
Joined: Wed Feb 08 2017 16:24


RadioParadise plugin Flac, works only for a while.

Postby marco79cgn » Thu May 16 2019 08:17

Yes, the Radio Paradise official forum is full of reports regarding problems with the flac stream (both the former dynamic one and the newly created static stream). Even the normal 320 kbps AAC streams have had outages the last days.

I listened for a few hours yesterday and for the first time I had problems with it - after some time, the stream had lots of continous hiccups during playback. It was not completely interrupted but of course it's not possible to enjoy listening anymore. Restarting the stream solved the issue for a while.

Maybe they finally manage to fix these problems. Otherwise the only stable solution would be to pre-download the files and play them locally. This would require a lot of refactoring for the plugin, basically a restart from scratch.
User avatar
marco79cgn
Audiophile
Audiophile
 
Posts: 106
Joined: Sun Aug 27 2017 22:12
Location: Cologne, Germany


RadioParadise plugin Flac, works only for a while.

Postby danielfelix » Thu May 16 2019 14:08

Here with the static stream is cut when the server goes down, there are no cuts while it is up. And it's usually down for hours. I guess it's in the testing phase.
I pass the python code that I used to download the blocks. DO NOT LAUGH.
https://pastebin.com/tuaCq1b2
Daniel
RaspberryPi3 + Allo Boos DAC + Amp. Kenwood KA-400 + Focal Chorus 726 + Turntable Dual 504 + Cartdrige Shure M91E + Linear Power Unit DIY
User avatar
danielfelix
Objectivist
Objectivist
 
Posts: 473
Joined: Wed Feb 08 2017 16:24


RadioParadise plugin Flac, works only for a while.

Postby marco79cgn » Thu May 16 2019 22:40

Bill changed the static stream URL again, the old one soon won't work anymore.

http://icy-8.radioparadise.com/flac

The code doesn't look so bad, no worries.

I'm currently working on a bigger change. What already works is downloading the first flac file, local playback of the downloaded file and showing the correct metadata of all songs. The problem is that the first download might take lots of time. A single file may contain up to 8 songs and downloading it requires up to a minute or even more depending on the internet connection and also on the server side of Radio Paradise which obviously isn't the fastest at the moment. During that time there is silence and it seems that the GUI is stuck (which it isn't). So I need a workaround for that time. Maybe starting to play the Jeopardy main theme during the download. :D
User avatar
marco79cgn
Audiophile
Audiophile
 
Posts: 106
Joined: Sun Aug 27 2017 22:12
Location: Cologne, Germany


RadioParadise plugin Flac, works only for a while.

Postby danielfelix » Fri May 17 2019 15:09

I noticed that in the morning hours it is slower, then in the day the download normalizes.
In the mellow channel, there is no (never) 4 songs, the Main does, up to 8.
Maybe you can start the download of the next block first, while still playing the current block. In this case we would only have to wait for the first time.
Now, if Bill changes the system, I do not know if it's worth the effort.
Here we do not see Jeopardy ...
Daniel
RaspberryPi3 + Allo Boos DAC + Amp. Kenwood KA-400 + Focal Chorus 726 + Turntable Dual 504 + Cartdrige Shure M91E + Linear Power Unit DIY
User avatar
danielfelix
Objectivist
Objectivist
 
Posts: 473
Joined: Wed Feb 08 2017 16:24


RadioParadise plugin Flac, works only for a while.

Postby marco79cgn » Tue May 21 2019 09:26

danielfelix wrote:Maybe you can start the download of the next block first, while still playing the current block. In this case we would only have to wait for the first time.

Sure, that's how I implemented it. The question is just what to do/play when the stream is started the first time.
User avatar
marco79cgn
Audiophile
Audiophile
 
Posts: 106
Joined: Sun Aug 27 2017 22:12
Location: Cologne, Germany


RadioParadise plugin Flac, works only for a while.

Postby danielfelix » Tue May 21 2019 11:36

marco79cgn wrote:
danielfelix wrote:Maybe you can start the download of the next block first, while still playing the current block. In this case we would only have to wait for the first time.

Sure, that's how I implemented it. The question is just what to do/play when the stream is started the first time.


Maybe something from the previous block ...
Daniel
RaspberryPi3 + Allo Boos DAC + Amp. Kenwood KA-400 + Focal Chorus 726 + Turntable Dual 504 + Cartdrige Shure M91E + Linear Power Unit DIY
User avatar
danielfelix
Objectivist
Objectivist
 
Posts: 473
Joined: Wed Feb 08 2017 16:24


RadioParadise plugin Flac, works only for a while.

Postby marco79cgn » Tue May 21 2019 23:59

:arrow: Here is a first version of the Radio Paradise Volumio Plugin that downloads the songs before playback. This should avoid interruptions or cuts during a song while listening! Please be aware that this is an early version of the plugin that might have issues. Don't use this version if you don't want to have the download feature.

Installation Instructions:
If you want to give it a try, please install it manually. Before doing so, please open the Volumio UI in your web browser, navigate to Settings > Plugins > Installed Plugins and both deactivate and uninstall Radio Paradise. Afterwards open a command shell (e.g. Terminal in macOS), ssh into your volumio machine and execute the following commands (one by one):

  • Code: Select all
    wget https://www.dropbox.com/s/0saehm5ewtm0r2f/radio-paradise-downloader.zip?dl=1 -O radio-paradise-downloader.zip
  • Code: Select all
    mkdir ./radio-paradise-downloader
  • Code: Select all
    miniunzip radio-paradise-downloader.zip -d ./radio-paradise-downloader
  • Code: Select all
    rm radio-paradise-downloader.zip
  • Code: Select all
    cd ./radio-paradise-downloader
  • Code: Select all
    rm -Rf /data/plugins/music_service/radio_paradise
  • Code: Select all
    volumio plugin install
  • Code: Select all
    cd ..
  • Code: Select all
    rm -Rf radio-paradise-downloader

In the browser, navigate to Settings > Plugins > Installed Plugins and activate Radio Paradise. Now you can start the plugin and choose one of the FLAC streams.

How it works:
When starting a flac stream for the first time, the plugin will always play "Everybody wants to rule the world" by Tears for Fears as the first song. It comes bundled with the plugin. This is to avoid silence at the beginning because the download of the first real event might take quite some time depending on the speed of the radio paradise servers and the amount of songs inside this event (up to 8). The next songs will always be download in the background and should start automatically. All flac files are downloaded to the folder /home/volumio/rp-flac. The plugin makes sure that only the two most recent flac files will be kept (current and next one) while older files will be deleted automatically in the background to avoid running out of disk space over time.

Issues:
The download of the next event starts as soon as the last song of the previous event has started playing. Depending on the length of the last song, the size of the next event and last not least the speed of the Radio Paradise servers, this timeframe might not be long enough. If this happens, the playback would start before the new file has been completely downloaded and the result would be silence when the event starts playing. Please report if this happens (and how often).

Changes:
I removed the Rock and Groovy Mixes because they are not working at the moment and always would play the same few songs (according to Bill from Radio Paradise). :!: I included the brand new static flac stream as a third option. It behaves like a classic web radio but unfortunately there is no metadata. Maybe it's worth to give it a try anyway.
User avatar
marco79cgn
Audiophile
Audiophile
 
Posts: 106
Joined: Sun Aug 27 2017 22:12
Location: Cologne, Germany

PreviousNext

Return to Bug reports

Who is online

Users browsing this forum: No registered users and 1 guest