WO2009090728A1 - Media reproducer - Google Patents

Media reproducer Download PDF

Info

Publication number
WO2009090728A1
WO2009090728A1 PCT/JP2008/050352 JP2008050352W WO2009090728A1 WO 2009090728 A1 WO2009090728 A1 WO 2009090728A1 JP 2008050352 W JP2008050352 W JP 2008050352W WO 2009090728 A1 WO2009090728 A1 WO 2009090728A1
Authority
WO
WIPO (PCT)
Prior art keywords
media data
continuous media
value
stc
state
Prior art date
Application number
PCT/JP2008/050352
Other languages
French (fr)
Japanese (ja)
Inventor
Yasuaki Takimoto
Masahiro Abukawa
Shiyuu Murayama
Shinji Akatsu
Kazuma Kaneko
Original Assignee
Mitsubishi Electric Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corporation filed Critical Mitsubishi Electric Corporation
Priority to PCT/JP2008/050352 priority Critical patent/WO2009090728A1/en
Priority to JP2009549919A priority patent/JPWO2009090728A1/en
Publication of WO2009090728A1 publication Critical patent/WO2009090728A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations

Definitions

  • the present invention relates to a media playback apparatus such as an MPEG (Moving Picture Coding Experts Group) decoder.
  • MPEG Motion Picture Coding Experts Group
  • a PTS Presentation Timp Stamp
  • an STC System Time Clock
  • the conventional media playback device can repeat the same frame a predetermined number of times if the PTS value is larger than the STC value. Is repeatedly played back, and if the value of PTS is smaller than the value of STC, the same frame is skipped up to a predetermined number of times and played back. In this way, the conventional media reproducing apparatus executes the reproducing process so that the absolute value of the difference obtained by subtracting the STC value from the PTS value is within the predetermined threshold. This makes it possible to establish synchronization between the PTS value and the STC value and to decode the normal image sound (see, for example, Patent Document 1).
  • the playback when skipping or repeating within the predetermined number of times does not fall within the threshold, the playback is switched to asynchronous playback. For this reason, when the PTS value and the STC value are steadily far apart from each other, even if the relative relationship of PTS between media (video, audio, etc.) is normal, decoding is performed while maintaining synchronization between the media. There was a problem that it was not possible.
  • the media signal may cause overflow or underflow.
  • the present invention has been made to solve the above-described problems, and is time information that serves as a reference for synchronizing the value of time information (for example, PTS) indicating the presentation time of media data and the presentation time of the media data. It is an object of the present invention to obtain a media playback device that can play back with synchronization between media even when the value of (for example, STC) is constantly far apart.
  • time information for example, PTS
  • a media playback device includes a reference time playback unit that plays back a reference time that serves as a reference for synchronizing the presentation time of continuous media data to be played back, and a correction unit that corrects the reference time to generate a corrected reference time.
  • the reference time is corrected according to the storage status and the presentation time of the continuous media data stored in the media playback unit.
  • FIG. 1 is a block diagram showing the configuration of a media playback apparatus according to Embodiment 1 of the present invention, and shows an MPEG decoder conforming to the MPEG-2 standard as an example.
  • the MPEG decoder according to Embodiment 1 includes a Demux unit 1, an STC playback unit 2, an STC correction unit 3, a video decoder unit 4, and an audio decoder unit 5.
  • the Demux unit 1 is connected to an input signal line for inputting the MPEG-TS signal a from the outside, the STC reproduction unit 2, the audio decoder unit 4, and the video decoder unit 5.
  • the MPEG-TS signal a is continuous media data in which stream data of each medium (video, audio) is multiplexed.
  • the Demux unit 1 separates a PCR (Program Clock Reference) signal b, a video PES (Packetized Element Arty Stream) signal c, and an audio PES signal d from an MPEG-TS signal a input from the outside.
  • the PCR signal b is a signal indicating a reference time when the MPEG-TS signal a is encoded, and is sent from the Demux unit 1 to the STC reproduction unit 2.
  • the video PES signal c is a video encoded data signal to be reproduced, and is sent from the Demux unit 1 to the video decoder unit 4.
  • the audio PES signal d is an audio encoded data signal to be reproduced, and is sent from the Demux unit 1 to the audio decoder unit 5.
  • the STC playback unit (reference time playback unit) 2 is connected to the Demux unit 1 and the STC correction unit 3.
  • the STC reproduction unit 2 reproduces the STC signal e using the value of the PCR signal b input from the Demux unit 1.
  • a PLL (Phase Locked Loop) circuit is constructed as the STC reproducing unit 2, and the STC signal e is reproduced from the PCR signal b by this PLL circuit.
  • the STC signal e is a signal indicating a reference time for synchronization with the media playback start time.
  • the STC correction unit (correction unit) 3 is connected to the STC playback unit 2, the video decoder unit 4, and the audio decoder unit 5, respectively.
  • the STC correction unit 3 receives the STC signal e from the STC reproduction unit 2. Further, the STC correction unit 3 outputs the corrected STC signal f to the video decoder unit 4 and the audio decoder unit 5, while receiving the video storage status g from the video decoder unit 4 and the audio storage status h from the audio decoder unit 5. input.
  • the STC correction unit 3 calculates an offset by a determination process using the video accumulation state g, the audio accumulation state h, and the STC signal e. This determination process will be described later with reference to FIG.
  • the STC correction unit 3 obtains a corrected STC signal f (corrected STC) by adding the offset value to the value of the STC signal e (STC) according to the following equation (1).
  • the value of the corrected STC signal f becomes a reference time that serves as a reference for synchronizing the media playback start time used in the video decoder unit 4 and the audio decoder unit 5.
  • Correction STC STC + Offset (1)
  • the video decoder unit 4 generates a video storage status g composed of the storage amount of the video PES signal c stored in the buffer and the PTS value extracted from the first frame of the video PES signal c.
  • This video accumulation state g is information used for STC correction processing by the STC correction unit 3 and is fed back from the video decoder unit 4 to the STC correction unit 3.
  • the audio decoder unit (media playback unit) 5 is connected to the Demux unit 1 and the STC correction unit 3 and to an audio output signal line for outputting an audio signal j.
  • the audio decoder unit 5 includes a buffer that sequentially stores the audio PES signal d input from the Demux unit 1.
  • the audio decoder unit 5 decodes each audio frame in the audio PES signal d, and outputs the audio PES signal d to the buffer while the value of the PTS attached to each audio frame is smaller than the value of the corrected STC signal f. accumulate.
  • the audio decoder unit 5 outputs the decoding result as an audio signal j at a timing when the value of the PTS attached to each audio frame matches the value of the corrected STC signal f.
  • the audio decoder unit 5 generates an audio accumulation state h including the accumulation amount of the audio PES signal d accumulated in the buffer and the PTS value extracted from the first frame of the audio PES signal d.
  • the voice accumulation state h is information used for the STC correction process by the STC correction unit 3 and is fed back from the voice decoder unit 5 to the STC correction unit 3.
  • FIG. 2 is a flowchart showing the flow of STC correction processing by the STC correction unit in FIG. 1, and the correction processing of the STC signal e will be described in detail with reference to this drawing.
  • the STC correction unit 3 initializes an offset value used in the STC correction process according to the above equation (1) (step ST1).
  • Offset 0 is set.
  • the STC correction unit 3 determines whether or not there is an external reproduction end request, and if there is a request, ends the STC correction process (step ST1-1). If there is no request, the STC correction unit 3 determines whether or not the accumulation amount of the video PES signal c input from the video decoder unit 4 as the video accumulation state g is equal to or less than a predetermined threshold A1, and as the audio accumulation state h. It is determined whether or not the accumulated amount of the audio PES signal d input from the audio decoder unit 5 is equal to or less than a predetermined threshold A2. The STC correction unit 3 determines whether each buffer of the decoder units 4 and 5 is in a near overflow state according to the logical sum of these determination results (step ST2).
  • the threshold values A1 and A2 are obtained from the following formula (2) and the following formula (3), for example.
  • the storage capacity of the video PES is the storage capacity of the video PES signal c of the buffer in the video decoder unit 4.
  • the audio PES accumulative capacity is an accumulative capacity of the audio PES signal d in the buffer in the audio decoder unit 5.
  • A1 capacity of video PES storage ⁇ 0.1 (2)
  • A2 Accumulable capacity of voice PES ⁇ 0.1 (3)
  • step ST2 if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 2), the STC correction unit 3 performs step ST3. Move on to processing.
  • the logical sum is false when the accumulation amount of the video PES signal c exceeds the threshold value A1 and the accumulation amount of the audio PES signal d exceeds the threshold value A2. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the near overflow state.
  • step ST2 when the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 2), the STC correction unit 3 The process proceeds to step ST6.
  • the logical sum is true when the accumulated amount of one of the video PES signal c and the audio PES signal d is equal to or smaller than the threshold value, or the accumulated amount of the video PES signal c is equal to or smaller than the threshold value A1.
  • the accumulated amount of the audio PES signal d is equal to or less than the threshold value A2.
  • step ST3 the STC correction unit 3 determines whether or not the PTS value (PTS value extracted from the first frame of the video PES signal c) input from the video decoder unit 4 as the video accumulation status g is equal to or less than the value of the corrected STC signal f. Determine whether. Further, the STC correction unit 3 determines whether or not the PTS value (the PTS value extracted from the first frame of the audio PES signal d) input from the audio decoder unit 5 as the audio accumulation state h is equal to or less than the value of the correction STC signal f. judge. The STC correction unit 3 determines whether or not the reproduction start condition is satisfied according to the logical sum of these determination results. Note that the reproduction start condition refers to a case where the PTS values for the video PES signal c and the audio PES signal d match the value of the corrected STC signal f.
  • the STC correction unit 3 performs step ST2.
  • the logical sum is false because the PTS value for the video PES signal c exceeds the value of the corrected STC signal f, and the PTS value for the audio PES signal d exceeds the value of the corrected STC signal f. It is a case.
  • the time indicated by the value of the corrected STC signal f is ahead of the time indicated by the PTS value (STC advance state).
  • the STC correction unit 3 performs the process of step ST4.
  • the logical sum is true when the PTS value of one of the video PES signal c and the audio PES signal d is equal to or smaller than the value of the corrected STC signal f, or the PTS for the video PES signal c. This is a case where the value is equal to or smaller than the value of the corrected STC signal f and the PTS value for the audio PES signal d is equal to or smaller than the value of the corrected STC signal f.
  • the corrected STC signal f obtained by this STC correction process is output from the STC correction unit 3 to the video decoder unit 4 and the audio decoder unit 5.
  • the STC correction unit 3 When the logical sum of the determination results of the video PES signal c and the audio PES signal d is true in step ST3, the STC correction unit 3 has an accumulation amount of the video PES signal c in the video accumulation state g that is equal to or greater than a predetermined threshold B1. It is determined whether or not there is, and it is determined whether or not the accumulation amount of the audio PES signal d in the audio accumulation state h is equal to or greater than a predetermined threshold B2. The STC correction unit 3 determines whether or not each buffer of the decoder units 4 and 5 is in the near underflow state according to the logical sum value of these determination results (step ST4).
  • the threshold values B1 and B2 are obtained from the following formula (4) and the following formula (5), for example.
  • B1 Capacity of accumulation of video PES ⁇ 0.9 (4)
  • B2 Accumulable capacity of voice PES ⁇ 0.9 (5)
  • step ST4 when the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 2), the STC correction unit 3 performs step ST6.
  • the process proceeds to -1.
  • the logical sum is false when the accumulation amount of the video PES signal c is less than the threshold value B1 and the accumulation amount of the audio PES signal d is less than the threshold value B2. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the near underflow state.
  • step ST4 when the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 2), the STC correction unit 3 The process proceeds to step ST5.
  • the logical sum is true when the accumulated amount of one of the video PES signal c and the audio PES signal d is equal to or greater than the threshold value, or the accumulated amount of the video PES signal c is equal to or greater than the threshold value B1.
  • the accumulated amount of the audio PES signal d is greater than or equal to the threshold B2.
  • step ST5 the STC correction unit 3 performs an offset calculation process in the near underflow state of the buffer. Specifically, the STC correction unit 3 performs an operation according to the following formula (6) and the following formula (7) with respect to the smallest PTS value among the PTS value in the video accumulation situation g and the PTS value in the audio accumulation situation h. To calculate the offset (Offset). By adding this offset to the value of the STC signal e, a condition for delaying the start of reproduction in the decoder units 4 and 5 can be obtained. When the STC correction unit 3 obtains the offset in the near underflow state of the buffer, the STC correction unit 3 executes the processing from step ST2 with this offset value.
  • the assumed video PES input rate is an assumed input rate of the video PES signal c input to the video decoder unit 4, and is assumed from a transmission rate or the like according to the specification of the video PES signal c.
  • the assumed audio PES input rate is an input rate of an assumed audio PES signal d input to the audio decoder unit 5, and is assumed from a transmission rate or the like in the specification of the audio PES signal d.
  • Offset PTS ⁇ STC ⁇ (6)
  • (A1 / assumed video PES input rate + A2 / assumed audio PES input rate) / 2 ... (7)
  • an input rate measuring unit (not shown) for measuring the input rate of each medium (video, audio) is provided in the configuration of FIG. May be.
  • the measured video PES input rate is the input rate of the video PES signal c from the Demux unit 1 to the video decoder unit 4 measured by the input rate measuring unit.
  • the measured audio PES input rate is the input rate of the audio PES signal d from the Demux unit 1 to the audio decoder unit 5 measured by the input rate measuring unit.
  • (A1 / measurement video PES input rate + A2 / measurement audio PES input rate) / 2 ... (8)
  • step ST6-1 the STC correction unit 3 determines whether or not there is an external reproduction end request. If there is a request, the STC correction process ends. If there is no request, the STC correction unit 3 proceeds to step ST7 and determines whether or not the storage amount of the video PES signal c in the video storage state g is the storable capacity of the buffer of the video decoder unit 4, It is determined whether or not the accumulation amount of the audio PES signal d in the audio accumulation state h is the accumulation capacity of the buffer of the audio decoder unit 5. The STC correction unit 3 determines whether each buffer of the decoder units 4 and 5 is in an overflow state according to the logical sum value of these determination results.
  • the STC correction unit 3 performs step ST8. Transition to processing.
  • the logical sum is false when the accumulation amount of the video PES signal c does not reach the storable capacity and the accumulation amount of the audio PES signal d does not reach the storable capacity. is there. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in an overflow state.
  • step ST7 the STC correction unit 3 determines that the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 2).
  • the process proceeds to step ST9.
  • the logical sum is true when the accumulation amount of one of the video PES signal c and the audio PES signal d is the accumulation capacity or the accumulation amount of the video PES signal c is the accumulation. This is a case where the storage capacity is the capacity and the storage amount of the audio PES signal d is the storage capacity.
  • the STC correction unit 3 determines whether or not both buffers of the decoder units 4 and 5 are in an underflow state (step ST8). Specifically, the STC correction unit 3 determines whether or not the accumulation amount of the video PES signal c in the video accumulation situation g is 0, and the accumulation amount of the audio PES signal d in the audio accumulation situation h is 0. It is determined whether or not each buffer of the decoder units 4 and 5 is in an underflow state according to the logical sum value of these determination results.
  • the STC correction unit 3 performs step ST6- Return to the process of 1.
  • the logical sum is false when the accumulation amount of the video PES signal c is not zero and the accumulation amount of the audio PES signal d is not zero. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the underflow state.
  • step ST8 the STC correction unit 3 The process returns to step ST2.
  • the logical sum is true when the accumulation amount of one of the video PES signal c and the audio PES signal d is 0, or the accumulation amount of the video PES signal c is 0, and This is a case where the accumulated amount of the audio PES signal d is zero.
  • (B1 / measurement video PES input rate + B2 / measurement audio PES input rate) / 2 (12)
  • the STC correction unit 3 repeats the processing from step ST2 to step ST9 until the reproduction start condition is satisfied.
  • the corrected STC signal f obtained in this way is output from the STC correction unit 3 to the video decoder unit 4 and the audio decoder unit 5.
  • the video decoder unit 4 and the audio decoder unit 5 execute a reproduction process using the value of the corrected STC signal f, and output a video signal i and an audio signal j.
  • the STC reproduction unit 2 that reproduces the STC signal e serving as a reference for the synchronization of the PTS of the MPEG-TS signal data to be reproduced, and the STC signal e are corrected and corrected.
  • the STC correction unit 3 for generating the STC signal f and the MPEG-TS signal data are sequentially accumulated, and the MPEG-TS signal data is reproduced at the timing when the value of the corrected STC signal f and the PTS value of the MPEG-TS signal data are synchronized.
  • the STC correction unit 3 stores the continuous media data storage status in the video decoder unit 4 and the audio decoder unit 5 and the video decoder unit 4 and the audio decoder unit 5.
  • the STC signal e is corrected according to the value of the PTS of the MPEG-TS signal data being processed. By doing so, even if the PTS value and the STC value are far apart and the STC value has a constant offset with respect to the PTS of each medium, synchronization between the media is performed.
  • the MPEG-TS signal data can be reproduced while maintaining it.
  • the STC signal is corrected so that the buffers of the decoder units 4 and 5 do not enter the buffer over state or the buffer under state in consideration of the accumulation state of the MPEG-TS signal data. The occurrence of overflow and buffer underflow can be suppressed.
  • FIG. FIG. 3 is a block diagram showing the configuration of a media playback apparatus according to Embodiment 2 of the present invention, and shows an MPEG decoder conforming to the MPEG-2 standard as an example.
  • the MPEG decoder according to the second embodiment includes a demux unit 1, an STC playback unit 2, an STC correction unit 3a, a video decoder unit 4, an audio decoder unit 5, and a speed conversion unit 6.
  • the Demux unit 1, the STC playback unit 2, the video decoder unit 4 and the audio decoder unit 5 have the same configuration as that of FIG. 1 described in the first embodiment.
  • the STC correction unit (correction unit) 3a is connected to the STC reproduction unit 2, the video decoder unit 4, the audio decoder unit 5 and the speed conversion unit 6, respectively.
  • the STC correction unit 3a receives the STC signal e from the STC reproduction unit 2.
  • the STC correction unit 3 a outputs the corrected STC signal f to the video decoder unit 4 and the audio decoder unit 5, while receiving the video storage status g from the video decoder unit 4 and the audio storage status h from the audio decoder unit 5. input. Further, the STC correction unit 3 a outputs a speed instruction signal k to the speed conversion unit 6.
  • the STC correction unit 3a calculates an offset by a determination process using the video accumulation state g, the audio accumulation state h, and the STC signal e. This determination process will be described later with reference to FIG.
  • the STC correction unit 3a obtains the corrected STC signal f (corrected STC) by adding the offset value to the value of the STC signal e (STC) according to the equation (1).
  • the STC correction unit 3a when the STC correction unit 3a needs to increase the offset within a predetermined threshold, the STC correction unit 3a sends a speed instruction signal k that increases the presentation speed of the video signal i and the audio signal j to the speed conversion unit 6. Outputs and gradually increases the offset value.
  • the STC correction unit 3a when it is necessary to reduce the offset within the above threshold, the STC correction unit 3a outputs a speed instruction signal k for reducing the presentation speed of the video signal i and the audio signal j to the speed conversion unit 6, and Decrease the value gradually.
  • the speed conversion unit 6 is connected to the STC correction unit 3a via a signal line for inputting a speed instruction signal k, and connected to the video decoder unit 4 via a video output signal line for outputting a video signal i. And connected to the audio decoder unit 5 through an audio output signal line for outputting the audio signal j.
  • the speed converter 6 is connected to an output signal line for outputting the speed converted video signal l, and is connected to an output signal line for outputting the speed converted audio signal m.
  • the speed converter 6 calculates a speed-converted video signal l obtained by converting the presentation speed of the video signal i into a value designated by the speed instruction signal k, and the presentation speed of the audio signal j is instructed by the speed instruction signal k.
  • the speed-converted audio signal m converted to the calculated value is calculated.
  • the presentation speed conversion of the video signal i for example, a method of repeating or skipping a video frame or a method of generating and outputting an intermediate image of the video frame can be considered.
  • the presentation speed conversion of the audio signal j for example, there are a method of converting the sampling frequency of the audio signal j and a method of inserting and deleting in units of periods after detecting the period of the audio signal j.
  • FIG. 4 is a flowchart showing the flow of STC correction processing by the STC correction unit in FIG. 3, and the correction processing of the STC signal e will be described in detail with reference to FIG.
  • the STC correction unit 3a initializes the value of the offset (Offset) used in the STC correction process according to the above equation (1) and the value of the presentation speed V indicated by the speed instruction signal k (step ST1a).
  • the STC correction unit 3a determines whether or not there is an external reproduction end request, and if there is a request, ends the STC correction process (step ST1a-1). If there is no request, the STC correction unit 3a determines whether or not the accumulation amount of the video PES signal c input from the video decoder unit 4 as the video accumulation status g is equal to or less than a predetermined threshold A1, and as the audio accumulation status h. It is determined whether or not the accumulated amount of the audio PES signal d input from the audio decoder unit 5 is equal to or less than a predetermined threshold A2.
  • the STC correction unit 3a determines whether or not each buffer of the decoder units 4 and 5 is in a near overflow state according to the logical sum value of these determination results (step ST2a).
  • the threshold values A1 and A2 are obtained from the above formula (2) and the above formula (3).
  • step ST2a If the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4) in step ST2a, the STC correction unit 3a Move on to processing. If the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a performs the process of step ST6a. Migrate to
  • step ST3a the STC correction unit 3a determines whether the PTS value (PTS value extracted from the first frame of the video PES signal c) input from the video decoder unit 4 as the video accumulation status g is equal to or less than the value of the corrected STC signal f. Determine whether. In addition, the STC correction unit 3a determines whether or not the PTS value (PTS value extracted from the first frame of the audio PES signal d) input from the audio decoder unit 5 as the audio accumulation state h is equal to or less than the value of the correction STC signal f. judge. The STC correction unit 3a determines whether or not the reproduction start condition is satisfied according to the logical sum of these determination results. Note that the reproduction start condition refers to a case where the PTS values for the video PES signal c and the audio PES signal d match the value of the corrected STC signal f.
  • the STC correction unit 3a performs step ST2a. Return to processing. At this time, in both the video PES signal c and the audio PES signal d, it is determined that the time indicated by the value of the corrected STC signal f is ahead of the time indicated by the PTS value (STC advance state).
  • the STC correction unit 3a performs the process of step ST4a. Migrate to At this time, at least one of the video PES signal c and the audio PES signal d is determined to be in a state in which the time indicated by the value of the corrected STC signal f is delayed from the time indicated by the PTS value (STC delay state). Is done.
  • the corrected STC signal f obtained by this STC correction process is output from the STC correction unit 3a to the video decoder unit 4 and the audio decoder unit 5.
  • the STC correction unit 3a When the logical sum of the determination results of the video PES signal c and the audio PES signal d is true in step ST3a, the STC correction unit 3a has an accumulation amount of the video PES signal c in the video accumulation state g that is equal to or greater than a predetermined threshold B1. It is determined whether or not there is, and it is determined whether or not the accumulation amount of the audio PES signal d in the audio accumulation state h is equal to or greater than a predetermined threshold B2. The STC correction unit 3a determines whether or not each buffer of the decoder units 4 and 5 is in the near underflow state according to the logical sum value of these determination results (step ST4a).
  • the threshold values B1 and B2 are obtained from the above formula (4) and the above formula (5).
  • step ST4a the STC correction unit 3a determines that the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4). The process proceeds to -1. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the near underflow state.
  • step ST4a if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a The process proceeds to step ST5a. At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in the near underflow state.
  • step ST5a the STC correction unit 3a performs an offset calculation process in the near underflow state of the buffer. Specifically, the STC correction unit 3a performs the above expression (6) and the above expression (7) (or the PTS value in the video accumulation situation g and the PTS value in the audio accumulation situation h with respect to the smallest PTS value.
  • An offset is calculated by performing an operation according to the above equation (8).
  • the STC correction unit 3a obtains the offset in the near underflow state of the buffer, the STC correction unit 3a executes the processing from step ST2a with this offset value.
  • step ST6a the STC correction unit 3a performs an offset calculation process in the buffer near overflow state. Specifically, the STC correction unit 3a performs an operation according to the above formula (9) on the largest PTS value among the PTS value in the video accumulation situation g and the PTS value in the audio accumulation situation h, thereby offset ( Offset) is calculated. When the STC correction unit 3a obtains the offset in the near overflow state of the buffer, the STC correction unit 3a proceeds to the process of step ST7a.
  • step ST6a-1 the STC correction unit 3a determines whether or not there is an external reproduction end request, and if there is a request, ends the STC correction process. If there is no request, the STC correction unit 3a moves to step ST7a and performs a process of adding the product of the presentation speed V and the elapsed time ⁇ t to the offset with respect to the elapsed time ⁇ t from the previous process. Thereafter, the STC correction unit 3a determines whether or not the accumulation amount of the video PES signal c in the video accumulation situation g is the storable capacity of the buffer of the video decoder unit 4, and the audio PES signal d in the audio accumulation situation h.
  • the STC correction unit 3a determines whether or not each buffer of the decoder units 4 and 5 is in a buffer overflow state according to the logical sum value of these determination results (step ST8a).
  • step ST9a Transition to processing. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in an overflow state.
  • the STC correction unit 3a performs the process of step ST16a. Migrate to At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in an overflow state.
  • the STC correction unit 3a determines whether or not both buffers of the decoder units 4 and 5 are in the buffer under-state (step ST9a). Specifically, the STC correction unit 3a determines whether or not the accumulation amount of the video PES signal c in the video accumulation situation g is 0, and the accumulation amount of the audio PES signal d in the audio accumulation situation h is 0. It is determined whether or not each buffer of the decoder units 4 and 5 is in an underflow state according to the logical sum value of these determination results.
  • the STC correction unit 3a performs step ST11a. Transition to processing. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the underflow state.
  • step ST9a if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a The process proceeds to step ST10a. At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in an underflow state.
  • step ST10a the STC correction unit 3a initializes the value of the presentation speed V indicated by the speed instruction signal k.
  • the presentation speed V 0 is set.
  • the STC correction unit 3a returns to step ST2a and repeats the above-described processing from step ST2a.
  • step ST11a the STC correction unit 3a determines whether or not the accumulation amount of the video PES signal c input from the video decoder unit 4 as the video accumulation status g is equal to or less than a predetermined threshold A1, and the audio accumulation status h is audio. It is determined whether or not the accumulated amount of the audio PES signal d input from the decoder unit 5 is equal to or less than a predetermined threshold A2.
  • the STC correction unit 3a determines whether or not each buffer of the decoder units 4 and 5 is in a near overflow state according to the logical sum value of these determination results.
  • step ST12a Transition to processing. If the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a performs the process of step ST14a. Migrate to
  • step ST12a the STC correction unit 3a determines that the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4). Move on to processing. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the near-under state. On the other hand, when the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a performs the process of step ST15a. Migrate to At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in the near underflow state.
  • the STC correction unit 3a executes processing for bringing the presentation speed close to 0 in step ST13a. Specifically, if the presentation speed V is a positive value, the STC correction unit 3a subtracts a predetermined value ⁇ from the presentation speed V, and returns to 0 when the presentation speed V falls below zero. On the other hand, if the presentation speed V is a negative value, the predetermined value ⁇ is added to the presentation speed V, and when the presentation speed V exceeds 0, the process returns to 0.
  • the predetermined value ⁇ may be a positive value ( ⁇ > 0). Also, a different value may be set as the predetermined value ⁇ in each process of step ST13a, step ST14a described later, and step ST15a. Thus, after the value of the presentation speed instruct
  • step ST11a If it is determined in step ST11a that the buffers of the decoder units 4 and 5 are in the near overflow state, the STC correction unit 3a adds the predetermined value ⁇ to the value of the presentation speed indicated by the speed instruction signal k (step ST14a). Thereafter, the STC correction unit 3a returns to step ST7a and repeats the above-described processing from step ST7a.
  • step ST12a If it is determined in step ST12a that the buffers of the decoder units 4 and 5 are in the near underflow state, the STC correction unit 3a subtracts the predetermined value ⁇ from the value of the presentation speed indicated by the speed instruction signal k ( Step ST15a). Thereafter, the STC correction unit 3a returns to step ST7a and repeats the above-described processing from step ST7a.
  • the STC correction unit 3a repeats the processing from step ST2a to step ST16a until the reproduction start condition is satisfied.
  • the corrected STC signal f obtained in this way is output from the STC correction unit 3a to the video decoder unit 4 and the audio decoder unit 5.
  • the video decoder unit 4 and the audio decoder unit 5 execute a reproduction process using the value of the corrected STC signal f, and output a video signal i and an audio signal j.
  • the STC correction unit 3a instructs the speed instruction signal k as described above when the buffer is in a near overflow state or a near underflow state during media reproduction by the video decoder unit 4 and the audio decoder unit 5.
  • the presentation speed is adjusted, and the offset value is sequentially corrected according to the presentation speed.
  • the speed converter 6 that has received the speed instruction signal k converts the video signal i and the audio signal j to the presentation speed instructed by the speed instruction signal k.
  • the speed conversion unit 6 that converts the presentation speed of the media data reproduced by the video decoder unit 4 and the audio decoder unit 5 into a value corresponding to the instruction is provided, and STC correction is performed. Since the unit 3a instructs the speed conversion unit 6 on the value of the presentation speed adjusted according to the MPEG-TS signal data accumulation status in the video decoder unit 4 and the audio decoder unit 5, the image sound is interrupted during the offset adjustment. The occurrence of buffer overflow and underflow can be suppressed.
  • the MPEG decoder has been described as an example.
  • the present invention is not limited to MPEG encoded data.
  • the present invention can be applied to an apparatus that handles AVI data as a reproduction target.
  • the media playback apparatus is suitable for use in an MPEG decoder such as a digital television receiver because it can stably perform media playback while maintaining synchronization between media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A media reproducer comprises an STC reproducing unit (2) for reproducing an STC, an STC correcting unit (3) for correcting the STC and generating a corrected STC, and a video decoder unit (4) and an audio decoder unit (5) for sequentially storing MPEG-TS signal data to be reproduced and reproducing the MPEG-TS signal data at a timing when PTSs of the corrected STC and the MPEG-TS signal data are synchronized. The STC correcting unit (3) corrects the STC according to the storage state of continuous media data and the PTS of the MPEG-TS signal data stored in the decoder units (4, 5).

