Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (80)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (8772)

  • Capture FFMPEG output

    2 mai 2017, par Andrew

    I need to read the output from ffmpeg in order to even try the solution to my question from yesterday. This is a separate issue from my problem there, so I made a new question.

    How the heck do I get the output from an ffmpeg -i command in PHP ?

    This is what I’ve been trying :

    <?PHP
       error_reporting(E_ALL);
       $src = "/var/videos/video1.wmv";
       $command = "/usr/bin/ffmpeg -i " . $src;
       echo "<b>",$command,"</b><br />";
       $command = escapeshellcmd($command);

       echo "backtick:<br /><pre>";
       `$command`;

       echo "</pre><br />system:<br /><pre>";
       echo system($command);

       echo "</pre><br />shell_exec:<br /><pre>";
       echo shell_exec($command);

       echo "</pre><br />passthru:<br /><pre>";
       passthru($command);

       echo "</pre><br />exec:<br /><pre>";
       $output = array();
       exec($command,$output,$status);
       foreach($output AS $o)
       {
               echo $o , "<br />";
       }
       echo "</pre><br />popen:<br /><pre>";
       $handle = popen($command,'r');
       echo fread($handle,1048576);
       pclose($handle);
       echo "</pre><br />";
    ?>

    This is my output :

    <b>/usr/bin/ffmpeg -i /var/videos/video1.wmv</b><br />
    backtick:<br />
       <pre></pre><br />
    system:<br />
       <pre></pre><br />
    shell_exec:<br />
       <pre></pre><br />
    passthru:<br />
       <pre></pre><br />
    exec:<br />
       <pre></pre><br />
    popen:<br />
       <pre></pre><br />

    I don’t get it. safe_mode is off. There’s nothing in disable_functions. The directory is owned by www-data (the apache user on my Ubuntu system). I get a valid status back from exec() and system() and running the same command from the command line give me tons of output. I feel like I must be missing something obvious but I have no idea what it is.

  • Capture FFMPEG output

    6 janvier 2024, par Andrew Ensley

    I need to read the output from ffmpeg in order to even try the solution to my question from yesterday. This is a separate issue from my problem there, so I made a new question.

    &#xA;&#xA;

    How the heck do I get the output from an ffmpeg -i command in PHP ?

    &#xA;&#xA;

    This is what I've been trying :

    &#xA;&#xA;

    &lt;?PHP&#xA;    error_reporting(E_ALL);&#xA;    $src = "/var/videos/video1.wmv";&#xA;    $command = "/usr/bin/ffmpeg -i " . $src;&#xA;    echo "<b>",$command,"</b><br />";&#xA;    $command = escapeshellcmd($command);&#xA;&#xA;    echo "backtick:<br /><pre>";&#xA;    `$command`;&#xA;&#xA;    echo "</pre><br />system:<br /><pre>";&#xA;    echo system($command);&#xA;&#xA;    echo "</pre><br />shell_exec:<br /><pre>";&#xA;    echo shell_exec($command);&#xA;&#xA;    echo "</pre><br />passthru:<br /><pre>";&#xA;    passthru($command);&#xA;&#xA;    echo "</pre><br />exec:<br /><pre>";&#xA;    $output = array();&#xA;    exec($command,$output,$status);&#xA;    foreach($output AS $o)&#xA;    {&#xA;            echo $o , "<br />";&#xA;    }&#xA;    echo "</pre><br />popen:<br /><pre>";&#xA;    $handle = popen($command,&#x27;r&#x27;);&#xA;    echo fread($handle,1048576);&#xA;    pclose($handle);&#xA;    echo "</pre><br />";&#xA;?>&#xA;

    &#xA;&#xA;

    This is my output :

    &#xA;&#xA;

    <b>/usr/bin/ffmpeg -i /var/videos/video1.wmv</b><br />&#xA;backtick:<br />&#xA;    <pre></pre><br />&#xA;system:<br />&#xA;    <pre></pre><br />&#xA;shell_exec:<br />&#xA;    <pre></pre><br />&#xA;passthru:<br />&#xA;    <pre></pre><br />&#xA;exec:<br />&#xA;    <pre></pre><br />&#xA;popen:<br />&#xA;    <pre></pre><br />&#xA;

    &#xA;&#xA;

    I don't get it. safe_mode is off. There's nothing in disable_functions. The directory is owned by www-data (the apache user on my Ubuntu system). I get a valid status back from exec() and system() and running the same command from the command line give me tons of output. I feel like I must be missing something obvious but I have no idea what it is.

    &#xA;

  • Get with ffmpeg first and last frame images

    3 mai 2023, par Broshward

    It is possible to get first and last frames with using ffmpeg and only one system call ?

    &#xA;

    If I know duration&#xA;ffmpeg -ss 00:00:00 -i input.mov -vf fps=1/duration -vframes 2 -q:v 1 -qmin 1 out%2d.jpg&#xA;is working but not right.&#xA;But I need second system call for recieving duration video.

    &#xA;