
Recherche avancée
Autres articles (47)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (6861)
-
How to get the buffer of the first frame of a video using ffmpeg ? (Node.js)
12 avril 2024, par Mahmoud WalidI 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 MateenI 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 !...
-
How to downsample all '.MTS' videos in a folder via using FFmpeg/or python ?
24 mai 2020, par kkkrr000I have a list of videos('.MTS') formatt.How can I downsample it (keeping the aspect ratio same).I want to downsample all of them to a particular size.



f"ffmpeg -i {vname} -filter:v scale={width}:{height} -c:




I came across this piece of code. Should I do this via terminal or via a python interpreter ?
Can has experience with this ?