Screen2AVI Library

User projects written in or related to FreeBASIC.
vdecampo
Posts: 2981
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Screen2AVI Library

Postby vdecampo » Mar 04, 2009 23:54

I have been doing lots of work with AVIs in the last couple of weeks and I thought it would be cool to create a simple way to generate an AVI movie from your FreeBASIC screen. With less than 10 lines of code, you should be able to integrate this into most apps.

The project is open source and you can download it here...
ScreenToAVI Library (Win32 93Kb) Source and Examples


Enjoy!
-Vince
Last edited by vdecampo on Feb 28, 2012 17:07, edited 3 times in total.
BasicScience
Posts: 451
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA

Postby BasicScience » Mar 06, 2009 18:14

Nice work. Is there a limitation on screen resolution? Tried playing around with your code and it crashed at full-screen resolution.
vdecampo
Posts: 2981
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » Mar 06, 2009 18:20

What resolution did you try? I will see where it is crashing. Most codecs will want a horz res to be a multiple of 4. I have used XVID to compress 1650x1280 (although it is slow). I also found a bug where I deallocate the compression options. I will post an update for that soon.

-Vince
vdecampo
Posts: 2981
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » Mar 06, 2009 19:10

I found a bug in the horizontal flipping code. I am now able to do all resolutions (I tried up to 1024x768). I have updated the download to the latest version 0.91.

-Vince
attacke
Posts: 55
Joined: Mar 19, 2006 11:57
Contact:

Postby attacke » Mar 14, 2009 12:22

wow! wonderful!

just as i want tools to work :)
wolfman775
Posts: 104
Joined: Apr 30, 2009 15:20
Location: Dumbarton, Scotland

Postby wolfman775 » Jul 15, 2009 20:58

Can you do sound capture from the program as well?
h4tt3n
Posts: 670
Joined: Oct 22, 2005 21:12
Location: Denmark

Postby h4tt3n » Jul 15, 2009 21:13

Really cool! I'll use this for my freebasic youtube teasers from now on :-)
vdecampo
Posts: 2981
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » Jul 15, 2009 21:14

wolfman775 wrote:Can you do sound capture from the program as well?


No. Sound capture is performed with a completely different API. Once you get the sound data, you use the AVI library to write the audio data in the file. I have not done any work on sound capturing yet.

-Vince
vdecampo
Posts: 2981
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » Jul 24, 2009 19:03

Anybody used this lib successfully with VISTA?
-Vince
h4tt3n
Posts: 670
Joined: Oct 22, 2005 21:12
Location: Denmark

Postby h4tt3n » Jul 24, 2009 20:08

vdecampo wrote:Anybody used this lib successfully with VISTA?
-Vince


I ran the demo on vista and it worked fine!
wolfman775
Posts: 104
Joined: Apr 30, 2009 15:20
Location: Dumbarton, Scotland

Postby wolfman775 » Jul 24, 2009 21:59

Worked fine for me. In the test and in my prog.
Valgouss
Posts: 4
Joined: Apr 08, 2010 2:22
Location: Montreal,Quebec, Canada

screen2avi library

Postby Valgouss » Apr 08, 2010 23:38

Hi, all:
I would like to ask a question where to find the link to download the screen2avi library developed by vdecampo (Vince). I'd like to make an animation in Freebasic and save it directly to the avi file. The link provided with the forum message is dead. May be someone has this library. Please, give a link to download it.
Thanks, Valeri
vdecampo
Posts: 2981
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » Apr 09, 2010 0:30

Sorry I am having web site troubles. You can download it here...

Screen2AVI.zip

-Vince
Valgouss
Posts: 4
Joined: Apr 08, 2010 2:22
Location: Montreal,Quebec, Canada

screen2avi library

Postby Valgouss » Apr 09, 2010 2:13

Hi, Vince:
Thank you very much for your fast response and the link provided. I'll try to use your library.
Valeri
Doggie
Posts: 6
Joined: Apr 13, 2010 4:43

Postby Doggie » Apr 13, 2010 4:51

I am BRAND NEW to FreeBasic and wondering what this needs to have presetup in order to run. I get
"
Command executed:
"C:\Program Files (x86)\FreeBASIC\fbc.exe" "C:\freebasic stuff\Screen2AVI\src\FBIDETEMP.bas"

Compiler output:
C:/freebasic stuff/Screen2AVI/src/FBIDETEMP.bas(32) warning 10(0): UDT with pointer or var-len string fields, at parameter 3
C:/freebasic stuff/Screen2AVI/src/FBIDETEMP.bas(72) warning 10(0): UDT with pointer or var-len string fields, at parameter 3

Results:
Compilation successful
Generated executable: C:\freebasic stuff\Screen2AVI\src\FBIDETEMP.exe

System:
FBIde: 0.4.5
fbc: FreeBASIC Compiler - Version 0.20.0 (08-10-2008) for win32 (target:win32)
OS: Windows NT 6.1 (build 7600)

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest