awawa-dev / HyperHDR

Highly optimized open source ambient lighting implementation based on modern digital video and audio stream analysis for Windows, macOS and Linux (x86 and Raspberry Pi / ARM).
http://www.hyperhdr.eu/
MIT License
1.05k stars 110 forks source link

Capture Card gets killed on HyperHDR Boot #157

Closed iblake12 closed 2 years ago

iblake12 commented 2 years ago

https://pastebin.com/9SQYSrRG

Bug report, debug log and your config file (FULL LOGS ARE MANDATORY)

https://pastebin.com/9SQYSrRG

Steps to reproduce

Start up HyperHDR on Raspberry Pi 3B+ running Pi OS Lite

What is expected?

Capture card feed to be visible in live video window and capture card loop out to show on TV

What is actually happening?

As soon as HyperHDR loads (and the LEDs play the startup effect) the loop out on capture card goes blank and no video is shown in webpage live video window. Capture card shows up as an option and is selectable. Have tried with different capture cards, hdmi cables and USB cables, powering card externally and via the Pi. Same issue every time

System

HyperHDR Server:

HyperHDR Server OS:

awawa-dev commented 2 years ago

And what makes you think it's a HyperHDR issue not your video grabber/capture card/power issue? That short logs looks clear to me (too short to detect if the V4L2 captured something).

awawa-dev commented 2 years ago

Well that single last line is few minutes after...your capture card is simply not working.

iblake12 commented 2 years ago

Hi, thanks for the fast reply! I have tried 4 different capture cards all producing the same problem, all of them pass through fine if i unplug and replug them into the Pi (so they get power but not communicating with hyperhdr), and they also work fine on the Pi booting for passthrough until hyperhdr loads. I am using the same capture card as a few other people with the same hardware and they dont seem to have an issue, have also had a couple people more confident with your software have a look and couldnt figure out the issue, they suggested i come here to ask after they tried everything they could think of.

awawa-dev commented 2 years ago

There are 3 most common source of these symptoms: 1) most common is power issues when the systems power supply (or it's USB power cable) is not sufficient or is not stable. The card may be detected on the boot because it is in idle state and does nothing but providing its definition to the system. Internal HDMI splitter may also work then. But when the capture process starts it requires much more power from USB port. If it is not provided the hardware may crash. On Rpi check your dmesg command because sometimes it leaves a trace there.

Next two problems depend on the grabber model.

2) HDMI cable is disconnected from the grabber. The device provide some video capturing interface to the system but when the application tries to use it then it captures nothing. 3) HDMI cable is connected to the grabber but it provides no HDMI source or HDMI source format is out of internal grabber's capabilities (for example 4:2:0 may be not supported). The device provide some video capturing interface to the system but when the application tries to use it then it captures nothing.

For example Av Access behaves in way described in point 2 and 3.