# US 2014/0156864 A1 · Multimedia stream buffer and output method and multimedia stream buffer module

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0156864 A1
- Document ID: US20140156864A1
- Status: Published application
- Kind: A1
- Application number: 14/026,773
- Filed: 2013-09-13
- Published: 2014-06-05
- Earliest claimed: 2012-12-05
- Assignees: Industrial Technology Research Institute
- Applicants: Industrial Technology Research Institute
- Inventors: Yi-Yu SU; Ching-Chun KAO
- Web page: https://patentgrep.com/patent/US20140156864A1

## CPC

- H04L 65/80: Responding to QoS
- H04L 65/612: for unicast
- H04N 21/44004: {involving video buffer management, e.g. video decoder buffer or video display buffer}
- H04N 7/173: with two-way working, e.g. subscriber sending a programme selection signal
- H04N 21/8547: involving timestamps for synchronizing content
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A buffer and output method and a buffer module for a multimedia stream are provided, wherein multimedia stream packets are received and stored into a first buffer, and when an actual remaining time calculated according to an accumulated idle time and a buffer time, is greater than a remaining time threshold value, following steps are performed. A first present time is read, and a sleep instruction is executed, so as to wait for a preset idle time. A second present time is read, and an actual idle time different from the preset idle time is calculated according to the first present time and the second present time. A part of buffer units are enabled according to the accumulated idle time accumulated according to the actual idle time, to output the stored multimedia stream packets to a second buffer of a player.

## Claims

### Claim 1

A multimedia stream buffer and output method, comprising:
receiving a plurality of multimedia stream packets, and storing the multimedia stream packets into a first buffer, the first buffer corresponding to a buffer time, and the first buffer being divided into a plurality of buffer units according to a time unit;
calculating an actual remaining time according to an accumulated idle time and the buffer time; and
when the actual remaining time is greater than a remaining time threshold value, performing the following steps:
reading a first present time and executing a sleep instruction, so as to wait for a preset idle time;
reading a second present time, and calculating an actual idle time according to the first present time and the second present time, the actual idle time being different from the preset idle time;
accumulating the accumulated idle time according to the actual idle time; and
enabling a part of the buffer units according to the accumulated idle time to output the stored multimedia stream packets to a second buffer of a player.

### Claim 2 (depends on 1)

The multimedia stream buffer and output method according to claim 1, wherein the step of enabling the part of the buffer units to output the stored multimedia stream packets to the second buffer of the player comprises:
reading a timestamp of at least one multimedia stream packet in the part of the buffer units corresponding to the actual idle time; and
outputting the multimedia stream packet having the timestamp being smaller than the accumulated idle time, to the second buffer of the player.

### Claim 3 (depends on 1)

The multimedia stream buffer and output method according to claim 1, wherein the step of enabling the part of the buffer units to output the stored multimedia stream packets to the second buffer of the player according to the accumulated idle time comprises:
calculating a ratio between the accumulated idle time and the buffer time and taking the calculated ratio as an output ratio;
calculating a preset output number according to an amount of all the multimedia stream packets in the first buffer and according to the output ratio; and
enabling the part of the buffer units to output the stored multimedia stream packets to the second buffer of the player according to the preset output number.

### Claim 4 (depends on 1)

The multimedia stream buffer and output method according to claim 1, further comprising:
when the actual remaining time is smaller than or equal to the remaining time threshold value, enabling the rest of the remaining buffer units in the first buffer to output the stored multimedia stream packets to the second buffer of the player.

### Claim 5 (depends on 1)

The multimedia stream buffer and output method according to claim 1, wherein the multimedia stream is received from a multimedia server or received from a Peer to Peer (P2P) node through a P2P technology.

### Claim 6 (depends on 1)

The multimedia stream buffer and output method according to claim 1, wherein the first buffer and the player are disposed in an electronic device.

### Claim 7 (depends on 1)

The multimedia stream buffer and output method according to claim 1, wherein the first buffer is disposed at a near-end node.

### Claim 8 (depends on 1)

The multimedia stream buffer and output method according to claim 1, wherein payloads of the multimedia stream packets belong to a high definition video.

### Claim 9 (depends on 1)

The multimedia stream buffer and output method according to claim 1, wherein the preset idle time is N times of the time unit, and N is a positive integer greater than or equal to 2.

### Claim 10

A multimedia stream buffer module, comprising:
a first buffer, for storing a plurality of multimedia stream packets, the first buffer corresponding to a buffer time, and the first buffer being divided into a plurality of buffer units according to a time unit;
a controller, used for performing following steps:
receiving the multimedia stream packets and storing the multimedia stream packets into the first buffer;
calculating an actual remaining time according to an accumulated idle time and the buffer time; and
when the actual remaining time is greater than a remaining time threshold value, performing following steps:
reading a first present time and executing a sleep instruction, so as to wait for a preset idle time;
reading a second present time, and calculating an actual idle time according to the first present time and the second present time, the actual idle time being different from the preset idle time;
accumulating the accumulated idle time according to the actual idle time; and
enabling a part of the buffer units according to the accumulated idle time to output the stored multimedia stream packets to a second buffer of a player.

### Claim 11 (depends on 10)

The multimedia stream buffer module according to claim 10, wherein in the step of enabling the part of the buffer units to output the stored multimedia stream packets to the second buffer of the player according to the accumulated idle time, the controller performs following steps:
reading a timestamp of at least one multimedia stream packet in the part of the buffer units corresponding to the actual idle time; and
sending the multimedia stream packet having the timestamp smaller than the accumulated idle time, to the second buffer of the player.

### Claim 12 (depends on 10)

The multimedia stream buffer module according to claim 10, wherein in the step of enabling the part of the buffer units to output the stored multimedia stream packets to the second buffer of the player according to the accumulated idle time, the controller performs following steps:
calculating a ratio between the accumulated idle time and the buffer time and taking the calculated ratio as an output ratio;
calculating a preset output number according to an amount of all the multimedia stream packets in the first buffer and according to the output ratio; and
enabling the part of the buffer units according to the preset output number to output the stored multimedia stream packets to the second buffer of the player.

### Claim 13 (depends on 10)

The multimedia stream buffer module according to claim 10, wherein when the actual remaining time is smaller than or equal to the remaining time threshold value, the controller enables the rest of the buffer units in the first buffer to output the stored multimedia stream packets to the second buffer of the player.

### Claim 14 (depends on 10)

The multimedia stream buffer module according to claim 10, wherein the multimedia stream is received from a multimedia server or received from a Peer to Peer (P2P) node through a P2P technology.

### Claim 15 (depends on 10)

The multimedia stream buffer module according to claim 10, wherein the multimedia stream buffer module is disposed in an electronic device with the player.

### Claim 16 (depends on 10)

The multimedia stream buffer module according to claim 10, wherein the multimedia stream buffer module is disposed at a near-end node.

### Claim 17 (depends on 10)

The multimedia stream buffer module according to claim 10, wherein payloads of the multimedia stream packets belong to a high definition video.

### Claim 18 (depends on 10)

The multimedia stream buffer module according to claim 10, wherein the preset idle time is N times of the time unit, and N is a positive integer greater than or equal to 2.
