views:

3987

answers:

5

Does anyone know of a set of bindings for C# to drive the FFMpeg library directly ? I could shell to ffmpeg.exe directly but I found it hard to sync/control as a separate process. any help would be appreciated.

+3  A: 

I've seen this library:

ffmpeg-sharp a wrapper library over the FFmpeg multimedia suite that provides easy to use wrappers for use in C#.

CMS
I had seen this but wasnt sure how good it was. thanks.
MikeJ
I just checkout latest version of ffmpeg-sharp and it doesn't compile :-(
Jakub Šturc
Robert Fraser
-1: None of this currently compiles.
casperOne
+1  A: 

It's actually pretty easy to control as a separate process. If you redirect StandardOut and StandardError then you can subscribe to the Process.OnData* events and receive the command line output. It's then trivial enough to parse the status line using a regex and work out things like % complete and so on.

The hardest thing is working out what command line to pass to get decent quality! I'd recommend this page and this page if you're using H.264/AAC+.

Greg Beech
+2  A: 

Tao.ffmpeg: http://www.taoframework.com/project/ffmpeg it compiles and has a binary dist which is more than can be said for ffmpeg-sharp at this point. It is, however, not particularly easy to use.

SeanG
+1  A: 

Another choice. I think it's easy enough for beginers. You even needn't know about ffmpeg. Just follow the samples. Then it works.

Solid FFmpeg C# .Net Wrapper

Daniel Yuan