slime
发表于 2020-3-13 17:04:34
slime 发表于 2020-3-13 17:01
通过SSL工具,执行sudo test_ff_rtsp_dec
HDMI连接一个1920*1080的显示器,显示器显示出摄像头的 ...
如果不按enter,就会这样一直下去。。但是,但是HDMI是没输出的!!!
irefly@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
line 0: 25.12 FPS
line 0: 24.94 FPS
line 0: 25.12 FPS
line 0: 24.94 FPS
line 0: 25.12 FPS
line 0: 24.94 FPS
。。。。。
。
。
。
penguin
发表于 2020-3-14 14:41:22
贴一下你的/etc/X11/xorg.conf.d/20-modesettings.conf。 然后不要远程执行,直接在本地执行看看。
slime
发表于 2020-3-16 11:08:33
本帖最后由 slime 于 2020-3-16 11:23 编辑
penguin 发表于 2020-3-14 14:41
贴一下你的/etc/X11/xorg.conf.d/20-modesettings.conf。 然后不要远程执行,直接在本地执行看看。
以下是/etc/X11/xorg.conf.d$ cat 20-modesetting.conf 的配置:目前来看就是显示的问题了,我试了12路都能连上
firefly@firefly:/etc/X11/xorg.conf.d$ cat 20-modesetting.conf
Section "Device"
Identifier"Rockchip Graphics"
Driver "modesetting"
Option "AccelMethod" "exa"
# Option "AccelMethod" "glamor"
Option "DRI" "2"
Option "FlipFB" "always"
EndSection
Section "ServerFlags"
Option "BlankTime""0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Section "Screen"
Identifier"Default Screen"
Device "Rockchip Graphics"
Monitor "Default Monitor"
EndSection
### Valid values for rotation are "normal", "left", "right"
Section "Monitor"
Identifier"Default Monitor"
Option "Rotate" "normal"
Option "DPMS" "false"
EndSection
firefly@firefly:/etc/X11/xorg.conf.d$
penguin
发表于 2020-3-18 09:33:49
在20-modesetting.conf 中删除 Option "FlipFB" "always"
再重启一下,测试一下。
herman_shi
发表于 2020-3-18 12:11:39
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: 2228638540x127
dst_size: 480x360
rotate: 0
url: rtsp://192.168.1.181/stream1
usr: admin
pwd: admin
tcp: 1
0
mpi: mpp version: Without VCS info
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
D/: listening rtp port 55886
D/: listening rtp port 55896
D/: curlto rtsp://192.168.1.181/stream1 , cli 55886:55896, tcp: 0
D/: listening rtcp port 55897
D/: listening rtcp port 55887
D/: # FOUND media: video
D/: # FOUND rtpmap: id:96 format:H264 bitrate:90000
D/: # FOUND control: track1
D/: # TOTAL FOUND1
D/: TRACK : track1
D/: setup 55886 , 55887, uri: rtsp://192.168.1.181/stream1/track1
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
W/: (threadRtpFunc in unit_rtsp_client.cpp:122): UDP-RTP receive timeout. rtsp://192.168.1.181/stream1 ; type = Video
W/: (threadRtpFunc in unit_rtsp_client.cpp:122): UDP-RTP receive timeout. rtsp://192.168.1.181/stream1 ; type = Audio
D/: close curl rtsp://19
你好,我也在弄这个,请教下,我的显示这个是什么原因呢?
penguin
发表于 2020-3-19 09:00:55
你好,应用程序有更新,
apt update
apt install firefly-multi-rtsp
更新一下应用,再重新测试,谢谢!
herman_shi
发表于 2020-3-19 09:16:39
penguin 发表于 2020-3-19 09:00
你好,应用程序有更新,
apt update
apt install firefly-multi-rtsp
已经是最新版本测试的
herman_shi
发表于 2020-3-19 09:20:06
penguin 发表于 2020-3-19 09:00
你好,应用程序有更新,
apt update
apt install firefly-multi-rtsp
{
"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.1.181/stream1",
"usr" : "admin",
"pwd" : "admin",
"tcp" : true
},
这是我配置的参数,麻烦帮我看看
penguin
发表于 2020-3-19 12:01:57
配置看上去没有问题,tcp 设为false.
你dpkg -l firefly-multi-rtsp , 我看下。
herman_shi
发表于 2020-3-19 12:52:23
penguin 发表于 2020-3-19 12:01
配置看上去没有问题,tcp 设为false.
你dpkg -l firefly-multi-rtsp , 我看下。
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
W/: (threadRtpFunc in unit_rtsp_client.cpp:122): UDP-RTP receive timeout. rtsp://192.168.1.181/stream1 ; type = Video
D/: close curl rtsp://192.168.1.181/stream1
D/: destroying curl rtsp ...
D/: destroying curl rtsp ... done
D/: ReEnable rtsp client rtsp://192.168.1.181/stream1
D/: curlto rtsp://192.168.1.181/stream1 , cli 40658:40668, tcp: 0
W/: (threadRtpFunc in unit_rtsp_client.cpp:122): UDP-RTP receive timeout. rtsp://192.168.1.181/stream1 ; type = Audio
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
D/: # FOUND media: video
D/: # FOUND rtpmap: id:96 format:H264 bitrate:90000
D/: # FOUND control: track1
D/: # TOTAL FOUND1
D/: TRACK : track1
D/: setup 40658 , 40659, uri: rtsp://192.168.1.181/stream1/track1
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
mpp_log: decode_get_frame failed, return -8.
换flase也是这样的。
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============================-====================-====================-===================================================================
iifirefly-multi-rtsp 1.1 arm64 Firefly multiple RTSP stream decode demo