Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Issue 2483173002: Negotiate H264 profiles in SDP (Closed)

Created:
4 years, 1 month ago by magjed_webrtc
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Negotiate H264 profiles in SDP This CL will start to distinguish H264 profiles during SDP negotiation. We currently don't look at the H264 profile at all and assume they are all Constrained Baseline Level 3.1. This CL will start to check profiles for equality when matching, and will generate the correct answer H264 level. Each local supported H264 profile needs to be listed explicitly in the list of local supported codecs, even if they are redundant. For example, Baseline profile should be listed explicitly even though another profile that is a superset of Baseline is also listed. The reason for this is to simplify the code and avoid profile intersection during matching. So VideoCodec::Matches will check for profile equality, and not check if one codec is a subset of the other. This also leads to the nice property that VideoCodec::Matches is symmetric, i.e. iif a.Matches(b) then b.Matches(a). BUG=webrtc:6337 TBR=tkchin@webrtc.org Committed: https://crrev.com/f823ededce7a06dde31553a70111e2237233b170 Cr-Commit-Position: refs/heads/master@{#15051}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Extract IsSameH264Profile and don't check payload type in FindMatchingCodec #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -20 lines) Patch
M webrtc/api/android/jni/androidmediaencoder_jni.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/common_video/h264/profile_level_id.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M webrtc/common_video/h264/profile_level_id_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/base/codec.h View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M webrtc/media/base/codec.cc View 1 2 3 chunks +32 lines, -7 lines 0 comments Download
M webrtc/media/engine/fakewebrtcvideoengine.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 3 chunks +8 lines, -3 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/pc/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/pc/mediasession.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M webrtc/sdk/objc/Framework/Classes/videotoolboxvideocodecfactory.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 59 (45 generated)
hta-webrtc
I think we're still confusing ourselves by lumping the encoder together with the decoder. https://codereview.webrtc.org/2483173002/diff/1/webrtc/media/base/codec.cc ...
4 years, 1 month ago (2016-11-08 13:59:53 UTC) #3
magjed_webrtc
https://codereview.webrtc.org/2483173002/diff/1/webrtc/media/base/codec.cc File webrtc/media/base/codec.cc (right): https://codereview.webrtc.org/2483173002/diff/1/webrtc/media/base/codec.cc#newcode233 webrtc/media/base/codec.cc:233: profile_level_id->profile == other_profile_level_id->profile; On 2016/11/08 13:59:53, hta-webrtc wrote: > ...
4 years, 1 month ago (2016-11-08 16:18:26 UTC) #5
hta-webrtc
Now this looks good to me, negotiation-wise. I don't think the RTX problem is solved ...
4 years, 1 month ago (2016-11-10 10:28:33 UTC) #7
magjed_webrtc
On 2016/11/10 10:28:33, hta-webrtc wrote: > Now this looks good to me, negotiation-wise. > > ...
4 years, 1 month ago (2016-11-11 09:06:55 UTC) #35
kthelgason
lgtm
4 years, 1 month ago (2016-11-11 11:49:52 UTC) #38
hta-webrtc
lgtm One question about something that looks like a drive-by change. https://codereview.webrtc.org/2483173002/diff/180001/webrtc/media/base/codec.cc File webrtc/media/base/codec.cc (right): ...
4 years, 1 month ago (2016-11-11 12:07:49 UTC) #39
magjed_webrtc
https://codereview.webrtc.org/2483173002/diff/180001/webrtc/media/base/codec.cc File webrtc/media/base/codec.cc (right): https://codereview.webrtc.org/2483173002/diff/180001/webrtc/media/base/codec.cc#newcode208 webrtc/media/base/codec.cc:208: : VideoCodec(kFirstDynamicPayloadId, name) {} On 2016/11/11 12:07:49, hta-webrtc wrote: ...
4 years, 1 month ago (2016-11-12 16:46:25 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2483173002/200001
4 years, 1 month ago (2016-11-12 16:47:10 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/10117)
4 years, 1 month ago (2016-11-12 16:50:00 UTC) #49
magjed_webrtc
Zeke - please review webrtc/sdk/objc/Framework/Classes/videotoolboxvideocodecfactory.cc. I'm TBR:ing you on that file since it's a trivial ...
4 years, 1 month ago (2016-11-12 17:51:12 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2483173002/200001
4 years, 1 month ago (2016-11-12 17:51:30 UTC) #54
commit-bot: I haz the power
Committed patchset #3 (id:200001)
4 years, 1 month ago (2016-11-12 17:53:08 UTC) #56
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f823ededce7a06dde31553a70111e2237233b170 Cr-Commit-Position: refs/heads/master@{#15051}
4 years, 1 month ago (2016-11-12 18:06:30 UTC) #58
tkchin_webrtc
4 years, 1 month ago (2016-11-14 21:05:45 UTC) #59
Message was sent while issue was closed.
On 2016/11/12 18:06:30, commit-bot: I haz the power wrote:
> Patchset 3 (id:??) landed as
> https://crrev.com/f823ededce7a06dde31553a70111e2237233b170
> Cr-Commit-Position: refs/heads/master@{#15051}

lgtm

Powered by Google App Engine
This is Rietveld 408576698