Motion - Support Question 2007x 06x 13x 094424

Grand IP Cam III with NetcamContentAuthPatch

Question

Hi. I've got Grand IP Cam III, and I want to work it with Motion. When I use /video.cgi source I'm still getting error like:

[1] Not a JPEG file: starts with 0x0d 0x0a 
[1] libjpeg decompression failure on first frame - giving up! 

I've got SVN version with NetcamContentAuthPatch.diff from bottom of this site. What is wrong? Sorry for my english cry

My config:
# Minimal motion example config file provided by the
# Debian motion package - for basic webcam operation.
#
# You most certainly want to investigate
# /usr/share/doc/motion/examples/motion-dist.conf.gz
# for further configuration options. Also, refer to the
# motion man page and /usr/share/doc/motion/motion_guide.html
# for detailed information on configuration options.

daemon off
quiet off

# You may very well need to change this (check with 'dmesg'
# after plugging in your webcam).

netcam_url http://192.168.1.100/video.cgi
netcam_userpass user:pass

# Image size in pixels (valid range is camera dependent).
width 640
height 480

framerate 10
quality 85
auto_brightness off

# General threshold level and noise threshold
# level (for distinguishing between noise and motion).
threshold 4500
noise_level 64

# Encode movies in real-time (install ffmpeg before enabling).
ffmpeg_cap_new on

# Codec to be used by ffmpeg for the video compression.
# Supported formats: mpeg4, msmpeg4.
ffmpeg_video_codec msmpeg4

# Target base directory for pictures and films (you may need
# to change this (or change its permissions) depending on
# which system user runs motion).
target_dir /home/transket/.motion

# Define a port number (e.g. 8000) to enable the mini-http server.
# 0 = disabled.
webcam_port 8000

# Set to 'off' to allow anybody (not just localhost) to view the
# webcam via the mini-http server (http://hostname:port).
webcam_localhost off

webcam_quality 70
webcam_maxrate 10

Error log:
[0] Processing thread 0 - config file /home/transket/.motion/motion.conf
[0] Thread 1 is from /home/transket/.motion/motion.conf
[1] Thread started
[1] entered netcam_start()
[1] Camera thread starting...
[1] Received first header
[1] Received first header
[1] Streaming camera
[1] Boundary string [--myboundary]
[1] Found image header record
[1] expanding buffer from 0 to 4096 bytes
[1] expanding buffer from 4096 to 8192 bytes
[1] expanding buffer from 8192 to 12288 bytes
[1] Not a JPEG file: starts with 0x0d 0x0a
[1] libjpeg decompression failure on first frame - giving up!
[1] Could not fetch initial image from network camera
[1] Motion continues using width and height from config file(s)
[1] Started stream webcam server in port 8000
[1] vid_return_code 2
[1] vid_return_code 2
[1] vid_return_code 2
[1] vid_return_code 2
[1] vid_return_code 2
[1] vid_return_code 2
[1] vid_return_code 2
...
[1] vid_return_code 2
[1] Retrying until successful initial connection with network camera
[1] entered netcam_start()
[1] Camera thread starting...
[1] Received first header
[1] Received first header
[1] Streaming camera
[1] Boundary string [--myboundary]
[1] Found image header record
[1] expanding buffer from 0 to 4096 bytes
[1] expanding buffer from 4096 to 8192 bytes
[1] expanding buffer from 8192 to 12288 bytes
[1] Not a JPEG file: starts with 0x0d 0x0a
[1] libjpeg decompression failure on first frame - giving up!

Environment

Motion version: SVN 182
ffmpeg version:  
Libraries: ffmpeg, mysql, libjpeg
Server OS: Ubuntu 7.04, kernel 2.6.20

-- MateuszKnapik - 13 Jun 2007

Follow Up

First that patch is have been not revised , but seems that worked for people .

Did you apply correctly the patch and after recompile motion ?

 patch < NetcamContentAuthPatch.diff
 make clean ; ./configure ; make 
 

If you did that correctly , maybe you can use MjpegSniffer and post the capture in NetcamMjpegStreamDumps

Good luck !

-- AngelCarpintero - 14 Jun 2007

Answer

Closed , not feedback .

According to http://www.lavrsen.dk/twiki/bin/view/Motion/NetcamContentAuthPatch

Issue was a buggy firmware so no patch needed.

-- AngelCarpintero - 15 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.