Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
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

1 solution

Hello,

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.

Regards,
Maxim.
 
Share this answer
 
Comments
fjdiewornncalwe 10-Jan-13 10:26am    
+5.
Member 8169176 18-Jan-13 4:40am    
Hi,
I have used ffmpeg encoder and decoder to capture ffmpeg, Pls suggest me any way to get image from the mp4 video..
Maxim Kartavenkov 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 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 18-Jan-13 7:20am    
Same

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900