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

A project to port LÖVE to Android handhelds
Locked
User avatar
Reenen
Prole
Posts: 44
Joined: Tue Nov 08, 2011 9:44 am

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

Post by Reenen »

Would it be possible to make love android (but love in general too) play video?
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

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

Post 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.
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post by slime »

User avatar
Reenen
Prole
Posts: 44
Joined: Tue Nov 08, 2011 9:44 am

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

Post by Reenen »

Ok, so it's "on-hold" for 3 years. :D
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

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

Post by slime »

Indeed. Pull request / patch submissions are welcome! :P
iggyvolz
Prole
Posts: 14
Joined: Sun Nov 23, 2014 11:11 pm

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

Post by iggyvolz »

One could simply ffmpeg it into frames and audio. I'll try and make a library for it if I can.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

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

Post 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
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Reenen
Prole
Posts: 44
Joined: Tue Nov 08, 2011 9:44 am

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

Post 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?
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

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

Post 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
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
Locked

Who is online

Users browsing this forum: No registered users and 1 guest