Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (21)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans 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, par

    Mediaspip 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, par

    La 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 ilapasle

    Hello 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 file

    i 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 Durrani

    The ffmpeg.output("path/file.mp4") need a string path as an argument to write the output file to it. But s3 bucket.upload(parms, ...) need a Binary File as a value to the Body: in parms JSON

    Problem : 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 Enijar

    Trying 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.

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

    const video = document.querySelector("video");&#xA;const canvas = document.querySelector("canvas");&#xA;const ctx = canvas.getContext("2d");&#xA;&#xA;(function tick() {&#xA;  requestAnimationFrame(tick);&#xA;&#xA;  const { scrollHeight, clientHeight, scrollTop } = document.body;&#xA;  const maxScroll = scrollHeight - clientHeight;&#xA;  const scrollProgress = scrollTop / maxScroll;&#xA;&#xA;  canvas.width = document.body.clientWidth;&#xA;  canvas.height = document.body.clientHeight;&#xA;&#xA;  // This is the line that causes the issue&#xA;  video.currentTime = video.duration * scrollProgress;&#xA;&#xA;  ctx.clearRect(0, 0, canvas.width, canvas.height);&#xA;  ctx.drawImage(video, 0, 0, canvas.width, canvas.height);&#xA;})();&#xA;

    &#xA;