Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (67)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

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

Sur d’autres sites (10859)

  • using ffmpeg in asp.net razor (C#)

    18 avril 2014, par user3549636

    I know questions like this are all over the internet but I believe my case is different, I have a ASP.NET Webpage (Razor C#) and I have a whole video sharing website ready BUT I still don't understand, How can I convert videos to mp4 and webm using ffmpeg on the upload page and instead of having the original saved and added to the database i want the converted version added. heres my upload page code :

       @{
    WebSecurity.RequireAuthenticatedUser();
    var db = Database.Open("PhotoGallery");
    var fileName = "";
    var uploader = WebSecurity.CurrentUserId;
    var date = DateTime.Now.Date;
    var extention = "";
    if(IsPost){
    var numFiles = Request.Files.Count;
    if(numFiles <= 0){
        ModelState.AddError("fileUpload", "Please specify at least one photo to upload.");
    }
    else{
        var fileSavePath = "";
           var uploadedFile = Request.Files[0];
       fileName = Path.GetFileNameWithoutExtension(uploadedFile.FileName).Trim();
       extention = Path.GetExtension(uploadedFile.FileName).Trim();
       string ndom = Path.GetRandomFileName();
       var none = ndom.Remove(ndom.Length - 4);
       fileSavePath = Server.MapPath("~/Images/userpics/" +
         none + extention);
       uploadedFile.SaveAs(fileSavePath);
       var insertCommand = "INSERT INTO Videos (FileTitle, UploadDate, UserId, ext, Name) Values(@0, @1, @2, @3, @4)";
        db.Execute(insertCommand, fileName, date, uploader, extention, none + extention);
        Response.Redirect(Href("~/Photo/View", db.GetLastInsertId()));
        }
       }
       }
    <h1>Upload Video</h1>

    <form method="post" enctype="multipart/form-data">
    @Html.ValidationSummary("Unable to upload:")
    <fieldset class="no-legend">
       <legend>Upload Photo</legend>
       @FileUpload.GetHtml(addText: "Add more files", uploadText: "Upload", includeFormTag: false)
       <p class="form-actions">
           <input type="submit" value="Upload" title="Upload photo" />
       </p>
    </fieldset>
    </form>

    <p class="message info">
    The maximum file size is 50MB.
    </p>
  • ffmpeg isnt working or giving errors

    19 avril 2014, par user3549636

    FFmpeg isnt converting videos (or saving them, I honestly dont know) and isnt even giving me any error, whats wrong ? heres my code :

       @{
    WebSecurity.RequireAuthenticatedUser();
    var db = Database.Open("PhotoGallery");
    var fileName = "";
    var uploader = WebSecurity.CurrentUserId;
    var date = DateTime.Now.Date;
    var extention = "";
    if(IsPost){
    var numFiles = Request.Files.Count;
    if(numFiles &lt;= 0){
        ModelState.AddError("fileUpload", "Please specify at least one photo to upload.");
    }
    else{
        var fileSavePath = "";
           var uploadedFile = Request.Files[0];
       fileName = Path.GetFileNameWithoutExtension(uploadedFile.FileName).Trim();
           extention = Path.GetExtension(uploadedFile.FileName).Trim();
       string ndom = Path.GetRandomFileName();
       var none = ndom.Remove(ndom.Length - 4);
       fileSavePath = Server.MapPath("~/Images/userpics/" +
         none + extention);
       uploadedFile.SaveAs(fileSavePath);


    string AppPath = Request.PhysicalApplicationPath;
    string inputPath = AppPath + "~/Images/userpics/" + fileName + extention;
    string outputPath = AppPath + "~/Images/userpics/" + fileName + ".flv";
    string imgpath = AppPath + "~/Images/userpics/thumbnails/";
    string cmd = " -i" + " " + inputPath + " " + outputPath;
    System.Diagnostics.Process proc = new System.Diagnostics.Process();
    proc.StartInfo.FileName = Server.MapPath("~/bin/ffmpeg.exe");
    proc.StartInfo.Arguments = cmd;
    proc.StartInfo.UseShellExecute = false;
    proc.StartInfo.CreateNoWindow = true;
    proc.StartInfo.RedirectStandardOutput = false;
    proc.Start();


        var insertCommand = "INSERT INTO Videos (FileTitle, UploadDate, UserId, ext, Name) Values(@0, @1, @2, @3, @4)";
        db.Execute(insertCommand, fileName, date, uploader, extention, none + extention);

        Response.Redirect(Href("~/Photo/View", db.GetLastInsertId()));
        }
    }
    }
    <h1>Upload Video</h1>

    <form method="post" enctype="multipart/form-data">
    @Html.ValidationSummary("Unable to upload:")
    <fieldset class="no-legend">
       <legend>Upload Photo</legend>
       @FileUpload.GetHtml(addText: "Add more files", uploadText: "Upload", includeFormTag: false)
       <p class="form-actions">
           <input type="submit" value="Upload" title="Upload photo" />
       </p>
    </fieldset>
    </form>

    <p class="message info">
    The maximum file size is 50MB.
    </p>

    btw i thought i should mention ffmpeg.exe is in my websites bin directory (only ffmpeg.exe)

  • Révision 24058 : report de r24057

    15 septembre 2018, par bruno@eliaz.fr

    Fix #4043 : table debug-nav en partie masquée