Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拉流时提示“illegal rtmp url” #27

Open
sultra opened this issue Nov 16, 2023 · 7 comments
Open

拉流时提示“illegal rtmp url” #27

sultra opened this issue Nov 16, 2023 · 7 comments

Comments

@sultra
Copy link

sultra commented Nov 16, 2023

如题,rtmp url 在vlc,IINA 中能播放
url如:rtmp://<host>:<port>/domain=31010600012000000000&resource=31010600011320001122-0&quality=2&src=1
使用api rtmp/api/pull urlencode 过编码 也是不行,同样错误(后台能输出能看到正确的url地址)

音视频编码:H264 - MPEG-4 AVC (part 10) (avc1) / MPEG AAC Audio (mp4a)

@langhuihui
Copy link
Member

你 pull 的时候需要指定 streamPath,这个 streamPath 你指定了什么。如果正常是可以转成 flv 的。

@sultra
Copy link
Author

sultra commented Nov 16, 2023

你 pull 的时候需要指定 streamPath,这个 streamPath 你指定了什么。如果正常是可以转成 flv 的。

api 方式没有,配置文件方式是写了,如下

rtmp:
  enable: true
  chunksize: 65536
  keepalive: false
  pull:
    repull: 10
    pullonsub:
      live/c1: rtmp://<host>:<port>/domain=31010600012000000000&resource=31010600011320001122-0&quality=2&src=1

@langhuihui
Copy link
Member

那我估计是解析远程 rtmp 地址是出问题了,正常的地址不是这样的,所以有问题

@langhuihui
Copy link
Member

通常是 rtmp://xxxxx/live/test 这种,因为需要把 url 中的 live/test解析出来,live 是 appName,test 是 streamName,然后需要再 connect 报文中填入

@sultra
Copy link
Author

sultra commented Nov 16, 2023

通常是 rtmp://xxxxx/live/test 这种,因为需要把 url 中的 live/test解析出来,live 是 appName,test 是 streamName,然后需要再 connect 报文中填入

url 是供应商给的,没法改~~~;
测试使用 ffmpeg 拉这个url,再推给m7s,是正常的可以的

@langhuihui
Copy link
Member

地址可以给我吗?不行的话,你就用 wireshark 抓个包,这样我就知道该怎么解析这种 url 了

@sultra
Copy link
Author

sultra commented Nov 17, 2023

地址可以给我吗?不行的话,你就用 wireshark 抓个包,这样我就知道该怎么解析这种 url 了

地址是内网的,已经贴出了,除ip和端口其他都是完整的了;我可以 wireshark 抓包,需要怎么看呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants