Patent ID: 7864805

Claim:
A method comprising: forming media packets from at least one kind of media information in a stream generator; generating a transmission schedule for said media packets to be transmitted in transmission frames; performing a first hypothetical decoding according to the transmission schedule comprising: buffering said media packets according to the transmission schedule to a first hypothetical decoding buffer for decapsulation of multiprotocol encapsulation frames carrying error correction data from the media packets and for virtual forward error correction decoding the multiprotocol encapsulation frames carrying error correction data to form datagrams; and outputting datagrams from the first hypothetical decoding buffer on the transmission frame basis; performing a second hypothetical decoding comprising: buffering datagrams output from the first hypothetical decoding buffer to a second hypothetical decoding buffer for decapsulation of real time protocol packets from the datagrams and smoothing out data rate variations caused by bursty output of the virtual forward error correction decoding; controlling the buffer occupancy level of the first hypothetical decoding buffer to ensure that the buffer occupancy level of the first hypothetical decoding buffer shall not exceed a first value; and controlling the buffer occupancy level of the second hypothetical decoding buffer to ensure that the buffer occupancy level of the second hypothetical decoding buffer shall not exceed a second value.