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

Issue 23014009: media: Opus support for WebM in Media Source (Closed)

Created:
7 years, 3 months ago by vignesh
Modified:
7 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

media: Opus support for WebM in Media Source Matroska's specification of Opus has been standardized here: http://wiki.xiph.org/MatroskaOpus. This CL adds support for the new Matroska elements related to Opus and enables Opus playback in WebM files through Media Source API. It also adds support for end trimming. This is a first CL in a sequence of CLs that will attempt to add various features towards fully functional working of Opus in WebM (both media source and video tag). BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221574

Patch Set 1 #

Total comments: 20

Patch Set 2 : addressing comments #

Patch Set 3 : adding pipeline integration test #

Total comments: 30

Patch Set 4 : addressing comments. using base::TimeDelta for relevant fields. #

Total comments: 31

Patch Set 5 : rebase and addressing comments #

Total comments: 8

Patch Set 6 : rebase and addressing comments #

Total comments: 4

Patch Set 7 : fixing nits #

Patch Set 8 : rebasing and addressing conflicts #

Patch Set 9 : fixing errors causing try bot failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -49 lines) Patch
M media/base/audio_decoder_config.h View 1 2 3 4 5 4 chunks +15 lines, -1 line 0 comments Download
M media/base/audio_decoder_config.cc View 1 2 3 4 6 chunks +14 lines, -4 lines 0 comments Download
M media/base/decoder_buffer.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M media/base/decoder_buffer.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M media/base/run_all_unittests.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M media/filters/decrypting_demuxer_stream.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M media/filters/opus_audio_decoder.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M media/filters/opus_audio_decoder.cc View 1 2 3 4 5 6 7 chunks +41 lines, -19 lines 0 comments Download
M media/filters/pipeline_integration_test.cc View 1 2 3 4 5 6 7 3 chunks +23 lines, -0 lines 0 comments Download
M media/filters/stream_parser_factory.cc View 1 2 3 4 5 6 7 4 chunks +10 lines, -1 line 0 comments Download
M media/mp3/mp3_stream_parser.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M media/mp4/mp4_stream_parser.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M media/webm/webm_audio_client.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M media/webm/webm_audio_client.cc View 1 2 3 4 2 chunks +12 lines, -3 lines 0 comments Download
M media/webm/webm_cluster_parser.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
M media/webm/webm_cluster_parser.cc View 1 2 3 4 5 6 8 chunks +25 lines, -5 lines 0 comments Download
M media/webm/webm_constants.h View 3 chunks +3 lines, -0 lines 0 comments Download
M media/webm/webm_parser.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M media/webm/webm_tracks_parser.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M media/webm/webm_tracks_parser.cc View 1 2 3 4 3 chunks +10 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
vignesh
I am working on coming up with tests for end trimming. In the meantime, this ...
7 years, 3 months ago (2013-08-26 19:09:51 UTC) #1
fgalligan1
https://codereview.chromium.org/23014009/diff/1/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/23014009/diff/1/media/base/audio_decoder_config.h#newcode112 media/base/audio_decoder_config.h:112: int64 codec_delay_; I think you need to add comments ...
7 years, 3 months ago (2013-08-26 21:10:06 UTC) #2
vignesh
addressing comments. https://codereview.chromium.org/23014009/diff/1/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/23014009/diff/1/media/base/audio_decoder_config.h#newcode112 media/base/audio_decoder_config.h:112: int64 codec_delay_; On 2013/08/26 21:10:06, fgalligan1 wrote: ...
7 years, 3 months ago (2013-08-26 21:44:23 UTC) #3
fgalligan1
https://codereview.chromium.org/23014009/diff/1/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/23014009/diff/1/media/filters/opus_audio_decoder.cc#newcode460 media/filters/opus_audio_decoder.cc:460: skip_samples_ = opus_header.skip_samples; On 2013/08/26 21:44:23, vignesh wrote: > ...
7 years, 3 months ago (2013-08-26 22:11:53 UTC) #4
vignesh
https://codereview.chromium.org/23014009/diff/1/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/23014009/diff/1/media/filters/opus_audio_decoder.cc#newcode460 media/filters/opus_audio_decoder.cc:460: skip_samples_ = opus_header.skip_samples; On 2013/08/26 22:11:53, fgalligan1 wrote: > ...
7 years, 3 months ago (2013-08-26 23:55:47 UTC) #5
Tom Finegan
https://codereview.chromium.org/23014009/diff/16001/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/23014009/diff/16001/media/filters/opus_audio_decoder.cc#newcode522 media/filters/opus_audio_decoder.cc:522: int samples_decoded = opus_multistream_decode(opus_decoder_, I thought you were going ...
7 years, 3 months ago (2013-08-28 01:35:34 UTC) #6
vignesh
https://codereview.chromium.org/23014009/diff/16001/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/23014009/diff/16001/media/filters/opus_audio_decoder.cc#newcode522 media/filters/opus_audio_decoder.cc:522: int samples_decoded = opus_multistream_decode(opus_decoder_, On 2013/08/28 01:35:35, Tom Finegan ...
7 years, 3 months ago (2013-08-28 17:17:15 UTC) #7
vignesh
7 years, 3 months ago (2013-08-28 18:49:33 UTC) #8
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/23014009/diff/16001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/23014009/diff/16001/media/base/audio_decoder_config.h#newcode83 media/base/audio_decoder_config.h:83: int64 seek_pre_roll() const { return seek_pre_roll_; } nit: Use ...
7 years, 3 months ago (2013-08-28 20:44:46 UTC) #9
vignesh
have addressed most comments. PTAL. https://codereview.chromium.org/23014009/diff/16001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/23014009/diff/16001/media/base/audio_decoder_config.h#newcode83 media/base/audio_decoder_config.h:83: int64 seek_pre_roll() const { ...
7 years, 3 months ago (2013-08-29 21:37:31 UTC) #10
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/23014009/diff/16001/media/webm/webm_audio_client.cc File media/webm/webm_audio_client.cc (right): https://codereview.chromium.org/23014009/diff/16001/media/webm/webm_audio_client.cc#newcode36 media/webm/webm_audio_client.cc:36: } else if (codec_id == "A_OPUS" || codec_id == ...
7 years, 3 months ago (2013-09-03 20:14:01 UTC) #11
vignesh
have addressed all the comments. PTAL. thanks. https://codereview.chromium.org/23014009/diff/16001/media/webm/webm_audio_client.cc File media/webm/webm_audio_client.cc (right): https://codereview.chromium.org/23014009/diff/16001/media/webm/webm_audio_client.cc#newcode36 media/webm/webm_audio_client.cc:36: } else ...
7 years, 3 months ago (2013-09-03 22:43:02 UTC) #12
acolwell GONE FROM CHROMIUM
You're real close. Just a few more comments. https://codereview.chromium.org/23014009/diff/30001/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/23014009/diff/30001/media/filters/opus_audio_decoder.cc#newcode461 media/filters/opus_audio_decoder.cc:461: if ...
7 years, 3 months ago (2013-09-03 23:53:43 UTC) #13
vignesh
https://codereview.chromium.org/23014009/diff/38001/media/base/audio_decoder_config.h File media/base/audio_decoder_config.h (right): https://codereview.chromium.org/23014009/diff/38001/media/base/audio_decoder_config.h#newcode111 media/base/audio_decoder_config.h:111: // |seek_preroll_| is the duration in of the data ...
7 years, 3 months ago (2013-09-04 00:09:52 UTC) #14
acolwell GONE FROM CHROMIUM
On 2013/09/04 00:09:52, vignesh wrote: > https://codereview.chromium.org/23014009/diff/38001/media/base/audio_decoder_config.h > File media/base/audio_decoder_config.h (right): > > https://codereview.chromium.org/23014009/diff/38001/media/base/audio_decoder_config.h#newcode111 > ...
7 years, 3 months ago (2013-09-04 00:38:41 UTC) #15
vignesh
On 2013/09/04 00:38:41, acolwell wrote: > On 2013/09/04 00:09:52, vignesh wrote: > > > https://codereview.chromium.org/23014009/diff/38001/media/base/audio_decoder_config.h ...
7 years, 3 months ago (2013-09-04 17:07:36 UTC) #16
acolwell GONE FROM CHROMIUM
lgtm % nits. https://codereview.chromium.org/23014009/diff/58001/media/filters/pipeline_integration_test.cc File media/filters/pipeline_integration_test.cc (right): https://codereview.chromium.org/23014009/diff/58001/media/filters/pipeline_integration_test.cc#newcode959 media/filters/pipeline_integration_test.cc:959: TEST_F(PipelineIntegrationTest, DISABLED_BasicPlayback_AudioOnly_Opus_WebM) { nit: Please reinstate ...
7 years, 3 months ago (2013-09-04 20:08:42 UTC) #17
vignesh
Fixed all the nits. PTAL before i submit it. Adding isherman@ for owners review of ...
7 years, 3 months ago (2013-09-04 20:27:46 UTC) #18
Ilya Sherman
histograms.xml lgtm
7 years, 3 months ago (2013-09-04 20:54:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vigneshv@chromium.org/23014009/50001
7 years, 3 months ago (2013-09-05 18:22:12 UTC) #20
commit-bot: I haz the power
Failed to apply patch for media/filters/stream_parser_factory.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-05 18:22:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vigneshv@chromium.org/23014009/74001
7 years, 3 months ago (2013-09-05 20:22:57 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-05 20:49:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vigneshv@chromium.org/23014009/84001
7 years, 3 months ago (2013-09-05 22:20:01 UTC) #24
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 05:09:15 UTC) #25
Message was sent while issue was closed.
Change committed as 221574

Powered by Google App Engine
This is Rietveld 408576698