diff --git a/webrtc/tools/compare_videos.py b/webrtc/tools/compare_videos.py index 0e0a4f6592..afdd6a467b 100755 --- a/webrtc/tools/compare_videos.py +++ b/webrtc/tools/compare_videos.py @@ -24,10 +24,13 @@ def _ParseArgs(): usage = 'usage: %prog [options]' parser = optparse.OptionParser(usage=usage) + parser.add_option('--label', type='string', default="MY_TEST", + help=('Label of the test, used to identify different ' + 'tests. Default: %default')) parser.add_option('--ref_video', type='string', help='Reference video to compare with (YUV).') parser.add_option('--test_video', type='string', - help=('Test video to be comared with the reference ' + help=('Test video to be compared with the reference ' 'video (YUV).')) parser.add_option('--frame_analyzer', type='string', help='Path to the frame analyzer executable.') @@ -94,6 +97,7 @@ def main(): # Run frame analyzer to compare the videos and print output. cmd = [ options.frame_analyzer, + '--label=%s' % options.label, '--reference_file=%s' % options.ref_video, '--test_file=%s' % options.test_video, '--stats_file=%s' % options.stats_file, diff --git a/webrtc/tools/frame_analyzer/frame_analyzer.cc b/webrtc/tools/frame_analyzer/frame_analyzer.cc index d368379ed7..aed956562b 100644 --- a/webrtc/tools/frame_analyzer/frame_analyzer.cc +++ b/webrtc/tools/frame_analyzer/frame_analyzer.cc @@ -29,19 +29,15 @@ * where xxxx is the frame number in the test video and yyyy is the * corresponding frame number in the original video. * The video files should be 1420 YUV videos. - * The tool prints the result to the standard output in the following format: - * BSTATS - * ; ; .... - * ESTATS - * Unique_frames_count: - * Max_repeated: - * Max_skipped + * The tool prints the result to standard output in the Chromium perf format: + * RESULT :