Introducing myself and already asking a question :)

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
adilson
Prole
Posts: 2
Joined: Sun Jul 24, 2011 9:24 pm

Introducing myself and already asking a question :)

Post by adilson »

Hello all

My name is Adilson Oliveira, currently working for Canonical (of Ubuntu fame) as a technical account manager. As a way to keep my coding skills from rusting, I've decided to learn a new language, Lua. Looking for more information about the language landed me here and I am amazed by Löve.
Imediatelly, I tought about using it to scratch an itch I have for quite some time: the lack of a good-looking mame frontend for Linux but there's one missing piece (or at least I think it's missing as I can't find it) that I need for my project: is there any way to play videos inside a Löve application?
Thanks in advance.

Adilson.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Introducing myself and already asking a question :)

Post by bartbes »

Unfortunately it's impossible for us at the moment to implement video playback without adding dependencies the size of emacs.
adilson
Prole
Posts: 2
Joined: Sun Jul 24, 2011 9:24 pm

Re: Introducing myself and already asking a question :)

Post by adilson »

I don't know if this makes any sense but I was able to do it easily in SDL using libvlc and the dependencies were minimal.
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Introducing myself and already asking a question :)

Post by Taehl »

Technically, you could convert your video's frames to individual images, load them in Love, then flip through them while playing your video's audio. This isn't a terribly good solution, however, and gets worse the longer the video is. A better idea would be to recreate the video in Love itself, if at all possible.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Introducing myself and already asking a question :)

Post by nevon »

Taehl wrote:Technically, you could convert your video's frames to individual images, load them in Love, then flip through them while playing your video's audio.
Imagine loading 30 seconds of 800x600 video (padded to 1024x1024) at 30 frames per second into memory.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Introducing myself and already asking a question :)

Post by Jasoco »

Pretend it's the 90's and make sure the "video" frames are only the size of a postage stamp blown up to 4x and padded with an ugly green border. Don't forget to index the colors to less than 16 Windows compatible colors for each frame and make sure it's only 15 frames per second.

Then you'll be good to go. :joker:
LuaWeaver
Party member
Posts: 183
Joined: Wed Mar 02, 2011 11:15 pm
Location: Ohio, USA

Re: Introducing myself and already asking a question :)

Post by LuaWeaver »

nevon wrote:
Taehl wrote:Technically, you could convert your video's frames to individual images, load them in Love, then flip through them while playing your video's audio.
Imagine loading 30 seconds of 800x600 video (padded to 1024x1024) at 30 frames per second into memory.
DAHHH! THE LAG!
"your actions cause me to infer your ego is the size of three houses" -finley
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Introducing myself and already asking a question :)

Post by T-Bone »

I guess the best way would be to have a sort of add-on system for LÖVE. So that when you distribute your game, you would distribute LÖVE, your .love file and whatever add-ons your project uses, like video playback. The video player might be pretty large if it were to contain everything it would need in binary, but that wouldn't be a big issue as long as it wasn't forced into LÖVE games that doesn't use it.

Also, on the subject of loading every frame as a picture and displaying it, don't worry about performance, we'll just use AnAL :crazy:
User avatar
TechnoCat
Inner party member
Posts: 1612
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: Introducing myself and already asking a question :)

Post by TechnoCat »

T-Bone wrote:I guess the best way would be to have a sort of add-on system for LÖVE. So that when you distribute your game, you would distribute LÖVE, your .love file and whatever add-ons your project uses, like video playback. The video player might be pretty large if it were to contain everything it would need in binary, but that wouldn't be a big issue as long as it wasn't forced into LÖVE games that doesn't use it.

Also, on the subject of loading every frame as a picture and displaying it, don't worry about performance, we'll just use AnAL :crazy:
You can already do this. It just requires you to distribute each library compiled for each OS.
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests