Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (93)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (6858)

  • 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;
       }
  • lavf : always use av_free

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

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

    • [DH] libavformat/hevc.c