Closed enoiu closed 1 year ago
@enoiu
Without more detail, I will not be able to assist you with this.
Please open the application and provide me with the logcat starting with the line that says: E/EXAMPLE: THIS IS AN EXAMPLE OF HOW TO USE THE (HBRecorderCodecInfo) TO GET CODEC INFO:
Thank you for your reply.
logcat
2023-03-17 13:47:13.844 9033-9033/? E/EXAMPLE: THIS IS AN EXAMPLE OF HOW TO USE THE (HBRecorderCodecInfo) TO GET CODEC INFO:
2023-03-17 13:47:13.844 9033-9033/? E/HBRecorderCodecInfo: defaultVideoEncoder for (video/avc) -> c2.qti.avc.encoder
2023-03-17 13:47:13.844 9033-9033/? W/System.err: java.lang.IllegalArgumentException: unsupported size
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.media.MediaCodecInfo$VideoCapabilities.getSupportedFrameRatesFor(MediaCodecInfo.java:1803)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at com.hbisoft.hbrecorder.HBRecorderCodecInfo.getMaxSupportedFrameRate(HBRecorderCodecInfo.java:308)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at com.hbisoft.hbrecorderexample.MainActivity.onCreate(MainActivity.java:150)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.Activity.performCreate(Activity.java:8290)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.Activity.performCreate(Activity.java:8269)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1385)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3662)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3818)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2313)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.os.Looper.loopOnce(Looper.java:346)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.os.Looper.loop(Looper.java:475)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7954)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
2023-03-17 13:47:13.844 9033-9033/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
2023-03-17 13:47:13.844 9033-9033/? E/HBRecorderCodecInfo: MaxSupportedFrameRate -> 0.0
2023-03-17 13:47:13.844 9033-9033/? E/HBRecorderCodecInfo: MaxSupportedBitrate -> 60000000
2023-03-17 13:47:13.844 9033-9033/? E/HBRecorderCodecInfo: isSizeAndFramerateSupported @ Width = 1080 Height = 2520 FPS = 30 -> false
2023-03-17 13:47:13.844 9033-9033/? E/HBRecorderCodecInfo: isSizeSupported @ Width = 1080 Height = 2520 -> false
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Default Video Format =
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : OMX.qcom.video.encoder.hevc.cq -> video/hevc
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : OMX.google.mpeg4.encoder -> video/mp4v-es
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : OMX.google.h264.encoder -> video/avc
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : c2.qti.avc.encoder -> video/avc
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : OMX.google.h263.encoder -> video/3gpp
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : c2.qti.hevc.encoder -> video/hevc
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : OMX.qcom.video.encoder.hevc -> video/hevc
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : c2.android.mpeg4.encoder -> video/mp4v-es
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : c2.android.h263.encoder -> video/3gpp
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : OMX.google.vp9.encoder -> video/x-vnd.on2.vp9
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : c2.android.hevc.encoder -> video/hevc
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : c2.android.avc.encoder -> video/avc
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : c2.android.vp9.encoder -> video/x-vnd.on2.vp9
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : c2.android.vp8.encoder -> video/x-vnd.on2.vp8
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : OMX.google.vp8.encoder -> video/x-vnd.on2.vp8
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : OMX.qcom.video.encoder.avc -> video/avc
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported VIDEO encoders and mime types : c2.qti.hevc.encoder.cq -> video/hevc
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported AUDIO encoders and mime types : c2.android.opus.encoder -> audio/opus
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported AUDIO encoders and mime types : c2.android.amrnb.encoder -> audio/3gpp
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported AUDIO encoders and mime types : c2.android.flac.encoder -> audio/flac
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported AUDIO encoders and mime types : OMX.google.amrnb.encoder -> audio/3gpp
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported AUDIO encoders and mime types : OMX.google.amrwb.encoder -> audio/amr-wb
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported AUDIO encoders and mime types : c2.android.aac.encoder -> audio/mp4a-latm
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported AUDIO encoders and mime types : OMX.google.aac.encoder -> audio/mp4a-latm
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported AUDIO encoders and mime types : c2.android.amrwb.encoder -> audio/amr-wb
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Supported AUDIO encoders and mime types : OMX.google.flac.encoder -> audio/flac
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Available Video Formats : MPEG_2_TS
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Available Video Formats : MPEG_4
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Available Video Formats : THREE_GPP
2023-03-17 13:47:13.845 9033-9033/? E/HBRecorderCodecInfo: Available Video Formats : WEBM
@enoiu Thank you for the log.
My guess is that it is the selected encoder causing this. Can you please try and set the following settings in the demo app by selecting menu then Settings
:
Video Encoder: H264
Resolution: Default
Frame Rate: Default
Bit-rate: Default
Output Format: Default
Then enable USE CUSTOM SETTINGS
on the main page.
Please let me know if this worked.
I set the settings and enabled USE CUSTOM SETTINGS
, but it was not worked properly as well.
But, I set only the resolution to 1920x1080 and enabled USE CUSTOM SETTINGS
, the recording worked fine.
Please see the updated comment above: Video Encoder: H264
I set the updated comment settings.
But, it was not worked properly as well.
But, it was not worked properly as well.
Please elaborate
When I tried to record at default resolution (1080x2520) with the demo app, it recorded a black screen
Can you send me a video so that I can see what profile the video is recorded in
The video played fine on my PC.
On my smartphone, when the above video is opened in Google Photos, it is displayed like the image below.
When I open this video in the Files app (Files by Google), the sequence bar at the bottom moves, but I get a black screen.
Please send me a video that's working as well. Using 1080x1920 resolution
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.
@enoiu The issue is definitely with the device selecting an encoder that does not support encoding and playing video @ your screen size.
You mentioned that you tried changing the encoder, so I do not know what to tell you. I di bot have that device so I can't test from my side.
Just a note, this is not an issue with the library, but with Android/your device or wrong settings provided to the encoder.
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.
Describe the bug When I tried to record at default resolution (1080x2520) with the demo app, it recorded a black screen (When viewed in Google Photos, it says Can't play video).
When I set the resolution to 1080x1920 in the settings, it recorded properly.
Can it be reproduced in demo app Yes
HBRecorder version 3.0.1
Device information