|
发表于 2021-4-1 11:46:07
浏览:8177
|
回复:4
打印
只看该作者
[复制链接]
楼主
本帖最后由 wx_陈先生_A6Jx6 于 2021-4-1 14:45 编辑
你好:
1.硬件 Firefly-AIO-3399J六核64位开发板瑞芯微RK3399,带HDMI_IN2.固件版本HDMIIN-AIO-3399J-UBUNTU18.04-20201207-1558.img
目前在使用中出现了两个问题:
1.使用固件自带的测试用例/usr/local/bin/h264enc.sh进行编码测试,出现如下错误(hdmi_in有接输入源)
gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/firefly/h264.ts
oot@firefly:~# /usr/local/bin/h264enc.sh
librga:RGA_GET_VERSION:3.02,3.020000
ctx=0x55882ea8a0,ctx->rgaFd=6
Rga built version:version:+2017-09-28 10:12:42
librga:RGA_GET_VERSION:3.02,3.020000
ctx=0x5596738b90,ctx->rgaFd=3
Rga built version:version:+2017-09-28 10:12:42
Setting pipeline to PAUSED ...
mpp[1258]: mpp_info: mpp version: 761db843 author: Herman Chen 2020-05-12 [mpp_enc]: rename MppEncCfg to MppEncInitCfg
mpp[1258]: mpp_rt: NOT found ion allocator
mpp[1258]: mpp_rt: found drm allocator
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
mpp[1258]: rc: rc_init using rc impl default
New clock: GstSystemClock
mpp[1258]: h264e_api_v2: h264e_proc_cfg MPP_ENC_SET_RC_CFG bps 1152000 [1080000 : 1224000] fps [30:30] gop 30
mpp[1258]: h264e_api_v2: h264e_proc_cfg MPP_ENC_SET_PREP_CFG w:h [640:480] stride [640:480]
mpp[1258]: h264e_sps: set level to 2.2
mpp[1258]: mpp_enc_v2: Please use MPP_ENC_GET_HDR_SYNC instead of unsafe MPP_ENC_GET_EXTRA_INFO
mpp[1258]: mpp_enc_v2: NOTE: MPP_ENC_GET_HDR_SYNC needs MppPacket input
mpp[1258]: mpp_enc_v2: mode cbr bps [1080000:1152000:1224000] fps fix [30/1] -> fix [30/1] gop i [30] v [0]
mpp[1258]: mpp_enc_v2: Assertion hal_task->length == mpp_packet_get_length(packet) failed at mpp_enc_thread:720
mpp[1258]: hal_h264e_vepu2_v2: hardware returns error:-1
mpp[1258]: mpp_enc_v2: mpp 0x55967dc330 ##func failed return -1009
mpp[1258]: mpp_enc_v2: Assertion hal_task->length == mpp_packet_get_length(packet) failed at mpp_enc_thread:720
mpp[1258]: hal_h264e_vepu2_v2: hardware returns error:-1
mpp[1258]: mpp_enc_v2: mpp 0x55967dc330 ##func failed return -1009
mpp[1258]: mpp_enc_v2: Assertion hal_task->length == mpp_packet_get_length(packet) failed at mpp_enc_thread:720
mpp[1258]: hal_h264e_vepu2_v2: hardware returns error:-1
mpp[1258]: mpp_enc_v2: mpp 0x55967dc330 ##func failed return -1009
mpp[1258]: mpp_enc_v2: Assertion hal_task->length == mpp_packet_get_length(packet) failed at mpp_enc_thread:720
mpp[1258]: hal_h264e_vepu2_v2: hardware returns error:-1
mpp[1258]: mpp_enc_v2: mpp 0x55967dc330 ##func failed return -1009
mpp[1258]: mpp_enc_v2: Assertion hal_task->length == mpp_packet_get_length(packet) failed at mpp_enc_thread:720
mpp[1258]: hal_h264e_vepu2_v2: hardware returns error:-1
mpp[1258]: mpp_enc_v2: mpp 0x55967dc330 ##func failed return -1009
2.从官网下载rockchip_mpp编译最新的mpp.lib替换到系统库,使用mpp中的测试用例mpi_test_enc,编码出来的h264有如下问题,如图
视频输入1080P60,编码是h264,1920*1080
|
|