Volume control #65
Comments
There is no support for changing the audio volume at the moment. Due to a firmware bug in the Pi, I'm looking at changing audio output to ALSA instead of OMX. In that case you could use the normal system mixer without talking to info-beamer at all. But that feature isn't finished yet. You don't have to use OSC to talk to info-beamer. You can also use raw UDP packets. Here's an example of how to send data to info-beamer so you can use it in your Lua code: https://github.com/dividuum/info-beamer-nodes/tree/master/synchronized. |
Hi Florian,
But, since there's a bug in RaspPi, at the moment the player you use is not able to control it, and we would have to wait for your porting of the audio playback to ALSA. But really we don't want to do this, since we have used info beamer because, among many features, enabled us to have a remote playback server without writing a single line of code: info-beamer is in itself a server that handles commands, and it's scriptable.. so we would still like to talk to info-beamer. Thanks |
Yes. That's how it might be done once volume control is possible from within Lua. The firmware problem doesn't prevent me from changing volume levels - it's just not implemented at the moment. The bug prevents me from pausing a single video while another video is running, if (and only if) audio is used. That's why I want to switch to ALSA. But it's a bit complicated, so don't expect that in the near future.
I can't make any promises at the moment, as I'm not too familiar with how ALSA works. But if that's easily possible, I guess volume control might be a new feature. |
ok, thanks for you candid reply. I have another question: do you know if it's possible to control the volume output level of OMX via an external script in raspberry? we could issue a system command (but I don't know if it is possible from your LUA interpreter, and there don't seem to be an ad-hoc command).. |
I don't think that's possible as outputting audio using OMX is pretty low level. I don't think there's anything to adjust volume from "outside". Depending on how often you want to change volume and what output device you have connected: You might use CEC to adjust the volume of the connected HDMI screen. Not sure if that's viable or if that results in a visible volume slider from the screen itself, but it might be another option. |
I'm sorry to bother you, but this opens up to me a whole world of unknown (till now) features and possibilities.. Thanks again. |
Yes. I'm using it on the info-beamer hosted OS to the connected screen on/off on request. I'm not entirely sure about volume control, but it might work.
That is correct. You can't start external programs from within the info-beamer Lua environment. |
Is there anything new regarding ALSA support? |
Nope :-\ |
Hi,
our customer has bought 3 licenses of InfoBeamer, and all was well until they decided to change the specs, and now they want to be able to control the output volume of the video.
We are using a RaspberryPi Zero as our video server.
I was wondering if, using OSC, it is possible to control the output volume. Until 10 minutes ago I wasn't even aware there was such a thing as OSC, and looking at the specs, it seems non trivial to understand.
Thanks
The text was updated successfully, but these errors were encountered: