FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MediaBuilder.CreateContainer("").WithAudio(new AudioEncoderSettings(44100, 2)
{
Bitrate = 320000, SamplesPerFrame = 735 // the video should be 60 fps, so I assume it was 44100/735
}).WithVideo(new VideoEncoderSettings(1920,1080,60)).Create();
Sorry but I didn't find a document about this.
First, I create an output:
Here is how I used this method:
And Audio.AddFrame throw
What did I do wrong?