The techniques and mechanisms described herein are directed at
transmitting elementary streams in a broadcast environment. The
mechanisms provide a buffer controller and packet scheduler that allow a
media format to be transmitted through the broadcasting environment in a
manner resulting in a low channel switch delay. A buffer-fullness
indicator allows the operation with various types of decoders. A lower
bound and an upper bound are calculated for each frame within the
elementary stream. The lower bound corresponds to an earliest time for
sending the frame without causing an overflow condition within a decoder
buffer. The upper bound corresponds to a latest time for sending the
frame without causing an underflow condition within the decoder buffer. A
send time is then scheduled based on the lower bound and the upper bound
that determines when a packet associated with the frame is transmitted
over a channel in a broadcast environment.