A method to support random access of background frames in ps stream and streaming media
A random access, streaming media technology, applied in the field of video codec system layer, can solve problems such as low efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a flow chart of a random access method for a PS stream provided by an embodiment of the present invention. The PS stream random access method provided in this embodiment includes:
[0028] Step 1, point the file pointer to the corresponding position in the PS stream file at the time point of random access, and record this position as the starting position;
[0029] Specifically, a possible situation is that when a user chooses to randomly access a video at a certain time point, he first roughly points the pointer to a certain position in the file according to the time point. A possible method is that the length of the PS stream video is 90 minutes, the user wants to randomly access the video at the 45-minute moment. At this point, at first point the file pointer to the middle position (45 / 90=0.5) of the file, then search for packet elementary stream (PES) packets near this position, parse the PES packet to obtain PTS (presentation_time_stamp) informatio...
Embodiment 2
[0039] figure 2 It is a schematic diagram of a scene sample box in a streaming media file. The streaming media file scene sample box described in this embodiment includes:
[0040] The scene sample box includes sample numbers of scene frames (scene samples) in the entire streaming media file. Specifically, the size indicates the number of bytes of the box; the type of the box is Scene sample box; the version indicates the version of the box; the value of the flag is 0 here; the number of entries indicates the number of Scenesample; each Scenesample corresponds to a background frame The serial number of the sample.
[0041] One possible situation is to scan the ES (element stream) stream file when making a streaming media file. If a background frame is scanned, write the sample number of the background frame into the table in the scene sample box and record the background frame The serial number of the sample.
Embodiment 3
[0043] image 3 It is a schematic flow diagram of a method for performing random access in streaming media files. The method for random accessing streaming media files provided in this embodiment includes:
[0044] Step 1, determine the sample number at a given time;
[0045] Specifically, given a time point, get the time corresponding to this video, assuming that the corresponding video time is 600. Through the time to sample box, we get the duration of the sample is 40, so we need to find the 600th / 40=15+1=16 samples.
[0046] Step 2, check the sync sample box to find the key frame sample after the sample number, which is recorded as sample1;
[0047] Specifically, the sample sequence number of each key frame (S frame in the background frame technology) is recorded in the sync sample box. Find the sample value that is greater than the minimum sample number of the sample in step 1 among these serial numbers, and this key frame sample is recorded as sample1.
[0048] Step...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


