-
Notifications
You must be signed in to change notification settings - Fork 376
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
Play media and AMR(WB) codec #1841
Comments
CMR should be honoured. Is this something specific to media playback? Is this a transcoding scenario or is AMR passthrough? |
It is passthrough AMR from the call start, then after the "play media" command it becomes transcoding. Yes, the problem is specific to "play media" only |
Is any additional information required from my side? |
Actually I have to take back what I said earlier. In a passthrough scenario, CMR isn't currently honoured for media playback. Reason being that CMR is decoded by the AMR decoder, and in a passthrough scenario there is no AMR decoder. I believe there isn't even a way to set the encoding bit rate just for the media player, and so the default bit rate (6.7k for AMR, mode 3) would be used, or rather the next-lower allowed match in your case (mode 2). Supporting CMR in this scenario might be difficult without a major rework, but at least setting the bit rate should be possible via a new option given to |
Relevant to #1841 Change-Id: I62e6d2053c60ce7ad05afe21687539e40f7d448f
rtpengine version the issue has been seen with
12.4.1.7+0~mr12.4.1.7
Used distribution and its version
AlmaLinux 8.10
Linux kernel version used
4.18.0-553.5.1
CPU architecture issue was seen on (see
uname -m
)x86_64
Expected behaviour you didn't see
We have a call between A and B with media passing through rtpengine (12.4.7.1) and with the same codec on both sides "AMR/8000/mode-set=0,2,4,7; mode-change-period=2; mode-change-neighbor=1; max-red=0".
Then during the call we need to block media toward B and play some media wav file to A.
In the log I see following after play media command:
After that A hears that playing media ok but in RTP dump I see that rtpengine keeps enconding rate constant during the whole playing (FT bits: AMR 5,90 kbit/s (2)) despite the fact that the peer CMR from A allows encoder to switch to a higher speed rate.
Please advice if it's possible for encoder to follow the CMR from the peer during play media.
It looks that the behaviour is the same with AMR-WB codec and it does not depend on rtpengine version, we tested also with 11.2.1.5.
Is there additional data I need to provide?
Unexpected behaviour you saw
No response
Steps to reproduce the problem
No response
Additional program output to the terminal or logs illustrating the issue
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: