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
Auto emailing/FTP'ing of images and mpegs
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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
so for instance modifiying it to
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
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}";
Code: Select all
my $command = ZM_PATH_BIN."/zmvideo.pl -s 0.5 -e $event->{Id}";
Phil