From 7dafbb5731030e5294097ee335ee88f3afff27ef Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 31 Mar 2006 15:34:39 +0000 Subject: [PATCH] Only output output if there is any git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1911 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmvideo.pl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/zmvideo.pl b/scripts/zmvideo.pl index 9acbc021a..57f9da501 100644 --- a/scripts/zmvideo.pl +++ b/scripts/zmvideo.pl @@ -275,8 +275,10 @@ if ( $overwrite || !-s $video_file ) my $command = ZM_PATH_MPEG_ENCODE." $param_file >mpeg_encode.log"; Info( $command."\n" ); - my $output = qx($command); - Info( $output."\n" ); + if ( my $output = qx($command) ) + { + Info( $output."\n" ); + } } elsif ( ZM_OPT_MPEG eq "ffmpeg" ) { @@ -314,8 +316,10 @@ if ( $overwrite || !-s $video_file ) my $command = ZM_PATH_FFMPEG." -y -r $frame_rate ".ZM_FFMPEG_INPUT_OPTIONS." -i %0".ZM_EVENT_IMAGE_DIGITS."d-capture.jpg -s $video_size ".ZM_FFMPEG_OUTPUT_OPTIONS." '$video_file' > ffmpeg.log"; Info( $command."\n" ); - my $output = qx($command); - Info( $output."\n" ); + if ( my $output = qx($command) ) + { + Info( $output."\n" ); + } } else {