Recherche avancée

Médias (91)

Autres articles (31)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • 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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (4697)

  • 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;
                       });