Toybrick
标题:
mpi_enc_test 编码失败
[打印本页]
作者:
zhuo799154051
时间:
2020-11-10 10:08
标题:
mpi_enc_test 编码失败
toybrick@debian10:~/Videos/mpp-release/build/linux/x86_64/test$
./mpi_enc_test -w 640 -h 480 -t 7 -i test1.mp4 -o out.h264 -f 65543 -n 1
mpp[9262]: mpi_enc_utils: cmd parse result:
mpp[9262]: mpi_enc_utils: input file name: test1.mp4
mpp[9262]: mpi_enc_utils: output file name: out.h264
mpp[9262]: mpi_enc_utils: width : 640
mpp[9262]: mpi_enc_utils: height : 480
mpp[9262]: mpi_enc_utils: format : 65543
mpp[9262]: mpi_enc_utils: type : 7
mpp[9262]: mpi_enc_test: mpi_enc_test start
mpp[9262]: mpp_rt: NOT found ion allocator
mpp[9262]: mpp_rt: found drm allocator
mpp[9262]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[9262]: mpi_enc_test: 0x55b7ae8ca0 mpi_enc_test encoder test start w 640 h 480 type 7
mpp[9262]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [640:480] stride [1920:480]
mpp[9262]: h264e_api_v2: MPP_ENC_SET_RC_CFG bps 1152000 [72000 : 1224000] fps [30:30] gop 60
mpp[9262]: mpp_enc_v2: send header for set cfg change input/format
mpp[9262]: mpp_enc_v2: Please use MPP_ENC_GET_HDR_SYNC instead of unsafe MPP_ENC_GET_EXTRA_INFO
mpp[9262]: mpp_enc_v2: NOTE: MPP_ENC_GET_HDR_SYNC needs MppPacket input
mpp[9262]: mpp_enc_v2: mode cbr bps [72000:1152000:1224000] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[9262]: vepu_common: get_vepu_fmt unsupport frame format 10007
mpp[9262]: hal_h264e_vepu_v2: vepu do not support input frame format 65543
mpp[9262]: hal_h264e_vepu_v2: h264e_vepu_prep_setup invalid format 65543
mpp[9262]: mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 14 Bad address
mpp[9262]: hal_h264e_vepu2_v2: mpp_device_send_reg failed ret -1
mpp[9262]: mpp_enc_v2: mpp 0x55b7ae8d10 mpp_enc_hal_start failed return -1
mpp[9262]: mpi_enc_test: 0x55b7ae8ca0 encoded frame 0 size 153
mpp[9262]: mpi_enc_test: 0x55b7ae8ca0 encode max 1 frames
mpp[9262]: mpi_enc_test: 0x55b7ae8ca0 mpi_enc_test success total frame 1 bps 36720
mpp[9262]: mpp_buffer: ~MppBufferService cleaning misc group
作者:
zhuo799154051
时间:
2020-11-10 10:09
编码YUV文件也失败了。
toybrick@debian10:~/Videos/mpp-release/build/linux/x86_64/test$ ./mpi_enc_test -w 352 -h 288 -t 7 -i akiyo_cif_352_288.yuv -o out.h264 -n 1
mpp[9331]: mpi_enc_utils: cmd parse result:
mpp[9331]: mpi_enc_utils: input file name: akiyo_cif_352_288.yuv
mpp[9331]: mpi_enc_utils: output file name: out.h264
mpp[9331]: mpi_enc_utils: width : 352
mpp[9331]: mpi_enc_utils: height : 288
mpp[9331]: mpi_enc_utils: format : 0
mpp[9331]: mpi_enc_utils: type : 7
mpp[9331]: mpi_enc_test: mpi_enc_test start
mpp[9331]: mpp_rt: NOT found ion allocator
mpp[9331]: mpp_rt: found drm allocator
mpp[9331]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[9331]: mpi_enc_test: 0x5587515ca0 mpi_enc_test encoder test start w 352 h 288 type 7
mpp[9331]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [352:288] stride [352:288]
mpp[9331]: h264e_api_v2: MPP_ENC_SET_RC_CFG bps 380160 [23760 : 403920] fps [30:30] gop 60
mpp[9331]: mpp_enc_v2: send header for set cfg change input/format
mpp[9331]: mpp_enc_v2: Please use MPP_ENC_GET_HDR_SYNC instead of unsafe MPP_ENC_GET_EXTRA_INFO
mpp[9331]: mpp_enc_v2: NOTE: MPP_ENC_GET_HDR_SYNC needs MppPacket input
mpp[9331]: mpp_enc_v2: mode cbr bps [23760:380160:403920] fps fix [30/1] -> fix [30/1] gop i [60] v [0]
mpp[9331]: mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 14 Bad address
mpp[9331]: hal_h264e_vepu2_v2: mpp_device_send_reg failed ret -1
mpp[9331]: mpp_enc_v2: mpp 0x5587515d10 mpp_enc_hal_start failed return -1
mpp[9331]: mpi_enc_test: 0x5587515ca0 encoded frame 0 size 151
mpp[9331]: mpi_enc_test: 0x5587515ca0 encode max 1 frames
mpp[9331]: mpi_enc_test: 0x5587515ca0 mpi_enc_test success total frame 1 bps 36240
mpp[9331]: mpp_buffer: ~MppBufferService cleaning misc group
作者:
jefferyzhang
时间:
2020-11-10 18:05
第一个mp4->264那叫脱包,mpp不负责这个的。
第二个log看是成功的
欢迎光临 Toybrick (https://t.rock-chips.com/)
Powered by Discuz! X3.3