Page 1 of 1

event info metadata on video when using passthrough

Posted: Fri May 24, 2019 6:41 pm
by nirv199
When using "video writer" as "H264 Camera Passthrough" we (as expected) do not get the timestamp on top of the frames. Is there a way to get a TXT file or something describing when the event started/ended as well as any other relevant event metadata? I understand the video file is stored in a directory hierarchy describing the date and time, but still miss other info stored in simple text like the zones that triggered the alarm, plus alarm score etc. It would be nice to have a text file with all that info being stored together with the video.

Thanks

Re: event info metadata on video when using passthrough

Posted: Sun May 26, 2019 2:03 am
by iconnor
I've thought about dumping the event db info to a .json file in the event dir...

Re: event info metadata on video when using passthrough

Posted: Wed May 29, 2019 11:22 am
by nirv199
That would be awesome Iconnor !
You did mention the event DB info - were you thinking about this as also another way to import (or move) events from one zoneminder install to another? You got me curious.

Re: event info metadata on video when using passthrough

Posted: Thu Jan 18, 2024 1:07 pm
by smoothmission
ffmpeg supports a metadata file for creating chapters, which then can be inserted in to a video: https://ffmpeg.org/ffmpeg-formats.html#Metadata-1
Where in the source code does zm write the passthrough file, or rather, when is the file closed? A loop through all the motion alerts, writing of the metadata file and then a ffmpeg pass would need to be done.

A bit simpler option would be if there was an external file for chapters, similar to .srt for subtitles, but I haven't found anything like it.