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

Issue 2405463002: Testing of FileVideoCapturer (Closed)

Created:
4 years, 2 months ago by mandermo
Modified:
4 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, qiang.lu, niklas.enbom, yujie_mao (webrtc), peah-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Testing of FileVideoCapturer. Based on https://codereview.webrtc.org/2273573003/ BUG=webrtc:6545 Committed: https://crrev.com/9890a5861f6ecf9ba16f95225b88c2aeaf5da2a1 Cr-Commit-Position: refs/heads/master@{#14801}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Using Object.wait() and .notify() to wait for frames for FileVideoCapturerTest #

Total comments: 3

Patch Set 3 : Copied over reference_video_640x360_30fps.y4m.sha1 from chromium and use it instead of smaller videā€¦ #

Patch Set 4 : Cleaned up and changed which pixels are compared in FileVideoCaputurerTest #

Patch Set 5 : Cleaned up and changed which pixels are compared in FileVideoCaputurerTest #

Total comments: 8

Patch Set 6 : Changed to truncated video file for FileVideoCapturerTest #

Patch Set 7 : Merging to be up to date with master #

Total comments: 6

Patch Set 8 : Fixed review comments #

Total comments: 4

Patch Set 9 : y #

Total comments: 12

Patch Set 10 : Hashes frames instead of compare random positions for FileVideoCapturerTest #

Patch Set 11 : Fixed bug in nativeI420ToNV21 and tests with small frame for FileVideoCapturerTest #

Patch Set 12 : Merge branch 'master' into with_yuv_file_reader #

Total comments: 1

Patch Set 13 : Expected value is converted with I420 to NV21 for VideoFileRendererTest #

Patch Set 14 : Workaround for too long line with string literal #

