You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can record perfectly with my camera at 640x480 @ 60 fps.
But when I set 1280x720 (HD) @ 60 fps and 1920x1080 (FullHD) @ 30 fps the preview is slowed down and the resulting recording video is 1280x720 (HD) @ 40 fps and 1920x1080 (FullHD) @ 18 fps.
My configuration:
ffmpeg_Frame_Recorder = new FFmpegFrameRecorder(videoPath, 1920, 1080, 2);
/// Video
ffmpeg_Frame_Recorder.setFormat("mp4");
ffmpeg_Frame_Recorder.setFrameRate(30);
ffmpeg_Frame_Recorder.setPixelFormat(0);
ffmpeg_Frame_Recorder.setVideoBitrate(10000000);
ffmpeg_Frame_Recorder.setVideoQuality(0);
/// Audio
ffmpeg_Frame_Recorder.setAudioBitrate(194000);
ffmpeg_Frame_Recorder.setSampleRate(48000);
mAudioRecordRunnable = new AudioRecordRunnable();
Do you know if it is possible on Android? I have checked out that you mentioned this in another issue:
"You'll probably need hardware acceleration to encode at any kind of speed though. Unfortunately, FFmpeg doesn't support hardware acceleration for encoding on Android: https://trac.ffmpeg.org/wiki/HWAccelIntro (Unless this has changed recently @tmm1?)"
FFmpeg 6.0 now includes support for hardware accelerated encoding using MediaCodec.
Please give it a try with the snapshots: http://bytedeco.org/builds/
Hi @saudet!
Thank you very much for your awesome support! 😀
I am having this issue with JavaCV 1.5.4.
I can record perfectly with my camera at 640x480 @ 60 fps.
But when I set 1280x720 (HD) @ 60 fps and 1920x1080 (FullHD) @ 30 fps the preview is slowed down and the resulting recording video is 1280x720 (HD) @ 40 fps and 1920x1080 (FullHD) @ 18 fps.
My configuration:
ffmpeg_Frame_Recorder = new FFmpegFrameRecorder(videoPath, 1920, 1080, 2);
/// Video
ffmpeg_Frame_Recorder.setFormat("mp4");
ffmpeg_Frame_Recorder.setFrameRate(30);
ffmpeg_Frame_Recorder.setPixelFormat(0);
ffmpeg_Frame_Recorder.setVideoBitrate(10000000);
ffmpeg_Frame_Recorder.setVideoQuality(0);
/// Audio
ffmpeg_Frame_Recorder.setAudioBitrate(194000);
ffmpeg_Frame_Recorder.setSampleRate(48000);
mAudioRecordRunnable = new AudioRecordRunnable();
I am using OpenCV and
ffmpeg_Frame_Recorder.record(new OpenCVFrameConverter.ToOrgOpenCvCoreMat().convert(mat));
Any help is really appreciated!
The text was updated successfully, but these errors were encountered: