Click here to Skip to main content
11,481,843 members (63,868 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# .NET
I have to generate image from video at particular time, I have used FrameGrabber But that is working fine for WMV, But for MP4 and WebM it is producing Blank Image..Pls help me on this issue.
Posted 7-Jan-13 0:04am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This is depending of the decoder you may set target capture of RGB24 or RGB32, but most of decoders provide other colorspaces - mostly YV12, NV12, IYUV and sometimes YUY2. Some decoders have capabilities to convert to RGB24 or RGB32 output (standard WMV is one of) and you have images, but some decoders have no such feature. Thats why frame grabber does not provide any images.
You just require to place proper colorspace converter between grabber and decoder.

Marcus Kramer at 10-Jan-13 10:26am
Member 8169176 at 18-Jan-13 4:40am
I have used ffmpeg encoder and decoder to capture ffmpeg, Pls suggest me any way to get image from the mp4 video..
Maxim Kartavenkov at 18-Jan-13 6:46am
Change filter merit so it will be selected by default for video playback, be sure that your filter available to output RGB24 and RGB32 - that you can check in GraphEdit tool.
Member 8169176 at 18-Jan-13 7:10am
Hi, thanks for the help, I need to get frame image of the video at particular time, Could you tell me ho to achieve this...
Maxim Kartavenkov at 18-Jan-13 7:20am
Member 8169176 at 18-Jan-13 7:33am
Hi, thanks I need to Implement that in my project, So could you please suggest any .net dll's and code to do that..
Maxim Kartavenkov at 18-Jan-13 7:37am
here you can find sample:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100