Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (66)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (12046)

  • Révision 68057 : Spéciale pour l’anniv de @jennifer29 :

    1er décembre 2012, par marcimat@rezo.net

    SVP permet maintenant (via pour le moment une constante SVP_PREFERER_TELECHARGEMENT_PAR_VCS à définir à TRUE) de télécharger les plugins dans auto via les VCS (svn, git) s’ils sont définis et que les commandes sont présentes. Les mises à jour se font aussi via les (...)

  • FFMPEG Covert HTML 5 Video NOT Working

    27 octobre 2012, par Brad

    I am using FFMPEG to convert a video to .mp4, ,ogg, .webm so that it may be viewed in all HTML5 capable browsers using the video tag. The problem is that I manage to convert the video to the 3 required formats but it does not display the video in the video tag, all I get is IE9 : red cross, Firefox : Grey cross, could it be a problem with the conversion or is it something to do with the way I am adding them to the source of the video tag. Here is what I have done :

    1. FFmpeg command line(s) :

      ffmpeg -i test.mp4 test.mp4
      ffmpeg -i test.mp4 test.ogg
      ffmpeg -i test.mp4 test.webm
    2. Here is the video tag :

      <video height="340" width="470" preload="true" autobuffer="true" controls="true">
         <source src="test.ogg" type="video/ogg"></source>
         <source src="test.mp4" type="video/mp4"></source>
      </video>
    3. Webconfig lines for the video support :

      <staticcontent>
         <mimemap fileextension=".mp4" mimetype="video/mp4"></mimemap>
         <mimemap fileextension=".ogg" mimetype="audio/ogg"></mimemap>
         <mimemap fileextension=".oga" mimetype="audio/ogg"></mimemap>
         <mimemap fileextension=".ogv" mimetype="video/ogg"></mimemap>
         <mimemap fileextension=".webm" mimetype="video/webm"></mimemap>
      </staticcontent>

    It would be great if someone could send me the required parameters for ffmpeg to convert the video to the 3 required formats and an example of how they setting the source in the video tag to display them again. And any other advise would be great like how to set the quality up etc when doing the conversion.

    Thanks in advance.

  • ffmpeg creates empty flv files

    8 janvier 2012, par user1136924

    I'm trying to build avi to flv converter with c#.
    i'm using this code below (taken from here) but it produces empty flv files.
    please help figure this this out.

    on an button click the program takes the uploaded file from the upload box and creates a new flv file from it.

    thanks !

    protected void btn_Submit_Click(object sender, EventArgs e)
    {
       ReturnVideo(this.fileuploadImageVideo.FileName);
    }
    private bool ReturnVideo(string fileName)
    {
       string html = string.Empty;
       //rename if file already exists

       int j = 0;
       string AppPath;
       string inputPath;
       string outputPath;
       string imgpath;
       AppPath = Request.PhysicalApplicationPath;
       //Get the application path
       inputPath = AppPath + "OriginalVideo";
       //Path of the original file
       outputPath = AppPath + "ConvertVideo";
       //Path of the converted file
       imgpath = AppPath + "Thumbs";
       //Path of the preview file
       string filepath = Server.MapPath("~/OriginalVideo/" + fileName);
       while (File.Exists(filepath))
       {
           j = j + 1;
           int dotPos = fileName.LastIndexOf(".");
           string namewithoutext = fileName.Substring(0, dotPos);
           string ext = fileName.Substring(dotPos + 1);
           fileName = namewithoutext + j + "." + ext;
           filepath = Server.MapPath("~/OriginalVideo/" + fileName);
       }
       try
       {
           this.fileuploadImageVideo.SaveAs(filepath);
       }
       catch
       {
           return false;
       }
       string outPutFile;
       outPutFile = "~/OriginalVideo/" + fileName;
       int i = this.fileuploadImageVideo.PostedFile.ContentLength;
       System.IO.FileInfo a = new System.IO.FileInfo(Server.MapPath(outPutFile));
       while (a.Exists == false)
       {

       }
       long b = a.Length;
       while (i != b)
       {

       }


       string cmd = " -i \"" + inputPath + "\\" + fileName + "\" \"" + outputPath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".flv" + "\"";
       ConvertNow(cmd);
      string imgargs = " -i \"" + outputPath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".flv" + "\" -f image2 -ss 1 -vframes 1 -s 280x200 -an \"" + imgpath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".jpg" + "\"";
      ConvertNow(imgargs);


       return true;
    }
    private void ConvertNow(string cmd)
    {
       string exepath;
       string AppPath = Request.PhysicalApplicationPath;
       //Get the application path
       exepath = AppPath + "ffmpeg.exe";
       System.Diagnostics.Process proc = new System.Diagnostics.Process();
       proc.StartInfo.FileName = exepath;
       //Path of exe that will be executed, only for "filebuffer" it will be "flvtool2.exe"
       proc.StartInfo.Arguments = cmd;
       //The command which will be executed
       proc.StartInfo.UseShellExecute = false;
       proc.StartInfo.CreateNoWindow = true;
       proc.StartInfo.RedirectStandardOutput = false;
       proc.Start();

       while (proc.HasExited == false)
       {

       }
    }