Page 1 of 1

Generate mpg via filter; file naming convention

Posted: Tue Nov 04, 2008 4:57 pm
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

Posted: Wed Nov 05, 2008 12:18 am
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?

Posted: Thu Nov 06, 2008 2:20 pm
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

Posted: Thu Nov 06, 2008 8:26 pm
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.

Posted: Fri Nov 07, 2008 1:38 pm
by jnk1690
Thanks again.

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

Joel