689cb300b5
The reason why it is so simple is that I wanted to get something into the project that people can use to compare different test runs easily. More functionality will come later. tools/python_charts/src/gviz_api.py is a copy of the Google visualization Python API available from http://google-visualization-python.googlecode.com/svn/trunk/ Review URL: http://webrtc-codereview.appspot.com/257003 git-svn-id: http://webrtc.googlecode.com/svn/trunk@893 4adac7df-926f-26a2-2b94-8c16560cd09d
50 lines
5.2 KiB
Python
50 lines
5.2 KiB
Python
# Sample output from the video_quality_measurment program, included only for
|
|
# reference. Geneate your own by running with the --python flag and then change
|
|
# the filenames in main.py
|
|
test_configuration = [{'name': 'name', 'value': 'Quality test'},
|
|
{'name': 'description', 'value': ''},
|
|
{'name': 'test_number', 'value': '0'},
|
|
{'name': 'input_filename', 'value': 'foreman_cif.yuv'},
|
|
{'name': 'output_filename', 'value': 'foreman_cif_out.yuv'},
|
|
{'name': 'output_dir', 'value': '.'},
|
|
{'name': 'packet_size_in_bytes', 'value': '1500'},
|
|
{'name': 'max_payload_size_in_bytes', 'value': '1440'},
|
|
{'name': 'packet_loss_mode', 'value': 'Uniform'},
|
|
{'name': 'packet_loss_probability', 'value': '0.000000'},
|
|
{'name': 'packet_loss_burst_length', 'value': '1'},
|
|
{'name': 'exclude_frame_types', 'value': 'ExcludeOnlyFirstKeyFrame'},
|
|
{'name': 'frame_length_in_bytes', 'value': '152064'},
|
|
{'name': 'use_single_core', 'value': 'False'},
|
|
{'name': 'keyframe_interval;', 'value': '0'},
|
|
{'name': 'video_codec_type', 'value': 'VP8'},
|
|
{'name': 'width', 'value': '352'},
|
|
{'name': 'height', 'value': '288'},
|
|
{'name': 'bit_rate_in_kbps', 'value': '500'},
|
|
]
|
|
frame_data_types = {'frame_number': ('number', 'Frame number'),
|
|
'encoding_successful': ('boolean', 'Encoding successful?'),
|
|
'decoding_successful': ('boolean', 'Decoding successful?'),
|
|
'encode_time': ('number', 'Encode time (us)'),
|
|
'decode_time': ('number', 'Decode time (us)'),
|
|
'encode_return_code': ('number', 'Encode return code'),
|
|
'decode_return_code': ('number', 'Decode return code'),
|
|
'bit_rate': ('number', 'Bit rate (kbps)'),
|
|
'encoded_frame_length': ('number', 'Encoded frame length (bytes)'),
|
|
'frame_type': ('string', 'Frame type'),
|
|
'packets_dropped': ('number', 'Packets dropped'),
|
|
'total_packets': ('number', 'Total packets'),
|
|
'ssim': ('number', 'SSIM'),
|
|
'psnr': ('number', 'PSNR (dB)'),
|
|
}
|
|
frame_data = [{'frame_number': 0, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 94676, 'decode_time': 37942, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 1098, 'encoded_frame_length': 4579, 'frame_type': 'Other', 'packets_dropped': 0, 'total_packets': 4, 'ssim': 0.910364, 'psnr': 35.067258},
|
|
{'frame_number': 1, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 244007, 'decode_time': 39421, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 306, 'encoded_frame_length': 1277, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.911859, 'psnr': 35.115193},
|
|
{'frame_number': 2, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 240508, 'decode_time': 38918, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 330, 'encoded_frame_length': 1379, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.913597, 'psnr': 35.181604},
|
|
{'frame_number': 3, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 243449, 'decode_time': 39664, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 298, 'encoded_frame_length': 1242, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.912378, 'psnr': 35.164710},
|
|
{'frame_number': 4, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 248024, 'decode_time': 39115, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 332, 'encoded_frame_length': 1385, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.911471, 'psnr': 35.109488},
|
|
{'frame_number': 5, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 246910, 'decode_time': 39146, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 416, 'encoded_frame_length': 1734, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 2, 'ssim': 0.915231, 'psnr': 35.392300},
|
|
{'frame_number': 6, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 242953, 'decode_time': 38827, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 279, 'encoded_frame_length': 1165, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.916130, 'psnr': 35.452889},
|
|
{'frame_number': 7, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 247343, 'decode_time': 41429, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 393, 'encoded_frame_length': 1639, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 2, 'ssim': 0.919356, 'psnr': 35.647128},
|
|
{'frame_number': 8, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 249529, 'decode_time': 40329, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 487, 'encoded_frame_length': 2033, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 2, 'ssim': 0.924705, 'psnr': 36.179837},
|
|
{'frame_number': 9, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 249408, 'decode_time': 41716, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 583, 'encoded_frame_length': 2433, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 2, 'ssim': 0.928433, 'psnr': 36.589875},
|
|
]
|