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.
Introducing myself and already asking a question :)
- 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 :)
Unfortunately it's impossible for us at the moment to implement video playback without adding dependencies the size of emacs.
Re: Introducing myself and already asking a question :)
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.
- 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 :)
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+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
- 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 :)
Imagine loading 30 seconds of 800x600 video (padded to 1024x1024) at 30 frames per second into memory.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.
- 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 :)
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.
Then you'll be good to go.
Re: Introducing myself and already asking a question :)
DAHHH! THE LAG!nevon wrote:Imagine loading 30 seconds of 800x600 video (padded to 1024x1024) at 30 frames per second into memory.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.
"your actions cause me to infer your ego is the size of three houses" -finley
Re: Introducing myself and already asking a question :)
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
Also, on the subject of loading every frame as a picture and displaying it, don't worry about performance, we'll just use AnAL
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- 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 :)
You can already do this. It just requires you to distribute each library compiled for each OS.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
Who is online
Users browsing this forum: Bing [Bot] and 4 guests