Packet generation apparatus and method
View Patent ↗According to an embodiment, a packet generation apparatus includes: a converter configured to convert Temps Atomique International (TAI) time into an STC counter value; a sampling unit configured to obtain a PCR value by sampling the STC counter value converted by the converter in accordance with a first timing; a packet generator configured to generate a TS packet in which the PCR value obtained by the sampling unit is described, and to output the TS packet in accordance with a second timing; and a timing controller configured to determine the first timing and the second timing.
1. A packet generation apparatus comprising:
a converter configured to convert TAI (Temps Atomique International) time into an STC (System Time Clock) counter value;
a sampling unit configured to obtain a PCR (Program Clock Reference) value by sampling the STC counter value converted by the converter in accordance with a first timing;
a packet generator configured to generate a TS (Transport Stream) packet in which the PCR value obtained by the sampling unit is described, and to output the TS packet in accordance with a second timing; and
a timing controller configured to determine the first timing and the second timing.
2. The packet generation apparatus according to claim 1 , further comprising a reproduction unit configured to reproduce the TAI time from a PTP (Precision Time Protocol) packet.
3. The packet generation apparatus according to claim 1 , further comprising a reproduction unit configured to reproduce the TAI time from a GPS (Global Positioning System) signal.
4. The packet generation apparatus according to claim 1 , further comprising:
a first calculator configured to calculate an audio frame number based on the TAI time;
a second calculator configured to calculate a video field number based on the TAI time; and
a third calculator configured to calculate a video frame number based on the TAI time, wherein the packet generator writes the audio frame number, the video field number, and the video frame number into the generated TS packet before outputting the TS packet.
5. A packet generation method, comprising;
converting TAI (Temps Atomique International) time into an STC (System Time Clock) counter value;
sampling the converted STC counter value in accordance with a first timing;
generating a TS (Transport System) packet in which a sampled PCR (Program Clock Reference) value is described; and
outputting the generated TS packet in accordance with a second timing.