-
Notifications
You must be signed in to change notification settings - Fork 53
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 open capture device: dshow #369
Comments
Hi, thanks for reporting. I can confirm that NV12 pixel format was not possible to capture. I've already tried to fix the issue, the fix should be in already built continuous builds. Could you please try it out? |
Hi @MartinPulec. Thank you so much for your quick response. We did try the new build and now we are able to detect our camera in the gui and stream the frames using cli. However, the colors of frame do not match the original frame's color. Camera attached to Ubuntu system: Camera attached to Windows system: We are able to see the expected colors on windows system via other applications like the inbuilt camera app and OBS studio. |
refers to GH-369 chroma from first row was used for every column \+ use ptrdiff_t vars to fix a warning for narrow type multiplication
refers to GH-369 chroma from first row was used for every column \+ use ptrdiff_t vars to fix a warning for narrow type multiplication
You are right, actually the chroma from first line was copied to all the rows below. Unfortunately I've tested it just with color bars, which didn't expose this particular problem. Anyways, it should be already fixed and the it should be already rebuilt at the same place as before. |
Thanks @MartinPulec, it worked. |
Hi @MartinPulec, The continuous build you provided is functioning well. We were anticipating that the fix would be incorporated into the recent releases. However, upon testing the latest and several recent builds (1.9.4, 1.9.3, and 1.9.2), we encountered a similar error when attempting to stream using NV12 mode. Please refer to the attached screenshot showing the issue when trying to start streaming with the 'Cam Link 4K' device. We would like to take advantage of the updates from the latest release, so we would greatly appreciate it if the fix could be included in regular builds/upcoming release. |
Hi @shreyasvedpathak, I've just verified that all fixes above should be in all versions starting with 1.9. (If I am not mistaken, the changes were incorporated directly to 1.9 release, not backported to dot-releases.) I've looked into it a bit and it doesn't seem to be entirely the same thing as the above. The main difference in your use is the keyword
so in your case it simply means that the DShow API is not capable to convert NV12 to RGB. I am unsure if there is much to be done to work around this. Anyways, is it really important for you to convert to RGB? The thing is that, NV12 is a YCbCr, pixel format, anyways, and most of the compressions work with YCbCr rather than RGB. If it is really needed, you can use something like |
System information
Description
Unable to see camera feed via ultragrid gui or cli. The camera is visible using the following command:
We are able to see the camera feed via other applications like OBS studio, python opencv script and inbuilt camera application. Same camera when attached to a linux based OS (in our case, ubuntu 20.04) is working as expected (using v4l2 instead of dshow).
Command:
Output:
We received same output when using device index instead of device name in the above command.
We also tried without the extra options but we got same the error
.\uv -t dshow:2 -d gl
Output:
We are running into a tight deadline and any help here would be greatly appreciated.
The text was updated successfully, but these errors were encountered: