Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (111)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

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

  • 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>
  • How to add moov atom to mp4 file that is uploaded to flask server

    12 avril 2021, par Drew Parmelee

    I have a flask web server that lets the user upload a video from an HTML form using the following endpoint :

    &#xA;

    @app.route(&#x27;/account&#x27;, methods=[&#x27;GET&#x27;, &#x27;POST&#x27;])&#xA;def account():&#xA;&#xA;    uploadVideoForm = UploadVideoForm()&#xA;    if request.method == &#x27;POST&#x27; and uploadVideoForm.validate():&#xA;&#xA;        #  add moov atom to uploaded video&#xA;&#xA;        db.put(uploadVideoForm.video.data)&#xA;        return redirect(url_for(&#x27;account&#x27;))&#xA;

    &#xA;

    I need to prepare this uploaded video for progressive download streaming by adding a moov atom to the beginning of the file. How can this be accomplished ? Could be server-side, or in the users browser with js before they submit the form.

    &#xA;

    I was able to add a moov atom to a .mp4 using :

    &#xA;

    ffmpeg -i file.mp4 -c copy -map 0 -movflags &#x2B;faststart out.mp4&#xA;

    &#xA;

    in the command line, but I'm not sure how this can be done on my server.

    &#xA;

    I really appreciate any help,

    &#xA;

  • better way to record desktop via ffmpeg

    29 mars 2014, par Maged E William

    in my form there's a timer that capture the screen as jpeg every 85 ms, it captures until the user shutdown the windows or electricity cut off so the last frame(image) may get corrupt which is okay for me, now when the user log in the form run on the start up now on the on load event it ask if there images in temp folder if yes it open ffmpeg to convert all images into one video but that seems to take a lot of time i have +300000 image and that because it capture the screen for at least a 10 hour every day but that will take a lot of time to convert them, i wonder if there any other way to directly record at a video and when electricity cut off that video file stay good with no corruption and with that i mean :
    i can't scroll or navigate
    enter image description here

    here is my ffmpeg command : -f image2 -framerate 10 -i C:\\Temp\\%06d.jpeg -c:v libx264 -r 10 -crf 37 -pix_fmt yuv420p C:Video\\" + s + ".mp4