Recherche avancée

Médias (91)

Autres articles (59)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (6651)

  • Revision 4b60d4a3e8 : Removing local set_speed_features() function. The function was called in two pl

    23 août 2014, par Dmitry Kovalev

    Changed Paths :
     Modify /vp9/encoder/vp9_encoder.c



    Removing local set_speed_features() function.

    The function was called in two places. In the first case it is replaced
    with vp9_set_speed_features() call. In the second case the body of
    set_speed_features() is inlined.

    Change-Id : If3fdf1b4168eee97677c224f69c245fe46c7f606

  • How to upload dynamically generated video thumbnails as a BLOB into MySQL database in PHP

    26 octobre 2018, par Parthapratim Neog

    Here is the code that has been used to create a thumbnail of a uploaded video. The thumbnail is automatically generated successfully, but now, I want to store that thumbnail as a BLOB in the Database.
    I know how to upload an image as a BLOB using form posts, but there is no form posts involved in this.

    Could someone guide me through this ?




    <form action="index.php" method="POST" enctype="multipart/form-data">
     <input type="file" />
     <input type="submit" value="Upload" />
    </form>
    &lt;?php
    if(isset($_POST['submit'])){
     /*
     -i input file name
     -an Disabled audio
     -ss Get image from x seconds in the video
     -s  size of the image
     */
     //Get one thumbnail from the video
     $ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
     //echo $ffmpeg;
     $videoFile = $_FILES["file"]["tmp_name"];
     $imageFile = "1.jpg";
     $size = "120x90";
     $getFromSecond = 5;

     //echo "<pre>"; print_r($_FILES); die;
     //echo "video location: ",$videoFile,"<br />";
     echo $cmd = "$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile";

     echo "<br />";
     if(!shell_exec($cmd)){
      echo "Thumbnail Created!";
     }else{
      echo "Error creating Thumbnail";
     }

     /*// Get multiple thumbnails from one video
     $ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
     $videoFile = $_FILES["file"]["tmp_name"];
     $size = "120x90";
     for($num =1; $num&lt;=3; $num++){
      $interval = $num * 3;
      shell_exec("$ffmpeg -i $videoFile -an -ss $interval -s $size $num.jpg");
      echo "Thumbnail Created!- $num.jpg<br />";
     }
     echo "<br />$num thumbnails Created!";
     */
    }
    ?>


    </pre>
  • How to upload dynamically generated video thumbnails as a BLOB into MySQL database in PHP

    26 novembre 2015, par Parthapratim Neog

    Here is the code that has been used to create a thumbnail of a uploaded video. The thumbnail is automatically generated successfully, but now, I want to store that thumbnail as a BLOB in the Database.
    I know how to upload an image as a BLOB using form posts, but there is no form posts involved in this.

    Could someone guide me through this ?




    <form action="index.php" method="POST" enctype="multipart/form-data">
     <input type="file" />
     <input type="submit" value="Upload" />
    </form>
    &lt;?php
    if(isset($_POST['submit'])){
     /*
     -i input file name
     -an Disabled audio
     -ss Get image from x seconds in the video
     -s  size of the image
     */
     //Get one thumbnail from the video
     $ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
     //echo $ffmpeg;
     $videoFile = $_FILES["file"]["tmp_name"];
     $imageFile = "1.jpg";
     $size = "120x90";
     $getFromSecond = 5;

     //echo "<pre>"; print_r($_FILES); die;
     //echo "video location: ",$videoFile,"<br />";
     echo $cmd = "$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile";

     echo "<br />";
     if(!shell_exec($cmd)){
      echo "Thumbnail Created!";
     }else{
      echo "Error creating Thumbnail";
     }

     /*// Get multiple thumbnails from one video
     $ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
     $videoFile = $_FILES["file"]["tmp_name"];
     $size = "120x90";
     for($num =1; $num&lt;=3; $num++){
      $interval = $num * 3;
      shell_exec("$ffmpeg -i $videoFile -an -ss $interval -s $size $num.jpg");
      echo "Thumbnail Created!- $num.jpg<br />";
     }
     echo "<br />$num thumbnails Created!";
     */
    }
    ?>


    </pre>