Page 1 of 1
Löve to Video file
Posted: Fri May 18, 2012 1:09 pm
by 1u4
Is there a way löve can record a user session (like a game play) to a video file -- Basically a record mode -- like how screen cast software does?
I'm currently looking into how to do a screen cap of a löve sessin with mplayer or ffmpeg, but just thought you might have a better idea.
Thanks.
Re: Löve to Video file
Posted: Fri May 18, 2012 3:30 pm
by Robin
Not really, no.
Re: Löve to Video file
Posted: Fri May 18, 2012 3:54 pm
by coffee
LOVE Framework don't have even movie playback capability. You can create however some timed function for take screenshots. I never tested this to check what potential or how fast this method can be.
https://love2d.org/wiki/love.graphics.newScreenshot.
You can and should use without problem third-party apps for recording your videogame plays of course.
Re: Löve to Video file
Posted: Mon May 21, 2012 3:13 am
by Lafolie
You want to record "love sessions"? Sounds a bit saucy to me.
You could save a screenshot every x ticks, but that's not a good idea.
Re: Löve to Video file
Posted: Mon May 21, 2012 6:56 am
by 1u4
Just realised I can execute linux commands through love. I'm seeing if I can take that snapshot you suggested and pipe it to ffmpeg -- since ffmpeg can create a video from images.
Re: Löve to Video file
Posted: Mon May 21, 2012 8:31 am
by kikito
Given that you are going to use external tools anyway, why don't you use a regular screen capturing program, like those used for creating screencasts?
Re: Löve to Video file
Posted: Mon May 21, 2012 9:58 am
by 1u4
kikito wrote:Given that you are going to use external tools anyway, why don't you use a regular screen capturing software, like those used for creating screencasts?
...because I want to know how it works
...but also because looking at the apps in Linux, it may be tricky to just capture the window area and I think I would still manually have to add sound. It would be nice to automate the whole process
Anyway, here's the ffmpeg code that will grab a stream of images from the disk with a little automation...
Code: Select all
f = io.popen("ffmpeg -r 10 -b 1800 -i /home/asdf/dev/projects/love-dev/os-call/%03d.jpg /home/asdf/Desktop/love-test-1800.mp4")
f:close()
Re: Löve to Video file
Posted: Mon May 21, 2012 10:19 am
by nevon
1u4 wrote: also because looking at the apps in Linux, it may be tricky to just capture the window area and I think I would still manually have to add sound. It would be nice to automate the whole process
Just use Kazam. It allows you to record a portion of your screen, and it can also record any pulseaudio stream.
Re: Löve to Video file
Posted: Mon May 21, 2012 11:26 am
by 1u4
nevon wrote:1u4 wrote: also because looking at the apps in Linux, it may be tricky to just capture the window area and I think I would still manually have to add sound. It would be nice to automate the whole process
Just use Kazam. It allows you to record a portion of your screen, and it can also record any pulseaudio stream.
Thanks for introducing me to Kazam. I'll be using that quite a lot.
Re: Löve to Video file
Posted: Tue May 22, 2012 7:00 pm
by Davidobot
Don't forget about fraps and cam studio!