Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (77)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

Sur d’autres sites (5805)

  • avcodec/libjxl.h : include version.h

    23 janvier 2024, par Leo Izen
    avcodec/libjxl.h : include version.h
    

    This file has been exported since our minimum required version (0.7.0),
    but it wasn't documented. Instead it was transitively included by
    <jxl/decode.h> (but not jxl/encode.h), which ffmpeg relied on.

    libjxl broke its API in libjxl/libjxl@66b959239355aef5255 by removing
    the transitive include of version.h, and they do not plan on adding
    it back. Instead they are choosing to leave the API backwards-
    incompatible with downstream callers written for some fairly recent
    versions of their API.

    As a result, we include <jxl/version.h> to continue to build against
    more recent versions of libjxl. The version macros removed are also
    present in that file, so we no longer need to redefine them.

    Signed-off-by : Leo Izen <leo.izen@gmail.com>

    • [DH] libavcodec/libjxl.h
  • How to read frames of a video and write them on another video output using FFMPEG and nodejs

    29 décembre 2023, par Aviato

    I am working on a project where I need to process video frames one at a time in Node.js. I aim to avoid storing all frames in memory or the filesystem due to resource constraints. I plan to use the ffmpeg from child processes for video processing.&#xA;I tried reading a video file and then output frames of it in the filesystem first for testing purposes :-

    &#xA;

    const ffmpegProcess = spawn(&#x27;ffmpeg&#x27;, [&#xA;  &#x27;-i&#x27;, videoFile,&#xA;  &#x27;testfolder/%04d.png&#x27; // Output frames to stdout&#xA;]);&#xA;

    &#xA;

    and the above code works fine, it saves the video frames as png files in the filesystem. Now instead of saving them in the file system, I want to read the frames on at a time and use a image manipulation library and than write the final edited frames to another video as output

    &#xA;

    I tried this :-

    &#xA;

    const ffmpegProcess = spawn(&#x27;ffmpeg&#x27;, [&#xA;  &#x27;-i&#x27;, videoFile,&#xA;  &#x27;pipe:1&#x27; // Output frames to stdout&#xA;]);&#xA;&#xA;const ffmpegOutputProcess = spawn(&#x27;ffmpeg&#x27;, [&#xA;  &#x27;-i&#x27;, &#x27;-&#x27;,&#xA;  &#x27;outputFileName.mp4&#x27;&#xA;  ]);&#xA;&#xA;ffmpegProcess.stdout.on(&#x27;data&#x27;, (data) => {&#xA;  // Process the frame data as needed&#xA;  console.log(&#x27;Received frame data:&#x27;);&#xA;  ffmpegOutputProcess.stdin.write(data)&#xA;});&#xA;&#xA;ffmpegProcess.on(&#x27;close&#x27;, (code) => {&#xA;  if (code !== 0) {&#xA;    console.error(`ffmpeg process exited with code ${code}`);&#xA;  } else {&#xA;    console.log(&#x27;ffmpeg process successfully completed&#x27;);&#xA;    &#xA;  }&#xA;});&#xA;&#xA;// Handle errors&#xA;ffmpegProcess.on(&#x27;error&#x27;, (err) => {&#xA;  console.error(&#x27;Error while spawning ffmpeg:&#x27;, err);&#xA;});&#xA;

    &#xA;

    But when I tried above code and also some other modifications in the input and output suffix in the command I got problems as below :-

    &#xA;

      &#xA;
    1. ffmpeg process exited with code 1
    2. &#xA;

    3. The final output video was corrupted when trying to initializing the filters for commands :-
    4. &#xA;

    &#xA;

    &#xA;const ffmpegProcess = spawn(&#x27;ffmpeg&#x27;, [&#xA; &#x27;-i&#x27;, videoFile,&#xA; &#x27;-f&#x27;, &#x27;rawvideo&#x27;,&#xA; &#x27;-pix_fmt&#x27;, &#x27;rgb24&#x27;,&#xA; &#x27;pipe:1&#x27; // Output frames to stdout&#xA;]);&#xA;&#xA;const ffmpegOutputCommand = [&#xA; &#x27;-f&#x27;, &#x27;rawvideo&#x27;,&#xA; &#x27;-pix_fmt&#x27;, &#x27;rgb24&#x27;,&#xA; &#x27;-s&#x27;, &#x27;1920x1080&#x27;,&#xA; &#x27;-r&#x27;, &#x27;30&#x27;,&#xA; &#x27;-i&#x27;, &#x27;-&#x27;,&#xA; &#x27;-c:v&#x27;, &#x27;libx264&#x27;,&#xA; &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;,&#xA; outputFileName&#xA;];&#xA;

    &#xA;

    Thank you so much in advance :)

    &#xA;

  • Processing video frame by frame in AWS Lambda with Node.js and FFmpeg [closed]

    29 décembre 2023, par Aviato

    I am working on a project where I need to process video frames one at a time in an AWS Lambda function using Node.js. My goal is to avoid storing all frames in memory or the filesystem due to resource constraints. I plan to use the fluent-ffmpeg library or ffmpeg from child processes for video processing.

    &#xA;

    In the past, I used OpenCV to process videos and frames without writing the frames on the disk or storing all the frames at once on the memory itself. But now as I am using node js, its a little hard to set up the code using ffmpeg, etc.

    &#xA;

    Here is a small snippet from what I did with opencv :-

    &#xA;

    import cv2&#xA;&#xA;cap = cv2.VideoCapture(video_file)&#xA;&#xA;out = cv2.VideoWriter(&#x27;output.mp4&#x27;, fourcc, fps, (width, height))&#xA;&#xA;def generate_frame():&#xA;        while cap.isOpened():&#xA;            code, frame = cap.read()&#xA;            if code:&#xA;                yield frame&#xA;            else:&#xA;                print("completed")&#xA;                break&#xA;&#xA;for i, frame in enumerate(generate_frame()):&#xA;          # Now we can process the video frames directly and write them on the output opencv&#xA;          out.write(editing_frames)&#xA;

    &#xA;

    Additionally, I intend to leverage image processing libraries like Sharp and the Canvas API to edit individual frames before assembling the final video. I am looking for help in handling video frames efficiently within the constraints of AWS Lambda.

    &#xA;

    Any insights, code snippets, or recommendations would be greatly appreciated. Thank you !

    &#xA;