CPC H04N 21/26258 (2013.01) [H04N 21/23895 (2013.01); H04N 21/4344 (2013.01); H04N 21/8456 (2013.01)] | 20 Claims |
1. A method comprising:
at a device including a processor and a non-transitory memory:
demultiplexing a broadcast stream to a plurality of streams including a first stream and a second stream;
identifying a first presentation time range of a first segment, wherein the first presentation time range starts before a random access point in the first stream;
identifying a second presentation time range starting after the first presentation time range;
identifying an audio frame in the second stream having an audio presentation timestamp ahead of a video presentation timestamp of the random access point;
identifying one or more video frames subsequent to the random access point in the first stream based on video presentation timestamps, a last frame decoding timestamp of a last video frame in the first presentation time range, and a first frame decoding timestamp of a first video frame in the second presentation time range;
capturing audio frames from the second stream within the first presentation time range; and
packaging the first segment having the first presentation time range, including the random access point, the one or more video frames, the audio frame, and the audio frames.
|