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 tried to reduce the video record file size (without losing quality) but not successful. My goal is to record 720p 25fps video. The current video size is 100mb for 5 minutes record, which is large for upload. I tried to change the code in MediaVideoEncoder.java in librestreaming/encoder as follow:
final MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight);
format.setInteger(MediaFormat.KEY_COLOR_FORMAT,MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface); // API >= 18
format.setInteger(MediaFormat.KEY_BIT_RATE, 300000); <—- HERE
format.setInteger(MediaFormat.KEY_FRAME_RATE, FRAME_RATE);
format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 6);
After changing the bitrate, the video size is still remain (around 100mb for 5minute at 720p).
Is this correct way to do or I have to set somewhere else?
The text was updated successfully, but these errors were encountered:
Hello,
I tried to reduce the video record file size (without losing quality) but not successful. My goal is to record 720p 25fps video. The current video size is 100mb for 5 minutes record, which is large for upload. I tried to change the code in MediaVideoEncoder.java in librestreaming/encoder as follow:
After changing the bitrate, the video size is still remain (around 100mb for 5minute at 720p).
Is this correct way to do or I have to set somewhere else?
The text was updated successfully, but these errors were encountered: