openxc/android-webcam

Activate mode H264

Opened this issue · 2 comments

I use your code to display a usb webcam with Nexus 7, the video is displayed is very good, but it is YUV420 , I would like enabled full HD 1080p, to do that we need h264 compression, when I activate the code with <fmt.fmt.pix.pixelformat=V4L2_PIX_FMT_H264;> I have a green display and the app crash after 20 seconds,
I think we need a method to convert h264 to rgb instead of yuv to rgb;
how can I activate this mode h264 ? and thank you in advance;

@colinm1 this may be of interest to you to work on to boost the performance and image quality for your project.

@lassouedramzi are you try to do that ? I want to try; when I use the https://github.com/saki4510t/UVCCamera; switch to h264 preview;

I have a green display and the app crash after 5 seconds, I think maybe I420toARGB has some issues;
when I use the libyuv to do I420toARGB , the problem is same, can not show the preview;

how to do it ?