Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I don't want to user other direct control or any third party tool. I want to make video player using picture box. How fetch image frame and audio from media file?
Posted

1 solution

How fetch image frame and audio from media file?

With extreme difficulty.

Rarely do you find a video with a stream of full frames that you can just pick out and show in a picturebox. FAR more commonly the video and audio are compressed into various formats and same rates which must be decoded using drivers called "codecs".

The user32 library isn't going to help you with decoding this stuff. It's for the creation and management of windows you see on screen, window message handling, data exchange and various other user interface bits, but NOTHING for decoding video and audio and rendering it.

BTW, forget using a picturebox. You don't need it at all.

Perhaps you should be looking into DirectShow instead?
 
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