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 gmwalk » Fri Jun 14 2019 20:32

I have this problem. Radio Paradise audio cuts out randomly. The playback timer still works.
Config:
Raspberry Pi 3
IQaudio DAC+
Volumio v 2.586
Latest Radio Paradise plugin.

I see these messages in /var/log/mpd.log when the failue happens.

Jun 14 18:48 : player: played "https://audio-3.radioparadise.com/blocks/chan/0/3/1858874-1858877.m4a"
Jun 14 18:48 : exception: Bad song index
Jun 14 18:48 : client: [7] opened from 127.0.0.1:60880

Jun 14 18:42 : exception: Not playing
Jun 14 18:42 : exception: Not playing
Jun 14 18:47 : ffmpeg/aac: Input buffer exhausted before END element found
Jun 14 18:47 : ffmpeg: decoding failed, frame skipped: Invalid data found when processing input
Jun 14 18:47 : ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: stream 0, offset 0xe34135: partial file
Jun 14 18:47 : exception: CURL failed: GnuTLS recv error (-9): A TLS packet with unexpected length was received.
Jun 14 18:48 : player: played "https://audio-3.radioparadise.com/blocks/chan/0/3/1858874-1858877.m4a"
Jun 14 18:48 : exception: Bad song index
Jun 14 18:48 : client: [7] opened from 127.0.0.1:60880
Jun 14 18:49 : client: [6] closed


Jun 14 19:20 : player: played "https://audio-3.radioparadise.com/blocks/chan/0/4/1858878-1858884.flac"
Jun 14 19:20 : exception: CURL failed: GnuTLS recv error (-9): A TLS packet with unexpected length was received.
Jun 14 19:21 : player: played "https://audio-3.radioparadise.com/blocks/chan/0/4/1858886-1858892.flac"
Jun 14 19:21 : exception: Bad song index
Jun 14 19:21 : client: [8] opened from 127.0.0.1:33952
Jun 14 19:22 : client: [7] closed
Jun 14 19:49 : player: played "https://audio-3.radioparadise.com/blocks/chan/0/3/1858886-1858892.m4a"
Jun 14 19:53 : ffmpeg/aac: Input buffer exhausted before END element found
Jun 14 19:53 : ffmpeg: decoding failed, frame skipped: Invalid data found when processing input
Jun 14 19:53 : ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: stream 0, offset 0xa0605b: partial file
Jun 14 19:53 : exception: CURL failed: GnuTLS recv error (-9): A TLS packet with unexpected length was received.
Jun 14 19:53 : player: played "https://audio-3.radioparadise.com/blocks/chan/0/3/1858893-1858897.m4a"
Random avatar
gmwalk
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Fri Jun 14 2019 20:26

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 gmwalk » Sat Jun 15 2019 12:54

I am having the same problem, but on all RP streams. I have been trying to debug this with no success. Problem:
Audio stops (sometimes after a few minutes, other times after an hour or so).

Configuration:
Raspberry Pi 3 B+
Volumio 2.587
IQaudio DAC+

Output from /var/etc/mpd.log:
Jun 15 12:35 : player: played "https://audio-3.radioparadise.com/blocks/chan/0/3/1859164-1859164.m4a"
Jun 15 12:39 : ffmpeg/aac: Input buffer exhausted before END element found
Jun 15 12:39 : ffmpeg: decoding failed, frame skipped: Invalid data found when processing input
Jun 15 12:39 : ffmpeg/mov,mp4,m4a,3gp,3g2,mj2: stream 0, offset 0xb3e04f: partial file
Jun 15 12:39 : exception: CURL failed: GnuTLS recv error (-9): A TLS packet with unexpected length was received.
Jun 15 12:40 : player: played "https://audio-3.radioparadise.com/blocks/chan/0/3/1859165-1859172.m4a"
Jun 15 12:40 : exception: Bad song index
Jun 15 12:40 : client: [2] opened from 127.0.0.1:41848
Jun 15 12:41 : client: [1] closed
Random avatar
gmwalk
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Fri Jun 14 2019 20:26


RadioParadise plugin Flac, works only for a while.

Postby Machinist » Sat Jun 29 2019 08:38

For now I have given up on the application due to abrupt stopping after a few songs and just added the FLAC stream to "My Web Radios". Can't skip or read out the artist/songtitle, but it HAS been playing for about 8 hours straight.
Random avatar
Machinist
Fresh off the boat
Fresh off the boat
 
