-
Notifications
You must be signed in to change notification settings - Fork 152
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
Unable to get RTSP feed with USB Cam #118
Comments
You are doing the right sort of things - RTSP type (in the config) is 3 for Gstreamer. RPOS calls a python script which makes the GStreamer pipeline. That tries to open /dev/videoN with a certain resolution. So I'd go poking about in the python program and find the lines where it makes the GStreamer launch string and just get it to open the v4l2 device without forcing a width and height. |
just looked at the screen grab. |
Ok, thanks!
Ah, this printscreen is outdated. This “device=undefined” was due to the
facts that I was using the RPI config file. When I updated the config file
for the usbcam it shows the right device. I can’t post the image right now,
but I’ll update here after.
After changing the config file the output is the same, still can’t get the video stream.
Thanks!
Em sex, 15 de out de 2021 às 05:32, Roger Hardiman ***@***.***>
escreveu:
… just looked at the screen grab.
It prints the gstreamer string on the screen and I can see it says
"device=undefined" so it is not getting passed the right USB device path
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#118 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANATRQWSNTMJ7ZOY5UQTLXDUG7RJDANCNFSM5FUJR4TQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thats the updated output:
I also enabled verbose and after some time (under one minute) I get this infos:
|
@RogerHardiman @EduardoRonchi any update on this? |
Hello, first of all thanks for this project!
I am using a Raspberry Pi 4 with a RPI Cam V2 and a thermal USB Camera (Lepton 3.5 + PureThermal Mini).
For the RPI Cam V2 it works fine, but when I try to use the USB Camera I cannot retrieve the RTSP stream.
Everything seems fine and similar to the RPI Cam V2, but I cannot get the stream.
I am using a simple python script the read the stream
The output of this program is the following:
It seems that the image is None. But the same config works fine when changing the device (from /dev/video0 to /dev/video2) from the usb cam to the RPI Cam.
My rposConfig.json file:
Any idea of what I am doing wrong?
Note: The USB camera resolution is 160x120, it is a thermal camera. The camera is working, I can get the video by doing:
ffplay /dev/video0
The text was updated successfully, but these errors were encountered: