Stream RTP to FFMPEG using SDP

♀尐吖头ヾ 提交于 2019-11-29 07:58:30
c=IN IP4 192.168.193.182

Is that your local IP from which your own Node UDP/TCP server is listening for the connection from ffmpeg?

m=audio 33301 RTP/AVP 111

Why 33301? I hope that is not the same port as the one used by mediasoup to communicate with the remote browser (if so, obviously you¡ll get the "address already in use" error)...

a=rtpmap:111 /opus/48000

That's wrong format. Remove the first "/".

Remove all the a=rtcp-fb lines. I don't think ffmpeg supports any of them at all.

Same for video.

Ayan Karmakar

I've solved my problem, my setup :

kms(rtpEndpoint)-->.sdp--->ffmpeg--->nginx-rtmp--->vlc

Problem was in sdp. sdp should be in proper format, as sdp answer. Use identical sdp content in file(ffmpeg sdp input file) as well as in media server(kms in my case). IP should be nginx server ip.(works in my case).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!