diff --git a/rtc_tools/BUILD.gn b/rtc_tools/BUILD.gn index 294cc5ae25..e84d0030d5 100644 --- a/rtc_tools/BUILD.gn +++ b/rtc_tools/BUILD.gn @@ -102,6 +102,7 @@ rtc_executable("frame_analyzer") { ":command_line_parser", ":video_file_reader", ":video_quality_analysis", + "../rtc_base:stringutils", "../test:perf_test", ] } diff --git a/rtc_tools/frame_analyzer/frame_analyzer.cc b/rtc_tools/frame_analyzer/frame_analyzer.cc index fd0d488c3b..aab275891e 100644 --- a/rtc_tools/frame_analyzer/frame_analyzer.cc +++ b/rtc_tools/frame_analyzer/frame_analyzer.cc @@ -15,7 +15,9 @@ #include #include +#include "rtc_base/stringutils.h" #include "rtc_tools/frame_analyzer/video_quality_analysis.h" +#include "rtc_tools/frame_analyzer/video_temporal_aligner.h" #include "rtc_tools/simple_command_line_parser.h" #include "rtc_tools/video_file_reader.h" #include "test/testsupport/perf_test.h" @@ -24,22 +26,16 @@ * A command line tool running PSNR and SSIM on a reference video and a test * video. The test video is a record of the reference video which can start at * an arbitrary point. It is possible that there will be repeated frames or - * skipped frames as well. In order to have a way to compare corresponding - * frames from the two videos, two stats files should be provided. One for the - * reference video and one for the test video. The stats file - * is a text file assumed to be in the format: - * frame_xxxx yyyy where xxxx is the frame number in and yyyy is the - * corresponding barcode. The video files should be 1420 YUV videos. - * The tool prints the result to standard output in the Chromium perf format: + * skipped frames as well. The video files should be I420 .y4m or .yuv videos. + * If both files are .y4m, it's not needed to specify width/height. The tool + * prints the result to standard output in the Chromium perf format: * RESULT :