Motion - Bug Report 2007x 09x 27x 010746
You are here: Foswiki>Motion Web>BugReports>BugReport2007x09x27x010746 (07 Aug 2008, AngelCarpintero)Edit Attach

BUG: FramesOutOfOrder

I have been seeing some very strange behavior from Motion since updating to 3.2.8. I use several analog cameras on a single pci card, but each has its own chip. Occasionally I return to my computer to find a massive video file being recorded and after investigating, it seems that Motion keeps an "old" frame and keeps inserting it into the video stream causing constant Motion. The best way to see what I mean is to see the attached video clip of such an event. You can see the second truck disappear every forth frame because it looks like Motion adds in an old reference frame.

Motion.conf:
daemon off
setup_mode off
norm 1
frequency 0
rotate 0
width 320
height 240
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
roundrobin_frames 0
roundrobin_skip 0
switchfilter 0
threshold 500
threshold_tune off
noise_level 32
noise_tune on
night_compensate off
smart_mask_speed 0
lightswitch 0
minimum_motion_frames 1
pre_capture 8
post_capture 8
gap 60
minimum_gap 0
max_mpeg_time 0
low_cpu 0
output_all off
output_normal best
output_motion off
quality 60
ppm off
ffmpeg_cap_new on
ffmpeg_cap_motion off
ffmpeg_timelapse_mode daily
ffmpeg_bps 0
ffmpeg_variable_bitrate 9
ffmpeg_video_codec mpeg4
ffmpeg_deinterlace on
snapshot_interval 0
locate preview
text_right %Y-%m-%d\n%T-%q
text_changes on
target_dir /
snapshot_filename snapshot
jpeg_filename %Y/%m/%d/%H%M%S
movie_filename %Y/%m/%d/%H%M%S
timelapse_filename %Y/%m/%d-timelapse
webcam_quality 50
webcam_motion on
webcam_maxrate 3
webcam_localhost off
webcam_limit 0
control_port 8080
control_localhost on
control_html_output on
track_type 0
track_motorx -1
track_maxx 0
track_iomojo_id 0
track_speed 255
track_stepsize 40
quiet on
on_picture_save /home/andrew/scripts/motion_move.sh
thread /usr/local/etc/thread1.conf
thread /usr/local/etc/thread3.conf
thread /usr/local/etc/thread4.conf


Thread.conf (one of several as an example):
------------------------------------------------------------
videodevice /dev/video3
input 0
width 512
height 384
ffmpeg_deinterlace on
snapshot_filename snap/snapshot
target_dir /
snapshot_interval 0
webcam_port 8084
auto_brightness off
brightness 127
contrast 95
saturation 127
framerate 4
text_left "Cam 4"
smart_mask_speed 0
despeckle EedD
movie_filename /home/video/cam4/%Y/%m/%d/%H%M%S
timelapse_filename /home/video/cam4/%Y/%m/%d-timelapse
jpeg_filename /var/www/pics/4_%Y%m%d%H%M%S
ffmpeg_timelapse 0

Environment

Motion version: 3.2.8
ffmpeg version: 0.4.9-SVN-r7186
Shared libraries: ffmpeg
Server OS: Kubuntu Gutsy 2.6.22

-- AndrewHamilton - 27 Sep 2007

Follow up

I never saw this.

Andrew - have you tried the current SVN? A lot has been rewritten related to pre-capture.

-- KennethLavrsen - 24 Nov 2007

Fix record

Reopen with branch 3.2.11 or svn trunk.

-- AngelCarpintero - 07 Aug 2008
Topic revision: r3 - 07 Aug 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.