Advanced search

Medias (0)

Tag: - Tags -/formulaire

No media matches your criterion on the site.

Other articles (53)

  • Keeping control of your media in your hands

    13 April 2011, by

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Les images

    15 May 2013
  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 February 2011, by

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

On other websites (7695)

  • FFMPEG: How to not loose quality when increasing the volume of MP3 file?

    1 August 2021, by user7858768

    When increasing the volume of MP3 file (re-encoding the file to have higher volume) using the following command:

    


    ffmpeg -y -i /tmp/input.mp3 -af volume=2 -ab 48k /tmp/output.mp3


    


    When volume increase (volume=2) is below 2 (below 200%) the audio quality sounds clean. However, when the audio is increased past 2, example: volume=3 there are distortions that can be heard.

    


    The bitrate of the original file is 48k (hence I am setting it to 48k otherwise ffmpeg drops output bitrate to 32k)

    


    Are there any settings that can be set to avoid distortions from appearing when adjusted volume is at rate of 3 and above?

    


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

    26 October 2018, by 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 November 2015, by 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>