如果电脑有个网卡的时候 通常需要指定一下网卡

下面是例子

ffmpeg -listen 1 -re -localaddr 192.168.1.101 -i rtp://235.20.100.1:1234 -copy -f hls /dev/shm/1.m3u8

重点就是-localaddr

 

av_dict_set(&opts, "localaddr", "192.168.0.104", 0);

 

相关文章:

  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-12-08
相关资源
相似解决方案