Packetizing the Dolby AC-4 bitstream
A multiplexer packetizes only one raw AC-4 frame as an MP4 sample.
About this task
A seamless switch can be accomplished only at a random access point. The first sample of each segment must contain a random access point. A Dolby AC-4 elementary stream contains I‑frames to indicate random access points. Similar to the length of GOP for video streams, the I-frame interval for a Dolby AC-4 stream indicates the number of frames between two I‑frames.
The multiplexer must ensure that the first MP4 sample of each Dolby AC-4 media segment is an I-frame. A Dolby AC-4 media segment may contain one or more random access points.