{'fraction_non_alphanumeric': 0.027413587604290822, 'fraction_numerical': 0.004767580452920143, 'mean_word_length': 5.0, '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}}
A versatile multiplexing algorithm exclusively based on the MPEG-2 systems layer

The paper introduces an algorithm to multiplex stored MPEG-2 PES (packetized elementary streams) into one SPTS (single program transport stream) regardless of the PES type or bitrate. The algorithm is devised to comply with the MPEG-2 standard STD (system target decoder). In order to support all available levels and profiles, the STD buffer lengths are parametrized and a maximum output bitrate can be established. To check the validity of the algorithm, a simulator has been implemented in a high level functional language. To prove its usefulness, a MPEG-2 PS (program stream) to TS (transport stream) converter was implemented in C using this algorithm. The paper focuses on the algorithm description and shows some results obtained with the simulator.