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

Issue 2768713002: Pass a |media_log| to FFmpegVideoDecoder and roll ffmpeg (Closed)

Created:
3 years, 9 months ago by sandersd (OOO until July 31)
Modified:
3 years, 9 months ago
Reviewers:
bbudge, DaleCurtis, *wolenetz
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass a |media_log| to FFmpegVideoDecoder. This allows FFmpegVideoDecoder to log messages for web developers. As a first attempt, this CL logs a message when FFmpeg fails to decode a frame that includes the message from FFmpeg and details about the failed buffer. Includes FFmpeg DEPS roll to expose these messages. Roll src/third_party/ffmpeg/ 6d2e44445..9751ef06f (1 commit) https://chromium.googlesource.com/chromium/third_party/ffmpeg.git/+log/6d2e444456b7..9751ef06f90f $ git log 6d2e44445..9751ef06f --date=short --no-merges --format='%ad %ae %s' 2017-03-23 sandersd Expose av_strerror() via ffmpeg.sigs. BUG=TBD CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2768713002 Cr-Commit-Position: refs/heads/master@{#459548} Committed: https://chromium.googlesource.com/chromium/src/+/68e83a343963981524faa8e03fc6cc274ecc8409

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move to ffmeg_common #

Patch Set 3 : Roll DEPS. #

Patch Set 4 : Rebase DEPS. #

Total comments: 1

Patch Set 5 : Reroll DEPS. #

Patch Set 6 : Unit test. #

Patch Set 7 : Implement unittest. #

Patch Set 8 : Update cast sender unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -11 lines) Patch
M DEPS View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/video_decoder_shim.cc View 1 2 3 4 5 6 3 chunks +4 lines, -1 line 0 comments Download
M media/cast/sender/h264_vt_encoder_unittest.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -1 line 0 comments Download
M media/ffmpeg/ffmpeg_common.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.h View 1 3 chunks +4 lines, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 3 chunks +8 lines, -3 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 2 3 4 5 6 chunks +15 lines, -1 line 0 comments Download
M media/gpu/video_encode_accelerator_unittest.cc View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M media/renderers/default_renderer_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/test/pipeline_integration_test_base.cc View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 47 (30 generated)
sandersd (OOO until July 31)
We probably want to at least trim down the information about the failing buffer, but ...
3 years, 9 months ago (2017-03-22 00:12:37 UTC) #4
DaleCurtis
Seems okay. https://codereview.chromium.org/2768713002/diff/1/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/2768713002/diff/1/media/filters/ffmpeg_video_decoder.cc#newcode38 media/filters/ffmpeg_video_decoder.cc:38: av_make_error_string(errbuf, AV_ERROR_MAX_STRING_SIZE, errnum); Will need an ffmpeg ...
3 years, 9 months ago (2017-03-22 00:43:16 UTC) #5
wolenetz
Looks pretty good (+1 to Dale's comments). Do the unit tests pass? I suspect you ...
3 years, 9 months ago (2017-03-22 19:31:50 UTC) #6
sandersd (OOO until July 31)
https://codereview.chromium.org/2768713002/diff/1/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): https://codereview.chromium.org/2768713002/diff/1/media/filters/ffmpeg_video_decoder.cc#newcode36 media/filters/ffmpeg_video_decoder.cc:36: std::string AVErrorString(int errnum) { On 2017/03/22 19:31:50, wolenetz wrote: ...
3 years, 9 months ago (2017-03-23 23:34:36 UTC) #8
DaleCurtis
Followup cls for FFmpeg audio decoder and VpxVideoDecoder?
3 years, 9 months ago (2017-03-23 23:36:17 UTC) #10
DaleCurtis
lgtm
3 years, 9 months ago (2017-03-23 23:36:22 UTC) #11
sandersd (OOO until July 31)
On 2017/03/23 23:36:17, DaleCurtis wrote: > Followup cls for FFmpeg audio decoder and VpxVideoDecoder? That's ...
3 years, 9 months ago (2017-03-23 23:38:31 UTC) #12
sandersd (OOO until July 31)
On 2017/03/23 23:38:31, sandersd wrote: > On 2017/03/23 23:36:17, DaleCurtis wrote: > > Followup cls ...
3 years, 9 months ago (2017-03-23 23:39:12 UTC) #15
sandersd (OOO until July 31)
bbudge@chromium.org: Please review changes in content/renderer/pepper/video_decoder_shim.cc.
3 years, 9 months ago (2017-03-23 23:43:21 UTC) #19
sandersd (OOO until July 31)
On 2017/03/23 23:43:21, sandersd wrote: > mailto:bbudge@chromium.org: Please review changes in > content/renderer/pepper/video_decoder_shim.cc. Looks like ...
3 years, 9 months ago (2017-03-23 23:50:03 UTC) #22
wolenetz
lgtm % https://codereview.chromium.org/2768713002/diff/60001/DEPS File DEPS (right): https://codereview.chromium.org/2768713002/diff/60001/DEPS#newcode208 DEPS:208: Var('chromium_git') + '/chromium/third_party/ffmpeg.git' + '@' + '09fe964c10d868b829ee7ede18040c801c0780f2', ...
3 years, 9 months ago (2017-03-23 23:54:19 UTC) #24
wolenetz
On 2017/03/23 23:54:19, wolenetz wrote: > lgtm % > > https://codereview.chromium.org/2768713002/diff/60001/DEPS > File DEPS (right): ...
3 years, 9 months ago (2017-03-23 23:56:17 UTC) #25
sandersd (OOO until July 31)
> also % my earlier question and offline chat about StrictMock MockMediaLog > coverage of ...
3 years, 9 months ago (2017-03-24 00:38:09 UTC) #26
wolenetz
On 2017/03/24 00:38:09, sandersd wrote: > > also % my earlier question and offline chat ...
3 years, 9 months ago (2017-03-24 17:38:41 UTC) #32
bbudge
content/renderer/pepper lgtm
3 years, 9 months ago (2017-03-24 18:40:17 UTC) #37
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/2768713002/130001
3 years, 9 months ago (2017-03-24 20:39:23 UTC) #44
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 20:59:48 UTC) #47
Message was sent while issue was closed.
Committed patchset #8 (id:130001) as
https://chromium.googlesource.com/chromium/src/+/68e83a343963981524faa8e03fc6...

Powered by Google App Engine
This is Rietveld 408576698