steps for setting up a test rtsp source:
- download
rtsp-simple-server
from here and extract the archive - download
rtsp-simple-server.yml
file from here - either set
protocols
value toudp
ortcp
in the yml file - turn off rtmp, hls in the yml file
- create an mp4 file to stream from:
$ ffmpeg -f lavfi -i testsrc -t 30 -pix_fmt yuv420p test.mp4
- run:
$ ./rtsp-simple-server rtsp-simple-server.yml $ ffmpeg -re -stream_loop -1 -i test.mp4 -f \ rtsp -rtsp_transport tcp rtsp://localhost:8554/live_stream
- play
rtsp://localhost:8554/live_stream
in vlc