Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (56)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (6422)

  • FFmpeg.AutoGen for converting MP3 already in memory to Wav

    17 décembre 2019, par Jie

    We are implementing a Web service, and the goal is to convert short (a few seconds) mp3 audios to WAV on the fly. The input mp3 content is a binary payload to the service. The speed of our web service is critical, so, saving and reading mp3 and wav from files (even with memory disk) are not an option.

    It seems that all the functions provided in ffmpeg.autogen require either the filepath or url. Any suggestions that we could do the conversion for the mp3 content, which is already in memory ?

    BTW, we are aware of this post : How to convert wav file to mp3 in memory ?, which uses NAudio, but we would like to try ffmpeg, for comparing the speed and some other purposes. Many thanks indeed.

  • Evolution #4063 : Position de la prévisualisation

    2 mars 2020, par b b

    @Jean Marie tu as un scroll vers le haut car la page "se rallonge" du fait de l’ajout d’un bloc sous le formulaire.

    Je trouve l’idée de Cedric intéressante, masquer le formulaire enjs à la prévisu et le remplacer par un lien "Modifier le message" pour permettre de l’afficher de nouveau.

  • Nodejs couldn't find the ffmpeg module for some reason

    29 décembre 2020, par Chawchawchaw

    I need to display the live streaming vidoe(rtsp) on a website(http, vue framework) with nodejs and vue framework.

    


    I've looked it up a lot and got the basic logic of what they are and how it works.
So I'm planning on to convert rtsp to hls with nodejs using socket.io and display it on a web.(let me know if there's more efficient way way to do it)

    


    The thing is, for some reason, when I try to develop it in my backend(nodejs), node just keep sends me an error that FFMpeg module wasn't found. It's been over a week.. please help.

    


    Btw, all works with ffmpeg cmd(window powerShell).

    


    How I set up(ffmpeg) :

    


      

    1. downloaded ffmpeg from https://ffmpeg.org/

      


    2. 


    3. added to system path : C :\Users\Marie\Desktop\ffmpeg-4.3.1-2020-11-19-full_build\bin

      


    4. 


    5. tested with window powerShell and converted rstp to m3u8 :

      


      ffmpeg -i 'rtsp ://ip.ip.ip/media/video1' -hls_time 3 -hls_wrap 10 'C :\Users\Marie\Desktop\tmp\hls/streaming.m3u8'

      


    6. 


    


    below is a screen shot of no. 3 result
enter image description here

    



    


    how I set up(nodejs)

    


      

    1. npm i ffmpeg fluent-ffmpeg rtsp-ffmpeg
    2. 


    3. I've just copied and pasted the example working code and changed rtsp link to mine. e.g : (https://www.npmjs.com/package/rtsp-ffmpeg)
    4. 


    


    => didn't work out, error says can't find ffmpeg module

    


      

    1. set up path manually e.g.) ffmpeg.setFfmpegPath(path)
    2. 


    


    => didn't work out. error says can't find ffmpeg module

    


    ...
I've seriously tried almost everything like delete, re-install ffmpeg, changed path, added path manyally, .. Please help....

    


    Edited :
package.json

    


    {
  "name": "streaming",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "node app.js"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "express": "^4.17.1",
    "ffmpeg": "0.0.4",
    "fluent-ffmpeg": "^2.1.2",
    "jsmpeg": "^1.0.0",
    "node-media-server": "^2.2.4",
    "node-onvif": "^0.1.7",
    "node-rtsp-stream": "0.0.9",
    "rtsp-ffmpeg": "0.0.15",
    "socket.io": "^3.0.4",
    "ws": "^7.4.1"
  }
}


    


    app.js

    


    const Stream = require('node-rtsp-stream')

// let path = 'C:/Users/Marie/Desktop/ffmpeg-4.3.1-2020-11-19-full_build/bin/ffmpeg.exe'
// let path = 'C:/Users/Marie/Desktop/ffmpeg-4.3.1-2020-11-19-full_build/bin/'
let path = 'C:/Users/Marie/Desktop/ffmpeg-4.3.1-2020-11-19-full_build/bin'
const ffmpeg = require('fluent-ffmpeg')

ffmpeg.setFfmpegPath(path)

stream = new Stream({
  name: 'name',
  streamUrl: 'rtsp://ip.ip.ip.ip/media/video1',
  wsPort: 9999,
  ffmpegOptions: { // options ffmpeg flags
    '-stats': '', // an option with no neccessary value uses a blank string
    '-r': 30 // options with required values specify the value after the key
  }
})


    


    Error : spawn ffmpeg ENOENT

    


    app.js (for another test)

    


    const app = require( 'express' )(),
    server = require( 'http' ).Server( app ),
    io = require( 'socket.io' )( server ),
    rtsp = require( 'rtsp-ffmpeg' )

process.env.FFMPEG_PATH = 'C:/Users/Marie/Desktop/ffmpeg-4.3.1-2020-11-19-full_build/bin/ffmpeg.exe'
// console.log( rtsp.FFMpeg )

server.listen( 6147 )
var uri = 'rtsp://ip.ip.ip.ip/media/video1',
    stream = new rtsp.FFMpeg( { input: uri } )
io.on( 'connection', function ( socket )
{
    var pipeStream = function ( data )
    {
        socket.emit( 'data', data.toString( 'base64' ) )
    }
    stream.on( 'data', pipeStream )
    socket.on( 'disconnect', function ()
    {
        stream.removeListener( 'data', pipeStream )
    } )
} )
app.get( '/', function ( req, res )
{
    res.sendFile( __dirname + '/index.html' )
} )


    


    error :
FMpeg executable wasn't found. Install this package and check FFMpeg.cmd property

    


    nodejs version = 10.16.3