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

Issue 21618002: Fix slow playback of 1-channel MP3 and AAC files for WebAudio on Android (Closed)

Created:
7 years, 4 months ago by Raymond Toy (Google)
Modified:
7 years, 4 months ago
Reviewers:
bulach, qinmin
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix slow playback of 1-channel MP3 and AAC files for WebAudio on Android BUG=266006 If the MediaFormat indicates 1 channel for the file but the MediaCodec decoder changes the output format to 2 channels, we remove the data from the second channel before sending to the receiver. This makes the the transmitted data consistent with the expected number of channels. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216779

Patch Set 1 #

Patch Set 2 : New implementation #

Total comments: 6

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -9 lines) Patch
M media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java View 1 2 5 chunks +19 lines, -6 lines 0 comments Download
M media/base/android/webaudio_media_codec_bridge.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M media/base/android/webaudio_media_codec_bridge.cc View 1 2 2 chunks +23 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Raymond Toy (Google)
Please take a look. I'm not sure this is the best possible workaround, but I ...
7 years, 4 months ago (2013-08-01 19:42:11 UTC) #1
qinmin
I don't think this is appropriate fix. Shouldn't this be fixed in decoder side instead ...
7 years, 4 months ago (2013-08-02 07:00:53 UTC) #2
Raymond Toy (Google)
On 2013/08/02 07:00:53, qinmin wrote: > I don't think this is appropriate fix. Shouldn't this ...
7 years, 4 months ago (2013-08-02 16:07:22 UTC) #3
qinmin
On 2013/08/02 16:07:22, rtoy wrote: > On 2013/08/02 07:00:53, qinmin wrote: > > I don't ...
7 years, 4 months ago (2013-08-02 16:12:04 UTC) #4
Raymond Toy (Google)
On 2013/08/02 16:12:04, qinmin wrote: > On 2013/08/02 16:07:22, rtoy wrote: > > On 2013/08/02 ...
7 years, 4 months ago (2013-08-02 16:26:00 UTC) #5
qinmin
On 2013/08/02 16:26:00, rtoy wrote: > On 2013/08/02 16:12:04, qinmin wrote: > > On 2013/08/02 ...
7 years, 4 months ago (2013-08-02 16:38:08 UTC) #6
Raymond Toy (Google)
On 2013/08/02 16:38:08, qinmin wrote: > On 2013/08/02 16:26:00, rtoy wrote: > > On 2013/08/02 ...
7 years, 4 months ago (2013-08-02 16:42:12 UTC) #7
Raymond Toy (Google)
On 2013/08/02 16:42:12, rtoy wrote: > On 2013/08/02 16:38:08, qinmin wrote: > > On 2013/08/02 ...
7 years, 4 months ago (2013-08-02 17:00:51 UTC) #8
qinmin
On 2013/08/02 17:00:51, rtoy wrote: > On 2013/08/02 16:42:12, rtoy wrote: > > On 2013/08/02 ...
7 years, 4 months ago (2013-08-02 17:18:40 UTC) #9
qinmin
On 2013/08/02 17:18:40, qinmin wrote: > On 2013/08/02 17:00:51, rtoy wrote: > > On 2013/08/02 ...
7 years, 4 months ago (2013-08-02 17:19:39 UTC) #10
qinmin
How about after decoding the first buffer, call MediaExtactor.getSampleTime()? And since you have the sample ...
7 years, 4 months ago (2013-08-02 21:16:53 UTC) #11
Raymond Toy (Google)
On 2013/08/02 21:16:53, qinmin wrote: > How about after decoding the first buffer, call MediaExtactor.getSampleTime()? ...
7 years, 4 months ago (2013-08-02 22:15:53 UTC) #12
Raymond Toy (Google)
On 2013/08/02 22:15:53, rtoy wrote: > On 2013/08/02 21:16:53, qinmin wrote: > > How about ...
7 years, 4 months ago (2013-08-06 22:32:27 UTC) #13
Raymond Toy (Google)
PTAL. This new implementation uses the fact that the decoder tells us that the output ...
7 years, 4 months ago (2013-08-08 23:30:44 UTC) #14
qinmin
lgtm % nits https://codereview.chromium.org/21618002/diff/15001/media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java File media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java (right): https://codereview.chromium.org/21618002/diff/15001/media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java#newcode65 media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java:65: nit: use inputChannelCount https://codereview.chromium.org/21618002/diff/15001/media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java#newcode70 media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java:70: nit: ...
7 years, 4 months ago (2013-08-09 00:31:55 UTC) #15
Raymond Toy (Google)
On 2013/08/09 00:31:55, qinmin wrote: > lgtm % nits > > https://codereview.chromium.org/21618002/diff/15001/media/base/android/java/src/org/chromium/media/WebAudioMediaCodecBridge.java > File > ...
7 years, 4 months ago (2013-08-09 16:37:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtoy@google.com/21618002/30001
7 years, 4 months ago (2013-08-09 16:39:54 UTC) #17
commit-bot: I haz the power
7 years, 4 months ago (2013-08-09 23:47:57 UTC) #18
Message was sent while issue was closed.
Change committed as 216779

Powered by Google App Engine
This is Rietveld 408576698