Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (58)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (10893)

  • avformat/dashdec : Check whitelist

    15 janvier, par Michael Niedermayer
    avformat/dashdec : Check whitelist
    

    Fixes : CVE-2023-6602, V. DASH Playlist SSRF

    Found-by : Harvey Phillips of Amazon Element55 (element55)
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/dashdec.c
  • ffmpeg+php Add Music to video

    19 septembre 2013, par user2792392

    Dear Sir i create this code for simple video convert from one to another.
    i want to add more feature like
    ffmpeg+php Add Music to video

    how to do it ??
    convert request to begin encoding the video, and status request that retrieves
    * the current encoding status so the progress bar can be updated.
    *
    * The $outfile variable should be changed to an input value, but is set this way
    * for now for testing purposes.
    *
    * @ver 0.1
    */
    require 'config.php' ;
    require 'functions.php' ;

    //&lt;&lt;-- CHECK FOR ERRORS -->>//
    $type       = _chkVal(&#39;type&#39;, &#39;&#39;);
    $fkey       = _chkVal(&#39;fkey&#39;, &#39;&#39;);
    $infile     = _chkVal(&#39;filename&#39;, &#39;&#39;);
    $outfile    = &#39;testing.mp4&#39;;
    $params     = _chkVal(&#39;params&#39;, &#39;&#39;);

    // Check Request Type
    $validTypes = array(&#39;convert&#39;, &#39;status&#39;);

    if( !in_array($type, $validTypes) )
       json_response(array(&#39;fkey&#39; => $fkey, &#39;msg&#39; => &#39;Invalid process type!&#39;), true);

    // $fkey will always be 8 characters.
    // It&#39;s created with PHP&#39;s hash() function using &#39;crc32&#39; algorithm in index.php
    if( strlen($fkey) != 8 )
       json_response(array_merge(array(&#39;fkey&#39; => &#39;&#39;, &#39;msg&#39; => &#39;Invalid fkey given!&#39;)), true);

    // Filename should be at least 5 (1 character + 4 character extension. EX : i.mp4)
    if( $type == &#39;convert&#39; &amp;&amp; ( strlen($infile) &lt; 5) )
       json_response(array(&#39;fkey&#39; => $fkey, &#39;msg&#39; => &#39;Invalid input filename given!&#39;), true);

    // Filename should be at least 5 (1 character + 4 character extension. EX : i.mp4)
    if( $type == &#39;convert&#39; &amp;&amp; ( strlen($outfile) &lt; 5) )
       json_response(array(&#39;fkey&#39; => $fkey, &#39;msg&#39; => &#39;Invalid output filename given!&#39;), true);

    if( $type == &#39;convert&#39; &amp;&amp; (strlen($params) &lt; 1) )
       json_response(array(&#39;fkey&#39; => $fkey, &#39;msg&#39; => &#39;Invalid parameters given!&#39;), true);

    //&lt;&lt;-- END OF ERROR CHECK -->>//


    $ffmpegConvert = new ffmpegConvert($fkey);


    //&lt;&lt;-- PROCESS REQUEST -->>//

    // Start the video conversion
    if( $type == &#39;convert&#39; )
    {
       $ffmpegConvert->exec( $infile, $outfile, $params, $fkey );
       // Add 2 second delay to give the server time to start writing the status log,
       // otherwise $ffmpegConvert->jsonStatus() will trigger an error...
       sleep(2);
       $ffmpegConvert->jsonStatus();
    }

    // Check on video conversion progress
    if( $_POST[&#39;type&#39;] == &#39;status&#39; )
    {
       $ffmpegConvert->jsonStatus();
    }

    //&lt;&lt;-- END OF PROCESS REQUEST -->>//

    // Shouldn&#39;t get to this, but if so, let&#39;s send a message for debugging reasons....
    json_response(array(&#39;msg&#39; => &#39;Unhandled request type!&#39;), true);
  • C# app - running FFMpeg from the command line is not working

    11 avril 2017, par Dan Kahn

    I’m trying to run FFMpeg from the Command Line in C#. Previously I was running it from "CMD.exe" and it was working, but that requires a local installation of ffmpeg with configuring my System environmental variables. So I wanted to run it directly from "ffmpeg.exe". I’m using the following code (all the paths are correct), and nothing happens :

    string programToRun = "C:\\Users\\dkahn\\Documents\\PlaybackTool\\PlaybackTool\\Desktop\\Source\\Player\\Player\\ffmpeg\\ffmpeg.exe";

    string directoryName = "C:\\Users\\dkahn\\Documents\\PlaybackTool\\PlaybackTool\\Desktop\\Source\\Player\\test\\test1-1.mp4";

    string command = "@ffmpeg -i test1-1.mp4 -r 1  -s 180x101 test1-1\\output_%04d.png";

    Process cmd = new Process();
    cmd.StartInfo.FileName = programToRun;
    cmd.StartInfo.RedirectStandardInput = true;
    cmd.StartInfo.RedirectStandardOutput = true;
    cmd.StartInfo.CreateNoWindow = true;
    cmd.StartInfo.UseShellExecute = false;
    cmd.StartInfo.WorkingDirectory = directoryName;
    cmd.Start();
    cmd.StandardInput.WriteLine(command);
    cmd.StandardInput.Flush();
    cmd.StandardInput.Close();
    cmd.WaitForExit();

    Does anybody have any insight ?