Page 1 of 1

Auto emailing/FTP'ing of images and mpegs

Posted: Tue Nov 01, 2005 3:20 pm
by ld999
Hi,

I have been experimenting with emailing and ftp'ing of events. I noticed that the mpegs can get quite large for emails, easily get to > 5 MB which lots of people block that size.

Has anyone changed the format of the videos so that they are smaller in size and therefor can be more easily emailed?

With ftp'ing of events, is there a config item to only ftp the mpegs and not the jpgs?

Is this the correct place to hack zmfilter.pl so that it only looks for mpeg not jpgs?

my $arch_image_path = $event->{MonitorId}/$event->{Id}/".((ZM_UPLOAD_ARCH_ANALYSE)?'{*analyse,*capture}':'*capture').".jpg";

KR
LD

Posted: Wed Nov 02, 2005 12:04 pm
by phaksp
if you find out. Let us know - because a big percentage of mta accept files with the average size of 5 mb

Posted: Wed Nov 02, 2005 5:27 pm
by zoneminder
Yes, that is the correct places to modify the search path to ignore jpgs. This area will be changing after the next release to more closely match the export options giving you more control over what gets uploaded.

If you want to make videos smaller then the easiest way is to scale them down. You can pass additional scaling option to zmvideo on this line in zmfilter.pl

Code: Select all

my $command = ZM_PATH_BIN."/zmvideo.pl -e $event->{Id}";
so for instance modifiying it to

Code: Select all

my $command = ZM_PATH_BIN."/zmvideo.pl -s 0.5 -e $event->{Id}";
will generate half size videos. You can modify the bit rates etc as well if you like but you will have to do that in zmvideo.pl and it will be global.

Phil

Posted: Thu Nov 03, 2005 2:20 pm
by ld999
Awesome, thank you!