一、FFmpeg

测试环境Centos 

 

发布端:

ffmpeg -re -stream_loop -1 -i test.ts -vcodec copy -acodec copy -f rtp_mpegts rtp://127.0.0.1:9999

接收端:

 ffplay -protocol_whitelist “file, rtp,udp”-i rtp://127.0.0.1:9999

测试成功

可选选项:(“file,http,https,rtp,udp,tcp,tls”)

 

二、vlc

测试环境Windows

 

发布端:

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

https://blog.csdn.net/chenyefei/article/details/52344947

https://blog.csdn.net/baby313/article/details/7363528

https://www.cnblogs.com/lidabo/p/4160145.html

https://www.cnblogs.com/lidabo/p/4160149.html

https://blog.csdn.net/baby313/article/details/7363528

https://www.cnblogs.com/lidabo/p/4160145.html

https://www.cnblogs.com/lidabo/p/4160149.html

https://blog.csdn.net/zhoubotong2012/article/details/86711097

 

相关文章:

  • 2021-04-29
  • 2021-10-20
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-05-15
  • 2021-11-17
猜你喜欢
  • 2021-12-18
  • 2021-08-15
  • 2022-01-27
  • 2022-12-23
相关资源
相似解决方案