| A first draft |
|
Here's a first draft of Böhme's code translated in C#. It's more an exercise in .Net interop but I think that the code doesn't leak anymore. Building libavcodec and libavformat libraries for Windows is not entirely trivial. I wasted quite a bit of time because I didn't have the latest version of "binutils" from the GNU toolchains. But a brave soul, Ramiro Polla, created a site where you can get more info. The application doesn't handle mpeg-1 video very well, I haven't figured out why yet. But you can run it on wmv-7 or wmv-8 files without problem. I wrote a small wrapper library in Managed C++ but using the old syntax, so the projects are VS2002, because I haven't looked at the "new stuff" yet (ie VS2005). Also the approach might look strange, I was simply too lazy to translate a structure like AVCodecContext; so I just defined methods to access the needed properties. I'll definitely come back to this stuff in the near future. |
| < Prev | Next > |
|---|











