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

Issue 2746413002: Improve error handling for ffmpeg operations (Closed)

Created:
3 years, 9 months ago by janssonWebRTC
Modified:
3 years, 9 months ago
Reviewers:
kjellander_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Improve error handling for ffmpeg operations BUG=webrtc:7203 Review-Url: https://codereview.webrtc.org/2746413002 Cr-Commit-Position: refs/heads/master@{#17258} Committed: https://chromium.googlesource.com/external/webrtc/+/5c7a623dd45eff06bd173d9e32801188aa1eaf3c

Patch Set 1 #

Patch Set 2 : remove debug prints #

Total comments: 16

Patch Set 3 : add custom exceptions #

Total comments: 8

Patch Set 4 : Remove custom exceptions #

Total comments: 6

Patch Set 5 : Add back custom exceptions and remove return #

Total comments: 12

Patch Set 6 : Address comments and cleaned up docstrings comments #

Total comments: 1

Patch Set 7 : Remove blank line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -64 lines) Patch
M webrtc/tools/run_video_analysis.py View 1 2 3 4 5 6 15 chunks +92 lines, -64 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
janssonWebRTC
Could you please a take a look? I just wanted to improve the error handling ...
3 years, 9 months ago (2017-03-14 12:07:04 UTC) #2
kjellander_webrtc
https://codereview.webrtc.org/2746413002/diff/20001/webrtc/tools/run_video_analysis.py File webrtc/tools/run_video_analysis.py (right): https://codereview.webrtc.org/2746413002/diff/20001/webrtc/tools/run_video_analysis.py#newcode185 webrtc/tools/run_video_analysis.py:185: remove line 185. I think the blank-line-before-comment is mainly ...
3 years, 9 months ago (2017-03-14 12:45:27 UTC) #3
janssonWebRTC
Sorry for not reading the style guide! https://codereview.webrtc.org/2746413002/diff/20001/webrtc/tools/run_video_analysis.py File webrtc/tools/run_video_analysis.py (right): https://codereview.webrtc.org/2746413002/diff/20001/webrtc/tools/run_video_analysis.py#newcode185 webrtc/tools/run_video_analysis.py:185: On 2017/03/14 ...
3 years, 9 months ago (2017-03-14 13:57:19 UTC) #4
kjellander_webrtc
https://codereview.webrtc.org/2746413002/diff/40001/webrtc/tools/run_video_analysis.py File webrtc/tools/run_video_analysis.py (right): https://codereview.webrtc.org/2746413002/diff/40001/webrtc/tools/run_video_analysis.py#newcode220 webrtc/tools/run_video_analysis.py:220: except MagewellError: catching only this and just re-throwing it ...
3 years, 9 months ago (2017-03-14 14:39:58 UTC) #5
janssonWebRTC
Redid it in a similar fashion as compare_videos and barcode_decoder.py. https://codereview.webrtc.org/2746413002/diff/40001/webrtc/tools/run_video_analysis.py File webrtc/tools/run_video_analysis.py (right): https://codereview.webrtc.org/2746413002/diff/40001/webrtc/tools/run_video_analysis.py#newcode220 ...
3 years, 9 months ago (2017-03-14 16:15:15 UTC) #6
kjellander_webrtc
I think PS#3 is much better than 4, returning booleans is confusing and harder to ...
3 years, 9 months ago (2017-03-14 21:20:07 UTC) #7
janssonWebRTC
I totally misunderstood what you meant earlier, my bad. Added back the exceptions but without ...
3 years, 9 months ago (2017-03-15 08:48:41 UTC) #8
kjellander_webrtc
Much better again. I'm afraid I found some new improvements though. https://codereview.webrtc.org/2746413002/diff/80001/webrtc/tools/run_video_analysis.py File webrtc/tools/run_video_analysis.py (right): ...
3 years, 9 months ago (2017-03-15 11:51:00 UTC) #9
janssonWebRTC
Address your comments and also cleaned up the docstrings in general according to https://google.github.io/styleguide/pyguide.html?showone=Comments#Comments https://codereview.webrtc.org/2746413002/diff/80001/webrtc/tools/run_video_analysis.py ...
3 years, 9 months ago (2017-03-15 13:44:36 UTC) #10
kjellander_webrtc
lgtm, now it's much cleaner. Just FYI: instead of returning a dict with just two ...
3 years, 9 months ago (2017-03-15 14:00:29 UTC) #11
janssonWebRTC
On 2017/03/15 14:00:29, kjellander_webrtc wrote: > lgtm, now it's much cleaner. > > Just FYI: ...
3 years, 9 months ago (2017-03-15 14:31:07 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.webrtc.org/2746413002/120001
3 years, 9 months ago (2017-03-15 14:32:10 UTC) #15
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 15:27:34 UTC) #18
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/external/webrtc/+/5c7a623dd45eff06bd173d9e3...

Powered by Google App Engine
This is Rietveld 408576698