Alert timestamps metadata on video when using passthrough
Posted: Sun Jan 21, 2024 6:11 pm
In the web video player the navbar has red marks for when an alert was active. This feature is lost on passthrough video files.
Native video players such as mpv and vlc have support for chapters which could be utilized for this purpose.
Implementation idea
ffmpeg supports a simple metadata file for creating chapters, which then can be inserted in to a video.
https://ffmpeg.org/ffmpeg-formats.html#Metadata-1
I'd like to help make the feature but I need some pointers of where in the source relevant code is.
Where does zoneminder copy the video of an ended event to its final path?
Where is an example of how to loop through all the alert timestamps?
Native video players such as mpv and vlc have support for chapters which could be utilized for this purpose.
Implementation idea
ffmpeg supports a simple metadata file for creating chapters, which then can be inserted in to a video.
https://ffmpeg.org/ffmpeg-formats.html#Metadata-1
I'd like to help make the feature but I need some pointers of where in the source relevant code is.
Where does zoneminder copy the video of an ended event to its final path?
Where is an example of how to loop through all the alert timestamps?