# US 2009/0265478 A1 · Method and apparatus for data stream analysis and decoding apparatus

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

- Number: US 2009/0265478 A1
- Document ID: US20090265478A1
- Status: Published application
- Kind: A1
- Application number: 12/424,991
- Filed: 2009-04-16
- Published: 2009-10-22
- Earliest claimed: 2008-04-16
- Assignees: NEC Electronics Corporation
- Inventors: Masayuki IENAGA
- Web page: https://patentgrep.com/patent/US20090265478A1

## CPC

- H04N 21/2662: Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
- H04N 21/2389: Multiplex stream processing, e.g. multiplex stream encrypting
- H04N 21/4344: {Remultiplexing of multiplex streams, e.g. by modifying time stamps or remapping the packet identifiers}
- H04N 21/4385: Multiplex stream processing, e.g. multiplex stream decrypting
- H04N 21/44004: {involving video buffer management, e.g. video decoder buffer or video display buffer}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

If a variable length data stream is transmitted, ignoring a data alignment in a client using a network, the present invention provides a mechanism to analyze the data stream and generate a data stream that can be used by an existing AV equipment. A data stream analysis apparatus includes a buffer which receives and holds a part of a variable length data stream as input data, where the variable length data stream has header information and transfer information, a stream information holder which holds stream information regarding the data stream, and a data analyzer which analyzes the stream information and input data newly received, generates new stream information using the input data and the stream information if the header information cannot be obtained, stores the new stream information to the stream information holder, and outputs transfer information included in the input data if the header information is detected.

## Claims

### Claim 1

A data stream analysis apparatus comprising:
a buffer that receives and holds a part of a variable length data stream as input data, the variable length data stream having header information and transfer information;
a stream information holder that holds stream information regarding the data stream; and
a data analyzer that analyzes the stream information and input data newly received, generates new stream information using the input data and the stream information if the header information cannot be obtained, stores the new stream information to the stream information holder, and outputs transfer information included in the input data if the header information is detected.

### Claim 2 (depends on 1)

The data stream analysis apparatus according to claim 1, wherein the stream information holder holds at least one of fragment data which is at least a part of the input data and an amount of remaining information as the stream information, the amount of remaining information being obtained by subtracting an amount of information already output from the data analyzer from a total amount of information of the transfer information.

### Claim 3 (depends on 2)

The data stream analysis apparatus according to claim 2,
wherein the data analyzer searches for the header information from the input data if the amount of remaining information is zero and the data analyzer does not hold the fragment data, stores a part of the detected header information to the stream information holder as the stream information until the header information is obtained, and starts outputting the transfer information by obtaining a start position of the transfer information and the total amount of information from the header information after obtaining the header information, and
if the stream information holder holds the amount of remaining information, the data analyzer outputs the input data while updating the amount of remaining information.

### Claim 4 (depends on 2)

The data stream analysis apparatus according to claim 2,
wherein the data analyzer sequentially outputs input data, which received by the buffer, until the amount of remaining information becomes zero, and
if the amount of remaining information is not zero and unprocessed input data does not exist, the data analyzer repeats a process of outputting remaining transfer information in response to an input of the input data until the amount of remaining information becomes zero.

### Claim 5 (depends on 3)

The data stream analysis apparatus according to claim 3,
wherein the data analyzer sequentially outputs input data, which is input to the buffer, until the amount of remaining information becomes zero, and
if the amount of remaining information is not zero and the input data which is not processed does not exist, the data analyzer repeats a process of outputting remaining transfer information in response to an input of the input data until the amount of remaining information becomes zero.

### Claim 6 (depends on 2)

The data stream analysis apparatus according to claim 2, wherein the data analyzer searches for the header information again if the amount of remaining information becomes zero and the buffer holds unprocessed input data.

### Claim 7 (depends on 3)

The data stream analysis apparatus according to claim 3, wherein the data analyzer searches for the header information again if the amount of remaining information becomes zero and the buffer holds unprocessed input data.

### Claim 8 (depends on 4)

The data stream analysis apparatus according to claim 4, wherein the data analyzer searches for the header information again if the amount of remaining information becomes zero and the buffer holds unprocessed input data.

### Claim 9 (depends on 5)

The data stream analysis apparatus according to claim 5, wherein the data analyzer searches for the header information again if the amount of remaining information becomes zero and the buffer holds unprocessed input data.

### Claim 10 (depends on 1)

The data stream analysis apparatus according to claim 1, wherein the data analyzer selects information required for a data receiving device if the header information is detected, and outputs the information.

### Claim 11 (depends on 2)

The data stream analysis apparatus according to claim 2, wherein the data analyzer selects information required for a destination device if the header information is detected and outputs the information.

### Claim 12 (depends on 3)

The data stream analysis apparatus according to claim 3, wherein the data analyzer selects information required for a destination device if the header information is detected and outputs the information.

### Claim 13 (depends on 4)

The data stream analysis apparatus according to claim 4, wherein the data analyzer selects information required for a destination device if the header information is detected and outputs the information.

### Claim 14 (depends on 5)

The data stream analysis apparatus according to claim 5, wherein the data analyzer selects information required for a destination device if the header information is detected and outputs the information.

### Claim 15 (depends on 6)

The data stream analysis apparatus according to claim 6, wherein the data analyzer selects information required for a destination device if the header information is detected and outputs the information.

### Claim 16 (depends on 1)

A decoding apparatus comprising:
the data stream analysis apparatus according to claim 1;
a data converter that converts the transfer information into a fixed length stream, the transfer information being output from the data stream analysis apparatus;
a converted data buffer that stores the fixed length stream; and
a decoder that decodes the fixed length stream.

### Claim 17 (depends on 16)

The decoding apparatus according to claim 16, wherein the data analyzer outputs the detected header information and the transfer information, and
the data converter selects a format which can be processed by the decoder as the fixed length stream and converts the header information and the transfer information into a fixed length stream.

### Claim 18 (depends on 16)

The decoding apparatus according to claim 16, wherein the data stream analysis apparatus receives a data stream of MPEG (Moving Picture Experts Group) 1 format or MPEG2-PS format, and
the data converter converts data output from the data stream analysis apparatus into a TS packet and stores the TS packet to the converted data buffer.

### Claim 19 (depends on 17)

The decoding apparatus according to claim 17, wherein the data stream analysis apparatus receives a data stream of MPEG (Moving Picture Experts Group) 1 format or MPEG2-PS format, and
the data converter converts data output from the data stream analysis apparatus into a TS packet and stores the TS packet to the converted data buffer.

### Claim 20

A method for data stream analysis comprising:
inputting and holding a part of a variable length data stream in a buffer as input data, the variable length data stream having header information and transfer information;
holding stream information regarding the data stream which is extracted from input data in the past to a stream information holder;
analyzing the stream information and input data newly input,
generating stream information using the input data and the stream information if the header information cannot be detected to store the stream information in the stream information holder; and
outputting the transfer information included in the input data if the header information is detected.
