info-beamer

Audio not working on udp stream

Hi,

Hopefully my last question for a while :smile:

We have some multicast udp streams which we use to distribute satellite tv channels. I have successfully connected to one of the streams on a player (by adding a stream to a playlist) but as soon as I enable audio, the stream goes blank so I assume it doesn’t like the audio codec? This is an H.264 stream (High Profile, Level 4, 8.8Mbps with 128K audio) and I am using the testing channel.

Any ideas?

Phil

p.s. I have reached the maximum number of new topics that I can create in a day so I had to wait to send this!

This is the stream info from VLC (which works fine with audio):image

The audio codec should definitely be supported. I assume HDMI audio in general is enabled for that device? The setting for that is in the device configuration editor for the device.

If that’s not it, we might see into what’s going on by looking at the log output on the device. Enable “[X] Show remote terminal on device page” on your account page, then head over to the device detail page and click on the connect button at the terminal section. You’ll get a prompt. You can see the logs by typing and hitting enter:

logread -F|grep video

This should print out any logs related to video output. If the screen stays blank, I would assume that the decoder somehow isn’t able to detect audio and video codec within the sent stream. The log output should show why that is. You can either paste it here or sent it to hello@info-beamer.com.

Hi Florian, It looks like it doesn’t like the codec_id of 86016 (MP2 Audio) ? Unfortunately I have very little control over this as it is a hardware streamer with limited configuration options!

Aug 26 15:26:24 info-beamer-4289942390 user.notice info-beamer: [mmalvideo.c] [0x26f0850/udp://@239.192.89.100:1234] started player thread
Aug 26 15:26:24 info-beamer-4289942390 user.notice info-beamer: [threadpool.c] running mmalvideo 0x45df65(0x26f0850)
Aug 26 15:26:25 info-beamer-4289942390 user.notice info-beamer: [mmalvideo.c] [0x26f0850/udp://@239.192.89.100:1234] found 2 streams
Aug 26 15:26:25 info-beamer-4289942390 user.notice info-beamer: [mmalvideo.c] [0x26f0850/udp://@239.192.89.100:1234] found stream type 0, codec_id 27
Aug 26 15:26:25 info-beamer-4289942390 user.notice info-beamer: [mmalvideo.c] [0x26f0850/udp://@239.192.89.100:1234] found stream type 1, codec_id 86016
Aug 26 15:26:25 info-beamer-4289942390 user.notice info-beamer: [mmalvideo.c] [0x26f0850/udp://@239.192.89.100:1234] cannot find decoder for audio
Aug 26 15:26:25 info-beamer-4289942390 user.notice info-beamer: [mmalvideo.c] [0x26f0850/udp://@239.192.89.100:1234] releasing player 0x26f0850
Aug 26 15:26:25 info-beamer-4289942390 user.notice info-beamer: [mmalvideo.c] [0x26f0850/udp://@239.192.89.100:1234] player shutdown completed
Aug 26 15:26:25 info-beamer-4289942390 user.notice info-beamer: [mmalvideo.c] [0x26f0850/udp://@239.192.89.100:1234] last reference gone. deleting player
Aug 26 15:26:29 info-beamer-4289942390 user.notice info-beamer: [mmalvideo.c] [0x26f0850/udp://@239.192.89.100:1234] started player thread

Thanks

Phil

Seems like it. I should be possible to add support for. I can see if I can provide a new testing build with included support next week. I’ll get back to you.

That would be brilliant if you could. I have another player project that will rely on this (currently using another Windows based signage product)

Thanks

Phil

Hi Florian, I realise that you are busy but wondered if you had a chance to look at this yet?

Thanks

Phil

An mp2 decoder should be added to the bleeding release of info-beamer hosted OS. You can install that on your Pi as follows:

  • Make sure to enabled Show remote terminal on device page on your account page.
  • Go to the device’s page, scroll down to the “Remote terminal” section. Click the small dropdown arrow and select “Connect as root…” and confirm.
  • On the prompt, enter syncercmd system switch_bleeding and hit return. This will instruct the device to install the bleeding version of the OS. This will take around 30-60 seconds usually. The red status LED on your Pi should blink while the upgrade is being installed.
  • The Pi will reboot into the new version and you can try if mp2 decoding now works.

To get back to testing or stable, use the Manage button and activate either version.

Thanks Florian, I have updated the screen that I want to test and will let you know if it worked later today.

Thanks

Phil

Hi Florian.

That seems to work but I have noticed that the audio is sometimes distorted. I wonder if the Pi4 is struggling to decode 1080i audio/video and display it (with a static image on the second HDMI output)

Any thoughts?

Thanks

Phil

Performance should not be an issue, but you could rule that out if you temporarily create another setup without the image and additionally switch the Pi to single display output using the device configuration. Can you describe the distortion or link a short video that includes it?

Hi Florian,

I have uploaded an example on Youtube https://www.youtube.com/watch?v=0_ETUZ-hm44&feature=youtu.be

Thanks

Phil

Yikes. That doesn’t work at all. Can you connect to the device using the “Remote Terminal” as root again and run:

pkill -usr2 info-beamer

followed by then clicking on the Manage button, selecting Toolbox… and then “Generate on-device log file”? This will generate a log file on the device that might help with figuring out what’s wrong. I might take a look at the device tomorrow. You can leave it powered on? (You can turn of the display)

I have done this, I didn’t get any indication that it had done anything but I assume you can connect and take a look? It is “Device Plaza Shop/Counter”

I have noticed that there is a new bleeding version (200916-ae6d33) available does this have any fixes for this over 200915-87718b?

Thanks

Phil

There should be a green temporary notification on the top-right of the screen if the log was created. Feel free to try again if it didn’t work or you just didn’t notice it.

The 200916-ae6d33 version has no related changes.

Hi Florian,

Sorry I have been busy with other things for a while. Did you get a chance to look at this?

Thanks

Phil

No really, sorry. I guess to find out what’s wrong, we have to organize so the device is online for me to look at. Can you get in touch by email at hello@info-beamer.com?

info-beamer - Digital Signage for the Raspberry Pi community forum - Imprint