Audio artefacts with interaudiosrc/interaudiosink based pipelines
This is an isolated example of a GStreamer audio issue that exists when using interaudio* elements for pipeline seperation.
- OS: NixOS 23.05.4076.8a4c17493e5c (Stoat) aarch64
- Kernel: 6.1.55
- CPU: Apple M1 Pro (Virt)
- Memory: 8.0GiB
- gst-launch-1.0 version: 1.22.5
- GStreamer: 1.22.5
Everything works as normal when starting the first and second pipeline. When we start a new instance of the third pipeline (different port) skipping and audio artefacts start appearing on the first and second UDP stream.
-
audiotestsrc is-live=1 ! capsfilter caps=audio/x-raw,format=S16LE,layout=interleaved,channels=2 ! queue ! interaudiosink channel=audio0
-
interaudiosrc channel=audio0 ! queue ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! udpsink host=127.0.0.1 port=5000
-
interaudiosrc channel=audio0 ! queue ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! udpsink host=127.0.0.1 port=5001
Here is a small demonstration: 20231007_GStreamer_Interaudio_Demo.mp4
I experience the same issues on an Nvidia Jetson Nano Development Kit running GStreamer 1.14.x. Is there something I missed in my pipeline configuration?
Here the isolated test code: https://gist.github.com/hmelder/4a30bbee0748c48a2263d5233b2f3508