Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (70)

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

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (6912)

  • How to concat two/many mp4 files(Mac OS X Lion 10.7.5) with different resolution, bit rate [on hold]

    3 septembre 2013, par praveen

    I have to concat different mp4 files into single mp4 file. i am using following ffmpeg command but this command is only working if both file is same(copy, or if all video property is same(codec, resolution,bitrate....) ) other wise result is unexpected video. (I am working on Mac OS X Lion 10.7.5)

    ffmpeg commad :

    ffmpeg -i images/1/output.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
    ffmpeg -i images/1/Video2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
    ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output2.mp4

    console output :

    [mpegts @ 0x7f8c6c03d800] max_analyze_duration 5000000 reached at 5000000 microseconds

    Input #0, mpegts, from 'concat:intermediate1.ts|intermediate2.ts':
    Duration: 00:00:16.52, start: 1.400000, bitrate: 1342 kb/s
    Program 1
    Metadata:
    service_name    : Service01
    service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1024x768 [SAR   1:1 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101](und): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 101 kb/s



    Output #0, mp4, to 'output2.mp4':
    Metadata:
    encoder         : Lavf54.63.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1024x768 [SAR 1:1 DAR 4:3],      q=2-31, 25 fps, 90k tbn, 90k tbc
    Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 101 kb/s
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=  586 fps=0.0 q=-1.0 Lsize=    2449kB time=00:00:20.11 bitrate= 997.4kbits/s    
    video:2210kB audio:225kB subtitle:0 global headers:0kB muxing overhead 0.578335%

    Please help

  • Videocapture error : Assertion desc failed at src/libswscale/swscale_internal.h:668 error

    1er février 2019, par Alejandro Silvestri

    Videocapture read give me this error. It started recently when I updated to opencv4. No errors on opencv4 installation. libswscale is up to date, I have libswscale.so.4.8.100.

    The code is a simple "open" and "read" video to isolate the problem :

    #include<opencv2></opencv2>core.hpp>
    #include<opencv2></opencv2>videoio.hpp>
    #include<opencv2></opencv2>highgui/highgui.hpp>
    #include<string>
    #include <iostream>

    int main(int argc, char **argv){
       cv::VideoCapture video;
       std::string filename(argv[1]);
       std::cout &lt;&lt; "filename " &lt;&lt; filename &lt;&lt; std::endl;
       std::cout &lt;&lt; "video.open " &lt;&lt; video.open(filename) &lt;&lt; std::endl;
       union {
           char ch[5] = {0};
           int i4cc;
       } fourcc;
       fourcc.i4cc = (int) video.get(cv::CAP_PROP_FOURCC);
       std::cout &lt;&lt; "Fourcc " &lt;&lt; fourcc.ch &lt;&lt; std::endl;
       cv::Mat frame;
       while(true){
           std::cout &lt;&lt; "video.read " &lt;&lt; video.read(frame) &lt;&lt; ", Mat.rows " &lt;&lt; frame.rows &lt;&lt; std::endl;
           cv::imshow("imagen", frame);
       }
    }
    </iostream></string>

    The output is this

    filename ../Archivos/Vuelta al Lab Uno 720p.MP4
    video.open 1
    Fourcc avc1
    Assertion desc failed at src/libswscale/swscale_internal.h:668

    VideoCapture opens the video file, shows fourcc property, and then fails to read first image.

    If you ask, video file is fine, I tried with other video files and other video formats, with the same error. These videos play well with ffmpeg.ffplay !

    By the way, VideoCapture.read is working fine with webcam. So, it’s not clear where the problem is.

    Thank you for your time.

  • 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 ?