What is the best way to make a video player using C# so that we can take the required snapshot by using button.
Asked
Active
Viewed 5,706 times
-4
-
This is not a real question. Please read [faq] and [ask] – Soner Gönül Jan 06 '13 at 10:00
-
Very broad question, There is plenty of 3rd party applications/librarys that can do this, or is there a specific reason to build one from scratch – sa_ddam213 Jan 06 '13 at 10:03
-
SUggest me one.. windows media player doesn't support snapshot option. – Hem Poudyal Jan 06 '13 at 10:10
4 Answers
3
its not easy to make pure video player in c#, btw you have to you use c++ libraries, anyway best is to find a library, vlc has some dll to inject it in your c# application. Here is more info..
Hmm if you want just snapshot by code.. now its more different, you can use EmguCv for that. Its opencv wrapper for .net.

Community
- 1
- 1

Mustafa Ekici
- 7,263
- 9
- 55
- 75
-
-
https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/298989_10151163491912126_607550067_n.jpg – Hem Poudyal Jan 06 '13 at 10:13
-
You made something wrong, i use it many times in my application.. btw you get error? or something? – Mustafa Ekici Jan 06 '13 at 10:13
-
you can check the photo i uploaded https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/298989_10151163491912126_607550067_n.jpg – Hem Poudyal Jan 06 '13 at 10:16
2
The best one I know for stuff like this is DirectShow.NET, its quite easy to use and will allow you to take screenshots.

sa_ddam213
- 42,848
- 7
- 101
- 110
0
Easiest way is using Windows Media Player Control in WinForms
Using the Windows Media Player Control with Microsoft Visual Studio
Embedding the Windows Media Player Control in a C# Solution
EDIT: For capturing a screenshot check this discussion
Capture frame from video

Yakup Ünyılmaz
- 404
- 3
- 11
-
do you have any idea, how to take snapshot while using windows media player control in winforms? – Hem Poudyal Jan 06 '13 at 10:26
-