-2

How can I convert video to a sequence of bitmaps? I need every frame one by one and process them in memory (no disc output).

I chose NReco.VideoConverter but not sure which method can do this. I understand that FFMpegConverter.GetVideoThumbnail() is useless, since you can extract image only based on time input.

Can I use FFMpegConverter.ConvertMedia() ? Please, how? I've been searching for hours.

Christine
  • 25
  • 6

1 Answers1

0

VideoConverter is a .NET wrapper for ffmpeg tool, so you need to google about ffmpeg itself. You have 2 alternatives:

  • use ffmpeg's "fps" filter and extract N thumbnails as image files: Create a thumbnail image every X seconds of the video
  • use VideoConverter's ConvertLiveMedia and decode video into bitmaps ("raw_video" format); in this case you can load images into .NET Bitmap objects without using files at all.
Vitaliy Fedorchenko
  • 8,447
  • 3
  • 37
  • 34