No Audio from Radio Add-on

If other stations play, then maybe you are geoblocked for those stations? Have you tried a VPN?

Plays fine with another radio add-on.

Then I am at a loss. The stations you listed play perfectly fine on all 5 of my test boxes with Tristan Fishers Radio addon under CoreELEC 9.2.5-ng. Therefore, I am unable to replicate your problem.

Maybe try CE 9.2.4.2 from SD and see if it does the same?

Was doing the same with 9.2.4.2 before upgrading to 9.2.5.

Could it somehow be related to me using SPDIF as the audio output?

Not that I can think off. I tried via:

  • PCM
  • Multi Channel PCM
  • S/PDIF
  • HDMI
  • PULSEAUDIO (Bluetooth)

I have sound everywhere.

Maybe it’s a hardware issue? Cable damaged? Port damaged?

Maybe try via HDMI passthrough and see if you have sound on your TV speakers?

Now that is very weird. I also play lot’s of different types of audio formats on all the videos I play and never an issue. Just this add-on.

I do have a 1 to 2 output SPDIF Adapter hanging on the SPDIF N2 output. Let me try HDMI for the audio to rule that out.

Either that or connect S/PDIF directly (bypass the adapter)

I don’t use splitters, they tend to cause feedback.

Used HDMI for the audio and the same thing, no audio. Used a VPN too and that did not help.

What is interesting is when a station is playing and you have no audio, if you move around the GUI you don’t get the GUI clicks, so there must be some sort of audio stream.

This is getting stranger by the minute.

Sorry bud. I am out of ideas. All I can tell you is that I am unable to replicate the issue you are describing on 5 different media boxes. The only other thing that comes to mind is that the audio decoder might not support certain streams, or that some RTMP streams are encoded in a way that is incompatible with the audio decoder. Or it might be a firewall issue (certain ports blocked?) But that’s a long shot. I guess it will be process of elimination now.

Thanks @Betatester for all your efforts, it’s much appreciated.

I did take a look at the kodi logs in both debug and non debug and there are no errors. Here’s the add-on connecting to 2CH:

2020-11-06 12:03:44.362 T:3911058304 NOTICE: [plugin.audio.radio_de] get_station_by_station_id started with station_id=110498
2020-11-06 12:03:44.362 T:3911058304 NOTICE: [plugin.audio.radio_de] __api_call started with path=v2/search/station, param={‘station’: ‘110498’}
2020-11-06 12:03:44.362 T:3911058304 NOTICE: [plugin.audio.radio_de] __urlopen opening url=http://api.rad.io/info/v2/search/station?station=110498
2020-11-06 12:03:46.516 T:3911058304 NOTICE: [plugin.audio.radio_de] get_stream_url result: http://shoutcast.2gb.com/stream/2/
2020-11-06 12:03:47.594 T:3911058304 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder mp3float

If I put the http stream url into my browser it plays just fine, so the connection to the source is OK.

Like you I’m out of ideas, and once again thanks.

One last idea, check your sound output and make sure it’s set to the correct amount of channels (like 2.1 or 5.1 or whatever).

Where you talking @Betatester ? In Kodi?

You are not talking about the number of channels option in System | Audio are you? Because that option is not available with SPDIF.

You’re right, not applicable to S/PDIF.

I’ve found that if I set the ‘Output Configuration’ in Audio Settings to Fixed I get audio now.
Best Match = No Audio.

Thoughts?

2 Likes

Checking the audio settings I have been able to verify with the addon ‘atresplayer’ that in some online open TV channels the audio AAC does not work with HDMI (with bluetooth everything works fine). This occurs in amlogic-ng firmwares but not in amlogic firmwares for older devices.

There seems to be something wrong with the audio settings in amlogic-ng.

The solution is given by @gregeeh, adjusting Sound ‘Output Configuration’ to ‘Fixed’.

That would have been my “whatever” option. I couldn’t remember the exact wording in the software. I have seen this before but it’s rare. No clue what causes it.

Thanks for confirming. Still unable to replicate on my devices. Strange.

@devs

Is one of your devices an N2 @Betatester?

