RK3399pro-JD4 运行12路RPSP解码demo遇到的问题
本帖最后由 slime 于 2020-3-6 18:35 编辑按照官方的要求按照了demohttp://www.t-firefly.com/doc/case/416.html 可以运行,但是报错了。报错如下,求助
firefly@firefly:~$ sudo test_ff_rtsp_dec
performance
dri_path: /dev/dri/card0
prefer_w: 1920
prefer_h: 1080
code_type:0
line_count: 1
dst_s_size: 4791x0
dst_size: 480x360
rotate: 0
url: rtsp://192.168.50.231:554
usr: admin
pwd: cetc12345
tcp: 0
0
mpi: mpp version: Without VCS info
mpp_device: mpp_device_init failed to find device for coding 16777220 type 0
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
D/: listening rtp port 59135
D/: listening rtcp port 59146
D/: listening rtp port 59145
D/: listening rtcp port 59136
D/: curlto rtsp://192.168.50.231:554 , cli 59135:59145, tcp: 0
D/: # FOUND media: video
D/: # FOUND control: rtsp://192.168.50.231:554/trackID=1
D/: # FOUND rtpmap: id:96 format:H264 bitrate:90000
D/: # TOTAL FOUND1
D/: TRACK : rtsp://192.168.50.231:554/trackID=1
D/: setup 59135 , 59136, uri: rtsp://192.168.50.231:554/trackID=1
mpp_log: decode_get_frame failed, return -8.
D/: Video SSRC Changed! 0 -> 951525269
W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 65535 > 15227
D/: RTP4UP_UNIT_SE loss/recv:-1676.97/ 0.03 SEI|SPS|PPS|NI|I: 0.00|0.03|0.00|0.00|0.00
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
======== EXIT ========
D/: close curl rtsp://192.168.50.231:554
mpp_log: decode_get_frame failed, return -8.
D/: destroying curl rtsp ...
D/: destroying curl rtsp ... done
mpp_device: mpp_device_deinit invalid negtive file handle,
D/: destroying RtspClientUnitEM ...
D/: socket close fd=14
D/: SOCKET : Closed -1
D/: socket close fd=15
D/: SOCKET : Closed -1
D/: socket close fd=16
D/: SOCKET : Closed -1
D/: socket close fd=13
D/: SOCKET : Closed -1
D/: destroying RtspClientUnitEM ... done
本帖最后由 slime 于 2020-3-6 18:37 编辑
部分配置文件,如下:
{
{
{
{
"basepara" : {
"dri_path" : "/dev/dri/card0",
"prefer_monitor_w" : 1920,
"prefer_monitor_h" : 1080,
"code_type" : "H264",
"line_count" : 1,
"output_w" : 480,
"output_h" : 360,
"rotate" : 0
},
"rtsp" : [
{
"id" : 0,
"url" : "rtsp://192.168.50.231:554",
"usr" : "admin",
"pwd" : "cetc12345",
"tcp" : false
},
你好,应用程序有更新,
apt update
apt install firefly-multi-rtsp
更新一下应用,再重新测试,谢谢! 本帖最后由 slime 于 2020-3-8 09:50 编辑
penguin 发表于 2020-3-7 12:37
你好,应用程序有更新,
apt update
apt install firefly-multi-rtsp
感谢你的答复,我现在重新升级后,目前firefly-multi-rtsp版本是1.1但是仍有错误,错误和以前不一样了,如下:
firefly@firefly:~$ sudo test_ff_rtsp_dec
performance
dri_path: /dev/dri/card0
prefer_w: 1920
prefer_h: 1080
code_type:0
line_count: 1
dst_s_size: 4791x0
dst_size: 480x360
rotate: 0
url: rtsp://168.168.50.203:8554/live
usr: admin
pwd: admin
tcp: 0
0
mpi: mpp version: Without VCS info
hal_h264d_api: Assertion vcodec_type & ((0x00000200) | (0x00000001) | (0x00000002)) failed at hal_h264d_init:104
hal_h264d_api: hal_h264d_init hard mode error, value=0
hal_h264d_api: Assertion 0 failed at hal_h264d_init:154
mpp_device: mpp_device_init failed to find device for coding 7 type 0
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
Segmentation fault (core dumped) 你好,我刚刚测试了一下,发现并没有此类错误。我现在上传更新一个3399pro的ubuntu18.04的固件,你测试一下行不行,再回复我结果。以免技术支持不及时。 895816513 发表于 2020-3-12 17:46
你好,我刚刚测试了一下,发现并没有此类错误。我现在上传更新一个3399pro的ubuntu18.04的固件,你测试一下 ...
你好感谢你的答复,目前我把系统刷了最新的 AIO-RK3399PRO-JD4-UBUNTU18.04-GPT-20200312-1733,test_ff_trsp_dec用的 1.1版本。
但是还是有如下问题:
图像通过HDMI输出,会显示一下,然后自动退出。程序还是正常在跑。
========================================================
firefly@firefly:~$ sudo test_ff_rtsp_dec
performance
dri_path: /dev/dri/card0
prefer_w: 1920
prefer_h: 1080
code_type:0
line_count: 1
dst_s_size: 4791x0
dst_size: 480x360
rotate: 0
url: rtsp://192.168.50.231:554
usr: admin
pwd: cetc12345
tcp: 0
0
mpi: mpp version: Without VCS info
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
D/: listening rtp port 39561
D/: listening rtp port 39571
D/: listening rtcp port 39572
D/: curlto rtsp://192.168.50.231:554 , cli 39561:39571, tcp: 0
D/: listening rtcp port 39562
D/: # FOUND media: video
D/: # FOUND control: rtsp://192.168.50.231:554/trackID=1
D/: # FOUND rtpmap: id:96 format:H264 bitrate:90000
D/: # TOTAL FOUND1
D/: TRACK : rtsp://192.168.50.231:554/trackID=1
D/: setup 39561 , 39562, uri: rtsp://192.168.50.231:554/trackID=1
D/: Video SSRC Changed! 0 -> 1885702819
W/: (onTransmitIn in unit_rtp_h264_unpack.cpp:53): rtp lost one packet ... mDebugCntRtpLost: 65535 > 22382
D/: RTP4UP_UNIT_SE loss/recv:-1438.47/ 0.03 SEI|SPS|PPS|NI|I: 0.00|0.03|0.00|0.00|0.00
mpp_log: MppDecoderDequeueFrame mpp_frame_get_info_change: info changed found
mpp_dec: mpp_dec use internal frame buffer group
first_frame
frame size 1920x1080, code size 1920x1088
create rga thread
line 0: 25.12 FPS
line 0: 24.94 FPS
======== EXIT ========
D/: close curl rtsp://192.168.50.231:554
D/: destroying curl rtsp ...
D/: destroying curl rtsp ... done
D/: destroying RtspClientUnitEM ...
D/: socket close fd=15
D/: SOCKET : Closed -1
D/: socket close fd=18
D/: SOCKET : Closed -1
D/: socket close fd=17
D/: SOCKET : Closed -1
D/: socket close fd=16
D/: SOCKET : Closed -1
D/: destroying RtspClientUnitEM ... done
看log,像是应用正常退出的。 demo运行过程中, 按enter键,demo会退出运行(因为没有窗口管理)。你确认一下。 penguin 发表于 2020-3-13 14:39
看log,像是应用正常退出的。 demo运行过程中, 按enter键,demo会退出运行(因为没有窗口管理)。你确认一 ...
命令行界面是我按了enter正常退出的,问题不在命令行。我的意思是,我执行命令后,HDMI会输出实时的图像,但是输出图像不到1秒,就自动返回桌面了。 你是怎么执行的, 只有在接收到enter之后, 才会打印上述的log。 penguin 发表于 2020-3-13 16:11
你是怎么执行的, 只有在接收到enter之后, 才会打印上述的log。
通过SSL工具,执行sudo test_ff_rtsp_dec
HDMI连接一个1920*1080的显示器,显示器显示出摄像头的图像。1秒不到就自动退出了。
然后我发现显示不正常,就在SSL工具里面输入了enter
是先闪退,我才手动退出。