Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (15)

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

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

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (4525)

  • 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

  • rtmpdump check status by command line

    2 mai 2014, par David

    I tried doing rtmpdump -r "rtmp-raw=rtmpe ://watch.playfooty.tv/live playpath=nba1569 swfUrl=http://www.playfooty.tv/play/player/player.swf live=1 pageUrl=http://www.playfooty.tv/"
    But the output it´s like offline always

    RTMPDump v2.2e
    (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
    DEBUG: Parsing...
    WARNING: Unknown protocol!

    DEBUG: Parsed host : watch.playfooty.tv
    DEBUG: Parsed app : live playpath=nba1569 swfUrl=http:/
    DEBUG: Protocol : RTMP
    DEBUG: Hostname : watch.playfooty.tv
    DEBUG: Port : 1935
    DEBUG: Playpath : www.playfooty.tv/play/player/player.swf live=1 pageUrl=http://www.playfooty.tv/
    DEBUG: tcUrl : rtmp://watch.playfooty.tv:1935/live playpath=nba1569 swfUrl=http:/
    DEBUG: app : live playpath=nba1569 swfUrl=http:/
    DEBUG: live : no
    DEBUG: timeout : 30 sec

    I tried a lot of links of a list and seems offline with this command, but When I play it in a software it worked.

    Does anyone have an idea how to test if this kind of links are alive or die ?

    Thanks !

  • How do I use ffmpeg to deliver the video

    19 juin 2014, par user3750991

    Our destination :

    We want to install camera on our device of arm architecture with capture real-time video and send them to ffserver, then we can watch this video from h ttp ://172.16.51.29:8090/stat.html on the other computer in the same time.

    Device IP address : 172.16.51.29
    computer IP address : 172.16.51.26

    1 I start the server on device

    ffserver -f /etc/ffserver.conf

    2 Camera start to capture video on device

    ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 h ttp ://127.0.0.1:8090/cam1.ffm

    3 I got the messages

    Error while opening encoder for output stream #0.0 - maybe incorrect
    parameters such as bit_rate, rate, width or height

    4 Test

    ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 cam1.asf

    Command above is perfect to produce video named cam1.asf

    5 Fix incorrect parameters such as bit_rate, rate, width or height

    ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 -b 100k h ttp ://127.0.0.1:8090/cam1.ffm

    But use the command above produce the message presented below

    Input #0, video4linux2, from ’/dev/video0’ :
    Duration : N/A, start : 24300.069612, bitrate : 36864 kb/s
    Stream #0.0 : Video : rawvideo, yuyv422, 320x240, 36864 kb/s, 30 tbr, 1000k tbn, 30 tbc
    Sat Jan 1 07:09:07 2000 127.0.0.1 - - [GET] "/cam1.ffm HTTP/1.1" 200 4149
    [buffer @ 0x2f1a0] w:320 h:240 pixfmt:yuyv422
    [avsink @ 0x2f7e0] auto-inserting filter ’auto-inserted scaler 0’ between the filter ’src’ and the filter ’out’
    [scale @ 0x2ea60] w:320 h:240 fmt:yuyv422 -> w:320 h:240 fmt:yuv420p flags:0x4
    Sat Jan 1 07:09:07 2000 127.0.0.1 - - [POST] "/cam1.ffm HTTP/1.1" 200 0
    Segmentation fault

    What should I do to fix this issue ? Thanks.