Patch Set 15 : Merge branch 'master' into with_yuv_file_reader #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -7 lines) Patch
M webrtc/api/android/jni/peerconnection_jni.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -7 lines 0 comments Download
M webrtc/examples/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
A webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +110 lines, -0 lines 0 comments Download
A webrtc/examples/androidtests/src/org/appspot/apprtc/test/capturetestvideo.y4m View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 68 (34 generated)
kjellander_webrtc
Only reviewed FileVideoCapturerTest.java since I assume the rest is identical to https://codereview.webrtc.org/2273573003 and will be ...
4 years, 2 months ago (2016-10-07 20:24:02 UTC) #2
mandermo
Using Object.wait() and .notify() to wait for frames for FileVideoCapturerTest, instead of Thread.wait(1000). How to ...
4 years, 2 months ago (2016-10-10 15:07:48 UTC) #3
kjellander_webrtc
looks good. Just need to deal with the resource file now then. I explained how ...
4 years, 2 months ago (2016-10-12 01:00:23 UTC) #4
mandermo
On 2016/10/12 01:00:23, kjellander_webrtc wrote: > looks good. Just need to deal with the resource ...
4 years, 2 months ago (2016-10-12 09:14:16 UTC) #5
mandermo
Fixed review comments and changed video file used
4 years, 2 months ago (2016-10-12 09:14:52 UTC) #6
mandermo
Unit testing of FileVideoCapturer. It is based on https://codereview.webrtc.org/2273573003, so look at FileVideoCapturerTest.java
4 years, 2 months ago (2016-10-12 17:47:47 UTC) #10
kjellander_webrtc
On 2016/10/12 09:14:16, mandermo wrote: > On 2016/10/12 01:00:23, kjellander_webrtc wrote: > > looks good. ...
4 years, 2 months ago (2016-10-12 21:05:41 UTC) #11
kjellander_webrtc
On 2016/10/12 09:14:16, mandermo wrote: > On 2016/10/12 01:00:23, kjellander_webrtc wrote: > > looks good. ...
4 years, 2 months ago (2016-10-12 21:05:42 UTC) #12
kjellander_webrtc
https://codereview.webrtc.org/2405463002/diff/60001/webrtc/examples/BUILD.gn File webrtc/examples/BUILD.gn (right): https://codereview.webrtc.org/2405463002/diff/60001/webrtc/examples/BUILD.gn#newcode109 webrtc/examples/BUILD.gn:109: "//resources/reference_video_640x360_30fps.y4m", Can you upload a smaller version if you're ...
4 years, 2 months ago (2016-10-12 21:07:50 UTC) #13
mandermo
On 2016/10/12 21:05:42, kjellander_webrtc wrote: > On 2016/10/12 09:14:16, mandermo wrote: > > On 2016/10/12 ...
4 years, 2 months ago (2016-10-13 11:27:55 UTC) #14
mandermo
Uses same video file but with only the first four frames. https://codereview.webrtc.org/2405463002/diff/60001/webrtc/examples/BUILD.gn File webrtc/examples/BUILD.gn (right): ...
4 years, 2 months ago (2016-10-13 11:32:48 UTC) #15
kjellander_webrtc
lgtm with comment addressed, but obviously this has to land after the main CL. https://codereview.webrtc.org/2405463002/diff/60001/webrtc/examples/BUILD.gn ...
4 years, 2 months ago (2016-10-13 14:27:49 UTC) #16
sakal
Please upload a version that doesn't include the changes introduced in the main CL.
4 years, 2 months ago (2016-10-17 11:00:54 UTC) #17
sakal
As a tip for the future, you can base your CL on another CL that ...
4 years, 2 months ago (2016-10-17 11:03:44 UTC) #18
mandermo
Merging to be up to date with master and not to be based on https://codereview.webrtc.org/2426003002/
4 years, 2 months ago (2016-10-19 09:03:26 UTC) #19
sakal
https://codereview.webrtc.org/2405463002/diff/100001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java File webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java (right): https://codereview.webrtc.org/2405463002/diff/100001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java#newcode26 webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java:26: public class FileVideoCapturerTest extends InstrumentationTestCase { Have you looked ...
4 years, 2 months ago (2016-10-19 10:59:32 UTC) #20
mandermo
Fixed review comments and made comparison string shorter https://codereview.webrtc.org/2405463002/diff/60001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java File webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java (right): https://codereview.webrtc.org/2405463002/diff/60001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java#newcode88 webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java:88: "7C543C7D7C6C86B31055787FA03F5CE7B0507D5AA42A7B5E867E4462977F99707F958DADA67F7D7B8F6B5535939BA98F2C307D73757C7A4A7A44897DEA84A37A7C647F7F7C6677B37AB71E9C7C5775497D986C49C2398D80827EDE707D7F876988782D72", ...
4 years, 2 months ago (2016-10-19 17:02:04 UTC) #21
kjellander_webrtc
still lgtm https://codereview.webrtc.org/2405463002/diff/60001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java File webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java (right): https://codereview.webrtc.org/2405463002/diff/60001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java#newcode88 webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java:88: "7C543C7D7C6C86B31055787FA03F5CE7B0507D5AA42A7B5E867E4462977F99707F958DADA67F7D7B8F6B5535939BA98F2C307D73757C7A4A7A44897DEA84A37A7C647F7F7C6677B37AB71E9C7C5775497D986C49C2398D80827EDE707D7F876988782D72", On 2016/10/19 17:02:03, mandermo wrote: > ...
4 years, 2 months ago (2016-10-19 19:39:39 UTC) #22
sakal
Please investigate why bots are failing. https://codereview.webrtc.org/2405463002/diff/120001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java File webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java (right): https://codereview.webrtc.org/2405463002/diff/120001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java#newcode96 webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java:96: assertTrue(expectedFrames.length <= frameDatas.size()); ...
4 years, 2 months ago (2016-10-20 07:54:16 UTC) #23
kjellander_webrtc
On 2016/10/20 07:54:16, sakal wrote: > Please investigate why bots are failing. It looks like ...
4 years, 2 months ago (2016-10-20 08:56:58 UTC) #24
kjellander_webrtc
On 2016/10/20 08:56:58, kjellander_webrtc wrote: > On 2016/10/20 07:54:16, sakal wrote: > > Please investigate ...
4 years, 2 months ago (2016-10-20 11:45:17 UTC) #26
mandermo
Fixed comments. +magjed because he is owner of file. https://codereview.webrtc.org/2405463002/diff/120001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java File webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java (right): https://codereview.webrtc.org/2405463002/diff/120001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java#newcode96 webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java:96: ...
4 years, 2 months ago (2016-10-20 14:15:20 UTC) #28
magjed_webrtc
https://codereview.webrtc.org/2405463002/diff/140001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java File webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java (right): https://codereview.webrtc.org/2405463002/diff/140001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java#newcode34 webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java:34: private ArrayList<Frame> frameDatas = new ArrayList<Frame>(); Make this variable ...
4 years, 2 months ago (2016-10-20 14:55:33 UTC) #29
mandermo
Updated based on review comments. https://codereview.chromium.org/2405463002/diff/140001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java File webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java (right): https://codereview.chromium.org/2405463002/diff/140001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java#newcode34 webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java:34: private ArrayList<Frame> frameDatas = ...
4 years, 1 month ago (2016-10-24 18:08:02 UTC) #30
magjed_webrtc
https://codereview.webrtc.org/2405463002/diff/140001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java File webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java (right): https://codereview.webrtc.org/2405463002/diff/140001/webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java#newcode101 webrtc/examples/androidtests/src/org/appspot/apprtc/test/FileVideoCapturerTest.java:101: for (int i = 0; i < expectedFrames.length; ++i) ...
4 years, 1 month ago (2016-10-25 08:02:47 UTC) #31
mandermo
Fixed a bug with how I handle java byte arrays in JNI in nativeI420ToNV21, which ...
4 years, 1 month ago (2016-10-25 16:26:59 UTC) #32
magjed_webrtc
It's easier to do it the other way around instead, i.e. convert the expected I420 ...
4 years, 1 month ago (2016-10-26 11:20:00 UTC) #35
mandermo
Expected value is converted with I420 to NV21.
4 years, 1 month ago (2016-10-26 13:24:23 UTC) #38
magjed_webrtc
lgtm
4 years, 1 month ago (2016-10-26 14:30:23 UTC) #39
sakal
lgtm
4 years, 1 month ago (2016-10-27 10:55:35 UTC) #50
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/2405463002/260001
4 years, 1 month ago (2016-10-27 14:25:01 UTC) #63
commit-bot: I haz the power
Committed patchset #15 (id:260001)
4 years, 1 month ago (2016-10-27 14:26:41 UTC) #65
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/9890a5861f6ecf9ba16f95225b88c2aeaf5da2a1 Cr-Commit-Position: refs/heads/master@{#14801}
4 years, 1 month ago (2016-10-27 14:26:53 UTC) #67
sakal
4 years, 1 month ago (2016-10-28 11:02:39 UTC) #68
Message was sent while issue was closed.
Sorry I didn't catch it earlier but these tests should probably be moved under
webrtc/api/androidtests since they don't test the AppRTCMobile itself.

Powered by Google App Engine
This is Rietveld 408576698