- RTSP1.0
- H264/H265/AAC/PCMA(G711A)
- Support rtp over udp、rtp over tcp, support authentication
- epoll
- Built in file playback function, place video files (MP4, MKV) in a designated folder, and the client can access them through“ rtsp://ip:port/filename "can pull the stream
- Can add custom RTSP sessions and add audio and video sources
- Be careful not to include B-frames in the video
- MD5: https://github.com/talent518/md5
- FFmpeg version>=4.x, test versions are 4.0.5 and 4.4.5
- The file playback function is configurable, and can be turned on and off through the "set(RTSP_FILE_SERVER FORCE)" in CMakeLists.txt (default is turned on). Turning off the file playback function means that the project will no longer rely on ffmpeg
- mkdir build
- cd build
- cmake ..
- make -j
- File playback
- ./rtsp_server_file auth(0-not authentication; 1-authentication) loop(File playback loop control 0-not loop 1-loop) dir_path(Specify folder path default:./mp4path)
- Simply place the MP4/MKV files to be replayed into dir_death. The project comes with four test files (MP4/MKV)
- Without authentication:rtsp://ip:8554/filename
- Authentication:rtsp://admin:123456@ip:8554/filename
- eg: ./rtsp_server_file 1 1 ../mp4path/
- Customize session and media sources(video)
- ./rtsp_server_live auth(0-not authentication; 1-authentication) file_path(h264: ../mp4path/test.h264)
- Without authentication:rtsp://ip:8554/live
- Authentication:rtsp://admin:123456@ip:8554/live
- eg: ./rtsp_server_live 1 ../mp4path/test.h264
- Customize session and media sources(audio + video, only test, without audio and video synchronization)
- ./rtsp_server_live auth(0-not authentication; 1-authentication) file_path(h264: ../mp4path/test.h264) file_path(aac: ../mp4path/test.aac)
- Without authentication:rtsp://ip:8554/live
- Authentication:rtsp://admin:123456@ip:8554/live
- eg: ./rtsp_server_live 1 ../mp4path/test.h264 ../mp4path/test.aac
