Skip to content

Commit

Permalink
Merge pull request ZoneMinder#1557 from ZoneMinder/fix_zmvideo
Browse files Browse the repository at this point in the history
restore the behaviour where the generated file names are printed to stdout
  • Loading branch information
Andrew Bauer authored Jul 12, 2016
2 parents 477c023 + 85c0377 commit 59cc952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/zmfilter.pl.in
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ sub generateVideo
or Fatal( "Can't execute '$sql': ".$sth->errstr() );
if ( wantarray() )
{
return( $format, sprintf( "%s/%s", getEventPath( $event ), $output ) );
return( $format, $output );
}
}
return( 1 );
Expand Down
6 changes: 2 additions & 4 deletions scripts/zmvideo.pl.in
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ foreach my $event_id ( @event_ids ) {
my $video_file = $Event->GenerateVideo( $rate, $fps, $scale, $size, $overwrite, $format );
if ( $video_file ) {
push @video_files, $video_file;
print( STDOUT $video_file."\n" );
}
} # end foreach event_id

Expand Down Expand Up @@ -253,9 +254,6 @@ if ( $concat_name ) {
Error( "Unable to generate video, check /ffmpeg.log for details");
exit(-1);
}

print( STDOUT $video_file."\n" );
}
#unlink $input_file_list;
#print( STDOUT $event->{MonitorId}.'/'.$event->{Id}.'/'.$video_file."\n" );
#print( STDOUT $video_file."\n" );
exit( 0 );

0 comments on commit 59cc952

Please sign in to comment.