Movie2Image v0.4 -Freeware-

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Movie2Image v0.4 -Freeware-

Post by IceSoft »

Here a new 'developer' tool: Movie2ImageFree.exe

Transfer some movie clip formats into a BMP image formats file sequence.

Actuall features:
- Movie is shown
- Supported movie formats
- Can be saved as 'n' BMP image files
*.avi;*.mpg;*.mpeg;*.asf;*.gif;*.wmv


Screenshot
Image

Download link (ShowCase PureAreaNet):
http://www.purearea.net/pb/showcase/download.php?id=287 ~29KB
_________________
Last edited by IceSoft on Tue Jul 25, 2006 1:38 am, edited 1 time in total.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Ok...I put it on a from BlitzBasic dominated URL ;-)

http://www.codersworkshop.com/viewshowcase.php?id=592
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

One improved version more... (PB4.0)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

Nice Tool, but it cant load some movies.
You did it with PB commands, or via VfW API?
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

dige wrote:Nice Tool, but it cant load some movies.
Please send me the movie (download link)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

dige wrote:Nice Tool, but it cant load some movies.
You did it with PB commands, or via VfW API?
You can do that via directshow.
Look at this include as it contains an imagegrabbing routine:
http://www.purebasic.fr/english/viewtop ... highlight=
Check out OOP support for PB here!
dige
Addict
Addict
Posts: 1391
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

Yeah, that directshow stuff is very cool! But the capture is also only
from current visible frame? Or can I do that without showing the video?
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

In the SDK it says that an imagecopy will be done from the current "rendered" frame. So as I understood up to now that Dshow stuff works as following.

- Create a Graph
- Add/remove Filters if wanted
- Render the Graph or renderfromfile()
- Play

This is the Dshow "intelligent connect" way.

So you could try without playing by just only seeking to the timestamp of the wanted frame/image and see if Dshow internally does "render" that current frame.
Now do capture that image using The Dshow include's Command and open the resulting bmp :)

Or just alter the LoadMedia(...) command of the include and search for the following lines:

Code: Select all

If *p\pGraphBuilder\RenderFile(L(filename), #Null) = #S_OK
      If Parent
        *p\pVideo\get_SourceWidth(@vw) : *p\pWindow\put_width(vw) 
        *p\pVideo\get_SourceHeight(@vh) : *p\pWindow\put_Height(vh) 
        *p\pWindow\put_Left(0)
        *p\pWindow\put_Top(0)
        *p\pWindow\put_Owner(Parent)
        *p\pWindow\put_WindowStyle(#WS_CHILD| #WS_CLIPSIBLINGS)
        *p\pWindow\put_Visible(#OATRUE)
As you can see "put_Visible(#OATRUE)" in the last line is self explaining, so do your test by setting it to #False (watch out #OATRUE is -1 !). Well maybe there's a quite more senseful way in Dshow, but this should fit to your needs ... imho ;)


But honestly .... don't you want WYSIWYG ? Or do you want to end up in a continous imagesequence on your HD?
Check out OOP support for PB here!
Post Reply