Toybrick

楼主: jefferyzhang

RK3399Pro入门教程(8)6路1080P30帧解码显示范例

 

vincent911001

注册会员

积分
92
发表于 2020-3-24 15:58:29 | 显示全部楼层
jefferyzhang 发表于 2020-3-24 11:52
File "/usr/local/lib/python3.6/site-packages/toybrick/rockx.py", line 1, in
    from . import rk ...

Hi Jeffery,

I did modify your sample code to run only single stream of video for testing. However, I get the error like below:
  1. [03/24 03:48:53.462] D/: drm display open ...
  2. [03/24 03:48:53.462] D/: Found display connectors: (encoders: 1)
  3. [03/24 03:48:53.672] D/: #[0] id: 91, type :HDMIA        (CONNECTED)
  4. [03/24 03:48:53.672] D/:          + [0] 1920x1080 : 1920x1080
  5. [03/24 03:48:53.672] D/:          + [1] 1920x1080 : 1920x1080
  6. [03/24 03:48:53.672] D/:          + [2] 1920x1080 : 1920x1080
  7. [03/24 03:48:53.672] D/:          + [3] 1680x1050 : 1680x1050
  8. [03/24 03:48:53.672] D/:          + [4] 1600x900 : 1600x900
  9. [03/24 03:48:53.672] D/:          + [5] 1280x1024 : 1280x1024
  10. [03/24 03:48:53.672] D/:          + [6] 1440x900 : 1440x900
  11. [03/24 03:48:53.672] D/:          + [7] 1280x720 : 1280x720
  12. [03/24 03:48:53.672] D/:          + [8] 1280x720 : 1280x720
  13. [03/24 03:48:53.672] D/:          + [9] 1280x720 : 1280x720
  14. [03/24 03:48:53.672] D/:          + [10] 1024x768 : 1024x768
  15. [03/24 03:48:53.672] D/:          + [11] 800x600 : 800x600
  16. [03/24 03:48:53.672] D/:          + [12] 720x576 : 720x576
  17. [03/24 03:48:53.672] D/:          + [13] 720x480 : 720x480
  18. [03/24 03:48:53.672] D/:          + [14] 720x480 : 720x480
  19. [03/24 03:48:53.672] D/:          + [15] 640x480 : 640x480
  20. [03/24 03:48:53.672] D/:          + [16] 640x480 : 640x480
  21. [03/24 03:48:53.672] D/:          + [17] 720x400 : 720x400
  22. [03/24 03:48:53.672] D/: End of Found
  23. [03/24 03:48:53.883] D/: connecting to [0] mode [0] 1920x1088
  24. [03/24 03:48:53.883] D/: found encoder id: 90
  25. [03/24 03:48:53.883] D/: use crtc 0 as default
  26. [03/24 03:48:53.886] D/: set crts : crtc_id: 64
  27. [03/24 03:48:53.886] D/: set crtc : encoder crtc_id: 64
  28. [03/24 03:48:53.897] D/: [0]insert display buffer : 0x558b09bb20
  29. [03/24 03:48:53.899] D/: set crts : crtc_id: 64
  30. [03/24 03:48:53.899] D/: set crtc : encoder crtc_id: 64
  31. [03/24 03:48:53.914] D/: [1]insert display buffer : 0x558b097eb0
  32. [03/24 03:48:53.914] D/: OpenGLES initializing ...
  33. [03/24 03:48:53.932] D/: * EGL_VERSION = 1.4 Midgard-"r13p0-00rel0" (have 22 configs)
  34. [03/24 03:48:53.932] D/: getEglSurface 154 gbmSurface=0x7f7c05b3f0

  35. [03/24 03:48:53.949] D/: changeEglSurface 169 gbmSurface=0x7f7c19fe40

  36. [03/24 03:48:53.986] D/: drm render open ...
  37. [03/24 03:48:54.036] D/:  mMppCtx null or no init...
  38. [03/24 03:48:54.036] D/: listening rtp port 40393
  39. [03/24 03:48:54.037] D/: listening rtcp port 40394
  40. [03/24 03:48:54.038] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  41. [03/24 03:48:54.205] D/: # Found [0] media: video
  42. [03/24 03:48:54.205] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  43. [03/24 03:48:54.205] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=38
  44. [03/24 03:48:54.205] D/: # Total found 1 channel(s).
  45. [03/24 03:48:54.205] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=38 , format=1
  46. [03/24 03:48:54.205] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=38
  47. [03/24 03:48:54.272] D/: drm render open ...
  48. [03/24 03:49:05.050] D/: close curl (rtsp://192.168.0.128:5000/stream)
  49. [03/24 03:49:05.274] D/: [0x7f64003230]destroying curl rtsp ...
  50. [03/24 03:49:05.275] D/: [0x7f64003230]destroying curl rtsp ... done
  51. [03/24 03:49:05.275] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  52. [03/24 03:49:05.275] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  53. [03/24 03:49:05.441] D/: # Found [0] media: video
  54. [03/24 03:49:05.442] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  55. [03/24 03:49:05.442] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=38
  56. [03/24 03:49:05.442] D/: # Total found 1 channel(s).
  57. [03/24 03:49:05.442] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=38 , format=1
  58. [03/24 03:49:05.442] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=38
  59. [03/24 03:49:16.520] D/: close curl (rtsp://192.168.0.128:5000/stream)
  60. [03/24 03:49:17.513] D/: [0x7f64003230]destroying curl rtsp ...
  61. [03/24 03:49:17.513] D/: [0x7f64003230]destroying curl rtsp ... done
  62. [03/24 03:49:17.514] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  63. [03/24 03:49:17.514] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  64. [03/24 03:49:17.914] D/: # Found [0] media: video
  65. [03/24 03:49:17.914] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  66. [03/24 03:49:17.914] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  67. [03/24 03:49:17.915] D/: # Total found 1 channel(s).
  68. [03/24 03:49:17.915] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  69. [03/24 03:49:17.915] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  70. [03/24 03:49:28.991] D/: close curl (rtsp://192.168.0.128:5000/stream)
  71. [03/24 03:49:29.985] D/: [0x7f64003230]destroying curl rtsp ...
  72. [03/24 03:49:29.987] D/: [0x7f64003230]destroying curl rtsp ... done
  73. [03/24 03:49:29.987] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  74. [03/24 03:49:29.987] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  75. [03/24 03:49:30.399] D/: # Found [0] media: video
  76. [03/24 03:49:30.399] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  77. [03/24 03:49:30.399] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  78. [03/24 03:49:30.399] D/: # Total found 1 channel(s).
  79. [03/24 03:49:30.400] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  80. [03/24 03:49:30.400] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  81. [03/24 03:49:41.478] D/: close curl (rtsp://192.168.0.128:5000/stream)
  82. [03/24 03:49:42.469] D/: [0x7f64003230]destroying curl rtsp ...
  83. [03/24 03:49:42.470] D/: [0x7f64003230]destroying curl rtsp ... done
  84. [03/24 03:49:42.470] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  85. [03/24 03:49:42.470] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  86. [03/24 03:49:42.811] D/: # Found [0] media: video
  87. [03/24 03:49:42.811] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  88. [03/24 03:49:42.811] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  89. [03/24 03:49:42.811] D/: # Total found 1 channel(s).
  90. [03/24 03:49:42.811] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  91. [03/24 03:49:42.811] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  92. [03/24 03:49:53.889] D/: close curl (rtsp://192.168.0.128:5000/stream)
  93. [03/24 03:49:54.882] D/: [0x7f64003230]destroying curl rtsp ...
  94. [03/24 03:49:54.883] D/: [0x7f64003230]destroying curl rtsp ... done
  95. [03/24 03:49:54.883] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  96. [03/24 03:49:54.883] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  97. [03/24 03:49:55.189] D/: # Found [0] media: video
  98. [03/24 03:49:55.189] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  99. [03/24 03:49:55.192] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  100. [03/24 03:49:55.192] D/: # Total found 1 channel(s).
  101. [03/24 03:49:55.192] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  102. [03/24 03:49:55.193] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  103. [03/24 03:50:06.363] D/: close curl (rtsp://192.168.0.128:5000/stream)
  104. [03/24 03:50:07.354] D/: [0x7f64003230]destroying curl rtsp ...
  105. [03/24 03:50:07.355] D/: [0x7f64003230]destroying curl rtsp ... done
  106. [03/24 03:50:07.355] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  107. [03/24 03:50:07.355] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  108. [03/24 03:50:09.101] D/: # Found [0] media: video
  109. [03/24 03:50:09.101] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  110. [03/24 03:50:09.101] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  111. [03/24 03:50:09.101] D/: # Total found 1 channel(s).
  112. [03/24 03:50:09.102] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  113. [03/24 03:50:09.102] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  114. [03/24 03:50:20.182] D/: close curl (rtsp://192.168.0.128:5000/stream)
  115. [03/24 03:50:21.171] D/: [0x7f64003230]destroying curl rtsp ...
  116. [03/24 03:50:21.172] D/: [0x7f64003230]destroying curl rtsp ... done
  117. [03/24 03:50:21.172] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  118. [03/24 03:50:21.172] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  119. [03/24 03:50:21.590] D/: # Found [0] media: video
  120. [03/24 03:50:21.591] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  121. [03/24 03:50:21.591] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  122. [03/24 03:50:21.591] D/: # Total found 1 channel(s).
  123. [03/24 03:50:21.591] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  124. [03/24 03:50:21.592] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  125. [03/24 03:50:32.766] D/: close curl (rtsp://192.168.0.128:5000/stream)
  126. [03/24 03:50:33.757] D/: [0x7f64003230]destroying curl rtsp ...
  127. [03/24 03:50:33.758] D/: [0x7f64003230]destroying curl rtsp ... done
  128. [03/24 03:50:33.758] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  129. [03/24 03:50:33.758] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  130. [03/24 03:50:34.350] D/: # Found [0] media: video
  131. [03/24 03:50:34.350] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  132. [03/24 03:50:34.351] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  133. [03/24 03:50:34.351] D/: # Total found 1 channel(s).
  134. [03/24 03:50:34.351] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  135. [03/24 03:50:34.351] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  136. [03/24 03:50:45.429] D/: close curl (rtsp://192.168.0.128:5000/stream)
  137. [03/24 03:50:46.420] D/: [0x7f64003230]destroying curl rtsp ...
  138. [03/24 03:50:46.421] D/: [0x7f64003230]destroying curl rtsp ... done
  139. [03/24 03:50:46.421] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  140. [03/24 03:50:46.421] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  141. [03/24 03:50:46.863] D/: # Found [0] media: video
  142. [03/24 03:50:46.863] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  143. [03/24 03:50:46.863] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  144. [03/24 03:50:46.863] D/: # Total found 1 channel(s).
  145. [03/24 03:50:46.863] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  146. [03/24 03:50:46.863] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  147. [03/24 03:50:57.941] D/: close curl (rtsp://192.168.0.128:5000/stream)
  148. [03/24 03:50:58.932] D/: [0x7f64003230]destroying curl rtsp ...
  149. [03/24 03:50:58.933] D/: [0x7f64003230]destroying curl rtsp ... done
  150. [03/24 03:50:58.933] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  151. [03/24 03:50:58.933] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  152. [03/24 03:50:59.252] D/: # Found [0] media: video
  153. [03/24 03:50:59.253] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  154. [03/24 03:50:59.253] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  155. [03/24 03:50:59.253] D/: # Total found 1 channel(s).
  156. [03/24 03:50:59.254] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  157. [03/24 03:50:59.254] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  158. [03/24 03:51:10.333] D/: close curl (rtsp://192.168.0.128:5000/stream)
  159. [03/24 03:51:11.324] D/: [0x7f64003230]destroying curl rtsp ...
  160. [03/24 03:51:11.325] D/: [0x7f64003230]destroying curl rtsp ... done
  161. [03/24 03:51:11.325] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  162. [03/24 03:51:11.325] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
  163. [03/24 03:51:11.813] D/: # Found [0] media: video
  164. [03/24 03:51:11.813] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
  165. [03/24 03:51:11.814] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
  166. [03/24 03:51:11.814] D/: # Total found 1 channel(s).
  167. [03/24 03:51:11.814] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
  168. [03/24 03:51:11.814] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
  169. [03/24 03:51:22.891] D/: close curl (rtsp://192.168.0.128:5000/stream)
  170. [03/24 03:51:23.885] D/: [0x7f64003230]destroying curl rtsp ...
  171. [03/24 03:51:23.885] D/: [0x7f64003230]destroying curl rtsp ... done
  172. [03/24 03:51:23.885] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
  173. [03/24 03:51:23.886] D/: curlto rtsp://192.168.0.128:5000/stre
复制代码


Can I know is there anything that I installed wrongly?
回复

使用道具 举报

jefferyzhang

超级版主

积分
7736
 楼主| 发表于 2020-3-24 16:16:35 | 显示全部楼层
vincent911001 发表于 2020-3-24 15:58
Hi Jeffery,

I did modify your sample code to run only single stream of video for testing. However ...

It looks fine, but rtsp protocal handshaking failed (maybe it is a bug).
You can try to use another rtsp server (or rtsp cam).
It is just a sample here, I can't promise match all rtsp services
回复

使用道具 举报

vincent911001

注册会员

积分
92
发表于 2020-3-24 16:27:00 | 显示全部楼层
jefferyzhang 发表于 2020-3-24 16:16
It looks fine, but rtsp protocal handshaking failed (maybe it is a bug).
You can try to use anothe ...

I actually used VLC on my laptop to create the stream with offline video file
So, i dont really understand when you told me to use another server?
回复

使用道具 举报

jefferyzhang

超级版主

积分
7736
 楼主| 发表于 2020-3-24 16:39:14 | 显示全部楼层
vincent911001 发表于 2020-3-24 16:27
I actually used VLC on my laptop to create the stream with offline video file
So, i dont really un ...


Because this whl is a sample only, there are many bugs in rtsp client.
回复

使用道具 举报

vincent911001

注册会员

积分
92
发表于 2020-3-24 17:05:30 | 显示全部楼层
jefferyzhang 发表于 2020-3-24 16:39
Because this whl is a sample only, there are many bugs in rtsp client.

Understood. Thanks for your help.
回复

使用道具 举报

stefan

新手上路

积分
18
发表于 2020-3-27 11:28:41 | 显示全部楼层
Debian安装, toybrick-mali.sh在哪?没找到
回复

使用道具 举报

stefan

新手上路

积分
18
发表于 2020-3-27 11:43:15 | 显示全部楼层
yoyomai 发表于 2020-3-20 10:27
首先感谢大神,板子是RK3399PRO.装了相关依赖库,已经跑通了,就是会黑屏。
我用的海康4K网络摄像头。
不 ...

Hi, 你好,请问Debian 上libEGL.so缺失是怎么解决的? 我有同样的问题,谢谢!
回复

使用道具 举报

kyeteo

注册会员

积分
56
发表于 2020-4-9 11:35:16 | 显示全部楼层
示例的时候出现这个的原因是什么呀,(DrmBuffer in rk_drm.cpp:308): failed to open drm buffer !
回复

使用道具 举报

jefferyzhang

超级版主

积分
7736
 楼主| 发表于 2020-4-9 11:52:55 | 显示全部楼层
kyeteo 发表于 2020-4-9 11:35
示例的时候出现这个的原因是什么呀,(DrmBuffer in rk_drm.cpp:308): failed to open drm buffer ! ...

你上位机用的不是rk板子肯定不能用我们drm的。。。
建议你购买我们Toybrick的板子来做。
回复

使用道具 举报

kyeteo

注册会员

积分
56
发表于 2020-4-9 12:17:11 | 显示全部楼层
jefferyzhang 发表于 2020-4-9 11:52
你上位机用的不是rk板子肯定不能用我们drm的。。。
建议你购买我们Toybrick的板子来做。 ...

我用的的是rk3399pro呢
toybrick@debian10:~/gstreamer-rockchip-master$
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表