Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (23)

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

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (3759)

  • Cannot convert video file to audio file inside AWS lambda function using Node js

    21 février 2019, par Arun

    I cannot convert a video file into an audio file inside AWS lambda function using Node JS. While running my lambda function it doesn’t throw any error it executes without any error. But the audio file size is still 0 MB size. I am not able to find bugs or any issues in my code.

    Here is my code,

    const fs = require('fs');
    const childProcess = require('child_process');
    const AWS = require('aws-sdk');
    const path = require('path');
    AWS.config.update({
       region : 'us-east-2'
    });
    const s3 = new AWS.S3({apiVersion: '2006-03-01'});


    exports.handler = (event, context, callback) => {
       process.env.PATH = process.env.PATH + ':/tmp/';
       process.env['FFMPEG_PATH'] = '/tmp/ffmpeg';
       const BIN_PATH = process.env['LAMBDA_TASK_ROOT'];
       process.env['PATH'] = process.env['PATH'] + ':' + BIN_PATH;

       childProcess.exec(
           'cp /var/task/ffmpeg /tmp/.; chmod 755 /tmp/ffmpeg;',
           function (error, stdout, stderr) {
               if (error) {
                   console.log('Error occured',error);
               } else {
                   var ffmpeg = '/tmp/ffmpeg';
                   var createStream = fs.createWriteStream("/tmp/video.mp3");
                   createStream.end();
                   var params = {
                       Bucket: "test-bucket",
                       Key: event.Records[0].s3.object.key
                   };
                   s3.getObject(params, function(err, data) {
                       if (err) {
                           console.log("Error", err);
                       }
                       fs.writeFile("/tmp/vid.mp4", data.Body, function (err) {
                           if (err) console.log(err.code, "-", err.message);
                           return callback(err);
                       }, function() {
                           try {
                               var stats = fs.statSync("/tmp/vid.mp4");
                               console.log("size of the file1 ", stats["size"]);
                               try {
                                   console.log("Yeah");
                                   const inputFilename = "/tmp/vid.mp4";
                                   const mp3Filename = "/tmp/video.mp3";
                                   // // Convert the FLV file to an MP3 file using ffmpeg.
                                   const ffmpegArgs = [
                                       '-i', inputFilename,
                                       '-vn', // Disable the video stream in the output.
                                       '-acodec', 'libmp3lame', // Use Lame for the mp3 encoding.
                                       '-ac', '2', // Set 2 audio channels.
                                       '-q:a', '6', // Set the quality to be roughly 128 kb/s.
                                       mp3Filename,
                                   ];
                                   try {
                                       const process = childProcess.spawnSync(ffmpeg, ffmpegArgs);
                                       console.log("stdout ", process.stdout);
                                       console.log("stderr ", process.stderr);
                                       console.log("tmp files ");
                                       fs.readdir('/tmp/', (err, files) => {
                                           files.forEach(file => {
                                               var stats = fs.statSync(`/tmp/${file}`);
                                               console.log("size of the file2 ", stats["size"]);
                                             console.log(file);
                                           });
                                         });

                                   } catch (e) {
                                       console.log("error while converting video to audio ", e);
                                   }

                                   // return process;
                               } catch (e) {
                                   console.log(e);
                               }
                           } catch (e) {
                               console.log("file is not complete", e);
                           }
                       }, function () {
                           console.log("checking ");
                           var stats = fs.statSync("/tmp/video.mp3");
                           console.log("size of the file2 ", stats["size"]);
                       });

                       return callback(err);
                   });
               }
           }
       )
    }

    Code workflow

    First of all, I have downloaded ffmpeg binary exec file and put into my project directory. After that, I compressed my project and put it into the lambda function. This lambda function will be triggered whenever the new files are uploaded into an S3 bucket. I have checked /tmp/ storage files and the audio file .mp3 present but the size is 0 MB.

    Note

    And also, in my code the below is not calling or this part is not reaching. When I look into Cloudwatch logs I can’t see this console log messages. I don’t know why this function is not calling.

    function () {
           console.log("checking ");
           var stats = fs.statSync("/tmp/video.mp3");
           console.log("size of the file2 ", stats["size"]);
       });

    Please help me to find the solution of this issue. I have spent a lot of times to figure out this issue. But I am not able to find the solution. Any suggestions are welcome !!
    Thanks,

  • arm/aarch64 : vp9lpf : Calculate !hev directly

    12 janvier 2017, par Martin Storsjö
    arm/aarch64 : vp9lpf : Calculate !hev directly
    

    Previously we first calculated hev, and then negated it.

    Since we were able to schedule the negation in the middle
    of another calculation, we don’t see any gain in all cases.

    Before : Cortex A7 A8 A9 A53 A53/AArch64
    vp9_loop_filter_v_4_8_neon : 147.0 129.0 115.8 89.0 88.7
    vp9_loop_filter_v_8_8_neon : 242.0 198.5 174.7 140.0 136.7
    vp9_loop_filter_v_16_8_neon : 500.0 419.5 382.7 293.0 275.7
    vp9_loop_filter_v_16_16_neon : 971.2 825.5 731.5 579.0 453.0
    After :
    vp9_loop_filter_v_4_8_neon : 143.0 127.7 114.8 88.0 87.7
    vp9_loop_filter_v_8_8_neon : 241.0 197.2 173.7 140.0 136.7
    vp9_loop_filter_v_16_8_neon : 497.0 419.5 379.7 293.0 275.7
    vp9_loop_filter_v_16_16_neon : 965.2 818.7 731.4 579.0 452.0

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavcodec/aarch64/vp9lpf_neon.S
    • [DBH] libavcodec/arm/vp9lpf_neon.S
  • jwplayer slow buffer video lag

    8 juillet 2015, par user281738

    I’m using Jwplayer for my mobile site... So i need mobile capability html5 player.. i choose jwplayer.

    I’m Converting Video with ffmpeg

    ffmpeg -i Input.mp4 -vcodec h264 -b 1400k -s 1280X720 -acodec libfaac -ac 2 -ab 128k -movflags faststart -y Output.mp4

    I’m Using Centos Apache server and so i installed H264 Streaming Module

    My videos are starting fast at first.. but in middle when my internet slows and buffering slows down.. At the same time video lags and sounds continues for few second ... at some point my video and audio sync well. This is happening because of slow buffer problem.. After whole video buffered when i replay..full video is playing well .
    I Used Some Android Phones Chrome Browser To Check .
    I need playing position to Show load Icon and wait if buffer slows.. not lag video

    I cant lower my video bitrate.. because of my competitors.. i want solution for my html5 player.. i have added my jwplayer code.

    <code class="echappe-js">&lt;script&gt;    jwplayer(&quot;myElement&quot;).setup({<br />
           width: &quot;100%&quot;,<br />
           skin: &quot;skin.xml&quot;,<br />
           autostart: true,<br />
    <br />
           sharing: {},<br />
         image: &quot;http://example.com/Mp4/screen.jpg&quot;,<br />
    <br />
         sources: [{<br />
           file: &quot;http://example.com/720.mp4&quot;,<br />
           label: &quot;720p&quot;,<br />
           &quot;default&quot;: &quot;true&quot;<br />
         },{<br />
           file: &quot;http://example.com/HD/hd.mp4&quot;,<br />
           label: &quot;HD&quot;<br />
         },{<br />
           file: &quot;http://example.com/Mp4/480x320.mp4&quot;,<br />
           label: &quot;480p&quot;<br />
         }],<br />
         startparam: &quot;starttime&quot;,<br />
           stretching: &quot;exactfit&quot;,<br />
           autostart: false,<br />
       });<br />
    <br />
    <br />
    <br />
    &lt;/script&gt;