Android emulator cannot connect to webcam with "unrecognized pixel format error",

After upgrading my macbook to Yosemite, I get the following error when starting the Android emulator. I tried all combinations of settings, but everyone reported the same error. Any attempt to launch the built-in camera application or use the camera in my own application will fail. Below is the error that I get when starting the emulator. Running the emulator with additional debug flags did not bring any additional useful information.

emulator: ERROR: Unrecognized pixel format 'v024' emulator: ERROR: Pixel format 'v024' reported by the camera device is unsupported 

This is an example of one of my emulator configurations:

 Name: Nexus_5_API_21 CPU/ABI: Google APIs Intel Atom (x86_64) Path: /Users/rob/.android/avd/Nexus_5_API_21.avd Target: Google APIs (API level 21) Skin: nexus_5 SD Card: 100M Snapshot: no hw.lcd.density: 480 hw.dPad: no avd.ini.encoding: UTF-8 hw.camera.back: webcam0 disk.dataPartition.size: 200M hw.gpu.enabled: yes runtime.network.latency: none skin.dynamic: no hw.keyboard: yes runtime.network.speed: full hw.device.hash2: MD5:2fa0e16c8cceb7d385183284107c0c88 hw.ramSize: 1536 tag.id: google_apis tag.display: Google APIs hw.sdCard: yes hw.device.manufacturer: Google hw.mainKeys: no hw.accelerometer: yes hw.trackBall: no hw.device.name: Nexus 5 hw.sensors.proximity: yes hw.battery: yes AvdId: Nexus_5_API_21 hw.sensors.orientation: yes hw.audioInput: yes hw.camera.front: none hw.gps: yes avd.ini.displayname: Nexus 5 API 21 snapshot.present: no vm.heapSize: 64 runtime.scalefactor: auto 

The webcam works great for other applications like photobooth or facetime.

Any ideas on how I can resolve this error are welcome.

+5
source share
1 answer

I had the same error. I installed it by opening the Photo Paper application, and then restarted the AVD while having the photo paper in the background.

+28
source

Source: https://habr.com/ru/post/1210715/


All Articles