Описание

Я использую стандартный пакет motion 3.2.12 на Debian 75 (wheezy). Движения обнаруживаются, события срабатывают, и изображения сохраняются в правильной папке, как и ожидалось.

С другой стороны, движение не может записывать фильмы с ffmpeg из-за этой ошибки

[0] Processing thread 0 - config file /etc/motion/motion-1.0.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785
[0] Thread 1 is from /etc/motion/motion-1.0.conf
[1] Thread 1 started
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8092
[1] Resizing pre_capture buffer to 3 items
[1] avcodec_open - could not open codec: Operation now in progress
[1] ffopen_open error creating (new) file [/media/videos/log/events/movies/01-20140610184428.avi]: Operation now in progress
[1] File of type 1 saved to: /media/videos/log/events/2014-06-10/18/44-27_02.jpg
[1] File of type 1 saved to: /media/videos/log/events/2014-06-10/18/44-28_00.jpg
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] vid_close: calling netcam_cleanup
[1] netcam camera handler: finish set, exiting
[0] Motion thread 1 restart
[1] Thread 1 started
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8092
[1] Resizing pre_capture buffer to 3 items

мы видим, что avcodec не может быть открыт. Я нашел похожий пост здесь без убедительного ответа от команды Debian, так как проблема была решена пользователем с нуля / установкой.

Но проблема все еще здесь

Примечание. Я использую ffmpeg 24/24 для архивации видеопотоков и без проблем конвертирую их в несколько форматов веб-вывода. Работает нормально.

Мне интересно, доступна ли эта функция в движении из-за многочисленных сообщений, которые я нашел в соответствии с этой "ошибкой"?"

Есть идеи, чтобы решить это?

Среда

мой файл /etc/motion/motion.conf

# Locations
#-----------
process_id_file /var/run/pid
target_dir /media/videos/log/events
movie_filename movies/%v-%Y%m%d%H%M%S
jpeg_filename %Y-%m-%d/%H/%M-%S_%q

# IP camera settings
#-------------------
netcam_url http://webcam/snapshot.cgi
netcam_tolerant_check on
netcam_userpass account:password
output_all off

# Detection settings
#-------------------
area_detect 789 # image detection areas
threshold 11000 # 1 - 2147483647 (1500)
minimum_motion_frames 3 # 1-1000 (1)
gap 30


# Output settings
#----------------
text_right "FRONT CAMERA %Y/%m/%d - %T"
text_double on
quality 90 # 1-100 (75)
framerate 3 # 2-100 (100) maximum frame rate  to be captured when motion is detected
locate on # surrounds the moving object on the output picture

# Movie
#------
ffmpeg_cap_new on
ffmpeg_cap_motion off
ffmpeg_video_codec mpeg4
output_motion off


# Webcam server
# -------------
webcam_localhost off
webcam_port 8092
webcam_limit 5
webcam_quality 100 # 1-100 (50) # publish with max quality 
webcam_maxrate 100 # 1-100 (1)

# Remote command server : interacts with Http API's 
#----------------------
control_port 8080
control_localhost off
control_authentication jeby6372:alpha1237

0