Motion - Support Question 2015x 01x 29x 172936

motion 3.2.12 - ffmpeg 0.8.16-6 - ipwebcam android

Question

Hi, i've a smartphone android with ip webcam app installed and a debian pc with motion and ffmpeg installed. the smartphone in a url http://myip:8080/photo.jpg return a simple jpeg file. if i launch motion return the error: "libjpeg decompression failure on first frame - giving up!" and don't work. who can help me?
daemon off
process_id_file /var/run/motion/motion.pid 
setup_mode off
videodevice /dev/video0
v4l2_palette 8
; tunerdevice /dev/tuner0
input 8
norm 0
frequency 0
rotate 0
width 536
height 402
framerate 7
minimum_frame_time 0
netcam_url value http://10.0.0.109:8080/photo.jpg
netcam_userpass value luk387:password
; netcam_http 1.0
; netcam_proxy value 
netcam_tolerant_check off
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
roundrobin_frames 1
roundrobin_skip 1
switchfilter off
threshold 1500
threshold_tune off
noise_level 32
noise_tune on
despeckle EedDl
; area_detect value
; mask_file value
smart_mask_speed 0
lightswitch 0
minimum_motion_frames 1
pre_capture 0
post_capture 0
gap 60
max_mpeg_time 0
output_all off
output_normal on
output_motion off
quality 100
ppm off
ffmpeg_cap_new on
ffmpeg_cap_motion on
ffmpeg_timelapse 0
ffmpeg_timelapse_mode daily
ffmpeg_bps 500000
ffmpeg_variable_bitrate 0
ffmpeg_video_codec mpeg4
ffmpeg_deinterlace off
locate off
text_right %Y-%m-%d\n%T-%q
; text_left CAMERA %t
text_changes off
text_event %Y%m%d%H%M%S
text_double off
target_dir /home/cubie/gf
snapshot_filename %v-%Y%m%d%H%M%S-snapshot
jpeg_filename %v-%Y%m%d%H%M%S-%q
movie_filename %v-%Y%m%d%H%M%S
timelapse_filename %Y%m%d-timelapse
webcam_port 8081
webcam_quality 50
webcam_motion off
webcam_maxrate 1
webcam_localhost off
webcam_limit 0
control_port 8080
control_localhost on
control_html_output on
;control_authentication username:password
for options like on_motion_detected
track_type 0
track_auto off
; track_port value
track_motorx 0
track_motory 0
track_maxx 0
track_maxy 0
track_iomojo_id 0
track_step_angle_x 10
track_step_angle_y 10
track_move_wait 10
track_speed 255
track_stepsize 40
quiet on
; on_event_start value
; on_event_end value
; on_picture_save value
; on_motion_detected value
; on_area_detected value
; on_movie_start value
; on_movie_end value
; on_camera_lost value
sql_log_image on
sql_log_snapshot on
sql_log_mpeg off
sql_log_timelapse off
sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
; mysql_db value
; mysql_host value
; mysql_user value
; mysql_password value
; pgsql_db value
; pgsql_host value
; pgsql_user value
; pgsql_password value
; pgsql_port 5432
; video_pipe value
; motion_video_pipe value
; thread /usr/local/etc/thread1.conf
; thread /usr/local/etc/thread2.conf
; thread /usr/local/etc/thread3.conf
; thread /usr/local/etc/thread4.conf

Environment

Motion version: 3.2.12
ffmpeg version: 0.8.16-6
Libraries: ffmpeg
Server OS: cubian (debian)
-- LucaAntonello - 29 Jan 2015

Answer

Hi Luca. Just a head's up, I'm a newbie so forgive me if this is not helpful.

Can I just double check with you about your "width" and "height" settings? They seem kind of non standard.

width 536

height 402

I have the "IP webcam" app installed on my android and I see only the following available settings in "Photo resolution"

3264x2448 , 3264x1968 , 2048x1536 , 2048x1232 , 1280x960 , 800x480 , 640x480

Are you sure that 536x402 is the resolution that the IP Webcam is delivering? I think that you might run into trouble if this setting doesn't match the width and height settings of the generated jpeg image from your webcam.

Other than that would you be willing to try enabling more aggressive logs and then sending the generated logs while the problem occurs in to the thread? Just add the following to the motion config file

log_level 9

Thanks very much Luca! Best of luck!

-- AlanFord - 17 Feb 2015
Topic revision: r3 - 12 Apr 2015, TosiaraT
Copyright © 1999-2017 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.