Video

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

Video

Postby Ophelius » Sep 18, 2010 3:24

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

Postby Ophelius » Sep 18, 2010 4:33

I found this recent avi player:

http://freebasic.net/forum/viewtopic.php?t=15160&highlight=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: 2982
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » Sep 18, 2010 11:22

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

Postby Ophelius » Sep 18, 2010 17:23

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

Postby Ophelius » Sep 19, 2010 3:50

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: 2982
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Postby vdecampo » Sep 19, 2010 10:18

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:

Postby kiyotewolf » Sep 22, 2010 18:39

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: 745
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Postby Landeel » Sep 22, 2010 21:30

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"

Return to “General”

Who is online

Users browsing this forum: albert, fxm and 3 guests