Generate mpg via filter; file naming convention

Support and queries relating to all previous versions of ZoneMinder
Locked
jnk1690
Posts: 30
Joined: Wed Jul 30, 2008 1:52 pm

Generate mpg via filter; file naming convention

Post by jnk1690 »

Hi,

I'm running a filter, via a cron job once per day, to generate mpg videos for all events that day, that are then copied to another server.

Is there a simple way to add the date/time of the event into the filename as the file is generated?

IE: "Event-nnnn-yyyymmdd-hhmmss.mpg" as the output file name?

Thanks,

Joel
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

It would need to be added in zmvideo.pl to have this ability. File name definition starts at around line 159.
I suspect you want the date and time to reference the date and time of the event?
jnk1690
Posts: 30
Joined: Wed Jul 30, 2008 1:52 pm

Post by jnk1690 »

That's exactly what I'd like. I'll take a look at the code and see if I can change it. Thanks for pointing out the approximate line#.

Thanks!

Joel
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I was looking at the wrong version of code. For 1.23.3 the name definition starts at line 171 and the final definition is on line 207.
jnk1690
Posts: 30
Joined: Wed Jul 30, 2008 1:52 pm

Post by jnk1690 »

Thanks again.

Now I just have to pickup the manual and learn a bit of SQL and perl syntax... :)

Joel
Locked