Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (88)

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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (11912)

  • 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

  • Flash media server invalid mp4

    19 décembre 2012, par Ben Ford

    I have an MP4 file that was ripped from a DVD containing chapters using handbrake.
    I've then used ffmpeg to convert that rip into seperate mp4 files for dynamic streaming with Adobe's Flash Media Server.

    I have used exactly the same ffmpeg parameters before and had no problem. However this time, I get output from ffmpeg :

    max_analyze_duration reached

    The resulting files won't stream from FMS. There's no error in the FMS logs or web console.
    Are there any known reasons that FMS wouldn't stream files like this ?

    Or does anyone know of any other diagnostic tool to analyze what's going on within FMS ?

    Thanks
    Ben

  • problem ffmpeg batch convert .mkv to .mp4 with subtiles on .mkv file [closed]

    9 décembre 2020, par damvelisa

    I am trying to batch convert a large number of .mkv video files to .mp4 while hard coding the subtitles included in the .mkv files. I would like to retain as much quality as possible.&#xA;is use this code but give error

    &#xA;

     for f in *.mkv; do ffmpeg -i "$f" -vf subtitles="${f%.mkv}" -acodec copy "${f%.mkv}.mp4"; done&#xA;

    &#xA;

    this error

    &#xA;