Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (88)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (9179)

  • how to do mjpeg streaming using ffmpeg and c#

    19 décembre 2017, par Mahesh Vemuri

    I am trying to create a preview of my rtmp stream. But RTMP playback occupies the bandwidth as source, I want to do mjpeg streaming using ffmpeg and c#. Is it possible to do ?

    I am trying to create a webpage where users can monitor the stream. For this I dont need to use RTMP url to watch as it needs more and more bandwidth.

    So, my idea is to capture images and show them in sequence rate controlled at 1 frame per second. In this way users can monitor.

    I have tried various methods like using mjpeg

    ffmpeg.exe -i renditiontest.mp4 -c:v mjpeg -q:v 31 -an sample.avi

    Now, output file is getting generated. But, it is occupying harddisk.

    So, next way is to create images overwriting previous images

    ffmpeg.exe -y -i renditiontest.mp4 -f image2 -updatefirst 1 sample2.jpg

    Now, I tried creating a stream which will continously read the image and write it as response in C#.

    using (WebClient webClient = new WebClient())
                   {
                       string url = "http://localhost/probe_VOD/mjpg/sample2.jpg";
                       var memoryStream = new MemoryStream(webClient.DownloadData(url));

                       response.Headers.AcceptRanges.Add("bytes");
                       response.StatusCode = HttpStatusCode.OK;
                       response.Content = new StreamContent(memoryStream);
                       //response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("render");
                       //response.Content.Headers.ContentDisposition.FileName = "sample.jpg";
                       response.Content.Headers.ContentType = new MediaTypeHeaderValue("multipart/x-mixed-replace; boundary=myboundary");
                       response.Content.Headers.ContentLength = memoryStream.Length;
                   }
                   return response;

    Please let me know how do I acheive this.

  • Increasing speed of a video in C# ?

    13 décembre 2017, par alan samuel

    I am trying to increase the speed of a video using NReco.VideoConverter.FFMpegConverter

    Here is what I have tried.

     var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
     string inputfile = @"C:\Users\Alan\Desktop\Video.flv";
     string outputfile = @"C:\Users\Alan\Desktop\converted.mp4";


     ConvertSettings convertSettings = new ConvertSettings
           {
               MaxDuration = 10,
               VideoFrameRate = 12
               //VideoFrameCount = 10

           };

    ffMpeg.ConvertMedia(inputfile,Format.flv, outputfile,Format.mp4,convertSettings);

    What I want is like a video with an increased playback like in this example - https://www.youtube.com/watch?v=6tQ1ewhGiwk

    This is what I am basically trying to do.

  • FFMPEG : tee pseudo-muxer to RTMP endpoint with authorization

    20 janvier 2019, par stevendesu

    I have an RTMP server which requires authorization to stream to. In FFMPEG, I can stream to it like so :

    ffmpeg \
       -i <input /> \
       -c:v libx264 \
       -c:a speex \
       -f flv \
       "rtmp://server/instance live=true pubUser=user pubPasswd=pass playpath=stream_id"

    Now I wish to split this stream out to two such endpoints without re-encoding

    I can get it working with re-encoding like so :

    ffmpeg \
       -i <input /> \
       -c:v libx264 \
       -c:a speex \
       -f flv \
       "rtmp://server1/instance live=true pubUser=user pubPasswd=pass playpath=stream_id"
       -c:v libx264 \
       -c:a speex \
       -f flv \
       "rtmp://server2/instance live=true pubUser=user pubPasswd=pass playpath=stream_id"

    However I tried taking a look at FFMPEG’s guide on this subject and it led to nothing but errors :

    Attempt 1

    Direct usage of -f tee

    ffmpeg \
       -i <input /> \
       -c:v libx264 \
       -c:a speex \
       -f tee \
       -map 0:v \
       -map 0:a \
       "[f=flv]rtmp://server1/instance live=true pubUser=user pubPasswd=pass playpath=stream_id| \
        [f=flv]rtmp://server2/instance live=true pubUser=user pubPasswd=pass playpath=stream_id"

    Yields :

    [rtmp @ 0x3fe7f40] No credentials set
    [rtmp @ 0x3fe7f40] Server error: [ AccessManager.Reject ] : [ code=403 need auth ] :

    Attempt 2

    Using quotes around URL and parameters

    ffmpeg \
       -i <input /> \
       -c:v libx264 \
       -c:a speex \
       -f tee \
       -map 0:v \
       -map 0:a \
       "[f=flv]\"rtmp://server1/instance live=true pubUser=user pubPasswd=pass playpath=stream_id\"| \
        [f=flv]\"rtmp://server2/instance live=true pubUser=user pubPasswd=pass playpath=stream_id\""

    Yields :

    [tee @ 0x39837e0] Slave '[f=flv]"rtmp://server1/instance live=true pubUser=user pubPasswd=pass playpath=stream_id"': error opening: No such file or directory

    Attempt 3

    Quotes around everything

    ffmpeg \
       -i <input /> \
       -c:v libx264 \
       -c:a speex \
       -f tee \
       -map 0:v \
       -map 0:a \
       "\"[f=flv]rtmp://server1/instance live=true pubUser=user pubPasswd=pass playpath=stream_id\"| \
        \"[f=flv]rtmp://server2/instance live=true pubUser=user pubPasswd=pass playpath=stream_id\""

    Yields :

    [NULL @ 0x393a820] Unable to find a suitable output format for '"[f=flv]rtmp://server1/instance live=true pubUser=user pubPasswd=pass playpath=stream_id"'

    Attempt 4

    Alternate URL schema to avoid spaces

    ffmpeg \
       -i <input /> \
       -c:v libx264 \
       -c:a speex \
       -f tee \
       -map 0:v \
       -map 0:a \
       "[f=flv]rtmp://user:pass@server1/instance/stream_id| \
        [f=flv]rtmp://user:pass@server2/instance/stream_id"

    This seemed to work, but FFMPEG started outputting this :

    frame=   89 fps= 13 q=0.0 Lsize=N/A time=00:00:03.27 bitrate=N/A dup=18 drop=0 speed=0.469x

    Notice the bitrate=N/A and the speed=0.469x ? Both concerns. Then I go to the player to watch my stream and it’s solid black. No data is actually coming through.

    What am I doing wrong, and how do I get this stream working ?