Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VB.NET
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 6-Feb-13 5:09am

1 solution

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

Solution 1

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?
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 598
1 OriginalGriff 280
2 George Jonsson 258
3 CPallini 190
4 Animesh Datta 130
0 OriginalGriff 5,985
1 Sergey Alexandrovich Kryukov 5,341
2 CPallini 4,760
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 6 Feb 2013
Copyright © CodeProject, 1999-2014
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