Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (71)

  • 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 ;

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (6798)

  • Simplest way to convert uploaded videos to mp4 before storing them on a server ?

    26 juin 2017, par ioan

    I’m using a goDaddy server and cPanel to make a website, and I want to make a feature that lets users upload videos, save them on the server, then display them elsewhere on the site.

    displaying uploaded videos :

    echo "<video controls="controls"><source src="{$video_row[$i]}"></source></video>";

    But I found out that most browsers can only play a few video formats like mp4. So I want to convert them all to mp4 before saving them to the server. So sometime before running the move_uploaded_file() function.

    Is there something I can download and put on the server that will let me do that ? From other questions I found about FFmpeg, but i couldn’t figure out how to use it and if I can even install it on a godaddy server.

    Php code :

    if (isset($_FILES["submit_file"])) { //this comes from an html form
       $name = $_FILES['submit_file']['name'];
       $original_name = $name;
       $size = $_FILES['submit_file']['size'];
       $tmp_name = $_FILES['submit_file']['tmp_name'];
       $target_dir = null;

       $finfo = finfo_open(FILEINFO_MIME_TYPE); //get mime type
       $mime = finfo_file($finfo, $tmp_name);

       if ($mime == "video/mp4" || $mime == "video/wmv" || $mime == "video/avi" || $mime == "video/mov") {
           if ($mime != "video/mp4") {
               //CONVERT TO MP4
           }
           $target_dir = "uploads/videos/";
           $path = $target_dir.basename($name);

           if (move_uploaded_file($tmp_name, $path) == true) {
               //moved
           }
       } else {
           //error: Unsupported File Type
       }
    }

    How do others deal with videos ? I was able to upload and play mp4 videos fine with my method, but html5 can’t seem to play other types, and I don’t want to limit users to only upload mp4

  • How to join two videos into one stream using ffmpeg

    12 janvier 2016, par Andrey Prokhorenko

    I am new to ffmpeg, and I try to join two videos and get a video stream. I found a command :

    ffmpeg -i input0.avi -vf "movie=input1.avi [in1]; [in]pad=640*2:352[in0]; [in0][in1] overlay=640:0 [out]" out.avi

    but at the end we get a file "out.avi" and I need a video stream. Is there any way to achieve this ?

  • Splitting videos slowly using FFMpeg in android

    13 mai 2017, par Krish

    Hi i am using FFMpeg below command1 for splitting video files in android,I am facing problem here when i upload more than 40Mb file taking too long time for splitting the files

    Using command2 videos are splitting very fastly but splitting files size count more than main file size

    Is there no way for splitting videos fastly with not increasing splitting videos count size compare to main file,Can some one help me please.

    Command1 :-

           String[] cmd = {"-ss", "" + "0", "-y", "-i", "inputFile", "-t", "" + "5", "-s",
                   "width" + "x" +
                           "height", "-vcodec", "mpeg4", "-b:v",
                   "2097152", "-b:a", "48000", "-ac", "2", "-ar", "22050", Environment.getExternalStorageDirectory() +
                   "/FFMpeg" + "/" + outPutFile + "" + indexValue + "" + "." + "mp4"};

    Command2 :-

           String cmd[] = new String[]{"-i","inputfile", "-ss", "" + start, "-c", "copy", "-t", "" +
                   end, "-acodec", "copy", "-vcodec", "copy",
                   Environment.getExternalStorageDirectory() +
                           "outPutFile.mp4"};