event info metadata on video when using passthrough

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
nirv199
Posts: 27
Joined: Wed May 13, 2015 11:55 am

event info metadata on video when using passthrough

Post 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
User avatar
iconnor
Posts: 2897
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: event info metadata on video when using passthrough

Post by iconnor »

I've thought about dumping the event db info to a .json file in the event dir...
nirv199
Posts: 27
Joined: Wed May 13, 2015 11:55 am

Re: event info metadata on video when using passthrough

Post 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.
smoothmission
Posts: 6
Joined: Sun Jan 14, 2024 5:10 pm

Re: event info metadata on video when using passthrough

Post 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.
Post Reply