Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vivo 1909 error What is error code 38 and 268435556 stands for? #187

Open
appteam123 opened this issue Jan 29, 2025 · 1 comment
Open

vivo 1909 error What is error code 38 and 268435556 stands for? #187

appteam123 opened this issue Jan 29, 2025 · 1 comment

Comments

@appteam123
Copy link

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());

     HashMap<String, String> supportedVideoMimeTypes = hbRecorderCodecInfo.getSupportedVideoMimeTypes(); 
     for (Map.Entry<String, String> entry : supportedVideoMimeTypes.entrySet()) { 
         Log.e("HBRecorderCodecInfo", "Supported VIDEO encoders and mime types : " + entry.getKey() + " -> " + entry.getValue()); 
     } 

     HashMap<String, String> supportedAudioMimeTypes = hbRecorderCodecInfo.getSupportedAudioMimeTypes(); 
     for (Map.Entry<String, String> entry : supportedAudioMimeTypes.entrySet()) { 
         Log.e("HBRecorderCodecInfo", "Supported AUDIO encoders and mime types : " + entry.getKey() + " -> " + entry.getValue()); 
     } 

     ArrayList<String> supportedVideoFormats = hbRecorderCodecInfo.getSupportedVideoFormats(); 
     for (int j = 0; j < supportedVideoFormats.size(); j++) { 
         Log.e("HBRecorderCodecInfo", "Available Video Formats : " + supportedVideoFormats.get(j)); 
     } 
 }else{ 
     Log.e("HBRecorderCodecInfo", "MimeType not supported"); 
 } 

}

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 ?

Copy link

stale bot commented Feb 25, 2025

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.

@stale stale bot added the status:stale label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant