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
As I said in my previous issues, I am trying to capture a video directly from the camera,
the only problem is it process the frames to slow, and cause a big frame loss (10 sec video can shrink into a 3-4 seconds video).
If I set the preset vaue to "ultrafast" everything goes smoothly, but the video quality is too low,
I am trying to understand how can I configure ffmpeg to work at the same quality of the native camera's API.
My configs are:
Video size: 720x1280
Codec: H264
FrameRate: 30
Bitrate: 2500000
I am using LG G2 with Android 4.2.2 (which can take even FHD video with the native camera's API), and its true for many other devices I tried.
If you need something faster than that, you're probably going to have to go with hardware acceleration. Unfortunately, AFAIK, FFmpeg doesn't support that on Android for encoding, so you'll need to either report that issue to the FFmpeg developers, or use the Android API that support hardware acceleration when available on recent devices.
Hi Samuel,
As I said in my previous issues, I am trying to capture a video directly from the camera,
the only problem is it process the frames to slow, and cause a big frame loss (10 sec video can shrink into a 3-4 seconds video).
If I set the preset vaue to "ultrafast" everything goes smoothly, but the video quality is too low,
I am trying to understand how can I configure ffmpeg to work at the same quality of the native camera's API.
My configs are:
Video size: 720x1280
Codec: H264
FrameRate: 30
Bitrate: 2500000
I am using LG G2 with Android 4.2.2 (which can take even FHD video with the native camera's API), and its true for many other devices I tried.
Here is a sample of my code:
And for each frame I receive from the camera:
For each frame I get from the audio recorder:
thanks,
Shuky
The text was updated successfully, but these errors were encountered: