INDExOS / media-for-mobile

Media for Mobile
Other
456 stars 178 forks source link

Capture seems doesn't care about values of org.m4m.VideoFormat #61

Open anonym24 opened 7 years ago

anonym24 commented 7 years ago
org.m4m.VideoFormat videoFormat = new VideoFormatAndroid("video/avc", encodedResolution.width(), encodedResolution.height());
        videoFormat.setVideoBitRateInKBytes(3000);
        videoFormat.setVideoFrameRate(30);
        videoFormat.setVideoIFrameInterval(1);

https://github.com/INDExOS/media-for-mobile/blob/master/samples/src/main/java/org/m4m/samples/CameraCapturerActivity.java#L549

But output video file doesn't have such bitrate. I also tried to change FrameRate to 23, 25, 60 but the output file still has 29 rate or 19/20 if I record with audio record enabled or high video resolution (like it can't record more frames at each second)