Herman Chen

Results 443 comments of Herman Chen

adb root adb remount 还有找一下 chmod 的使用

logcat -c && logcat -v time & 然后再运行这些测试用例

不能输入 output_h264.mp4,这个是带封装的,需要解封装之后的 264 祼码流,就是带 00 00 00 01 NAL 头的数据包。

-t 4 参数错误,H.264 解码的类型是 -t 7,或者不要 -t 参数,让 mpi_dec_test 自动识别

mpi_dec_test -i ../output_h264.h264 -o ../out_h264_test.NV12 这样即可,不需要给宽高,解码器会解析图像大小 只有 jpeg 解码时,需要预先分配空间,才需要在解码时配置宽高信息

试用 ffmpeg 解码成 nv12 格式,然后对比下区别,也观察下 ffmpeg 解码是否有报错,有可能码流本身在这一帧就有错误

估计你保存的 264 码流里没有 sps 和 pps

-i ../output_mjpeg.mp4 ?还是用 mp4 文件解码?

mpi_dec_test 的输入是祼码流,不是 mp4 文件……

https://github.com/rockchip-linux/mpp/blob/da9c6226940398246b05496e1ebad4bd9f46920c/mpp/codec/enc/h264/h264e_sps.c#L89-L109 Can you add mpp_log here and check your level_idc config for 1080p is correct or not. It is better use new string config interface to setup level_idc.