1# Sample output from the video_quality_measurment program, included only for 2# reference. Geneate your own by running with the --python flag and then change 3# the filenames in main.py 4 5test_configuration = [{'name': 'name', 'value': 'VP8 software test'}, 6{'name': 'description', 'value': ''}, 7{'name': 'test_number', 'value': '0'}, 8{'name': 'input_filename', 'value': 'foreman_cif.yuv'}, 9{'name': 'output_filename', 'value': 'foreman_cif_out.yuv'}, 10{'name': 'output_dir', 'value': '.'}, 11{'name': 'packet_size_in_bytes', 'value': '1500'}, 12{'name': 'max_payload_size_in_bytes', 'value': '1440'}, 13{'name': 'packet_loss_mode', 'value': 'Uniform'}, 14{'name': 'packet_loss_probability', 'value': '0.000000'}, 15{'name': 'packet_loss_burst_length', 'value': '1'}, 16{'name': 'exclude_frame_types', 'value': 'ExcludeOnlyFirstKeyFrame'}, 17{'name': 'frame_length_in_bytes', 'value': '152064'}, 18{'name': 'use_single_core', 'value': 'False'}, 19{'name': 'keyframe_interval;', 'value': '0'}, 20{'name': 'video_codec_type', 'value': 'VP8'}, 21{'name': 'width', 'value': '352'}, 22{'name': 'height', 'value': '288'}, 23{'name': 'bit_rate_in_kbps', 'value': '500'}, 24] 25frame_data_types = {'frame_number': ('number', 'Frame number'), 26'encoding_successful': ('boolean', 'Encoding successful?'), 27'decoding_successful': ('boolean', 'Decoding successful?'), 28'encode_time': ('number', 'Encode time (us)'), 29'decode_time': ('number', 'Decode time (us)'), 30'encode_return_code': ('number', 'Encode return code'), 31'decode_return_code': ('number', 'Decode return code'), 32'bit_rate': ('number', 'Bit rate (kbps)'), 33'encoded_frame_length': ('number', 'Encoded frame length (bytes)'), 34'frame_type': ('string', 'Frame type'), 35'packets_dropped': ('number', 'Packets dropped'), 36'total_packets': ('number', 'Total packets'), 37'ssim': ('number', 'SSIM'), 38'psnr': ('number', 'PSNR (dB)'), 39} 40frame_data = [{'frame_number': 0, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 12427, 'decode_time': 4403, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 2270, 'encoded_frame_length': 9459, 'frame_type': 'Other', 'packets_dropped': 0, 'total_packets': 7, 'ssim': 0.947050, 'psnr': 38.332820}, 41{'frame_number': 1, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 3292, 'decode_time': 821, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 88, 'encoded_frame_length': 368, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.927272, 'psnr': 35.883510}, 42{'frame_number': 2, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 4295, 'decode_time': 902, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 130, 'encoded_frame_length': 544, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.920539, 'psnr': 35.457107}, 43{'frame_number': 3, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 3880, 'decode_time': 767, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 171, 'encoded_frame_length': 714, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.917434, 'psnr': 35.389298}, 44{'frame_number': 4, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 4471, 'decode_time': 909, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 248, 'encoded_frame_length': 1035, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.918892, 'psnr': 35.570229}, 45{'frame_number': 5, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 4447, 'decode_time': 976, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 269, 'encoded_frame_length': 1123, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.920609, 'psnr': 35.769663}, 46{'frame_number': 6, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 4432, 'decode_time': 891, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 271, 'encoded_frame_length': 1132, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 1, 'ssim': 0.922672, 'psnr': 35.913519}, 47{'frame_number': 7, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 5026, 'decode_time': 1068, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 366, 'encoded_frame_length': 1529, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 2, 'ssim': 0.925505, 'psnr': 36.246713}, 48{'frame_number': 8, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 4877, 'decode_time': 1051, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 369, 'encoded_frame_length': 1538, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 2, 'ssim': 0.926122, 'psnr': 36.305984}, 49{'frame_number': 9, 'encoding_successful': True , 'decoding_successful': True , 'encode_time': 4712, 'decode_time': 1087, 'encode_return_code': 0, 'decode_return_code': 0, 'bit_rate': 406, 'encoded_frame_length': 1692, 'frame_type': 'Delta', 'packets_dropped': 0, 'total_packets': 2, 'ssim': 0.927183, 'psnr': 36.379735}, 50] 51