Recording high FPS video
Hi Brad,
I've used the new iOS 7 method for increasing the framerate of the AVCaptureDevice, using reference code from the SloPoke application. However recording the video through a GPUImageMovieWriter still records video around 30fps.
From what I've read it seems you need to use AVCaptureMovieFileOutput to capture video at 60fps (or more). That of course causes significant issues as we can't output to a file and have AVCaptureVideoDataOutput running simultaneously.
Can you add to this thinking at all?
My goal: to record high fps video with no effects and to show a live preview with effects. I can do this using GPUImageView and GPUImageMovieWriter, but not > 30 fps it appears (iPhone 5).
Apologies, I have now been able to record close to 60fps. I had something else using CPU time. I'm at 50-56fps at the moment. Trying for the full 60.
I got it up in a range 55-58 by getting rid of the dummy brightness filter to correct rotation (#1208). Getting better. I'm wondering if I can squeeze a bit more out of it by more tightly coupling the camera and writer.
Also, on the 5s we still get max 60 fps even though the camera is configured for 120 fps (verified). Is there a 60 fps limit in GPUImage / OpenGL ES?
I don't know of any hard limit for framerate internally, unless you're rendering to the screen at some point. The screen might cap a refresh rate at 60 FPS when presenting the render buffer. This could potentially pause the OpenGL ES queue at that point if rendering faster than 60 FPS.
Interesting. Yes, I do have a GPUImageView on screen.
On 23/09/2013, at 6:08 am, Brad Larson [email protected] wrote:
I don't know of any hard limit for framerate internally, unless you're rendering to the screen at some point. The screen might cap a refresh rate at 60 FPS when presenting the render buffer. This could potentially pause the OpenGL ES queue at that point if rendering faster than 60 FPS.
— Reply to this email directly or view it on GitHub.
Hi Brad,
I'm with same problem, as said karlvr in the first post, AVCaptureMovieFileOutput as we can't output to a file and have AVCaptureVideoDataOutput running simultaneously, but I need writing movie file with 60fps. This is possible with GPUImageMovieWriter? How i can make this using GPUImage?
I have video camera showing in screen, running 60fps, recording (the recording quality is not the same as displayed on the screen).
Thank you.
5S allows 120 FPS (useful for slow-motion). Is GPUImage able to handle such frame rates?
@karlvr when I set the frame rate to 60FPS , it will crash on my iPad air. So I wonder how can you set the frame rate to 60FPS.
@BradLarson you said: "This could potentially pause the OpenGL ES queue at that point if rendering faster than 60 FPS". How can we do it? set frame rate to 120fps and 240 fps is not working right now.