利用DroidCam将手机摄像头打造成电脑摄像头
- - 开源软件 - ITeye博客现在许多同学的电脑上没有摄像头,但是随着智能手机的普及,大多数同学都有带摄像头的手机. 而智能手机的摄像头比电脑的usb摄像头的效果好很多. 那可不可以把手机摄像头用在电脑上来网络聊天呢,其实这是可以的,这里我们需要借助DroidCam软件来让手机摄像头变成电脑摄像头. 本人亲测通过的软硬件环境:.
>adb version Android Debug Bridge version 1.0.32
>adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached 556607e8 device
>adb forward tcp:4747 tcp:4747
>netstat -ano | findstr "5037" TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 1704 TCP 127.0.0.1:5037 127.0.0.1:52111 TIME_WAIT 0 TCP 127.0.0.1:5037 127.0.0.1:52174 TIME_WAIT 0
>commandcam /devlist http://batchloaf.wordpress.com/CommandCam This version 24-1-2013 Available capture devices: Device name: DroidCam Source 3 Device name: DroidCam Source 1 Device name: DroidCam Source 2 Device name: DroidCam Source Mini (240p)
>ffmpeg -list_devices true -f dshow -i dummy ffmpeg version N-69351-gfb34c58 Copyright (c) 2000-2015 the FFmpeg developers built on Jan 28 2015 02:25:52 with gcc 4.9.2 (GCC) [dshow @ 003cf9a0] "DroidCam Source 3" [dshow @ 003cf9a0] Alternative name "@device_pnp_\\?\root#media#0000#{65e877 3d-8f56-11d0-a3b9-00a0c9223196}\global" [dshow @ 003cf9a0] "DroidCam Source 1" [dshow @ 003cf9a0] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A 0C911CE86}\{961A218F-3CA2-4041-98B1-066B8B33487E}" [dshow @ 003cf9a0] "DroidCam Source 2" [dshow @ 003cf9a0] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A 0C911CE86}\{9E2FBAC0-C951-4AA8-BFA9-4B196644964C}" [dshow @ 003cf9a0] "DroidCam Source Mini (240p)" [dshow @ 003cf9a0] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A 0C911CE86}\{FC9B8228-83D5-4C8D-8656-45CBA9E237FB}" dummy: Immediate exit requested
>ffmpeg -list_options true -f dshow -i video="DroidCam Source 1" [dshow @ 037762c0] DirectShow video device options (from video devices) [dshow @ 037762c0] Pin "CapturePin" (alternative pin name "1") [dshow @ 037762c0] pixel_format=bgr24 min s=640x480 fps=0.2 max s=640x480 fps=50
>ffmpeg -f dshow -s 640x480 -i video="DroidCam Source 1" webcam.flv