Predictable Capture Options in a .NET Application

I work in C # and have the need to shoot individual frames of video files. As quickly as possible (faster than in real time), I want to search for a specific frame number and write every nth frame to a graphic file format such as BMP or JPEG. It is highly desirable that the frame that was captured be predictable and repeatable, i.e. Did not drop frames.

I have experience with DirectShow, but I don’t know whether it is better to use this technology for this problem in a modern Windows.NET environment. Ideally, I would like to find a .NET or COM library to abstract as much as possible. I do not need to actually display the video file on the screen, and in fact he would prefer not to have a Windows user interface for playing the video.

Does anyone have any suggestions for using technology or specific products? They must be compatible with MPEG-2 and MPEG-4 video files, including DivX. QuickTime support will be a great bonus.

+2
source share
3 answers

I don’t see the reason why you need to do this β€œfaster than in real time,” since you think that you are doing some kind of processing and not showing any video.

I wrote something similar using DirectShow.Net and .Net 2.0. Using directshow will require a bit of previous experience, otherwise it will be difficult for you to try.

IMediaDet , . , , MPEG2. , "" flv. CodeProject - FrameGrabber

Quicktime QuickTimeAlternative

, , DirectShow.Net. , ( : P).

EDIT: . "" , , , , , .

+2

() Image Grabber II.net , . , , , . .NET framework.

-Edoode

0

, - , - ActiveX Delphi, TVideoGrabber. , DirectShow.

TVideoGrabber , - Windows. , ( ) , .NET, Windows... , . , , , concurrency. ...:)

0

Source: https://habr.com/ru/post/1710628/


All Articles