Go to file
Michael Rochelle acdf733936
Audio Grabber Feature (#1570)
* Creating Audio Grabber

Creating Audio Grabber

Creating Audio Grabber.

Successfully began capturing audio in windows. Starting to implement a hard-coded UV Visualizer.

Got Windows DirectSound Implementation working.
Hardcoded basic VU Meter.

Begin working on linux audio grabber implementation.

Finished Linux Draft Implementation.
Minor Mods to windows implementation.

Windows:
 - Free memory used by device id.
 - Prevent starting audio if the grabber is disabled
 - More debug logging

Linux:
 - Prevent starting audio if the grabber is disabled

Added strings to english
Removed "custom" from device selection
Made hard-coded visualizer values configurable.
wrote values to imageData with BGR priority to enable configurable values to be set in RGB format.
created logic to support "Automatic" to enable the API to select the default device.

Add language key for audio in "Remote Control" section.
Removed audio configuration for number of channels. This was causing an error with some devices.

Fixed logic to update capture while its active.
Optimizing code .

UI Tweaks
Destructuring.

Fixed build error on linux.

Custom Effects - Clean-ups and Enhancements (#1163)

* Cleanup EffectFileHandler

* Support Custom Effect Schemas and align EffectFileHandler

* Change back to colon prefix for system effects

* WebSockets - Fix error in handling fragmented frames

* Correct missing colon updates

* Update json with image file location for custom gif effects

* Image effect deletion - considere full filename is stored in JSON

* Correct selection lists indentions

Creating Audio Grabber

Creating Audio Grabber

Creating Audio Grabber.

Successfully began capturing audio in windows. Starting to implement a hard-coded UV Visualizer.

Got Windows DirectSound Implementation working.
Hardcoded basic VU Meter.

Begin working on linux audio grabber implementation.

Finished Linux Draft Implementation.
Minor Mods to windows implementation.

Windows:
 - Free memory used by device id.
 - Prevent starting audio if the grabber is disabled
 - More debug logging

Linux:
 - Prevent starting audio if the grabber is disabled

Added strings to english
Removed "custom" from device selection
Made hard-coded visualizer values configurable.
wrote values to imageData with BGR priority to enable configurable values to be set in RGB format.
created logic to support "Automatic" to enable the API to select the default device.

Add language key for audio in "Remote Control" section.
Removed audio configuration for number of channels. This was causing an error with some devices.

Fixed logic to update capture while its active.
Optimizing code .

UI Tweaks
Destructuring.

Fixed build error on linux.

Commented setVideoMode from AudioGrabber.

Linux Threading changes.

Implementing new API

Continuing to implement audio into new APIs

Fixed Audio Grabber for DirectSound on Windows
Fixed UI for Audio Grabber Configuration
Default AUDIO to off unless specified.

fixed missing #ifdef for audio grabber.

Added logic to calculate a dynamic multiplier from the signal input.

Updating linux api for discovering devices.

Fixed HTML/JS issues with view.
Fixed NPE in Windows.
Disabled setting thread priority in linux.

updated the schema options check to pass through hidden states and commented the change.

Updated grabber start conditions
Updated Audio grabber to instantiate similar to video grabber

Updated windows grabber to set "started" flag to false when shutting down.
Removed "tryStart" to prevent enabling audio capture unnecessarily.

Fixing instance audio grabber device configuration

Added configurable resolution
Reduced tolerance to 5%
Fixed issue where grabber failed for additional instances when "start" was called multiple times.

Fixed resolution calculation

Change averaging algorithm to prevent overflowing the sum.

Updated logic to stop audio grabber when disabled.

Fix integer casting and rounding.

Restart grabber on configuration change.
Fix missing include/grabber/AudioGrabber.
Disable tolerance.

Added configurable tolerance.
Fixed tolerance algorithm.
reset multiplier on configuration change.

Line Endings

Proposed change and questions/request to fix

implementing more of LordGrey's suggestions.

Fix mode for snd_pcm_open. Latest ALSA uses SND_PCM_NONBLOCK instead of SND_PCM_OPEN_NONBLOCK
defaulted multiplier to 0 "auto"
defaulted tolerance to 20%

changed 100 to 100.0 for pixel value percentage calculation to fix value from being 0.

missed a 100 as a double so precision isn't lost during math operation.

Fix Windows grabber and further cleanups

Enable Audio grabbing in standard build

Remove empty methods

Fix audio capture priority setting

Remove unused code

Clean-up default config

Allow additional json-editor attributes

Allow multiple effects and resetting to defaults

Correct default values

Allow to build for Qt < 5.14

Update CodeQL build dependency

Update build dependencies

Remove effect1 placeholder

* Renamed uvMeter to VU Meter (Volume Unit)
- Fixed issues flagged by code scanning bot.

* Moved stop call into destructor of implementing class.

* Removed commented linux audio channel configuration logic.

---------

Co-authored-by: Michael Rochelle <michael@j2inn.com>
2023-02-19 09:36:39 +01:00
.ci mDNS Support (#1452) 2022-05-01 19:42:47 +02:00
.github Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
.vs Correct PR1312 and LEDSim fixes (#1336) 2021-09-20 08:44:09 +02:00
.vscode mDNS Support (#1452) 2022-05-01 19:42:47 +02:00
assets Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
bin Add libjpeg-dev to test LIBJPEG_TURBO_VERSION_NUMBER (#1516) 2022-09-29 20:38:32 +02:00
cmake Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
config Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
debian Cleanup APT-builds 2022-11-07 16:57:08 +01:00
dependencies Update to Mbed TLS 3.3.0 (#1558) 2023-02-05 15:19:25 +01:00
doc Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
effects Add CodeQL for GitHub code scanning (#1548) 2022-12-27 08:36:10 +01:00
include Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
libsrc Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
resources Add Suspend/Resume support (#1535) 2022-12-22 12:40:39 +01:00
snap Add libjpeg-dev to test LIBJPEG_TURBO_VERSION_NUMBER (#1516) 2022-09-29 20:38:32 +02:00
src Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
test Dominant Color support (#1569) 2023-02-17 16:02:51 +01:00
.codedocs - The first part 2019-08-03 19:14:52 +02:00
.devcontainer.json Hyperion "Light", Build improvements and minor fixes (#1400) 2022-01-07 14:47:51 +01:00
.editorconfig build: Update Windows to Qt5.15 (#798) 2020-05-18 21:09:33 +02:00
.gitignore Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
.gitmodules Update to Mbed TLS 3.3.0 (#1558) 2023-02-05 15:19:25 +01:00
.lgtm.yml Add libjpeg-dev to test LIBJPEG_TURBO_VERSION_NUMBER (#1516) 2022-09-29 20:38:32 +02:00
.version Rollover version 2022-12-03 22:22:24 +01:00
3RD_PARTY_LICENSES Saturation & Brightness/Value Gain using Oklab color space (#1477) 2022-08-17 23:26:19 +02:00
CHANGELOG.md Various Fixes/Updates (#1549) 2023-01-16 12:01:28 +01:00
CMakeLists.txt Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
CMakeSettings.json mDNS Support (#1452) 2022-05-01 19:42:47 +02:00
CONTRIBUTING.md refactor: Several random fixes + Experimental playground (#917) 2020-08-02 22:37:52 +02:00
HyperionConfig.h.in Audio Grabber Feature (#1570) 2023-02-19 09:36:39 +01:00
Installation.md Readme slightly improved 2021-12-03 12:17:43 +00:00
LICENSE Various Fixes/Updates (#1549) 2023-01-16 12:01:28 +01:00
PRIVACY.md update license and add privacy police 2022-02-08 17:23:54 +01:00
README.md Add CodeQL for GitHub code scanning (#1548) 2022-12-27 08:36:10 +01:00

Hyperion

Latest-Release GitHub Actions CodeQL Analysis Forum Documentation Discord made-with-love

About Hyperion

Hyperion is an opensource Bias or Ambient Lighting implementation which you might know from TV manufacturers. It supports many LED devices and video grabbers.

Screenshot

Features:

  • Low CPU load makes it perfect for SoCs like Raspberry Pi
  • Json interface which allows easy integration into scripts
  • A command line utility for testing and integration in automated environment
  • Priority channels are not coupled to a specific led data provider which means that a provider can post led data and leave without the need to maintain a connection to Hyperion. This is ideal for a remote application (like our Android app).
  • Black border detector and processor
  • A scriptable (Python) effect engine with 39 build-in effects for your inspiration
  • A multi language web interface to configure and remote control hyperion

Supported Hardware

You can find a list of supported hardware here.

If you need further support please open a topic at the forum!
Forum

Contributing

Contributions are welcome! Feel free to join us! We are looking always for people who wants to participate.
Contributors

For an example, you can participate in the translation.
Join Translation

Supported Platforms

Find here more details on supported platforms and configuration sets

Documentation

Covers these topics:

Visit Documentation

Changelog

Released and unreleased changes at CHANGELOG.md

Building

See CompileHowto.md.

Installation

See Documentation or at Installation.md.

Download

Releases available from the Hyperion release page

Privacy Policy

See PRIVACY.md.

License

The source is released under MIT-License (see https://opensource.org/licenses/MIT).
GitHub license