R
R
ramiil2022-01-24 14:53:54
linux
ramiil, 2022-01-24 14:53:54

Can ffmpeg write timestamps to a separate file when there is motion in the video?

I am using ffmpeg on Linux to record rstp stream from cameras to hard drive in HLS for later viewing. The question is - is it possible to force ffmpeg to detect motion and write timecodes or another frame identifier, starting from which motion was detected, to a separate file?
For recording I use the following command:

ffmpeg -rtsp_transport tcp -i rtsp://USER:[email protected]:554/Streaming/Channels/101 -segment_list_size 0 -hls_list_size 0 -segment_time 10 -strftime 1 -hls_flags append_list -vf scale=w=iw/2:h=ih/2 -strftime 1 -hls_segment_filename /PATH/TO/FOLDER/X/NNNNNNNN/%s.ts /PATH/TO/FOLDER/X/NNNNNNNN/stream.m3u8


Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question