[DEV] Need help to record video with stable FPS - Sony Xperia E1

Hi all!
I am developing an app and need to record video with stable FPS.
My app records a video and a text file while the user presses a button to go through a list of items. The app records in the text file the time of the presses of the button, in order for me to split the video based on these recorded times.
The time recorded comes from a System.UptimeMillis() - varInitialTime each time the button is pressed.
I am using MediaRecorder and have tried recording with many different configs, like using Timelapse profile, disabling sound, setting framerate option on media recorder and others. The Timelapse profile should record with fixed fps, and yet it recorded with variable fps.
I tried also using JavaCV for android, but looks like the E1 can't handle it, as it lagged hard in the few times it opened.
I searched the XDA forums and other android resources on the net to no avail.
So, is it possible to force the MediaRecorder (or similar) to record with a stable fps? Are there any workarounds for this problem?

Related

[Q] Camera Video, Pause button?

Hi
Is there any way or any application to pause video recording?
If you periodically use Start/Stop buttons, you'll end up a lot of files and you'll need a video editor to achieve result.
a simple pause button for camera ( I have seen it in samsung phones ) will save a lot of time.

[Q] Video Editor usage?

Are there any instructions anywhere for the Samsung Video Editor app that comes with the camera? I can poke it with various sticks and make random things happen on the screen, but I can't tell what any of them mean . If it is supposed to be obvious and intuitive, it didn't work on me...
I also noticed that it refuses to even attempt to edit many of the video formats the camera can record (like the slow motion videos), which seems a little lame for an app that is supposed to enhance the camera.

[Q] MediaRecorder() stalls at HD setting on EK-GC100

Hi,
I am trying to record 1280 x 720 video in a simple video recording app., targetted at the Samsung Galaxy Camera.
It is returned as an available size in Camera.getParameters().getSupportedVideoSizes();
The app works at other sizes I have tried, I really want 720 px, and would appreciate any feedback on what might be the problem.
This setting doesn't cause problems on other devices, but I haven't had a chance to hook them up to adb.
Using MediaRecorder.setVideoSize() to set this, the app starts recording video as one would expect, but with the size set to these values, on calling MediaRecorder.stop(); the app freezes and continues to record video, but neither stops nor completes the file write. I am calling the MediaRecorder like this:
mRec.setCamera(camera);
mRec.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mRec.setAudioSource(MediaRecorder.AudioSource.MIC);
mRec.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
mRec.setVideoSize(1280,720);
mRec.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);
mRec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
mRec.setPreviewDisplay(sh.getSurface());
mRec.setOutputFile(dirPath + fileName + ".mp4");
mRec.prepare();
mRec.start();​

Slow motion setting not working

Hi
My camera record slow motion video but when recording was done and when i want set slow motion speed the setting button not working.
Is there any guide for this?
Thank you everyone
#edit# i have this problem with all video files! Setting button has no functionality!! #
I think it's camera bug or 'slow motion' doesn't support some video formats. In some firmwares there were that problems. You can flash another firmware or install other camera app that supports slow motion.
Danielix J said:
I think it's camera bug or 'slow motion' doesn't support some video formats. In some firmwares there were that problems. You can flash another firmware or install other camera app that supports slow motion.
Click to expand...
Click to collapse
Thank you for your answer
I want to know is every one phones same as me or not?
please some huawei p10 owners tell about their slow motion mode.
can you change slow motion speed or not ?
I had a similar problem but managed to find the solution. When I got my phone, I uninstalled/blocked all of the bloatware. Amongst these programs was also the Videos application, which I blocked. It appeared that this app was needed to edit the videos. Now that I have it unblocked everything is working fine again.
The slow motion and sometimes video recordings are unpredictable as for performance. I think the SLO-MO is bugus. Never worked for me, only intermittent..
Which video app do you mean ? by title and if I uninstall will the camera app still work. I will not be editing in my phone. I have fabulous slomo at hoghest frame rate but the other 2 speeds do not work. If I remove will ithey now work ? Also slo mo ar highest speed have no control over film captured action duration . Thought it would continue recording slomo till I pressed stop ?
Hope for answers for my P20 Pro
thanks

[guide] how to record 240/480/960 fps smooth slowmotion [ no root & no pc needed ]

Today I'm gonna show you that how you could get 240/480/960 fps smooth slowmotion on your device. You don't need to have root or a PC just your device and an application.
App : https://play.google.com/store/apps/details?id=com.danielkorgel.SmoothActionCamSlowmo
( In no way I'm claiming that this app is my intellectual property, I'm just sharing what this app is capable of. )
Just follow the steps in the video below.
For all of you who are skeptical whether this method actually works or this video is just a clickbait. Before you watch this video and get disappointed later. I would like to tell you that how this thing actually works.
First of all you will need to install the app I linked. Then record a video and btw the video you record can be of any frame rate or resolution, you can even produce a "smooth" slow motion video out of a 4k video you recorded. But the final result would be much better if you record at the highest possible frame rate as the app would have more information to work with.
Now after you've set up the app as I showed you in the video, select the video file you recorded. Now after doing other steps click on export, this process would take time depending on fps, resolution, length of the video and how much you slow it down. Eg. A 720p 120fps slow mo video of around 5 seconds took around 2 minutes to export. The way this app works is that first it takes two frames, then guessing what the the frame in between them would've looked like renders it, this process is called motion interpolation. Google this term to know better. Btw professional videographers use this method too in Adobe premiere pro on PC's.
The reason I chose to show how to show the setting up and method of using this app using a video because first of all the the method of setting up the app is easier to understand by a video and as this whole process off exporting takes time so with this video showed you the proof that what I'm telling you all is true.
( In no way this app is my intellectual property and in no way I'm related or know the developer personally. I just found about this app due to my habit of trying different apps and I'm sharing what this app does as I wasn't able to find any other app capable of motion interpolation.)

Categories

Resources