Record/capture and save videos using LÖVE?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Riisez
Prole
Posts: 5
Joined: Sun May 15, 2016 2:39 pm

Record/capture and save videos using LÖVE?

Post by Riisez »

Hi, everyone! :nyu: I'm new to these forums and I just want to know if this is possible in engine or otherwise. I would like to capture part or all of the game screen and be able to save under basic video extensions with high compatibility. Any help would be much appreciated! :ultraglee:
:joker:
User avatar
zorg
Party member
Posts: 3470
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Record/capture and save videos using LÖVE?

Post by zorg »

Three ways that i can think of:
1. [wiki]love.graphics.newScreenshot[/wiki] - Worst way, slow as hell, not for recording every frame.
2. Record input, then after a level/stage/round/whatever, ask if user wants to save a replay file, then there can be an option to render the replay "offline", as in, not in realtime, frame by frame, with the saved inputs, into many images, and as a last step, to combine them into a video with some external program, like ffmpeg or something. (I'd do this if #3 is not supported)
3. Newer nvidia graphics cards and a better PC support game recording inherently, or if that's not possible, then use Fraps.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Riisez
Prole
Posts: 5
Joined: Sun May 15, 2016 2:39 pm

Re: Record/capture and save videos using LÖVE?

Post by Riisez »

I see. Your second suggestion sounds most promising for use in-game for my purposes, but say I wanted to record a short clip and post it to a player's Facebook or something other on demand? Would this method be sure for that? I need to do some more googling, but perhaps there is a third party API for this I'm overlooking?
:joker:
User avatar
zorg
Party member
Posts: 3470
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Record/capture and save videos using LÖVE?

Post by zorg »

Well, it won't be "realtime", though usually, people record their games with a separate program.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
Riisez
Prole
Posts: 5
Joined: Sun May 15, 2016 2:39 pm

Re: Record/capture and save videos using LÖVE?

Post by Riisez »

Yea. I'd do it the usual way if not for the fact I wanted to create an app for mobile devices that recorded or saved an animation to a file and upload that somewhere. And I can't use the third parties for that in the app. C'est la vie. :(
:joker:
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests