一、准备

  1. 下载rtsp-simple-server :https://github.com/aler9/rtsp-simple-server/releases
  2. 下载mac可执行程序ffmpeg

二、运行(/Users/humorhan/Desktop/rtsp_stream/)

  1. ./rtsp-simple-server
  2. ./ffmpeg -re -stream_loop -1 -i test.mp4 -c copy -f rtsp rtsp://localhost:8554/mystream
  3. IINA打开URL播放:rtsp://localhost:8554/mystream

三、其它

  1. https://github.com/EasyDarwin/EasyDarwin
  2. https://blog.csdn.net/jyt0551/article/details/84189498
  3. rtsp原理:https://www.jianshu.com/p/c04d810b7562
  4. https://github.com/aler9/rtsp-simple-server