Closed FreddieGeorge closed 1 year ago
I expect your camera doesn't support MJPEG. What device are you running on, and what camera are you trying to expose over UVC?
It might be worth looking at https://gitlab.freedesktop.org/camera/uvc-gadget/ ... which now incorporates an MJPEG encoder (but only through the libcamera path so far).
Thank you. I'm running on Allwinner T5 board. My camera does not support MJPEG, it use NV21 format. But I also try to load a jpg picture by using ./uvc-gadget -i /root/image.jpg
, it still not work, is it also the camera problem?
I'll try that code these day. Thanks a lot.
Test with the new version on gitlab.freedesktop.org. If you still have issues I can support you on that version, but not this one - it's too old. Please make an issue on
Thanks again! I'll try this version and also make issue on it if I still cant make it work
I changed some default setting in source code that I didn't need to input a lot of param, I wanna output
1280x720p MJPEG
format..When I run the app in my board, It can find a video device in Ubuntu. But it lost when I try to open the device in VLC , cheese or other application.
And I add some printf and found that, I got a format change in
uvc_evetns_process_data
, It printedYUYV
which I dont need.Is it driver or kernel problem? I use
Linux kunos 4.9.170