Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to extract embedded images from various audio/video files without using any external libraries. I have already extracted image from MP3 file (from the Id3v2 header) by reading it in binary.

But I am not able to find way to do the same for other formats. I am trying to lokk into the headers to find information on image.

Kindly help.

Thank you!
Posted
Comments
mbue 6-Aug-11 15:32pm    
You cant find any because there arnt any images inside the wav, avi and mpeg formats. The thumbnails in the explorer view are created on the fly by supporting IExtractImage from the files persist handler.
Regards.
VinayChoudhary99 8-Aug-11 4:16am    
Hi, Thank you. That should work. But I am trying to extract first frame from video file and then use it. Can you please tell me how to do that, or give me some links.

Thank you.
mbue 8-Aug-11 4:35am    
Walk through the registry and look for the persist handler of the file types. You can use the IPersist (IPersistFile, IPersistStream) to load the objects. After loading you can ask (QueryInterface) the persist object for the IExtractImage interface. Another way is to use (i.e. ffmpeg) to extract a frame on a given timestamp.
Regards.
VinayChoudhary99 10-Jan-12 2:38am    
Thank you, your solution works. If you could post a solution i could accept it as an answer!

1 solution

You cant find any because there arnt any images inside the wav, avi and mpeg formats. The thumbnails in the explorer view are created on the fly by supporting IExtractImage from the files persist handler.
Walk through the registry and look for the persist handler of the file types. You can use the IPersist (IPersistFile, IPersistStream) to load the objects. After loading you can ask (QueryInterface) the persist object for the IExtractImage interface. Another way is to use (i.e. ffmpeg) to extract a frame on a given timestamp.
Regards.
 
Share this answer
 

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