Details:
Ubuntu 11.04 requires additional software to use the built-in isight on a 4-1 macbook. (google macbook 4,1 natty; It won't let me post a link) This is complete and isight works with Cheese/xawtv/ffmpeg.
I installed ZoneMinder 1.24 from the software center and followed the wiki instructions of additional steps. I have created two monitors to test the camera. Neither one works. One is an FFMPEG monitor and the other is local.
The camera does work with FFMPEG (and the light comes on). I can use
Code: Select all
ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -an -vframes 1 -vcodec mjpeg -y snapshot.jpg
and I'll get a lovely snapshot.
device info:
Code: Select all
zmu -d /dev/video0 -q -v
Video Device: /dev/video0
General Capabilities
Driver: uvcvideo
Card: Built-in iSight
Bus: usb-0000:00:1d.7-4
Version: 1.0.0
Type: 0x4000001
Supports video capture (X)
Does not support video output
Does not support frame buffer overlay
Does not support VBI capture
Does not support VBI output
Does not support sliced VBI capture
Does not support sliced VBI output
Does not support video output overlay
Does not have tuner
Does not have audio in and/or out
Does not have radio
Does not support read/write i/o (X)
Does not support async i/o
Supports streaming i/o (X)
Standards:
Formats:
YUV 4:2:2 (UYVY) (UYVY)
Crop Capabilities
Bounds: 320 x 240
Default: 320 x 240
Current: Cropping is not supported
Inputs: 1
Input 0
Name: Camera 1
Type: Camera
Audioset: 00000000
Standards: 0x0
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
I turned on debugging level 5 as suggested in troubleshooting and found the following in /tmp/zmdc.log
Code: Select all
02/11/2013 13:33:22.065867 zmdc[31394].INF ['zmc -d /dev/video0' starting at 13/02/11 13:33:22, pid = 32055]
02/11/2013 13:33:22.109929 zmdc[31394].ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
Code: Select all
02/11/13 13:27:56.636838 zms[32001].INF-zm_debug.c/292 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.32001]
02/11/13 13:27:56.637005 zms[32001].DB1-zms.cpp/98 [Query: mode=mpeg&monitor=1&scale=100&bitrate=150000&maxfps=15&format=swf&buffer=1000&connkey=529862&rand=1360610876]
02/11/13 13:27:56.637153 zms[32001].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
02/11/13 13:27:56.637633 zms[32001].DB1-zm_monitor.cpp/338 [monitor purpose=0]
02/11/13 13:27:56.637652 zms[32001].DB1-zm_monitor.cpp/345 [mem.size=9217192]
02/11/13 13:27:56.637747 zms[32001].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
02/11/13 13:27:56.639798 zms[32001].DB1-zm_monitor.cpp/458 [Monitor test_monitor has function 2]
02/11/13 13:27:56.639813 zms[32001].DB1-zm_monitor.cpp/459 [Monitor test_monitor LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 232]
02/11/13 13:27:56.639823 zms[32001].DB1-zm_monitor.cpp/460 [Monitor test_monitor IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 10, FM = 0]
02/11/13 13:27:56.639837 zms[32001].DB1-zm_monitor.cpp/2459 [Loaded monitor 1(test_monitor), 0 zones]
02/11/13 13:27:56.639934 zms[32001].DB3-zm_stream.cpp/58 [FPS:0.00, MXFPS:15.00, BFPS:0.00, EFPS:0.00, FM:1]
02/11/13 13:27:56.639960 zms[32001].DB3-zm_stream.cpp/65 [aEFPS:0.00, aFM:1]
02/11/13 13:27:56.639971 zms[32001].DB2-zm_monitor.cpp/3374 [Checking swap image location]
02/11/13 13:27:56.639980 zms[32001].DB3-zm_monitor.cpp/3375 [Checking swap image path]
02/11/13 13:27:56.640014 zms[32001].DB3-zm_monitor.cpp/2868 [Swap path '/tmp/zmswap-m1/zmswap-q529862' missing, creating]
02/11/13 13:27:56.640075 zms[32001].DB2-zm_monitor.cpp/3396 [Assigning temporary buffer]
02/11/13 13:27:56.645138 zms[32001].DB2-zm_monitor.cpp/3399 [Assigned temporary buffer]
02/11/13 13:27:57.145336 zms[32001].ERR-zm_monitor.cpp/3579 [Terminating, last frame sent time 1360610876.645203 secs more than maximum of 10.000000]
02/11/13 13:27:57.145477 zms[32001].DB1-zm_monitor.cpp/3588 [Cleaning swap files from /tmp/zmswap-m1/zmswap-q529862]
02/11/13 13:27:57.145682 zms[32001].DB1-zm_monitor.cpp/3616 [Can't glob '/tmp/zmswap-m1/zmswap-q529862/*.*': 3]