Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (76)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (9281)

  • Dirac now returns AVFrames instead of DiracFrames

    7 octobre 2011, par Jordi Ortiz

    Dirac now returns AVFrames instead of DiracFrames

  • WorkManager returns result before completion of async method in it

    27 mars 2019, par Usman Rana

    I want to apply some editing on the media file before uploading and I’ve used FFMPEG library for that. But as FFMPEG executes the command with a callback in it. So, the WorkManager returns success even before completion of ffmpeg command completion. How can i avoid it and keep WorkManager on hold until the work is completed. I’ve used CountLatch as well to add wait but then ffmpeg doesn’t work starts work and WorkManager remains stuck. Any ideas would be appreciable.
    Thanks

  • Video Streaming shows not working in Micorsoft Edge

    22 novembre 2018, par Ragesh S

    I am newbi in using Video streaming in ASP.Net MVC project. I have a video library webpplication, most of the videos are .mp4 format. Please see my code below.

    Code

    public HttpResponseMessage Get(string filename)
       {
           var filePath = new FileStreameHelpers().GetFilePath(filename);
           if (!File.Exists(filePath))
               return new HttpResponseMessage(HttpStatusCode.NotFound);

           var response = Request.CreateResponse();
           response.Headers.AcceptRanges.Add("bytes");

           var streamer = new FileStreameHelpers();
           streamer.FileInfo = new FileInfo(filePath);
           response.Content = new PushStreamContent(streamer.WriteToStream, new FileStreameHelpers().GetMimeType(Path.GetExtension(filePath)));

           RangeHeaderValue rangeHeader = Request.Headers.Range;
           if (rangeHeader != null)
           {
               long totalLength = streamer.FileInfo.Length;
               var range = rangeHeader.Ranges.First();
               streamer.Start = range.From ?? 0;
               streamer.End = range.To ?? totalLength - 1;

               response.Content.Headers.ContentLength = streamer.End - streamer.Start + 1;
               response.Content.Headers.ContentRange = new ContentRangeHeaderValue(streamer.Start, streamer.End,
                   totalLength);
               response.StatusCode = HttpStatusCode.PartialContent;
           }
           else
           {
               response.StatusCode = HttpStatusCode.OK;
           }

           return response;
       }
     public async Task WriteToStream(Stream outputStream, HttpContent content, TransportContext context)
       {
           try
           {
               var buffer = new byte[6553600];
               using (var video = FileInfo.OpenRead())
               {
                   if (End == -1)
                   {
                       End = video.Length;
                   }
                   var position = Start;
                   var bytesLeft = End - Start + 1;
                   video.Position = Start;
                   while (position <= End)
                   {
                       var bytesRead = video.Read(buffer, 0, (int)Math.Min(bytesLeft, buffer.Length));
                       await outputStream.WriteAsync(buffer, 0, bytesRead);
                       position += bytesRead;
                       bytesLeft = End - position + 1;
                   }
               }
           }
           catch (Exception ex)
           {
               // fail silently
               Utilities.SaveException("FileStreameHelpers - WriteToStream", ex);
           }
           finally
           {
               outputStream.Close();
           }
       }

    it works fine in Firefox and Chrome but it shows error in Microsoft Edge browser like below.

    HTML

    <video width="320" height="240" controls="controls">
       <source src="/api/Media/Get?filename=SampleVideo_1280x720_1mb.mp4" type="video/mp4">
       Your browser does not support the video tag.
    </source></video>

    The remote host closed the connection. The error code is 0x800703E3.

    Please advice.