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