Posts: 4
Joined: Thu Dec 27 2018 10:16


RadioParadise plugin Flac, works only for a while.

Postby danielfelix » Tue Jul 02 2019 14:48

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: 493
Joined: Wed Feb 08 2017 16:24


RadioParadise plugin Flac, works only for a while.

Postby marco79cgn » Tue Jul 02 2019 22:58

OK, the new static flac streams and the new metadata endpoint make it way easier. I implemented them and as a side effect removed lots of code which is now unnecessary.

:arrow: So basically all the plugin does is playing the static flac stream and updating the "Now Playing" metadata.

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/gf6irg0nr8cm0jj/radio-paradise-110.zip?dl=1 -O radio-paradise.zip
  • Code: Select all
    mkdir ./radio-paradise-110
  • Code: Select all
    miniunzip radio-paradise.zip -d ./radio-paradise-110
  • Code: Select all
    rm radio-paradise.zip
  • Code: Select all
    cd ./radio-paradise-110
  • 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-110

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.

Side notes:
It seems to work pretty smooth. If you experience out of sync metadata, please try to call the corresponding url manually (Mellow or Main mix) and check whether the song information it delivers really is the one which is playing in the static stream you are listening to. If not, it could either be a problem with the api or maybe with the audio buffer size. If you have issues, please also post the values of your "Audio Buffer Size" and "Buffer before play" values (found in the General Playback Settings in Volumio).
Last edited by marco79cgn on Wed Jul 03 2019 13:46, edited 1 time in total.
User avatar
marco79cgn
Audiophile
Audiophile
 
Posts: 107
Joined: Sun Aug 27 2017 22:12
Location: Cologne, Germany


RadioParadise plugin Flac, works only for a while.

Postby danielfelix » Tue Jul 02 2019 23:18

Fantastic Marco, I try it tonight.
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: 493
Joined: Wed Feb 08 2017 16:24


RadioParadise plugin Flac, works only for a while.

Postby marco79cgn » Wed Jul 03 2019 13:58

:arrow: Another update for the plugin: you can now set a fixed delay of the metadata (Artist, Title, etc.) in the settings of the Radio Paradise Plugin.

This is necessary because there is a delay between the real-time data of the Radio Paradise api and the playback of your Volumio machine. The reason is that Volumio is caching a certain amount of data before the playback begins. Depending on your Volumio Cache settings (Playback Settings > Audio Buffer Size and Buffer Before Play) and probably on your internet speed, the delay can be longer or shorter.

In my personal case it behaves like this:
Audio Buffer Size: 8MB, Buffer Before Play: 10% (Default) > delay is 5 seconds
Audio Buffer Size: 8MB, Buffer Before Play: 40% > delay is 19 seconds
It might be completely different for you!

It's quite easy to retrieve the correct delay: just start a FLAC stream and watch the Browser/GUI. The playback time (minutes:seconds) will start immediately but the sound won't. So please look at the playback seconds as soon as you can listen the sound. This is your personal delay. Please set this number (in seconds) in the Plugin settings, save it and restart the FLAC stream.

The installation instructions stay the same as mentioned above.
User avatar
marco79cgn
Audiophile
Audiophile
 
Posts: 107
Joined: Sun Aug 27 2017 22:12
Location: Cologne, Germany


RadioParadise plugin Flac, works only for a while.

Postby danielfelix » Wed Jul 03 2019 15:43

In my case, with the default values, it works perfect.
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: 493
Joined: Wed Feb 08 2017 16:24


RadioParadise plugin Flac, works only for a while.

Postby danielfelix » Wed Jul 03 2019 21:10

I found the secret! I had not realized that "time" in the metadata link is continuously updated!
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: 493
Joined: Wed Feb 08 2017 16:24


RadioParadise plugin Flac, works only for a while.

Postby marco79cgn » Wed Jul 03 2019 21:22

danielfelix wrote:I found the secret! I had not realized that "time" in the metadata link is continuously updated!

Exactly! That‘s actually the good thing about this new api endpoint. This way, the metadata should always stay in sync. The only thing is to find the correct offset between the api time and the actual Volumio playback.
User avatar
marco79cgn
Audiophile
Audiophile
 
Posts: 107
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 0 guests