Motion - Support Question 2007x 05x 23x 020426

Unable to connect to Longshine IPCamera LCS-IC-716 with MJPEG or JPEG

Question

I try to connect to an Longshine LCS-IC-716 low budget Network-Camera (IP). The Camera uses Java to show its images, it provides MJPEG Stream on Port 4321 and a non-login-jpeg at "ip/loginfree.jpg".

I tested two ways to get my connection :

-- First - Using the stream with a login/password

i use netcam_url = http://ip:4321 and netcam_userpass = name:pwd

and get nothing useful but :

[0] Motion running in setup mode.
[0] Webcam port 995
[0] Thread 1 is from /etc/motion/motion_kam5.conf
[0] Thread 1 is device: http://10.0.0.3:4321 input -1
[0] Waiting for threads to finish, pid: 6145
[1] Thread started
[1] Camera thread starting...
[0] motion-httpd/3.2.7 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Error reading first header - re-trying
[1] Error reading first header - re-trying
[1] Error reading first header - re-trying
[1] Error reading first header - re-trying
[1] Error reading first header - re-trying
[1] Failed to read first camera header - giving up for now
[1] Could not fetch initial image from network camera
[1] Motion continues using width and height from config file(s)

-- Second - Taking the "loginfree" imaging every second and check it

In this case i use netcam_url = loginfree.jpg

and get :

[0] Thread 1 is from /etc/motion/motion_kam5.conf
[0] Thread 1 is device: http://10.0.0.3/loginfree.jpg input -1
[0] Waiting for threads to finish, pid: 6182
[1] Thread started
[1] Camera thread starting...
[0] motion-httpd/3.2.7 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Error reading first header - re-trying
[1] Error reading first header - re-trying
[1] Error reading first header - re-trying
[1] Error reading first header - re-trying
[1] Error reading first header - re-trying
[1] Failed to read first camera header - giving up for now
[1] Could not fetch initial image from network camera
[1] Motion continues using width and height from config file(s)

I downloaded the JPG using Firefox (no problem, i even can show it by typing ip/loginfree.jpg) and checked the settings of the picture :

width 320, height 240, rgb24, 72dpi and ie 5kb per picture. All reads good - but motion cant get the image.

Anybody got a good idea how to check for further connections to capture my images?

My config is this :

# videodevice = /dev/video0
# input = 8
# norm = 0
# frequency = 0
# rotate = 0
# framerate = 2
# minimum_frame_time = 0
# auto_brightness = off
# brightness = 0
# contrast = 0
# saturation = 0
# hue = 0
# switchfilter = off
# threshold = 500
# threshold_tune = on
# noise_level = 32
# noise_tune = on
# night_compensate = off
# despeckle = EedDl
# smart_mask_speed = 0
# lightswitch = 60
# gap = 30
# output_motion = off
# quality = 95
# ppm = off
# thread = thread /etc/motion/motion_kam5.conf

thread 5

# width = 320
# height = 240
# framerate = 15
# minimum_frame_time = 0
# netcam_url = http://10.0.0.3/loginfree.jpg
# netcam_userpass = nooneshouldknow
# netcam_proxy = (not defined)

Environment

Motion version: 3.2.7
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS: Debian Etch

-- StefanAgethen - 23 May 2007

Follow up

Motion doens't support MPJEG codec stream yet ( not jpeg push).

That it's in my the TODO list for motion 3.2.9

-- AngelCarpintero - 27 May 2007

Answer

Motion Jpeg support has been added to trunk :

http://www.lavrsen.dk/twiki/bin/view/Motion/LinksysWVC200SupportPatch

-- AngelCarpintero - 16 Jun 2008
Topic revision: r3 - 16 Jun 2008, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.