Recherche avancée

Médias (9)

Mot : - Tags -/soundtrack

Autres articles (104)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (11824)

  • Live streaming doesn't work

    18 octobre 2017, par John Smith

    I’m using FFmpeg to capture my screen :

    ffmpeg -f dshow -i video="UScreenCapture" -r 5 -s 640x480 -acodec libmp3lame -ac 1 -vcodec mpeg 4 -vtag divx -q 10 -f mpegts tcp://127.0.0.1:1234

    so let it stream to somewhere. The accepter script :

    error_reporting(E_ALL); /* Allow the script to hang around waiting for connections. */
    set_time_limit(30); /* Turn on implicit output flushing so we see what we're getting as it comes in. */
    ob_implicit_flush();


    $address = '127.0.0.1';
    $port = 1234;
    $outfile = dirname(__FILE__)."/output.flv";
    $ofp = fopen($outfile, 'wb');

    if (($sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) === false) { echo "socket_create() failed: reason: " . socket_strerror(socket_last_error()) . "\n"; sleep (5); die; }
    if (socket_bind($sock, $address, $port) === false) { echo "socket_bind() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; sleep (5); die; }
    if (socket_listen($sock, 5) === false) { echo "socket_listen() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; sleep (5); die; }
    if (($msgsock = socket_accept($sock)) === false) { echo "socket_accept() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"; sleep (5); break; }
    do {
       $a = '';
       socket_recv ($msgsock, $a, 65536, MSG_WAITALL);
       fwrite ($ofp, $a);
       //echo strlen($a)."\r\n";
    } while (true);

    it seems to save the stuff to the disk OK. Now here comes the html :

    I dont really know how to do this, but based on an example :

    <video src="/output.flv"></video>

    but it doesn’t do anything. And if I want to stream the live incoming stuff, then what’s the matter ?

  • Using ffmpeg to stream from my camera to AWS MediaLive ?

    25 juin 2018, par Ketaki Tilak

    I have a whole downstream set up consisting of AWS MediaLive->MediaPackage->Cloudfront.
    I’m looking to stream directly from my camera to MediaLive. This requires my camera to produce an RTMP stream, and have an IP address. I’m not quite sure how to put that together. Some background information would be appreciated.
    Setting up my own server isn’t a feasible option. I was wondering if there was a way to use fmmpeg and other services to stream in this manner ?

  • POST 500 Error (BrokenPipeError) when launching Video Stream

    2 décembre 2015, par Charlie

    I’m using Python 3.4.1, nodejs and a Python server to stream video to my browser.

    • The list of videos to play is stored in JSON.
    • I launch the Python server & the nodejs server.

      > node server.js
      Listening for MPEG Stream on http://serverIP:port1
      Awaiting WebSocket connections on ws://serverIP:port2/

    My Python method streams the video using port1, then in the browser I use a jsmpg canvas connected to port2.

       var client = new WebSocket( 'ws://serverIP:port2/' );

    All this works fine in local.

    But when using it on the server, we get a POST 500 (Internal Server Error).
    In shell, the error is :

    pipes[0].stdin.write(Video_editor.clip_final.get_frame(intervals[i][1] + float(t)/thefps).tostring())
    BrokenPipeError: [Errno 32] Broken pipe
    • Both ports are open.
    • The distribution & ffmpeg versions are the same, on my machine & on the server.

    I’ve found similar questions here, but none fitting my configuration. My code is as below. Thanks in advance :)

    def stream_video(self, address):

       #We create one pipe and one command per sequence. Then, for
       #each interval of time out of a composition, we run the basic
       #streaming. Otherwise, we run the corresponding streaming
       fp = open("log_stream.txt", "w") # just log purpose
       ff_cmds = [ffmpeg.FFmpeg_command_builder().get_main_command(address, Video_editor.clip_final)]
       pipes = [sp.Popen(ff_cmds[-1], stdout = DEVNULL, stdin=sp.PIPE, stderr=fp)]
       intervals = [[False, 0]]

       for val in Video_editor.ffmpeg_compositions:
           ff_cmds.append(ffmpeg.FFmpeg_command_builder().get_overlay_command(address, Video_editor.clip_final, val[0], val[2], val[3], val[4], val[5]))
           pipes.append(sp.Popen(ff_cmds[-1], stdout = DEVNULL, stdin=sp.PIPE, stderr=fp))

           intervals.append([True, val[1]])
           intervals.append([False, val[1] + val[2]])

       intervals.append([False, Video_editor.clip_final.end])

       i = 0
       n = 0
       for i in range(len(intervals) - 1):
           print("Interval", intervals[i], intervals[i+1])
           if intervals[i][0]:
               n += 1

           for t in range(int(Video_editor.clip_final.fps*(intervals[i+1][1] - intervals[i][1]))):
               if intervals[i][0]:                                  
                   pipes[n].stdin.write(Video_editor.clip_final.get_frame(intervals[i][1] + float(t)/Video_editor.clip_final.fps).tostring())
               else:
                   pipes[0].stdin.write(Video_editor.clip_final.get_frame(intervals[i][1] + float(t)/Video_editor.clip_final.fps).tostring())

       for pipe in pipes:
           pipe.terminate()