ff_media 硬件解码demo运行失败!
本帖最后由 spp 于 2023-6-15 17:28 编辑板子:AIO3588JQ
系统:Ubuntu20.04
固件:firefly AIO3588JQ的官方Ubuntu固件
根ff_media 仓库的指示,在官方原版固件里编译demo并运行,没有显示画面并出现解码器的报错,如下:
firefly@firefly:~/ffmedia_release/demo$ demo rtsp://admin:Admin123@192.168.8.114//Streaming/Channels/1 -o 1280x720 -d 0 -r 90
INFO: start_instance:
==========================================
INFO: start_instance: enable rtsp client
INFO: 10RtspClient: networkInit: async connecting...
INFO: 10RtspClient: RTPInitDatagramSock: rtp connect success, port 12432
INFO: 16ModuleRtspClient: init: rtsp para w h: 1280 720, ws hs: 1280 720, format: H264
rga_api version 1.8.1_
INFO: 16ModuleDrmDisplay: getDrmDisplayPara: conn_id = 196 enc_id = 197 crtc_id = 68
INFO: 16ModuleDrmDisplay: createDisplayDevice: buffer fd 34
INFO: 16ModuleDrmDisplay: createDisplayDevice: plane id = 114
INFO: start_instance: t_h t_v 1920 1080
INFO: start_instance: hc vc 1 1
INFO: start_instance: dw dh 1920 1080
INFO: start_instance: w h 720 1280
INFO: start_instance: x y w h 600 0 720 1080
INFO: start_instance:
Input Source: rtsp://admin:Admin123@192.168.8.114//Streaming/Channels/1
Input format: 1280x720 H264
Output format:720x1280 NV12
Encode type: H264
Decoder: enable
Rga: enable
Encoder: disable
Enmux: disable
RtspClient: enable
File: disable
Rtsp push: disable
INFO: 16ModuleDrmDisplay: start: input NV12 0 0 720 1280 720 1280
INFO: 16ModuleDrmDisplay: start: output NV12 600 0 720 1080 1920 1080
INFO: 10RtspClient: get: send sps size 32
INFO: 10RtspClient: get: send pps size 8
INFO: 10MppDecoder: getTimeoutSample: 0x55847284c0 frame info changed 1 error 0 discard 0
INFO: 10MppDecoder: getTimeoutSample: 0x55847284c0 frame info changed 0 error 1 discard 0
...
INFO: 10MppDecoder: getTimeoutSample: 0x55847284c0 frame info changed 0 error 1 discard 0
INFO: 10MppDecoder: getTimeoutSample: 0x55847284c0 frame info changed 0 error 1 discard 0
ERROR: 9ModuleRga: running: wait for productor ModuleMppDec timeout
ERROR: 16ModuleDrmDisplay: running: wait for productor ModuleRga timeout
INFO: 10MppDecoder: getTimeoutSample: 0x55847284c0 frame info changed 0 error 1 discard 0
INFO: 10MppDecoder: getTimeoutSample: 0x55847284c0 frame info changed 0 error 1 discard 0
ffmedia编译过程没有报错,python3.8的whl包报同样的错
cd /boot/; ln -sf rk3588-firefly-aio-3588q.dtb rk-kernel.dtb 重启再运行就可以了
页:
[1]