Method and an apparatus for stream conversion a method and an apparatus for data recording and data recording medium
First Claim
1. A stream conversion apparatus for converting a first stream of multiplexed video data and audio data recorded to a recording medium to a second stream, the first stream having a structure for storing data segmented in first blocks, the second stream having a structure for storing data segmented in second blocks, the maximum data size of the first and second blocks being different, wherein the first stream format is a constrained format for conversion to the second stream, with the constrained format, a specific number of consecutive first blocks in the first stream are managed as a unit (Multiplexing Unit), the specific number is set so that a total amount of data stored in the unit does not exceed an amount of data stored to one second block, and all data stored in the same unit are the same video stream or the same audio stream, an input start time to a system decoder of a destination second block to which the stream is converted is the same as the later one of a first candidate time and a second candidate time, the first candidate time being the input start time to the system decoder of a source unit being converted, the second candidate time being the time at which input to the system decoder of the second block immediately before the destination second block to which the source unit is converted ends, the recording medium also records a flag indicating whether the recorded first stream is recorded in the constrained format, the stream conversion system comprises:
- a reading section operable to read the first stream from the recording medium;
a conversion section operable to convert the read first stream to a second stream; and
a recording section operable to record the converted second stream to the recording medium; and
the conversion section references the flag to determine if the format of the first stream is the constrained format, and when the first stream determined to be recorded using the constrained format, converts, by unit, the first blocks composing the unit to one second block without changing the multiplexing order of the first blocks, and selects the later one of the first and second candidate times as the time stamp information of the converted second block to set the decoder input start time of the second block.
1 Assignment
0 Petitions
Accused Products
Abstract
In a recording medium storing MPEG stream, flag information (encode_condition) indicating that the stream is recorded in a format enabling easily the first stream (MPEG transport stream) to be converted into the second stream (MPEG program stream) is provided. Such a flag information is included in Tip packet which is a control packet, in the medium. Thus it can easily determine whether the data is recorded in this format without analysis of data stored in the recording medium.
-
Citations
9 Claims
-
1. A stream conversion apparatus for converting a first stream of multiplexed video data and audio data recorded to a recording medium to a second stream, the first stream having a structure for storing data segmented in first blocks, the second stream having a structure for storing data segmented in second blocks, the maximum data size of the first and second blocks being different, wherein the first stream format is a constrained format for conversion to the second stream,
with the constrained format, a specific number of consecutive first blocks in the first stream are managed as a unit (Multiplexing Unit), the specific number is set so that a total amount of data stored in the unit does not exceed an amount of data stored to one second block, and all data stored in the same unit are the same video stream or the same audio stream, an input start time to a system decoder of a destination second block to which the stream is converted is the same as the later one of a first candidate time and a second candidate time, the first candidate time being the input start time to the system decoder of a source unit being converted, the second candidate time being the time at which input to the system decoder of the second block immediately before the destination second block to which the source unit is converted ends, the recording medium also records a flag indicating whether the recorded first stream is recorded in the constrained format, the stream conversion system comprises: -
a reading section operable to read the first stream from the recording medium;
a conversion section operable to convert the read first stream to a second stream; and
a recording section operable to record the converted second stream to the recording medium; and
the conversion section references the flag to determine if the format of the first stream is the constrained format, and when the first stream determined to be recorded using the constrained format, converts, by unit, the first blocks composing the unit to one second block without changing the multiplexing order of the first blocks, and selects the later one of the first and second candidate times as the time stamp information of the converted second block to set the decoder input start time of the second block. - View Dependent Claims (2, 3)
-
-
4. A recording apparatus for multiplexing video information and audio information to record the information to a recording medium in a format enabling conversion from a first stream to a second stream, the first stream having a structure for storing data segmented in first blocks, the second stream having a structure for storing data segmented in second blocks, the maximum data size of the first and second blocks being different, wherein
with the format, a specific number of consecutive first blocks in the first stream are managed as a unit (Multiplexing Unit), the specific number is set so that a total amount of data stored in the unit does not exceed an amount of data stored to one second block, and all data stored in the same unit are the same video stream or the same audio stream, a plurality of consecutive units including video data by decode unit in the first stream are managed as a capsule in which a control block is inserted, the control block stores a flag indicating if the recording format of the first stream is the constrained format, an input start time to a system decoder of a destination second block to which the stream is converted is the same as the later one of a first candidate time and a second candidate time, the first candidate time being the input start time to the system decoder of a source unit being converted, and the second candidate time being the time at which input to the system decoder of the second block immediately before the destination second block to which the source unit is converted ends, the first stream is converted to the second stream by converting, by unit, the first blocks composing the unit to one second block without changing the multiplexing order of the first blocks, and selecting the later one of the first and second candidate times as the time stamp information of the converted second block to set the decoder input start time of the second block; the recording apparatus comprises;
an encoding section operable to encode the video information and audio information to be recorded to the first stream according to the format;
a recording section operable to record the encoded first stream to the recording medium; and
a control section operable to control the encoding section and recording section, the control section anticipates the second stream converted from the encoded first stream when encoding the first stream, and then encodes the first stream so that at least one of a buffer underflow and buffer overflow occurs in neither the encoded first stream or the anticipated second stream. - View Dependent Claims (5)
-
6. A recording medium for recording video data and audio data multiplexed in a format enabling converting a first stream to a second stream, the first stream having a structure for storing data segmented in first blocks, the second stream having a structure for storing data segmented in second blocks, the maximum data size of the first and second blocks being different, wherein
with the format, a specific number of consecutive first blocks in the first stream are managed as a unit (Multiplexing Unit), the specific number is set so that a total amount of data stored in the unit does not exceed an amount of data stored to one second block, and all data stored in the same unit are the same video stream or the same audio stream, a plurality of consecutive units including video data by decode unit in the first stream are managed as a capsule in which a control block is inserted, the control block stores a flag indicating if the recording format of the first stream is the constrained format, an input start time to a system decoder of a destination second block to which the stream is converted is the same as the later one of a first candidate time and a second candidate time, the first candidate time being the input start time to a system decoder of a source unit being converted, and the second candidate time being the time at which input to the system decoder of the second block immediately before the destination second block to which the source unit is converted ends, the first stream is converted to the second stream by converting, by unit, the first blocks composing the unit to one second block without changing the multiplexing order of the first blocks, and selecting the later one of the first and second candidate times as the time stamp information of the converted second block to set the decoder input start time of the second block.
-
7. A stream conversion method for converting a first stream of multiplexed video data and audio data recorded to a recording medium to a second stream, the first stream having a structure for storing data segmented in first blocks, the second stream having a structure for storing data segmented in second blocks, the maximum data size of the first and second blocks being different, wherein
the first stream format is a constrained format for conversion to the second stream, with the constrained format, a specific number of consecutive first blocks in the first stream are managed as a unit (Multiplexing Unit), the specific number is set so that a total amount of data stored in the multiplexing unit does not exceed an amount of data stored to one second block, and all data stored in the same unit are the same video stream or the same audio stream, an input start time to a system decoder of a destination second block to which the stream is converted is the same as the later one of a first candidate time and a second candidate time, the first candidate time being the input start time to the system decoder of a source unit being converted, the second candidate time being the time at which input to the system decoder of the second block immediately before the destination second block to which the source unit is converted ends, the recording medium also records a flag indicating whether the recorded first stream is recorded in the constrained format, the stream conversion method comprises referencing the flag to determine the format of the first stream in order to convert the first stream to the second stream, when the format of the first stream is the constrained format, converting, by unit, the first blocks composing the unit to one second block without changing the multiplexing order of the first blocks, and selecting the later one of the first and second candidate times as the time stamp information of the converted second block to set the decoder input start time of the second block.
-
8. A recording method for multiplexing video information and audio information to record the information to a recording medium in a format enabling conversion from a first stream to a second stream, the first stream having a structure for storing data segmented in first blocks, the second stream having a structure for storing data segmented in second blocks, the maximum data size of the first and second blocks being different, wherein
with the format, a specific number of consecutive first blocks in the first stream are managed as a unit (Multiplexing Unit), the specific number is set so that a total amount of data stored in the unit does not exceed an amount of data stored to one second block, and all data stored in the same unit are the same video stream or the same audio stream, a plurality of consecutive units including video data by decode unit in the first stream are managed as a capsule in which a control block is inserted, the control block stores a flag indicating if the recording format of the first stream is the constrained format, an input start time to a system decoder of a destination second block to which the stream is converted is the same as the later one of a first candidate time and a second candidate time, the first candidate time being the input start time to the system decoder of the source unit being converted, and the second candidate time being the time at which input to the system decoder of the second block immediately before the destination second block to which the source unit is converted ends, the first stream is converted to the second stream by converting, by unit, the first blocks composing the unit to one second block without changing the multiplexing order of the first blocks, and selecting the later one of the first and second candidate times as the time stamp information of the converted second block to set the decoder input start time of the second block, the recording method comprises, when encoding the first stream, anticipating the second stream converted from the encoded first stream, and encoding the first stream so that at least one of buffer underflow or buffer overflow occurs in neither the encoded first stream or the anticipated second stream.
Specification