New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 614970 link

Starred by 9 users

Issue metadata

Status: Verified
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 600399



Sign in to add a comment

Roll version of openh264

Project Member Reported by hta@chromium.org, May 26 2016

Issue description

At the moment, our OpenH264 version is from October 8, 2015.
There have been many bug fixes, and some interface changes, since that time in the source repo.

This bug isn't high priority ATM, but should not be forgotten.

 
Cc: srnarayanan@chromium.org jansson@chromium.org
Labels: M-53
Status: Assigned (was: Untriaged)
Optimistically aiming for M53

Comment 2 by pbos@chromium.org, Jun 22 2016

Labels: -M-53 M-54
Owner: sprang@chromium.org
Less optimistically aiming for M54. :)
Are you still optimistic for M54 or certain? ;)

Comment 4 by sprang@chromium.org, Aug 31 2016

Labels: -M-54 M-55
...
Labels: -M-55 M-56
It didn't make it into M55 so moving to M56.

Comment 6 by hta@chromium.org, Oct 21 2016

Blocking: 600399

Comment 7 by sprang@webrtc.org, Oct 21 2016

Blockedon: webrtc:6583

Comment 8 by sprang@chromium.org, Oct 25 2016

Blockedon: -webrtc:6583
https://codereview.chromium.org/2440113002/ has landed, awaiting webrtc roll into chrome.

Status: Fixed (was: Assigned)

Comment 11 by brian@highfive.com, Oct 28 2016

@sprang i think i saw this got reverted due to some performance reasons?  can you share anything about the results?  i'd be interested to hear what was found.

Comment 12 by brian@highfive.com, Oct 28 2016

@sprang did a bit more testing today and saw some issues that may match what you saw in the tests, not sure why i didn't see it before.

looks like setting SM_FIXEDSLCNUM_SLICE alone without explicitly setting uiSliceNum (to something other than 0) might causing problems.  openh264 will set the slice number based on the number of cores (which it detects on its own) but webrtc is hard-coding the number of threads (typically based on num cores) to 1.  i saw better results by using either SM_SINGLE_SLICE here or using SM_FIXEDSLCNUM_SLICE and explicitly setting uiSliceNum to 1 in webrtc.
Project Member

Comment 13 by bugdroid1@chromium.org, Oct 31 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/81bedff4d32896e3aa6b18f187d75ac16f19bc00

commit 81bedff4d32896e3aa6b18f187d75ac16f19bc00
Author: sprang <sprang@chromium.org>
Date: Mon Oct 31 09:03:12 2016

Revert of Roll OpenH264 from v1.4.1 to v1.6.0 (patchset #5 id:80001 of https://codereview.chromium.org/2440143002/ )

Reason for revert:
Causing perf regression in webrtc.

Original issue's description:
> Roll OpenH264 from v1.4.1 to v1.6.0
>
> BUG= chromium:614970 
>
> Committed: https://crrev.com/ae101afbcb955c6efbbf27bebf81334b95659c11
> Cr-Commit-Position: refs/heads/master@{#427688}

TBR=mcasas@chromium.org,hbos@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG= chromium:614970 

Review-Url: https://codereview.chromium.org/2459503002
Cr-Commit-Position: refs/heads/master@{#428669}

[modify] https://crrev.com/81bedff4d32896e3aa6b18f187d75ac16f19bc00/DEPS
[modify] https://crrev.com/81bedff4d32896e3aa6b18f187d75ac16f19bc00/content/renderer/media/video_track_recorder.cc
[modify] https://crrev.com/81bedff4d32896e3aa6b18f187d75ac16f19bc00/third_party/openh264/BUILD.gn
[modify] https://crrev.com/81bedff4d32896e3aa6b18f187d75ac16f19bc00/third_party/openh264/README.chromium

Status: Assigned (was: Fixed)
Reopened.

brian@, yes the rate controller seems have problems with uiSliceNum > 1. I though at first it was just the fact that uiSliceNum was larger than iMultipleThreadIdc (which we have hard-coded to 1 because of other issues), but it seems that even with both of them set to 4 for instance, I get the same issues. 
Looks like there is some race when updating incoming framerate. I've seen debug messages warning that incoming frame rate is 120000fps, so the assigned bits/frame got kinda low...
Should file a bug for this with OpenH264.
Is this finished? Will it make it into M56 (branch point on NOv16)?
Status: Fixed (was: Assigned)
This seems to be sticking this time, so I'll mark it as fixed.
Marking as Verified - H264 loopback and p2p calls looks good!
Status: Verified (was: Fixed)
Project Member

Comment 20 by bugdroid1@chromium.org, Jan 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/external/webrtc.git/+/10418acb9790a82aa8f8368c8d6ba2459747149b

commit 10418acb9790a82aa8f8368c8d6ba2459747149b
Author: sprang <sprang@webrtc.org>
Date: Wed Jan 11 13:51:56 2017

Remove backwards compatibilty path for OpenH264 v1.4

Deps have rolled to 1.6, and since no one noticed that the old code path
was broken and wouldn't even compile, I assume no one is using it.
I therefore deem it time to clean away all these nasty ifdefs.

("const kNalHeaderSizeAllocation = 50;" doesn't declare a type)

BUG= chromium:614970 

Review-Url: https://codereview.webrtc.org/2622233002
Cr-Commit-Position: refs/heads/master@{#16008}

[modify] https://crrev.com/10418acb9790a82aa8f8368c8d6ba2459747149b/webrtc/modules/video_coding/codecs/h264/h264_encoder_impl.cc

Sign in to add a comment