
Recherche avancée
Autres articles (21)
-
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
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 -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (3911)
-
ffmpeg Windows stream desktop real time to web
14 avril 2019, par ilapasleHello i want to stream my Windows desktop in realtime with ffmpeg
for capture desktop i use this code :
ffmpeg.exe -f gdigrab -framerate 60 -i desktop output.mkv
it’s work
Now i not want to record video of my desktop but stream my desktop and view this in web browser.
i need to export stream video in m3u8 filei have use this code :
ffmpeg.exe -f gdigrab -framerate 60 -i desktop -c:v libx264 -crf 18 -maxrate 400k -bufsize 1835k -pix_fmt yuv420p -hls_time 10 -hls_wrap 6 output.m3u8
in my current dir i have 6 ts file and output.m3u8 but i can not open output.m3u8 file, the file is empty why ?
i want to read this file in web browser like this code :
<div>
<video autoplay="true" controls="controls" width="640" height="480">
<source src="output.m3u8" type="application/x-mpegURL"></source>
Your browser does not support HTML5 streaming!
</video>
</div>thanks for advance for your help
-
Upload ffmpeg file output to AWS s3 using NodeJS
29 janvier 2020, par DurraniThe
ffmpeg.output("path/file.mp4")
need astring
path as an argument to write the output file to it. But s3bucket.upload(parms, ...)
need a Binary File as a value to theBody:
in parms JSONProblem : Unable to provide file data using the file path to s3 bucket in NodeJS Environment
FFmpeg()
.input("source.mp4") //video
.setStartTime(startTime)
.setDuration(duration)
.output(output) //output file path: string
.on("end", function() {
console.log("Processing finished successfully");
var params = {
Bucket: process.env.S3_BUCKET,
Key: "videos/filename.mp4",
Body: output //binary file data to be provided not file path
};
const bucket = new S3({
accessKeyId: process.env.S3_ACCESS_KEY_ID,
secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,
region: process.env.S3_REGION
});
bucket.upload(params, function(err, data) {
console.log(err, data);
});
})
.run(); -
Video Seek Scroll (60FPS)
9 avril 2022, par EnijarTrying to achieve an effect of seeking through a video when the page is scrolled. This has been achieved by exporting all frames of the video to JPEG images, pre-loading the images, and rendering them to a
canvas
. However, this approach uses a lot of bandwidth and takes a long time to load on slow networks.

Trying to achieve the same effect by rendering a
video
to acanvas
does not play as smoothly as the image-based approach.

Here is a working demo with the video-based approach :


https://codesandbox.io/s/infallible-chaum-grvi0r?file=/index.html


Since HTMLMediaElement.fastSeek() doesn't have widespread browser coverage, how can one achieve a realtime playback rate of 30-60 FPS ?


Here is the relevant code for the effect (see CSB link above for the full code) :


const video = document.querySelector("video");
const canvas = document.querySelector("canvas");
const ctx = canvas.getContext("2d");

(function tick() {
 requestAnimationFrame(tick);

 const { scrollHeight, clientHeight, scrollTop } = document.body;
 const maxScroll = scrollHeight - clientHeight;
 const scrollProgress = scrollTop / maxScroll;

 canvas.width = document.body.clientWidth;
 canvas.height = document.body.clientHeight;

 // This is the line that causes the issue
 video.currentTime = video.duration * scrollProgress;

 ctx.clearRect(0, 0, canvas.width, canvas.height);
 ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
})();