var register = { "request" : "rtp_forward", "publisher_id": 458229832363763, "room" : 1234, "audio_port": 5002, "audiopt": 111, "video_port": 5004, "videopt": 100, "host": "[HOSTSERVERIP]", "secret": "[ADMINPASSWORD]"}
sfutest.send({"message": register});
[gstreamer-sample] New audio stream! (ssrc=
3213197696)
[gstreamer-sample] New video stream! (ssrc=1524266694, index 0)
Notice - if you miss the port numbers in the request, it will run without error - but the janus console stay empty.
After this I create a test.spd file with this:
v=0 o=- 0 0 IN IP4 127.0.0.1 s=RTP Video c=IN IP4 127.0.0.1 t=0 0 a=tool:libavformat 56.15.102 m=audio 5002 RTP/AVP 111 a=rtpmap:111 OPUS/48000/2 m=video 5004 RTP/AVP 100 a=rtpmap:100 VP8/90000 a=fmtp:100 packetization-mode=1
If I start the ffmpeg with this:
/usr/bin/ffmpeg -analyzeduration 300M -probesize 300M -protocol_whitelist file,udp,rtp -i test.sdp -c:v copy -c:a aac -ar 16k -ac 1 -preset ultrafast -tune zerolatency -f flv rtmp://[RTMP RECEIVER]
I get this errors:
bind failed: Address already in use
test.sdp: Invalid data found when processing input
Any suggestions?
error