Video

General FreeBASIC programming questions.
Post Reply
Ophelius
Posts: 428
Joined: Feb 26, 2006 1:57

Video

Post by Ophelius »

Is there an easy way to display a video file on an FB.gfx layer?(avi, mpeg, any format really). Any libraries out there that exists ready to use in FB? I browsed the forum already and no luck. Thanks for any info.
Ophelius
Posts: 428
Joined: Feb 26, 2006 1:57

Post by Ophelius »

I found this recent avi player:

http://freebasic.net/forum/viewtopic.ph ... hlight=avi

but since I'm running Win 7 64-bit, it doesn't work. I would like to find one that is compatible with any windows version, at least so I can use it myself.
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Post by vdecampo »

As long as you do not require audio you can use my AVI reader object to read and display and AVI...

http://www.freebasic.net/forum/viewtopi ... avi+reader

-Vince
Ophelius
Posts: 428
Joined: Feb 26, 2006 1:57

Post by Ophelius »

That's the thing, I need audio too.
Ophelius
Posts: 428
Joined: Feb 26, 2006 1:57

Post by Ophelius »

unless, if I split the video and audio into separate files, and play them separately at the same time, would that work well you think, or would there be noticeable sync problems?

Edit: Vdecampo: The link you gave me doesn't work. I would like to try it out.
vdecampo
Posts: 2992
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Post by vdecampo »

Ophelius wrote:unless, if I split the video and audio into separate files, and play them separately at the same time, would that work well you think, or would there be noticeable sync problems?

Edit: Vdecampo: The link you gave me doesn't work. I would like to try it out.
Sorry about that. Here is an updated link...

You can get the project from here...
http://www.imakegames.com/ccount/click.php?id=10

-Vince

Edit: Hmmm...looks like I need to reupload the file. Can't do that from the computer I am at currently. I will fix it ASAP.

-Vince
kiyotewolf
Posts: 1009
Joined: Oct 11, 2008 7:42
Location: ABQ, NM
Contact:

Post by kiyotewolf »

I made a video filetype of *.CGA, which is the SCREEN 2, saved over and over, repeatedly, in the same open file.

Does this interest you at all?

I use it to make video on DOS computers, but more often, DOS simulated environments in DOSBOX where SCREEN 2 becomes composite CGA with 16 pretty colors!



~Kiyote!

Just tossing that out there.
Landeel
Posts: 777
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Post by Landeel »

For Linux, if you have mplayer installed, you can use:

Code: Select all

screenres 640,480,,32
dim as integer xid
ScreenControl 2, xid
shell "mplayer -wid "+str(xid)+" -really-quiet  video.avi"
Post Reply