Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (99)

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

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7302)

  • Index Out Of Bounds Exception when merging frames

    25 avril 2016, par Elucidator

    I’m writing software to convert 6 cubemap videos to 1 equirectangular video. Basically, it extracts frames from the 6 cubemap videos with ffmpeg, uses Nona to stitch them into a single frame, and converts the frames back into video.

    I’m getting an IndexOutOfBounds exception when I try to run this. Can you give me any pointers on where my error could be or how to fix it ?

           framecount = Directory.GetFiles(@System.IO.Path.GetDirectoryName(Application.ExecutablePath)).Count(path => Regex.IsMatch(path, @"front\d*[.]jpg"));
           for (int i = 1; i < framecount; i++)
           {
               MergeFrames(i.ToString().PadLeft(5, '0'), i.ToString());
           }



           public void MergeFrames(string framenum, string exportname){
           this.Text = "Merging frame: " + Int32.Parse(framenum) + "/" + framecount;
           progressBar1.Value = ((Int32.Parse(framenum) / framecount) * 100);
           var lines = File.ReadAllLines(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "script.pto");
           lines[13] = "i f0 y0 p-90 r0 v90 n\"" + System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "down" + framenum + ".jpg\"";
           lines[14] = "i f0 y0 p0 r0 v90 n\"" + System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "front" + framenum + ".jpg\"";
           lines[15] = "i f0 y90 p0 r0 v90 n\"" + System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "right" + framenum + ".jpg\"";
           lines[16] = "i f0 y180 p0 r0 v90 n\"" + System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "back" + framenum + ".jpg\"";
           lines[17] = "i y-90 p0 r0 v90 n\"" + System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "left" + framenum + ".jpg\"";
           lines[18] = "i f0 y0 p90 r0 v90 n\"" + System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "top" + framenum + ".jpg\"";
           File.WriteAllLines(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "script.pto", lines);
           String command = "script.pto -o " + exportname + ".png -v";
           ProcessStartInfo cmdsi = new ProcessStartInfo("nona.exe");
           cmdsi.Arguments = command;
           Process cmd = Process.Start(cmdsi);
           cmd.WaitForExit();
           File.Delete(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "down" + framenum + ".jpg");
           File.Delete(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "front" + framenum + ".jpg");
           File.Delete(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "right" + framenum + ".jpg");
           File.Delete(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "back" + framenum + ".jpg");
           File.Delete(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "left" + framenum + ".jpg");
           File.Delete(System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\" + "top" + framenum + ".jpg");
           }
  • HTML5 / and live transcoding with FFMPEG

    8 mai 2014, par TooTallNate

    So from my web server, I would like to use FFMPEG to transcode a media file for use with an HTML <audio></audio> or <video></video> tag. Easy enough right ?

    The conversion would need to take place in real-time, when an HTTP client requested the converted file. Ideally the file would be streamed back to the HTTP client as it is being transcoded (and not afterwards at the end, since that would potentially take a while before any data starts being sent back).

    This would be fine, except that in today’s browsers, an HTML5 audio or video tag requests the media file in multiple HTTP requests with the Range header. See this question for details.

    In that question linked above, you can see that Safari requests weird chunks of the file, including the ending few bytes. This poses a problem in that the web server WOULD have to wait for the conversion to finish, in order to deliver the final bytes of the file to conform to the Range request.

    So my question is, is my train of thought right ? Is there a better way to deliver transcoding content to an <audio></audio> or <video></video> tag that wouldn’t involve waiting for the entire conversion to finish ? Thanks in advance !

  • HTML5 / and live transcoding with FFMPEG

    13 mai 2020, par TooTallNate

    So from my web server, I would like to use FFMPEG to transcode a media file for use with an HTML <audio></audio> or <video></video> tag. Easy enough right ?

    &#xA;&#xA;

    The conversion would need to take place in real-time, when an HTTP client requested the converted file. Ideally the file would be streamed back to the HTTP client as it is being transcoded (and not afterwards at the end, since that would potentially take a while before any data starts being sent back).

    &#xA;&#xA;

    This would be fine, except that in today's browsers, an HTML5 audio or video tag requests the media file in multiple HTTP requests with the Range header. See this question for details.

    &#xA;&#xA;

    In that question linked above, you can see that Safari requests weird chunks of the file, including the ending few bytes. This poses a problem in that the web server WOULD have to wait for the conversion to finish, in order to deliver the final bytes of the file to conform to the Range request.

    &#xA;&#xA;

    So my question is, is my train of thought right ? Is there a better way to deliver transcoding content to an <audio></audio> or <video></video> tag that wouldn't involve waiting for the entire conversion to finish ? Thanks in advance !

    &#xA;