Description

メディア再生装置Media playback device
 この発明は、MPEG(Moving Picture Coding Experts Group)デコーダ等のメディア再生装置に関するものである。 The present invention relates to a media playback apparatus such as an MPEG (Moving Picture Coding Experts Group) decoder.
 例えば、特許文献1に開示される従来のMPEGデコーダ等のメディア再生装置では、MPEG-TS(Transport Stream)信号のヘッダからPTS(Presentation Timp Stamp)を取り出し、このPTSの値からSTC(System Time Clock)の値を引いた差分を求める。この後、上記従来のMPEGデコーダは、PTSの値からSTCの値を引いた差分の絶対値と所定の閾値とを比較する。 For example, in a conventional media playback device such as an MPEG decoder disclosed in Patent Document 1, a PTS (Presentation Timp Stamp) is extracted from the header of an MPEG-TS (Transport Stream) signal, and an STC (System Time Clock) is obtained from the PTS value. ) Is subtracted. Thereafter, the conventional MPEG decoder compares the absolute value of the difference obtained by subtracting the STC value from the PTS value with a predetermined threshold value.
 ここで、PTSの値からSTCの値を引いた差の絶対値が所定の閾値より大きい場合、上記従来のメディア再生装置は、PTSの値がSTCの値より大きければ、同一フレームを所定の回数を上限として繰り返して再生し、PTSの値がSTCの値より小さければ、同一フレームを所定の回数を上限としてスキップして再生する。このようにして、上記従来のメディア再生装置は、PTSの値からSTCの値を引いた差の絶対値が上記所定の閾値以内になるように再生処理を実行する。これにより、PTSの値とSTCの値との同期の確立と、正常な画音のデコードを実現することができる(例えば、特許文献1参照)。 Here, when the absolute value of the difference obtained by subtracting the STC value from the PTS value is larger than a predetermined threshold, the conventional media playback device can repeat the same frame a predetermined number of times if the PTS value is larger than the STC value. Is repeatedly played back, and if the value of PTS is smaller than the value of STC, the same frame is skipped up to a predetermined number of times and played back. In this way, the conventional media reproducing apparatus executes the reproducing process so that the absolute value of the difference obtained by subtracting the STC value from the PTS value is within the predetermined threshold. This makes it possible to establish synchronization between the PTS value and the STC value and to decode the normal image sound (see, for example, Patent Document 1).
