-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module v4l2src0 reported: Internal data stream error. #34
Comments
Okay - I figured out the Test script is calling the VideoCapture() method with just the index of the video device while the script itself gives the parameter cv2.CAP_GSTREAMER.
by removing the parameter the script seems to run - I can see that sync is active in the hue app. Unfortunately im not at home atm so I cant see if the lights are actually changing 🤣 I checked with videotest.py that the resolution is 640x360:
I dont know if calling with cv2.CAP_GSTREAMER changes the resolution... I am to dumb to find a proper documentation I understand.. If found this:
Adding the define and changing the call of VideoCapture seems not to provoke the warnings/errors.. however, I dont get any video shown. I am a bit lost now.. I will try again when I have local access and dont have to fiddle with VPN. |
At home.. changing Adding the last codesnippet above seems not to open the videodevice - just nothing happens. Seems like gstreamer is waiting for something. Maybe somebody is able to explain ^^ |
Great news!
What’s interesting is that VideoCapture should default to GStreamer anyway,
so don’t quite understand either what the fuss is except if the
VideoCapture is actually capturing via FFMPEG instead.
If you would be willing to let me know if the following line works I would
greatly appreciate it:
cap = cv2.VideoCapture(0,cv2.CAP_FFMPEG)
The code was revamped to mainly support gradient light strips, so the
script should perform the same generally.
Thanks,
Brad
…On Sat, Jan 7, 2023 at 9:12 AM vbartels ***@***.***> wrote:
At home.. changing
vc = cv2.VideoCapture(0,cv2.CAP_GSTREAMER)
to
vc = cv2.VideoCapture(0)
seems to have it solved for me. Lights are running back again - Yay! I
cant see a difference to before.
Adding the last codesnippet above seems not to open the videodevice - just
nothing happens. Seems like gstreamer is waiting for something.
Maybe somebody is able to explain ^^
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANVBG47VCZIQSG74I654UTWRF2U5ANCNFSM6AAAAAATQVSL4Y>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I tried that at first, because the line is still in the code. Unfortunately it results in:
|
Thanks for trying it out. FFMPEG is arguably faster than GStreamer but I’ve
never got it working.
I’ll have to decide how to update the code if as you say it works with no
parameters. I was using OpenCV 4.6. Perhaps 4.5 has some differences?
Brad
…On Sat, Jan 7, 2023 at 9:55 AM vbartels ***@***.***> wrote:
I tried that at first, because the line is still in the code.
Unfortunately it results in:
./harmonize.py
--- Starting Harmonize Project ---
INFO: Single Hue bridge detected on network via mDNS.
Querying hue bridge for entertainment areas on local network.
groupid = 7
Using Entertainment area with group_id: 7
Starting computer vision engine...
--- INFO: Detected video capture card on /dev/video0 ---
Disabling streaming on Entertainment area...
ERROR: Unable to open capture device.
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANVBG67GPXW34EZ6WW2CTTWRF7UXANCNFSM6AAAAAATQVSL4Y>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Not knowing much about python I fiddled around half the day.
results in:
But I didnt get any further. I also took a look into: ffmpegcv but was not able to get it reading from /dev/video0 . Sadly all the documentations are terrible.... |
Hey,
I had this running on raspberryos for more than a year. Used it almost daily. I wanted to bump it to the latest version and I got this error. I started completely from scratch with a clean ubuntu server install on the rpi4. Same hardware that worked before.
After adding my user to the video group I was finally getting video, but not in the script.
I see the Input on videotest.py (installed gnome and used xforwarding...) but its showing the warning. Harmonize script itself wont work.
The text was updated successfully, but these errors were encountered: