penguin
发表于 2020-3-19 18:44:52
你在板子上安装vlc测试一下你的视频流能不能播,网络环境怎么样?现在局域网里面测试, log 里面有报reveive time out
herman_shi
发表于 2020-3-20 12:34:01
penguin 发表于 2020-3-19 18:44
你在板子上安装vlc测试一下你的视频流能不能播,网络环境怎么样?现在局域网里面测试, log 里面有报revei ...
谢谢你啊,我用vlc可以正常播放我改了下ipc配置 但是现在是报以下错误,貌似是没找到显示设备?
firefly@firefly:/etc/ff_rtsp_dec$ 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: 2883421004x127
dst_size: 480x360
rotate: 0
drmModeGetEncoder() faild
available drm_dev not found
guaji
发表于 2020-3-23 09:54:04
请问一下重新刷固件是不是装的东西就都没了?
guaji
发表于 2020-3-23 10:14:15
请问这个demo支持无账号密码的情况吗
guaji
发表于 2020-3-23 11:27:23
本帖最后由 guaji 于 2020-3-23 12:06 编辑
我这边执行之后是全部黑屏了,只有鼠标箭头可以动,但是点了没反应,键盘也没反应
log是这样的
firefly@firefly:~$ sudo test_ff_rtsp_dec
performance
Version: 1.2
dri_path: /dev/dri/card0
prefer_w: 480
prefer_h: 360
code_type:0
line_count: 1
dst_s_size: 2748625740x127
dst_size: 480x360
rotate: 0
url: rtsp://192.168.10.170:8554/
usr:
pwd:
tcp: 0
0
mpi: mpp version: Without VCS info
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
D/: listening rtcp port 24710
D/: listening rtp port 24709
D/: curlto rtsp://192.168.10.170:8554/ , cli 24709:24719, tcp: 0
D/: listening rtp port 24719
D/: listening rtcp port 24720
D/: # FOUND media: audio
D/: # FOUND rtpmap: id:14 format:MPA/90000 bitrate:2
D/: # FOUND control: rtsp://192.168.10.170:8554/trackID=0
D/: # FOUND media: video
D/: # FOUND rtpmap: id:96 format:H264 bitrate:90000
D/: # FOUND control: rtsp://192.168.10.170:8554/trackID=1
D/: # TOTAL FOUND2
D/: TRACK : rtsp://192.168.10.170:8554/trackID=0
D/: TRACK : rtsp://192.168.10.170:8554/trackID=1
D/: setup 24709 , 24710, uri: rtsp://192.168.10.170:8554/trackID=1
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.10.170:8554/ ; type = Audio
W/: (threadRtpFunc in unit_rtsp_client.cpp:122): UDP-RTP receive timeout. rtsp://192.168.10.170:8554/ ; type = Video
D/: close curl rtsp://192.168.10.170:8554/
D/: destroying curl rtsp ...
D/: destroying curl rtsp ... done
D/: ReEnable rtsp client rtsp://192.168.10.170:8554/
D/: curlto rtsp://192.168.10.170:8554/ , cli 24709:24719, tcp: 0
mpp_log: decode_get_frame failed, return -8.
D/: # FOUND media: audio
D/: # FOUND rtpmap: id:14 format:MPA/90000 bitrate:2
D/: # FOUND control: rtsp://192.168.10.170:8554/trackID=0
D/: # FOUND media: video
D/: # FOUND rtpmap: id:96 format:H264 bitrate:90000
D/: # FOUND control: rtsp://192.168.10.170:8554/trackID=1
D/: # TOTAL FOUND2
D/: TRACK : rtsp://192.168.10.170:8554/trackID=0
D/: TRACK : rtsp://192.168.10.170:8554/trackID=1
D/: setup 24709 , 24710, uri: rtsp://192.168.10.170:8554/trackID=1
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.10.170:8554/ ; 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.
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.10.170:8554/ ; type = Video
D/: close curl rtsp://192.168.10.170:8554/
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.10.170:8554/ ; type = Audio
mpp_log: decode_get_frame failed, return -8.
D/: destroying curl rtsp ...
D/: destroying curl rtsp ... done
D/: ReEnable rtsp client rtsp://192.168.10.170:8554/
D/: curlto rtsp://192.168.10.170:8554/ , cli 24709:24719, tcp: 0
mpp_log: decode_get_frame failed, return -8.
D/: # FOUND media: audio
D/: # FOUND rtpmap: id:14 format:MPA/90000 bitrate:2
D/: # FOUND control: rtsp://192.168.10.170:8554/trackID=0
D/: # FOUND media: video
D/: # FOUND rtpmap: id:96 format:H264 bitrate:90000
D/: # FOUND control: rtsp://192.168.10.170:8554/trackID=1
D/: # TOTAL FOUND2
D/: TRACK : rtsp://192.168.10.170:8554/trackID=0
D/: TRACK : rtsp://192.168.10.170:8554/trackID=1
D/: setup 24709 , 24710, uri: rtsp://192.168.10.170:8554/trackID=1
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.
guaji
发表于 2020-3-23 16:42:22
guaji 发表于 2020-3-23 11:27
我这边执行之后是全部黑屏了,只有鼠标箭头可以动,但是点了没反应,键盘也没反应
log是这样的
firefly@f ...
我的做法是在笔记本上用vlc推rtsp流,然后板子上的vlc可以播放,但是这个demo以及gst-launch-1.0都无法播放
895816513
发表于 2020-3-24 17:50:03
guaji 发表于 2020-3-23 16:42
我的做法是在笔记本上用vlc推rtsp流,然后板子上的vlc可以播放,但是这个demo以及gst-launch-1.0都无法播 ...
以海康摄像头为例:使用ffpalyer测试
ffplay rtsp://admin:firefly123@168.168.3.103:554/av_stream
-------------------------------
若正常播放修改json文件
------------------------------
vim /etc/ff_rtsp_dec/config.json
{
"basepara" : {
"dri_path" : "/dev/dri/card0",
"prefer_monitor_w" : 1920,
"prefer_monitor_h" : 1080,
"code_type" : "H265",
"line_count" : 1,
"output_w" : 480,
"output_h" : 360,
"rotate" : 0
},
"rtsp" : [
{
"id" : 0,
"url" : "rtsp://168.168.3.103:554/av_stream",
"usr" : "admin",
"pwd" : "firefly123",
"tcp" : false
}
]
}
sudo test_ff_rtsp_dec
使用过程中hdmi显示的确是会黑屏的,但连接成功后会投影图像
895816513
发表于 2020-3-24 17:52:27
以海康摄像头为例:使用ffpalyer测试
ffplay rtsp://admin:firefly123@168.168.3.103:554/av_stream
-------------------------------
若正常播放修改json文件
------------------------------
vim /etc/ff_rtsp_dec/config.json
{
"basepara" : {
"dri_path" : "/dev/dri/card0",
"prefer_monitor_w" : 1920,
"prefer_monitor_h" : 1080,
"code_type" : "H265",
"line_count" : 1,
"output_w" : 480,
"output_h" : 360,
"rotate" : 0
},
"rtsp" : [
{
"id" : 0,
"url" : "rtsp://168.168.3.103:554/av_stream",
"usr" : "admin",
"pwd" : "firefly123",
"tcp" : false
}
]
}
sudo test_ff_rtsp_dec
使用过程中hdmi显示的确是会黑屏的,但连接成功后会投影图像
penguin
发表于 2020-3-26 10:27:05
使用黑屏的时候, 先看看这个文件
cat 20-modesetting.conf
Section "Device"
Identifier"Rockchip Graphics"
Driver "modesetting"
Option "AccelMethod" "exa"
# Option "AccelMethod" "glamor"
Option "DRI" "2"
Option "FlipFB" "always"
EndSection
如果是这样, 注释掉Option "FlipFB" "always", 然后重启再测试。
图形显示是基于drm的, 所以是没有窗口的。
提示解码mpp_log: decode_get_frame failed, return -8 ,
vlc推流,这个确实有。
别的情况下, 首先确认编码格式对不对, 264还是265.
然后再确认是不是网络的原因。
DDX
发表于 2021-2-19 11:54:51
895816513 发表于 2020-3-24 17:50
以海康摄像头为例:使用ffpalyer测试
ffplay rtsp://admin:firefly123@168.168.3.103:554/av_stream
请问,黑屏之后怎么显示投影的图像?我在/etc/ff_rtsp_dec文件夹中有一张full.png的图片,这是连接成功了吗?