Recording with Correct FPS in Android (120FPS CamcorderProfile Not Working) -




i'm using following code request phone (lg g5) record using high speed high quality profile, specifies 120fps , 720p.

    camcorderprofile mprofile = camcorderprofile.get(camcorderprofile.quality_high_speed_high);      mmediarecorder.setaudiosource(mediarecorder.audiosource.mic);     mmediarecorder.setvideosource(mediarecorder.videosource.surface);     mmediarecorder.setoutputformat(mediarecorder.outputformat.mpeg_4);     if (mnextvideoabsolutepath == null || mnextvideoabsolutepath.isempty()) {         mnextvideoabsolutepath = getvideofilepath(getactivity());     }     mmediarecorder.setoutputfile(mnextvideoabsolutepath);     mmediarecorder.setvideoencodingbitrate(mprofile.videobitrate);     mmediarecorder.setvideoframerate(mprofile.videoframerate);     mmediarecorder.setvideosize(mprofile.videoframewidth, mprofile.videoframeheight);     mmediarecorder.setvideoencoder(mediarecorder.videoencoder.h264);     mmediarecorder.setaudioencoder(mediarecorder.audioencoder.aac); 

unfortunately frames per second specified ignored. video coming out @ around 25fps! can fix this?

thank you!!

on platform, media_profiles.xml defined capability of video/audio encoder. take qc msm8998 example:

   <encoderprofile quality="high" fileformat="mp4" duration="30">   <video codec="h264"          bitrate="42000000"          width="3840"          height="2160"          framerate="30" />    <audio codec="aac"          bitrate="156000"          samplerate="48000"          channels="2" /> </encoderprofile> 

i think may cause video around 25fps.

according http://www.theandroidsoul.com/lg-g4-hacks-improve-camera-performance-60-fps-recording/, seems increase fps modify phone's config file possible.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -