src/GameOfLife/Outputs/Helpers/FfmpegHelper.php
/**
     * Executes the ffmpeg command.
     *
     * @param String $_outputPath The Ffmpeg output path
     *
     * @throws \Exception The exception when the ffmpeg command returns an error
     */
Executes the ffmpeg command.
@param String $_outputPath The Ffmpeg output path

@throws \Exception The exception when the ffmpeg command returns an error
Executes the ffmpeg command . @param String $_outputPath The Ffmpeg output path @throws \ Exception The exception when the ffmpeg command returns an error
public function executeCommand(String $_outputPath)
    {
        $error = $this->shellExecutor->executeCommand($this->generateCommand($_outputPath), true);
        if ($error)
        {
            try
            {
                $this->fileSystemWriter->deleteFile($_outputPath);
            }
            catch (\Exception $_exception)
            {
            }
            throw new \Exception("Ffmpeg returned the error code \"" . $error . "\".");
        }
    }
public function executeCommand ( String $ _outputPath ) { $ error = $ this -> shellExecutor -> executeCommand ( $ this -> generateCommand ( $ _outputPath ) , true ) ; if ( $ error ) { try { $ this -> fileSystemWriter -> deleteFile ( $ _outputPath ) ; } catch ( \ Exception $ _exception ) { } throw new \ Exception ( " Ffmpeg returned the error code  \" " . $ error . " \" . " ) ; } }
Executes the ffmpeg command.
Executes the ffmpeg command .
// Delete the damaged video file (if one was created) // Ignore the exception