How to stream video in a loop via RTP using ffmpeg?
ffmpeg-re-fflags+genpts-stream_loop-1-iconf2-2.mp4-vcodeccopy-an-frtprtp://192.168.31.152:2000vlc应该可以播放出来的。这里有一篇文章,有兴趣的可以试试:https://www.wowza.com/docs/how-to-configure-vlc-media-player-for-rtsp-rtp-pl