-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
[BUG] Failed to record with the maximum resolution on some devices #114
Comments
测试官方camera后确认是否有同样问题。 |
测试github一个使用camera 的demo(https://github.com/sbis04/flutter_camera_demo) ,在Xiaomi MI 5X(Android 8.1.0)设备上是可以正常录制视频,应该可以排查官方camera的问题。 |
确认是否和 #104 为同一个问题。 |
这边应该是排查到问题了,默认CameraPickerConfig里面设置的采样率是ResolutionPreset.max,在小米设备上用camera录制的视频文件本身就会有问题。如果我指定在小米设备上采样率是ResolutionPreset.medium,那么可以正常使用了。 |
可以使用 demo 运行 |
基于flutter_wechat_camera_picker项目demo抓取的两份日志,flutter_log.txt是执行flutter run -v命令抓取的,android_studio_log.txt是在android studio控制台抓取的 里面有个报错是说设置分辨率出错了:/CameraDevice-0-LE(15346): Surface with size (w=3840, h=2160) and format 0x22 is not valid, size not in valid set: [1440x1080, 1280x960, 1280x720, 1280x640, 864x480, 640x640, 800x480, 720x480, 768x432, 640x480, 480x640, 576x432, 640x360, 480x360, 480x320, 384x288, 352x288, 320x240, 240x320, 240x160, 176x144, 144x176, 160x120] |
我是用小米X5手机进行拍摄也出现了同样的问题。 |
通小米5X无法拍摄 W/MediaAnalyticsItem(28867): Unable to record: (codec:0:-1:-11:0:10:android.media.mediacodec.codec=OMX.qcom.video.decoder.avc:android.media.mediacodec.mode=video:android.media.mediacodec.secure=0:android.media.mediacodec.width=320:android.media.mediacodec.height=240:android.media.mediacodec.rotation-degrees=90:android.media.mediacodec.maxwidth=320:android.media.mediacodec.maxheight=240:android.media.mediacodec.mime=video/avc:android.media.mediacodec.bytesin=39673:) [forcenew=0] |
你好,请问你是根据什么条件判断使用medium还是max。手机品牌吗? |
Describe the bug
使用版本wechat_camera_picker: ^3.4.0
在Xiaomi MI 5X(Android 8.1.0)和Redmi Note4X(Android 7.0)设备上无法正常录制视频,报错:
目前,在另一台oppo手机上是可以正常录制视频,怀疑是小米手机或者小米低端机的兼容型问题
The text was updated successfully, but these errors were encountered: