1、FFmpeghtml
測試環境Centos tcp
發佈端:oop
ffmpeg -re -stream_loop -1 -i test.ts -vcodec copy -acodec copy -f rtp_mpegts rtp://127.0.0.1:9999測試
接收端:.net
ffplay -protocol_whitelist 「file, rtp,udp」-i rtp://127.0.0.1:9999code
測試成功htm
可選選項:(「file,http,https,rtp,udp,tcp,tls」)blog
2、vlcget
測試環境Windowsit
發佈端:
vlc -vvv test.mp4 --sout "#transcode{vcodec=h264,vb=0,scale=0,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,port=6666,mux=ts,ttl=10}" --repeat
接收端:
vlc rtp://@:6666
可選選項:(udp....)
參考:
https://blog.csdn.net/hktkfly6/article/details/53170461
http://www.javashuo.com/article/p-cnvreltr-cv.html
https://blog.csdn.net/baby313/article/details/7363528
http://www.javashuo.com/article/p-tbnmylkr-gz.html
http://www.javashuo.com/article/p-njpqnqfk-me.html
https://blog.csdn.net/baby313/article/details/7363528
http://www.javashuo.com/article/p-tbnmylkr-gz.html