-
Notifications
You must be signed in to change notification settings - Fork 25
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
Yuv format not available #7
Comments
Hello costeacostin, First tell how big the frames are you got from the camera. (How many bytes) Next you need to know, how big a frame of your camera should be. If you have a linux Pc, you can post the output of: Under the uncompressed video formats, there exists more than one, so you have to know the exact uncompressed format of your camera. If the frame has not the right size, you may have to change some of the camera values. Perhaps you can post all of the camera values you use with your camera. So far, Peter |
Hello, The output of lsusb: What should I use from here? BR, |
ioctl: VIDIOC_ENUM_FMT
|
Ok, does the stream work with MJPEG Format? What exactly is the length of the frames with Yuv? The output under linux should be longer... So far, Peter |
Hi, Yes, I can see images in MJPEG format in android without problems. The framerate is pretty slow, I could't identify the magic formula of parameters in order to make it faster. I really like this project, |
Ok, then lets try to get some yuv frames from your Camera with the Android App: I think for Mjpeg Frames you used the "Set Up With Uvc Values" Button. Normally this Button should work for the YUV Frames too. First 3 Entries could be the same like the ones from Mjpeg, because they will matter later during debugging the camera. (Maxpacketsize, PacketsPerRequest, ActiveUrbs) The 4. entry is the frame Format: Please post the automatic detected Formats you can choose here, because the two fromats should be YUYV and Mjpeg. The uncompressed Frames you receive here should have a size of 38400 bytes! All frames you get from your cam with a different size are Error frames! (Only fits for 160x120 framesize) For debugging your camera now click the "-Controltransfer-Testrun-" Button in the App and Run a Testrun with 1 Frame. Please post your results from the steps above. Sadly I have less time for discussing the issue via a chat. Also my notebook is in repair for about a month and I'm not getting any response from the repair service if they can fix my notebook or not... So far, Peter |
Hello,
I tried to take out the frames from the camera in YUV format but it doesnt work, I see only random pixels and after this I tried to convert by myself the the frames from jpeg to yuv but still no success.
Do you have any idea about how I can do this in a clean manner?
Thanks,
Costin
The text was updated successfully, but these errors were encountered: