After add_remote_publisher return rtp port .can push video to this rtp port with ffmpeg?

let add_remote = {
request: “publish_remotely”,
room: myroom,
publisher_id: publishid,
secret: roomsecret,
remote_id: remote_id,
host: host,
port: parseInt(rtpporttext),
rtcp_port: parseInt(rtcpporttext),

};

ffmpeg -re -i 1.mp4 -an -vcodec libvpx -f rtp rtp://23.23.32.3:10010 -vn -acodec libopus -f rtp rtp://23.23.32.3:10011
run this cmd is ok. but the web client not see the video. use js to publish_remotely is ok.

can i use ffmpeg to push the video to the video room? how?

You need to craft the right SSRC, since remote publishers multiplex multiple streams on the same port and the SSRC is used for demultiplexing. See the last bullet point on SSRC aritmethics here.

"sdp": "v=0\r\no=- 1741845316880985 8 IN IP4 202.153.5.34\r\ns=VideoRoom 1234\r\nt=0 0\r\na=group:BUNDLE 0 1 2 3\r\na=ice-options:trickle\r\na=fingerprint:sha-256 A5:63:C9:96:15:FB:FA:1A:E9:84:1F:19:D6:49:F7:A8:50:B3:1A:3D:FE:0F:48:41:E3:7A:A9:B7:17:20:51:B7\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS *\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 202.153.5.34\r\na=sendonly\r\na=mid:0\r\na=rtcp-mux\r\na=ice-ufrag:K2Sf\r\na=ice-pwd:vHyu001CVyGb02NqBnGG9S\r\na=ice-options:trickle\r\na=setup:actpass\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=fmtp:111 useinbandfec=1;stereo=1\r\na=msid:janus janus0\r\na=ssrc:3782975170 cname:janus\r\na=candidate:1 1 udp 2015363839 202.153.5.34 9221 typ host\r\na=candidate:2 1 udp 2015363583 202.153.5.34 9029 typ host\r\na=candidate:4 1 udp 505414399 103.246.218.24 42343 typ relay raddr 103.246.218.24 rport 9221\r\na=end-of-candidates\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97\r\nc=IN IP4 202.153.5.34\r\na=sendonly\r\na=mid:1\r\na=rtcp-mux\r\na=ice-ufrag:K2Sf\r\na=ice-pwd:vHyu001CVyGb02NqBnGG9S\r\na=ice-options:trickle\r\na=setup:actpass\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=rtpmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=ssrc-group:FID 4250010456 2193759657\r\na=msid:janus janus1\r\na=ssrc:4250010456 cname:janus\r\na=ssrc:2193759657 cname:janus\r\na=candidate:1 1 udp 2015363839 202.153.5.34 9221 typ host\r\na=candidate:2 1 udp 2015363583 202.153.5.34 9029 typ host\r\na=candidate:4 1 udp 505414399 103.246.218.24 42343 typ relay raddr 103.246.218.24 rport 9221\r\na=end-of-candidates\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 202.153.5.34\r\na=sendonly\r\na=mid:2\r\na=rtcp-mux\r\na=ice-ufrag:K2Sf\r\na=ice-pwd:vHyu001CVyGb02NqBnGG9S\r\na=ice-options:trickle\r\na=setup:actpass\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=fmtp:111 useinbandfec=1;stereo=1\r\na=msid:janus janus2\r\na=ssrc:469269919 cname:janus\r\na=candidate:1 1 udp 2015363839 202.153.5.34 9221 typ host\r\na=candidate:2 1 udp 2015363583 202.153.5.34 9029 typ host\r\na=candidate:4 1 udp 505414399 103.246.218.24 42343 typ relay raddr 103.246.218.24 rport 9221\r\na=end-of-candidates\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97\r\nc=IN IP4 202.153.5.34\r\na=sendonly\r\na=mid:3\r\na=rtcp-mux\r\na=ice-ufrag:K2Sf\r\na=ice-pwd:vHyu001CVyGb02NqBnGG9S\r\na=ice-options:trickle\r\na=setup:actpass\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=rtpmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=ssrc-group:FID 2055265427 4049419880\r\na=msid:janus janus3\r\na=ssrc:2055265427 cname:janus\r\na=ssrc:4049419880 cname:janus\r\na=candidate:1 1 udp 2015363839 202.153.5.34 9221 typ host\r\na=candidate:2 1 udp 2015363583 202.153.5.34 9029 typ host\r\na=candidate:4 1 udp 505414399 103.246.218.24 42343 typ relay raddr 103.246.218.24 rport 9221\r\na=end-of-candidates\r\n"

add remote return ssrc to me

how to push video use ffmpeg with this ssrc?

I use the ssrc return from add_remote_publisher
then

ffmpeg -re
-i ${input_mp4_filepath}
-v info
-codec copy
-bsf:v h264_mp4toannexb -an -deadline realtime
-map 0:v:0
-f tee
“[select=v:f=rtp:ssrc=${VIDEO_SSRC}:payload_type=${VIDEO_PT}]rtp://127.0.0.1:${videoRtpPort}?rtcpport=${videoRtcpPort}”

server whow error
No medium with a valid peer SSRC found for transport-wide CC feedback

The SSRC in the SDP is not relevant, since we’re talking of a backend communication. See my previous comment.