Camera possible in chroot?
Hi again, just curious if it is technically possible for chrooted gnu/linux to use the phone camera.
1- Would it need cutom /dev mounting to be done?
2- Or is it not possible at all ?
A reason for it not being possible is that camera drivers have very sloppy coding that make them work only on Android and not in a proper GNU environment. I read somewhere that V4L is not supported by most mobile hardware manufacturers.
Please tell me if you have it working or are planning to add support if this is technically feasible.
I installed cheese but it never startups at all to let me test this.
Hi,
I have a debian chroot on my Motorola Defy+ (Cyanogenmod 10). With streamer I can grab frames from /dev/video0 (of course after remounting as described here https://wiki.archlinux.org/index.php/Change_Root ). However the image has only 320x240px (cam has 5MP), red and blue channel are swapped and the image is rotated by 180°. The latter two can be fixed with ImageMagick, but the former is a real pain in the ...
I'm trying to find a way to improve this. Maybe I'll write an app to take a photo, a script to run the app and then copy the photo to some directory in the chroot. This guy here did the same: http://ncrmnt.org/wp/2013/03/19/theres-a-server-in-my-pocket/ (quite at the end of the page he is adding camera support via an app and image sending over localhost)
Note, I am not using "linuxdeploy", but just followed this tutorial: https://wiki.debian.org/HowtoDebianInAndroid However, I guess the resulting setups are not too different from each other.
Best, Constantin