Recherche avancée

Médias (91)

Autres articles (42)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (7584)

  • 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;
                }
            }, '#btn_process');

        });
        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('style', 'width: ' + msg.d + '%;');
                    if (msg.d == "100") {
                        $('#pbar01').removeClass("progress-danger");
                        $('#pbar01').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.

  • Argument list too long error - ndk r8e

    2 juillet 2013, par Aditya Kumar Praharaj

    While compiling my ffmpeg library on Android , I get this "Argument list too long" error . It comes as soon as the ndk-build starts showing "libffmpeg.so" on the screen . Using Cygwin and ndk-r8e . I have tried this solution but to reach nowhere . Can somebody please tell me what is the error ?

  • Revision 7088426976 : Merge "Make fdct32 computation flow within 16bit range"

    18 juin 2013, par Jingning Han

    Changed Paths :
     Modify /vp9/common/vp9_rtcd_defs.sh


     Modify /vp9/encoder/vp9_encodeframe.c


     Modify /vp9/encoder/vp9_encodemb.c



    Merge "Make fdct32 computation flow within 16bit range"