Recherche avancée

Médias (91)

Autres articles (56)

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

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (10123)

  • Simple example of using ffmpeg as a Python subprocess, and "checking in" on the conversion

    30 août 2012, par ensnare

    I'm looking to convert a large directory of movies from one format to another, and to check in on the status of the conversion. I'm programming in Python.

    Something like this :

    >> m = MovieGenerator()
    >> m.convertMovie('/path/to/movie/movie1.avi')
    >> print m.status
    >> 35 frames completed

    Is this possible (or recommended) ? Does anyone have a working example of how to use ffmpeg as a subprocess ?

    Once the conversion is happening, is there any way to "check in" on the status of the conversion (for example, how many frames have been completed ?)

  • Cutting and saving video in folder using ffmpeg

    10 novembre 2015, par Samiksha Singh
    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));
           string cmd = "-y -ss 00:00:00 -to 00:00:10 -i " + inputPath + "\\" + fileName + " -vcodec copy -acodec copy " + outputPath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".mp4";

           ConvertNow(cmd);


           return true;

    }

    private void ConvertNow(string cmd)
    {

       string exepath;

       string AppPath = Request.PhysicalApplicationPath;

       //Get the application path

       exepath = AppPath + "ffmpeg\\ffmpeg.exe";

       Process proc = new 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)
       //{

       //}

    }
  • avformat/hls : Check that filename is not "" in probe before checking its extension

    24 janvier 2016, par Michael Niedermayer
    avformat/hls : Check that filename is not "" in probe before checking its extension
    

    Possibly the check as a whole causes more problems than it helps, if so dont
    hesitate to remove it

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/hls.c