Skip to content

Instantly share code, notes, and snippets.

@smurfix
Created December 6, 2021 09:54
Show Gist options
  • Save smurfix/3c58838813cb231dfc24049796feab33 to your computer and use it in GitHub Desktop.
Save smurfix/3c58838813cb231dfc24049796feab33 to your computer and use it in GitHub Desktop.
motion JPEG bug
daemon off
setup_mode off
log_level 7
log_type all
input -1
rotate 0
width 1280
height 1024
framerate 5
minimum_frame_time 0
netcam_keepalive on
netcam_tolerant_check off
auto_brightness off
vid_control_params brightness=0,contrast=0,hue=0
roundrobin_frames 1
roundrobin_skip 1
roundrobin_switchfilter off
threshold 1500
threshold_tune off
noise_level 32
noise_tune on
smart_mask_speed 0
lightswitch_percent 0
minimum_motion_frames 1
pre_capture 2
post_capture 5
event_gap 60
movie_max_time 0
emulate_motion off
picture_output best
picture_output_motion off
picture_quality 75
picture_type jpeg
movie_output on
movie_output_motion off
timelapse_interval 10
timelapse_mode daily
movie_bps 500000
movie_quality 10
movie_codec mpeg4
movie_extpipe_use on
movie_extpipe ffmpeg -loglevel warning -y -f rawvideo -pix_fmt yuv420p -video_size %wx%h -framerate %fps -i pipe:0 -c:v libx264 -preset fast -crf 23 -f mp4 %f.mp4
snapshot_interval 0
locate_motion_mode off
locate_motion_style box
text_right %Y-%m-%d\n%T-%q
text_changes off
text_event %Y%m%d%H%M%S
text_scale 1
target_dir /var/lib/motion
snapshot_filename %v-%Y%m%d%H%M%S-snapshot
picture_filename %Y%m%d%H%M%S-%q
movie_filename %Y%m%d%H%M%S
timelapse_filename %Y%m%d
webcontrol_ipv6 off
stream_port 0
stream_quality 50
stream_motion off
stream_maxrate 1
stream_localhost off
stream_limit 0
stream_auth_method 0
webcontrol_port 58080
webcontrol_localhost off
webcontrol_interface 0
track_type 0
track_auto off
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
netcam_url http://10.107.1.229:80/oneshotimage1
input 1
text_left Einfahrt
mask_file /etc/motion/kam4.pgm
roundrobin_skip 0
roundrobin_switchfilter off
target_dir /d/sonst/monitor/einfahrt
stream_port 58086
minimum_motion_frames 3
pre_capture 10
post_capture 10
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [WRN] [ALL] mlp_retry: Retrying until successful connection with camera
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [NTC] [VID] vid_start: Opening Netcam RTSP
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_parms: Setting up norm stream.
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_path: Setting up http via netcam
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_options: norm: Setting input_format mjpeg
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_options: norm: option: keepalive = on
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_options: norm: option: tolerant_check = off
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_open_context: norm: Opened camera((null))
Dez 06 10:48:20 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: HW Devices:
Dez 06 10:48:20 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: vdpau (not implemented)
Dez 06 10:48:20 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: vaapi (available)
Dez 06 10:48:20 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: drm (not implemented)
Dez 06 10:48:20 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: opencl (not implemented)
Dez 06 10:48:20 r-a motion[9912]: [1:av0] [INF] [NET] netcam_init_swdecoder: norm: Initializing decoder
Dez 06 10:48:20 r-a motion[9912]: [1:av0] [INF] [NET] netcam_rtsp_open_codec: norm: Decoder opened
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_read_image: norm: capture_rate not specified in netcam_params. Using framerate 5
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_read_image: norm: av_read_frame: End of file
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_cleanup: norm: Shutting down network camera.
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [NTC] [NET] netcam_rtsp_cleanup: Normal resolution: Shut down complete.
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [ERR] [VID] vid_start: Netcam RTSP failed to open
Dez 06 10:48:20 r-a motion[9912]: [1:ml1] [NTC] [ALL] motion_loop: Thread exiting
Dez 06 10:48:21 r-a motion[9912]: [0:motion] [NTC] [ALL] main: Motion thread 1 restart
Dez 06 10:48:21 r-a motion[9912]: [0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 is from /etc/motion/motion.conf
Dez 06 10:48:21 r-a motion[9912]: [0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 Camera Name: (null) Service: http:
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection Enabled
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [NTC] [VID] vid_start: Opening Netcam RTSP
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_parms: Setting up norm stream.
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_path: Setting up http via netcam
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_options: norm: Setting input_format mjpeg
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_options: norm: option: keepalive = on
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_set_options: norm: option: tolerant_check = off
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_open_context: norm: Opened camera((null))
Dez 06 10:48:21 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: HW Devices:
Dez 06 10:48:21 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: vdpau (not implemented)
Dez 06 10:48:21 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: vaapi (available)
Dez 06 10:48:21 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: drm (not implemented)
Dez 06 10:48:21 r-a motion[9912]: [1:av0] [INF] [NET] netcam_hwdecoders: norm: opencl (not implemented)
Dez 06 10:48:21 r-a motion[9912]: [1:av0] [INF] [NET] netcam_init_swdecoder: norm: Initializing decoder
Dez 06 10:48:21 r-a motion[9912]: [1:av0] [INF] [NET] netcam_rtsp_open_codec: norm: Decoder opened
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_read_image: norm: capture_rate not specified in netcam_params. Using framerate 5
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_read_image: norm: av_read_frame: End of file
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [NET] netcam_rtsp_cleanup: norm: Shutting down network camera.
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [NTC] [NET] netcam_rtsp_cleanup: Normal resolution: Shut down complete.
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [ERR] [VID] vid_start: Netcam RTSP failed to open
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [WRN] [ALL] motion_init: Could not fetch initial image from camera
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [ALL] motion_init: Maskfile "/etc/motion/kam4.pgm" loaded.
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 13 items
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [NTC] [EVT] event_ffmpeg_timelapse: Timelapse using mpg codec.
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [NTC] [EVT] event_ffmpeg_timelapse: Events will be appended to file
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [INF] [ENC] ffmpeg_set_quality: mpeg2video codec vbr/crf/bit_rate: 5833
Dez 06 10:48:21 r-a motion[9912]: [1:ml1] [NTC] [EVT] event_newfile: Writing movie to file: /d/sonst/monitor/einfahrt/20211206.mpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment