Page 1 of 1

Video playback (at least on android...?)

Posted: Sat Nov 29, 2014 7:25 pm
by Reenen
Would it be possible to make love android (but love in general too) play video?

Re: Video playback (at least on android...?)

Posted: Sat Nov 29, 2014 7:40 pm
by bobbyjones
I think anything is possible, but I don't think devs ever had a reason to add that to love. But for android and iOS it would have some uses. But I don't think they are going to add it anytime soon.

Re: Video playback (at least on android...?)

Posted: Sat Nov 29, 2014 8:04 pm
by slime

Re: Video playback (at least on android...?)

Posted: Sat Nov 29, 2014 8:18 pm
by Reenen
Ok, so it's "on-hold" for 3 years. :D

Re: Video playback (at least on android...?)

Posted: Sat Nov 29, 2014 8:22 pm
by slime
Indeed. Pull request / patch submissions are welcome! :P

Re: Video playback (at least on android...?)

Posted: Sat Nov 29, 2014 9:02 pm
by iggyvolz
One could simply ffmpeg it into frames and audio. I'll try and make a library for it if I can.

Re: Video playback (at least on android...?)

Posted: Sat Nov 29, 2014 9:13 pm
by josefnpat
iggyvolz wrote:One could simply ffmpeg it into frames and audio. I'll try and make a library for it if I can.
Take a look at this lib, it works on android for my game:

https://github.com/josefnpat/LoveVideo

Re: Video playback (at least on android...?)

Posted: Sat Nov 29, 2014 11:23 pm
by Reenen
Ok, I follow the implentation.

It seems that it converts the file into a currently non-standardized format right? Meaning a series of pngs, and an audio track?

How is the file sizes?

Re: Video playback (at least on android...?)

Posted: Mon Dec 01, 2014 7:49 am
by josefnpat
Reenen wrote:It seems that it converts the file into a currently non-standardized format right? Meaning a series of pngs, and an audio track?
It does use raw assets, as most of love's video ventures have been pretty hacky, but someone has managed to get an mjpeg implementation done here, but it doesn't work on android: https://github.com/utunnels/mjpeg-playe ... OVE-engine
Reenen wrote:How is the file sizes?
Depends on what kind of compression you use. Here's a sample video encoded with different settings:

http://50.116.63.25/public/lovevideo/samples/bigbuck/

Considering metadeta can't really be shared by the frames with the method that's used, there is considerable decompression.

But hell; it gets the job done.

Here's the current discussion on the forums: viewtopic.php?f=5&t=78830