Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (7)

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

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

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

Sur d’autres sites (4639)

  • "Error opening filters !" when using fluent-ffmpeg with Node

    3 février 2015, par doremi

    I’m trying to get a basic example of html5 video streaming working in an express node app, but I keep running into ffmpeg errors that I’m unsure of how to resolve.

    The input file/stream is the sample.mp4 located here.

    Complete example :

    var ffmpeg = require('fluent-ffmpeg');
    var express    = require('express');
    var fs         = require('fs');
    var sampleApp  = express();
    var videoApp   = express();

    var SAMPLE_SERVER_PORT = 3000;
    var VIDEO_SERVER_PORT  = 5000;

    sampleApp.get('/:video', function (req, res) {
     var videoURL = 'http://localhost:' + VIDEO_SERVER_PORT + '/' + req.params.video;
     return res.end('<video controls="controls" src=" + videoURL +"></video>');
    });

    videoApp.get('/:video', function(req, res) {

     res.statusCode = 200;
     res.setHeader('content-type','video/mp4');

     var stream = fs.createReadStream('./samples/' + req.params.video);

     var proc = ffmpeg(stream)

       .format('mp4')
       .size('320x?')
       .videoBitrate('512k')
       .videoCodec('libx264')
       .fps(24)
       .audioBitrate('96k')
       .audioCodec('aac')
       .audioFrequency(22050)
       .audioChannels(2)

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

       .pipe(res, { end:true });
    });

    var server = sampleApp.listen(SAMPLE_SERVER_PORT, function () {
     console.log('Example app listening at http://%s:%s', server.address().address, SAMPLE_SERVER_PORT);
    });


    var videoServer = videoApp.listen(VIDEO_SERVER_PORT, function () {
     console.log('Video Server listening at http://%s:%s', server.address().address, VIDEO_SERVER_PORT);
    });

    The error (via console) :

    an error happened: ffmpeg exited with code 1: Error opening filters!

    ffmpeg configuration :

    ./configure  --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass \                                                                        
    --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus \
    --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-libfaac --enable-libfdk-aac

    Any input would be greatly appreciated.

  • How to stream to a element using fluent-ffmpeg

    19 mai 2017, par Lukas

    I am writing on an electron application and I am trying to use fluent-ffmpeg to create a streaming server and use a <video></video> element to consume that stream. I wonder how to set up fluent-ffmpeg and the <video></video> using flowplayer like this :

    Server :

    const express = require('express');
    const ffmpeg = require('fluent-ffmpeg');

    const app = express();

    app.use(express.static(__dirname + '/flowplayer'));

    app.get('/', function(req, res) {
       res.send('index.html');
    });

    app.get('/video/:filename', function(req, res) {
       res.contentType('flv');
       // make sure you set the correct path to your video file storage
       const pathToMovie = '/Users/luke/Movies/' + req.params.filename;
       const proc = ffmpeg(pathToMovie)
       // use the 'flashvideo' preset (located in /lib/presets/flashvideo.js)
           .preset('divx')
           // setup event handlers
           .on('end', function() {
               console.log('file has been converted succesfully');
           })
           .on('error', function(err) {
               console.log('an error happened: ' + err.message);
           })
           // save to stream
           .pipe(res, {end:true});
    });

    app.listen(4000);

    Webseite with <video></video> element :

     
       
       <code class="echappe-js">&lt;script src=&quot;https://code.jquery.com/jquery-1.11.2.min.js&quot;&gt;&lt;/script&gt;

    &lt;script src='http://stackoverflow.com/feeds/tag/flowplayer-7.0.4/flowplayer.min.js'&gt;&lt;/script&gt;

    &lt;script&gt;<br />
       require('./ffmpeg-server.js');<br />
     &lt;/script&gt;

    The main problem I see right now is to find a way to set up the right settings for ffmpeg (currently I am using the divx preset together with the video type video/mpeg4 in the HTML which (of course) does not work.

  • Need help on handling MPEG4V1 data

    14 septembre 2011, par Gediminas

    I'm in situation where I need to get a chunk of MPEG4V1 (Microsoft MPEG-4 VKI
    Codec V1
    ) data located in the beginning of a packet (that was sent by some DVR unit).

    Packet structure looks something like this :

    • Compressed MPEG4 data.
    • Long integer - Number of events and tripwires.
    • Long integer - Number of events.
    • Event - Event's sequence.
    • Long integer - Number of tripwires.
    • Tripwire - Tripwires sequence.
    • Long integer - Cyclical redundant code (CRC).

    So there is no indication of how to know where does the MPEG4 data ends (Or is there ?),
    and from where should I start reading this additional data like "Number of events and tripwires" and etc...

    I uploaded two packet's so you could see how the actual data looks like :
    recvData1.txt,
    recvData2.txt.

    I've tried to decode those packets using FFmpeg library with avcodec_decode_video function and by removing byte by byte from the end of my recvData buffer in a hope for any results,
    but FFmpeg just allways returned with an error messages like this :

    "[msmpeg4v1 @ 038865a0] invalid startcode",
    "[msmpeg4v1 @ 038865a0] header damaged".

    I'm not that good specialist on knowing of how does the MPEG4 works from the inside,
    but judging by the error messages it's clearly seen that I'm missing some data for decoding at the start of the buffer.

    So I'm not sure of what part / kind of MPEG data I'm getting here..
    Maybe it's some kind of MPEG's "frame" data with it's "end" indication or something ?

    I've even compared the start of my recvData buffer to some of MPEG4V1 encoded video files I found on the net "http://www.trekmania.net/clips/video_clips4.htm" to check if the start of my buffer really contains the MPEG data ..and not some kind of DVR vendor specific stuff..

    And I noticed that there are about 20bytes of data
    (at the start of my packet data, and in .avi files right after about 180bytes..)
    that looks like some kind of header or something..

    Please check this image : "http://ggodis.gamedev.lt/stackOverflow/recvData.jpg"

    Maybe someone knows what this part of MPEG4V1 data represents ?

    P.S. ..I've checked the CRC values for my received packets and they were correct..