特開2002-204404号公報JP 2002-204404 A
 従来のメディア再生装置では、前記所定の回数内のスキップ若しくはリピートで閾値内に収まらない場合には、非同期での再生に切り替えている。このため、PTSの値とSTCの値が定常的に大きく離れている場合、メディア(映像、音声等)間でPTSの相対関係が正常であっても、メディア間の同期を保ったままデコードすることができないという課題があった。 In the conventional media playback device, when skipping or repeating within the predetermined number of times does not fall within the threshold, the playback is switched to asynchronous playback. For this reason, when the PTS value and the STC value are steadily far apart from each other, even if the relative relationship of PTS between media (video, audio, etc.) is normal, decoding is performed while maintaining synchronization between the media. There was a problem that it was not possible.
 例えば、PTSの値とSTCの値が大きく離れて、各メディアのPTSに対してSTCの値が定常的にオフセットを持っている場合、通常の再生では、再生対象のメディア信号を格納するバッファにおいて、メディア信号がオーバーフローやアンダーフローを起こす可能性がある。 For example, when the PTS value and the STC value are far apart and the STC value has a constant offset with respect to the PTS of each medium, in normal playback, in the buffer for storing the media signal to be played back The media signal may cause overflow or underflow.
 この発明は、上記のような課題を解決するためになされたもので、メディアデータの提示時刻を示す時刻情報(例えば、PTS)の値と上記メディアデータの提示時刻の同期の基準となる時刻情報(例えば、STC)の値が定常的に大きく離れている場合であっても、メディア間の同期を保って再生することができるメディア再生装置を得ることを目的とする。 The present invention has been made to solve the above-described problems, and is time information that serves as a reference for synchronizing the value of time information (for example, PTS) indicating the presentation time of media data and the presentation time of the media data. It is an object of the present invention to obtain a media playback device that can play back with synchronization between media even when the value of (for example, STC) is constantly far apart.
 この発明に係るメディア再生装置は、再生対象の連続メディアデータの提示時刻の同期の基準となる基準時刻を再生する基準時刻再生部と、基準時刻を補正して補正基準時刻を生成する補正部と、連続メディアデータを逐次蓄積し、補正基準時刻と連続メディアデータの提示時刻が同期したタイミングで連続メディアデータを再生するメディア再生部とを備え、補正部が、メディア再生部での連続メディアデータの蓄積状況と、メディア再生部に蓄積されている連続メディアデータの提示時刻に応じて基準時刻を補正するものである。 A media playback device according to the present invention includes a reference time playback unit that plays back a reference time that serves as a reference for synchronizing the presentation time of continuous media data to be played back, and a correction unit that corrects the reference time to generate a corrected reference time. A continuous media data storage unit, and a media playback unit that plays back the continuous media data at a timing when the correction reference time and the presentation time of the continuous media data are synchronized. The reference time is corrected according to the storage status and the presentation time of the continuous media data stored in the media playback unit.
 この構成を有することによって、メディアデータの提示時刻を示す時刻情報の値と上記メディアデータの提示時刻の同期の基準となる時刻情報の値が定常的に大きく離れている場合であっても、メディア間の同期を保って再生することができるという効果がある。 By having this configuration, even when the value of time information indicating the presentation time of media data and the value of time information serving as a reference for synchronization of the presentation time of the media data are constantly largely separated from each other, There is an effect that it is possible to reproduce while maintaining synchronization.
この発明の実施の形態1によるメディア再生装置の構成を示すブロック図である。It is a block diagram which shows the structure of the media reproduction apparatus by Embodiment 1 of this invention. 図1中のSTC補正部によるSTC補正処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the STC correction process by the STC correction | amendment part in FIG. この発明の実施の形態2によるメディア再生装置の構成を示すブロック図である。It is a block diagram which shows the structure of the media reproduction apparatus by Embodiment 2 of this invention. 図3中のSTC補正部によるSTC補正処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the STC correction process by the STC correction | amendment part in FIG.
 以下、この発明をより詳細に説明するために、この発明を実施するための最良の形態について、添付の図面に従って説明する。
実施の形態1.
 図1は、この発明の実施の形態1によるメディア再生装置の構成を示すブロック図であり、MPEG-2規格に準拠したMPEGデコーダを例として示している。図1において、実施の形態1によるMPEGデコーダは、Demux部1、STC再生部2、STC補正部3、映像デコーダ部4及び音声デコーダ部5を備える。Demux部1は、外部からMPEG-TS信号aを入力するための入力用信号線と、STC再生部2、音声デコーダ部4及び映像デコーダ部5に接続している。MPEG-TS信号aは、各メディア(映像、音声)のストリームデータが多重化された連続メディアデータである。
Hereinafter, in order to describe the present invention in more detail, the best mode for carrying out the present invention will be described with reference to the accompanying drawings.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing the configuration of a media playback apparatus according to Embodiment 1 of the present invention, and shows an MPEG decoder conforming to the MPEG-2 standard as an example. 1, the MPEG decoder according to Embodiment 1 includes a Demux unit 1, an STC playback unit 2, an STC correction unit 3, a video decoder unit 4, and an audio decoder unit 5. The Demux unit 1 is connected to an input signal line for inputting the MPEG-TS signal a from the outside, the STC reproduction unit 2, the audio decoder unit 4, and the video decoder unit 5. The MPEG-TS signal a is continuous media data in which stream data of each medium (video, audio) is multiplexed.
 また、Demux部1は、外部から入力したMPEG-TS信号aから、PCR(Program Clock Reference)信号b、映像PES(Packetized Elementarty Stream)信号c、音声PES信号dを分離する。PCR信号bは、MPEG-TS信号aの符号化時の基準時刻を示す信号であり、Demux部1からSTC再生部2へ送られる。映像PES信号cは、再生対象の映像符号化データ信号であり、Demux部1から映像デコーダ部4へ送られる。音声PES信号dは、再生対象の音声符号化データ信号であり、Demux部1から音声デコーダ部5へ送られる。 Also, the Demux unit 1 separates a PCR (Program Clock Reference) signal b, a video PES (Packetized Element Arty Stream) signal c, and an audio PES signal d from an MPEG-TS signal a input from the outside. The PCR signal b is a signal indicating a reference time when the MPEG-TS signal a is encoded, and is sent from the Demux unit 1 to the STC reproduction unit 2. The video PES signal c is a video encoded data signal to be reproduced, and is sent from the Demux unit 1 to the video decoder unit 4. The audio PES signal d is an audio encoded data signal to be reproduced, and is sent from the Demux unit 1 to the audio decoder unit 5.
 STC再生部(基準時刻再生部)2は、Demux部1とSTC補正部3に接続している。また、STC再生部2は、Demux部1から入力したPCR信号bの値を用いてSTC信号eを再生する。例えば、STC再生部2としてPLL(Phase Locked Loop)回路を構築し、このPLL回路でPCR信号bからSTC信号eを再生する。このSTC信号eは、メディア再生開始時刻の同期の基準時刻を示す信号である。 The STC playback unit (reference time playback unit) 2 is connected to the Demux unit 1 and the STC correction unit 3. In addition, the STC reproduction unit 2 reproduces the STC signal e using the value of the PCR signal b input from the Demux unit 1. For example, a PLL (Phase Locked Loop) circuit is constructed as the STC reproducing unit 2, and the STC signal e is reproduced from the PCR signal b by this PLL circuit. The STC signal e is a signal indicating a reference time for synchronization with the media playback start time.
 STC補正部(補正部)3は、STC再生部2、映像デコーダ部4及び音声デコーダ部5にそれぞれ接続している。STC補正部3は、STC再生部2からSTC信号eを入力する。また、STC補正部3は、映像デコーダ部4及び音声デコーダ部5に補正STC信号fを出力する一方、映像デコーダ部4から映像蓄積状況gを入力し、音声デコーダ部5から音声蓄積状況hを入力する。 The STC correction unit (correction unit) 3 is connected to the STC playback unit 2, the video decoder unit 4, and the audio decoder unit 5, respectively. The STC correction unit 3 receives the STC signal e from the STC reproduction unit 2. Further, the STC correction unit 3 outputs the corrected STC signal f to the video decoder unit 4 and the audio decoder unit 5, while receiving the video storage status g from the video decoder unit 4 and the audio storage status h from the audio decoder unit 5. input.
 STC補正部3は、映像蓄積状況g、音声蓄積状況h及びSTC信号eを用いた判定処理でオフセット(Offset)を算出する。この判定処理については図2で後述する。STC補正部3は、下記式(1)に従って、上記オフセットの値をSTC信号e(STC)の値に加算することにより、補正STC信号f(補正STC)を求める。この補正STC信号fの値が、映像デコーダ部4及び音声デコーダ部5において使用されるメディア再生開始時刻の同期の基準となる基準時刻となる。
 補正STC=STC+Offset   ・・・(1)
The STC correction unit 3 calculates an offset by a determination process using the video accumulation state g, the audio accumulation state h, and the STC signal e. This determination process will be described later with reference to FIG. The STC correction unit 3 obtains a corrected STC signal f (corrected STC) by adding the offset value to the value of the STC signal e (STC) according to the following equation (1). The value of the corrected STC signal f becomes a reference time that serves as a reference for synchronizing the media playback start time used in the video decoder unit 4 and the audio decoder unit 5.
Correction STC = STC + Offset (1)
 映像デコーダ部(メディア再生部)4は、Demux部1及びSTC補正部3接続するとともに、映像信号iを出力するための映像出力信号線に接続している。また、映像デコーダ部4は、Demux部1から入力した映像PES信号cを逐次蓄積するバッファを備える。映像デコーダ部4は、映像PES信号c中の各映像フレームをデコードして、上記各映像フレームに付されたPTSの値が補正STC信号fの値より小さい間、上記バッファに映像PES信号cを蓄積する。一方、映像デコーダ部4は、上記各映像フレームに付されたPTSの値と補正STC信号fの値が一致するタイミングで、上記デコード結果を映像信号iとして出力する。なお、各メディア(映像、音声)ストリームのPTS値は、上記各メディアストリームの再生開始時刻である。 The video decoder unit (media playback unit) 4 is connected to the Demux unit 1 and the STC correction unit 3 and to a video output signal line for outputting the video signal i. In addition, the video decoder unit 4 includes a buffer that sequentially stores the video PES signal c input from the Demux unit 1. The video decoder unit 4 decodes each video frame in the video PES signal c, and outputs the video PES signal c to the buffer while the value of the PTS attached to each video frame is smaller than the value of the corrected STC signal f. accumulate. On the other hand, the video decoder unit 4 outputs the decoding result as the video signal i at the timing when the value of the PTS attached to each video frame matches the value of the corrected STC signal f. Note that the PTS value of each media (video, audio) stream is the playback start time of each media stream.
 また、映像デコーダ部4では、上記バッファに蓄積した映像PES信号cの蓄積量と、映像PES信号cの先頭フレームから抽出したPTS値とからなる映像蓄積状況gを生成する。この映像蓄積状況gは、STC補正部3によるSTC補正処理に用いられる情報であり、映像デコーダ部4からSTC補正部3にフィードバックされる。 Also, the video decoder unit 4 generates a video storage status g composed of the storage amount of the video PES signal c stored in the buffer and the PTS value extracted from the first frame of the video PES signal c. This video accumulation state g is information used for STC correction processing by the STC correction unit 3 and is fed back from the video decoder unit 4 to the STC correction unit 3.
 音声デコーダ部(メディア再生部)5は、Demux部1及びSTC補正部3接続するとともに、音声信号jを出力するための音声出力信号線に接続している。また、音声デコーダ部5は、Demux部1から入力した音声PES信号dを逐次蓄積するバッファを備える。音声デコーダ部5は、音声PES信号d中の各音声フレームをデコードして、上記各音声フレームに付されたPTSの値が補正STC信号fの値より小さい間、上記バッファに音声PES信号dを蓄積する。一方、音声デコーダ部5は、上記各音声フレームに付されたPTSの値と補正STC信号fの値が一致するタイミングで、上記デコード結果を音声信号jとして出力する。 The audio decoder unit (media playback unit) 5 is connected to the Demux unit 1 and the STC correction unit 3 and to an audio output signal line for outputting an audio signal j. In addition, the audio decoder unit 5 includes a buffer that sequentially stores the audio PES signal d input from the Demux unit 1. The audio decoder unit 5 decodes each audio frame in the audio PES signal d, and outputs the audio PES signal d to the buffer while the value of the PTS attached to each audio frame is smaller than the value of the corrected STC signal f. accumulate. On the other hand, the audio decoder unit 5 outputs the decoding result as an audio signal j at a timing when the value of the PTS attached to each audio frame matches the value of the corrected STC signal f.
 また、音声デコーダ部5では、上記バッファに蓄積した音声PES信号dの蓄積量と、音声PES信号dの先頭フレームから抽出したPTS値とからなる音声蓄積状況hを生成する。この音声蓄積状況hは、STC補正部3によるSTC補正処理に用いられる情報であり、音声デコーダ部5からSTC補正部3にフィードバックされる。 Also, the audio decoder unit 5 generates an audio accumulation state h including the accumulation amount of the audio PES signal d accumulated in the buffer and the PTS value extracted from the first frame of the audio PES signal d. The voice accumulation state h is information used for the STC correction process by the STC correction unit 3 and is fed back from the voice decoder unit 5 to the STC correction unit 3.
 次に動作について説明する。
 図2は、図1中のSTC補正部によるSTC補正処理の流れを示すフローチャートであり、この図に沿ってSTC信号eの補正処理について詳細に説明する。
 先ず、STC補正部3は、上記式(1)に従うSTC補正処理に使用するオフセット(Offset)の値を初期化する(ステップST1)。ここでは、Offset=0に設定する。
Next, the operation will be described.
FIG. 2 is a flowchart showing the flow of STC correction processing by the STC correction unit in FIG. 1, and the correction processing of the STC signal e will be described in detail with reference to this drawing.
First, the STC correction unit 3 initializes an offset value used in the STC correction process according to the above equation (1) (step ST1). Here, Offset = 0 is set.
 続いて、STC補正部3は、外部からの再生終了要求の有無を判定し、要求があればSTC補正処理を終了する(ステップST1-1)。要求がなければ、STC補正部3は、映像蓄積状況gとして映像デコーダ部4から入力した映像PES信号cの蓄積量が所定の閾値A1以下であるか否かを判定し、音声蓄積状況hとして音声デコーダ部5から入力した音声PES信号dの蓄積量が所定の閾値A2以下であるか否かを判定する。STC補正部3は、これら判定結果の論理和の値に応じてデコーダ部4,5の各バッファがニアオーバーフロー状態であるか否かを判定する(ステップST2)。 Subsequently, the STC correction unit 3 determines whether or not there is an external reproduction end request, and if there is a request, ends the STC correction process (step ST1-1). If there is no request, the STC correction unit 3 determines whether or not the accumulation amount of the video PES signal c input from the video decoder unit 4 as the video accumulation state g is equal to or less than a predetermined threshold A1, and as the audio accumulation state h. It is determined whether or not the accumulated amount of the audio PES signal d input from the audio decoder unit 5 is equal to or less than a predetermined threshold A2. The STC correction unit 3 determines whether each buffer of the decoder units 4 and 5 is in a near overflow state according to the logical sum of these determination results (step ST2).
 なお、閾値A1,A2は、例えば下記式(2)及び下記式(3)から求める。但し、映像PESの蓄積可能容量とは、映像デコーダ部4における上記バッファの映像PES信号cの蓄積可能容量である。また、音声PESの蓄積可能容量とは、音声デコーダ部5における上記バッファの音声PES信号dの蓄積可能容量である。
 A1=映像PESの蓄積可能容量×0.1   ・・・(2)
 A2=音声PESの蓄積可能容量×0.1   ・・・(3)
The threshold values A1 and A2 are obtained from the following formula (2) and the following formula (3), for example. However, the storage capacity of the video PES is the storage capacity of the video PES signal c of the buffer in the video decoder unit 4. The audio PES accumulative capacity is an accumulative capacity of the audio PES signal d in the buffer in the audio decoder unit 5.
A1 = capacity of video PES storage × 0.1 (2)
A2 = Accumulable capacity of voice PES × 0.1 (3)
 ステップST2において、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図2中、NOで示す)であると、STC補正部3は、ステップST3の処理に移行する。ここで、上記論理和が偽となるのは、映像PES信号cの蓄積量が閾値A1を越えており、かつ音声PES信号dの蓄積量が閾値A2を越えている場合である。このとき、デコーダ部4,5の双方のバッファは、ニアオーバーフロー状態ではないと判定される。 In step ST2, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 2), the STC correction unit 3 performs step ST3. Move on to processing. Here, the logical sum is false when the accumulation amount of the video PES signal c exceeds the threshold value A1 and the accumulation amount of the audio PES signal d exceeds the threshold value A2. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the near overflow state.
 また、ステップST2において、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図2中、YESで示す)である場合、STC補正部3は、ステップST6の処理に移行する。ここで、上記論理和が真となるのは、映像PES信号c及び音声PES信号dのいずれか一方の蓄積量が上記閾値以下であるか、若しくは、映像PES信号cの蓄積量が閾値A1以下であり、かつ音声PES信号dの蓄積量が閾値A2以下の場合である。このとき、デコーダ部4,5の少なくとも一方のバッファは、ニアオーバーフロー状態であると判定される。 In step ST2, when the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 2), the STC correction unit 3 The process proceeds to step ST6. Here, the logical sum is true when the accumulated amount of one of the video PES signal c and the audio PES signal d is equal to or smaller than the threshold value, or the accumulated amount of the video PES signal c is equal to or smaller than the threshold value A1. And the accumulated amount of the audio PES signal d is equal to or less than the threshold value A2. At this time, it is determined that at least one of the buffers of the decoder units 4 and 5 is in a near overflow state.
 ステップST3において、STC補正部3は、映像蓄積状況gとして映像デコーダ部4から入力したPTS値(映像PES信号cの先頭フレームから抽出したPTS値)が補正STC信号fの値以下であるか否かを判定する。また、STC補正部3は、音声蓄積状況hとして音声デコーダ部5から入力したPTS値(音声PES信号dの先頭フレームから抽出したPTS値)が補正STC信号fの値以下であるか否かを判定する。STC補正部3は、これら判定結果の論理和の値に応じて再生開始条件を満たしているか否かを判定する。なお、再生開始条件とは、映像PES信号c及び音声PES信号dについてのPTS値が補正STC信号fの値に一致する場合をいう。 In step ST3, the STC correction unit 3 determines whether or not the PTS value (PTS value extracted from the first frame of the video PES signal c) input from the video decoder unit 4 as the video accumulation status g is equal to or less than the value of the corrected STC signal f. Determine whether. Further, the STC correction unit 3 determines whether or not the PTS value (the PTS value extracted from the first frame of the audio PES signal d) input from the audio decoder unit 5 as the audio accumulation state h is equal to or less than the value of the correction STC signal f. judge. The STC correction unit 3 determines whether or not the reproduction start condition is satisfied according to the logical sum of these determination results. Note that the reproduction start condition refers to a case where the PTS values for the video PES signal c and the audio PES signal d match the value of the corrected STC signal f.
 ここで、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図2中、NOで示す)であると、STC補正部3は、ステップST2の処理に戻る。なお、上記論理和が偽となるのは、映像PES信号cについてのPTS値が補正STC信号fの値を越えており、かつ音声PES信号dについてのPTS値が補正STC信号fの値を越えている場合である。このとき、映像PES信号cと音声PES信号dの双方においてPTS値で示される時刻よりも補正STC信号fの値で示される時刻の方が進んでいる状態(STC進み状態)であると判定される。 Here, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 2), the STC correction unit 3 performs step ST2. Return to processing. The logical sum is false because the PTS value for the video PES signal c exceeds the value of the corrected STC signal f, and the PTS value for the audio PES signal d exceeds the value of the corrected STC signal f. It is a case. At this time, in both the video PES signal c and the audio PES signal d, it is determined that the time indicated by the value of the corrected STC signal f is ahead of the time indicated by the PTS value (STC advance state). The
 一方、STC補正部3は、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図2中、YESで示す)であると、ステップST4の処理に移行する。ここで、上記論理和が真となるのは、映像PES信号c及び音声PES信号dのいずれか一方のPTS値が補正STC信号fの値以下であるか、若しくは、映像PES信号cについてのPTS値が補正STC信号fの値以下であり、かつ音声PES信号dについてのPTS値が補正STC信号fの値以下の場合である。このとき、映像PES信号cと音声PES信号dの少なくとも一方は、PTS値で示される時刻より補正STC信号fの値で示される時刻の方が遅れている状態(STC遅れ状態)であると判定される。 On the other hand, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 2), the STC correction unit 3 performs the process of step ST4. Migrate to Here, the logical sum is true when the PTS value of one of the video PES signal c and the audio PES signal d is equal to or smaller than the value of the corrected STC signal f, or the PTS for the video PES signal c. This is a case where the value is equal to or smaller than the value of the corrected STC signal f and the PTS value for the audio PES signal d is equal to or smaller than the value of the corrected STC signal f. At this time, at least one of the video PES signal c and the audio PES signal d is determined to be in a state in which the time indicated by the value of the corrected STC signal f is delayed from the time indicated by the PTS value (STC delay state). Is done.
 このSTC補正処理で得られた補正STC信号fは、STC補正部3から映像デコーダ部4及び音声デコーダ部5に出力される。 The corrected STC signal f obtained by this STC correction process is output from the STC correction unit 3 to the video decoder unit 4 and the audio decoder unit 5.
 STC補正部3は、ステップST3で映像PES信号c及び音声PES信号dの上記判定結果の論理和が真である場合、映像蓄積状況gにおける映像PES信号cの蓄積量が所定の閾値B1以上であるか否かを判定し、音声蓄積状況hにおける音声PES信号dの蓄積量が所定の閾値B2以上であるか否かを判定する。STC補正部3は、これら判定結果の論理和の値に応じてデコーダ部4,5の各バッファがニアアンダーフロー状態であるか否かを判定する(ステップST4)。 When the logical sum of the determination results of the video PES signal c and the audio PES signal d is true in step ST3, the STC correction unit 3 has an accumulation amount of the video PES signal c in the video accumulation state g that is equal to or greater than a predetermined threshold B1. It is determined whether or not there is, and it is determined whether or not the accumulation amount of the audio PES signal d in the audio accumulation state h is equal to or greater than a predetermined threshold B2. The STC correction unit 3 determines whether or not each buffer of the decoder units 4 and 5 is in the near underflow state according to the logical sum value of these determination results (step ST4).
 なお、閾値B1,B2は、例えば下記式(4)及び下記式(5)から求める。
 B1=映像PESの蓄積可能容量×0.9   ・・・(4)
 B2=音声PESの蓄積可能容量×0.9   ・・・(5)
The threshold values B1 and B2 are obtained from the following formula (4) and the following formula (5), for example.
B1 = Capacity of accumulation of video PES × 0.9 (4)
B2 = Accumulable capacity of voice PES × 0.9 (5)
 ステップST4において、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図2中、NOで示す)であると、STC補正部3は、ステップST6-1の処理に移行する。ここで、上記論理和が偽となるのは、映像PES信号cの蓄積量が閾値B1未満であり、かつ音声PES信号dの蓄積量が閾値B2未満の場合である。このとき、デコーダ部4,5の双方のバッファは、ニアアンダーフロー状態ではないと判定される。 In step ST4, when the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 2), the STC correction unit 3 performs step ST6. The process proceeds to -1. Here, the logical sum is false when the accumulation amount of the video PES signal c is less than the threshold value B1 and the accumulation amount of the audio PES signal d is less than the threshold value B2. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the near underflow state.
 また、ステップST4において、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図2中、YESで示す)である場合、STC補正部3は、ステップST5の処理に移行する。ここで、上記論理和が真となるのは、映像PES信号c及び音声PES信号dのいずれか一方の蓄積量が上記閾値以上であるか、若しくは、映像PES信号cの蓄積量が閾値B1以上であり、かつ音声PES信号dの蓄積量が閾値B2以上の場合である。このとき、デコーダ部4,5の少なくとも一方のバッファは、ニアアンダーフロー状態であると判定される。 In step ST4, when the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 2), the STC correction unit 3 The process proceeds to step ST5. Here, the logical sum is true when the accumulated amount of one of the video PES signal c and the audio PES signal d is equal to or greater than the threshold value, or the accumulated amount of the video PES signal c is equal to or greater than the threshold value B1. And the accumulated amount of the audio PES signal d is greater than or equal to the threshold B2. At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in the near underflow state.
 ステップST5において、STC補正部3は、バッファのニアアンダーフロー状態におけるオフセット計算処理を行う。具体的には、STC補正部3が、映像蓄積状況gにおけるPTS値と音声蓄積状況hにおけるPTS値のうち、最も小さいPTS値に対して、下記式(6)及び下記式(7)に従う演算を施すことにより、オフセット(Offset)を算出する。このオフセットをSTC信号eの値に加算することで、デコーダ部4,5での再生開始を遅らせる条件とすることができる。STC補正部3は、バッファのニアアンダーフロー状態でのオフセットを求めると、このオフセット値でステップST2からの処理を実行する。なお、想定映像PES入力レートとは、映像デコーダ部4へ入力される想定上の映像PES信号cの入力レートであり、映像PES信号cの仕様上の伝送レート等から想定される。また、想定音声PES入力レートは、音声デコーダ部5へ入力される想定上の音声PES信号dの入力レートであり、音声PES信号dの仕様上の伝送レート等から想定される。
 Offset=PTS-STC-α   ・・・(6)
 α=(A1/想定映像PES入力レート+A2/想定音声PES入力レート)/2
 ・・・(7)
In step ST5, the STC correction unit 3 performs an offset calculation process in the near underflow state of the buffer. Specifically, the STC correction unit 3 performs an operation according to the following formula (6) and the following formula (7) with respect to the smallest PTS value among the PTS value in the video accumulation situation g and the PTS value in the audio accumulation situation h. To calculate the offset (Offset). By adding this offset to the value of the STC signal e, a condition for delaying the start of reproduction in the decoder units 4 and 5 can be obtained. When the STC correction unit 3 obtains the offset in the near underflow state of the buffer, the STC correction unit 3 executes the processing from step ST2 with this offset value. The assumed video PES input rate is an assumed input rate of the video PES signal c input to the video decoder unit 4, and is assumed from a transmission rate or the like according to the specification of the video PES signal c. Further, the assumed audio PES input rate is an input rate of an assumed audio PES signal d input to the audio decoder unit 5, and is assumed from a transmission rate or the like in the specification of the audio PES signal d.
Offset = PTS−STC−α (6)
α = (A1 / assumed video PES input rate + A2 / assumed audio PES input rate) / 2
... (7)
 また、上述のオフセット計算は、各メディア(映像、音声)の入力レートを測定する入力レート測定部(不図示)を図1の構成に設けることにより、下記式(8)でαを求めるようにしてもよい。なお、測定映像PES入力レートとは、上記入力レート測定部で測定されたDemux部1から映像デコーダ部4への映像PES信号cの入力レートである。また、測定音声PES入力レートとは、上記入力レート測定部で測定されたDemux部1から音声デコーダ部5への音声PES信号dの入力レートである。
 α=(A1/測定映像PES入力レート+A2/測定音声PES入力レート)/2
 ・・・(8)
Further, in the offset calculation described above, an input rate measuring unit (not shown) for measuring the input rate of each medium (video, audio) is provided in the configuration of FIG. May be. The measured video PES input rate is the input rate of the video PES signal c from the Demux unit 1 to the video decoder unit 4 measured by the input rate measuring unit. The measured audio PES input rate is the input rate of the audio PES signal d from the Demux unit 1 to the audio decoder unit 5 measured by the input rate measuring unit.
α = (A1 / measurement video PES input rate + A2 / measurement audio PES input rate) / 2
... (8)
 ステップST6において、STC補正部3は、バッファのニアオーバーフロー状態におけるオフセット計算処理を行う。具体的には、STC補正部3が、映像蓄積状況gにおけるPTS値と音声蓄積状況hにおけるPTS値のうち、最も大きいPTS値に対して下記式(9)に従う演算を施すことにより、オフセット(Offset)を算出する。このオフセットをSTC信号eの値に加算することで、デコーダ部4,5での再生開始を進める条件(直ちに再生開始させる条件)とすることができる。STC補正部3は、バッファのニアオーバーフロー状態におけるオフセットを求めると、ステップST6-1の処理に移行する。
 Offset=PTS-STC   ・・・(9)
In step ST6, the STC correction unit 3 performs an offset calculation process in the buffer near overflow state. Specifically, the STC correction unit 3 performs an operation according to the following equation (9) on the largest PTS value among the PTS value in the video accumulation situation g and the PTS value in the audio accumulation situation h, thereby offset ( Offset) is calculated. By adding this offset to the value of the STC signal e, it is possible to obtain a condition for starting reproduction at the decoder units 4 and 5 (condition for immediately starting reproduction). When the STC correction unit 3 determines the offset in the near overflow state of the buffer, the STC correction unit 3 proceeds to the process of step ST6-1.
Offset = PTS−STC (9)
 ステップST6-1において、STC補正部3は、外部からの再生終了要求の有無を判定し、要求があればSTC補正処理を終了する。要求がなければ、STC補正部3は、ステップST7に移行して、映像蓄積状況gにおける映像PES信号cの蓄積量が映像デコーダ部4のバッファの蓄積可能容量であるか否かを判定し、音声蓄積状況hにおける音声PES信号dの蓄積量が音声デコーダ部5のバッファの蓄積可能容量であるか否かを判定する。STC補正部3は、これら判定結果の論理和の値に応じてデコーダ部4,5の各バッファがオーバーフロー状態であるか否かを判定する。 In step ST6-1, the STC correction unit 3 determines whether or not there is an external reproduction end request. If there is a request, the STC correction process ends. If there is no request, the STC correction unit 3 proceeds to step ST7 and determines whether or not the storage amount of the video PES signal c in the video storage state g is the storable capacity of the buffer of the video decoder unit 4, It is determined whether or not the accumulation amount of the audio PES signal d in the audio accumulation state h is the accumulation capacity of the buffer of the audio decoder unit 5. The STC correction unit 3 determines whether each buffer of the decoder units 4 and 5 is in an overflow state according to the logical sum value of these determination results.
 ここで、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図2中、NOで示す)であると、STC補正部3は、ステップST8の処理に移行する。ここで、上記論理和が偽となるのは、映像PES信号cの蓄積量が上記蓄積可能容量に達しておらず、かつ音声PES信号dの蓄積量が上記蓄積可能容量に達していない場合である。このとき、デコーダ部4,5の双方のバッファは、オーバーフロー状態ではないと判定される。 Here, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 2), the STC correction unit 3 performs step ST8. Transition to processing. Here, the logical sum is false when the accumulation amount of the video PES signal c does not reach the storable capacity and the accumulation amount of the audio PES signal d does not reach the storable capacity. is there. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in an overflow state.
 また、STC補正部3は、ステップST7において、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図2中、YESで示す)である場合、ステップST9の処理に移行する。ここで、上記論理和が真となるのは、映像PES信号c及び音声PES信号dのいずれか一方の蓄積量が上記蓄積可能容量であるか、若しくは、映像PES信号cの蓄積量が上記蓄積可能容量であり、かつ音声PES信号dの蓄積量が上記蓄積可能容量の場合である。このとき、デコーダ部4,5の少なくとも一方のバッファは、オーバーフロー状態であると判定される。 Further, in step ST7, the STC correction unit 3 determines that the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 2). The process proceeds to step ST9. Here, the logical sum is true when the accumulation amount of one of the video PES signal c and the audio PES signal d is the accumulation capacity or the accumulation amount of the video PES signal c is the accumulation. This is a case where the storage capacity is the capacity and the storage amount of the audio PES signal d is the storage capacity. At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in an overflow state.
 STC補正部3は、デコーダ部4,5の双方のバッファがオーバーフロー状態でないと判定すると、デコーダ部4,5の双方のバッファがアンダーフロー状態であるか否かを判定する(ステップST8)。具体的には、STC補正部3が、映像蓄積状況gにおける映像PES信号cの蓄積量が0であるか否かを判定し、音声蓄積状況hにおける音声PES信号dの蓄積量が0であるか否かを判定し、これら判定結果の論理和の値に応じてデコーダ部4,5の各バッファがアンダーフロー状態であるか否かを判定する。 If the STC correction unit 3 determines that both buffers of the decoder units 4 and 5 are not in an overflow state, the STC correction unit 3 determines whether or not both buffers of the decoder units 4 and 5 are in an underflow state (step ST8). Specifically, the STC correction unit 3 determines whether or not the accumulation amount of the video PES signal c in the video accumulation situation g is 0, and the accumulation amount of the audio PES signal d in the audio accumulation situation h is 0. It is determined whether or not each buffer of the decoder units 4 and 5 is in an underflow state according to the logical sum value of these determination results.
 ここで、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図2中、NOで示す)であると、STC補正部3は、ステップST6-1の処理に戻る。ここで、上記論理和が偽となるのは、映像PES信号cの蓄積量が0ではなく、かつ音声PES信号dの蓄積量が0でない場合である。このとき、デコーダ部4,5の双方のバッファは、アンダーフロー状態ではないと判定される。 Here, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 2), the STC correction unit 3 performs step ST6- Return to the process of 1. Here, the logical sum is false when the accumulation amount of the video PES signal c is not zero and the accumulation amount of the audio PES signal d is not zero. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the underflow state.
 また、ステップST8において、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図2中、YESで示す)である場合、STC補正部3は、ステップST2の処理に戻る。ここで、上記論理和が真となるのは、映像PES信号c及び音声PES信号dのいずれか一方の蓄積量が0であるか、若しくは、映像PES信号cの蓄積量が0であり、かつ音声PES信号dの蓄積量が0の場合である。このとき、デコーダ部4,5の少なくとも一方のバッファは、アンダーフロー状態であると判定される。 If the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 2) in step ST8, the STC correction unit 3 The process returns to step ST2. Here, the logical sum is true when the accumulation amount of one of the video PES signal c and the audio PES signal d is 0, or the accumulation amount of the video PES signal c is 0, and This is a case where the accumulated amount of the audio PES signal d is zero. At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in an underflow state.
 一方、STC補正部3は、ステップST7においてバッファがオーバーフロー状態であると判定すると、オーバーフロー状態におけるオフセット計算処理を行う(ステップST9)。具体的には、STC補正部3が、映像蓄積状況gにおけるPTS値と音声蓄積状況hにおけるPTS値のうち、最も大きいPTS値に対して、下記式(10)及び下記式(11)に従う演算を施すことにより、オフセット(Offset)を算出する。このオフセットをSTC信号eの値に加算することで、デコーダ部4,5でメディアストリーム中のいくつかフレームをスキップする条件とすることができる。STC補正部3は、バッファのオーバーフロー状態におけるオフセットを求めると、このオフセット値でステップST7からの処理を実行する。
 Offset=PTS-STC+β   ・・・(10)
 β=(B1/想定映像PES入力レート+B2/想定音声PES入力レート)/2
 ・・・(11)
On the other hand, when the STC correction unit 3 determines in step ST7 that the buffer is in the overflow state, the STC correction unit 3 performs an offset calculation process in the overflow state (step ST9). Specifically, the STC correction unit 3 performs an operation according to the following formula (10) and the following formula (11) with respect to the largest PTS value among the PTS value in the video accumulation situation g and the PTS value in the audio accumulation situation h. To calculate the offset (Offset). By adding this offset to the value of the STC signal e, the decoder units 4 and 5 can make a condition for skipping some frames in the media stream. When the STC correction unit 3 obtains the offset in the buffer overflow state, the STC correction unit 3 executes the processing from step ST7 with this offset value.
Offset = PTS−STC + β (10)
β = (B1 / assumed video PES input rate + B2 / assumed audio PES input rate) / 2
(11)
 また、上述のオフセット計算は、各メディア(映像、音声)の入力レートを測定する入力レート測定部(不図示)を図1の構成に設けることにより、下記式(12)でβを求めるようにしてもよい。
 α=(B1/測定映像PES入力レート+B2/測定音声PES入力レート)/2
 ・・・(12)
Further, in the above-described offset calculation, β is obtained by the following equation (12) by providing an input rate measuring unit (not shown) for measuring the input rate of each medium (video, audio) in the configuration of FIG. May be.
α = (B1 / measurement video PES input rate + B2 / measurement audio PES input rate) / 2
(12)
 STC補正部3は、再生開始条件が満たされるまで、ステップST2からステップST9までの処理を繰り返す。このようにして求められた補正STC信号fは、STC補正部3から映像デコーダ部4及び音声デコーダ部5に出力される。映像デコーダ部4及び音声デコーダ部5では、補正STC信号fの値を用いて再生処理を実行し、映像信号i及び音声信号jを出力する。 The STC correction unit 3 repeats the processing from step ST2 to step ST9 until the reproduction start condition is satisfied. The corrected STC signal f obtained in this way is output from the STC correction unit 3 to the video decoder unit 4 and the audio decoder unit 5. The video decoder unit 4 and the audio decoder unit 5 execute a reproduction process using the value of the corrected STC signal f, and output a video signal i and an audio signal j.
 以上のように、この実施の形態1によれば、再生対象のMPEG-TS信号データのPTSの同期の基準となるSTC信号eを再生するSTC再生部2と、STC信号eを補正して補正STC信号fを生成するSTC補正部3と、MPEG-TS信号データを逐次蓄積し、補正STC信号fの値とMPEG-TS信号データのPTSの値が同期したタイミングでMPEG-TS信号データを再生する映像デコーダ部4及び音声デコーダ部5とを備え、STC補正部3が、映像デコーダ部4及び音声デコーダ部5での連続メディアデータの蓄積状況と、映像デコーダ部4及び音声デコーダ部5に蓄積されているMPEG-TS信号データのPTSの値に応じてSTC信号eを補正する。
 このようにすることにより、PTSの値とSTCの値が大きく離れて各メディアのPTSに対してSTCの値が定常的にオフセットを持っているような場合であっても、メディア間で同期を保ちつつ、MPEG-TS信号データの再生を行うことができる。また、MPEG-TS信号データの蓄積状況を考慮してデコーダ部4,5のバッファがバッファオーバー状態やバッファアンダー状態にならないようにSTC信号を補正することから、デコーダ部4,5のバッファにおけるバッファオーバーフローやバッファアンダーフローの発生を抑制することができる。
As described above, according to the first embodiment, the STC reproduction unit 2 that reproduces the STC signal e serving as a reference for the synchronization of the PTS of the MPEG-TS signal data to be reproduced, and the STC signal e are corrected and corrected. The STC correction unit 3 for generating the STC signal f and the MPEG-TS signal data are sequentially accumulated, and the MPEG-TS signal data is reproduced at the timing when the value of the corrected STC signal f and the PTS value of the MPEG-TS signal data are synchronized. The STC correction unit 3 stores the continuous media data storage status in the video decoder unit 4 and the audio decoder unit 5 and the video decoder unit 4 and the audio decoder unit 5. The STC signal e is corrected according to the value of the PTS of the MPEG-TS signal data being processed.
By doing so, even if the PTS value and the STC value are far apart and the STC value has a constant offset with respect to the PTS of each medium, synchronization between the media is performed. The MPEG-TS signal data can be reproduced while maintaining it. In addition, the STC signal is corrected so that the buffers of the decoder units 4 and 5 do not enter the buffer over state or the buffer under state in consideration of the accumulation state of the MPEG-TS signal data. The occurrence of overflow and buffer underflow can be suppressed.
実施の形態2.
 図3は、この発明の実施の形態2によるメディア再生装置の構成を示すブロック図であり、MPEG-2規格に準拠したMPEGデコーダを例として示している。図3において、実施の形態2によるMPEGデコーダは、Demux部1、STC再生部2、STC補正部3a、映像デコーダ部4、音声デコーダ部5及び速度変換部6を備える。Demux部1、STC再生部2、映像デコーダ部4及び音声デコーダ部5は、上記実施の形態1で示した図1の構成と同様である。
Embodiment 2. FIG.
FIG. 3 is a block diagram showing the configuration of a media playback apparatus according to Embodiment 2 of the present invention, and shows an MPEG decoder conforming to the MPEG-2 standard as an example. 3, the MPEG decoder according to the second embodiment includes a demux unit 1, an STC playback unit 2, an STC correction unit 3a, a video decoder unit 4, an audio decoder unit 5, and a speed conversion unit 6. The Demux unit 1, the STC playback unit 2, the video decoder unit 4 and the audio decoder unit 5 have the same configuration as that of FIG. 1 described in the first embodiment.
 STC補正部(補正部)3aは、STC再生部2、映像デコーダ部4、音声デコーダ部5及び速度変換部6にそれぞれ接続している。STC補正部3aは、STC再生部2からSTC信号eを入力する。また、STC補正部3aは、映像デコーダ部4及び音声デコーダ部5に補正STC信号fを出力する一方、映像デコーダ部4から映像蓄積状況gを入力し、音声デコーダ部5から音声蓄積状況hを入力する。さらに、STC補正部3aは、速度変換部6に速度指示信号kを出力する。 The STC correction unit (correction unit) 3a is connected to the STC reproduction unit 2, the video decoder unit 4, the audio decoder unit 5 and the speed conversion unit 6, respectively. The STC correction unit 3a receives the STC signal e from the STC reproduction unit 2. The STC correction unit 3 a outputs the corrected STC signal f to the video decoder unit 4 and the audio decoder unit 5, while receiving the video storage status g from the video decoder unit 4 and the audio storage status h from the audio decoder unit 5. input. Further, the STC correction unit 3 a outputs a speed instruction signal k to the speed conversion unit 6.
 STC補正部3aは、映像蓄積状況g、音声蓄積状況h及びSTC信号eを用いた判定処理でオフセット(Offset)を算出する。この判定処理については図4で後述する。STC補正部3aは、上記式(1)に従って、上記オフセットの値をSTC信号e(STC)の値に加算することにより、補正STC信号f(補正STC)を求める。 The STC correction unit 3a calculates an offset by a determination process using the video accumulation state g, the audio accumulation state h, and the STC signal e. This determination process will be described later with reference to FIG. The STC correction unit 3a obtains the corrected STC signal f (corrected STC) by adding the offset value to the value of the STC signal e (STC) according to the equation (1).
 上述したオフセット算出処理において、STC補正部3aは、オフセットを所定の閾値内で増加させる必要がある場合、速度変換部6へ映像信号iや音声信号jの提示速度を大きくする速度指示信号kを出力するとともに、オフセットの値を徐々に増加させる。一方、オフセットを上記閾値内で減少させる必要がある場合、STC補正部3aは、速度変換部6へ映像信号iや音声信号jの提示速度を小さくする速度指示信号kを出力するとともに、オフセットの値を徐々に減少させる。 In the offset calculation process described above, when the STC correction unit 3a needs to increase the offset within a predetermined threshold, the STC correction unit 3a sends a speed instruction signal k that increases the presentation speed of the video signal i and the audio signal j to the speed conversion unit 6. Outputs and gradually increases the offset value. On the other hand, when it is necessary to reduce the offset within the above threshold, the STC correction unit 3a outputs a speed instruction signal k for reducing the presentation speed of the video signal i and the audio signal j to the speed conversion unit 6, and Decrease the value gradually.
 速度変換部6は、速度指示信号kを入力するための信号線を介してSTC補正部3aに接続するとともに、映像信号iを出力するための映像出力信号線を介して映像デコーダ部4と接続しており、音声信号jを出力するための音声出力信号線を介して音声デコーダ部5と接続している。また、速度変換部6は、速度変換映像信号lを出力するための出力用信号線に接続し、速度変換音声信号mを出力するための出力用信号線に接続している。 The speed conversion unit 6 is connected to the STC correction unit 3a via a signal line for inputting a speed instruction signal k, and connected to the video decoder unit 4 via a video output signal line for outputting a video signal i. And connected to the audio decoder unit 5 through an audio output signal line for outputting the audio signal j. The speed converter 6 is connected to an output signal line for outputting the speed converted video signal l, and is connected to an output signal line for outputting the speed converted audio signal m.
 また、速度変換部6は、映像信号iの提示速度を速度指示信号kで指示された値に変換した速度変換映像信号lを算出し、音声信号jの提示速度を速度指示信号kで指示された値に変換した速度変換音声信号mを算出する。映像信号iの提示速度変換は、例えば映像フレームをリピート又はスキップする方法や、映像フレームの中間画像を生成して出力する方法が考えられる。音声信号jの提示速度変換については、例えば音声信号jのサンプリング周波数を変換する方法や、音声信号jの周期を検出した上で周期単位で挿入や削除を行う方法がある。 The speed converter 6 calculates a speed-converted video signal l obtained by converting the presentation speed of the video signal i into a value designated by the speed instruction signal k, and the presentation speed of the audio signal j is instructed by the speed instruction signal k. The speed-converted audio signal m converted to the calculated value is calculated. As the presentation speed conversion of the video signal i, for example, a method of repeating or skipping a video frame or a method of generating and outputting an intermediate image of the video frame can be considered. As for the presentation speed conversion of the audio signal j, for example, there are a method of converting the sampling frequency of the audio signal j and a method of inserting and deleting in units of periods after detecting the period of the audio signal j.
 次に動作について説明する。
 図4は、図3中のSTC補正部によるSTC補正処理の流れを示すフローチャートであり、この図に沿ってSTC信号eの補正処理について詳細に説明する。
 先ず、STC補正部3aは、上記式(1)に従うSTC補正処理に使用するオフセット(Offset)の値と速度指示信号kで指示する提示速度Vの値を初期化する(ステップST1a)。ここでは、Offset=0、提示速度V=0に設定する。
Next, the operation will be described.
FIG. 4 is a flowchart showing the flow of STC correction processing by the STC correction unit in FIG. 3, and the correction processing of the STC signal e will be described in detail with reference to FIG.
First, the STC correction unit 3a initializes the value of the offset (Offset) used in the STC correction process according to the above equation (1) and the value of the presentation speed V indicated by the speed instruction signal k (step ST1a). Here, Offset = 0 and presentation speed V = 0 are set.
 続いて、STC補正部3aは、外部からの再生終了要求の有無を判定し、要求があればSTC補正処理を終了する(ステップST1a-1)。要求がなければ、STC補正部3aは、映像蓄積状況gとして映像デコーダ部4から入力した映像PES信号cの蓄積量が所定の閾値A1以下であるか否かを判定し、音声蓄積状況hとして音声デコーダ部5から入力した音声PES信号dの蓄積量が所定の閾値A2以下であるか否かを判定する。STC補正部3aは、これら判定結果の論理和の値に応じてデコーダ部4,5の各バッファがニアオーバーフロー状態であるか否かを判定する(ステップST2a)。なお、閾値A1,A2は、上記式(2)及び上記式(3)から求める。 Subsequently, the STC correction unit 3a determines whether or not there is an external reproduction end request, and if there is a request, ends the STC correction process (step ST1a-1). If there is no request, the STC correction unit 3a determines whether or not the accumulation amount of the video PES signal c input from the video decoder unit 4 as the video accumulation status g is equal to or less than a predetermined threshold A1, and as the audio accumulation status h. It is determined whether or not the accumulated amount of the audio PES signal d input from the audio decoder unit 5 is equal to or less than a predetermined threshold A2. The STC correction unit 3a determines whether or not each buffer of the decoder units 4 and 5 is in a near overflow state according to the logical sum value of these determination results (step ST2a). The threshold values A1 and A2 are obtained from the above formula (2) and the above formula (3).
 ステップST2aにおいて、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図4中、NOで示す)であると、STC補正部3aは、ステップST3aの処理に移行する。また、STC補正部3aは、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図4中、YESで示す)である場合、ステップST6aの処理に移行する。 If the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4) in step ST2a, the STC correction unit 3a Move on to processing. If the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a performs the process of step ST6a. Migrate to
 ステップST3aにおいて、STC補正部3aは、映像蓄積状況gとして映像デコーダ部4から入力したPTS値(映像PES信号cの先頭フレームから抽出したPTS値)が補正STC信号fの値以下であるか否かを判定する。また、STC補正部3aは、音声蓄積状況hとして音声デコーダ部5から入力したPTS値(音声PES信号dの先頭フレームから抽出したPTS値)が補正STC信号fの値以下であるか否かを判定する。STC補正部3aは、これら判定結果の論理和の値に応じて再生開始条件を満たしているか否かを判定する。なお、再生開始条件とは、映像PES信号c及び音声PES信号dについてのPTS値が補正STC信号fの値に一致する場合をいう。 In step ST3a, the STC correction unit 3a determines whether the PTS value (PTS value extracted from the first frame of the video PES signal c) input from the video decoder unit 4 as the video accumulation status g is equal to or less than the value of the corrected STC signal f. Determine whether. In addition, the STC correction unit 3a determines whether or not the PTS value (PTS value extracted from the first frame of the audio PES signal d) input from the audio decoder unit 5 as the audio accumulation state h is equal to or less than the value of the correction STC signal f. judge. The STC correction unit 3a determines whether or not the reproduction start condition is satisfied according to the logical sum of these determination results. Note that the reproduction start condition refers to a case where the PTS values for the video PES signal c and the audio PES signal d match the value of the corrected STC signal f.
 ここで、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図4中、NOで示す)であると、STC補正部3aは、ステップST2aの処理に戻る。このとき、映像PES信号cと音声PES信号dの双方においてPTS値で示される時刻よりも補正STC信号fの値で示される時刻の方が進んでいる状態(STC進み状態)であると判定される。 Here, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4), the STC correction unit 3a performs step ST2a. Return to processing. At this time, in both the video PES signal c and the audio PES signal d, it is determined that the time indicated by the value of the corrected STC signal f is ahead of the time indicated by the PTS value (STC advance state). The
 一方、STC補正部3aは、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図4中、YESで示す)であると、ステップST4aの処理に移行する。このとき、映像PES信号cと音声PES信号dの少なくとも一方は、PTS値で示される時刻より補正STC信号fの値で示される時刻の方が遅れている状態(STC遅れ状態)であると判定される。 On the other hand, when the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a performs the process of step ST4a. Migrate to At this time, at least one of the video PES signal c and the audio PES signal d is determined to be in a state in which the time indicated by the value of the corrected STC signal f is delayed from the time indicated by the PTS value (STC delay state). Is done.
 このSTC補正処理で得られた補正STC信号fは、STC補正部3aから映像デコーダ部4及び音声デコーダ部5に出力される。 The corrected STC signal f obtained by this STC correction process is output from the STC correction unit 3a to the video decoder unit 4 and the audio decoder unit 5.
 STC補正部3aは、ステップST3aで映像PES信号c及び音声PES信号dの上記判定結果の論理和が真である場合、映像蓄積状況gにおける映像PES信号cの蓄積量が所定の閾値B1以上であるか否かを判定し、音声蓄積状況hにおける音声PES信号dの蓄積量が所定の閾値B2以上であるか否かを判定する。STC補正部3aは、これら判定結果の論理和の値に応じてデコーダ部4,5の各バッファがニアアンダーフロー状態であるか否かを判定する(ステップST4a)。なお、閾値B1,B2は、上記式(4)及び上記式(5)から求める。 When the logical sum of the determination results of the video PES signal c and the audio PES signal d is true in step ST3a, the STC correction unit 3a has an accumulation amount of the video PES signal c in the video accumulation state g that is equal to or greater than a predetermined threshold B1. It is determined whether or not there is, and it is determined whether or not the accumulation amount of the audio PES signal d in the audio accumulation state h is equal to or greater than a predetermined threshold B2. The STC correction unit 3a determines whether or not each buffer of the decoder units 4 and 5 is in the near underflow state according to the logical sum value of these determination results (step ST4a). The threshold values B1 and B2 are obtained from the above formula (4) and the above formula (5).
 ステップST4aにおいて、STC補正部3aは、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図4中、NOで示す)であると、ステップST6a-1の処理に移行する。このとき、デコーダ部4,5の双方のバッファは、ニアアンダーフロー状態ではないと判定される。 In step ST4a, the STC correction unit 3a determines that the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4). The process proceeds to -1. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the near underflow state.
 また、ステップST4aにおいて、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図4中、YESで示す)である場合、STC補正部3aは、ステップST5aの処理に移行する。このとき、デコーダ部4,5の少なくとも一方のバッファは、ニアアンダーフロー状態であると判定される。 In step ST4a, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a The process proceeds to step ST5a. At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in the near underflow state.
 ステップST5aにおいて、STC補正部3aは、バッファのニアアンダーフロー状態におけるオフセット計算処理を行う。具体的には、STC補正部3aが、映像蓄積状況gにおけるPTS値と音声蓄積状況hにおけるPTS値のうち、最も小さいPTS値に対して上記式(6)及び上記式(7)(若しくは、上記式(8))に従う演算を施すことにより、オフセット(Offset)を算出する。STC補正部3aは、バッファのニアアンダーフロー状態におけるオフセットを求めると、このオフセット値でステップST2aからの処理を実行する。 In step ST5a, the STC correction unit 3a performs an offset calculation process in the near underflow state of the buffer. Specifically, the STC correction unit 3a performs the above expression (6) and the above expression (7) (or the PTS value in the video accumulation situation g and the PTS value in the audio accumulation situation h with respect to the smallest PTS value. An offset is calculated by performing an operation according to the above equation (8). When the STC correction unit 3a obtains the offset in the near underflow state of the buffer, the STC correction unit 3a executes the processing from step ST2a with this offset value.
 ステップST6aにおいて、STC補正部3aは、バッファのニアオーバーフロー状態におけるオフセット計算処理を行う。具体的には、STC補正部3aが、映像蓄積状況gにおけるPTS値と音声蓄積状況hにおけるPTS値のうち、最も大きいPTS値に対して上記式(9)に従う演算を施すことにより、オフセット(Offset)を算出する。STC補正部3aは、バッファのニアオーバーフロー状態におけるオフセットを求めると、ステップST7aの処理に移行する。 In step ST6a, the STC correction unit 3a performs an offset calculation process in the buffer near overflow state. Specifically, the STC correction unit 3a performs an operation according to the above formula (9) on the largest PTS value among the PTS value in the video accumulation situation g and the PTS value in the audio accumulation situation h, thereby offset ( Offset) is calculated. When the STC correction unit 3a obtains the offset in the near overflow state of the buffer, the STC correction unit 3a proceeds to the process of step ST7a.
 ステップST6a-1において、STC補正部3aは、外部からの再生終了要求の有無を判定し、要求があればSTC補正処理を終了する。要求がなければ、STC補正部3aは、ステップST7aに移行して、前回処理からの経過時刻Δtに対して、提示速度Vと経過時刻Δtとの積をオフセットに加える処理を行う。この後、STC補正部3aは、映像蓄積状況gにおける映像PES信号cの蓄積量が映像デコーダ部4のバッファの蓄積可能容量であるか否かを判定し、音声蓄積状況hにおける音声PES信号dの蓄積量が音声デコーダ部5のバッファの蓄積可能容量であるか否かを判定する。STC補正部3aは、これら判定結果の論理和の値に応じてデコーダ部4,5の各バッファがバッファオーバーフロー状態であるか否かを判定する(ステップST8a)。 In step ST6a-1, the STC correction unit 3a determines whether or not there is an external reproduction end request, and if there is a request, ends the STC correction process. If there is no request, the STC correction unit 3a moves to step ST7a and performs a process of adding the product of the presentation speed V and the elapsed time Δt to the offset with respect to the elapsed time Δt from the previous process. Thereafter, the STC correction unit 3a determines whether or not the accumulation amount of the video PES signal c in the video accumulation situation g is the storable capacity of the buffer of the video decoder unit 4, and the audio PES signal d in the audio accumulation situation h. It is determined whether or not the storage amount is the bufferable storage capacity of the audio decoder unit 5. The STC correction unit 3a determines whether or not each buffer of the decoder units 4 and 5 is in a buffer overflow state according to the logical sum value of these determination results (step ST8a).
 ここで、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図4中、NOで示す)であると、STC補正部3aは、ステップST9aの処理に移行する。このとき、デコーダ部4,5の双方のバッファは、オーバーフロー状態ではないと判定される。一方、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図4中、YESで示す)であると、STC補正部3aは、ステップST16aの処理に移行する。このとき、デコーダ部4,5の少なくとも一方のバッファは、オーバーフロー状態であると判定される。 Here, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4), the STC correction unit 3a performs step ST9a. Transition to processing. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in an overflow state. On the other hand, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a performs the process of step ST16a. Migrate to At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in an overflow state.
 STC補正部3aは、デコーダ部4,5の双方のバッファがバッファオーバーフロー状態でないと判定すると、デコーダ部4,5の双方のバッファがバッファアンダー状態であるか否かを判定する(ステップST9a)。具体的には、STC補正部3aが、映像蓄積状況gにおける映像PES信号cの蓄積量が0であるか否かを判定し、音声蓄積状況hにおける音声PES信号dの蓄積量が0であるか否かを判定して、これら判定結果の論理和の値に応じてデコーダ部4,5の各バッファがアンダーフロー状態であるか否かを判定する。 If the STC correction unit 3a determines that both buffers of the decoder units 4 and 5 are not in the buffer overflow state, the STC correction unit 3a determines whether or not both buffers of the decoder units 4 and 5 are in the buffer under-state (step ST9a). Specifically, the STC correction unit 3a determines whether or not the accumulation amount of the video PES signal c in the video accumulation situation g is 0, and the accumulation amount of the audio PES signal d in the audio accumulation situation h is 0. It is determined whether or not each buffer of the decoder units 4 and 5 is in an underflow state according to the logical sum value of these determination results.
 ここで、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図4中、NOで示す)であると、STC補正部3aは、ステップST11aの処理に移行する。このとき、デコーダ部4,5の双方のバッファは、アンダーフロー状態ではないと判定される。 Here, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4), the STC correction unit 3a performs step ST11a. Transition to processing. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the underflow state.
 また、ステップST9aにおいて、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図4中、YESで示す)である場合、STC補正部3aは、ステップST10aの処理に移行する。このとき、デコーダ部4,5の少なくとも一方のバッファは、アンダーフロー状態であると判定される。 In step ST9a, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a The process proceeds to step ST10a. At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in an underflow state.
 ステップST10aにおいて、STC補正部3aは、速度指示信号kで指示する提示速度Vの値を初期化する。ここでは、提示速度V=0に設定する。この後、STC補正部3aは、ステップST2aに戻り、ステップST2aからの上記処理を繰り返す。 In step ST10a, the STC correction unit 3a initializes the value of the presentation speed V indicated by the speed instruction signal k. Here, the presentation speed V = 0 is set. Thereafter, the STC correction unit 3a returns to step ST2a and repeats the above-described processing from step ST2a.
 ステップST11aにおいて、STC補正部3aは、映像蓄積状況gとして映像デコーダ部4から入力した映像PES信号cの蓄積量が所定の閾値A1以下であるか否かを判定し、音声蓄積状況hとして音声デコーダ部5から入力した音声PES信号dの蓄積量が所定の閾値A2以下であるか否かを判定する。STC補正部3aは、これら判定結果の論理和の値に応じてデコーダ部4,5の各バッファがニアオーバーフロー状態であるか否かを判定する。 In step ST11a, the STC correction unit 3a determines whether or not the accumulation amount of the video PES signal c input from the video decoder unit 4 as the video accumulation status g is equal to or less than a predetermined threshold A1, and the audio accumulation status h is audio. It is determined whether or not the accumulated amount of the audio PES signal d input from the decoder unit 5 is equal to or less than a predetermined threshold A2. The STC correction unit 3a determines whether or not each buffer of the decoder units 4 and 5 is in a near overflow state according to the logical sum value of these determination results.
 ここで、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図4中、NOで示す)であると、STC補正部3aは、ステップST12aの処理に移行する。また、STC補正部3aは、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図4中、YESで示す)である場合、ステップST14aの処理に移行する。 Here, if the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4), the STC correction unit 3a performs step ST12a. Transition to processing. If the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a performs the process of step ST14a. Migrate to
 ステップST12aにおいて、STC補正部3aは、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が偽(図4中、NOで示す)であると、ステップST13aの処理に移行する。このとき、デコーダ部4,5の双方のバッファは、ニアアンダー状態ではないと判定される。一方、映像PES信号cについての上記判定結果と音声PES信号dについての上記判定結果との論理和が真(図4中、YESで示す)である場合、STC補正部3aは、ステップST15aの処理に移行する。このとき、デコーダ部4,5の少なくとも一方のバッファは、ニアアンダーフロー状態であると判定される。 In step ST12a, the STC correction unit 3a determines that the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is false (indicated by NO in FIG. 4). Move on to processing. At this time, it is determined that both buffers of the decoder units 4 and 5 are not in the near-under state. On the other hand, when the logical sum of the determination result for the video PES signal c and the determination result for the audio PES signal d is true (indicated by YES in FIG. 4), the STC correction unit 3a performs the process of step ST15a. Migrate to At this time, it is determined that at least one buffer of the decoder units 4 and 5 is in the near underflow state.
 STC補正部3aは、ステップST13aにおいて提示速度を0に近づける処理を実行する。具体的には、STC補正部3aが、提示速度Vが正の値ならば、提示速度Vから所定値γを減算してゆき、提示速度Vが0を下回ると0に戻す。一方、提示速度Vが負の値ならば、提示速度Vに上記所定値γを加算してゆき、提示速度Vが0を上回ると0に戻す処理を行う。なお、所定値γは、正の値(γ>0)であればよい。また、所定値γには、このステップST13a、後述するステップST14a、ステップST15aの各処理においてそれぞれ異なる値を設定してもよい。このようにして、速度指示信号kで指示する提示速度の値を0に近付けた後、STC補正部3aは、ステップST7aの処理に戻る。 The STC correction unit 3a executes processing for bringing the presentation speed close to 0 in step ST13a. Specifically, if the presentation speed V is a positive value, the STC correction unit 3a subtracts a predetermined value γ from the presentation speed V, and returns to 0 when the presentation speed V falls below zero. On the other hand, if the presentation speed V is a negative value, the predetermined value γ is added to the presentation speed V, and when the presentation speed V exceeds 0, the process returns to 0. The predetermined value γ may be a positive value (γ> 0). Also, a different value may be set as the predetermined value γ in each process of step ST13a, step ST14a described later, and step ST15a. Thus, after the value of the presentation speed instruct | indicated with the speed instruction | indication signal k approaches 0, the STC correction | amendment part 3a returns to the process of step ST7a.
 ステップST11aにおいてデコーダ部4,5のバッファがニアオーバーフロー状態であると判定すると、STC補正部3aは、速度指示信号kで指示する提示速度の値に上記所定値γを加算する(ステップST14a)。この後、STC補正部3aは、ステップST7aに戻って、ステップST7aからの上記処理を繰り返す。 If it is determined in step ST11a that the buffers of the decoder units 4 and 5 are in the near overflow state, the STC correction unit 3a adds the predetermined value γ to the value of the presentation speed indicated by the speed instruction signal k (step ST14a). Thereafter, the STC correction unit 3a returns to step ST7a and repeats the above-described processing from step ST7a.
 また、ステップST12aにおいて、デコーダ部4,5のバッファがニアアンダーフロー状態であると判定すると、STC補正部3aは、速度指示信号kで指示する提示速度の値から上記所定値γを減算する(ステップST15a)。この後、STC補正部3aは、ステップST7aに戻って、ステップST7aからの上記処理を繰り返す。 If it is determined in step ST12a that the buffers of the decoder units 4 and 5 are in the near underflow state, the STC correction unit 3a subtracts the predetermined value γ from the value of the presentation speed indicated by the speed instruction signal k ( Step ST15a). Thereafter, the STC correction unit 3a returns to step ST7a and repeats the above-described processing from step ST7a.
 一方、ステップST16aにおいて、STC補正部3aは、映像蓄積状況gにおけるPTS値と音声蓄積状況hにおけるPTS値のうち、最も大きいPTS値に対して、上記式(10)及び上記式(11)に従う演算を施すことにより、オフセット(Offset)を算出する。また、STC補正部3aは、速度指示信号kで指示する提示速度Vの値を初期化する。ここでは、提示速度V=0に設定する。この後、STC補正部3aは、ステップST7aに戻り、ステップST7aからの上記処理を繰り返す。 On the other hand, in step ST16a, the STC correction unit 3a follows the above formula (10) and the above formula (11) with respect to the largest PTS value among the PTS value in the video accumulation situation g and the PTS value in the audio accumulation situation h. By performing the calculation, an offset is calculated. In addition, the STC correction unit 3a initializes the value of the presentation speed V indicated by the speed instruction signal k. Here, the presentation speed V = 0 is set. Thereafter, the STC correction unit 3a returns to step ST7a and repeats the above-described processing from step ST7a.
 STC補正部3aは、再生開始条件が満たされるまで、ステップST2aからステップST16aまでの処理を繰り返す。このようにして求められた補正STC信号fは、STC補正部3aから映像デコーダ部4及び音声デコーダ部5に出力される。映像デコーダ部4及び音声デコーダ部5では、補正STC信号fの値を用いて再生処理を実行し、映像信号i及び音声信号jを出力する。 The STC correction unit 3a repeats the processing from step ST2a to step ST16a until the reproduction start condition is satisfied. The corrected STC signal f obtained in this way is output from the STC correction unit 3a to the video decoder unit 4 and the audio decoder unit 5. The video decoder unit 4 and the audio decoder unit 5 execute a reproduction process using the value of the corrected STC signal f, and output a video signal i and an audio signal j.
 また、STC補正部3aは、映像デコーダ部4及び音声デコーダ部5によるメディア再生中にそのバッファがニアオーバーフロー状態若しくはニアアンダーフロー状態となった場合、上述のようにして速度指示信号kで指示する提示速度を調節し、この提示速度に応じてオフセットの値を逐次修正する。これにより、速度指示信号kを入力した速度変換部6が、速度指示信号kで指示された提示速度に映像信号i及び音声信号jを変換する。 The STC correction unit 3a instructs the speed instruction signal k as described above when the buffer is in a near overflow state or a near underflow state during media reproduction by the video decoder unit 4 and the audio decoder unit 5. The presentation speed is adjusted, and the offset value is sequentially corrected according to the presentation speed. As a result, the speed converter 6 that has received the speed instruction signal k converts the video signal i and the audio signal j to the presentation speed instructed by the speed instruction signal k.
 以上のように、この実施の形態2によれば、映像デコーダ部4及び音声デコーダ部5で再生されたメディアデータの提示速度を指示に応じた値に変換する速度変換部6を備え、STC補正部3aが、映像デコーダ部4及び音声デコーダ部5でのMPEG-TS信号データの蓄積状況に応じて調節した提示速度の値を速度変換部6に指示するので、オフセット調整時の画音の途切れを防ぎつつ、バッファのオーバーフローやアンダーフローの発生を抑えることができる。 As described above, according to the second embodiment, the speed conversion unit 6 that converts the presentation speed of the media data reproduced by the video decoder unit 4 and the audio decoder unit 5 into a value corresponding to the instruction is provided, and STC correction is performed. Since the unit 3a instructs the speed conversion unit 6 on the value of the presentation speed adjusted according to the MPEG-TS signal data accumulation status in the video decoder unit 4 and the audio decoder unit 5, the image sound is interrupted during the offset adjustment. The occurrence of buffer overflow and underflow can be suppressed.
 なお、上記実施の形態1,2では、MPEGデコーダを例として説明したが、MPEG方式の符号化データに限定されるものではない。例えば、AVIデータを再生対象として扱う装置にも適用可能である。 In the first and second embodiments, the MPEG decoder has been described as an example. However, the present invention is not limited to MPEG encoded data. For example, the present invention can be applied to an apparatus that handles AVI data as a reproduction target.
 以上のように、この発明に係るメディア再生装置は、メディア間での同期を保ったメディア再生を安定して行うことができることから、デジタルテレビ受像機等のMPEGデコーダに用いるのに適している。 As described above, the media playback apparatus according to the present invention is suitable for use in an MPEG decoder such as a digital television receiver because it can stably perform media playback while maintaining synchronization between media.

