Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (104)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (15124)

  • Révision 20717 : Report de r20703 : Amelioration de |print utilise pour afficher proprement n’imp...

    6 juillet 2013, par cedric -
    • On affiche in fine un pseudo-yaml qui premet de lire humainement les tableaux et de s’y reperer
      *
      * Les textes sont retournes avec simplement mise en forme typo
      *
      * le $join sert a separer les items d’un tableau, c’est en general un \n ou
      selon si on fait du html ou du texte
      * les tableaux-listes (qui n’ont que des cles numeriques), sont affiches sous forme de liste separee par des virgules :
      * c’est VOULU !
      *
      * @param $u
      * @param string $join
      * @param int $indent
      * @return array|mixed|string
      */
  • jpeg2000dwt : add float based 9/7 dwt

    28 mai 2013, par Michael Niedermayer
    jpeg2000dwt : add float based 9/7 dwt
    

    Untested as theres no code yet using it in the encoder.
    Code based on mixed float/int dwt

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/jpeg2000dwt.c
    • [DH] libavcodec/jpeg2000dwt.h
  • Get Proper Progress Updates on Two Long Waited Concurrent Processes in ASP.NET

    17 juillet 2012, par irfanmcsd

    I implemented background video processing using .net ffmpeg wrapper http://www.mediasoftpro.com with progress bar indication to calculate how much video is processed and send information to web page to update progress bar indicator. Its working fine if only single process works at a time, but in case of two concurrent processes (start two video publishing at once let say from two different computers), progress bar suddenly mixed progress status.
    Here is my code where i used static objects to properly send information of single instance to progress bar.

    static string FileName = "grey_03";
    protected void Page_Load(object sender, EventArgs e)
    {
       if (!Page.IsPostBack)
       {
           if (Request.Params["file"] != null)
           {
               FileName = Request.Params["file"].ToString();
           }
       }
    }
    public static double ProgressValue = 0;
    public static MediaHandler _mhandler = new MediaHandler();

    [WebMethod]
    public static string EncodeVideo()
    {
       // MediaHandler _mhandler = new MediaHandler();
       string RootPath = HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath);
       _mhandler.FFMPEGPath = HttpContext.Current.Server.MapPath("~\\ffmpeg_july_2012\\bin\\ffmpeg.exe");
       _mhandler.InputPath = RootPath + "\\contents\\original";
       _mhandler.OutputPath = RootPath + "\\contents\\mp4";
       _mhandler.BackgroundProcessing = true;
       _mhandler.FileName = "Grey.avi";
       _mhandler.OutputFileName =FileName;
       string presetpath = RootPath + "\\ffmpeg_july_2012\\presets\\libx264-ipod640.ffpreset";
       _mhandler.Parameters = " -b:a 192k -b:v 500k -fpre \"" + presetpath + "\"";
       _mhandler.OutputExtension = ".mp4";
       _mhandler.VCodec = "libx264";
       _mhandler.ACodec = "libvo_aacenc";
       _mhandler.Channel = 2;
       _mhandler.ProcessMedia();
       return _mhandler.vinfo.ErrorCode.ToString();
    }

    [WebMethod]
    public static string GetProgressStatus()
    {
       return Math.Round(_mhandler.vinfo.ProcessingCompleted, 2).ToString();
       // if vinfo.processingcomplete==100, then you can get complete information from vinfo object and store it in database and perform other processing.
    }

    Here is jquery functions responsible for updating progress bar indication after every second etc.

    $(function () {
            $("#vprocess").on({
                click: function (e) {
                    ProcessEncoding();
                    var IntervalID = setInterval(function () {
                        GetProgressValue(IntervalID);
                    }, 1000);
                    return false;
                }
            }, &#39;#btn_process&#39;);

        });
        function GetProgressValue(intervalid) {
            $.ajax({
                type: "POST",
                url: "concurrent_03.aspx/GetProgressStatus",
                data: "{}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (msg) {
                    // Do something interesting here.
                    $("#pstats").text(msg.d);
                    $("#pbar_int_01").attr(&#39;style&#39;, &#39;width: &#39; + msg.d + &#39;%;&#39;);
                    if (msg.d == "100") {
                        $(&#39;#pbar01&#39;).removeClass("progress-danger");
                        $(&#39;#pbar01&#39;).addClass("progress-success");
                        if (intervalid != 0) {
                            clearInterval(intervalid);
                        }
                        FetchInfo();
                    }
                }
            });
        }

    The problem arises due to static mediahandler object

    public static MediaHandler _mhandler = new MediaHandler();

    I need a way to keep two concurrent processes information separate from each other in order to update progress bar with value exactly belong to that process.