Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (11)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à 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) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (6279)

  • I'm trying to merge videos using fluent-ffmpeg, but some times it merges videos , but whenever we tries to merge videos second time it shows error

    9 janvier 2024, par Asif Mujawar
    const express =require('express')
const app = express()
const ffmpeg = require('fluent-ffmpeg')
const ffmpegPath = require('@ffmpeg-installer/ffmpeg')
const ffprobe = require('@ffprobe-installer/ffprobe')

const first = './videos/first.mp4'
const second = './videos/second.mp4'
const third = './videos/third.mp4'
const fourth = './videos/fourth.mp4'

ffmpeg.setFfprobePath(ffprobe.path)
ffmpeg.setFfmpegPath(ffmpegPath.path)

app.use(express.json())

app.use("/",(req,res)=>{
    res.send("hello")

    ffmpeg()
    .input(first)
    .input(second)
 
    .on('end', function() {
      console.log('files have been merged succesfully');
    })
    .on('error', function(err) {
      console.log('an error happened: ' + err.message);
    })
    .mergeToFile("final.mp4")
  })
  

app.listen(8800,()=>{
    console.log("backend is running 8800")
})



    


    but it shows error whenever we try to merge videos second time

    


    an error happened : ffmpeg exited with code 1 : Cannot find a matching stream for unlabeled input pad 3 on filter Parsed_concat_0

    


    an error happened : ffmpeg exited with code 1 : Cannot find a matching stream for unlabeled input pad 3 on filter Parsed_concat_0

    


  • Fluent-ffmpeg : how to record a video with images coming from a websocket stream ?

    22 janvier 2020, par Igino Boffa

    Let’s say I’m trying to record a video with images coming from a webpage canvas, sent to an express server through a socket.io connection :

    //within requestAnimationFrame callback
    io.emit('video-stream',canvas.toDataURL('image/webp'));

    //within "stop recording" button onclick
    io.emit('video-stream-end');

    the Express server receives the event...

    const app = require('express')();
    const server = require('http').createServer(app);
    const io = require('socket.io')(server);
    const ffmpeg = require('fluent-ffmpeg')

    io.on('video-stream', (image) => { /* ffmpeg stuff to record the video*/ });
    io.on('video-stream-end', () => { /* ffmpeg stuff to end recording*/ });

    What should be the code in the two event listeners ?

  • Issues executing ffmpeg on windows

    4 avril 2017, par Somename

    Installed ffmpeg. Added the PATH in system Environment Variables and can execute ffmpeg from anywhere in the cmd. Installed fluent-ffmpeg. Below is my script :

    var express = require('express');
    var bodyParser = require('body-parser');
    var app = express();
    var ffmpeg = require('fluent-ffmpeg');  

    var proc = new ffmpeg({ source: 'myfile.gif' })
     .withAspect('4:3')
     .withSize('640x480')
     .applyAutopadding(true, 'white')
     .saveToFile('myfile.avi', function(stdout, stderr) {
       console.log('file has been converted succesfully');
     });

    app.listen(3000, function() {  
       console.log("Server Running on 3000");
    });

    Getting error :
    enter image description here

    enter image description here

    Please help.