mjpeg player
Re: mjpeg player
But you're only starting one new thread, which does mostly all the work. So the performance obviously won't increase much. Start something like 4 threads that simultaniously render different frames to the buffer, then you'll get seriously improved performance.
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
- slime
- Solid Snayke
- Posts: 3162
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: mjpeg player
Just be very mindful of thread safety if you ever re-use ImageData - it's possible to have ImageData:mapPixel be working on a different thread while love.graphics.newImage is copying the ImageData from RAM to VRAM at the same time, garbling the resulting graphics image.
Re: mjpeg player
Use Love JIT, use shaders when available. There you go.
Re: mjpeg player
I don't see any problem doing a multithreaded approach here. Doing calculations on the GPU is good generally, but I think the heaviest part of calculations come from parsing the images, and that's certainly easier to do with LÖVEs standard functions. With 4 cores, getting 80 FPS even for a decently high res video should be possible (since I get around 20 FPS single core).
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Re: mjpeg player
can i use this in my commercial project if i credit you?
good job
also how do i convert my files into mjpeg files?
good job
also how do i convert my files into mjpeg files?
-
- Prole
- Posts: 1
- Joined: Sun May 26, 2013 12:39 am
Re: mjpeg player
I wonder the same, what license is this using?jjmafiae wrote:can i use this in my commercial project if i credit you?
Kind of in a hurry, got a deadline for a gamejam at the end of the month.
But honestly, video in LÖVE. This is the day of glory.
Great job!
Re: mjpeg player
VLC can convert more or less any video to mjpeg + ogg.jjmafiae wrote:can i use this in my commercial project if i credit you?
good job
also how do i convert my files into mjpeg files?
My game called Hat Cat and the Obvious Crimes Against the Fundamental Laws of Physics is out now!
Re: mjpeg player
Hmm, I'm not sure about license thing. It is not so much work actually. So you can just treat it as a free example code. No credits is required.DancingPenguin wrote:I wonder the same, what license is this using?jjmafiae wrote:can i use this in my commercial project if i credit you?
Kind of in a hurry, got a deadline for a gamejam at the end of the month.
But honestly, video in LÖVE. This is the day of glory.
Great job!
- Roland_Yonaba
- Inner party member
- Posts: 1563
- Joined: Tue Jun 21, 2011 6:08 pm
- Location: Ouagadougou (Burkina Faso)
- Contact:
Re: mjpeg player
Git it, dude. Git it.utunnels wrote:Hmm, I'm not sure about license thing. It is not so much work actually. So you can just treat it as a free example code. No credits is required.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: mjpeg player
If you really don't want credits or anything like that, I suggest you waive your rights with CC0, and clearly state that near the download link to the library. That way, it's clear to everyone it's free to use in any way they like without having to credit you.
Help us help you: attach a .love.
Who is online
Users browsing this forum: Amazon [Bot] and 2 guests