Encoding .NET bitmaps to H264 using FFMPEG


Recently, I was working on a project that involves the encoding of .NET bitmaps using ffmpeg’s h264 encoder with mp4 as container. This video output will be used in a <video> tag in html5. Sample codes have been all over the place so it took me quite a while to come up with a working solution. The official sample from ffmpeg only encodes to raw h264 stream. This is just a basic sample code for reference.

Code · Cpp · Csharp

1 minute

A simple REST client/server console app in C#


For personal reference: Full source code here.

Code · Csharp

1 minute