steps for setting up a test rtsp source:
- download
rtsp-simple-serverfrom here and extract the archive - download
rtsp-simple-server.ymlfile from here - either set
protocolsvalue toudportcpin 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_streamin vlc