# red5_hls **Repository Path**: nickforthink/red5_hls ## Basic Information - **Project Name**: red5_hls - **Description**: 本项目是由springboot构建的red5流媒体服务器。服务添加了hls支持http请求支持 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 157 - **Created**: 2022-07-25 - **Last Updated**: 2022-07-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### red5_hls 1. red5_hls是对red5的1.1.1版本进行springboot整合,整合后直接使用springboot进行启动和管理。打jar包运行。目前通过实时推流测试。该项目主要是用来方便学习red5的源码。同时新增了http,rtsp,udp,hls等协议的支持。 2. 项目带有推送demo。 3. 在red5项目原有的基础上可以进行hls协议的离线和在线视频推流观看 ### 启动 1. 首先运行SpringBootRed5Application启动red5服务器 2. 使用VLC Mider player或其他软件播放 3. 例如 (测试通过)
3.1 直播流
rtmp://localhost:1935/oflaDemo/sssssss,播放推送流 - (rtmp)
rtmp://localhost:1935/oflaDemo/sssssss.flv - (rtmp)
http://127.0.0.1/oflaDemo/sssssss/playlist.m3u8, 播放推送流 -(hls)
http://127.0.0.1/oflaDemo/flv/sssssss ,等待时间较长 -(http-flv)
rtsp://127.0.0.1/oflaDemo/sssssss -(rtsp)
3.2 点播(支持flv和mp4格式文件(mp4的编码格式视频H.264和音频AAC其他的不行))(放到jar包同级目录webapps/../../下)
rtmp://localhost:1935/oflaDemo/file.flv,播放推送流
http://127.0.0.1/oflaDemo/file.flv/playlist.m3u8,播放本地文件
http://127.0.0.1/oflaDemo/3.mp4/playlist.m3u8,播放本地文件
### 感谢开源的道友 1. red5服务器源码[https://github.com/Red5](https://github.com/Red5) 2. 其他基于red5源码新增的协议 [https://github.com/pengliren/sms](https://github.com/pengliren/sms)