Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (26)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (6055)

  • fluent-ffmpeg sometimes crashes entire amazon ec2 instance

    24 octobre 2020, par Mick Marsden

    I have a nodejs application where I'm using fluent-ffmpeg to convert captured video files via the html <input file="file" /> tag to mp4 format. I'm also using ffmpeg-static to provide static binaries for fluent-ffmpeg's file path. But in order for the conversion to happen, I upload the captured video file via multer, and when that completes, multer passes the video url to fluent-ffmpeg. The code looks like this :

    &#xA;

    app.post("/upload-and-convert", async function(req, res) {&#xA;&#xA;   var filepath;&#xA;   var path;&#xA;&#xA;    try {&#xA;&#xA;        const upload = util.promisify(uploadVideo());&#xA;&#xA;        await upload(req, res);&#xA;&#xA;        console.log(req.file);&#xA;        console.log("Success");&#xA;        filepath = req.file.filename;&#xA;        console.log(filepath);&#xA;        path = &#x27;./public/uploads/&#x27; &#x2B; filepath;&#xA;        console.log(path);&#xA;&#xA;    } catch (e) {&#xA;       let response_json = {&#xA;                success: false,&#xA;        };&#xA;        res.setHeader("content-type", "application/json");&#xA;        res.send(response_json);&#xA;    }&#xA;&#xA;    if(path != undefined)&#xA;    {&#xA;&#xA;        console.log("Path not undefined, going to start FFMPEG");&#xA;        ffmpeg(path)&#xA;        .format(&#x27;mp4&#x27;)&#xA;        .size(&#x27;720x720&#x27;).autopad()&#xA;        .on(&#x27;end&#x27;, function() {&#xA;            console.log(&#x27;file has been converted successfully&#x27;);&#xA;        })&#xA;        .on(&#x27;error&#x27;, function(err) {&#xA;            console.log(&#x27;an error happened: &#x27; &#x2B; err.message);&#xA;            let response_json = {&#xA;                success: false,&#xA;            };&#xA;            res.setHeader("content-type", "application/json");&#xA;            res.send(response_json);&#xA;        })&#xA;        .save(&#x27;./public/uploads/video.mp4&#x27;)&#xA;        .on(&#x27;end&#x27;, function() {&#xA;            console.log(&#x27;file has been saved successfully&#x27;);&#xA;            let response_json = {&#xA;                success: true,&#xA;                fileURL: &#x27;https://websiteurl/uploads/video.mp4&#x27;&#xA;            };&#xA;            res.setHeader("content-type", "application/json");&#xA;            res.send(response_json);&#xA;        })&#xA;&#xA;    } else&#xA;    {&#xA;        let response_json = {&#xA;            success: false,&#xA;        };&#xA;        res.setHeader("content-type", "application/json");&#xA;        res.send(response_json);&#xA;    }&#xA;});&#xA;

    &#xA;

    Most times, the code runs fine and returns the fileURL as intended. Sometimes however, it completely crashes the amazon ec2 instance, and requires the instance be rebooted before it works again. I've checked the logs, and the server-error logs output no issues. The server-out logs when it crashes outputs the final console log before ffmpeg starts :

    &#xA;

            console.log("Path not undefined, going to start FFMPEG");&#xA;

    &#xA;

    The moment it reaches the ffmpeg(path), it goes down. It doesn't log any error, even though I have included error handling on the operation.

    &#xA;

    This has stumped me for days. I cannot figure out the commonality to explain why sometimes it crashes, and sometimes it does not. Note that this even happened before I started using the ffmpeg-static package. My node version is 12.19.0, and ffmpeg-static currently installs ffmpeg at version 4.3.1 if I recall correctly.

    &#xA;

    If anyone could help that would be great.

    &#xA;

  • Extract thumbnail from video in amazon s3 and store it in amazon s3 [closed]

    24 juin 2021, par Kanav Raina

    I want to extract thumbnail from video and store it on s3.

    &#xA;

    import ffmpeg&#xA;&#xA;url="https://link_to_s3_video.mp4"&#xA;&#xA;(&#xA;    ffmpeg&#xA;    .input(url, ss=&#x27;00:00:03&#x27;)  &#xA;    .output("frame.png", pix_fmt=&#x27;rgb24&#x27;, frames=&#x27;1&#x27;)  &#xA;    .overwrite_output()&#xA;    .run()&#xA;)&#xA;

    &#xA;

    I am able to extract image but now how should I pass this image to file_upload function and store it on s3

    &#xA;

    def file_upload(file, filename):&#xA;    link = f"https://{PUBLIC_BUCKET_NAME}.s3.us-east-2.amazonaws.com/images/{filename}"&#xA;    try:&#xA;        s3.Object(PUBLIC_BUCKET_NAME, f"images/{filename}").load()&#xA;    except ClientError as e:&#xA;        if e.response[&#x27;Error&#x27;][&#x27;Code&#x27;] == "404":&#xA;            try:&#xA;                s3_client.upload_fileobj(&#xA;                    file,&#xA;                    PUBLIC_BUCKET_NAME,&#xA;                    f"images/{filename}",&#xA;                    ExtraArgs={&#x27;ACL&#x27;: &#x27;public-read&#x27;}&#xA;                )&#xA;&#xA;                return 200, link&#xA;            except ClientError as e:&#xA;                logging.error(e)&#xA;                return 500, ""&#xA;        else:&#xA;            return 500, ""&#xA;    else:&#xA;        return 409, link&#xA;

    &#xA;

    Thanks

    &#xA;

  • Amazon S3 : how to combine all images into a video ?

    9 septembre 2021, par scientiffic

    I'm in my Rails app, I enable users to upload images, which get processed using ffmpeg to create a video slideshow.

    &#xA;&#xA;

    I have this working locally, but am wondering how to do this when deploying the app using Heroku. In particular, I know Heroku has limited storage and has a read-only filesystem, so using Carrierwave without S3 or an external storage option doesn't seem like an option.

    &#xA;&#xA;

    But how would I run a task like the following using S3, where I combine all images into a video ?

    &#xA;&#xA;

    The ffmpeg command is

    &#xA;&#xA;

    ffmpeg -r 5 -i https://s3.amazonaws.com/[]/uploads/image/image_file/26/img%03d.jpg output.mp4 -y&#xA;

    &#xA;&#xA;

    And the AWS "folder" contains the following :&#xA;https://s3.amazonaws.com/[]/uploads/image/image_file/26/img001.jpg&#xA;https://s3.amazonaws.com/[]/uploads/image/image_file/26/img002.jpg&#xA;https://s3.amazonaws.com/[]/uploads/image/image_file/26/img003.jpg

    &#xA;&#xA;

    When I try to do the following, I get an error with ffmpeg not knowing what to do with :

    &#xA;&#xA;

    https://s3.amazonaws.com/[]/uploads/image/image_file/26/img%03d.jpg&#xA;

    &#xA;&#xA;

    Note, this whole video compilation process works fine for me locally, so I know in theory it should work.

    &#xA;