How to get the audio and video from a WebRTC stream using ffmpeg on server -
i trying audio , video webrtc stream , handle (transcode or dump) ffmpeg on ubuntu server. have naively expected interpret sdp offered webrtc, mistaken. suspect ffmpeg not capable of signaling answer sdp , must done manually. here offer sdp:
v=0 o=mozilla-sipua-33.1 3662 0 in ip4 0.0.0.0 s=sip call t=0 0 a=ice-ufrag:5e0a74d1 a=ice-pwd:7446c0eb445117d0018ca2afc5f3ca54 a=fingerprint:sha-256 76:1b:19:ce:3f:41:c5:4d:64:e6:fd:72:d2:fc:42:e1:98:d4:0f:2b:73:ae:c7:f4:2c:73:2c:e7:9e:dc:6a:eb m=audio 23063 rtp/savpf 109 0 8 101 c=in ip4 188.253.146.208 a=rtpmap:109 opus/48000/2 a=ptime:20 a=rtpmap:0 pcmu/8000 a=rtpmap:8 pcma/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=sendrecv a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=setup:actpass a=candidate:0 1 udp 2128609535 192.168.1.100 4130 typ host a=candidate:1 1 udp 1692467199 188.253.146.208 23063 typ srflx raddr 192.168.1.100 rport 4130 a=candidate:0 2 udp 2128609534 192.168.1.100 4131 typ host a=candidate:1 2 udp 1692467198 188.253.146.208 23064 typ srflx raddr 192.168.1.100 rport 4131 a=rtcp-mux m=video 23065 rtp/savpf 120 126 97 c=in ip4 188.253.146.208 a=rtpmap:120 vp8/90000 a=rtpmap:126 h264/90000 a=fmtp:126 profile-level-id=42e01f;packetization-mode=1 a=rtpmap:97 h264/90000 a=fmtp:97 profile-level-id=42e01f a=sendrecv a=rtcp-fb:120 nack a=rtcp-fb:120 nack pli a=rtcp-fb:120 ccm fir a=rtcp-fb:126 nack a=rtcp-fb:126 nack pli a=rtcp-fb:126 ccm fir a=rtcp-fb:97 nack a=rtcp-fb:97 nack pli a=rtcp-fb:97 ccm fir a=setup:actpass a=candidate:0 1 udp 2128609535 192.168.1.100 4132 typ host a=candidate:1 1 udp 1692467199 188.253.146.208 23065 typ srflx raddr 192.168.1.100 rport 4132 a=candidate:0 2 udp 2128609534 192.168.1.100 4133 typ host a=candidate:1 2 udp 1692467198 188.253.146.208 23066 typ srflx raddr 192.168.1.100 rport 4133 a=rtcp-mux
is have succeeded in it? thanks.
not possible without "something" in between stream source (peer) , ffmpeg; until , unless ffmpeg starts working dtls , know hash information peer (obviously in sdp). in summary, ffmpeg need dtls , ice support. alternative use gstreamer plugins.
Comments
Post a Comment