Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

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

Autres articles (100)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (10497)

  • 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

    


  • configuring android to run ffmpeg command programmatically

    16 juillet 2013, par Abdul Mateen

    I am unaware with ffmpeg, and wants to run ffmpeg command on android terminal.
    What are the basic steps to configure android so that it can run ffmpeg command through android application program ?

    Thanking you !...