當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Trace::vars方法代碼示例

本文整理匯總了PHP中Trace::vars方法的典型用法代碼示例。如果您正苦於以下問題:PHP Trace::vars方法的具體用法?PHP Trace::vars怎麽用?PHP Trace::vars使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Trace的用法示例。


在下文中一共展示了Trace::vars方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: FfmpegParser

namespace PHPVideoToolkit;

include_once './includes/bootstrap.php';
$ffmpeg = new FfmpegParser();
$is_available = $ffmpeg->isAvailable();
Trace::vars('$ffmpeg->isAvailable()', $is_available);
$ffmpeg_version = $ffmpeg->getVersion();
Trace::vars('$ffmpeg->getVersion()', $ffmpeg_version);
$has_ffmpeg_php_support = $ffmpeg->hasFfmpegPhpSupport();
Trace::vars('$ffmpeg->hasFfmpegPhpSupport()', $has_ffmpeg_php_support);
$basic_ffmpeg_information = $ffmpeg->getFfmpegData();
Trace::vars('$ffmpeg->getFfmpegData()', $basic_ffmpeg_information);
$basic_ffmpeg_information = $ffmpeg->getCommands();
Trace::vars('$ffmpeg->getCommands()', $basic_ffmpeg_information);
$ffmpeg_formats = $ffmpeg->getFormats();
Trace::vars('$ffmpeg->getFormats()', $ffmpeg_formats);
$ffmpeg_audio_codecs = $ffmpeg->getCodecs('audio');
Trace::vars('$ffmpeg->getCodecs(\'audio\')', $ffmpeg_audio_codecs);
$ffmpeg_video_codecs = $ffmpeg->getCodecs('video');
Trace::vars('$ffmpeg->getCodecs(\'video\')', $ffmpeg_video_codecs);
$ffmpeg_subtitle_codecs = $ffmpeg->getCodecs('subtitle');
Trace::vars('$ffmpeg->getCodecs(\'subtitle\')', $ffmpeg_subtitle_codecs);
$ffmpeg_bitstream_filters = $ffmpeg->getBitstreamFilters();
Trace::vars('$ffmpeg->getBitstreamFilters()', $ffmpeg_bitstream_filters);
$ffmpeg_filters = $ffmpeg->getFilters();
Trace::vars('$ffmpeg->getFilters()', $ffmpeg_filters);
$ffmpeg_protocols = $ffmpeg->getProtocols();
Trace::vars('$ffmpeg->getProtocols()', $ffmpeg_protocols);
$ffmpeg_pixel_formats = $ffmpeg->getPixelFormats();
Trace::vars('$ffmpeg->getPixelFormats()', $ffmpeg_pixel_formats);
開發者ID:kunitwru,項目名稱:phpvideotoolkit-v2,代碼行數:30,代碼來源:extract-information-from-ffmpeg.php

示例2: Video

    $multi_output->addOutput($aac_output, $format);
    $video = new Video($example_video_path);
    $process = $video->saveNonBlocking($multi_output, null, Video::OVERWRITE_EXISTING);
    $id = $video->getPortableId();
    $_SESSION['process_id_multiple'] = $id;
    echo '<h1>Process ID</h1>';
    Trace::vars($id);
    echo '<h1>Executed Command</h1>';
    Trace::vars($process->getExecutedCommand());
    echo '<meta http-equiv="refresh" content="1; url=?' . time() . '">';
    exit;
} catch (FfmpegProcessOutputException $e) {
    echo '<h1>Error</h1>';
    Trace::vars($e);
    $process = $video->getProcess();
    if ($process->isCompleted()) {
        echo '<hr /><h2>Executed Command</h2>';
        Trace::vars($process->getExecutedCommand());
        echo '<hr /><h2>FFmpeg Process Messages</h2>';
        Trace::vars($process->getMessages());
        echo '<hr /><h2>Buffer Output</h2>';
        Trace::vars($process->getBuffer(true));
    }
    echo '<a href="?reset=1">Reset Process</a>';
} catch (Exception $e) {
    echo '<h1>Error</h1>';
    Trace::vars($e->getMessage());
    echo '<h2>Exception</h2>';
    Trace::vars($e);
    echo '<a href="?reset=1">Reset Process</a>';
}
開發者ID:kunitwru,項目名稱:phpvideotoolkit-v2,代碼行數:31,代碼來源:convert-to-multiple-output-progress-handler-portability.php

示例3: array

    $paths = array();
    foreach ($output as $obj) {
        array_push($paths, $obj->getMediaPath());
    }
    Trace::vars($paths);
} catch (FfmpegProcessOutputException $e) {
    echo '<h1>Error</h1>';
    Trace::vars($e);
    $process = $video->getProcess();
    if ($process->isCompleted()) {
        echo '<hr /><h2>Executed Command</h2>';
        Trace::vars($process->getExecutedCommand());
        echo '<h1>Executed Command RAW</h1>';
        Trace::vars($process->getExecutedCommand(true));
        echo '<hr /><h2>FFmpeg Process Messages</h2>';
        Trace::vars($process->getMessages());
        echo '<hr /><h2>Buffer Output</h2>';
        Trace::vars($process->getBuffer(true));
    }
} catch (Exception $e) {
    echo '<h1>Error</h1>';
    Trace::vars($e->getMessage());
    echo '<h2>Exception</h2>';
    Trace::vars($e);
    if ($process) {
        echo '<hr /><h2>Executed Command</h2>';
        Trace::vars($process->getExecutedCommand());
        echo '<h1>Executed Command RAW</h1>';
        Trace::vars($process->getExecutedCommand(true));
    }
}
開發者ID:kunitwru,項目名稱:phpvideotoolkit-v2,代碼行數:31,代碼來源:convert-to-multiple-outputs.php


注:本文中的Trace::vars方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。