Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty channel in mixed recorded file if option "output-mixed-per-media" is true #1892

Open
akolo-eng opened this issue Dec 27, 2024 · 2 comments
Labels

Comments

@akolo-eng
Copy link

rtpengine version the issue has been seen with

git-HEAD-5e14aac1

Used distribution and its version

Red Hat Enterprise Linux 8.10

Linux kernel version used

4.18.0-553.32.1.el8_10.x86_64

CPU architecture issue was seen on (see uname -m)

x86_64

Expected behaviour you didn't see

We have simple siprec call with 2 media streams, no SSRC switching
Mixing-related options of rtpengine-recording:
output-mixed = true
output-single = true
mix-method = channels
output-mixed-per-media = true
mix-num-inputs = 2
We expect to see 2 mono recorded files (one file per media stream) and stereo mixed recorded file where each channel contains audio from corresponding media stream. Generally speaking, we expect the same result as with output-mixed-per-media = false.

Unexpected behaviour you saw

Mono files are OK, in stereo file only one channel has audio from one stream, second channel is empty.

Steps to reproduce the problem

Session with rtpengine created via commands offer/answer (piece of rtpengine log with command content attached), recording started via command "start" (piece of rtpengine log with command content attached).
Attached:

  1. Metafile, created by rtpengine
  2. Piece of rtpengine log with processing of commands "offer", "answer" and "start recording"
  3. Piece of rtpengine-recording log with processing of session for call ID [email protected]

Btw, from rtpengine-recording log is clear that in case of packet from stream with SSRC 0x50a545bf function mix_add() always go to errror exit here
err = "received samples for old re-used input channel";
if (ptr != mix->input_ref[idx])
goto err;
what causes corresponding error log output.

Additional program output to the terminal or logs illustrating the issue

No response

Anything else?

Attached files:
rtpengine_files.zip

@akolo-eng akolo-eng added the bug label Dec 27, 2024
@rfuchs
Copy link
Member

rfuchs commented Dec 30, 2024

Increase your mix-num-inputs setting?

@akolo-eng
Copy link
Author

akolo-eng commented Dec 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants