Table of contents
1. Set up a local server
Use EasyDarwin, download address Releases · EasyDarwin/EasyDarwin (github.com)
After double-clicking to run, do not close the command line window, enter http://localhost:10008 in the browser , then click on the upper right corner to log in, the account password is admin/admin
2. ffmpeg pushes rtsp
ffmpeg -re -i 1.mp4 -vcodec copy -codec copy -f rtsp rtsp://127.0.0.1:554/stream
Push camera video
ffmpeg -f dshow -i video="Integrated Camera" -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -rtsp_transport udp -f rtsp rtsp://127.0.0.1/stream
3. ffplay playback
ffplay rtsp://127.0.0.1:554/stream