Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

kmsaudiomixer outputs silence after running for 2 hours #470

Closed
sshsun1990 opened this issue May 15, 2020 · 4 comments
Closed

kmsaudiomixer outputs silence after running for 2 hours #470

sshsun1990 opened this issue May 15, 2020 · 4 comments
Assignees
Labels
bug Non-critical bug affecting expected behavior

Comments

@sshsun1990
Copy link

sshsun1990 commented May 15, 2020

KMS Version:

Kurento Media Server version: 6.11.0
Found modules:
'core' version 6.11.0
'elements' version 6.11.0
'filters' version 6.11.0

Ubuntu Version

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

Other libraries versions:

ii gir1.2-gst-plugins-base-1.5 1.8.1-1kurento1.16.04 amd64 Description: GObject introspection data for the GStreamer Plugins Base library
ii gir1.2-gstreamer-1.5 1.8.1-1kurento1.16.04 amd64 Description: GObject introspection data for the GStreamer library
ii gir1.2-nice-0.1:amd64 0.1.15-1kurento3.16.04 amd64 ICE library (GObject introspection)
ii gstreamer1.5-libav:amd64 1.8.1-1kurento1.16.04 amd64 libav plugin for GStreamer
ii gstreamer1.5-nice:amd64 0.1.15-1kurento3.16.04 amd64 ICE library (GStreamer 1.5 plugin)
ii gstreamer1.5-plugins-bad:amd64 1.8.1-1kurento3.16.04 amd64 GStreamer plugins from the "bad" set
ii gstreamer1.5-plugins-base:amd64 1.8.1-1kurento1.16.04 amd64 GStreamer plugins from the "base" set
ii gstreamer1.5-plugins-good:amd64 1.8.1-1kurento2.16.04 amd64 GStreamer plugins from the "good" set
ii gstreamer1.5-plugins-ugly:amd64 1.8.1-1kurento1.16.04 amd64 GStreamer plugins from the "ugly" set
ii gstreamer1.5-pulseaudio:amd64 1.8.1-1kurento2.16.04 amd64 GStreamer plugin for PulseAudio
ii gstreamer1.5-x:amd64 1.8.1-1kurento1.16.04 amd64 GStreamer plugins for X11 and Pango
ii kms-cmake-utils 6.11.0-0kurento1.16.04 all Kurento CMake utils
ii kms-cmake-utils-build-deps 6.11.1-0kurento1 all build-dependencies for kms-cmake-utils
ii kms-core 6.11.0-0kurento1.16.04 amd64 Kurento Core module
ii kms-core-build-deps 6.11.1-0kurento1 all build-dependencies for kms-core
ii kms-core-dev 6.11.0-0kurento1.16.04 amd64 Kurento Core module
ii kms-elements 6.11.0-0kurento1.16.04 amd64 Kurento Elements module
ii kms-elements-build-deps 6.11.1-0kurento1 all build-dependencies for kms-elements
ii kms-elements-dev 6.11.0-0kurento1.16.04 amd64 Kurento Elements module
ii kms-filters 6.11.0-0kurento1.16.04 amd64 Kurento Filters module
ii kms-filters-build-deps 6.11.1-0kurento1 all build-dependencies for kms-filters
ii kms-filters-dev 6.11.0-0kurento1.16.04 amd64 Kurento Filters module
ii kms-jsonrpc 6.11.0-0kurento1.16.04 amd64 Kurento JSON-RPC library
ii kms-jsonrpc-build-deps 6.11.1-0kurento1 all build-dependencies for kms-jsonrpc
ii kms-jsonrpc-dev 6.11.0-0kurento1.16.04 amd64 Kurento JSON-RPC library
ii kmsjsoncpp 1.6.3-1kurento1.16.04 amd64 Kurento jsoncpp library
ii kmsjsoncpp-dev 1.6.3-1kurento1.16.04 amd64 Kurento jsonrpc library
ii kurento-media-server 6.11.0-0kurento1.16.04 amd64 Kurento Media Server
ii kurento-media-server-build-deps 6.11.1-0kurento1 all build-dependencies for kurento-media-server
ii kurento-module-creator 6.11.0-0kurento1.16.04 all Kurento Module Creator
ii kurento-module-creator-build-deps 6.11.1-0kurento1 all build-dependencies for kurento-module-creator
ii libgstreamer-plugins-bad1.5-0:amd64 1.8.1-1kurento3.16.04 amd64 GStreamer development files for libraries from the "bad" set
ii libgstreamer-plugins-base1.5-0:amd64 1.8.1-1kurento1.16.04 amd64 GStreamer libraries from the "base" set
ii libgstreamer-plugins-base1.5-dev 1.8.1-1kurento1.16.04 amd64 GStreamer development files for libraries from the "base" set
ii libgstreamer1.5-0:amd64 1.8.1-1kurento1.16.04 amd64 Core GStreamer libraries and elements
ii libgstreamer1.5-dev 1.8.1-1kurento1.16.04 amd64 GStreamer core development files
ii libnice-dev 0.1.15-1kurento3.16.04 amd64 ICE library (development files)
ii libnice10:amd64 0.1.15-1kurento3.16.04 amd64 ICE library (shared library)
ii libreoffice-avmedia-backend-gstreamer 1:5.1.6rc2-0ubuntu1xenial10 amd64 GStreamer backend for LibreOffice
ii libusrsctp 0.9.2-1kurento1.16.04 amd64 sctp-refimpl library
ii openh264 1.4.0-1kurento1.16.04 amd64 OpenH264 library
ii openh264-gst-plugins-bad-1.5:amd64 1.8.1-1kurento3.16.04 amd64 GStreamer plugins from openh264
ii openwebrtc-gst-plugins 0.10.0-1kurento1.16.04 amd64 OpenWebRTC specific GStreamer plugins
ii openwebrtc-gst-plugins-dev 0.10.0-1kurento1.16.04 amd64 OpenWebRTC specific GStreamer plugins

Client libraries

Language: Java
Version: 2.11.0
System description:

I refer offical document, build kurento from sources used 6.11.0 version.
And the java client cloned from openvidu github, used 2.11.0 version.
Not use STUN/TURN.

In addition, I used installed kurento media server. the location: /usr/bin/kurento-media-server, the problem still exist.

What steps will reproduce the problem?

Have a moderator joinRoom, used MCU Composite (has audio and video);
Another an participant join room and the conference running about 2 hours;
The participant speak something, another participant can not hear anything;

What is the expected result?
kmsaudiomixer is normal.

What happens instead?
kmsaudiomixer output slience data after about 2 hours.

Does it happen with one of the tutorials?

Please provide any additional information below
I add probe(BUFFER type) for adder element in kmsaudiomixer. I found all sink data is ok when reproduce the problem, but the src data is slience.

@sshsun1990
Copy link
Author

sshsun1990 commented Jul 16, 2020

Anybody can help me? @j1elo

@j1elo j1elo self-assigned this Aug 3, 2020
@j1elo j1elo added the bug Non-critical bug affecting expected behavior label Aug 3, 2020
@sshsun1990
Copy link
Author

  1. gh pr checkout 13
  2. That's just one of the problems, I see another problem is 'audiorate' element property 'skip-to-first' is default FALSE. It also leads to use the start time of the first buffer as the start time of audiomixer, it to produce silence from 0 to the current running time.

@j1elo
Copy link
Member

j1elo commented Mar 23, 2022

@sshsun1990 Do you think that setting skip-to-first to TRUE would fix the silence issue?

Have you tested it? If not, it would be an interesting thing to test.

Just edit below this line to set the skip-to-first property. Something like this should be enough:

  audiorate = gst_element_factory_make ("audiorate", NULL);
  g_object_set (audiorate, "skip-to-first", TRUE, NULL);

If you need, I can provide a bit of help to build and run the modified code. But basically it consists on following the docs section about Building from sources.

@j1elo j1elo changed the title kmsaudiomixer out slience data after running 2 hours. kmsaudiomixer outputs silence after running for 2 hours Mar 23, 2022
@sshsun1990
Copy link
Author

Yes, I tested it. It's fine. The problem is be resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Non-critical bug affecting expected behavior
Projects
None yet
Development

No branches or pull requests

2 participants