foscam fi8918w libjpeg decompression failure 
  Question 
Hello, Im attempting to use a foscam fi8918w camera with motion and I keep getting a libjpeg decompression failure error message. Under working devices in this wiki I found this:
Tested on 
FI8905W? and 
FI8918W? purchased Mar 2011 netcam_url http://CAMERA_IP/videostream.cgi?user=admin?pwd=password netcam_http keep_alive
but I still get the same error. Ive also tried these (among others):
netcam_url http://192.168.0.24/jpg/image.jpg returns only ONE single image. For Motion to get a video stream you should point the netcam_url to 
http://192.168.0.24/mjpg/video.mjpg or 
http://192.168.0.24/axis-cgi/mjpg/video.cgi or 
http://192.168.0.24/axis-cgi/mjpg/video.cgi?resolution=320x240 or 
http://192.168.0.24/axis-cgi/mjpg/video.cgi?resolution=640x480
Could anyone who has gotten one of these to work kindly post your motion.conf file?
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Unknown config option "minimum_gap"
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3426306 LIBAVFORMAT_BUILD 3424258
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[1] libjpeg decompression failure on first frame - giving up!
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] Retrying until successful connection with camera
[1] libjpeg decompression failure on first frame - giving up!
  Environment 
	
		
			|  Motion version:  | 
			 3.2.12  | 
		
		
			|  ffmpeg version:  | 
			    | 
		
		
			|  Libraries:  | 
			 ffmpeg, mysql, postgresql  | 
		
		
			|  Server OS:  | 
			 mint 11  | 
		
	
-- 
CoryD - 08 Dec 2011
  Follow Up 
Please try with motion svn trunk or git version.
Cheers,
-- 
AngelCarpintero - 08 Dec 2011
  Answer