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

Issue 2273573003: Support for video file instead of camera and output video out to file (Closed)

Created:
4 years, 4 months ago by mandermo
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Support for video file instead of camera and output video out to file When video out to file is enabled the remote video which is recorded is not show on screen. You can use this command line for file input and output: monkeyrunner ./webrtc/examples/androidapp/start_loopback_stubbed_camera_saved_video_out.py --devname 02157df28cd47001 --videoin /storage/emulated/0/reference_video_1280x720_30fps.y4m --videoout /storage/emulated/0/output.y4m --videoout_width 1280 --videoout_height 720 --videooutsave /tmp/out.y4m BUG=webrtc:6545 Committed: https://crrev.com/44666997ca912705f8f96c9bd211e719525a3ccc Cr-Commit-Position: refs/heads/master@{#14660}

Patch Set 1 #

Patch Set 2 : Added file to start automated loopback run #

Total comments: 28

Patch Set 3 : Refactoring of FileVideoCapturer with separate timer class #

Patch Set 4 : Merge of recent changes on master and change to be compatible with that #

Patch Set 5 : \ #

Total comments: 11

Patch Set 6 : Improved error handling for video in and video out to file #

Total comments: 29

Patch Set 7 : Changed based on review comments #

Patch Set 8 : Added . to comments #

Total comments: 75

Patch Set 9 : Fixing review comments, except unittesting #

Total comments: 51

Patch Set 10 : Fixed review comments. Unittests in follow up CL. #

Total comments: 24

Patch Set 11 : Fixed review comments #

Patch Set 12 : Fixed bug from refactoring frameAspectRatio in VideoFileRenderer #

Patch Set 13 : Better synchronization of release in VideoFileRenderer #

Total comments: 6

Patch Set 14 : Removed unnecessary mutex in VideoFileRenderer and did other review fixes #

Patch Set 15 : Fixed I introduced when changing from HandlerThread.quitSafely() to HandlerThread.quit() #

Patch Set 16 : Merge changes from master #

Patch Set 17 : Fixed copyright header for start_loopback_stubbed_camera_saved_video_out.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+933 lines, -186 lines) Patch
M webrtc/api/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
A webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +211 lines, -0 lines 0 comments Download
M webrtc/api/android/java/src/org/webrtc/SurfaceTextureHelper.java View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A webrtc/api/android/java/src/org/webrtc/VideoFileRenderer.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +135 lines, -0 lines 0 comments Download
M webrtc/api/android/jni/peerconnection_jni.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +73 lines, -0 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15 chunks +138 lines, -19 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/ConnectActivity.java View 1 2 3 4 5 6 7 8 9 10 7 chunks +160 lines, -68 lines 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java View 1 2 3 4 5 6 7 8 9 10 12 chunks +34 lines, -67 lines 0 comments Download
A webrtc/examples/androidapp/start_loopback_stubbed_camera_saved_video_out.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +124 lines, -0 lines 0 comments Download
M webrtc/examples/androidtests/src/org/appspot/apprtc/test/PeerConnectionClientTest.java View 1 2 3 4 5 6 7 8 9 10 20 chunks +55 lines, -31 lines 0 comments Download

Messages

Total messages: 76 (44 generated)
kjellander_webrtc
I realize I don't know this code very well so I'd prefer if Magnus takes ...
4 years, 4 months ago (2016-08-24 12:59:45 UTC) #2
mandermo
On 2016/08/24 12:59:45, kjellander_webrtc wrote: > I realize I don't know this code very well ...
4 years, 3 months ago (2016-08-26 08:16:05 UTC) #3
kjellander_webrtc
On 2016/08/26 08:16:05, mandermo wrote: > On 2016/08/24 12:59:45, kjellander_webrtc wrote: > > I realize ...
4 years, 3 months ago (2016-08-26 13:15:32 UTC) #4
kjellander_webrtc
On 2016/08/26 13:15:32, kjellander_webrtc wrote: > On 2016/08/26 08:16:05, mandermo wrote: > > On 2016/08/24 ...
4 years, 3 months ago (2016-08-26 13:17:59 UTC) #5
magjed_webrtc
https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode27 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:27: class VideoReaderYuv implements VideoReader { Make this a private ...
4 years, 3 months ago (2016-08-31 13:08:03 UTC) #7
magjed_webrtc
https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/GlVideoFileDrawer.java File webrtc/api/android/java/src/org/webrtc/GlVideoFileDrawer.java (right): https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/GlVideoFileDrawer.java#newcode34 webrtc/api/android/java/src/org/webrtc/GlVideoFileDrawer.java:34: surfaceTextureHelper = SurfaceTextureHelper.create( The SurfaceTextureHelper will create a SurfaceTexture ...
4 years, 3 months ago (2016-08-31 14:10:46 UTC) #8
mandermo
Have fixed review comments https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode27 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:27: class VideoReaderYuv implements VideoReader { ...
4 years, 3 months ago (2016-09-16 12:32:30 UTC) #9
magjed_webrtc
https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode36 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:36: } On 2016/09/16 12:32:29, mandermo wrote: > On 2016/08/31 ...
4 years, 3 months ago (2016-09-16 13:46:26 UTC) #10
mandermo
Some refactoring of the error handling.
4 years, 3 months ago (2016-09-16 13:47:03 UTC) #11
kjellander_webrtc
I focused on the .py and .gn, I'm leaving the .java to magjed. https://codereview.webrtc.org/2273573003/diff/100001/webrtc/examples/androidapp/start_loopback_stubbed_camera_saved_video_out.py File ...
4 years, 3 months ago (2016-09-19 05:27:29 UTC) #12
mandermo
Changes based on review comments https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): https://codereview.webrtc.org/2273573003/diff/20001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode147 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:147: public class FileVideoCapturer implements ...
4 years, 3 months ago (2016-09-23 15:12:04 UTC) #13
magjed_webrtc
I don't have much time to review, so I'm adding Sami as a reviewer. I ...
4 years, 2 months ago (2016-09-26 11:40:02 UTC) #15
sakal
https://codereview.webrtc.org/2273573003/diff/140001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): https://codereview.webrtc.org/2273573003/diff/140001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode9 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:9: */ nit: add empty line https://codereview.webrtc.org/2273573003/diff/140001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode18 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:18: nit: remove ...
4 years, 2 months ago (2016-09-27 07:54:28 UTC) #16
kjellander_webrtc
Whoa, already a centi-comment CL. I think almost all outstanding comments are pretty easy to ...
4 years, 2 months ago (2016-09-27 11:30:21 UTC) #17
mandermo
Updated from review comments, except unit testing https://codereview.webrtc.org/2273573003/diff/140001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): https://codereview.webrtc.org/2273573003/diff/140001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode31 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:31: class VideoReaderY4M ...
4 years, 2 months ago (2016-10-04 14:56:57 UTC) #19
sakal
It's starting to look good. A few more comments from me. https://codereview.webrtc.org/2273573003/diff/160001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): ...
4 years, 2 months ago (2016-10-05 13:28:42 UTC) #20
mandermo
Fixed review comments https://codereview.webrtc.org/2273573003/diff/160001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): https://codereview.webrtc.org/2273573003/diff/160001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode72 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:72: String[] headerTokens = header.split("[\n ]"); On ...
4 years, 2 months ago (2016-10-07 11:33:41 UTC) #21
sakal
lgtm In the future, please make a rebase in a separate patchset. It makes reviewing ...
4 years, 2 months ago (2016-10-07 11:57:21 UTC) #22
magjed_webrtc
Only nit comments left. Please run 'git cl format' before uploading the next patch set. ...
4 years, 2 months ago (2016-10-08 10:46:05 UTC) #23
mandermo
Fixed review comments https://codereview.webrtc.org/2273573003/diff/180001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): https://codereview.webrtc.org/2273573003/diff/180001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode19 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:19: import java.io.File; On 2016/10/08 10:46:04, magjed_webrtc ...
4 years, 2 months ago (2016-10-10 12:22:13 UTC) #24
mandermo
Fixed review comments https://codereview.webrtc.org/2273573003/diff/180001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java File webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java (right): https://codereview.webrtc.org/2273573003/diff/180001/webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java#newcode19 webrtc/api/android/java/src/org/webrtc/FileVideoCapturer.java:19: import java.io.File; On 2016/10/08 10:46:04, magjed_webrtc ...
4 years, 2 months ago (2016-10-10 12:22:14 UTC) #25
mandermo
Fixed a bug form last upload, which I introduced when refactoring frame aspect ratio calculation ...
4 years, 2 months ago (2016-10-10 17:18:47 UTC) #26
mandermo
Found that the synchronization in VideoFileRenderer was bad. Fixed that.
4 years, 2 months ago (2016-10-10 18:25:23 UTC) #27
magjed_webrtc
https://codereview.webrtc.org/2273573003/diff/240001/webrtc/api/android/java/src/org/webrtc/VideoFileRenderer.java File webrtc/api/android/java/src/org/webrtc/VideoFileRenderer.java (right): https://codereview.webrtc.org/2273573003/diff/240001/webrtc/api/android/java/src/org/webrtc/VideoFileRenderer.java#newcode61 webrtc/api/android/java/src/org/webrtc/VideoFileRenderer.java:61: synchronized (handlerLock) { What's the purpose of this lock? ...
4 years, 2 months ago (2016-10-11 13:48:16 UTC) #28
mandermo
Fixed comments in #28 https://codereview.webrtc.org/2273573003/diff/240001/webrtc/api/android/java/src/org/webrtc/VideoFileRenderer.java File webrtc/api/android/java/src/org/webrtc/VideoFileRenderer.java (right): https://codereview.webrtc.org/2273573003/diff/240001/webrtc/api/android/java/src/org/webrtc/VideoFileRenderer.java#newcode61 webrtc/api/android/java/src/org/webrtc/VideoFileRenderer.java:61: synchronized (handlerLock) { On 2016/10/11 ...
4 years, 2 months ago (2016-10-11 14:15:28 UTC) #29
mandermo
Fixed I introduced when changing from HandlerThread.quitSafely() to HandlerThread.quit()
4 years, 2 months ago (2016-10-11 16:41:15 UTC) #30
magjed_webrtc
lgtm
4 years, 2 months ago (2016-10-12 14:23:08 UTC) #31
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/2273573003/320001
4 years, 2 months ago (2016-10-18 11:44:24 UTC) #70
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 2 months ago (2016-10-18 11:52:04 UTC) #72
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/44666997ca912705f8f96c9bd211e719525a3ccc Cr-Commit-Position: refs/heads/master@{#14660}
4 years, 2 months ago (2016-10-18 11:52:17 UTC) #74
kjellander_webrtc
A revert of this CL (patchset #17 id:320001) has been created in https://codereview.webrtc.org/2425763003/ by kjellander@webrtc.org. ...
4 years, 2 months ago (2016-10-18 13:05:23 UTC) #75
mandermo1
4 years, 2 months ago (2016-10-18 13:07:16 UTC) #76
Message was sent while issue was closed.
A revert of this CL (patchset #17 id:320001) has been created in
https://codereview.webrtc.org/2431663002/ by mandermo@google.com.

The reason for reverting is: The patch breaks downstream.

Powered by Google App Engine
This is Rietveld 408576698