openxc / android-webcam

Android library to access a USB webcam feed
BSD 3-Clause "New" or "Revised" License
322 stars 139 forks source link

Activate mode H264 #3

Open lassouedramzi opened 11 years ago

lassouedramzi commented 11 years ago

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 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;

peplin commented 11 years ago

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

fengbenpaao commented 7 years ago

@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 ?