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

Issue 2858393002: media: Increase the default audio buffer size for encrypted streams (Closed)

Created:
3 years, 7 months ago by watk
Modified:
3 years, 7 months ago
Reviewers:
lcwu1, xhwang
CC:
DaleCurtis, chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, kmackay, bshaya
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Increase the default audio buffer size for encrypted streams Encrypted audio may need to be decrypted on the renderer main thread which means that long running tasks on that thread can stall audio decoding, causing noticeable audio gaps. By increasing the default initial buffer size from 200ms to 500ms for encrypted streams, we should drastically reduce the occurrence of audio hitches caused by this. There is ongoing work to move decryption to the media thread, at which point we can revert this change (http://crbug.com/403462). This change has an impact on preload time (load() to loaded) for audio because we now decode more. On a linux z620 preload time for crowd.ogg goes from 94ms to 130ms. (Release, component, dcheck_always_on build). BUG=718161 Review-Url: https://codereview.chromium.org/2858393002 Cr-Commit-Position: refs/heads/master@{#471522} Committed: https://chromium.googlesource.com/chromium/src/+/a51ee9488f2b82b1dc8e9c79881b97dc318f0b39

Patch Set 1 #

Total comments: 3

Patch Set 2 : fixed #

Patch Set 3 : fix cast's FakeMediaSource #

Patch Set 4 : Revert test #

Patch Set 5 : Fix another chromecast usage of AudioRendererAlgorithm #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -13 lines) Patch
M chromecast/media/cma/backend/alsa/audio_decoder_alsa.cc View 1 2 3 4 1 chunk +7 lines, -4 lines 0 comments Download
M media/cast/test/fake_media_source.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M media/filters/audio_renderer_algorithm.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/audio_renderer_algorithm.cc View 1 2 chunks +17 lines, -4 lines 0 comments Download
M media/filters/audio_renderer_algorithm_unittest.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 3 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 61 (32 generated)
watk
xhwang: PTAL. I don't love the increase in preload time, but I think it's the ...
3 years, 7 months ago (2017-05-04 23:24:11 UTC) #2
watk
https://codereview.chromium.org/2858393002/diff/1/media/test/pipeline_integration_test.cc File media/test/pipeline_integration_test.cc (right): https://codereview.chromium.org/2858393002/diff/1/media/test/pipeline_integration_test.cc#newcode1490 media/test/pipeline_integration_test.cc:1490: "-0.71,0.36,2.96,2.68,2.10,-1.08,"))); This changed because it hashes all audio it's ...
3 years, 7 months ago (2017-05-04 23:24:56 UTC) #3
xhwang
Sorry for the delay! The idea looks good. But it seems we are missing some ...
3 years, 7 months ago (2017-05-06 03:52:13 UTC) #4
watk
Oops, looks like I lost some changes. For testing I was always using 500ms for ...
3 years, 7 months ago (2017-05-09 17:51:10 UTC) #10
watk
PTAL thanks! https://codereview.chromium.org/2858393002/diff/1/media/renderers/audio_renderer_impl.h File media/renderers/audio_renderer_impl.h (right): https://codereview.chromium.org/2858393002/diff/1/media/renderers/audio_renderer_impl.h#newcode249 media/renderers/audio_renderer_impl.h:249: bool encrypted_; On 2017/05/06 03:52:13, xhwang wrote: ...
3 years, 7 months ago (2017-05-09 17:51:28 UTC) #11
xhwang
LGTM, thanks for the fix!
3 years, 7 months ago (2017-05-09 17:57:15 UTC) #12
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/2858393002/40001
3 years, 7 months ago (2017-05-09 18:06:54 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/448993)
3 years, 7 months ago (2017-05-09 18:35:22 UTC) #17
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/2858393002/60001
3 years, 7 months ago (2017-05-09 21:31:27 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/335550)
3 years, 7 months ago (2017-05-09 23:07:56 UTC) #22
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/2858393002/60001
3 years, 7 months ago (2017-05-09 23:30:26 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-10 01:34:56 UTC) #26
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/2858393002/80001
3 years, 7 months ago (2017-05-10 20:13:25 UTC) #29
watk
Oops. The test needed changing originally because I increased the buffer for non-encrypted. Now that ...
3 years, 7 months ago (2017-05-10 20:13:32 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/364999)
3 years, 7 months ago (2017-05-10 20:48:03 UTC) #32
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/2858393002/100001
3 years, 7 months ago (2017-05-10 21:00:18 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/433086)
3 years, 7 months ago (2017-05-10 21:18:09 UTC) #37
watk
lcwu@chromium.org: Please review changes in chromecast
3 years, 7 months ago (2017-05-10 21:19:16 UTC) #39
lcwu1
chromecast/ lgtm
3 years, 7 months ago (2017-05-10 21:33:13 UTC) #40
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/2858393002/100001
3 years, 7 months ago (2017-05-10 21:37:15 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450979)
3 years, 7 months ago (2017-05-11 00:30:34 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.chromium.org/2858393002/100001
3 years, 7 months ago (2017-05-11 00:34:47 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/451206)
3 years, 7 months ago (2017-05-11 03:48:18 UTC) #48
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/2858393002/100001
3 years, 7 months ago (2017-05-11 19:21:51 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/452182)
3 years, 7 months ago (2017-05-11 22:06:13 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.chromium.org/2858393002/100001
3 years, 7 months ago (2017-05-12 19:21:56 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/369794)
3 years, 7 months ago (2017-05-12 22:19:11 UTC) #56
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/2858393002/100001
3 years, 7 months ago (2017-05-12 22:21:52 UTC) #58
commit-bot: I haz the power
3 years, 7 months ago (2017-05-13 01:08:46 UTC) #61
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/a51ee9488f2b82b1dc8e9c79881b...

Powered by Google App Engine
This is Rietveld 408576698