Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (54)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    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 (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (6426)

  • matroskaenc : allow override of "writing application" tag

    3 mars 2014, par John Stebbins
    matroskaenc : allow override of "writing application" tag
    

    Signed-off-by : Tim Walker <tdskywalker@gmail.com>

    CC : libav-stable@libav.org

    • [DH] libavformat/matroskaenc.c
  • lavf : always use av_free

    10 mars 2014, par Michael Niedermayer
    lavf : always use av_free
    

    Signed-off-by : Tim Walker <tdskywalker@gmail.com>

    • [DBH] libavformat/hevc.c
  • Failed to load resource : the server responded with a status of 404 (Not Found)

    28 août 2013, par Kaushik

    This problem is quite unsolvable for me.. I have a Fileupload control and I upload only Video files. Then I use ffmpeg to obtain a frame [image] from that video to display it as a preview. But I am unable to load that image into Image control. The Image will be saving in the specified folder but not able to load it and gives the error which I mentioned in topic.

    This is my aspx code..

    <div class="transbox" runat="server">
               <fieldset style="width:50%; margin-left:300px">
               <legend style="color:white;font-family:&amp;#39;Palatino Linotype&amp;#39;">Upload Video Files</legend>
                   
                   
                   
               </fieldset>

           
               <div class="head" runat="server"><label>Write Description</label>
                   
               </div>
               <div runat="server" style="margin-top:22px;">

               </div>
           
        </div>

    and this my aspx.cs code..

    protected void uploadedFile_Click(object sender, EventArgs e)
       {
           if (Page.IsPostBack)
           {
               if (UploadImages.HasFiles)
               {

                   string fileExt = Path.GetExtension(UploadImages.FileName).ToLower();
                   if (fileExt == ".flv" || fileExt == ".avi" || fileExt == ".mp4" || fileExt == ".3gp" || fileExt == ".mov" || fileExt == ".wmv" || fileExt == ".mpg" || fileExt == ".asf" || fileExt == ".swf")
                   {
                       foreach (HttpPostedFile uploadedFile in UploadImages.PostedFiles)
                       {
                           count += 1;

                           filepath = Server.MapPath("~/Videos/" + uploadedFile.FileName);
                           uploadedFile.SaveAs(filepath);
                           vurl.Add(uploadedFile.FileName.ToString());
                           newpath = createvidImage(filepath);

                           try
                           {
                               createImgPanel();
                               Image nimg = Page.FindControl("img" + count) as Image;
                               nimg.ImageUrl = "../Images/Video_Thumbs/" + newpath.ToString();
                               al.Add(newpath.ToString());
                           }

                           catch (Exception ex)
                           {
                               Page.ClientScript.RegisterStartupScript(GetType(), "msgbox", "alert(&#39;" + ex.Message.ToString() + "!!&#39;);", true);
                           }

                       }
                       Session["name2"] = al;
                       Session["vurl"] = vurl;
                   }
                   else
                   {
                       lblerror2.Text = "Please select only Image Files";
                   }

               }
               else
               {
                   lblerror2.Text = "Please select File/s";
               }
           }

       }
       public void createImgPanel()
       {
           StringBuilder sb = new StringBuilder();
           tid = tid + 1;
           textid = "txt" + tid;
           ta = new TextBox();
           img = new Image();
           ta.TextMode = TextBoxMode.MultiLine;
           dload = new HtmlGenericControl("div");
           updtpanel.Visible = true;
           dload.Attributes.Add("class", "dataload");

           dload.ID = "ind" + tid;
           img.CssClass = "loadimg";

           img.ID = "img" + tid;
           img.Attributes.Add("runat", "server");
           ta.Attributes.Add("class", "txtdes");
           ta.ID = textid;

           dload.Controls.Add(img);
           dload.Controls.Add(ta);
           dback.Controls.Add(dload);
       }

       public string createvidImage(string fpath)
       {
           string thumbname = "";
           string newthumb = "";
           string newpath1 = "";
           if (Page.IsPostBack)
           {
               string link = "";
               link = fpath.ToString();

               Guid nid = Guid.NewGuid();

               thumbname = Server.MapPath("..//Images//Video_Thumbs//") + nid + ".jpg";
               newthumb = nid + ".jpg";

               string param = String.Format("-ss {0} -i \"" + link + "\" -s 150*120  -vframes 1 -f image2 -vcodec mjpeg \"" + thumbname + "\"", 20);
               Process p = new Process();
               p.StartInfo.Arguments = param;
               p.StartInfo.FileName = Server.MapPath("..//ffmpeg//ffmpeg.exe");
               p.StartInfo.CreateNoWindow = false;
               p.StartInfo.UseShellExecute = false;
               p.Start();
               newpath1 = newthumb.ToString();
           }
           return newpath1;
       }