Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Creating AVI (videos)

Author
Message
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 13th May 2005 17:32
At the moment i'm creating my own video editing software but i need it to be able to save as an avi file or mpeg or it will be really usless. is there any way to save an avi from whats on the screen, i thought about using the command that puts the camera picture to an image, but then how do you create a video file out of images with DBP?
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 13th May 2005 17:35
Use FRAPS, the demo is pretty good, lets you record 30 seconds - but to do this in DBPro would mean you knowing the file format for AVI video and sound - not an easy task.


Van-B

AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 13th May 2005 17:40
Where do you get the fraps demo from ?
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 13th May 2005 17:44
Why fraps.com of course .


Van-B

AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 14th May 2005 01:38
ok, i will have a look . Thanks if its usefull
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 14th May 2005 01:45
its a peice of software, i will have to build my program to do this
Anti Dragon
21
Years of Service
User Offline
Joined: 19th Feb 2004
Location: Lost....If found, please return.
Posted: 14th May 2005 02:07
Ah.. So you don't just want to record a scene from a DB program (i.e. record in-game footage)? You want to import and edit AVI files using a DB program, right?

....So I lurked for a year, deciding when to strike....
EddieB
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location: United Kingdom
Posted: 14th May 2005 02:10
Quote: "You want to import and edit AVI files using a DB program, right?"


wow. Why use dbpro. Dbpro is for making games. I suggest you learn C++ and do it with that.

Best Regaurds , Eddie

Anti Dragon
21
Years of Service
User Offline
Joined: 19th Feb 2004
Location: Lost....If found, please return.
Posted: 14th May 2005 02:16
Exactly! You'd have to do everything in memblocks - urgh.. Even with a plugin it'd be messy.

....So I lurked for a year, deciding when to strike....
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 14th May 2005 02:31
well not really import, i want it to export edited avi files
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 14th May 2005 15:24 Edited at: 14th May 2005 15:26
You can also make a movie maker program out of DBP by saving images from the screen to file. Due to a glitch in 5.8, I save in DDS format and then use a free batch conversion utility to turn the sequential files into bitmaps. From there, you can find dozens of utilities that will read sequential bitmaps and convert them to AVI files.

So, you can build the images and then shell out to one of these utilities to make the final conversion to AVI, MPEG, etc.
--
TAZ

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 15th May 2005 07:08
how can i make dbp make a movie out of those frames
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 15th May 2005 07:26 Edited at: 15th May 2005 07:29
Check out this site for information on the structures of several movie/animation file formats. If you want the movie output of your software to play in a movie playback program like windows media player then good luck learning file formats like .avi. However if you want something easier then i'd suggest you check out animated .Gif's since they are basically just several picture frames in a single file and displayed using a timer.

If you use .Gif's just convert all the screenshots into memblocks, create a .Gif file, write in the necessary headers, footers, data etc (check out the link above) then save as a .Gif.

NoteJam
20
Years of Service
User Offline
Joined: 11th Apr 2005
Location:
Posted: 15th May 2005 15:54
There are several screen recorder programs free for download at download.com I did not have any luck with them, but I got a copy of camtasia on a magazine cover disk free, and its great, but it cost $300 for camtasia studio.

It will let you record anything you do on your computer as an avi, and works good, except for recording a busy 3d program like ms flight sim. It can record it, but the result is eratic speed video.

Also, You can press your shift key, and print screen key, and take a picture of your screen, and save it as a bitmap.
Then almost any video editor can load bitmaps, even though they were made for editing video. Pentacle Studio AV/Dv or Cannon are a few I know for certain allow this.

Dbp does have a save image and a grab image, and or bitmap commands. The standard for avi files is probably on the internet, if your wanting to make your avi file from dbp. A www.google.com search might get it.
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 16th May 2005 20:19
Hmmmmm looks like Db cant do it then , Thanks for you're help.
KOL
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 17th May 2005 06:39
I found a way to create AVI video from darkbasicpro....
There is a dll that I found while researching this subject some time back on the Blitz3D web site. I think I may have even found some of the information buried somewhere on this site. I don't know if DB classic can do it...
KOL
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 17th May 2005 11:15
Unlike others that frequent this site, I will not tell you to do a better search on this web site

Instead, if you are intrested with the DLL I found, go here to pick it up:

http://www.studiox64.com/blitzavi.php

Then here is an example of how to use it:
(Note: I cannot take any credit for the integration of the DLL into DBPro - that goes to The Tiger, but I can take credit for the example using his code



And that's It...
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 20th May 2005 17:16
do i just download the dll and copy the code and it will work?
KOL
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 25th May 2005 19:49
Sorry it has taken me a while to respond. All that you need to do is get the dll and place that in the directory where your dbpro project is loacted and that's it.

There are only two minor issues that I can think of.... (And here it comes)... #1. If you are using Windows ME, you may have some issues with generating proper Bitmaps. #2. This process seems slow - maybe because of the generation of the bitmap files? It helps If you have a resonably fast PC do to your work.
KOL
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 25th May 2005 20:03
I've adjusted my setting so it won't take weeks to respond...
KOL
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 25th May 2005 20:15
Here the part you'll be interested in:

CreateAviFile("MyMovie","MyMovie.avi",34,"Frame.bmp",1,0)

Do

<Render Image To Screen>

Get Image 1, 0,0,720,480,1
save image "Frame.bmp",1

WriteImageToAviFile()

Delete Image 1

If FrameNumber => MaxFrames
Rem Need To Call CloseAviFile To Properly Create AVI
CloseAviFile()
end
EndIf

loop
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 25th May 2005 21:40
Ok i have not tryed the code yet i will when i get home i will so pate that code above and dowload the dll. Got it
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 26th May 2005 04:23
WOW that demo is great!!
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 26th May 2005 04:24
Thanks kol
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 26th May 2005 04:25
Though one thing how do you do sound?
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 27th May 2005 01:16
Add it with a video-editing software AVIEdit or something like that works too.

KOL
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 27th May 2005 04:06 Edited at: 27th May 2005 09:29
Use video editing software as DARKGuy suggested. I use Ulead's Media Studio Pro 7 to do the dirty work with video files. You can set up your scenes with Darkbasic, then add the soundtrack later. (If you have sound generated with the scene, you might be able to record that with an external sound recording program at real speed, then add later to your completed video.)
Encoding video is a bit of an art itself when you are completely building the video from scratch, so you will probably need to experiment a bit with the settings in the video editing software as well as the
Quote: "
CreateAviFile("MyMovie","MyMovie.avi",34,"Frame.bmp",1,0)
"

34 setting the CreateAviFile call. This may help if your video seems Faster/Slower than expected after converting to a different video format.
AlexI
20
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 4th Jun 2005 21:18
THANKS EVERY ONE , about the sound dont worry

Login to post a reply

Server time is: 2025-05-29 06:34:31
Your offset time is: 2025-05-29 06:34:31