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

Issue 2467623002: media: Only add more threads for codecs that benefit from it (Closed)

Created:
4 years, 1 month ago by hubbe
Modified:
4 years, 1 month ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Only add more threads for codecs that benefit from it Adding more threads tends to increase seek time. For high resolution videos this is probably a reasonable tradeoff as we get smoother playback. However, some codecs don't use threads for decoding at all, and for those codecs adding more threads does nothing except increase decoding latency and seek time. BUG=660900 Committed: https://crrev.com/d4cc08f819e66335d32a72bd500781d2d36be99f Cr-Commit-Position: refs/heads/master@{#428940}

Patch Set 1 #

Total comments: 2

Patch Set 2 : use switch statement, add vp8/9 #

Total comments: 2

Patch Set 3 : comments addressed #

Total comments: 2

Patch Set 4 : NOTREACHED -> comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -15 lines) Patch
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 1 chunk +35 lines, -15 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
hubbe
4 years, 1 month ago (2016-10-31 21:19:51 UTC) #3
DaleCurtis
https://codereview.chromium.org/2467623002/diff/1/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/2467623002/diff/1/media/filters/ffmpeg_video_decoder.cc#newcode53 media/filters/ffmpeg_video_decoder.cc:53: // Some ffmpeg codecs don't actually benefit from using ...
4 years, 1 month ago (2016-10-31 21:26:33 UTC) #5
hubbe
https://codereview.chromium.org/2467623002/diff/1/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/2467623002/diff/1/media/filters/ffmpeg_video_decoder.cc#newcode53 media/filters/ffmpeg_video_decoder.cc:53: // Some ffmpeg codecs don't actually benefit from using ...
4 years, 1 month ago (2016-10-31 22:01:49 UTC) #7
DaleCurtis
https://codereview.chromium.org/2467623002/diff/20001/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/2467623002/diff/20001/media/filters/ffmpeg_video_decoder.cc#newcode67 media/filters/ffmpeg_video_decoder.cc:67: case kCodecHEVC: Unknown, VC1, MPEG2, and HEVC should all ...
4 years, 1 month ago (2016-10-31 22:07:58 UTC) #9
hubbe
https://codereview.chromium.org/2467623002/diff/20001/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/2467623002/diff/20001/media/filters/ffmpeg_video_decoder.cc#newcode67 media/filters/ffmpeg_video_decoder.cc:67: case kCodecHEVC: On 2016/10/31 22:07:57, DaleCurtis wrote: > Unknown, ...
4 years, 1 month ago (2016-10-31 22:18:38 UTC) #10
DaleCurtis
lgtm https://codereview.chromium.org/2467623002/diff/40001/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/2467623002/diff/40001/media/filters/ffmpeg_video_decoder.cc#newcode61 media/filters/ffmpeg_video_decoder.cc:61: NOTREACHED(); Actually, sorry we should drop the NOTREACHED(). ...
4 years, 1 month ago (2016-10-31 22:26:49 UTC) #13
hubbe
https://codereview.chromium.org/2467623002/diff/40001/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/2467623002/diff/40001/media/filters/ffmpeg_video_decoder.cc#newcode61 media/filters/ffmpeg_video_decoder.cc:61: NOTREACHED(); On 2016/10/31 22:26:49, DaleCurtis wrote: > Actually, sorry ...
4 years, 1 month ago (2016-10-31 22:36:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2467623002/60001
4 years, 1 month ago (2016-11-01 05:02:27 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-01 05:06:33 UTC) #22
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d4cc08f819e66335d32a72bd500781d2d36be99f Cr-Commit-Position: refs/heads/master@{#428940}
4 years, 1 month ago (2016-11-01 05:08:06 UTC) #24
DaleCurtis
Hmm, how did you determine that theora doesn't benefit from extra threads? Looks like we ...
4 years, 1 month ago (2016-11-03 00:40:53 UTC) #25
hubbe
On 2016/11/03 00:40:53, DaleCurtis wrote: > Hmm, how did you determine that theora doesn't benefit ...
4 years, 1 month ago (2016-11-03 02:11:51 UTC) #26
DaleCurtis
You mean the telemetry test showed no difference locally?
4 years, 1 month ago (2016-11-03 18:13:55 UTC) #27
hubbe
4 years, 1 month ago (2016-11-03 18:36:47 UTC) #28
Message was sent while issue was closed.
On 2016/11/03 18:13:55, DaleCurtis wrote:
> You mean the telemetry test showed no difference locally?

No, I mean that I tried to play the OGV file in a browser.
The OGG/theora file is high resolution and does not play smoothly on my z620
with or without the extra threads.
I then looked at the code and found no mentioning of threading in the theora
part of ffmpeg, while the other codecs
we care about do. (VC1 was the only other codec that didn't have threads
mentioned somewhere in the code.)

Powered by Google App Engine
This is Rietveld 408576698