471,337 Members | 1,242 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Working with win32 window

I came accross a code (some prepared program) that plays a certain video on
any button click selected window on the PC. When it stops playing the video,
the original window diplays again its original view.
My mission is to preserve the last farme of the video (or some close view of
it) and have it as a static diaply instead of the original diaply.
Is that possible and how?

Regards

Rami
Jun 27 '08 #1
1 1144
On Thu, 15 May 2008 03:02:10 -0700, Rami <ra**@giron.comwrote:
I came accross a code (some prepared program) that plays a certain video
on
any button click selected window on the PC. When it stops playing the
video,
the original window diplays again its original view.
My mission is to preserve the last farme of the video (or some close
view of
it) and have it as a static diaply instead of the original diaply.
Is that possible and how?
Surely it's possible. But I don't think it would be possible to try to do
this using only .NET/C# functionality. This is doubly true if you are
using some external process to display the video where that external
process doesn't provide an API for you to receive frames from the video
directly.

You're not very specific about any of the problem. However, if you're
dealing with a normal video data file, you can use DirectShow to grab any
specific frame from the video, including the last one (I think it's the
IMediaDet interface that's useful for that, but don't hold me to that :)
). You can use DirectShow from a C# program via interop (p/invoke).
There is even an open source project meant to help with this. Use Google
to search for "directshow .net". It'll be one of the first hits, if not
the very first.

You may in fact find that once you're using DirectShow, it's easier to
just implement whatever video display functionality you want using that,
rather than "some prepared program".

Pete
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Michael Flanagan | last post: by
7 posts views Thread by Mikael Östberg | last post: by
8 posts views Thread by Tony Johansson | last post: by
1 post views Thread by Marek Krzeminski | last post: by
2 posts views Thread by B. | last post: by
7 posts views Thread by newguy194 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.