Esempio n. 1
0
    /**
     * Generates the MKVMerge command for a video file
     *
     * @param string $VideoFile
     * @return ezcMvcResult
     */
    public function doGenerateMergeCommand()
    {
        $result = new ezcMvcResult;
        $command = MKVMergeTVCommandGenerator::generate( $this->VideoFile );

        $result->variables['command'] = (string)$command->command;
        return $result;
    }
<?php
include 'lib/mkvmerge/command_generator.php';
include 'lib/mkvmerge/command.php';

$filename = 'How I Met Your Mother - 6x07 - Canning Randy.mkv';
$command = MKVMergeTVCommandGenerator::generate( $filename );

echo "Command:\n" . (string)$command->command;
?>