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

Side by Side Diff: webrtc/video/video_loopback.cc

Issue 2136573002: Adding audio to video_quality_test. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: adding flags. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/video/video_quality_test.h » ('j') | webrtc/video/video_quality_test.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } 184 }
185 185
186 DEFINE_bool(logs, false, "print logs to stderr"); 186 DEFINE_bool(logs, false, "print logs to stderr");
187 187
188 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation"); 188 DEFINE_bool(send_side_bwe, true, "Use send-side bandwidth estimation");
189 189
190 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur"); 190 DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur");
191 191
192 DEFINE_bool(use_fec, false, "Use forward error correction."); 192 DEFINE_bool(use_fec, false, "Use forward error correction.");
193 193
194 DEFINE_bool(audio, false, "Add audio stream (no effect if duration defined)");
minyue-webrtc 2016/07/12 10:09:36 I do not know what is best to do with RunWithAnaly
stefan-webrtc 2016/08/08 14:11:18 I think we should make sure it fails if run with a
minyue-webrtc 2016/08/15 15:34:31 You are right. Done.
195
196 DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if"
197 " audio is false)");
198
194 DEFINE_string( 199 DEFINE_string(
195 force_fieldtrials, 200 force_fieldtrials,
196 "", 201 "",
197 "Field trials control experimental feature code which can be forced. " 202 "Field trials control experimental feature code which can be forced. "
198 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/" 203 "E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enable/"
199 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple " 204 " will assign the group Enable to field trial WebRTC-FooFeature. Multiple "
200 "trials are separated by \"/\""); 205 "trials are separated by \"/\"");
201 206
202 // Video-specific flags. 207 // Video-specific flags.
203 DEFINE_string(clip, 208 DEFINE_string(clip,
(...skipping 29 matching lines...) Expand all
233 flags::NumTemporalLayers(), flags::SelectedTL(), 238 flags::NumTemporalLayers(), flags::SelectedTL(),
234 0, // No min transmit bitrate. 239 0, // No min transmit bitrate.
235 call_bitrate_config, 240 call_bitrate_config,
236 flags::FLAGS_send_side_bwe, 241 flags::FLAGS_send_side_bwe,
237 flags::FLAGS_use_fec}, 242 flags::FLAGS_use_fec},
238 {flags::Clip()}, 243 {flags::Clip()},
239 {}, // Screenshare specific. 244 {}, // Screenshare specific.
240 {"video", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(), 245 {"video", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(),
241 flags::GraphTitle()}, 246 flags::GraphTitle()},
242 pipe_config, 247 pipe_config,
243 flags::FLAGS_logs}; 248 flags::FLAGS_logs,
249 {},
250 flags::FLAGS_audio,
251 flags::FLAGS_audio_video_sync};
244 252
245 std::vector<std::string> stream_descriptors; 253 std::vector<std::string> stream_descriptors;
246 stream_descriptors.push_back(flags::Stream0()); 254 stream_descriptors.push_back(flags::Stream0());
247 stream_descriptors.push_back(flags::Stream1()); 255 stream_descriptors.push_back(flags::Stream1());
248 std::vector<std::string> SL_descriptors; 256 std::vector<std::string> SL_descriptors;
249 SL_descriptors.push_back(flags::SL0()); 257 SL_descriptors.push_back(flags::SL0());
250 SL_descriptors.push_back(flags::SL1()); 258 SL_descriptors.push_back(flags::SL1());
251 VideoQualityTest::FillScalabilitySettings( 259 VideoQualityTest::FillScalabilitySettings(
252 &params, stream_descriptors, flags::SelectedStream(), 260 &params, stream_descriptors, flags::SelectedStream(),
253 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors); 261 flags::NumSpatialLayers(), flags::SelectedSL(), SL_descriptors);
254 262
255 VideoQualityTest test; 263 VideoQualityTest test;
256 if (flags::DurationSecs()) { 264 if (flags::DurationSecs()) {
257 test.RunWithAnalyzer(params); 265 test.RunWithAnalyzer(params);
258 } else { 266 } else {
259 test.RunWithVideoRenderer(params); 267 test.RunWithVideoRenderer(params);
260 } 268 }
261 } 269 }
262 } // namespace webrtc 270 } // namespace webrtc
263 271
264 int main(int argc, char* argv[]) { 272 int main(int argc, char* argv[]) {
265 ::testing::InitGoogleTest(&argc, argv); 273 ::testing::InitGoogleTest(&argc, argv);
266 google::ParseCommandLineFlags(&argc, &argv, true); 274 google::ParseCommandLineFlags(&argc, &argv, true);
267 webrtc::test::InitFieldTrialsFromString( 275 webrtc::test::InitFieldTrialsFromString(
268 webrtc::flags::FLAGS_force_fieldtrials); 276 webrtc::flags::FLAGS_force_fieldtrials);
269 webrtc::test::RunTest(webrtc::Loopback); 277 webrtc::test::RunTest(webrtc::Loopback);
270 return 0; 278 return 0;
271 } 279 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/video_quality_test.h » ('j') | webrtc/video/video_quality_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698