Fixed video generation config.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@281 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
3a7648b66f
commit
d5e3328970
|
@ -1396,7 +1396,7 @@ Learn Pref: <select name="learn_state" class="form" onChange="learn_form.su
|
|||
<?php } else { ?>
|
||||
<td align="center" class="text"> </td>
|
||||
<?php } ?>
|
||||
<?php if ( ZM_PATH_MPEG_ENCODE && file_exists( ZM_PATH_MPEG_ENCODE ) ) { ?>
|
||||
<?php if ( ZM_OPT_MPEG && file_exists( ZM_PATH_MPEG_ENCODE ) ) { ?>
|
||||
<td align="center" class="text"><a href="javascript: newWindow( '<?php echo $PHP_SELF ?>?view=video&eid=<?php echo $eid ?>', 'zmVideo', <?php echo $jws['video']['w'] ?>, <?php echo $jws['video']['h'] ?> );">Video</a></td>
|
||||
<?php } else { ?>
|
||||
<td align="center" class="text"> </td>
|
||||
|
@ -1964,7 +1964,7 @@ function closeWindow()
|
|||
die( mysql_error() );
|
||||
$event = mysql_fetch_assoc( $result );
|
||||
|
||||
$event_dir = ZM_PATH_EVENTS."/$event[MonitorName]/".sprintf( "%04d", $eid );
|
||||
$event_dir = ZM_DIR_EVENTS."/$event[MonitorName]/".sprintf( "%04d", $eid );
|
||||
$param_file = $event_dir."/mpeg.param";
|
||||
$video_name = preg_replace( "/\\s/", "_", $event[Name] ).".mpeg";
|
||||
$video_file = $event_dir."/".$video_name;
|
||||
|
|
Loading…
Reference in New Issue