rv1106提供的rtspdemo,rtsp库没有源码,而且rtp包不支持TCP,所以重新封装个rtsp server端,来实现这个功能。
支持功能:
1、rv1106给RTSP分发视频流。
2、支持给11603端口接入的TCP客户端分发视频流。
仓库地址:https://gitee.com/aiprogrammer/rv11061103rtsp-module.git
#rtp包支持udp
待完成:
#rtp包支持tcp
具体使用方法:
1、将代码放到SDK的下面目录:
~/rv1106/rv1106_20230626_sdk/project/app/component/rkadk/rkadk/src/live/rtsp
2、修改Makefile:
@/rv1106/rv1106_20230626_sdk/project/app/component/rkadk/rkadk/src/CMakeLists.txt
file(GLOB_RECURSE RTSP_SRC "${CMAKE_SOURCE_DIR}/src/live/rtsp/*.cpp")
file(GLOB_RECURSE RTSP_C_SRC "${CMAKE_SOURCE_DIR}/src/live/rtsp/*.c")
add_library(rkadk SHARED
${RTSP_SRC}
${RTSP_C_SRC}
3、编译:
~/rv1106/rv1106_20230626_sdk/project/app/component/rkadk
make
生成:~/rv1106/rv1106_20230626_sdk/project/app/out
bin rkadk_rtsp_test
lib librkadk.so
4、运行,将librkadk.so拷贝到/usr/lib/
./rkadk_rtsp_test p /data/rkadk/
https://cloud.tencent.com/developer/article/2396544