Could not fetch initial image from camera -- no driver info is given.
I can't get an image, I just get the all-too-familiar grey box. However, I see that other people get output like
 cap.driver: "saa7134"  cap.card: "UNKNOWN/GENERIC"
... But I don't even get this much.
I'm using input 3; 0 is tv, 1 is mono tv, 2 is input 1, 3 is input 2, that's where the camera is.
Anyway, I'm using 2.6.31-gentoo #1 SMP x86_64 and the card works perfectly with zapping, so I can't understand why the silly thing won't work with motion.
Motion runs as root, and I've added o+rw to the node just in case, but I'm still not getting anywhere.
# LD_PRELOAD=/usr/lib64/libv4l/v4l2convert.so motion -n -d 999
 Processing thread 0 - config file /etc/motion.conf
 Motion 3.2.11 Started
 ffmpeg LIBAVCODEC_BUILD 3412992 LIBAVFORMAT_BUILD 3415808
 Thread 1 is from /etc/motion.conf
 Thread 1 is device: /dev/video0 input 3
 Webcam port 8081
 motion-httpd/3.2.11 running, accepting connections
 motion-httpd: waiting for data on port TCP 8080
 Thread 1 started
 You must setup netcam_url
 Could not fetch initial image from camera
 Motion continues using width and height from config file(s)
 Resizing pre_capture buffer to 1 items
 Waiting for threads to finish, pid: 7477
 Started stream webcam server in port 8081
 Resizing pre_capture buffer to 3 items
 Retrying until successful connection with camera
| Motion version:
| ffmpeg version:
| Server OS:
- 22 Sep 2009
Did you compile motion ? Looks that is compiled without video for linux support .
Get lastest stable
and compile :
./configure ; make ; make install ; ./motion -c /etc/motion.conf
- 22 Sep 2009
On Gentoo, if you emerge motion from portage (instead of downloading the source and compiling it yourself) the v4l and v4l2 support is off by default. You can enable it ( and ffmpeg in this example to get avi/swf style support) by adding the use flags for v4l and ffmpeg. Here's one way to set the use flags: (see gentoo documentation on use flags for more info)
pizzacorn ~ # cat /etc/portage/package.use
media-video/motion v4l ffmpeg
note that the v4l use flag turns on v4l and v4l2 in motion
Notice about this message in logs :
You must setup netcam_url
It means you are running motion without v4l/v4l2 support , it's a emerge / gentoo issue.
- 15 Nov 2009