0

I need to extract all keyframes (I-frames) from mp4-video as array of Bitmaps.

I've tryed different ffmpeg wrappers: FFMpeg.NET, FFMpeg-Sharp, FFLib.NET. But all of this projects work only under Windows (maybe I'm wrong, but I can't compile it under my linux machine).

So, how can I solve this problem under linux with Mono?

Nelson Tatius
  • 7,693
  • 8
  • 47
  • 70
  • See here: http://stackoverflow.com/questions/9064962/key-frame-extraction-from-video – Patrik Feb 11 '13 at 14:08
  • Or here: http://www.videoproductionslondon.com/blog/scene-change-detection-during-encoding-key-frame-extraction-code – Patrik Feb 11 '13 at 14:09
  • @Patrik yes, my current approach is to extract keyframes as set of jpeg files and load them as array of Bitmaps. But now I want to accelerate it by directly extracting Bitmaps from videofile. – Nelson Tatius Feb 11 '13 at 14:16
  • So, without storing to disk? – Patrik Feb 11 '13 at 14:24
  • In C you could use libavfilter, so you can use the ffmpeg functionality in code. I'm not sure it's possible to bind them to c#... Anyway, here's a C example, maybe you can use it. https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/filtering_video.c – Patrik Feb 12 '13 at 13:05

0 Answers0