src/GameOfLife/Outputs/Helpers/FfmpegHelper.php
/**
     * Generates a ffmpeg command that can be executed by using exec.
     *
     * @param String $_outputPath The Ffmpeg output path
     *
     * @return String The ffmpeg command
     */
Generates a ffmpeg command that can be executed by using exec.
@param String $_outputPath The Ffmpeg output path

@return String The ffmpeg command
Generates a ffmpeg command that can be executed by using exec . @param String $_outputPath The Ffmpeg output path @return String The ffmpeg command
public function generateCommand(String $_outputPath): String
    {
        $command = "";
        if (stristr($this->osName, "win")) $command .= "\"";
        $command .= $this->binaryPath;
        if (stristr($this->osName, "win")) $command .= "\"";
        foreach ($this->options as $option)
        {
            $command .= " " . $option;
        }
        $command .= " \"" . $_outputPath . "\"";
        return $command;
    }
public function generateCommand ( String $ _outputPath ) : String { $ command = " " ; if ( stristr ( $ this -> osName , " win " ) ) $ command .= " \" " ; $ command .= $ this -> binaryPath ; if ( stristr ( $ this -> osName , " win " ) ) $ command .= " \" " ; foreach ( $ this -> options as $ option ) { $ command .= " " . $ option ; } $ command .= " \" " . $ _outputPath . " \" " ; return $ command ; }
Generates a ffmpeg command that can be executed by using exec.
Generates a ffmpeg command that can be executed by using exec .