{'fraction_non_alphanumeric': 0.019042437431991296, 'fraction_numerical': 0.009793253536452665, 'mean_word_length': 5.069306930693069, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Sub-picture based rate control algorithm for achieving real time encoding and improved video quality for H.264 HD encoder on embedded video SOCs

In this paper we present a rate control algorithm to control the encoded picture size in a video sequence within a specified maximum limit. The need to control the encoded picture size arises in several video applications; (i) video conferencing to ensure the glass to glass delay is within acceptable conversational delay, (ii) video encoders complying with H.241 MTU packetization constraints to ensure that for all pictures real-time encoding can be achieved. The proposed rate control algorithm adjusts the quantization scale at the end of every row in the video sequence. Bits consumed by the already encoded macroblocks are monitored and the quantization scale is increased if the bits consumed are more than the average bits per macroblock as determined by the maximum encoded picture constraint. It is shown that in a video encoder complying with H.241 MTU packetization constraints the picture encoding time does not always meet the real-time encoding constraint. However, by using the proposed rate control algorithm in the video encoder (complying with H.241 MTU packetization constraints) it is shown that the encoding time for all pictures always meets the real-time constraint. Additionally, it is also shown that using the proposed rate control enables improvement in overall video quality. For sequence #3 the PSNR was increased by 3.8 dB and the DMOS was decreased by 44 points when the proposed rate control algorithm was used compared to the previous rate control algorithm indicating significant video quality improvements1. Thus with our proposed algorithm the dual requirements of (i) real-time encoding and (ii) improved video quality, are both simultaneously achieved.