What settings need tweaking such that emails are sent with mpeg video files rather than avi?
Whilst I am all good with every other part of the email system, everything else seems fine, I can see view the avi file in my Thunderbird email client on Linux, I can't view the avi file on my iPhone.
[Solved]Email notification include mpeg video rather than avi
[Solved]Email notification include mpeg video rather than avi
Last edited by lyallp on Fri Oct 29, 2021 7:22 am, edited 1 time in total.
...Lyall
Re: Email notification include mpeg video rather than avi
Ok, I have found the settings to change from avi to mpg (not mpeg, as my browser thinks it's audio)
Options -> Images -> FFMPEG_FORMATS = mpg* mpeg wmv asf avi mov** swf 3gp
Also, the message that is sent, I found a few of the %XXX% fields don't work.
(I copied/pasted the entire list from the doco and then tweaked it into a HTML table)
The following 'fields' seem to generate no data, when the email is generated by my filter.
Options -> Images -> FFMPEG_FORMATS = mpg* mpeg wmv asf avi mov** swf 3gp
Also, the message that is sent, I found a few of the %XXX% fields don't work.
(I copied/pasted the entire list from the doco and then tweaked it into a HTML table)
The following 'fields' seem to generate no data, when the email is generated by my filter.
- Total number of events for the monitor (%MET%)
Number of events: hour, day, week, month (%MEH%, %MED%, %MEW%, %MEM%)
Code: Select all
<!DOCTYPE html>
<html>
<head>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
<h2>Zoneminder detected motion in the back yard.</h2>
Check out <a href="http://lyalls-pc.at.the-pearces.com/zm">ZoneMinder</a>
</head>
<body>
<table style="width:90%">
<tr>
<th>Item</th>
<th>Value</th>
</tr>
<tr><td>Event description </td><td>%ED% </td></tr>
<tr><td>Time of the event </td><td>%ET% </td></tr>
<tr><td><a href="%EP%" >Event</a> </td><td> </td></tr>
<tr><td><a href="%EPI1%">First alarmed event image</a> </td><td></td></tr>
<tr><td><a href="%EPIM%">(first) Event image with the highest score</a></td><td></td></tr>
<tr><td>Id of the event </td><td>%EI% </td></tr>
<tr><td>Name of the event </td><td>%EN% </td></tr>
<tr><td>Cause of the event </td><td>%EC% </td></tr>
<tr><td>Length of the event </td><td>%EL% </td></tr>
<tr><td>Event : Frames, Alarm Frames </td><td>%EF%, %EFA% </td></tr>
<tr><td>Event Score: Total, Average and Maximum </td><td>%EST%, %ESA%, %ESM% </td></tr>
<tr><td>Name of the monitor </td><td>%MN% </td></tr>
<tr><td>Total number of events for the monitor </td><td>%MET%</td></tr>
<tr><td>Number of events: hour, day, week, month </td><td>%MEH%, %MED%, %MEW%, %MEM% </td></tr>
<tr><td><a href="%MP%" >Monitor window</a> </td><td></td></tr>
<tr><td>Name of the Current Filter </td><td>%FN% </td></tr>
<tr><td><a href="%FP%">Filter that matched</a> </td><td></td></tr>
<tr><td><a href="%ZP%">ZoneMinder console</a> </td><td></td></tr>
<tr><td>First alarmed event image <b>attached</b> </td><td>%EI1%</td></tr>
<tr><td>Image with the highest score <b>attached</b> </td><td>%EIM%</td></tr>
<tr><td>Event mpeg video <b>attached</b> </td><td>%EV% </td></tr>
</table>
</body>
</html>
...Lyall
Re: Email notification include mpeg video rather than avi
Thanks for noticing and reporting! Fixed in master, will be in 1.36.11.
Re: Email notification include mpeg video rather than avi
Found correct settings for iPhone to view video as an email attachment.
Options -> Images -> FFMPEG_FORMATS = m4v* mpeg wmv asf avi mov** swf 3gp
Given ffmpeg is awesome and knows just about every media file suffix there is, I thought I would try m4v, and it works, for my iPhone and for my linux system.
Options -> Images -> FFMPEG_FORMATS = m4v* mpeg wmv asf avi mov** swf 3gp
Given ffmpeg is awesome and knows just about every media file suffix there is, I thought I would try m4v, and it works, for my iPhone and for my linux system.
...Lyall