Recherche avancée

Médias (91)

Autres articles (43)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (5954)

  • Revision 0638d95b1b58255f7d13e3479ec5e114cba56a7c : éviter un ../tmp//.htaccess le $rep passé en argument a parfois un / ...

    8 février 2010, par denisb — Log

    éviter un ../tmp//.htaccess le $rep passé en argument a parfois un / terminal (mais pas toujours). git-svn-id : svn ://trac.rezo.net/spip/branches/spip-1.9.2@15171 caf5f3e8-d4fe-0310-bb3e-c32d5e47d55d

  • Revision b49bfff197288b16d26b21b40492bd73ba0eb0cd : éviter un ../tmp//.htaccess le $rep passé en argument a parfois un / ...

    8 février 2010, par denisb — Log

    éviter un ../tmp//.htaccess le $rep passé en argument a parfois un / terminal (mais pas toujours). git-svn-id : svn ://trac.rezo.net/spip/branches/spip-2.0@15170 caf5f3e8-d4fe-0310-bb3e-c32d5e47d55d

  • How to get the buffer of the first frame of a video using ffmpeg ? (Node.js)

    12 avril 2024, par Mahmoud Walid

    I am trying to use child_processes and ffmpeg to do this, but it returns this error :

    


    FFmpeg stderr: [AVFilterGraph @ 00000157fd55abc0] No option name near 'eq(n, 0)"'
[AVFilterGraph @ 00000157fd55abc0] Error parsing a filter description around:
[AVFilterGraph @ 00000157fd55abc0] Error parsing filterchain '"select=eq(n\, 0)"' around:
[vost#0:0/libx264 @ 00000157fd574700] Error initializing a simple filtergraph
Error opening output file pipe:1.
Error opening output files: Invalid argument

FFmpeg process exited with code: 4294967274


    


    When I run that command in the terminal, it works fine, but it doesn't work in the code.
Here's the command (terminal version) :
ffmpeg -i input/vid.mp4 -vf "select=eq(n\,0)" -vframes 1 out.png

    


    And heres the code :

    


    import { spawn } from 'child_process';

const inputVideoPath = 'input/vid.mp4';

const ffmpeg = spawn('ffmpeg', [
    '-i', inputVideoPath,
    '-vf', '"select=eq(n\\, 0)"',
    '-vframes', '1',
    '-f', 'mp4',
    'pipe:1'
]);

let buffer = Buffer.from([]);
ffmpeg.stdout.on('data', (data) => {
    buffer = Buffer.concat([buffer, data]);
});

ffmpeg.stderr.on('data', (data) => {
    console.error('FFmpeg stderr:', data.toString());
});

ffmpeg.on('exit', (code) => {
    if (code == 0) {
        console.log('FFmpeg process exited successfully.');
        console.log(`Buffer size: ${buffer.length} bytes`);
    } else {
        console.error(`FFmpeg process exited with code: ${code}`);
    }
});

ffmpeg.on('error', (err) => {
    console.error('FFmpeg error:', err);
});


    


    Note : I know I'm not doing anything with the buffer, I just want it to work first then I'll start working with the output