MCPCapital / HarmonizeProject

Harmonize Project lets you sync HDMI video with Philips Hue lights using a Raspberry Pi!
231 stars 35 forks source link

Only shows first frame / image then errors out #32

Closed gotschi closed 1 year ago

gotschi commented 2 years ago

I always get this error, Script connects successfully, turns Hue Gradient dark and then shows colors of picture / first frame.

python3 harmonize.py -g 2 -i a.b.c.d -f bigbuckbunny.mp4

Then this shows up:


  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/HarmonizeProject/harmonize.py", line 378, in cv2input_to_buffer
    rgbframe = cv2.cvtColor(bgrframe, cv2.COLOR_BGR2RGB) #corrects BGR to RGB
cv2.error: OpenCV(4.5.1) ../modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'```
bradleydworak commented 1 year ago

Could you please provide more details regarding the video file (frame rate, resolution, etc.)? Thanks.

gotschi commented 1 year ago

sorry I'm not using the project anymore, but the buckbunny.mp4 was from here: http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4

thank you anyway for this project!