Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (105)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (15772)

  • Workflow and data format for sending MediaRecorder output to express server

    30 avril 2021, par Max

    I've been trying to figure this out for a while but got lost between different ways of sending files and different data formats.

    


    I am recording the stream of a canvas animation with MediaRecorder. As far as I understand this returns a blob with the video in binary format. Now I want to send this data to my express server and convert it to an h264 encoded mp4 file. My first impulse was to use ffmpeg on the server. Unfortunately I'm struggling with the details of the implementation. I am unsure on how to best transmit the data and in what format and how to feed it to ffmpeg.

    


    This is what I have on the client side :

    


    // Get stream from element
stream = element.captureStream(30)

// Create media recorder with stream
const recorder = new MediaRecorder(stream)

// Save to file
recorder.ondataavailable = ({ data }) => {
                
    const formData = new FormData()
    formData.append("file", data)

    const options = {
        method: "POST",
        body: formData,
    }

    fetch("http://localhost:3001/api/blob_to_mp4", options).then(
        (res) => {
            console.log(res)
        }
    )
}


    


    And this is what I have on the server side :

    


    "use strict";

const express = require("express");
const cors = require("cors");
const ffmpeg = require("fluent-ffmpeg");
const fs = require("fs");

const port = process.env.PORT || 3001;
const app = express();
var command = ffmpeg();

app.use(cors());
app.use(express.urlencoded({ extended: true }));
app.use(express.json());

app.post("/api/blob_to_mp4", function (req, res) {
  var data = Buffer.from("");

  // Add data
  req.on("data", function (chunk) {
    data = Buffer.concat([data, chunk]);
  });

  // Full data available
  req.on("end", () => {
    req.rawBody = data;
  });

  res.send("hello world");
});

app.listen(port);
console.log(`Server running on port ${port}`);


    


  • ffmpeg : how to save h264 raw data as mp4 file

    15 avril 2016, par monkid

    I encode h264 data by libavcodec.
    ex.

    while (1) {
     ...
     avcodec_encode_video(pEnc->pCtx, OutBuf, ENC_OUTSIZE, pEnc->pYUVFrame);
     ...
    }

    If I directly save OutBuf data as a .264 file, it can`t be play by player. Now I want to save OutBuf

    as a mp4 file. Anyone know how to do this by ffmpeg lib ? thanks.

  • Injecting KLV data in video stream using ffmpeg

    29 octobre 2022, par lsilk

    Does anyone here have any experience with streaming video on one stream, for example 0:0, and then taking a .bin file in klv format and putting it in 0:1, and then outputting that to a mpegts udp stream ? I have it working, the only problem is that I have written a python program to update the klv data file while it is streaming, but it doesn't seem to be updated in the stream.

    


    My command : ffmpeg -I "filepath.mpg" -f data -i "filepath.bin" -filter:v fps=60 -map 0:v:0 -map 1:d:0 -f mpegts udp ://IP:PORT

    


    Ive tried -I from a local file, I've also tried streaming the .bin file from an other stream after updating it, but then the fps drops to about 0.5.