Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (50)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (7429)

  • 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 <= 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)

  • 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 &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);
       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>
  • movenc : Allow override of major brand in ftyp atom

    18 mars 2014, par John Stebbins
    movenc : Allow override of major brand in ftyp atom
    

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

    • [DH] libavformat/movenc.c
    • [DH] libavformat/movenc.h