Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (33)

  • 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 (...)

  • 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" ;

  • 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 (6261)

  • FFMPEG run time error

    17 mai 2014, par saif

    I added FFMPEG to the references and the build is succeeded but when i run this error is appear

    Could not load file or assembly ’AForge.Video.FFMPEG.dll’ or one of
    its dependencies. The specified module could not be found.

    Looked at the Aforge page
    http://www.aforgenet.com/framework/docs/html/4ee1742c-44d3-b250-d6aa-90cd2d606611.htm and Find this..

    Make sure you have FFmpeg binaries (DLLs) in the output folder of your
    application in order to use this class successfully. FFmpeg binaries
    can be found in Externals folder provided with AForge.NET framework’s
    distribution.

    But I did not understand the meaning of it and how can I do that whether it is the reason of error

  • Node.js Stream Mp3 to http without having to save file

    21 août 2016, par user2758113

    I am trying to stream just audio from a youtube link straight to http with node.js.

    My code looks like this, I am using express 4.0.

    var express = require('express');
    var router = express.Router();
    var ytdl = require('ytdl');
    var ffmpeg = require('fluent-ffmpeg');
    var fs = require('fs');

    router.get('/', function(req, res) {

     var url = 'https://www.youtube.com/watch?v=GgcHlZsOgQo';
     var video = ytdl(url)

     res.set({
         "Content-Type": "audio/mpeg"
     })

     new ffmpeg({source: video})
         .toFormat('mp3')
         .writeToStream(res, function(data, err) {
           if (err) console.log(err)
         })

    });

    module.exports = router;

    Now, I’m able to stream the video’s audio to the response if I save the file then pipe it to the response, but I’d rather try to figure out some way to go from downloading to ffmpeg to response.

    Not sure if this is possible. The main goal is to keep it as light weight as possible, and not have to read from files.

    I’ve seen this code which is essentially what I’d like to do minus the saving to a file part.

    part of the error

  • Retranslating video stream using ffmpeg

    6 mai 2014, par zdimon77

    I want to redirect video stream from rtmp to hls format using nginx rtmp-module.

    This my nginx config

       server {
       exec_options on;
       listen 1936;
       chunk_size 4000;


       application myapp {
        live on;
        exec /usr/bin/avconv -loglevel verbose -re -i rtmp://localhost:1936/myapp/$name -vcodec libx264 -vprofile baseline -acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://localhost:1935/hls/$name;


    }


    }

    server {

      listen 1935;
       chunk_size 4000;

       application hls {
           live on;
           hls on;
           hls_path /tmp/hls;
       }



    }

    But it doesnt work.
    When I try to publish my stream in console (without exec command in nginx.conf)

    ffmpeg -loglevel debug -re -i rtmp://localhost:1936/myapp/test -vcodec libx264 -vprofile baseline -acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://localhost:1935/hls/test

    I see this in console

    root@dcv23 :/usr/share/nginx/html# avconv -i rtmp ://localhost:1935/myapp/testname -vcodec copy -an -f flv rtmp ://localhost:1936/hls/testname

    avconv version 0.8.10-6:0.8.10-1, Copyright (c) 2000-2013 the Libav developers

    built on Feb 5 2014 17:15:30 with gcc 4.7.2

    [flv @ 0x98a3800] invalid stream

    [flv @ 0x98a3800] Estimating duration from bitrate, this may be inaccurate

    Input #0, flv, from ’rtmp ://localhost:1935/myapp/testname’ :

    Duration : N/A, start : 448.536000, bitrate : N/A

    Stream #0.0: Audio: nellymoser, 8000 Hz, mono, s16

    Stream #0.1: Video: flv, yuv420p, 800x600, 1k tbr, 1k tbn

    Output #0, flv, to ’rtmp ://localhost:1936/hls/testname’ :

    Metadata :

    encoder         : Lavf53.21.1

    Stream #0.0: Video: flv, yuv420p, 800x600, q=2-31, 1k tbn, 1k tbc

    Stream mapping :

    Stream #0:1 -> #0:0 (copy)

    Press ctrl-c to stop encoding

    ^Cframe= 200 fps= 7 q=-1.0 Lsize= 1031kB time=35.44 bitrate= 238.2kbits/s

    And process going but m3u8 files dont create.
    Can someone help me please ?
    Thank you.