Recherche avancée

Médias (91)

Autres articles (34)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (4535)

  • Getting troubles when I generate rtsp stream as an output with ffmpeg from static images as an input

    10 août 2013, par Ilya Yevlampiev

    I'm trying to start the rtsp stream via feeding ffmpeg with static images and feeding ffserver with ffmpeg output.

    The first problem appears from the ffserver.config :

    Port 12345
    RTSPPort 8544
    BindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandwidth 1000
    CustomLog /var/log/ffserver-access.log
     <feed>
    File /tmp/videofeed.ffm
    FileMaxSize 3M
    #Launch ffmpeg -s 640x480 -f video4linux2 -i /dev/video0
    #Launch ffmpeg http://localhost:8090/videofeed.ffm
    Launch ffmpeg -loop 1 -f image2 -r 20 -b 9600 -i Janalif.jpg -t 30 http://127.0.0.1:8090/videofeed.ffm -report
    ACL allow 127.0.0.1
     </feed>
     <stream>
    Format rtsp
    #rtsp://localhost:5454/test1-rtsp.mpg
    Feed videofeed.ffm
    #webcam.ffm
    Format flv
    VideoCodec flv
    VideoFrameRate 30
    VideoBufferSize 80000
    VideoBitRate 200
    VideoQMin 1
    VideoQMax 5
    VideoSize 640x480
    PreRoll 1
    NoAudio
     </stream>
     <stream>
    Format status
     </stream>

    Please ignore codecs etc in stream part. The problem appears for RTSPPort, after starting the server nmap shows no binding to 8544, only 12345 port is used.

    8090/tcp  open  unknown
    12345/tcp open  netbus

    I can download mpeg stream through http from http://localhost:12345/test1-rtsp.mpg. How can I setup 8544 port working ?

    and another question is about Launch part of the stream. Am I right, that ffserver executes the content of Launch line ? If so, how can i configure ffserver to wait the stream in some particular port, but start streaming at the moment I desire ?

    P.S. The solution looks like Säkkijärven polkka, hoowever the idea behind this construct is to provide the controlled rtsp stream to emulate the camera output. In future I plan to substitute the command line for ffmpeg with some java bindings for it to produce the program-controlled images to the camera input to test the computer vision, that's why I need a way to launch ffmpeg independently on ffserver.

  • How to get the video duration using FFMPEG in C# asp.net

    23 août 2013, par Hamad

    I want to get the video file duration in string using C#. I searched the internet and all i get is :

    ffmpeg -i inputfile.avi

    And every1 say that parse the output for duration.

    Here is my code which is

    string filargs = "-y -i " + inputavi + " -ar 22050 " + outputflv;
       Process proc;
       proc = new Process();
       proc.StartInfo.FileName = spath;
       proc.StartInfo.Arguments = filargs;
       proc.StartInfo.UseShellExecute = false;
       proc.StartInfo.CreateNoWindow = false;
       proc.StartInfo.RedirectStandardOutput = false;
       try
       {
           proc.Start();

       }
       catch (Exception ex)
       {
           Response.Write(ex.Message);
       }

       try
       {
           proc.WaitForExit(50 * 1000);
       }
       catch (Exception ex)
       { }
       finally
       {
           proc.Close();
       }

    Now please tell me how can i save the output string and parse it for the video duration.

    Thanks and regards,

  • Convert static file to h264 stream with FFmpeg [on hold]

    28 août 2013, par Vprnl

    I'm building a NodeJS application that converts a static videofile to a streamable video which is being sent to a client (iPad or browser) on the fly (using the fluent-ffmpeg module).

    Everything is set and all I need now is to configure ffmpeg correctly. But I'm having a lot of problems with ffmpeg.

    With my current settings, I hear audio right away, but the picture starts a couple of seconds later. Then, my 30 second test file has been compressed to 3 seconds of high speed imagery.

    How can I configure my ffmpeg so it will stream the mp4 correctly (in one pass through of course). It seems it is streaming raw h264, if that is the case how can I force the mp4 container. I thought I was doing that by using '-f mp4'

    my correct settings are :

      &#39;-crf 22&#39;,&#39;-c:v libx264&#39;,&#39;-f mp4&#39;,&#39;-movflags&#39;,&#39;faststart+frag_keyframe&#39;

    I've also tried :

    &#39;-r 30&#39;,&#39;-crf 30&#39;,&#39;-analyzeduration 0&#39;,&#39;-probesize 1000&#39;,&#39;-rc_lookahead 0&#39;,&#39;-fflags nobuffer&#39;,&#39;-g 75&#39;,&#39;-ss 0&#39;,&#39;-threads 0&#39;,&#39;-vcodec libx264&#39;,&#39;-qcomp 0.6&#39;,&#39;-qmin 10&#39;,&#39;-qmax 51&#39;,&#39;-qdiff 4&#39;,&#39;-b:v 400k&#39;,&#39;-maxrate 400k&#39;,&#39;-bufsize 800k&#39;,&#39;-acodec mp3&#39;,&#39;-ab 192k&#39;,&#39;-ar 44100&#39;,&#39;-tune zerolatency&#39;,&#39;-f mp4&#39;,&#39;-movflags&#39;,&#39;faststart+frag_keyframe&#39;

    As you can see by the amount of options I've tried, I'm getting pretty desperate. I'm basically just running around in the dark.

    I don't think it matters much but these are my request headers :

                       res.writeHead(200, { // NOTE: a partial http response
                           &#39;Content-Type&#39;:&#39;video/mp4&#39;,
                           &#39;Content-Length&#39;:stat.size,
                           &#39;Content-Range&#39;:&#39;bytes &#39;+start+&#39;-&#39;+end+&#39;/&#39;+stat.size,
                           &#39;Transfer-Encoding&#39;:&#39;chunked&#39;
                       });