- 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
![ba2301fb0825b0bab489b9f474fc9cb](https://private-user-images.githubusercontent.com/99859929/343621876-24308b63-235a-4a75-adc7-67c43bde51dd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MTczNTcsIm5iZiI6MTczOTkxNzA1NywicGF0aCI6Ii85OTg1OTkyOS8zNDM2MjE4NzYtMjQzMDhiNjMtMjM1YS00YTc1LWFkYzctNjdjNDNiZGU1MWRkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDIyMTczN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhMTgzOTkxZGZjNjI3NDY4ZjkyZWE1NjVhNzk2OWQ0OWExYTM1YjdjOTAwMDBjOGQ0NmI5NjkzMDE3MDNmYjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Zw3xCPotzC3BnsHLQ8be97W-d3EGxDUOYebXmd7R0wg)