Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motion don´t start video recording after taking snapshot on_event_start #1836

Open
sydspost opened this issue Jan 5, 2025 · 0 comments
Open
Labels

Comments

@sydspost
Copy link

sydspost commented Jan 5, 2025

Did you read the guide?

Yes

What is the base version number of Motion being used?

4.3.x

What was the install method?

Installed via package tool

What is base architecture?

ARM-32bit

What is the distro being used?

Raspbian

Disto version number

11 bullseye

Camera type(s) being used?

Network camera with RTSP

Describe the issue/problem and steps to reproduce

I want motion to take a snapshot on start of an event, and simultaneously start recording a video. The snapshot is made, but motion doesn´t start recording.

Motion log output at log_level 8

Config file of camera:

# /etc/motion/camera_oprit.conf
#
# This config file was generated by motion 4.6.0

###########################################################
# Configuration options specific to camera Oprit
############################################################
# User defined name for the camera.
camera_name Camera Oprit

# Numeric identifier for the camera.
camera_id 101

# The full URL of the network camera stream.
netcam_url rtsp://beveiligingscamera-oprit.sydspost.nl:8554/mjpeg/1
#netcam_url http://beveiligingscamera-oprit.sydspost.nl:81/stream

# Image width in pixels.
width 480

# Image height in pixels.
height 320

# Text to be overlayed in the lower left corner of images
text_left Camera Oprit

# File name(without extension) for movies relative to target directory
movie_filename CAMOprit_%t-%v-%Y%m%d%H%M%S

############################################################
# Script execution configuration parameters
############################################################

# Command to be executed when an event starts.
on_event_start /usr/bin/curl -s -o /dev/null http://printserver.sydspost.nl:8080/101/action/snapshot

# Command to be executed when an event ends.
# on_event_end /etc/motion/scripts/camera-oprit.sh %f

# Command to be executed when a movie file is closed.
on_movie_end /etc/motion/scripts/camera-oprit.sh %f

Log snippet:
[3:nc3:Camera Opri] [NTC] [NET] [Jan 05 00:07:40] netcam_rtsp_connect: Normal resolution: Camera (Camera Oprit) connected
[1:ml1:Camera Opri] [NTC] [ALL] [Jan 05 09:25:08] motion_detected: Motion detected - starting event 1
[1:ml1:Camera Opri] [NTC] [EVT] [Jan 05 09:25:08] event_newfile: File of type 2 saved to: /var/lib/motion/01-20250105092508-snapshot.jpg
[1:ml1:Camera Opri] [NTC] [ALL] [Jan 05 09:26:08] mlp_actions: End of event 1
@sydspost sydspost added the bug label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant