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.
Löve to Video file
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Löve to Video file
There is a story of a farmer whose horse ran away. That evening the neighbors gathered to commiserate with him since this was such bad luck.
He said, "May be." Continued...
He said, "May be." Continued...
Re: Löve to Video file
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.
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
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.
You could save a screenshot every x ticks, but that's not a good idea.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
Re: Löve to Video file
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.
There is a story of a farmer whose horse ran away. That evening the neighbors gathered to commiserate with him since this was such bad luck.
He said, "May be." Continued...
He said, "May be." Continued...
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Löve to Video file
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?
Last edited by kikito on Mon May 21, 2012 12:59 pm, edited 1 time in total.
When I write def I mean function.
Re: Löve to Video file
...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 processkikito 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?
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()
There is a story of a farmer whose horse ran away. That evening the neighbors gathered to commiserate with him since this was such bad luck.
He said, "May be." Continued...
He said, "May be." Continued...
- nevon
- Commander of the Circuloids
- Posts: 938
- Joined: Thu Feb 14, 2008 8:25 pm
- Location: Stockholm, Sweden
- Contact:
Re: Löve to Video file
Just use Kazam. It allows you to record a portion of your screen, and it can also record any pulseaudio stream.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
Re: Löve to Video file
Thanks for introducing me to Kazam. I'll be using that quite a lot.nevon wrote:Just use Kazam. It allows you to record a portion of your screen, and it can also record any pulseaudio stream.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
There is a story of a farmer whose horse ran away. That evening the neighbors gathered to commiserate with him since this was such bad luck.
He said, "May be." Continued...
He said, "May be." Continued...
Re: Löve to Video file
Don't forget about fraps and cam studio!
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 4 guests