Recherche avancée

Médias (91)

Autres articles (82)

  • 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 (...)

  • 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 (...)

  • 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 (10743)

  • avformat/flvdec : Show unknown tags at debug level

    5 juin 2015, par Michael Niedermayer
    avformat/flvdec : Show unknown tags at debug level
    

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

    • [DH] libavformat/flvdec.c
  • How to show Images from a video as preview for playlist

    1er février 2017, par Guruprasad Rao

    You guys Have seen Youtube right. There while you are watching a video, You will also get related videos preview alongwith link. So how we can get it from video itself.. Is it possible to do so.. I am able to get the url from database and display it.. and when the link is clicked it will be played in a jquery player.. So before that a preview of that or you can say playlist of that will be available for user.

    I have updated my code with a link I found.. But still I am not able to get the Image from Video.. Is there anything wrong in my code.. Please correct me if I am wrong..

    Below is my front end code :

    <form runat="server">
       <div runat="server" style="height:100%;width:100%">
           <div>Latest Videos</div>

       </div>

       </form>

    and I am adding all my video links from backend on page load as shown below :

      try
       {
           con.Open();
           com = new SqlCommand("Select videourl, videoname from video order by [vid] desc",con);
           DbDataReader dr = com.ExecuteReader();
           DataTable dt = new DataTable();

           if (dr.HasRows)
           {

               int i = 0;
               dt.Load(dr);
               int rows = dt.Rows.Count;


               for (i = 0; i &lt; rows; i++)
               {
                   HtmlGenericControl d = new HtmlGenericControl("div");
                   HtmlGenericControl s = new HtmlGenericControl("span");
                   string[] link = new string[rows];
                   string[] name = new string[rows];                    

                   d.Attributes.Add("class", "plst");
                   s.Attributes.Add("class", "text");
                   link[i] = dt.Rows[i]["videourl"].ToString();
                   name[i] = dt.Rows[i]["videoname"].ToString();
                   string videothumb = link[i];
                   string svthto="**Path to save Image**";
                   string imgpath=GetVideoThumbnail(videothumb, svthto, 30);

                   sb.Append("<a i="i" href=" + " class=" + ">" + name[i] + "</a>");
                   s.InnerHtml = sb.ToString();
                   d.Controls.Add(s);
                   examples.Controls.Add(d);
                   sb.Clear();


               }
           }


       }
       catch(Exception ex)
       {
           ex.Message.ToString();
       }

    public string GetVideoThumbnail(string path, string saveThumbnailTo, int seconds)
    {
       string parameters = string.Format("-ss {0} -i {1} -f image2 -vframes 1 -y {2}", seconds, path, saveThumbnailTo);
       string pathToConvertor = "C:\\Program Files\\ffmpeg\\ffmpeg.exe";
       var processInfo = new ProcessStartInfo();
       processInfo.FileName = pathToConvertor;
       processInfo.Arguments = parameters;
       processInfo.CreateNoWindow = true;
       processInfo.UseShellExecute = false;

       File.Delete(saveThumbnailTo);

       using (var process = new Process())
       {
           process.StartInfo = processInfo;
           process.Start();
           process.WaitForExit();
       }

       if (File.Exists(saveThumbnailTo))
           return saveThumbnailTo;
       else
           return "File not Found";
    }

    and here is the image of what I am getting until now :
    Sample

    Please note : I am not concentrating on you tube videos. I am questioning regarding the videos which I store in server side folder. So if there is any jquery technique or any sort of technique to do this then please let me know. :)

  • avutil/timer : show histogram of cpu cycles each run took

    22 mars 2015, par Michael Niedermayer
    avutil/timer : show histogram of cpu cycles each run took
    

    The new information is printed at verbose log level and can thus be switched on and off
    through the log level

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

    • [DH] libavutil/timer.h