Auto emailing/FTP'ing of images and mpegs

Support and queries relating to all previous versions of ZoneMinder
Locked
ld999
Posts: 22
Joined: Mon Oct 24, 2005 12:44 pm

Auto emailing/FTP'ing of images and mpegs

Post 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
User avatar
phaksp
Posts: 30
Joined: Wed Oct 26, 2005 9:57 am
Contact:

Post by phaksp »

if you find out. Let us know - because a big percentage of mta accept files with the average size of 5 mb
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
ld999
Posts: 22
Joined: Mon Oct 24, 2005 12:44 pm

Post by ld999 »

Awesome, thank you!
Locked