Encode .NET bitmaps to h264 in mp4 container using ffmpeg.
A sample x64 application written in C/C++/C# that generates bitmaps for h264 encoding (using mp4 as container) using ffmpeg. ffmpeg’s dev
and shared
packages are included. These packages were downloaded from this location.
You need to copy ffmpeg’s bin files (*.dll
) to the output directory of the C# project. This project is tested in Debug|x64 configuration so the bin files are already included there.
Note that the output path of the .mp4 file is hardcoded to c:\users\idril\downloads\encoded.mp4
so you might want to change it as well.