ffmpeg -re -fflags +genpts -stream_loop -1 -i conf2-2.mp4 -vcodec copy -an -f rtp rtp://192.168.31.152:2000
vlc 应该可以播放出来的。
这里有一篇文章,有兴趣的可以试试:
https://www.wowza.com/docs/how-to-configure-vlc-media-player-for-rtsp-rtp-playback-rtsp-rtp-interleaved-and-tuning
还有这篇文章:
https://videoblerg.wordpress.com/2016/03/01/how-to-get-a-live-u-law-wav-stream-to-cisco-voip-servers/