Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (66)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (9433)

  • How to convert video(stored in S3) to image and upload it back to S3 bucket ?

    21 novembre 2024, par Leena Bharambe

    I am trying to perform below steps :

    



      

    • Read video from S3 bucket
    • 


    • Convert Video into images
    • 


    • and upload images to S3 back
    • 


    



    I don't want to use any Local file system or don't want to store video/image in local disk.

    



    Running the code as an AWS Lambda function.

    



    In Java,
How can we upload an image directly to S3 after framing a video ?

    



    In Node,
Can we pass s3 url to ffmpeg either to command line utility or a code module ?

    



    Sharing some sample code which I am using to read video from S3 :

    



            String bucketName = "ibis-static";
        ObjectListing objectListing = s3.listObjects(new ListObjectsRequest()
                .withBucketName(bucketName));
        String key_url = "https://s3.amazonaws.com/";
        for (S3ObjectSummary objectSummary : objectListing.getObjectSummaries()) {
            S3Object object = s3.getObject(bucketName, objectSummary.getKey()); 

            if(object.getKey().startsWith("videos/")){
                key_url = key_url + bucketName + "/" + object.getKey();
                logger.log("Passing object to Computer Vision");
                logger.log("\n" + object.getObjectContent().read()); //returning 0
                logger.log("\n" + new URL(key_url).openStream().read()); //returning 0
                //cvm.getImageDetails(logger, object, bucketName, object.getKey());
            }
            object.close();
        }


    


  • Why aren't the videos in my S3 bucket buffering to html video tag ?

    2 juin 2019, par Michael Cain

    I have so far successfully programmed a node script on a Udoo x86 advanced plus that captures an Ethernet connected IP cam’s RTSP stream. I use ffmpeg to trans-code the stream into 5 second mp4 files. As soon as the files show up in the folder they are uploaded/synced to my AWS S3 Bucket. Next I have a Node server that GET’s the most recently created mp4 file from the S3 bucket and runs it through mediasource extension and finally to an html video tag.

    The videos are playing on the browser but not in any kind of synchronous manner. No buffering seems to be taking place. one video plays then another and so on. Video is skipping all over the place.

    I would really appreciate any guidance with this bug.

    export function startlivestream() {
     const videoElement = document.getElementById("my-video");
     const myMediaSource = new MediaSource();
     const url = URL.createObjectURL(myMediaSource);
     videoElement.src = url;
     myMediaSource.addEventListener("sourceopen", sourceOpen);
    }
    function sourceOpen() {
     if (window.MediaSource.isTypeSupported(
         'video/mp4; codecs="avc1.42E01E, mp4a.40.2"'
       )
     )
    {
          console.log("YES");
     }

    // 1. add source buffers

     const mediaCodec = 'video/mp4; codecs="avc1.4D601F"';
     var mediasource = this;
     const videoSourceBuffer = mediasource.addSourceBuffer(mediaCodec);

    // 2. download and add our audio/video to the SourceBuffers

    function checkVideo(url) {
     var oReq = new XMLHttpRequest();
       oReq.open("GET", url, true);
       oReq.responseType = "arraybuffer";

        oReq.onload = function(oEvent) {
         var arrayBuffer = oReq.response; // Note: not oReq.responseText
         if (arrayBuffer) {
            videoSourceBuffer.addEventListener("updateend", function(_) {
              mediasource.endOfStream();
              document.getElementById("my-video").play();
      });
              videoSourceBuffer.appendBuffer(arrayBuffer);
         }
       };

       oReq.send(null);
     }

     setInterval(function() {
       checkVideo("http://localhost:8080");
     }, 5000);

    My ffmpeg tags :

    const startRecording = () => {
     const args = [
       "-rtsp_transport",
       "tcp",
       "-i",
       inputURL,
       "-f",
       "segment",
       "-segment_time",
       "5",
       "-segment_format",
       "mp4",
       "-segment_format_options",
       "movflags=frag_keyframe+empty_moov+default_base_moof",
       "-segment_time",
       "5",
       "-segment_list_type",
       "m3u8",
       "-c:v",
       "copy",
       "-strftime",
       "1",
       `${path.join(savePath, "test-%Y-%m-%dT%H-%M-%S.mp4")}`
     ];

    From what I have learned about Mediasource extensions they allow multiple videos to be taken in and allow the client to buffer them so it looks like one longer video. In simple terms.

  • Revision 84753 : Si l’envoi par mail de la sauvegarde est actif, ajout d’une option ...

    11 juin 2018, par cy_altern@… — Log

    Si l’envoi par mail de la sauvegarde est actif, ajout d’une option pour que l’envoi du mail au webmestre soit facultatif