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

Unified 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: rebasing again due to a revert in ToT Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/screenshare_loopback.cc ('k') | webrtc/video/video_quality_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_loopback.cc
diff --git a/webrtc/video/video_loopback.cc b/webrtc/video/video_loopback.cc
index 518129479f11374c13455aada4780b4fca091c00..2a5958db265483a5db2ff485258578c7474e0531 100644
--- a/webrtc/video/video_loopback.cc
+++ b/webrtc/video/video_loopback.cc
@@ -191,6 +191,11 @@ DEFINE_bool(allow_reordering, false, "Allow packet reordering to occur");
DEFINE_bool(use_fec, false, "Use forward error correction.");
+DEFINE_bool(audio, false, "Add audio stream");
+
+DEFINE_bool(audio_video_sync, false, "Sync audio and video stream (no effect if"
+ " audio is false)");
+
DEFINE_string(
force_fieldtrials,
"",
@@ -236,7 +241,10 @@ void Loopback() {
{"video", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename(),
flags::GraphTitle()},
pipe_config,
- flags::FLAGS_logs};
+ flags::FLAGS_logs,
+ {}, // ss.
+ flags::FLAGS_audio,
+ flags::FLAGS_audio_video_sync};
std::vector<std::string> stream_descriptors;
stream_descriptors.push_back(flags::Stream0());
@@ -252,7 +260,7 @@ void Loopback() {
if (flags::DurationSecs()) {
test.RunWithAnalyzer(params);
} else {
- test.RunWithVideoRenderer(params);
+ test.RunWithRenderers(params);
}
}
} // namespace webrtc
« no previous file with comments | « webrtc/video/screenshare_loopback.cc ('k') | webrtc/video/video_quality_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698