Recherche avancée

Médias (91)

Autres articles (75)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (8696)

  • How to "stream" images to ffmpeg to construct a video in .NET 6

    13 septembre 2021, par alkasel

    I'm using FFMPEG command line tool to create a video. As of now I retrive images from memory, but I'd like to avoid writing them to memory in first place and feed FFMPEG directly from memory.

    


    I tried accord-framework.net and it works very well, but now I've switched to .NET 6 and it is not supported (the functionality I used is based on AForge.Video.FFMPEG, an archived project not supporting recent frameworks).

    


    Now as I understand it is possible to have FFMPEG to work on streams instead of images saved on disk. In this post there is a very nice example of doing it in Python.

    


    However I don't know how to do this on .NET 6 using System.Diagnostics.Process : From this post I undestand that I could have FFMPEG take images from standard input using the syntax

    


    -i -


    


    The problem is that I cannot write on standard input before the System.IO.Process (cmd.exe ... \C ffmpeg.exe .... ) has started (I get System.InvalidOperationException : "StandardIn has not been redirected"). However, as soon as such process start, since it find standard input empty, it ends immediately, so I cannot make it in time to fill standard input.

    


    My code looks like this :

    


            MemoryStream memStream = new MemoryStream();

        // Data acquisition
        [...]
        bitmap.Save(memStream, System.Drawing.Imaging.ImageFormat.Bmp);
        [...]

        string ffmpegArgument = "/C ffmpeg.exe -y -i - -c:v libx264 -crf 12 -pix_fmt yuv420p -c:a libvo_aacenc -b:a 128k [...];

        Process cmd = new Process();
        cmd.StartInfo.FileName = "cmd.exe";
        cmd.StartInfo.Arguments = ffmpegArgument;
        cmd.StartInfo.UseShellExecute = false;
        cmd.StartInfo.RedirectStandardInput = true;
        cmd.Start();
        cmd.StandardInput.Write(memStream);


    


    Thanks to everyone who will answer.

    


  • avformat/matroskaenc : Write data directly into dynamic buffers

    26 novembre 2019, par Andreas Rheinhardt
    avformat/matroskaenc : Write data directly into dynamic buffers
    

    This avoids copying the data in small chunks (1024B) into
    the dynamic buffer's small buffer before finally writing them
    into the "big" buffer.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/matroskaenc.c
  • Write empty packets into avi file ffmpeg

    26 avril 2022, par hagor

    A task :&#xA;I have a trusted video event detector. I trust to my event detector for 100% and I want to write an uncompressed frame to my avi containter only if my event detector produces "true" result.&#xA;For frames, when my event detector is producing "false" I would like to write an empty packet because I want to know that there was a frame without event happening.&#xA;Is it possible to keep AVI file alive ? Or do I need to write my own player in this case ?

    &#xA;

    Another option is to calculate timestamps manually and set dts/pts to that calculated time.&#xA;Drawback : I will need to recalculate timestamps to understand how many frames were between events.

    &#xA;

    I am using :

    &#xA;

    &#xA;

    av_write_frame(AVFormatContext, AVPacket) ;

    &#xA;

    &#xA;

    and

    &#xA;

    &#xA;

    av_interleaved_write_frame(AVFormatContext, AVPacket) ;

    &#xA;

    &#xA;

    What is your suggestion/idea ?&#xA;Thank you in advance.

    &#xA;