Score:0

Kurento rtp receiver tutorial not working on Windows

do flag

I am following Kurento's rtp receiver tutorial on Windows. I have managed to setup KMS using the following Docker command:

docker run --rm -p 8888:8888/tcp -p 5000-5050:5000-5050/udp -e KMS_MIN_PORT=5000 -e KMS_MAX_PORT=5050 -d kurento/kurento-media-server:latest

I am sending a RTP stream using ffmpeg with the following command:

ffmpeg -f gdigrab -framerate 30 -i title="Some window" -c:v h264_nvenc -f rtp rtp://127.0.0.1:5014

After starting the Java application on the tutorial and opening the web page on https://localhost:8443/# I have managed to fire the fake SDP offer and copy the port on which KMS is listening for the RTP stream. That is the port I use on ffmpeg for sending the stream to. After that, KMS seems to be receiving the stream correctly. Here are some repeating logs from the KMS container (those only show up after starting the stream on ffmpeg):

0:20:36.047401800 1 0x7fc7480b6ad0 WARN kmsutils kmsutils.c:1452:kms_utils_depayloader_adjust_pts_out:<rtpopusdepay3> Fix PTS not strictly increasing, last: 0:00:26.853434000, current: 0:00:26.717434000, fixed = last + 1: 0:00:26.854434000

But, the web browser doesnt seem to receive the video stream from KMS. I have managed to repeat the tutorial on a linux machine and it worked, probably because there we are able to use the --network host option on the KMS container. This is the SDP from the ffmpeg RTP stream:

v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 58.76.100
m=video 5044 RTP/AVP 96
b=AS:2000
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1

Where am I going wrong? Is there any other adaptation necessary for making this tutorial run on Windows?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.