
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (106)
-
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
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. -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (8938)
-
record video from website using puppeteer + ffmpeg
8 novembre 2020, par rudolfninjaI'm trying to record video from website using the way similar to puppeteer-recorder, but I want to stop recording by myself and then save it to file (after I stopped it). I wrote simple web service for this purpose :


var express = require('express');
var app = express();
const { spawn } = require('child_process');
const puppeteer = require('puppeteer');
var record = true;


app.get('/startRecord', function (req, res)
{
const frun_record = async () => {
 console.log("Start recording");
 const browser = await puppeteer.launch();
 const page = await browser.newPage();
 await page.goto('http://worldfoodclock.com/', { waitUntil: 'networkidle2' });
 var ffmpegPath = 'ffmpeg';
 var fps = 60;

 var outFile = 'E:\\Code\\video-record\\output.webm';

 const args = ffmpegArgs(fps);

 args.push(outFile);

 const ffmpeg = spawn(ffmpegPath, args);

 const closed = new Promise((resolve, reject) => {
 ffmpeg.on('error', reject);
 ffmpeg.on('close', resolve);
 });

 console.log("Entering loop");

 while (record) {
 let screenshot = await page.screenshot({ omitBackground: true });
 await write(ffmpeg.stdin, screenshot);
 }
 ffmpeg.stdin.end();
 console.log("Recording stopped");
 await closed;
};
frun_record();
res.end( "starting recording" );
})

app.get('/stopRecord', function (req, res) {
 record = false;
 res.end( "stopped" );
})

const ffmpegArgs = fps => [
 '-y',
 '-f',
 'image2pipe',
 '-r',
 `${+fps}`,
 '-i',
 '-',
 '-c:v',
 'libvpx',
 '-auto-alt-ref',
 '0',
 '-pix_fmt',
 'yuva420p',
 '-metadata:s:v:0',
 'alpha_mode="1"'
];

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

var server = app.listen(8081, function () {
var host = server.address().address
var port = server.address().port
console.log("Example app listening at http://%s:%s", host, port)
})



But it always record only 1 second video, looks like stream is just overwritten. I tried just save screenshots on disk and it was more than 1 second of video.
So the main question is how to put all the screenshots into the stream and then save it on disk ? And another thing I'd like to know is what the frequency of taking screenshots from web page ?


-
Merge commit ’3f1f6053013d0015e9f115a91a11744807649a07’
3 octobre 2015, par Hendrik LeppkesMerge commit ’3f1f6053013d0015e9f115a91a11744807649a07’
* commit ’3f1f6053013d0015e9f115a91a11744807649a07’ :
configure : address a copy-paste typoMerged-by : Hendrik Leppkes <h.leppkes@gmail.com>
-
how to record a video from local camera connected through rtsp
12 octobre 2018, par voo_dooI was assigned to record a video from a camera which is connected via rtsp protocol. I have an IP address of the camera and ffmpeg installed on windows 10. I looked for the options on the Web but could’t find any. How do I do that ?