HBiSoft / HBRecorder

Lightweight screen recording Android library
MIT License
402 stars 137 forks source link

HBRecorderOnError: Some settings are not supported by your device. errorCode: 38 reason: 100 #134

Closed aruproy closed 1 year ago

aruproy commented 1 year ago

I don't have direct access to this device. MP4 recording seems to have started fine on this device. However, after some time and a couple of pause/resume recordings, the HBRecorderOnError method is triggered.

HBR is setup for HD recording including audio.

hbRecorder.setAudioBitrate(128000);
hbRecorder.setAudioSamplingRate(44100);

Can it be reproduced in demo app Unknown

HBRecorder version 2.0.5

Device information H8015( Infinix Infinix X559C) Android 7.0 (SDK 24)

HBRInfo:

defaultVideoEncoder for (video/avc) -> OMX.MTK.VIDEO.ENCODER.AVC
MaxSupportedFrameRate -> 0.0
MaxSupportedBitrate -> 14000000
isSizeAndFramerateSupported @ Width = 720 Height = 1280 FPS = 30 -> false
isSizeSupported @ Width = 720 Height = 1280 -> false
Default Video Format = MPEG_4
Supported VIDEO encoders and mime types : OMX.MTK.VIDEO.ENCODER.H263 -> video/3gpp
Supported VIDEO encoders and mime types : OMX.google.mpeg4.encoder -> video/mp4v-es
Supported VIDEO encoders and mime types : OMX.google.h264.encoder -> video/avc
Supported VIDEO encoders and mime types : OMX.MTK.VIDEO.ENCODER.MPEG4 -> video/mp4v-es
Supported VIDEO encoders and mime types : OMX.google.h263.encoder -> video/3gpp
Supported VIDEO encoders and mime types : OMX.MTK.VIDEO.ENCODER.AVC -> video/avc
Supported VIDEO encoders and mime types : OMX.google.vp8.encoder -> video/x-vnd.on2.vp8
Supported AUDIO encoders and mime types : OMX.google.flac.encoder -> audio/flac
Supported AUDIO encoders and mime types : OMX.google.aac.encoder -> audio/mp4a-latm
Supported AUDIO encoders and mime types : OMX.google.amrwb.encoder -> audio/amr-wb
Supported AUDIO encoders and mime types : OMX.google.amrnb.encoder -> audio/3gpp
Available Video Formats : MPEG_2_TS
Available Video Formats : MPEG_4
Available Video Formats : THREE_GPP
Available Video Formats : WEBM

Question: HBRInfo indicates couple issues. How can we avoid this error state? Or, is it fine to ignore this error?

Your help is highly appreciated.

stale[bot] commented 1 year ago

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[bot] commented 1 year ago

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.