Debian 8.2 Но думаю не важно....
Версия motion Version 3.4.1~rc01
Вот конфиги:
motion.conf
daemon on
process_id_file /var/run/motion/motion.pid
v4l2_palette 17
norm 3
width 1920
height 1080
minimum_frame_time 0
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
roundrobin_frames 1
roundrobin_skip 1
switchfilter off
despeckle EedDl
max_mpeg_time 900
output_all off
output_normal off
output_motion on
# Output ppm images instead of jpeg (default: off)
ppm off
quality 90
#Сохранения потока с камеры как видеофайла.
# Use ffmpeg to encode mpeg movies in realtime (default: off)
ffmpeg_cap_new on
# Use ffmpeg to make movies with only the pixels moving
# object (ghost images) (default: off)
ffmpeg_cap_motion on
# Use ffmpeg to encode a timelapse movie
# Default value 0 = off - else save frame every Nth second
ffmpeg_timelapse 0
# Сколько времени в (секундах) вести запись в один файл.После превышения предела создается новый
# файл.
# The file rollover mode of the timelapse video
# Возможные значения: hourly(ежечасно), daily (ежедневно,default), weekly-sunday(еженедельно,начало недели в воскресенье),
# weekly-monday(аналогично с началом в понедельник), monthly(ежемесячно), manual(вручную)
ffmpeg_timelapse_mode hourly
# Bitrate to be used by the ffmpeg encoder (default: 400000)
# This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled)
ffmpeg_bps 500000
# Enables and defines variable bitrate for the ffmpeg encoder.
# ffmpeg_bps is ignored if variable bitrate is enabled.
# Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps,
# or the range 2 - 31 where 2 means best quality and 31 is worst.
ffmpeg_variable_bitrate 0
# Выбор кодека, которым будет обработан сохраняемый видеопоток. Выбранный кодек должен быть установлен
# в системе, иначе при запуске Motion будет выдавать ошибку.
# Codec to used by ffmpeg for the video compression.
# Timelapse mpegs are always made in mpeg1 format independent from this option.
# Supported formats are: mpeg1 (ffmpeg-0.4.8 only), mpeg4 (default), and msmpeg4.
# mpeg1 - gives you files with extension .mpg
# mpeg4 or msmpeg4 - gives you files with extension .avi
# msmpeg4 is recommended for use with Windows Media Player because
# it requires no installation of codec on the Windows client.
# swf - gives you a flash film with extension .swf
# flv - gives you a flash video with extension .flv
# ffv1 - FF video codec 1 for Lossless Encoding ( experimental )
# mov - QuickTime ( testing )
ffmpeg_video_codec mpeg4
# Если появляются искажения, можно попробывать включить. Я прбывал когда у меня было нормальное
# изображение из любопытства. Никакой разницы не заметил
# Use ffmpeg to deinterlace video. Necessary if you use an analog camera
# and see horizontal combing on moving objects in video or pictures.
# (По умолчанию: off)
ffmpeg_deinterlace off
locate on
text_left CAM %t\n
text_right %d-%m-%Y\n%T-%q
text_double off
target_dir /var/3tb/1/motion
ffmpeg_filename cam%t/%d-%m-%Y/%H-%M-%S
movie_filename cam%t/%d-%m-%Y/%H-%M-%S
quiet on
text_changes on
thread /aster/motion/motion/thread1.conf
thread1.conf
netcam_userpass admin:12345
netcam_url rtsp://192.168.0.205:554//Streaming/Channels/1
# netcam_url https://admin:12345@192.168.0.204:443/Streaming/channels/102/httppreview
input 0
framerate 15
minimum_motion_frames 1
pre_capture 15
post_capture 500
gap 100
threshold 1000
threshold_tune off
noise_level 32
noise_tune on
lightswitch 10
# mask_file /etc/motion/mask.pgm
smart_mask_speed 0
webcam_port 8081
webcam_quality 60
webcam_motion on
webcam_maxrate 15
webcam_localhost off
webcam_limit 0