Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot connect Kurento KMS running on Docker to an RTSP Multicast URI #349
Version: 6.6.0 Found modules: Module: 'core' version '6.6.0' Module: 'elements' version '6.6.0' Module: 'filters' version '6.6.0'
Other libraries versions:
ii gstreamer1.5-libav:amd64 184.108.40.206~20160909143244.96.g493eee4.trusty amd64 libav plugin for GStreamer ii gstreamer1.5-nice:amd64 0.1.13.1~20160909144510.80.gd9ef50e.trusty amd64 ICE library (GStreamer plugin) ii gstreamer1.5-plugins-bad:amd64 220.127.116.11~20160909144557.99.gf836e53.trusty amd64 GStreamer plugins from the "bad" set ii gstreamer1.5-plugins-base:amd64 18.104.22.168~20160909142623.55.g7b19cfd.trusty amd64 GStreamer plugins from the "base" set ii gstreamer1.5-plugins-good:amd64 22.214.171.124~20160909143047.112.g9ee4248.trusty amd64 GStreamer plugins from the "good" set ii gstreamer1.5-plugins-ugly:amd64 126.96.36.199~20160909192513.89.g2685b0f.trusty amd64 GStreamer plugins from the "ugly" set ii gstreamer1.5-pulseaudio:amd64 188.8.131.52~20160909143047.112.g9ee4248.trusty amd64 GStreamer plugin for PulseAudio ii gstreamer1.5-x:amd64 184.108.40.206~20160909142623.55.g7b19cfd.trusty amd64 GStreamer plugins for X11 and Pango ii kms-core-6.0 220.127.116.1160909201132.trusty amd64 Kurento core module ii kms-elements-6.0 18.104.22.16860912112100.trusty amd64 Kurento elements module ii kms-filters-6.0 22.214.171.12460912114031.trusty amd64 Kurento filters module ii kms-jsonrpc-1.0 1.1.1.trusty amd64 Kurento jsonrpc library ii kmsjsoncpp 1.6.3~20160909143252.40.gd78deb7.trusty amd64 Kurento jsoncpp library ii kurento-media-server-6.0 126.96.36.19960912115811.trusty amd64 Kurento Media Server ii libgstreamer-plugins-bad1.5-0:amd64 188.8.131.52~20160909144557.99.gf836e53.trusty amd64 GStreamer development files for libraries from the "bad" set ii libgstreamer-plugins-base1.5-0:amd64 184.108.40.206~20160909142623.55.g7b19cfd.trusty amd64 GStreamer libraries from the "base" set ii libgstreamer1.5-0:amd64 220.127.116.11~20160909144007.170.g0d6031b.trusty amd64 Core GStreamer libraries and elements ii libnice10:amd64 0.1.13.1~20160909144510.80.gd9ef50e.trusty amd64 ICE library (shared library)
<dependency> <groupId>org.kurento</groupId> <artifactId>kurento-client</artifactId> <version>6.9.0</version> </dependency>
What steps will reproduce the problem?
What is the expected result?
The expected result is that it reproduces the RTSP stream in MULTICAST without problems as it worked with the RTSP stream in UNICAST.
What happens instead?
KMS does not play the RTSP stream in MULTICAST and returns the following error:
Pay special attention to line:
Does it happen with one of the tutorials?
Please provide any additional information below.
I also compare the Wireshark frames using GStreamer and Kurento. With GStreamer are not problems but using Kurento it appears that the camera starts to send data to the MULTICAST address but Kurento does not visualize the flow, it gives an "invalid uri" error and executes the TEARDOWN.
Here is the result of Wireshark packages:
Please check the GStreamer command with
Also KMS 6.6.0 is several years old, it's probably a good idea updating to recent versions. Latest one is 6.9.0.
Last: Can you provide a gstreamer, vlc, or equivalent command that generates a test RTSP stream so we can try on our side?
Following this documentation:
I was able to execute the gst-launch-1.5 command in the following way:
Then the result was as expected, the video could be played in MULTICAST without problems.
After this I found the following post:
Then I could verify that the error came from Docker, specifically the configuration of its network.
The solution to this problem is to expose the KMS service in the following way in Docker Compose with:
version: "3.7" services: kms: image: kurento/kurento-media-server:6.9.0 container_name: kms restart: always network_mode: host environment: - GST_DEBUG=2,Kurento*:5