Recherche avancée

Médias (1)

Mot : - Tags -/remix

Autres articles (1)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (987)

  • How can I read System.Drawing.Bitmaps from a video file using FFMpegCore ?

    18 avril 2021, par David Sackstein

    I am using https://github.com/rosenbjerg/FFMpegCore to write System.Drawing.Bitmaps to a video file and to read them back as bitmaps.

    


    Based on the examples I was able to implement the first step as so :

    


    public static void WriteToH264(System.Drawing.Bitmap[] bitmaps, string fileName)&#xA;{&#xA;    Directory.CreateDirectory(Path.GetDirectoryName(fileName)!);&#xA;&#xA;    WriteToH264(&#xA;        bitmaps.Select(bitmap => new BitmapVideoFrameWrapper(bitmap)),  &#xA;        4,            &#xA;        fileName);&#xA;}&#xA;&#xA;private static void WriteToH264(IEnumerable<ivideoframe> bitmaps, int frameRate, string fileName)&#xA;{&#xA;    var videoFramesSource = new RawVideoPipeSource(bitmaps)&#xA;    {&#xA;        FrameRate = frameRate&#xA;    };&#xA;  &#xA;    FFMpegArguments&#xA;        .FromPipeInput(videoFramesSource)&#xA;        .OutputToFile(fileName, true, options => options&#xA;            .WithVideoCodec(VideoCodec.LibX264))&#xA;        .ProcessSynchronously();&#xA;}&#xA;</ivideoframe>

    &#xA;

    For the second part I need to implement the following function using the same library :

    &#xA;

    public static System.Drawing.Bitmap[] ReadFromH264(string fileName)&#xA;

    &#xA;

    But I have not find an samples of how to do this.

    &#xA;

    How should I implement this function ?

    &#xA;

  • Debug option for drawing motion vectors.

    23 octobre 2010, par Fritz Koenig

    Debug option for drawing motion vectors.

  • postproc : Tweaks to line drawing and blending.

    27 octobre 2010, par Fritz Koenig

    postproc : Tweaks to line drawing and blending.