Toybrick

楼主: hisping

RK3399Pro入门教程(10)RTSP推流介绍

xiaqing10

中级会员

积分
484
发表于 2020-10-14 15:56:14 | 显示全部楼层
想问下,理论上的延时是多少。
目前,将rtsp接收端重写了下,发现640*480的usb采集的视频,在局域网内推流动,延时都是300ms左右,想提升到150ms,有具体的改进方法么?
或者有没有更高效的推流框架?
回复

使用道具 举报

guozhaozhong

新手上路

积分
28
发表于 2020-11-7 15:18:39 | 显示全部楼层
you_big_father 发表于 2019-12-11 20:38
你好  我才看到你的问题。
就是将rga例程的“rockchip_rga”文件夹源码放到RTSP例程根目录下,头文件放到 ...

要修改,V4L2.cpp,不是 V4L2.h
回复

使用道具 举报

guozhaozhong

新手上路

积分
28
发表于 2020-11-7 17:00:36 | 显示全部楼层
[toybrick@localhost IPCamera]$ ./RTSPServer

"h264ESVideoTest" stream, from the file "test.264"
Play this stream using the URL "rtsp://172.23.100.12:8554/h264ESVideoTest"

(We use port 8000 for optional RTSP-over-HTTP tunneling.)

camera driver name is : uvcvideo
camera device name is : USB2.0 Camera
camera bus information: usb-xhci-hcd.9.auto-1.2
Success in VIDIOC_S_FMT
Success in VIDIOC_G_FMT getSizeInfo()
fmt.fmt.pix.bytesperline:1280
format:YUYV
camera_width:640        ,camera_height:480
video_format:16  YUV 4:2:2

end open_camera
Success in VIDIOC_G_FMT getSizeInfo()
fmt.fmt.pix.bytesperline:1280
format:YUYV
camera_width:640        ,camera_height:480
video_format:16  YUV 4:2:2

end open_camera
creater
pictureSize=460800
SDP Info:a=fmtp:96 packetization-mode=1;profile-level-id=000000;sprop-parameter-sets=H264

__StreamEncoder::H264_encode_close__
closed the camera!

camera driver name is : uvcvideo
camera device name is : USB2.0 Camera
camera bus information: usb-xhci-hcd.9.auto-1.2
Success in VIDIOC_S_FMT
Success in VIDIOC_G_FMT getSizeInfo()
fmt.fmt.pix.bytesperline:1280
format:YUYV
camera_width:640        ,camera_height:480
video_format:16  YUV 4:2:2

end open_camera
Success in VIDIOC_G_FMT getSizeInfo()
fmt.fmt.pix.bytesperline:1280
format:YUYV
camera_width:640        ,camera_height:480
video_format:16  YUV 4:2:2

end open_camera
creater
pictureSize=460800
__DD_H264VideoFileServerMediaSubsession::startStream__
StreamOn success!
Segmentation fault (core dumped)
回复

使用道具 举报

sincsc

新手上路

积分
22
发表于 2021-4-26 10:58:07 | 显示全部楼层
楼主你好,我执行make的时候,找不到相关函数请问如何解决呢?

V4L2.cpp: In member function 'void V4L2FramedSource::convernt_to_OutputBuffer()':
V4L2.cpp:511:18: error: 'RgaCreate' was not declared in this scope
  rga = RgaCreate();
                  ^
V4L2.cpp:517:7: error: 'class RockchipRga' has no member named 'ops'
  rga->ops->initCtx(rga);
       ^
V4L2.cpp:518:7: error: 'class RockchipRga' has no member named 'ops'
  rga->ops->setRotate(rga, RGA_ROTATE_NONE);
       ^
V4L2.cpp:518:27: error: 'RGA_ROTATE_NONE' was not declared in this scope
  rga->ops->setRotate(rga, RGA_ROTATE_NONE);
                           ^
V4L2.cpp:519:7: error: 'class RockchipRga' has no member named 'ops'
  rga->ops->setSrcFormat(rga, V4L2_PIX_FMT_YUYV, 640, 480);
       ^
V4L2.cpp:520:7: error: 'class RockchipRga' has no member named 'ops'
  rga->ops->setDstFormat(rga, V4L2_PIX_FMT_NV12, 640, 480);
       ^
V4L2.cpp:528:7: error: 'class RockchipRga' has no member named 'ops'
  rga->ops->setDstBufferPtr(rga, frame_nv12);
       ^
V4L2.cpp:529:7: error: 'class RockchipRga' has no member named 'ops'
  rga->ops->setSrcBufferPtr(rga, (unsigned char *) camera_buffers[index].start);
       ^
V4L2.cpp:531:17: error: 'class RockchipRga' has no member named 'ops'
  int ret = rga->ops->go(rga);
                 ^
V4L2.cpp:545:16: error: 'RgaDestroy' was not declared in this scope
  RgaDestroy(rga);
                ^
V4L2.cpp:482:12: warning: unused variable 'pPictureSrc' [-Wunused-variable]
  AVPicture pPictureSrc;
            ^
V4L2.cpp: In member function 'virtual void V4L2FramedSource::doGetNextFrame()':
V4L2.cpp:561:66: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
回复

使用道具 举报

sincsc

新手上路

积分
22
发表于 2021-4-26 17:49:06 | 显示全部楼层
sincsc 发表于 2021-4-26 10:58
楼主你好,我执行make的时候,找不到相关函数请问如何解决呢?

V4L2.cpp: In member function 'void V4L2F ...

已解决,谢谢
回复

使用道具 举报

sincsc

新手上路

积分
22
发表于 2021-4-26 18:31:06 | 显示全部楼层
请教各位大佬,我的是ubuntu系统,更新了源,apt-get install rockchip-rga-dev可以安装rga,但是apt-get install rockchip-mpp-dev却找不到mmp包,有什么办法可以解决吗?
回复

使用道具 举报

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

本版积分规则

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


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