add debugging

This commit is contained in:
Isaac Connor 2017-05-05 17:53:03 -04:00
parent c33b8a8780
commit e45316dcd1
1 changed files with 3 additions and 1 deletions

View File

@ -1043,7 +1043,9 @@ function createVideo( $event, $format, $rate, $scale, $overwrite=false ) {
$command .= " -s ".sprintf( "%.2f", ($scale/SCALE_BASE) );
if ( $overwrite )
$command .= " -o";
$result = exec( escapeshellcmd( $command ), $output, $status );
$command = escapeshellcmd( $command );
$result = exec( $command, $output, $status );
Debug("generating Video $command: result($result outptu:(".implode("\n", $output )." status($status");
return( $status?"":rtrim($result) );
}