An ffmpeg wrapper for .NET languages
###Introduction I've wanted a simple ffmpeg wrapper to use in some of my projects. I could't find any existing wrapper that suited me so I decided to write my own.
###Usage
//Create a VideoEncoder
VideoEncoder encoder = new VideoEncoder("C:\\ffmpeg.exe");
//Add event handlers
encoder.EventEncodingProgressChanged += encoder_EventEncodingProgressChanged;
encoder.EventEncodingCompleted += encoder_EventEncodingCompleted;
//Start the encoding
encoder.Encode("-y -i INPUT_PATH -c:v libx264 -crf 24 OUTPUT_PATH");The EventEncodingProgressChanged event provides variables like current frame, frame rate, size (in kB), time and bitrate (in kb/s).
###This i would like to add
- Audo encoding support
- An easy way of knowing what went wrong if an encoding failed
- Classes for creating arguments
- A wrapper for ffprobe (to get media info)