Claims (11)

  1.  再生対象の連続メディアデータの提示時刻の同期の基準となる基準時刻を再生する基準時刻再生部と、
     前記基準時刻を補正して補正基準時刻を生成する補正部と、
     前記連続メディアデータを逐次蓄積し、前記補正基準時刻と前記連続メディアデータの提示時刻が同期したタイミングで前記連続メディアデータを再生するメディア再生部とを備え、
     前記補正部は、前記メディア再生部での連続メディアデータの蓄積状況と、前記メディア再生部に蓄積されている前記連続メディアデータの提示時刻に応じて前記基準時刻を補正するメディア再生装置。
    A reference time playback unit that plays back a reference time that serves as a reference for synchronizing the presentation time of continuous media data to be played back;
    A correction unit that corrects the reference time to generate a corrected reference time;
    A media playback unit that sequentially stores the continuous media data, and plays back the continuous media data at a timing at which the correction reference time and the presentation time of the continuous media data are synchronized;
    The media playback device that corrects the reference time according to a storage status of continuous media data in the media playback unit and a presentation time of the continuous media data stored in the media playback unit.
  2.  補正部は、
     連続メディアデータの蓄積量とメディア再生部の蓄積可能容量に応じた所定の閾値との比較結果に基づいて前記連続メディアデータの蓄積状況を判定し、
     提示時刻の値と基準時刻の値の比較結果に基づいて前記提示時刻のずれ状態を判定し、
     前記判定結果の連続メディアデータの蓄積状況及び前記提示時刻のずれ状態に基づいて前記基準時刻に加算すべきオフセット値を算出し、この算出結果のオフセットを加算した基準時刻を補正基準時刻として前記メディア再生部に出力することを特徴とする請求項1記載のメディア再生装置。
    The correction unit
    Determining the accumulation status of the continuous media data based on a comparison result between the accumulation amount of the continuous media data and a predetermined threshold value corresponding to the accumulation capacity of the media playback unit;
    Based on the comparison result of the value of the presentation time and the value of the reference time, the deviation state of the presentation time is determined,
    An offset value to be added to the reference time is calculated based on the accumulation state of the continuous media data of the determination result and the deviation state of the presentation time. The media playback apparatus according to claim 1, wherein the media playback apparatus outputs to a playback unit.
  3.  連続メディアデータは、MPEG方式で符号化されたデータであり、
     補正部は、前記連続メディアデータの蓄積量と蓄積されている前記連続メディアデータの先頭フレームに付加されたPTS(Presentation Timp Stamp)を提示時刻として、基準時刻を示すSTC(System Time Clock)の値を補正することを特徴とする請求項2記載のメディア再生装置。
    Continuous media data is data encoded in the MPEG format,
    The correction unit uses an accumulated amount of the continuous media data and a PTS (Presentation Timp Stamp) added to the first frame of the accumulated continuous media data as a presentation time, and an STC (System Time Clock) value indicating a reference time The media reproducing apparatus according to claim 2, wherein:
  4.  補正部は、
     連続メディアデータの蓄積量とメディア再生部の蓄積可能容量に応じた所定の閾値との比較結果に基づいて、前記連続メディアデータのニアアンダーフロー状態、ニアオーバーフロー状態及び蓄積正常状態を、前記連続メディアデータの蓄積状況として判定し、
     提示時刻の値と基準時刻の値の大小関係から、前記基準時刻が前記提示時刻よりも進んでいる状態、前記基準時刻が前記提示時刻よりも遅れている状態、及び前記基準時刻と前記提示時刻とが一致している状態を判定し、
     前記連続メディアデータがニアアンダーフロー状態で、前記基準時刻と前記提示時刻とが一致している状態若しくは前記基準時刻が前記提示時刻よりも進んでいる状態であるとの判定結果が得られると、前記連続メディアデータの再生開始が遅れるようにオフセットの値を算出し、
     前記連続メディアデータがニアオーバーフロー状態で、前記基準時刻が前記提示時刻よりも遅れている状態であるとの判定結果が得られると、前記連続メディアデータの再生開始が現時刻となるようにオフセットの値を算出することを特徴とする請求項2記載のメディア再生装置。
    The correction unit
    Based on the comparison result between the storage amount of continuous media data and a predetermined threshold value corresponding to the storable capacity of the media playback unit, the continuous media data indicates the near underflow state, the near overflow state, and the normal storage state of the continuous media data. Judge as the data accumulation status,
    A state in which the reference time is advanced from the presentation time, a state in which the reference time is delayed from the presentation time, and the reference time and the presentation time from the magnitude relationship between the value of the presentation time and the value of the reference time Is determined to match,
    When the determination result that the continuous media data is in a near underflow state, the reference time and the presentation time match or the reference time is ahead of the presentation time is obtained, Calculate the offset value so that the playback start of the continuous media data is delayed,
    When the determination result that the continuous media data is in the near overflow state and the reference time is behind the presentation time is obtained, the offset is set so that the reproduction start of the continuous media data becomes the current time. 3. The media reproducing apparatus according to claim 2, wherein a value is calculated.
  5.  連続メディアデータは、MPEG方式で符号化されたデータであり、
     補正部は、前記連続メディアデータの蓄積量と蓄積されている前記連続メディアデータの先頭フレームに付加されたPTS(Presentation Timp Stamp)を提示時刻として、基準時刻を示すSTC(System Time Clock)の値を補正することを特徴とする請求項4記載のメディア再生装置。
    Continuous media data is data encoded in the MPEG format,
    The correction unit uses an accumulated amount of the continuous media data and a PTS (Presentation Timp Stamp) added to the first frame of the accumulated continuous media data as a presentation time, and an STC (System Time Clock) value indicating a reference time The media reproducing apparatus according to claim 4, wherein the medium is corrected.
  6.  補正部は、
     連続メディアデータの蓄積量とメディア再生部の蓄積可能容量に応じた所定の閾値との比較結果に基づいて、前記連続メディアデータのニアアンダーフロー状態、ニアオーバーフロー状態及び蓄積正常状態を、前記連続メディアデータの蓄積状況として判定し、
     提示時刻の値と基準時刻の値の大小関係から、前記基準時刻が前記提示時刻よりも進んでいる状態、前記基準時刻が前記提示時刻よりも遅れている状態、及び前記基準時刻と前記提示時刻とが一致している状態を判定し、
     前記連続メディアデータがニアアンダーフロー状態で、前記基準時刻と前記提示時刻とが一致している状態若しくは前記基準時刻が前記提示時刻よりも進んでいる状態であるとの判定結果が得られると、前記連続メディアデータの再生開始が遅れるようにオフセットの値を算出し、
     前記連続メディアデータがニアオーバーフロー状態で、前記基準時刻が前記提示時刻よりも遅れている状態であるとの判定結果が得られると、前記連続メディアデータの再生開始が現時刻となるようにオフセットの値を算出する第1の動作状態と、
     前記連続メディアデータの蓄積量と前記メディア再生部の蓄積可能容量に応じた所定の閾値との比較結果に基づいて、前記連続メディアデータの蓄積状況としてアンダーフロー状態及びオーバーフロー状態を判定し、
     前記連続メディアデータがオーバーフロー状態であるとの判定結果が得られると、前記メディア再生部による前記連続メディアデータの再生がスキップするようにオフセットの値を大きくする第2の動作状態とを有し、
     前記第1の動作状態において、前記連続メディアデータがニアアンダーフロー状態と前記連続メディアデータがニアオーバーフロー状態のいずれでもなく、前記基準時刻と前記提示時刻とが一致している状態になると、前記第2の動作状態に移行し、
     前記第2の動作状態において、前記連続メディアデータがアンダーフロー状態であるとの判定結果が得られると、前記第1の動作状態に移行することを特徴とする請求項2記載のメディア再生装置。
    The correction unit
    Based on the comparison result between the storage amount of continuous media data and a predetermined threshold value corresponding to the storable capacity of the media playback unit, the continuous media data indicates the near underflow state, the near overflow state, and the normal storage state of the continuous media data. Judge as the data accumulation status,
    A state in which the reference time is advanced from the presentation time, a state in which the reference time is delayed from the presentation time, and the reference time and the presentation time from the magnitude relationship between the value of the presentation time and the value of the reference time Is determined to match,
    When the determination result that the continuous media data is in a near underflow state, the reference time and the presentation time match or the reference time is ahead of the presentation time is obtained, Calculate the offset value so that the playback start of the continuous media data is delayed,
    When the determination result that the continuous media data is in the near overflow state and the reference time is behind the presentation time is obtained, the offset is set so that the reproduction start of the continuous media data becomes the current time. A first operating state for calculating a value;
    Based on a comparison result between a storage amount of the continuous media data and a predetermined threshold according to a storage capacity of the media playback unit, an underflow state and an overflow state are determined as the storage state of the continuous media data,
    When a determination result that the continuous media data is in an overflow state is obtained, a second operation state in which the offset value is increased so as to skip the playback of the continuous media data by the media playback unit,
    In the first operation state, when the continuous media data is not in either a near underflow state or the continuous media data is in a near overflow state, and the reference time and the presentation time coincide with each other, Transition to the operating state 2
    3. The media reproducing apparatus according to claim 2, wherein, in the second operation state, when a determination result that the continuous media data is in an underflow state is obtained, the media reproduction device shifts to the first operation state.
  7.  連続メディアデータは、MPEG方式で符号化されたデータであり、
     補正部は、前記連続メディアデータの蓄積量と蓄積されている前記連続メディアデータの先頭フレームに付加されたPTS(Presentation Timp Stamp)を提示時刻として、基準時刻を示すSTC(System Time Clock)の値を補正することを特徴とする請求項6記載のメディア再生装置。
    Continuous media data is data encoded in the MPEG format,
    The correction unit uses an accumulated amount of the continuous media data and a PTS (Presentation Timp Stamp) added to the first frame of the accumulated continuous media data as a presentation time, and an STC (System Time Clock) value indicating a reference time The media reproducing apparatus according to claim 6, wherein the medium is corrected.
  8.  メディア再生部を複数備え、
     補正部は、
     複数の前記メディア再生部のうちの少なくとも一つが、連続メディアデータのニアアンダーフロー状態で、かつ基準時刻と提示時刻とが一致している状態若しくは前記基準時刻が前記提示時刻よりも進んでいる状態であるとの判定結果が得られると、前記複数の連続メディアデータのうち最も大きな提示時刻の値を有する連続メディアデータの再生開始が遅れるようにオフセットの値を算出し、
     複数の前記メディア再生部のうちの少なくとも一つが、連続メディアデータのニアオーバーフロー状態で、かつ前記基準時刻が前記提示時刻よりも遅れている状態であるとの判定結果が得られると、前記複数の連続メディアデータのうち最も小さな提示時刻の値を有する連続メディアデータの再生開始が進むようにオフセットの値を算出することを特徴とする請求項4記載のメディア再生装置。
    Multiple media playback units
    The correction unit
    A state in which at least one of the plurality of media playback units is in a near underflow state of continuous media data and the reference time and the presentation time are coincident or the reference time is ahead of the presentation time When the determination result is obtained, the offset value is calculated so that the reproduction start of the continuous media data having the largest presentation time value among the plurality of continuous media data is delayed,
    When a determination result is obtained that at least one of the plurality of media playback units is in a near overflow state of continuous media data and the reference time is delayed from the presentation time, the plurality of media playback units 5. The media playback apparatus according to claim 4, wherein an offset value is calculated so that playback of the continuous media data having the smallest presentation time value among the continuous media data proceeds.
  9.  連続メディアデータは、MPEG方式で符号化されたデータであり、
     補正部は、前記連続メディアデータの蓄積量と蓄積されている前記連続メディアデータの先頭フレームに付加されたPTS(Presentation Timp Stamp)を提示時刻として、基準時刻を示すSTC(System Time Clock)の値を補正することを特徴とする請求項8記載のメディア再生装置。
    Continuous media data is data encoded in the MPEG format,
    The correction unit uses an accumulated amount of the continuous media data and a PTS (Presentation Timp Stamp) added to the first frame of the accumulated continuous media data as a presentation time, and an STC (System Time Clock) value indicating a reference time The media reproducing apparatus according to claim 8, wherein the medium is corrected.
  10.  メディア再生部で再生されたメディアデータの提示速度を指示に応じた値に変換する速度変換部を備え、
     補正部は、前記メディア再生部での連続メディアデータの蓄積状況に応じて調節した提示速度の値を前記速度変換部に指示することを特徴とする請求項1記載のメディア再生装置。
    A speed conversion unit that converts the presentation speed of the media data reproduced by the media reproduction unit into a value according to the instruction;
    2. The media playback apparatus according to claim 1, wherein the correction unit instructs the speed conversion unit of a presentation speed value adjusted in accordance with a state of continuous media data accumulation in the media playback unit.
  11.  連続メディアデータは、MPEG方式で符号化されたデータであり、
     補正部は、前記連続メディアデータの蓄積量と蓄積されている前記連続メディアデータの先頭フレームに付加されたPTS(Presentation Timp Stamp)を提示時刻として、基準時刻を示すSTC(System Time Clock)の値を補正することを特徴とする請求項10記載のメディア再生装置。
    Continuous media data is data encoded in the MPEG format,
    The correction unit uses an accumulated amount of the continuous media data and a PTS (Presentation Timp Stamp) added to the first frame of the accumulated continuous media data as a presentation time, and an STC (System Time Clock) value indicating a reference time The media reproducing apparatus according to claim 10, wherein the medium is corrected.
PCT/JP2008/050352 2008-01-15 2008-01-15 Media reproducer WO2009090728A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2008/050352 WO2009090728A1 (en) 2008-01-15 2008-01-15 Media reproducer
JP2009549919A JPWO2009090728A1 (en) 2008-01-15 2008-01-15 Media playback device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2008/050352 WO2009090728A1 (en) 2008-01-15 2008-01-15 Media reproducer

Publications (1)

Publication Number Publication Date
WO2009090728A1 true WO2009090728A1 (en) 2009-07-23

Family

ID=40885139

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2008/050352 WO2009090728A1 (en) 2008-01-15 2008-01-15 Media reproducer

Country Status (2)

Country Link
JP (1) JPWO2009090728A1 (en)
WO (1) WO2009090728A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014099483A1 (en) * 2012-12-19 2014-06-26 Intel Corporation Clock recovery using remote arrival timestamps

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001245292A (en) * 2000-02-29 2001-09-07 Japan Radio Co Ltd Data receiver, date transmission receiving system and recording medium
JP2004180282A (en) * 2002-11-12 2004-06-24 Matsushita Electric Ind Co Ltd Stream information reproducing apparatus, stream information reproducing method, program, and digital broadcasting receiver
JP2005151434A (en) * 2003-11-19 2005-06-09 Sony Corp Reception device, reception method, recording medium, and program
JP2006229484A (en) * 2005-02-16 2006-08-31 Sony Corp Image processing method and image processing unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001245292A (en) * 2000-02-29 2001-09-07 Japan Radio Co Ltd Data receiver, date transmission receiving system and recording medium
JP2004180282A (en) * 2002-11-12 2004-06-24 Matsushita Electric Ind Co Ltd Stream information reproducing apparatus, stream information reproducing method, program, and digital broadcasting receiver
JP2005151434A (en) * 2003-11-19 2005-06-09 Sony Corp Reception device, reception method, recording medium, and program
JP2006229484A (en) * 2005-02-16 2006-08-31 Sony Corp Image processing method and image processing unit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014099483A1 (en) * 2012-12-19 2014-06-26 Intel Corporation Clock recovery using remote arrival timestamps
US9250646B2 (en) 2012-12-19 2016-02-02 Intel Corporation Clock recovery using remote arrival timestamps

Also Published As

Publication number Publication date
JPWO2009090728A1 (en) 2011-05-26

Similar Documents

Publication Publication Date Title
KR101263522B1 (en) Content receiver, video-audio output timing control method, and content providing system
US8526501B2 (en) Decoder and decoding method based on video and audio time information
US9049474B2 (en) Moving image distribution system and moving image distribution server
US8290353B2 (en) Data processing device and method
US7656947B2 (en) Synchronization device and synchronization method in digital broadcast receiver
US20070286245A1 (en) Digital signal processing apparatus and data stream processing method
JP2009272945A (en) Synchronous reproduction apparatus
JP2010212996A (en) Information processing apparatus and multiplexing processing method
US20050013593A1 (en) Method and apparatus for guaranteeing seamless reproduction of a plurality of data streams
JP4987034B2 (en) Video display device
JP2006254298A (en) Device and method for moving picture reproduction
WO2003067881A1 (en) Information processing apparatus and method
JP4096915B2 (en) Digital information reproducing apparatus and method
WO2009090728A1 (en) Media reproducer
JP5465278B2 (en) Video display device
JP2009290768A (en) Video processing apparatus and video processing method
US20080310647A1 (en) Audio stream processing method, playback apparatus, and output apparatus
JP4212404B2 (en) System clock control apparatus and system clock control method for stream receiver
JP2004248104A (en) Information processor and information processing method
JP2006014079A (en) Digital signal processor and digital signal processing method
JP2005102193A (en) Content receiving apparatus, video/audio output timing control method, and content providing system
JP2008148137A (en) Image encoder
JP2009177303A (en) Video signal processor, and video signal processing method
JP2011035578A (en) Transmitter, receiver, and transmission system
JP2008136001A (en) Encoding method conversion device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08703216

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2009549919

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08703216

Country of ref document: EP

Kind code of ref document: A1