Open Camera with dshow
, read data from camera with ffmpeg, encode the data with libx265, then send it to live555 RTSP Sever for streaming.
All 3rd libraries are built, and included in lib
and include
folder.
ffmpeg: 4.3
live555: 2023.03.20
openssl
- Modify the
config.txt
, change thecamera_name
to your own camera name, you can also change other configs such as framerate or resolution, its due to your camera and device performance. - Open
Cam2RTSP.sln
withVisual Studio
(My VS version is 2022), run the project inDebug x64
, you can also run inRealse x64
, but you need to reconfigure the project properties. (I did not tryx86
) - Find the RTSP url that start with
rtsp://
in the output message, then play the url in vlc or other mainstream player.