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
This issue has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed if no further activity occurs within the next 3 days. Thank you for your contributions.
i add this code in project and display log
HBRecorderCodecInfo hbRecorderCodecInfo = new HBRecorderCodecInfo();
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
int mWidth = hbRecorder.getDefaultWidth();
int mHeight = hbRecorder.getDefaultHeight();
String mMimeType = "video/avc";
int mFPS = 30;
if (hbRecorderCodecInfo.isMimeTypeSupported(mMimeType)) {
String defaultVideoEncoder = hbRecorderCodecInfo.getDefaultVideoEncoderName(mMimeType);
boolean isSizeAndFramerateSupported = hbRecorderCodecInfo.isSizeAndFramerateSupported(mWidth, mHeight, mFPS, mMimeType, ORIENTATION_PORTRAIT);
Log.e("EXAMPLE", "THIS IS AN EXAMPLE OF HOW TO USE THE (HBRecorderCodecInfo) TO GET CODEC INFO:");
Log.e("HBRecorderCodecInfo", "defaultVideoEncoder for (" + mMimeType + ") -> " + defaultVideoEncoder);
Log.e("HBRecorderCodecInfo", "MaxSupportedFrameRate -> " + hbRecorderCodecInfo.getMaxSupportedFrameRate(mWidth, mHeight, mMimeType));
Log.e("HBRecorderCodecInfo", "MaxSupportedBitrate -> " + hbRecorderCodecInfo.getMaxSupportedBitrate(mMimeType));
Log.e("HBRecorderCodecInfo", "isSizeAndFramerateSupported @ Width = "+mWidth+" Height = "+mHeight+" FPS = "+mFPS+" -> " + isSizeAndFramerateSupported);
Log.e("HBRecorderCodecInfo", "isSizeSupported @ Width = "+mWidth+" Height = "+mHeight+" -> " + hbRecorderCodecInfo.isSizeSupported(mWidth, mHeight, mMimeType));
Log.e("HBRecorderCodecInfo", "Default Video Format = " + hbRecorderCodecInfo.getDefaultVideoFormat());
}
my log is that:-
2025-01-28 14:54:29.836 9209-9209 HBRecorderCodecInfo com.appteam.apptest E defaultVideoEncoder for (video/avc) -> OMX.MTK.VIDEO.ENCODER.AVC
2025-01-28 14:54:29.837 9209-9209 HBRecorderCodecInfo com.appteam.apptest E MaxSupportedFrameRate -> 56.302405498281786
2025-01-28 14:54:29.838 9209-9209 HBRecorderCodecInfo com.appteam.apptest E MaxSupportedBitrate -> 62500000
2025-01-28 14:54:29.838 9209-9209 HBRecorderCodecInfo com.appteam.apptest E isSizeAndFramerateSupported @ Width = 720 Height = 1544 FPS = 30 -> true
2025-01-28 14:54:29.839 9209-9209 HBRecorderCodecInfo com.appteam.apptest E isSizeSupported @ Width = 720 Height = 1544 -> true
2025-01-28 14:54:29.839 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Default Video Format = MPEG_4
2025-01-28 14:54:29.840 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported VIDEO encoders and mime types : OMX.google.mpeg4.encoder -> video/mp4v-es
2025-01-28 14:54:29.840 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported VIDEO encoders and mime types : OMX.MTK.VIDEO.ENCODER.H263 -> video/3gpp
2025-01-28 14:54:29.840 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported VIDEO encoders and mime types : OMX.google.h264.encoder -> video/avc
2025-01-28 14:54:29.841 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported VIDEO encoders and mime types : OMX.MTK.VIDEO.ENCODER.MPEG4 -> video/mp4v-es
2025-01-28 14:54:29.841 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported VIDEO encoders and mime types : OMX.google.vp8.encoder -> video/x-vnd.on2.vp8
2025-01-28 14:54:29.841 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported VIDEO encoders and mime types : OMX.MTK.VIDEO.ENCODER.AVC -> video/avc
2025-01-28 14:54:29.841 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported VIDEO encoders and mime types : OMX.google.h263.encoder -> video/3gpp
2025-01-28 14:54:29.842 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported AUDIO encoders and mime types : OMX.google.amrnb.encoder -> audio/3gpp
2025-01-28 14:54:29.842 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported AUDIO encoders and mime types : OMX.google.amrwb.encoder -> audio/amr-wb
2025-01-28 14:54:29.842 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported AUDIO encoders and mime types : OMX.google.aac.encoder -> audio/mp4a-latm
2025-01-28 14:54:29.842 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Supported AUDIO encoders and mime types : OMX.google.flac.encoder -> audio/flac
2025-01-28 14:54:29.845 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Available Video Formats : MPEG_2_TS
2025-01-28 14:54:29.845 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Available Video Formats : MPEG_4
2025-01-28 14:54:29.845 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Available Video Formats : THREE_GPP
2025-01-28 14:54:29.845 9209-9209 HBRecorderCodecInfo com.appteam.apptest E Available Video Formats : WEBM
2025-01-28 14:54:29.879 9209-9209 BackgroundFallback com.appteam.apptest E initVivoBgFallback callstackcom.android.internal.policy.DecorView.:378 com.android.internal.policy.PhoneWindow.generateDecor:2442 com.android.internal.policy.PhoneWindow.installDecor:2820 com.android.internal.policy.PhoneWindow.setContentView:452 com.android.internal.app.AlertController.installContent:292 android.app.AlertDialog.onCreate:444 android.app.Dialog.dispatchOnCreate:442 android.app.Dialog.show:337 com.appteam.apptest.Const.CustomProgressDialog.showDialog:64 com.appteam.apptest.Activity.MyTestingAppDetailsActivity.onCreate:550
how i solve that error ?
The text was updated successfully, but these errors were encountered: