Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (98)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (9122)

  • How can I use ffmpeg to convert all HEVC videos to h.264 videos only on linux ? [closed]

    13 juillet 2022, par Jayden Lo

    I am trying to import all my images and videos from Google Photos to Nextcloud. I used Google Takeout to download them, but some videos are in HEVC format, which is not supported by most devices. How can I batch convert all HEVC videos to h.264 ? I am using Ubuntu and here is my file structure :

    


    ./Photos/
  Image1.jpg
  Image2.jpg
  ...
  HEVC-Video1.mp4
  HEVC-Video2.mp4
  HEVC-Video3.mp4
  ...
  H.264-Video1.mp4
  H.264-Video2.mp4
  ...


    


    Thanks in advance.

    


  • Upload FFmpeg output directly to Amazon S3

    26 octobre 2017, par user1790300

    I am using the fluent-ffmpeg library with node.js to transcode videos originally in a flash movie format to the mp3 format with multiple resolutions, 1080p, etc.. Once the transcoding is complete, I would like to move the transcoded video to an s3 bucket.

    I pull the original .flv file from a source s3 bucket and pass the stream to the ffmpeg constructor function. The issue is after the transcoding completes, how do I then get the stream of the mp4 data to send to s3.

    Here is the code I have so far :

           var params = {
               Bucket: process.env.SOURCE_BUCKET,
               Key: fileName
           };
           s3.getObject(params, function(err, data) {
               if (err) console.log(err, err.stack); // an error occurred

               var format = ffmpeg(data)
               .size('854x480')
               .videoCodec('libx264')
               .format('flv')
               .toFormat('mp4');
               .on('end', function () {
                   //Ideally, I would like to do the uploading here

                   var params = {
                      Body: //{This is my confusion, how do I get the stream to add here?},
                      Bucket: process.env.TRANSCODED_BUCKET,
                      Key: fileName
                   };
                   s3.putObject(params, function (err, data) {

                  });
               })
               .on('error', function (err) {
                   console.log('an error happened: ' + err.message);
               });

           });

    For the code above, where can I get the transcoded stream to add to the "Body" property of the params object ?

    Update :

    Here is a revision of what I am trying to do :

    var outputStream: MemoryStream = new MemoryStream();

           var proc = ffmpeg(currentStream)
               .size('1920x1080')
               .videoCodec('libx264')
               .format('avi')
               .toFormat('mp4')
               .output(outputStream)
               // setup event handlers
               .on('end', function () {
                   uploadFile(outputStream, "").then(function(){
                       resolve();
                   })
               })
               .on('error', function (err) {
                   console.log('an error happened: ' + err.message);
               });

    I would like to avoid copying the file to the local filesystem from s3, rather I would prefer to process the file in memory and upload back to s3 when finished. Would fluent-ffmpeg allow this scenario ?

  • How to save the stream URL chunks as a video in NodeJs

    2 octobre 2020, par Harsh Lodhi

    I'm trying to download a piece of video from the below URL using axios.

    


    https://r5---sn-gwpa-civy.googlevideo.com/videoplayback?...&range=32104-500230


    


    I'm using below code to fetch the above URL and for save the chunk to the mp4 file.

    


    axios({
        url: MY_URL`,
        method: 'GET',
        responseType: 'stream'
    }).then(function (response) {
        let buffArray = []
        response.data.on('data', (chunk) => {
            buffArray .push(chunk)
        })

        response.data.on('end', (chunk) => {
            let buff = Buffer.concat(buffArray)
            fs.writeFile('output.mp4', buff, (dt) => {
                console.log("File created");
            })
        })
    })


    


    above code is working fine and I'm able to save the video but the video is not able to play.
when I set the range in URL from &range=32104-500230 to &range=0-500230 then video is working properly. Please try to help that how can I save a video from small chunk of video stream instead of saving full video.