4

I have a class setup that now gives me a preview on my surface view and allows me to record a video file. I would like to increase the FPS to create a slow motion video and decrease the FPS to create a time lapse video. I have tried using recorder.setVideoFrameRate() and ensured I call it in the right sequence but I just keep getting illegal state exceptions when ever I try to alter any settings on the recording.

Can anyone point me to a tutorial or an example on how to effectively control the settings for the camera?

Cheers.

Scott Helme
  • 4,786
  • 2
  • 23
  • 35
  • 1
    Not possible because slow motion is only achieved with high speed cameras :) – Ali Imran Dec 09 '12 at 15:18
  • Can the camera not record at a higher FPS and then keep playback at a lower FPS? I know some of the default camera apps on phones like the HTC Sensation Xe have a slow motion option. Also, do you know how you could achieve time lapse by reducing the FPS considerably or taking images and constructing a video file from them? – Scott Helme Dec 09 '12 at 15:33
  • By default most of the mobile cameras record the movie at MAX of 30fps. And frame rate is a hardware thing not software so you can't record the movie greater than the camera MAX frame rate. – Ali Imran Dec 09 '12 at 15:38
  • One thing you can do is to play the movie at slow frame rate, for example if you play a 30 FPS movie at 15 FPS then it will slow down it to 50%. To achieve this you need to use some video play back library with slow down feature just like VLC. More info you can find here :-http://stackoverflow.com/questions/7618239/does-android-support-slow-motion-video-playback – Ali Imran Dec 10 '12 at 07:05
  • @ScottHelme did you found a way to do this? I'm afraid the solution of the player won't be enough for a problem I got. – Aldo Reyes Sep 07 '13 at 02:03
  • @AldoReyes not yet :-(... – Scott Helme Sep 07 '13 at 11:44
  • I see, well I think I'm going to give it a try by compiling ffmpeg for android and see what I can do with it. – Aldo Reyes Sep 07 '13 at 17:09
  • Let me know how it goes, I would be interested to find out! – Scott Helme Sep 07 '13 at 19:27
  • Has somebody found any solution? – Vyacheslav Oct 22 '14 at 11:00
  • Hello, does somebody know an android third application which really capture at 120 fps? even if it require high hardware or specifics phones? – Jugali Lakota Jun 04 '16 at 23:23

0 Answers0