question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

profile-level-id in answer is higher than which in offer

See original GitHub issue

In 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:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ibccommented, Dec 23, 2020
0reactions
ibccommented, Dec 23, 2020

ok, reopening, now I understand what you meant…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found