
Recherche avancée
Autres articles (41)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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. -
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.
Sur d’autres sites (8845)
-
Reduce write time in stdin stream
20 décembre 2020, par گورو سینیI'm trying to record the web page with puppeteer. For that I'm using the same approach as puppeteer-recorder ie taking the screenshot for each frame and writing to the spawned ffmpeg's stdin stream with slight modifications.


The average time taken for screenshot per frame comes between 1-2ms but the average time to write the screenshot data into stream comes to be 290-300ms per frame.


const ffmpeg = spawn(ffmpegPath, ffmpegArgs(30));

for (let i = 1; i <= totalFrames; i++) {
 let screenshot = await page.screenshot({ omitBackground: true }); --> 1ms
 await write(ffmpeg.stdin, screenshot); --> 290ms
}

ffmpeg.stdin.end();


const write = (stream, buffer) =>
 new Promise((resolve, reject) => {
 stream.write(buffer, error => {
 if (error) reject(error);
 else resolve();
 });
});


const ffmpegArgs = fps => [
 '-y', '-f', 'image2pipe',
 '-r', `${+fps}`,
 '-i', '-',
 '-c:v', 'libx264',
 '-auto-alt-ref', '0',
 '-s:v', '1280x720',
 '-crf', '20',
 '-pix_fmt', 'yuv420p',
 '-metadata:s:v:0', 'alpha_mode="1"',
 '-tune', 'stillimage', 
 '-movflags', '+faststart', 'output.avi'
];



Is there any way to reduce the time taken while writing ? Thanks.


-
Fix encoder real-time only configuration.
10 janvier 2011, par Attila NagyFix encoder real-time only configuration.
-
guard against space/time distortion
29 juin 2011, par Johannguard against space/time distortion