Ok - I’m getting the same issue on the 2CH radio station. The only way I can get audio is to set Kodi to the analog PCM output and I get audio on the headphone jack on my N2+ I get no sound through my HDMI connection on my AVR (Sony DN-1060). Other stations are fine, but 2CH and 2GB have no sound over HDMI until I try your trick of setting a fixed output - then it works. I can only assume it’s some internal quirk between the radio player and the Kodi audio engine.

I’ve looked at my log file. The only thing I can see is some rather weird sample rates when played in passthrough (such as 22050) which maybe can’t be synchronised by the amplifier?? When you changed the settings to fixed, then Kodi internally is resampling the audio and outputting at a standard rate such as 44.1kHz or 48kHz which can be synced by the amplifier. Just a theory… log snip below.

2020-11-06 20:47:08.219 T:3902755712    INFO: ffmpeg[E89F5380]: Input #0, mp3, from 'http://shoutcast.2gb.com/stream/2/':
2020-11-06 20:47:08.219 T:3902755712    INFO: ffmpeg[E89F5380]:   Duration: N/A, start: 0.000000, bitrate: 64 kb/s
2020-11-06 20:47:08.219 T:3902755712    INFO: ffmpeg[E89F5380]:     Stream #0:0, 50, 1/14112000: Audio: mp3, 24000 Hz, stereo, fltp, 64 kb/s
2020-11-06 20:47:08.219 T:3902755712   DEBUG: CDVDDemuxFFmpeg::AddStream ID: 0
2020-11-06 20:47:08.219 T:3902755712  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder mp3float
2020-11-06 20:47:08.220 T:3902755712   DEBUG: ffmpeg[E89F5380]: [SWR] Using fltp internally between filters
2020-11-06 20:47:08.319 T:3902755712    INFO: AudioDecoder: File is queued
2020-11-06 20:47:08.321 T:4044776320   DEBUG: ffmpeg[F1166380]: [SWR] Using fltp internally between filters
2020-11-06 20:47:08.322 T:3902755712   DEBUG: AudioDecoder::GetReplayGain - Final Replaygain applied: 1.000000, Track/Album Gain 89.000000, Peak 1.000000
2020-11-06 20:47:08.371 T:4034917248    INFO: CActiveAESink::OpenSink - initialize sink
2020-11-06 20:47:08.572 T:4034917248   DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=AMLAUGESOUND,DEV=0
2020-11-06 20:47:08.572 T:4034917248    INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=AMLAUGESOUND,DEV=0"
2020-11-06 20:47:08.580 T:4034917248    INFO: CAESinkALSA::Initialize - Opened device "hdmi:CARD=AMLAUGESOUND,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x01"
2020-11-06 20:47:08.581 T:4034917248    INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2020-11-06 20:47:08.581 T:4034917248    INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S16NE
2020-11-06 20:47:08.581 T:4034917248   DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 1102, bufferSize 4410
2020-11-06 20:47:08.584 T:4034917248   DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 1102, bufferSize 4410
2020-11-06 20:47:08.584 T:4034917248   DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 200 ms
2020-11-06 20:47:08.584 T:4034917248   DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
2020-11-06 20:47:08.584 T:4034917248   DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL, FR
2020-11-06 20:47:08.584 T:4034917248   DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL, FR (ALSA: none)
2020-11-06 20:47:08.584 T:4034917248   DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
2020-11-06 20:47:08.584 T:4034917248   DEBUG:   Output Device : AML-AUGESOUND
2020-11-06 20:47:08.584 T:4034917248   DEBUG:   Sample Rate   : 22050
2020-11-06 20:47:08.584 T:4034917248   DEBUG:   Sample Format : AE_FMT_S16NE
2020-11-06 20:47:08.584 T:4034917248   DEBUG:   Channel Count : 2
2020-11-06 20:47:08.584 T:4034917248   DEBUG:   Channel Layout: FL, FR
2020-11-06 20:47:08.584 T:4034917248   DEBUG:   Frames        : 1102
2020-11-06 20:47:08.584 T:4034917248   DEBUG:   Frame Size    : 4
2020-11-06 20:47:08.586 T:4034917248   DEBUG: ffmpeg[F07FF380]: [SWR] U