PictureSelector 配置自定义相机后,拍摄MP4视频,部分视频会损坏,在华为Mate40E/P40必现

yqkkidmi  于 3个月前  发布在  其他
关注(0)|答案(2)|浏览(73)

Current use version?

当前使用的版本:v3.10.7

Will this problem occur in demo?

华为Mate40E、P40 配置自定义相机后,长按拍摄5条视频,必有视频损坏

Describe the problem or provide an error log?

安装最新Demo后,点击Activity按钮,选中 自定义相机选项,长按拍摄多条(我测试的是5条)其中必有视频损坏。

损坏的视频能在主流播放器播放,但是无法在HTML标签播放。

如何检测视频是否损坏:使用ffmpeg -i xxxxx.mp4

检测出损坏视频的结果:
D:\XXXX\ffmpeg-5.0.1-full_build-shared\bin>ffmpeg -i D:\tempVedio\2\VID_20230111135849411.mp4 ffmpeg version 5.0.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.0 (Rev7, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-shared --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint libavutil 57. 17.100 / 57. 17.100 libavcodec 59. 18.100 / 59. 18.100 libavformat 59. 16.100 / 59. 16.100 libavdevice 59. 4.100 / 59. 4.100 libavfilter 8. 24.100 / 8. 24.100 libswscale 6. 4.100 / 6. 4.100 libswresample 4. 3.100 / 4. 3.100 libpostproc 56. 3.100 / 56. 3.100 **[h264 @ 0000014a2495d2c0] missing picture in access unit with size 30 [h264 @ 0000014a2495d2c0] no frame!** Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\tempVedio\2\VID_20230111135849411.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2023-01-11T05:58:54.000000Z com.android.version: 10 Duration: 00:00:04.53, start: 0.000000, bitrate: 4444 kb/s Stream #0:0[0x1](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 193 kb/s (default) Metadata: creation_time : 2023-01-11T05:58:54.000000Z handler_name : SoundHandle vendor_id : [0][0][0][0] Stream #0:1[0x2](eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 4242 kb/s, SAR 1:1 DAR 16:9, 30.05 fps, 29.83 tbr, 90k tbn (default) Metadata: creation_time : 2023-01-11T05:58:54.000000Z handler_name : VideoHandle vendor_id : [0][0][0][0] Side data: displaymatrix: rotation of -90.00 degrees At least one output file must be specified

[h264 @ 0000014a2495d2c0] missing picture in access unit with size 30
[h264 @ 0000014a2495d2c0] no frame!

这个就是损坏视频检测出来的问题

vsnjm48y

vsnjm48y1#

可以加群,配合调试一下

mnemlml8

mnemlml82#

已经将问题通过QQ发给你了,麻烦有时间帮忙解决一下,谢谢

相关问题