- #!/usr/bin/env python3.6
- import os
- import toybrick as toy
- import time
- import threading
- def func_rtspdisplay(gl, index, url, usr, pwd):
- rtsp = toy.input.createRtspClient(url, usr, pwd)
- rtsp.connect()
- last = time.time()
- while rtsp.is_opened():
- frame = rtsp.read_rgb(640, 360)
- now = time.time()
- gl.show(index, frame)
- print("> [%d] got frame. use = %f s" % (index, now - last))
- last = now
- print('# End of Thread %d' % (index))
- if __name__ == '__main__':
- os.system('iptables -F') # Disable Firewall
- gl = toy.output.createGLDrmDisplay(toy.DisplayPort.HDMI_A)
- idx0 = gl.add_view(0, 180, 640, 360)
- idx1 = gl.add_view(640, 180, 640, 360)
- idx2 = gl.add_view(1280, 180, 640, 360)
- idx3 = gl.add_view(0, 540, 640, 360)
- idx4 = gl.add_view(640, 540, 640, 360)
- idx5 = gl.add_view(1280, 540, 640, 360)
- t0 = threading.Thread(target=func_rtspdisplay, args = (gl, idx0, "rtsp://192.168.169.13/cam/realmonitor?channel=1&subtype=0", "admin", "admin123"))
- t1 = threading.Thread(target=func_rtspdisplay, args = (gl, idx1, "rtsp://192.168.169.16/cam/realmonitor?channel=1&subtype=0", "admin", "admin123"))
- t2 = threading.Thread(target=func_rtspdisplay, args = (gl, idx2, "rtsp://192.168.169.13/cam/realmonitor?channel=1&subtype=0", "admin", "admin123"))
- t3 = threading.Thread(target=func_rtspdisplay, args = (gl, idx3, "rtsp://192.168.169.16/cam/realmonitor?channel=1&subtype=0", "admin", "admin123"))
- t4 = threading.Thread(target=func_rtspdisplay, args = (gl, idx4, "rtsp://192.168.169.13/cam/realmonitor?channel=1&subtype=0", "admin", "admin123"))
- t5 = threading.Thread(target=func_rtspdisplay, args = (gl, idx5, "rtsp://192.168.169.16/cam/realmonitor?channel=1&subtype=0", "admin", "admin123"))
- t0.start()
- t1.start()
- t2.start()
- t3.start()
- t4.start()
- t5.start()
- t0.join()
- t1.join()
- t2.join()
- t3.join()
- t4.join()
- t5.join()
复制代码
- # Main API Lists V0.2.X
- ## Graphic Buffer
- gbuf = toybrick.createGraphicBuffer(width, height, GraphicFormat.<format>) # 新建buffer
- gbuf.array() # 获取np数组
- gbuf.resize(width, height) # 缩放
- gbuf.rotate(degree) # 旋转
- gbuf.memcpy_from(byte_list) # 从np数组拷贝
- ## toybrick.in # 输入
- rtspc = toybrick.in.createRtspClient(url, user, password, usetcp, verbose) # 新建Rtsp客户端
- rtspc.set_url(url, user, password) # 设置rtsp地址(如果构造时候没设置的话)
- rtspc.connect() # 开始连接
- rtspc.disconnect() # 断开连接
- rtspc.read_rgb(width, height) -> GraphicBuffer # 获取RGB帧(自带缩放)
- ## toybrick.out # 输出
- drmdisp = toybrick.out.createDrmDisplay(DisplayPort.<port>, DisplayMode.<mode>) # DRM显示输出(建议用GL来显示)
- drmdisp.printConnects() # 打印出所有可显示设备
- drmdisp.show(index, frame) # 在mode的index位置显示一帧 (只支持GraphicBuffer)
- gldisp = toybrick.output.createGLDrmDisplay(DisplayPort.<port>) # OpenGL via DRM 显示
- gldisp.add_view(x, y, w, h) -> index # 新增矩形显示区域 (屏幕左下角为坐标原点,右上角为(1920, 1080))
- gldisp.show(index, frame) # 在index的view区域显示一帧(只支持GraphicBuffer)
复制代码
(rockx python 从这里去除,因为rockx已经有python版本了)- dnf install python3-toybrick-0.2-8.aarch64.rpm
复制代码
- dnf remove python3-toybrick
复制代码
- dnf remove --setopt=tsflags=noscripts python3-toybrick
复制代码
- sudo apt install rockchip-mpp
- sudo apt install toybrick-gbm-dev
- sudo toybrick-mali.sh link
- pip3 install xxxxxx.whl
复制代码
bingqingsuimeng 发表于 2019-9-3 10:25
有OpenGL via DRM的C++示例吗?
shopping 发表于 2019-9-5 09:01
你好,我是 rk3399 pro 开发板,debian9 系统。以上技术方案有没有我们这个对应版本的,我计划用 2个 USB- ...
jefferyzhang 发表于 2019-9-5 12:06
usb cam的这个要评估usb带宽够不够。我们板子上处理是没有问题的。这个我跟我们老大说下,看看能不能做个 ...
geekioe 发表于 2019-9-6 12:00
1、使用上述的方式做6路摄像头硬解码;
2、然后再对6路视频流做人脸检测,做人脸计数;
这样理论上是否可行 ...
jefferyzhang 发表于 2019-9-6 14:59
当然可行,看你模型运行速度是多少,你需要的帧率是多少,一个NPU够不够算,不够就多加几个。
带宽上是没 ...
geekioe 发表于 2019-9-9 09:28
get~
我自己测试看看,不够的话,挂在计算棒的形式是可行的对吧?
jefferyzhang 发表于 2019-9-6 14:59
当然可行,看你模型运行速度是多少,你需要的帧率是多少,一个NPU够不够算,不够就多加几个。
带宽上是没 ...
shopping 发表于 2019-9-9 14:26
你好,以后公司是计划一个板子同时处理两路视频的输入,看你说的,NPU可以自己加,还是联系厂家帮忙? ...
jefferyzhang 发表于 2019-9-9 15:05
1808计算棒,随便加。。。
3399Pro带一个NPU,1808计算棒也带NPU,你想插几个都可以 ...
shopping 发表于 2019-9-10 16:45
贵公司的NPU可以同时跑两个目标检测算法模型吗(mobilenet-ssd这种)?如果可以,帧率最大会是多少? 还有 ...
18958105257 发表于 2019-9-16 13:41
@jefferyzhang 你好j链接: https://pan.baidu.com/s/1B1tt0YptruPuNLekCuh5gQ 提取码: d91q; 这个地址过 ...
kyeteo 发表于 2019-9-16 11:04
dnf install python3-toybrick-0.2-8.aarch64.rpm
这个指令无法安装,显示找不到包是啥原因呀 ...
duanyanbiao 发表于 2019-9-18 18:18
ImportError: librknn_api.so: cannot open shared object file: No such file or directory
我遇到这个问 ...
18958105257 发表于 2019-9-19 14:14
File "1demo_multi_gldisplay.py", line 3, in
import toybrick as toy
File "/usr/local/lib ...
jefferyzhang 发表于 2019-9-19 17:27
嗯,rockx是要单独安装的。
yuys 发表于 2019-9-24 14:20
版主怎么安装呢?有教程?
jefferyzhang 发表于 2019-8-26 10:53
快速开发包简介:
1. 收集和提供常用input/output接口抽象(目前版本input仅有rtsp client,output仅有 ...
sliver 发表于 2019-10-11 17:22
GPU显示的时候,是把RGB图片生成纹理贴上去的吗
heyunteng251314 发表于 2019-10-28 14:05
版主,你好!目前我基于opengl es上实时播放MP4视频数据,发现处理速率很慢。处理流是将MP4中H264码流中的Y ...
jefferyzhang 发表于 2019-10-28 14:17
shader转换。sample可以参看下gles的例子。
heyunteng251314 发表于 2019-10-28 17:16
很感激版主的回复!我用的就是shader的转化模式,我想请教一下你,你那DEMON是直接用YUV做贴图,没有转化成 ...
iamher0 发表于 2019-11-4 17:01
debian上的安装包有吗?另外 mpp出来的视频帧,输入到NPU,可以实现零COPY吗?
...
jefferyzhang 发表于 2019-11-4 19:00
没有。
NPU都不可能0拷贝,就像PC上GPU也不可能0拷贝,两个ddr不是通的
iamher0 发表于 2019-11-5 09:03
通过DMA呢,不通过CPU可行吗?
bingqingsuimeng 发表于 2019-9-3 10:25
有OpenGL via DRM的C++示例吗?
zouxf 发表于 2019-11-25 10:02
请问,这里用OpenGL做显示, NV12->RGB还是用RGA来完成的吗?
另外, 直接通过libdrm做显示, 和OpenGL相 ...
jefferyzhang 发表于 2019-11-25 10:33
1. opengl用shader直接吃nv12,不需要rga转换。
2. opengl画完一样也要通过libdrm接口显示,不存在什么效 ...
yuys 发表于 2019-9-24 14:20
版主怎么安装呢?有教程?
jefferyzhang 发表于 2019-9-24 14:52
查看论坛置顶rockx发布贴
someone9388 发表于 2019-12-13 16:31
按照例子执行,显示器黑屏, 终端输出如下信息:
[toybrick@toybrick workspace]$ ./demo_multi_gldisplay ...
w910820618 发表于 2019-12-26 15:28
大神啊,为什么我用你们提供的Python库无法导入成功啊,总是提示我 ImportError: cannot import name 'rkbu ...
jefferyzhang 发表于 2019-12-26 17:34
rkbuffer是一个so,不是py
w910820618 发表于 2019-12-26 17:48
那我应该怎么做呢?我是按照教程上的方式安装的,你能给点提示吗?我这里实在着急? ...
w910820618 发表于 2019-12-27 08:51
我用的是ferdoa 的操作系统,报错信息就是提示我 无法加载 那些 so的库
Traceback (most recent call last) ...
jefferyzhang 发表于 2019-12-27 09:01
从这信息看,只有两种可能:
1. 你用的是非常早期的固件,不支持这个接口,这种情况下你只要烧写toybrick ...
w910820618 发表于 2019-12-27 09:21
我用的是Rockpi4 这个板子,但是我刷的系统是你们家的系统。这个板子的芯片也是RK3399,它不能使用你们的 ...
w910820618 发表于 2019-12-27 15:24
大神,能不能解释 mpp_frame_get_errinfo 和 mpp_frame_get_discard 这两个函数是什么意思? 为什么在 mpi_ ...
iceman 发表于 2020-1-5 17:01
有没有可以在windows+python下加载的toybrick包。
import toybrick as toy
jefferyzhang 发表于 2019-9-19 10:18
No such file or directory
是toybrick板子么?我们所有固件都有这个so
- Traceback (most recent call last):
- File "demo_multi_gldisplay.py", line 3, in <module>
- import toybrick as toy
- File "/usr/local/lib/python3.6/site-packages/toybrick/__init__.py", line 35, in <module>
- from toybrick.rockx import createRockx, RockxType, Rockx
- File "/usr/local/lib/python3.6/site-packages/toybrick/rockx.py", line 1, in <module>
- from . import rkrockx
- ImportError: librockx.so: cannot open shared object file: No such file or directory
复制代码
SodrSnne 发表于 2020-3-5 17:48
新的debian10固件怎么安装这个库,帖子里面提供的是Ferdora的包
jefferyzhang 发表于 2020-3-5 17:56
这是python的库,跟系统无关....
SodrSnne 发表于 2020-3-5 17:59
是啊,但是帖子前面提供的是rpm的安装包应该对应Fedora系统吧,我刷了最新的debian10固件,是不是就不能安装 ...
jefferyzhang 发表于 2020-3-5 20:05
哦,好,我回头做一个单纯whl的
icell 发表于 2020-3-12 21:30
对了大神,1路usb摄像头(1080)解码+1路编码(1080),帧率速度就比1路mipi摄像头(1080)+编码(1080)低很多 ...
jefferyzhang 发表于 2020-3-5 20:05
哦,好,我回头做一个单纯whl的
SodrSnne 发表于 2020-3-16 09:57
楼主你好,这边有些急需python硬解,请问whl的包什么时间能发布
呱唧 发表于 2020-3-18 23:18
这个对应numpy的版本是多少?import toybrick的时候会报错“ImportError: numpy.core.multiarray failed to ...
SodrSnne 发表于 2020-3-19 13:26
新买的3399板子,烧了debian10系统。跑demo时候发现找不到so文件的错误
请问这个该如何解决,之前在fedro上 ...
jefferyzhang 发表于 2020-3-19 14:11
你没仔细看这帖子么,我帖子里已经说了啊,要apt install两个东西啊
yoyomai 发表于 2020-3-19 19:31
按帖子装上
sudo apt install rockchip-mpp
sudo apt install toybrick-gbm-dev
jefferyzhang 发表于 2020-3-20 08:25
请问你的开发版是什么?
jefferyzhang 发表于 2019-8-26 10:53
快速开发包简介:
1. 收集和提供常用input/output接口抽象(目前版本input仅有rtsp client,output仅有 ...
jefferyzhang 发表于 2019-8-26 10:53
快速开发包简介:
1. 收集和提供常用input/output接口抽象(目前版本input仅有rtsp client,output仅有 ...
- import toybrick as toy
复制代码
- [toybrick@toybrick ~]$ python3
- Python 3.6.8 (default, Mar 21 2019, 09:31:25)
- [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import toybrick as toy
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "/usr/local/lib/python3.6/site-packages/toybrick/__init__.py", line 35, in <module>
- from toybrick.rockx import createRockx, RockxType, Rockx
- File "/usr/local/lib/python3.6/site-packages/toybrick/rockx.py", line 1, in <module>
- from . import rkrockx
- ImportError: libobject_detection.so: cannot open shared object file: No such file or directory
复制代码
vincent911001 发表于 2020-3-24 10:20
I have already installed python3-toybrick through the downloaded
and have also copied the /include ...
jefferyzhang 发表于 2020-3-24 10:26
You can comment this line out for working around it.
There is a new release of rockx python editio ...
- import toybrick as toy
复制代码
jefferyzhang 发表于 2019-12-27 09:01
从这信息看,只有两种可能:
1. 你用的是非常早期的固件,不支持这个接口,这种情况下你只要烧写toybrick ...
vincent911001 发表于 2020-3-24 11:19
If i comment out
lll138139 发表于 2020-3-24 11:27
你好,版主,我用的是toybrick的3399pro的板子,刷的是最新的debian10固件,同样还是出现这个问题,该怎 ...
jefferyzhang 发表于 2020-3-24 11:52
File "/usr/local/lib/python3.6/site-packages/toybrick/rockx.py", line 1, in
from . import rk ...
jefferyzhang 发表于 2020-3-24 11:54
报的错发一下。首页帖子有专门debian10的whl包,按那个步骤装了么
jefferyzhang 发表于 2020-3-24 11:52
File "/usr/local/lib/python3.6/site-packages/toybrick/rockx.py", line 1, in
from . import rk ...
- [03/24 03:48:53.462] D/: drm display open ...
- [03/24 03:48:53.462] D/: Found display connectors: (encoders: 1)
- [03/24 03:48:53.672] D/: #[0] id: 91, type :HDMIA (CONNECTED)
- [03/24 03:48:53.672] D/: + [0] 1920x1080 : 1920x1080
- [03/24 03:48:53.672] D/: + [1] 1920x1080 : 1920x1080
- [03/24 03:48:53.672] D/: + [2] 1920x1080 : 1920x1080
- [03/24 03:48:53.672] D/: + [3] 1680x1050 : 1680x1050
- [03/24 03:48:53.672] D/: + [4] 1600x900 : 1600x900
- [03/24 03:48:53.672] D/: + [5] 1280x1024 : 1280x1024
- [03/24 03:48:53.672] D/: + [6] 1440x900 : 1440x900
- [03/24 03:48:53.672] D/: + [7] 1280x720 : 1280x720
- [03/24 03:48:53.672] D/: + [8] 1280x720 : 1280x720
- [03/24 03:48:53.672] D/: + [9] 1280x720 : 1280x720
- [03/24 03:48:53.672] D/: + [10] 1024x768 : 1024x768
- [03/24 03:48:53.672] D/: + [11] 800x600 : 800x600
- [03/24 03:48:53.672] D/: + [12] 720x576 : 720x576
- [03/24 03:48:53.672] D/: + [13] 720x480 : 720x480
- [03/24 03:48:53.672] D/: + [14] 720x480 : 720x480
- [03/24 03:48:53.672] D/: + [15] 640x480 : 640x480
- [03/24 03:48:53.672] D/: + [16] 640x480 : 640x480
- [03/24 03:48:53.672] D/: + [17] 720x400 : 720x400
- [03/24 03:48:53.672] D/: End of Found
- [03/24 03:48:53.883] D/: connecting to [0] mode [0] 1920x1088
- [03/24 03:48:53.883] D/: found encoder id: 90
- [03/24 03:48:53.883] D/: use crtc 0 as default
- [03/24 03:48:53.886] D/: set crts : crtc_id: 64
- [03/24 03:48:53.886] D/: set crtc : encoder crtc_id: 64
- [03/24 03:48:53.897] D/: [0]insert display buffer : 0x558b09bb20
- [03/24 03:48:53.899] D/: set crts : crtc_id: 64
- [03/24 03:48:53.899] D/: set crtc : encoder crtc_id: 64
- [03/24 03:48:53.914] D/: [1]insert display buffer : 0x558b097eb0
- [03/24 03:48:53.914] D/: OpenGLES initializing ...
- [03/24 03:48:53.932] D/: * EGL_VERSION = 1.4 Midgard-"r13p0-00rel0" (have 22 configs)
- [03/24 03:48:53.932] D/: getEglSurface 154 gbmSurface=0x7f7c05b3f0
- [03/24 03:48:53.949] D/: changeEglSurface 169 gbmSurface=0x7f7c19fe40
- [03/24 03:48:53.986] D/: drm render open ...
- [03/24 03:48:54.036] D/: mMppCtx null or no init...
- [03/24 03:48:54.036] D/: listening rtp port 40393
- [03/24 03:48:54.037] D/: listening rtcp port 40394
- [03/24 03:48:54.038] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:48:54.205] D/: # Found [0] media: video
- [03/24 03:48:54.205] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:48:54.205] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=38
- [03/24 03:48:54.205] D/: # Total found 1 channel(s).
- [03/24 03:48:54.205] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=38 , format=1
- [03/24 03:48:54.205] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=38
- [03/24 03:48:54.272] D/: drm render open ...
- [03/24 03:49:05.050] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:49:05.274] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:49:05.275] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:49:05.275] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:49:05.275] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:49:05.441] D/: # Found [0] media: video
- [03/24 03:49:05.442] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:49:05.442] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=38
- [03/24 03:49:05.442] D/: # Total found 1 channel(s).
- [03/24 03:49:05.442] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=38 , format=1
- [03/24 03:49:05.442] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=38
- [03/24 03:49:16.520] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:49:17.513] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:49:17.513] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:49:17.514] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:49:17.514] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:49:17.914] D/: # Found [0] media: video
- [03/24 03:49:17.914] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:49:17.914] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:49:17.915] D/: # Total found 1 channel(s).
- [03/24 03:49:17.915] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:49:17.915] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:49:28.991] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:49:29.985] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:49:29.987] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:49:29.987] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:49:29.987] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:49:30.399] D/: # Found [0] media: video
- [03/24 03:49:30.399] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:49:30.399] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:49:30.399] D/: # Total found 1 channel(s).
- [03/24 03:49:30.400] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:49:30.400] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:49:41.478] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:49:42.469] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:49:42.470] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:49:42.470] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:49:42.470] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:49:42.811] D/: # Found [0] media: video
- [03/24 03:49:42.811] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:49:42.811] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:49:42.811] D/: # Total found 1 channel(s).
- [03/24 03:49:42.811] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:49:42.811] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:49:53.889] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:49:54.882] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:49:54.883] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:49:54.883] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:49:54.883] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:49:55.189] D/: # Found [0] media: video
- [03/24 03:49:55.189] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:49:55.192] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:49:55.192] D/: # Total found 1 channel(s).
- [03/24 03:49:55.192] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:49:55.193] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:06.363] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:50:07.354] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:50:07.355] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:50:07.355] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:50:07.355] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:50:09.101] D/: # Found [0] media: video
- [03/24 03:50:09.101] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:50:09.101] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:09.101] D/: # Total found 1 channel(s).
- [03/24 03:50:09.102] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:50:09.102] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:20.182] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:50:21.171] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:50:21.172] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:50:21.172] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:50:21.172] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:50:21.590] D/: # Found [0] media: video
- [03/24 03:50:21.591] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:50:21.591] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:21.591] D/: # Total found 1 channel(s).
- [03/24 03:50:21.591] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:50:21.592] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:32.766] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:50:33.757] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:50:33.758] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:50:33.758] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:50:33.758] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:50:34.350] D/: # Found [0] media: video
- [03/24 03:50:34.350] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:50:34.351] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:34.351] D/: # Total found 1 channel(s).
- [03/24 03:50:34.351] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:50:34.351] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:45.429] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:50:46.420] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:50:46.421] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:50:46.421] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:50:46.421] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:50:46.863] D/: # Found [0] media: video
- [03/24 03:50:46.863] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:50:46.863] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:46.863] D/: # Total found 1 channel(s).
- [03/24 03:50:46.863] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:50:46.863] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:57.941] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:50:58.932] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:50:58.933] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:50:58.933] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:50:58.933] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:50:59.252] D/: # Found [0] media: video
- [03/24 03:50:59.253] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:50:59.253] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:50:59.253] D/: # Total found 1 channel(s).
- [03/24 03:50:59.254] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:50:59.254] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:51:10.333] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:51:11.324] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:51:11.325] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:51:11.325] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:51:11.325] D/: curlto rtsp://192.168.0.128:5000/stream , cli 40393:40403, tcp: 0
- [03/24 03:51:11.813] D/: # Found [0] media: video
- [03/24 03:51:11.813] D/: # Found [0] rtpmap: id:96 format:H264 bitrate:90000
- [03/24 03:51:11.814] D/: # Found [0] control: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:51:11.814] D/: # Total found 1 channel(s).
- [03/24 03:51:11.814] D/: TRACK [0] : rtsp://192.168.0.128:5000/stream/trackID=39 , format=1
- [03/24 03:51:11.814] D/: setup 40393 , 40394, uri: rtsp://192.168.0.128:5000/stream/trackID=39
- [03/24 03:51:22.891] D/: close curl (rtsp://192.168.0.128:5000/stream)
- [03/24 03:51:23.885] D/: [0x7f64003230]destroying curl rtsp ...
- [03/24 03:51:23.885] D/: [0x7f64003230]destroying curl rtsp ... done
- [03/24 03:51:23.885] D/: ReEnable rtsp client [1] rtsp://192.168.0.128:5000/stream
- [03/24 03:51:23.886] D/: curlto rtsp://192.168.0.128:5000/stre
复制代码
vincent911001 发表于 2020-3-24 15:58
Hi Jeffery,
I did modify your sample code to run only single stream of video for testing. However ...
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 ...
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 ...
jefferyzhang 发表于 2020-3-24 16:39
Because this whl is a sample only, there are many bugs in rtsp client.
yoyomai 发表于 2020-3-20 10:27
首先感谢大神,板子是RK3399PRO.装了相关依赖库,已经跑通了,就是会黑屏。
我用的海康4K网络摄像头。
不 ...
kyeteo 发表于 2020-4-9 11:35
示例的时候出现这个的原因是什么呀,(DrmBuffer in rk_drm.cpp:308): failed to open drm buffer ! ...
jefferyzhang 发表于 2020-4-9 11:52
你上位机用的不是rk板子肯定不能用我们drm的。。。
建议你购买我们Toybrick的板子来做。 ...
欢迎光临 Toybrick (https://t.rock-chips.com/) | Powered by Discuz! X3.3 |