Number of frames in video

gardet

Newcomer
Joined
Aug 24, 2009
Hey.

Have searched on google for like two hours without getting anywhere near what im trying to do so i thought you could help out.

The question is just like the title says, How do i get the number of frames in a video file? (Using C#).

--
Henrik
 

gardet

Newcomer
Joined
Aug 24, 2009
Will post my solution if someone else happens to find this on google. I did kinda a workaround for it, used the CLI of MediaInfo with the arguments:

--Inform=Video;%FrameCount% videofile
 
Top Bottom