# WebRtsp **Repository Path**: taojhlwkl/WebRtsp ## Basic Information - **Project Name**: WebRtsp - **Description**: 实现Web播放Rtsp功能 - **Primary Language**: C++ - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2025-05-15 - **Last Updated**: 2025-05-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Web播放RTSP功能 #### 1.编译 cd codedir ./build.sh #### 2.运行 cd bin ./WebRtsp -p 8000 -i rtsp://192.168.1.100:554/mainstream & #### 3.访问 http://192.168.1.100:8000 #### 4.数据流程 ` 1.使用live555 拉取Rtsp数据流 2.使用libflv把数据封装为flv格式 3.用mongoose作为Webserver,实现http-flv服务 4.用flv.js实现http-flv功能 ` #### 5.其它功能 ` 1.调过post接口/setrtspurl 设置重新播放的RTSP数据,post的数据内容为 {"rtsp_url":"rtsp://192.168.1.100:554/mainstream"} 2.输入参数 -i 指定需要播放的rtsp地址,也可以在Web设置 -p 指定端口 ` #### 6.开源引用: ` 1.live555 http://live555.com/ 2.libflv 3.Webserver mongoose https://github.com/cesanta/mongoose.git 4.flv.js ` #### 7.其它问题 1658988725@qq.com