|
||||||
| Visual Basic Programming Discussion forum for Visual Basic, an event driven programming language and associated development environment from Microsoft for its COM programming model. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||||
|
I don't know about programming one, but you can do this with the normal Windows functions. Just open up the video file in Windows Movie Maker, move the marker to the place in the video you want, then click the little camera icon in the preview box. This will prompt you to save the image.
Otherwise, just load it up in Windows Media Player (WMP) and take a screenshot of it. In some cases the video will not be captured in the screenshot, in which case you need to switch Hardware Acceleration on/off (you can do this inside the Options menus). If you use Winamp, you can slow the video dow to see the individual frames, for greater control. Once you have saved them as images, you can load them like this: Code:
Dim bmp As Bitmap = Image.FromFile("C:/thepicture.jpg")
Code:
PictureBox1.Image = bmp Xav |
|
|||||
|
You could always use your program to control the other software. Anyway, by now you probably have worked it out already.
|
|
|||||
|
Yes i did but this wont really help me because i don't want to store the frames in the HDD but just put them in the memory for future use. And there should be some way of taking it from the memory of the "controlled" program but i think it would take me much time to find out some way of doing this. But ... if you have something in mind that would help me i would appreciate it if you tel me!
Thanks really! |
| Sponsored Links |
|
|
|
|||||
|
In memory for future use? The whole point of memory is that it stores things temporarily. Once the program is shut down, it loses its objects (and hence memory allocation slots).
|
|
|||||
|
What I mean by Future use: After extracting about 50 frames i want to get some pixel information and then delete them from the memory ... I don't mean to use them after some weeks. So what i want is just compare a few frames and see if there is any movement ... maybe I wasn't clear enough at the beginning ... Sorry.
|
|
|||||
|
Oh - well, if you use System.Graphics and save the images as a bitmap, you could always extract the pixels using GetPixel() and SetPixel().
|
|
|||||
|
Actually, you don't even need to do that! All you need is to store the current frame as some sort of image, like a Bitmap or Image file. Then, you use this code:
Quote:
You might use a loop to put each frame in a slot of a Bitmap() array, then just access them from there. |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Animated Ripple effect (Simple) - Flash MX 2004 | ahsan16 | Photoshop Tutorials | 10 | 05-22-2008 05:54 AM |
| Need a program created in VB.Net | Thomas | Request Services (Paid) | 0 | 08-29-2007 06:02 PM |
| New <$200 Video card, got some options | kool | Computer Hardware | 4 | 08-28-2007 05:08 PM |
| AOL opens video search engine to developers | Lop | General Programming | 0 | 09-19-2006 01:26 PM |
| Xav | ........ | 214.93 |
| chili5 | ........ | 80.87 |
| morefood2001 | ........ | 57.41 |
| John | ........ | 52.33 |
| gamiR | ........ | 40.76 |
| MeTh0Dz|Reb0rn | ........ | 40.7 |
| -MW- | ........ | 40 |
| WingedPanther | ........ | 35.4 |
| gaylo565 | ........ | 24 |
| RyanTuosto | ........ | 23.34 |
Goal: 100,000 Posts
Complete: 68%