profile-level-id in answer is higher than which in offer
See original GitHub issueIn matchCoders()
of ortc.ts it will generate a profile-level-id
for answer, and set it to sendingRtpParameters
.
But when generating answer, it use sendingRemoteRtpParameters
as answer param, so the profile-level-id
will not be set to answer.
case 'video/h264':
{
const aPacketizationMode = aCodec.parameters['packetization-mode'] || 0;
const bPacketizationMode = bCodec.parameters['packetization-mode'] || 0;
if (aPacketizationMode !== bPacketizationMode)
return false;
// If strict matching check profile-level-id.
if (strict)
{
if (!h264.isSameProfile(aCodec.parameters, bCodec.parameters))
return false;
let selectedProfileLevelId;
try
{
selectedProfileLevelId =
h264.generateProfileLevelIdForAnswer(aCodec.parameters, bCodec.parameters);
}
catch (error)
{
return false;
}
if (modify)
{
if (selectedProfileLevelId)
aCodec.parameters['profile-level-id'] = selectedProfileLevelId;
else
delete aCodec.parameters['profile-level-id'];
}
}
break;
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
SIP Video Profile - IETF
a higher capability a=fmtp:96 profile-level-id=42801f in the answer. The bandwidth specified in an SDP answer can be different from the bandwidth appearing ...
Read more >RFC 6185
RCDO for H.264 offers a solution to support higher resolutions at the same high ... For example, if a codec supports level 1.3,...
Read more >SIP Video Profile Bandwidth, Flow Control and ... - MEF
As an illustration, if a UA receives an offer with H.264 SDP a=fmtp:96 profile-level-id=42801d, it would be legal for it to respond with...
Read more >MTG_TITLE - 3GPP Portal
Upon sending an SDP answer to an SDP offer, with the SDP answer including one ... higher than the default level that is...
Read more >common_video/h264/profile_level_id_unittest.cc - Google Git
When level asymmetry is allowed, we can answer a higher level than what was. // offered. EXPECT_EQ("42e01f", answer_params["profile-level-id"]);. }.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in https://github.com/versatica/mediasoup-client/commit/1fa2107de7fb0e0fb88d9a7e53f72b924a274697. Will releasse a new version. Thanks.
ok, reopening, now I understand what you meant…