Skip to content
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

Only few streaming lines on windows in UVC_FRAME_FORMAT_YUYV #22

Open
ftaiolivista opened this issue Nov 10, 2017 · 3 comments
Open

Only few streaming lines on windows in UVC_FRAME_FORMAT_YUYV #22

ftaiolivista opened this issue Nov 10, 2017 · 3 comments

Comments

@ftaiolivista
Copy link

Hi,

I'm using your libusb and libuvc with opencv.

My device support UVC_FRAME_FORMAT_YUYV mode.

On Linux I can get a full frame streaming but on windows i can get only few lines of video streaming, but that few lines are working at least :)

screenshot_20171110_115932

Any idea on how I can fix that?

I'm on windows 10, device driver libusbK (v3.0.7.0). Tested with many device, same results.

Thank you for your great work on windows platform.

@mkassner
Copy link
Member

mkassner commented Nov 10, 2017

I m not sure. We made the port work for mjepg only. We dont use yuv transport. Maybe ask in the main repo of this fork?

@ftaiolivista
Copy link
Author

It's this code on stream.c, if I comment it it works :)). But why you have added it? I think there must be a reason :)

    // our way: estimate it:
    size_t bandwidth = frame_desc->wWidth * frame_desc->wHeight / 8 * bandwidth_factor; //the last one is bpp default 4 but we use if for compression, 2 is save, 1.5 is needed to run 3 high speed cameras. on one bus.
    bandwidth *= 10000000 / strmh->cur_ctrl.dwFrameInterval + 1;
    bandwidth /= 1000; //unit
    bandwidth /= 8; // 8 high speed usb microframes per ms
    bandwidth += 12; //header size
    config_bytes_per_packet = bandwidth;

@mkassner
Copy link
Member

mkassner commented Nov 10, 2017

Yeah. This is for mjpeg bandwidth calculation. You should leave it out as you did for yuv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants