KR20070008069A - Appratus and method for synchronizing audio/video signal - Google Patents

Appratus and method for synchronizing audio/video signal Download PDF

Info

Publication number
KR20070008069A
KR20070008069A KR1020050062988A KR20050062988A KR20070008069A KR 20070008069 A KR20070008069 A KR 20070008069A KR 1020050062988 A KR1020050062988 A KR 1020050062988A KR 20050062988 A KR20050062988 A KR 20050062988A KR 20070008069 A KR20070008069 A KR 20070008069A
Authority
KR
South Korea
Prior art keywords
time
transport stream
delay
clock
output
Prior art date
Application number
KR1020050062988A
Other languages
Korean (ko)
Inventor
성항동
Original Assignee
엘지전자 주식회사
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 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020050062988A priority Critical patent/KR20070008069A/en
Publication of KR20070008069A publication Critical patent/KR20070008069A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/2368Multiplexing of audio and video streams
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43076Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen of the same content streams on multiple devices, e.g. when family members are watching the same movie on different devices
    • 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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4341Demultiplexing of audio and video streams

Abstract

An apparatus and a method for synchronizing an audio/video signal are provided to synchronize wired transmission stream and wireless transmission stream by controlling an output time of a transmission stream at a bit buffer. In an apparatus for synchronizing an audio/video signal, a transmission stream creating part(400) creates transmission streams from a compressed data. A transmission network cluck generating part(410) outputs a transmission network cluck value from a counted cluck value. A synchronizing cluck stamping part(420) inserts the transmission network cluck value in the transmission streams. A first communication interface unit(430) transmits outside the transmission stream which the synchronizing cluck stamping part(420) outputs. A second communication interface unit(440) receives the transmission streams which the first communication interface unit(430) transmits. A time interval controller(450) controls an interval between the transmission streams which the second communication interface unit(440) receives. A decoding part(460) extracts a compressed data from the time interval controlled transmission stream to decode the compressed data.

Description

음성/영상신호의 동기화 장치 및 방법{Appratus and method for synchronizing Audio/video signal}Apparatus and method for synchronizing audio / video signals

도 1은 일반적인 홈씨어터 시스템의 구성도.1 is a block diagram of a general home theater system.

도 2는 음성 및 영상 출력 시스템의 송신부에서 립 동기화 문제를 해결하기 위한 시스템 인코더의 구성을 나타낸 블록도.2 is a block diagram showing a configuration of a system encoder for solving a lip synchronization problem in a transmitter of an audio and video output system.

도 3은 음성 및 영상 출력 시스템의 수신부에서 립 동기화 문제를 해결하기 위한 시스템 디코더의 구성을 나타낸 블록도.3 is a block diagram illustrating a configuration of a system decoder for solving a lip synchronization problem in a receiver of an audio and video output system.

도 4는 본 발명의 음성/영상신호의 동기화 장치의 실시예의 구성을 나타낸 블록도.Figure 4 is a block diagram showing the configuration of an embodiment of an apparatus for synchronizing an audio / video signal of the present invention.

도 5는 도 4의 고정지연 스트림 생성부를 상세하게 나타낸 블록도.FIG. 5 is a detailed block diagram illustrating the fixed delay stream generator of FIG. 4. FIG.

도 6a 및 6b는 전송 스트림이 지연지터 보상버퍼로 입력되고, 출력되는 동작의 실시예를 보인 도면.6A and 6B illustrate an embodiment of an operation in which a transport stream is input to and output from a delay jitter compensation buffer.

도 7은 도 4의 디코딩부를 상세하게 나타낸 블록도.FIG. 7 is a detailed block diagram illustrating the decoding unit of FIG. 4. FIG.

도 8은 본 발명의 음성/영상신호의 동기화 장치의 다른 실시예의 구성을 나타낸 블록도.8 is a block diagram showing the configuration of another embodiment of an apparatus for synchronizing audio / video signals according to the present invention;

도 9는 본 발명의 음성/영상신호의 동기화 방법의 실시예를 나타낸 흐름도.9 is a flowchart illustrating an embodiment of a method for synchronizing audio / video signals according to the present invention.

도 10은 본 발명의 음성/영상신호의 동기화 방법의 다른 실시예를 나타낸 흐 름도.10 is a flowchart illustrating another embodiment of a method for synchronizing an audio / video signal of the present invention.

*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *

400 : 전송 스트림 생성부 410 : 송신 네트워크 클럭 발생부 400: transport stream generator 410: transmission network clock generator

420 : 동기 클럭 스탬핑부 430 : 제 1 통신 인터페이스 수단 420: synchronous clock stamping unit 430: first communication interface means

440 : 제 2 통신 인터페이스 수단 450 : 시간간격 조절부440: second communication interface means 450: time interval adjusting unit

460 : 디코딩부 500 : 지연지터 보상버퍼 460: decoding unit 500: delay jitter compensation buffer

510 : 송신 네트워크 클럭 독출부 520 : 수신 네트워크 클럭 발생부510: transmit network clock reader 520: receive network clock generator

530 : 지연시간 판단부 540 : 스트림 출력시점 판단부530: delay time determination unit 540: stream output time determination unit

550 : 스트림 출력 제어부 700, 800 : 시스템 타임 클럭 복구부550: stream output control unit 700, 800: system time clock recovery unit

710, 810 : 디패킷화부 720, 820 : 비트버퍼 710, 810: depacketization unit 720, 820: bit buffer

730, 830 : 디코더 740, 840 : STC 카운터 730, 830: Decoder 740, 840: STC counter

750, 850 : 데이터 출력 제어부 750, 850: data output control part

본 발명은 음성/영상신호의 동기화 장치 및 방법에 관한 것으로, 무선으로 전송한 복수의 전송 스트림들이 상호간에 일정한 시간 간격을 유지하도록 하고, 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림을 동기화시키는 음성/영상신호의 동기화 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for synchronizing audio / video signals, wherein a plurality of wirelessly transmitted transport streams maintain a constant time interval therebetween, and synchronize a transport stream transmitted by wire and a wirelessly transmitted transport stream. The present invention relates to an apparatus and a method for synchronizing audio / video signals.

멀티미디어 산업이 디지털 시대를 맞이하면서 보다 깨끗하고 선명한 영상을 영상표시장치의 화면에 표시할 수 있게 되었고, 보다 생동감 넘치는 음향효과를 느끼고자 하는 사용자의 요구에 따라서 홈씨어터(Home Theater) 시스템이 출현하게 되었다. 이러한 홈씨어터 시스템으로 인하여 영화관에서의 영상 및 음향 효과를 가정에서도 누릴 수 있게 되어서 그 수요는 점차 증가하고 있는 추세에 있다.As the multimedia industry enters the digital era, it becomes possible to display clearer and clearer images on the screen of a video display device, and the home theater system has emerged in response to user demand for more vivid sound effects. It became. This home theater system is able to enjoy the visual and sound effects in the movie theater at home, the demand is gradually increasing.

상기의 홈씨어터 시스템은 홈씨어터 처리부가 DVD 플레이어 등과 같은 매체재생장치에서 출력되는 영상 및 음성 데이터를 처리하고, 상기 처리한 데이터를 영상 표시장치 및 음성 출력장치로 전송한다. 그러나 홈씨어터 처리부와 영상 표시장치 및 음성 출력장치들이 유선으로만 연결된 경우에는 선(Line)의 길이에 비례하여 신호의 왜곡이 발생할 확률이 증가하고, 영상 표시장치 및 음성 출력장치를 홈씨어터 처리부와 연결하는 선의 길이가 긴 경우에는 선을 특정 공간에 고정하는데 있어서 불편한 문제점이 있었다. In the home theater system, the home theater processor processes video and audio data output from a media player such as a DVD player, and transmits the processed data to a video display device and an audio output device. However, when the home theater processor, the video display device, and the audio output device are connected only by wires, the probability of signal distortion is increased in proportion to the length of the line, and the video display device and the audio output device are connected to the home theater processor. When the length of the connecting line is long, there is an inconvenience in fixing the line in a specific space.

상기 문제를 해결하기 위하여 영상 표시장치 및 음성 출력장치를 홈씨어터 처리부와 무선으로만 연결하여 사용하는 방법이 있다. 그러나 홈씨어터 처리부와 모든 출력장치들을 무선으로 연결하면 데이터의 전송률이 저하되고, 무선 모듈로 인하여 비용이 증가하는 문제점이 있다. In order to solve the problem, there is a method of wirelessly connecting the video display device and the audio output device to the home theater processor. However, when the home theater processing unit and all the output devices are wirelessly connected, data transmission rate is lowered and costs are increased due to the wireless module.

그러므로 최근의 홈씨어터는 홈씨어터 처리부를 영상 표시장치 및 음성 출력장치들과 연결하는데 있어서, 무선 연결과 유선 연결을 동시에 사용하고 있다. 도 1에 도시된 바와 같이 일반적으로 홈씨어터 시스템은 영상표시장치(150)의 인접위치에 홈씨어터 처리부(100) 및 좌·우 프론트(Front) 스피커(130, 140)를 설치하 고, 리어(Rear) 스피커(110, 120)는 사용자의 좌·우 양측의 후방위치에 설치하고 있다. 그리고 상호간에 인접위치에 설치되는 영상표시장치(150), 홈씨어터 처리부(100) 및 프론트 스피커(130, 140)는 유선으로 연결하고, 홈씨어터 처리부(100)와 리어 스피커(110, 120)는 무선으로 연결하고 있다. Therefore, recent home theaters use a wireless connection and a wired connection at the same time to connect the home theater processing unit with the image display device and the audio output devices. As shown in FIG. 1, a home theater system generally includes a home theater processing unit 100 and front and rear front and rear speakers 130 and 140 located at an adjacent position of the image display device 150. Rear) Speakers 110 and 120 are installed at rear positions on both left and right sides of the user. The video display device 150, the home theater processor 100, and the front speakers 130 and 140, which are installed at adjacent positions, are connected by wires, and the home theater processor 100 and the rear speakers 110 and 120 are connected to each other by wires. You are connecting wirelessly.

그러나 상기와 같이 무선 연결과 유선 연결을 동시에 사용하는 경우에는 무선으로 송신한 전송 스트림(Stream)과 유선으로 송신한 전송 스트림간에 동기화의 문제(립 동기화)가 발생한다. 유선으로 전송 스트림을 송/수신하는 경우와 달리, 무선으로 전송 스트림을 송/수신하는 경우에는 전송 스트림을 고주파 신호로 변환하는 과정, 변환된 고주파 신호를 송신하는 과정 및 고주파 신호를 수신하여 전송 스트림을 추출하는 과정이 필요하다. 상기의 과정에 소요되는 시간을 이하에서는 지연시간이라 한다. 상기 지연시간으로 인하여 무선으로 전송 스트림을 송/수신하는 경우는 유선으로 전송 스트림을 송/수신하는 경우에 비하여 소요되는 시간이 증가하고, 이로 인하여 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림간의 동기화 문제가 생긴다. 그러므로 홈씨어터 처리부는 상기의 문제를 해결하기 위하여 시스템 타임 클럭(System time clock)과 타임 스탬프(Time Stamp)를 사용하고 있다.However, when the wireless connection and the wired connection are simultaneously used as described above, a problem of synchronization (lip synchronization) occurs between the transport stream transmitted wirelessly and the transport stream transmitted via wire. Unlike when transmitting / receiving a transport stream by wire, when transmitting / receiving a transport stream by wireless, converting a transport stream into a high frequency signal, transmitting a converted high frequency signal, and receiving a high frequency signal It is necessary to extract the process. The time required for the above process is hereinafter referred to as delay time. When the transmission stream is transmitted / received wirelessly due to the delay time, the time required for the transmission stream is increased compared to the case where the transmission stream is transmitted / received by wire. As a result, the transmission stream transmitted by wire and the transmission stream transmitted by wireless are therefore increased. There is a synchronization problem. Therefore, the home theater processor uses a system time clock and a time stamp to solve the above problem.

도 2는 음성 및 영상 출력 시스템의 송신부에서 립 동기화(Lip. synchronization)를 해결하기 위한 시스템 인코더의 구성을 나타낸 블록도이다. 도시된 바와 같이 시스템 인코더는 패킷화부(200)와 멀티플렉서(210)로 구성된다. FIG. 2 is a block diagram illustrating a configuration of a system encoder for resolving lip synchronization in a transmitter of an audio and video output system. As shown, the system encoder is composed of a packetizer 200 and a multiplexer 210.

상기 패킷화부(200)는 입력받은 음성 및 영상 압축데이터를 타임 스탬프가 포함된 복수의 음성 및 영상 패킷(Packet) 스트림으로 생성한다. 상기 음성 및 영상 압축데이터는 ES(Elementary stream)라 하고, 하나의 프로그램상의 시작부터 종료까지의 일련의 데이터를 압축한 형태이다. 상기 음성 및 영상 압축데이터를 그대로 전송할 경우에는 잡음에 의한 데이터 손실이 발생할 수 있다. 그러므로 패킷화부(200)는 음성 및 영상 압축데이터를 복수의 패킷으로 분할하고, 상기 각 패킷에 연결 정보 및 데이터의 손상 여부에 대한 정보 등을 가진 헤더(Header)를 추가한다. 이로 인하여 수신측에서 데이터를 수신하는데 있어서 발생할 수 있는 오류를 감소시킨다. 또한, 각 패킷의 헤더에는 타임 스탬프가 첨가된다.The packetizer 200 generates the received audio and video compressed data into a plurality of audio and video packet streams including time stamps. The audio and video compressed data is called an elementary stream (ES), and is a form of compressing a series of data from the start to the end on one program. If the audio and video compressed data are transmitted as they are, data loss due to noise may occur. Therefore, the packetizer 200 divides the audio and video compressed data into a plurality of packets, and adds a header having connection information and information on whether or not the data is damaged. This reduces errors that may occur in receiving data at the receiving end. In addition, a time stamp is added to the header of each packet.

상기 타임 스탬프는 표시 타임 스탬프(PTS : Presentation Time Stamp) 또는 복호 타임 스탬프(DTS : Decoding Time Stamp)로 엠펙(MPEG) 표준에 규정된 것으로, 무선으로 전송한 데이터와 유선으로 전송한 데이터를 동기화시키기 위하여 사용된다.The time stamp is a presentation time stamp (PTS) or a decoding time stamp (DTS), which is defined in the MPEG standard, and synchronizes data transmitted over the wire and data transmitted over the wire. To be used.

상기 멀티플렉서(MUX)(210)는 상기 패킷화부(200)가 생성한 각 음성 및 영상 패킷 스트림을 일정한 크기의 전송 스트림으로 생성한다. 하나의 프로그램은 복수의 전송 스트림으로 이루어져 있고, 각 전송 스트림은 그 크기가 고정되어 있다. 상기 멀티플렉서(210)는 전송 스트림을 생성하는데 있어서, 시스템 타임 클럭 발생부(도면 미도시)가 발생시킨 시스템 타임 클럭 정보를 포함한 전송 스트림을 생성한다. 상기 시스템 타임 클럭은 SCR(System Clock Reference) 또는 PCR(Program Clock Reference)로 수신측에서 송신측의 타임 베이스와 동기를 확보하기 위하여 사용한다. The multiplexer (MUX) 210 generates each audio and video packet stream generated by the packetizer 200 as a transport stream having a predetermined size. One program consists of a plurality of transport streams, and each transport stream has a fixed size. The multiplexer 210 generates a transport stream including system time clock information generated by a system time clock generator (not shown) in generating a transport stream. The system time clock is used to secure synchronization with a time base of a transmitter at a receiver by using a system clock reference (SCR) or a program clock reference (PCR).

상기한 바와 같이 송신부의 시스템 인코더는 동기화문제를 해결하기 위하여 음성 및 영상 압축데이터를 시스템 타임 클럭 및 타임 스탬프가 첨가된 전송 스트림으로 생성한다. 상기 생성된 전송 스트림은 외부로 송신된다. As described above, the system encoder of the transmitter generates audio and video compressed data as a transport stream to which a system time clock and a time stamp are added to solve a synchronization problem. The generated transport stream is transmitted to the outside.

도 3은 음성 및 영상 출력 시스템의 수신부에서 립 동기화를 해결하기 위한 시스템 디코더의 구성을 나타낸 블록도이다. 도시된 바와 같이 시스템 디코더는 디멀티플렉서(300)와 디패킷화부(310)로 구성된다. 3 is a block diagram illustrating a configuration of a system decoder for resolving lip synchronization in a receiver of an audio and video output system. As shown, the system decoder includes a demultiplexer 300 and a depacketizer 310.

상기 디멀티플렉서(300)는 입력받은 전송 스트림을 음성 및 영상 패킷 스트림으로 분리한다. 하나의 프로그램은 복수의 전송 스트림으로 이루어져 있으므로, 디멀티플렉서는 복수의 전송 스트림을 프로그램의 진행에 따른 순서로 순차적으로 입력받는다. 또한, 상기 수신한 전송 스트림은 헤더에 시스템 타임 클럭을 포함하고 있으므로, 디멀티플렉서(300)는 상기 전송 스트림에서 시스템 타임 클럭을 추출한다. The demultiplexer 300 separates the received transport stream into a voice and video packet stream. Since one program is composed of a plurality of transport streams, the demultiplexer receives the plurality of transport streams sequentially in order according to the progress of the program. In addition, since the received transport stream includes a system time clock in the header, the demultiplexer 300 extracts a system time clock from the transport stream.

상기 디패킷화부(310)는 상기 디멀티플렉서(300)가 분리한 음성 및 영상 패킷 스트림을 압축데이터로 생성한다. 패킷화된 스트림은 하나의 프로그램상의 시작부터 종료까지의 일련의 데이터를 패킷으로 분할한 형태로 이루어져 있으므로, 디패킷화부(310)는 상기 분할한 패킷을 압축데이터로 생성한다. 또한, 디패킷화부(310)는 상기 음성 및 영상 패킷 스트림의 헤더(Header)에 포함된 표시 타임 스탬프 또는 복호타임 스탬프를 추출한다. The depacketizer 310 generates compressed audio and video packet streams separated by the demultiplexer 300. Since the packetized stream is formed by dividing a series of data from the start to the end on one program into packets, the depacketizer 310 generates the divided packets as compressed data. The depacketizer 310 extracts a display time stamp or a decoding time stamp included in a header of the audio and video packet stream.

상기한 바와 같이 시스템 디코더는 동기화문제를 해결하기 위하여 전송데이터에서 시스템 타임 클럭 및 타임 스탬프를 추출한다. 음성 및 영상 압축데이터는 상기 시스템 디코더에서 추출한 시스템 타임 클럭에 따라서 카운트한 값과 상기 타임 스탬프가 동일하게 되는 시점에 복호되거나 표시된다. 상기 시스템 인코더에서 입력되는 타임 스탬프를 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림간에 지연시간의 차이만큼 상이하게 함으로써, 립 동기화의 문제를 해결할 수 있다.As described above, the system decoder extracts the system time clock and time stamp from the transmission data to solve the synchronization problem. The audio and video compressed data are decoded or displayed at the time when the counted value and the time stamp become the same according to the system time clock extracted by the system decoder. The problem of lip synchronization can be solved by making the time stamp input from the system encoder different by a delay time between the transport stream transmitted by wire and the transport stream transmitted by wireless.

그러나 상기한 립 동기화 문제를 해결하기 위하여 시스템 타임 클럭 및 타임 스탬프를 사용하는 방법은 수신부의 시스템 디코더로 입력되는 전송 스트림들이 지연시간이 동일한 즉, 전송 스트림들이 일정한 시간 간격을 유지하는 경우에만 적용된다. However, the method of using the system time clock and the time stamp to solve the lip synchronization problem is applied only when the transport streams inputted to the system decoder of the receiver have the same delay time, that is, the transport streams maintain a constant time interval. .

무선으로 전송 스트림을 송신하는 경우에는 주변 환경의 영향을 많이 받기때문에, 수신부가 수신한 복수의 전송 스트림들은 지연시간이 상이하므로, 복수의 전송 스트림들이 일정한 시간 간격을 유지할 수 없다. 예를 들면, 송신부가 복수의 전송 스트림들을 동일한 시간 간격으로 송신하였다고 가정한다. 수신부가 수신한 복수의 전송 스트림들은 제 1 전송 스트림과 제 2 전송 스트림과의 시간 간격이 0.03ms이고, 제 2 전송 스트림과 제 3 전송 스트림과의 시간 간격이 0.01ms인 것과 같이, 전송 스트림들의 시간 간격이 상이할 수 있다. 상기와 같이 전송 스트림들의 시간 간격이 일정하지 않은 경우에는 전송 스트림에서 시스템 타임 클럭을 추출할 수 없다. 왜냐하면, 수신부는 전송 스트림에 포함된 시스템 타임 클럭을 일정한 시간 간격으로 특정 시점에서만 추출하기 때문이다. 즉, 상기 특정 시점 이외의 시간에서는 전송 스트림에 포함된 시스템 타임 클럭을 추출할 수 없으므로, 전송 스트 림들의 지연시간이 일정하지 않으면 시스템 타임 클럭을 추출할 수 없게 되어서 송신부와 수신부의 타임 베이스를 확보할 수 없는 문제점이 있었다. Since the transmission streams are wirelessly affected by the surrounding environment, the plurality of transport streams received by the receiver have different delay times, and thus the plurality of transport streams cannot maintain a constant time interval. For example, assume that the transmitter has transmitted a plurality of transport streams at the same time interval. The plurality of transport streams received by the receiver have a time interval of 0.03 ms between the first transport stream and the second transport stream, and a time interval between the second transport stream and the third transport stream is 0.01 ms. The time interval may be different. If the time intervals of the transport streams are not constant as described above, the system time clock cannot be extracted from the transport stream. This is because the receiver extracts the system time clock included in the transport stream only at specific time intervals. That is, since the system time clock included in the transport stream cannot be extracted at a time other than the specific time point, if the delay time of the transmission streams is not constant, the system time clock cannot be extracted to secure the time base of the transmitter and the receiver. There was a problem that could not be done.

그러므로 본 발명의 목적은 무선으로 전송한 복수의 전송 스트림이 일정한 시간 간격을 유지하도록 함으로써 수신부과 송신부의 타임 베이스를 확보하고, 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림을 동기화시키는 음성/영상신호의 동기화 장치 및 방법을 제공하는 데 있다. Therefore, it is an object of the present invention to secure a time base of a receiver and a transmitter by keeping a plurality of transport streams transmitted wirelessly at constant time intervals, and to synchronize the transport streams transmitted by wire and the transport streams transmitted wirelessly. An apparatus and method for synchronizing video signals are provided.

이러한 목적을 이루기 위한 본 발명의 음성/영상 신호의 동기화 장치는 압축데이터를 전송 스트림들로 생성하는 전송 스트림 생성부와, 클럭을 카운트하고, 상기 전송 스트림 생성부가 생성한 전송 스트림이 입력되는 때 상기 카운트 값을 송신 네트워크 클럭값으로 출력하는 송신 네트워크 클럭 발생부와, 상기 송신 네트워크 클럭값을 상기 전송 스트림 생성부가 생성한 전송 스트림들에 삽입하는 동기 클럭 스탬핑부와, 상기 동기 클럭 스탬핑부가 출력한 전송 스트림을 외부로 송신하는 제 1 통신 인터페이스 수단과, 상기 제 1 통신 인터페이스 수단이 송신한 전송 스트림들을 수신하는 제 2 통신 인터페이스 수단과, 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림들이 상호간에 일정한 시간 간격을 유지하도록 시간간격을 조절하는 시간간격 조절부와, 상기 시간간격 조절부가 시간간격을 조절한 전송 스트림에서 압축데이터를 추출하여 디코딩하는 디코딩부로 구성되는 것을 특징으로 한다. The apparatus for synchronizing an audio / video signal according to the present invention for achieving this purpose includes a transport stream generator for generating compressed data as transport streams, a clock count, and a transport stream generated by the transport stream generator when the transport stream is input. A transmission network clock generator for outputting a count value as a transmission network clock value, a synchronous clock stamping unit for inserting the transmission network clock value into transport streams generated by the transport stream generator, and a transmission output by the synchronous clock stamping unit First communication interface means for transmitting the stream to the outside, second communication interface means for receiving the transport streams transmitted by the first communication interface means, and transport streams received by the second communication interface means for a predetermined time from each other Interval to adjust the interval to maintain the interval It extracts the compressed data from the hip, and a transport stream by adjusting the time interval addition and the time interval being composed of a decoding for decoding.

본 발명의 음성/영상 신호의 동기화 방법은 전송 스트림 생성부가 압축데이 터를 전송 스트림으로 생성하고, 상기 생성한 전송 스트림에 동기 클럭 스탬핑부가 송신 네트워크 클럭값을 삽입하며, 상기 송신 네트워크 클럭값이 삽입된 전송 스트림을 제 1 통신 인터페이스 수단이 송신하여 제 2 통신 인터페이스 수단이 수신하고, 상기 제 2 통신 인터페이스 수단에서 전송 스트림이 출력되는 시점의 수신 네트워크 클럭값을 추출하며, 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림을 지연지터 보상버퍼에 저장하고, 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림에서 송신 네트워크 클럭값을 독출하고, 상기 추출한 수신 네트워크 클럭값과 비교하여 전송 스트림의 지연시간을 판단하며, 상기 판단한 전송 스트림의 지연시간이 상기 지연지터 보상버퍼의 지연보상시간과 동일할 경우에 스트림 출력 제어부의 제어로 상기 지연지터 보상버퍼에 저장된 해당 전송 스트림을 출력하며, 상기 출력한 전송 스트림에서 압축데이터로 추출하고, 디코딩하는 것을 특징으로 한다. In the method of synchronizing an audio / video signal according to the present invention, a transport stream generator generates compressed data as a transport stream, a synchronous clock stamping unit inserts a transmission network clock value into the generated transport stream, and the transmission network clock value is inserted. The first communication interface means transmits the received transport stream, which is received by the second communication interface means, extracts a reception network clock value at the time when the transport stream is output from the second communication interface means, and the second communication interface means The received transport stream is stored in a delay jitter compensation buffer, the transmission network clock value is read from the transport stream received by the second communication interface means, and the delay time of the transport stream is determined by comparing with the extracted reception network clock value. The delay time of the determined transport stream is the delay time. If the delay compensation time of the compensation buffer is the same as the delay output control unit outputs the transport stream stored in the delay jitter compensation buffer under the control of the stream output control unit, and extracted and decoded as compressed data from the output transport stream. .

본 발명의 음성/영상 신호의 동기화 방법은 전송 스트림에서 압축데이터, 시스템 타임 클럭 및 타임 스탬프를 추출하고, 상기 압축데이터를 비트버퍼에 저장하며, sys_clk = Stime + Ddejittering인 경우에 데이터 출력 제어부의 제어로 상기 비트버퍼에 저장한 압축데이터를 출력하며, 상기 출력한 압축데이터를 디코더가 디코딩하는 것을 특징으로 한다. 여기서 상기 sys_clk는 상기 추출한 시스템 타임 클럭에 따라서 카운트한 클럭값이고, 상기 Stime는 상기 추출한 타임 스탬프이며, 상기 Ddejittering는 지연보상시간이다. The method of synchronizing an audio / video signal according to the present invention extracts compressed data, a system time clock and a time stamp from a transport stream, stores the compressed data in a bit buffer, and outputs the data when sys_clk = S time + D dejittering . The compressed data stored in the bit buffer is output under the control of the decoder, and the decoder decodes the output compressed data. The sys_clk is a clock value counted according to the extracted system time clock, the S time is the extracted time stamp, and the D dejittering is a delay compensation time.

이하 첨부된 도면을 참조하여 본 발명의 음성/영상신호의 동기화 장치 및 방법을 상세히 설명한다. Hereinafter, an apparatus and method for synchronizing an audio / video signal according to the present invention will be described in detail with reference to the accompanying drawings.

도 4는 본 발명의 음성/영상신호의 동기화 장치의 구성을 나타낸 블록도이다. 도시된 바와 같이 음성/영상신호의 동기화 장치는 압축데이터를 전송 스트림으로 생성하는 전송 스트림 생성부(400)와, 클럭을 카운트하고, 상기 전송 스트림 생성부(400)가 생성한 전송 스트림이 입력되는 때 상기 카운트 값을 송신 네트워크 클럭값을 출력하는 송신 네트워크 클럭 발생부(410)와, 상기 송신 네트워크 클럭값을 상기 전송 스트림 생성부(400)에 삽입하는 동기 클럭 스탬핑부(420)와, 상기 송신 네트워크 클럭값이 삽입된 전송 스트림을 외부로 송신하는 제 1 통신 인터페이스 수단(430)과, 상기 제 1 통신 인터페이스 수단(430)이 송신한 전송 스트림을 수신하는 제 2 통신 인터페이스 수단(440)과, 상기 제 2 통신 인터페이스 수단(440)이 수신한 전송 스트림들이 상호간에 일정한 시간 간격을 유지하도록 시간간격을 조절하는 시간간격 조절부(450)와, 상기 시간간격 조절부(450)가 생성한 전송 스트림에서 압축데이터를 추출하여 디코딩하는 디코딩부(460)로 구성된다. 4 is a block diagram showing the configuration of an apparatus for synchronizing audio / video signals according to the present invention. As shown, the apparatus for synchronizing audio / video signals includes a transport stream generator 400 for generating compressed data as a transport stream, a clock count, and a transport stream generated by the transport stream generator 400 is input. A transmission network clock generator 410 for outputting the count value to a transmission network clock value, a synchronous clock stamping unit 420 for inserting the transmission network clock value into the transport stream generator 400, and the transmission First communication interface means (430) for transmitting the transport stream with the network clock value inserted therein; second communication interface means (440) for receiving the transport stream transmitted by the first communication interface means (430); A time interval controller 450 for adjusting a time interval such that the transport streams received by the second communication interface means 440 maintain a constant time interval therebetween; Group extracts the compressed data from the transport stream generated by the time interval control section 450 is composed of a decoder 460 for decoding.

상기 전송 스트림 생성부(400)는 압축데이터를 타임 스탬프가 포함된 복수의 패킷 스트림으로 생성하는 패킷화부(401)와, 상기 패킷화부(401)가 생성한 각 패킷 스트림에 시스템 타임 클럭을 삽입하여 전송 스트림으로 생성하는 시스템 타임 클럭 첨가부(402)로 구성된다. The transport stream generation unit 400 inserts a system time clock into the packetizer 401 for generating compressed data into a plurality of packet streams including time stamps, and each packet stream generated by the packetizer 401. And a system time clock adder 402 for generating a transport stream.

상기 패킷화부(401)는 압축데이터를 타임 스탬프가 포함된 복수의 패킷 스트림으로 분할한다. 패킷화부(401)는 영상 압축데이터를 전송하는데 있어서 오류의 발생을 감소시키기 위하여, 압축데이터를 패킷으로 분할한다. 상기 압축데이터는 매체재생장치로부터 송신부가 입력받은 음성 또는 영상을 압축한 데이터이다. 그리고 패킷화부(401)는 압축데이터를 패킷으로 분할하는데 있어서, 표시 타임 스탬프 또는 복호 타임 스탬프인 타임 스탬프를 각 패킷 스트림의 헤더에 삽입한다. The packetizer 401 divides the compressed data into a plurality of packet streams including a time stamp. The packetizer 401 divides the compressed data into packets in order to reduce occurrence of an error in transmitting the video compressed data. The compressed data is data obtained by compressing an audio or video received by a transmitter from a medium reproducing apparatus. The packetizer 401 inserts a time stamp, which is a display time stamp or a decoding time stamp, into the header of each packet stream in dividing the compressed data into packets.

상기 시스템 타임 클럭 첨가부(402)는 상기 패킷화부(401)가 생성한 복수의 패킷 스트림을 일정한 크기의 전송 스트림으로 생성한다. 상기 패킷화부(401)가 생성한 복수의 패킷 스트림은 그 크기가 일정하지 않으므로, 시스템 타임 클럭 첨가부(402)는 송신을 위하여 일정한 크기를 갖는 전송 스트림을 생성한다. 예를 들면, MPEG-2의 경우에 전송 스트림은 188byte의 크기를 갖는다. 시스템 타임 클럭 첨가부(410)가 전송 스트림을 생성하는데 있어서, 전송 스트림의 헤더에 시스템 타임 클럭 발생부(도면 미도시)가 발생시킨 시스템 타임 클럭을 포함시킨다. 상기 시스템 타임 클럭은 수신측에서 송신측의 타임 베이스와 동기를 확보하기 위하여 사용하고, MPEG-1의 경우에는 90㎑, MPEG-2의 경우에는 27㎒로 규정되어 있다. 상기 시스템 타임 클럭에 따라 카운트한 값과 타임 스탬프로 음성 또는 영상데이터가 표시되거나 복호되는 시점이 제어된다. The system time clock adder 402 generates a plurality of packet streams generated by the packetizer 401 as transport streams having a constant size. Since the plurality of packet streams generated by the packetizer 401 are not constant in size, the system time clock adding unit 402 generates a transport stream having a constant size for transmission. For example, in the case of MPEG-2, the transport stream has a size of 188 bytes. In generating the transport stream, the system time clock adding unit 410 includes a system time clock generated by the system time clock generator (not shown) in the header of the transport stream. The system time clock is used on the receiving side to ensure synchronization with the transmitting time base. The system time clock is defined as 90 kHz for MPEG-1 and 27 MHz for MPEG-2. The time point at which the audio or video data is displayed or decoded by the counted value and the time stamp is controlled according to the system time clock.

상기 송신 네트워크 클럭 발생부(410)는 클럭을 카운트하고 있다가 전송 스트림이 입력되는 때 카운트한 클럭값을 송신 네트워크 클럭값으로 출력한다. The transmission network clock generator 410 counts a clock and outputs a clock value counted when the transport stream is input as a transmission network clock value.

상기 동기 클럭 스탬핑부(420)는 상기 전송 스트림 생성부(400)가 생성한 전송 스트림에 상기 송신 네트워크 클럭 발생부(410)가 출력한 송신 네트워크 클럭값을 삽입한다. 상기 송신 네트워크 클럭값은 전송 스트림의 헤더 전단에 삽입된다. 동기 클럭 스탬핑부(420)가 송신 네트워크 클럭값을 전송 스트림에 삽입함으로써 무선통신 장치들이 공통된 타임 베이스를 가질 수 있도록 한다. The synchronous clock stamping unit 420 inserts the transmission network clock value output by the transmission network clock generator 410 into the transport stream generated by the transport stream generator 400. The transmit network clock value is inserted at the front of the header of the transport stream. The synchronous clock stamping unit 420 inserts a transmission network clock value into the transport stream so that the wireless communication devices can have a common time base.

상기 제 1 통신 인터페이스 수단(430)은 상기 송신 네트워크 클럭값이 삽입된 전송 스트림을 무선으로 송신한다. 상기 제 1 통신 인터페이스 수단(430)은 송신을 위하여 전송 스트림을 고주파 신호로 변환한다. 상기 제 1 통신 인터페이스 수단(430)은 블루투스 통신 모듈 또는 무선랜 모듈 또는 UWB(Ultra Wideband) 통신 모듈 등으로 구성된다. The first communication interface means 430 wirelessly transmits a transport stream into which the transmission network clock value is inserted. The first communication interface means 430 converts the transport stream into a high frequency signal for transmission. The first communication interface means 430 is composed of a Bluetooth communication module or a wireless LAN module or a UWB (Ultra Wideband) communication module.

상기 제 2 통신 인터페이스 수단(440)은 상기 제 1 통신 인터페이스 수단(430)이 송신한 전송 스트림을 수신한다. 상기 제 2 통신 인터페이스 수단(440)은 상기 제 1 통신 인터페이스 수단(430)과 동종의 모듈로 구성된다. 즉, 제 2 통신 인터페이스 수단(440)은 블루투스 통신 모듈 또는 무선랜 모듈 또는 UWB 통신 모듈 등으로 구성된다.The second communication interface means 440 receives the transport stream transmitted by the first communication interface means 430. The second communication interface means 440 is composed of modules of the same type as the first communication interface means 430. That is, the second communication interface means 440 is composed of a Bluetooth communication module, a WLAN module or a UWB communication module.

상기 시간간격 조절부(450)는 상기 제 2 통신 인터페이스 수단(440)이 수신한 전송 스트림들이 일정한 시간 간격을 유지하도록 시간간격을 조절한다. 상기 제 2 통신 인터페이스 수단(440)이 수신한 전송 스트림들은 송신부가 무선으로 송신한 전송 스트림들이다. 무선으로 전송 스트림들을 송/수신하는 경우에는 주변 환경에 의하여 많은 영향을 받기 때문에 각 전송 스트림마다 상이한 지연시간을 갖는다. 이로 인하여 제 2 통신 인터페이스 수단(440)이 수신한 전송 스트림들은 일정한 시간간격을 유지하지 않는다. 그러므로, 시간간격 조절부(450)는 상기 제 2 통신 인터페이스 수단(440)이 수신한 전송 스트림들이 일정한 시간간격을 유지하도록 시간 간격을 조절한다. The time interval adjusting unit 450 adjusts the time interval such that the transport streams received by the second communication interface means 440 maintain a constant time interval. The transport streams received by the second communication interface means 440 are transport streams transmitted by the transmitter wirelessly. In the case of transmitting / receiving the transport streams wirelessly, since a lot depends on the surrounding environment, each transport stream has a different delay time. As a result, the transport streams received by the second communication interface means 440 do not maintain a constant time interval. Therefore, the time interval adjusting unit 450 adjusts the time interval so that the transport streams received by the second communication interface means 440 maintain a constant time interval.

한편, 도 5는 상기 도 4의 시간간격 조절부를 상세하게 나타낸 블록도이다. 도시된 바와 같이 시간간격 조절부는 제 2 통신 인터페이스 수단이 수신한 복수의 전송 스트림간의 지연시간 차이를 보상하기 위하여 전송 스트림을 일시적으로 저장하는 지연지터 보상버퍼(500)와, 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림에서 송신 네트워크 클럭값을 독출하는 송신 네트워크 클럭 독출부(510)와, 클럭을 카운트하고 상기 제 2 통신 인터페이스에서 전송 스트림이 출력되는 때 카운트한 클럭값을 수신 네트워크 클럭값으로 출력하는 수신 네트워크 클럭 발생부(520)와, 상기 송신 네트워크 클럭 독출부(510)가 독출한 송신 네트워크 클럭과 상기 수신 네트워크 클럭 발생부(520)가 출력한 수신 네트워크 클럭을 비교하여 전송 스트림의 지연시간을 판단하는 지연시간 판단부(530)와, 상기 지연시간 판단부(530)가 판단한 지연시간과 상기 지연지터 보상버퍼(500)의 보상시간으로 지연지터 보상버퍼(500)에 저장된 전송 스트림의 출력시점을 판단하는 스트림 출력시점 판단부(540)와, 상기 스트림 출력시점 판단부(540)가 판단한 각 전송 스트림의 출력시점에 지연지터 보상버퍼(500)에 저장된 해당 전송 스트림이 출력되도록 제어하는 스트림 출력 제어부(550)로 구성된다. 5 is a detailed block diagram illustrating the time interval adjusting unit of FIG. 4. As illustrated, the time interval adjusting unit includes a delay jitter compensation buffer 500 that temporarily stores a transport stream to compensate for delay time differences between a plurality of transport streams received by the second communication interface means, and the second communication interface means. A transmission network clock reading unit 510 for reading a transmission network clock value from the received transport stream, and a clock value counted when the clock is counted and the transport stream is output from the second communication interface as a reception network clock value. Delaying the transport stream by comparing the reception network clock generator 520 to be output with the transmission network clock read by the transmission network clock reader 510 and the reception network clock output by the reception network clock generator 520. Delay time determination unit 530 for determining the time, and the delay time determined by the delay time determination unit 530 The stream output time determination unit 540 and the stream output time determination unit 540 determine the output time of the transport stream stored in the delay jitter compensation buffer 500 based on the compensation time of the delay jitter compensation buffer 500. It is composed of a stream output control unit 550 for controlling to output the corresponding transport stream stored in the delay jitter compensation buffer 500 at the time of output of each transport stream.

상기 지연지터 보상버퍼(500)는 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림을 일시적으로 저장한다. 상기 지연지터 보상버퍼(500)는 전송 스트림을 일시적으로 저장하며 선입력-선출력(FIFO)으로 동작하므로, 지연지터 보상버퍼(500)에 전송 스트림이 저장되는 순서와 출력되는 순서는 동일하다. 지연지터 보상 버퍼(500)에 저장된 전송 스트림은 지연보상시간에서 지연시간을 뺀 시간동안 저장된다. 상기 지연보상시간은 송신부가 제 1 통신 인터페이스 수단에서 전송 스트림을 고주파신호로 변환하는 시점을 기준으로 전송 스트림이 지연지터 보상버퍼(500)에서 출력되는 시점까지의 시간을 기 설정해 놓은 값을 칭한다. 그리고 상기 지연보상시간은 지연지터 보상버퍼(500)의 크기에 비례한다. 왜냐하면, 지연지터 보상버퍼(500)의 크기가 클수록 전송 스트림을 더 오랜시간 저장할 수 있고, 이로 인하여 지연보상시간이 더 증가하기 때문이다. 상기 지연보상시간이 하나의 값으로 기 설정되어 있으므로, 지연지터 보상버퍼(500)에서 출력되는 전송 스트림은 일정한 시간 간격을 유지할 수 있다. The delay jitter compensation buffer 500 temporarily stores the transport stream received by the second communication interface means. Since the delay jitter compensation buffer 500 temporarily stores the transport stream and operates as a pre-input / first output (FIFO), the order in which the transport stream is stored and output in the delay jitter compensation buffer 500 is the same. The transport stream stored in the delay jitter compensation buffer 500 is stored for a time obtained by subtracting the delay time from the delay compensation time. The delay compensation time refers to a value in which a time until the time at which the transport stream is output from the delay jitter compensation buffer 500 is set based on the point in time at which the transmission unit converts the transport stream into a high frequency signal. The delay compensation time is proportional to the size of the delay jitter compensation buffer 500. This is because the larger the size of the delay jitter compensation buffer 500 is, the longer the transport stream can be stored, thereby increasing the delay compensation time. Since the delay compensation time is set to one value, the transport stream output from the delay jitter compensation buffer 500 may maintain a constant time interval.

예를 들면, 지연지터 보상버퍼의 지연보상시간을 0.2ms라고 하고, 지연지터 보상버퍼에 저장된 제 1 전송 스트림의 지연시간이 0.04ms이고, 제 2 전송스트의 지연시간이 0.07ms라고 가정한다. 그러면 지연지터 보상버퍼에 저장된 제 1 전송 스트림은 0.16ms 이후에 출력되고, 제 2 전송 스트림은 0.13ms 이후에 출력된다. 이로 인하여 복수의 전송 스트림은 동일한 지연시간을 갖게 된다. For example, it is assumed that the delay compensation time of the delay jitter compensation buffer is 0.2ms, the delay time of the first transport stream stored in the delay jitter compensation buffer is 0.04ms, and the delay time of the second transmission string is 0.07ms. Then, the first transport stream stored in the delay jitter compensation buffer is output after 0.16 ms, and the second transport stream is output after 0.13 ms. This results in multiple transport streams having the same delay time.

상기 송신 네트워크 클럭 독출부(510)는 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림에서 송신 네트워크 클럭값을 독출한다. 상기 송신 네트워크 클럭값은 각 전송 스트림의 헤더의 전단에 삽입되었으므로, 송신 네트워크 클럭 독출부(510)는 전송 스트림의 헤더의 전단부분을 분리하여 송신 네트워크 클럭값을 독출한다.The transmission network clock reading unit 510 reads the transmission network clock value from the transport stream received by the second communication interface means. Since the transmission network clock value is inserted in front of the header of each transport stream, the transmission network clock reader 510 separates the front end of the header of the transport stream and reads the transmission network clock value.

상기 수신 네트워크 클럭 발생부(520)는 상기 도 4의 송신 네트워크 클럭 발 생부와 동일한 클럭이고, 이 클럭을 카운트 한다. 수신 네트워크 클럭 발생부(520)는 제 2 통신 인터페이스 수단에서 전송 스트림이 출력되는 때 카운트한 값을 수신 네트워크 클럭값을 출력한다. The reception network clock generator 520 is the same clock as the transmission network clock generator of FIG. 4 and counts this clock. The reception network clock generator 520 outputs a reception network clock value which is a value counted when the transport stream is output from the second communication interface means.

상기 지연시간 판단부(530)는 상기 송신 네트워크 클럭 독출부(510)가 독출한 송신 네트워크 클럭값과 상기 수신 네트워크 클럭 발생부(520)가 출력한 수신 네트워크 클럭값의 차로 지연시간을 판단한다. 상기 독출한 송신 네트워크 클럭값은 이미 송신부가 송신한 전송 스트림에 삽입되어 있는 고정된 값이고, 수신 네트워크 클럭값은 상기 제 2 통신 인터페이스 수단이 전송 스트림을 수신할 때의 클럭값이다. 송신 네트워크 클럭과 수신 네트워크 클럭은 동일한 주기이므로, 지연시간 판단부(520)는 상기 송신 네트워크 클럭값과 수신 네트워크 클럭값의 차이로 무선으로 송/수신한 전송 스트림의 지연시간을 판단할 수 있다. 즉, 상기 두 네트워크 클럭은 주기가 동일하므로, 지연시간 판단부(520)는 상기 네트워크 클럭값의 차이를 네트워크 클럭의 주기와 곱함으로써 지연시간을 판단할 수 있다. The delay time determining unit 530 determines a delay time based on a difference between a transmission network clock value read by the transmission network clock reader 510 and a reception network clock value output by the reception network clock generator 520. The read out transmission network clock value is a fixed value already inserted in the transport stream transmitted by the transmitter, and the reception network clock value is a clock value when the second communication interface means receives the transport stream. Since the transmission network clock and the reception network clock are the same period, the delay time determination unit 520 may determine the delay time of the transport stream wirelessly transmitted / received by the difference between the transmission network clock value and the reception network clock value. That is, since the two network clocks have the same period, the delay time determining unit 520 may determine the delay time by multiplying the difference of the network clock values by the period of the network clock.

상기 스트림 출력시점 판단부(540)는 상기 지연시간 판단부(530)가 판단한 지연시간 및 지연지터 보상버퍼(500)의 지연보상시간을 비교하여 상기 지연지터 보상버퍼(500)에 저장된 전송 스트림의 출력시점을 판단한다. 즉, 지연시간을 Dclk라 하고, 지연지터 보상버퍼(500)의 지연보상시간을 Ddejittering이라 하면, 상기 스트림 출력시점 판단부(530)는 상기 두 값을 비교하여 지연지터 보상버퍼(500)에 저장된 전송 스트림을 언제 출력할 것인지의 그 시점을 판단한다. The stream output time determining unit 540 compares the delay time determined by the delay time determining unit 530 with the delay compensation time of the delay jitter compensation buffer 500 to determine the transport stream stored in the delay jitter compensation buffer 500. Determine the output point. In other words, when the delay time is D clk and the delay compensation time of the delay jitter compensation buffer 500 is D dejittering , the stream output time determining unit 530 compares the two values to determine the delay jitter compensation buffer 500. It is determined at that time when to output the transport stream stored in the.

상기 비교결과가 Ddejittering = Dclk인 경우에, 스트림 출력시점 판단부(540)는 지연지터 보상버퍼(500)에 저장된 전송 스트림의 출력시점이 현재라고 판단한다. 지연지터 보상버퍼(500)는 지연보상시간에서 지연시간을 뺀 시간동안 전송 스트림을 저장하므로, 지연보상시간과 지연시간이 동일한 경우에는 전송 스트림을 더 이상 저장하지 않아야 한다. 즉, 지연지터 보상버퍼(500)는 현재 시점을 기준으로 해당 전송 스트림을 출력해야 한다. When the comparison result is D dejittering = D clk , the stream output time determining unit 540 determines that the output time of the transport stream stored in the delay jitter compensation buffer 500 is present. Since the delay jitter compensation buffer 500 stores the transport stream for a time subtracting the delay time from the delay compensation time, the delay jitter compensation buffer 500 should no longer store the transport stream when the delay compensation time is the same as the delay time. That is, the delay jitter compensation buffer 500 should output the corresponding transport stream based on the current time.

상기 비교결과가 Ddejittering > Dclk인 경우에, 스트림 출력시점 판단부(540)는 지연지터 보상버퍼(500)에 저장된 해당 전송 스트림의 출력시점이 현재를 기준으로 특정시간 이후라고 판단한다. 지연지터 보상버퍼(500)는 지연보상시간에서 지연시간을 뺀 시간동안 전송 스트림을 저장하므로, Ddejittering > Dclk인 경우에 스트림 출력시점 판단부(540)는 현재 시점을 기준으로 지연보상시간과 지연시간의 차이만큼의 시간동안 해당 전송 스트림이 지연지터 보상버퍼(500)에 저장되어야 한다고 판단한다.When the comparison result is D dejittering > D clk , the stream output time determiner 540 determines that the output time of the corresponding transport stream stored in the delay jitter compensation buffer 500 is after a specific time based on the present time. Since the delay jitter compensation buffer 500 stores the transport stream for a time obtained by subtracting the delay time from the delay compensation time, the stream output time determination unit 540 outputs a delay compensation time based on the current time when D dejittering > D clk . It is determined that the corresponding transport stream should be stored in the delay jitter compensation buffer 500 for a time equal to the difference in delay time.

상기 비교결과가 Ddejittering < Dclk 인 경우에, 스트림 출력시점 판단부(540)는 지연지터 보상버퍼(500)에 저장된 해당 전송 스트림의 출력시점이 현재를 기준으로 일정 시간 전이라고 판단한다. 지연지터 보상버퍼(500)는 지연보상시간에서 지연시간을 뺀 시간동안 전송 스트림을 저장하므로, 지연보상시간이 지연시간에 비하여 작으면 지연보상시간에서 지연시간을 뺀 값은 마이너스(-)가 된다. 그러므로 스트림 출력시점 판단부(540)는 지연지터 보상버퍼(500)에 저장된 해당 전송 스트림이 이전에 출력되어야 했음을 판단한다. 결론적으로 상기 전송 스트림이 지연지터 보상버퍼(500)에서 출력되면 복수의 전송 스트림간에 일정한 시간 간격을 유지할 수 없으므로, 상기 전송 스트림은 삭제된다. When the comparison result is D dejittering < D clk , the stream output time determiner 540 determines that the output time of the corresponding transport stream stored in the delay jitter compensation buffer 500 is a certain time ago based on the present time. Since the delay jitter compensation buffer 500 stores the transport stream for a time subtracting the delay time from the delay compensation time, if the delay compensation time is smaller than the delay time, the value obtained by subtracting the delay time from the delay compensation time becomes negative (-). . Therefore, the stream output time determination unit 540 determines that the corresponding transport stream stored in the delay jitter compensation buffer 500 should be output before. As a result, when the transport stream is output from the delay jitter compensation buffer 500, the transport stream is deleted because a constant time interval cannot be maintained between the plurality of transport streams.

상기 스트림 출력 제어부(550)는 상기 스트림 출력시점 판단부(540)가 판단한 결과로 지연지터 보상버퍼(500)에 저장된 전송 스트림들의 출력을 제어한다. 즉, 지연지터 보상버퍼(500)에 저장된 전송 스트림을 현재 시점에서 출력시키거나, 일정 시간 이후에 출력시키거나 삭제한다.The stream output controller 550 controls the output of the transport streams stored in the delay jitter compensation buffer 500 as a result determined by the stream output time determiner 540. That is, the transport stream stored in the delay jitter compensation buffer 500 is output at the present time, or output or deleted after a predetermined time.

한편, 도 6a 및 6b는 전송 스트림이 지연지터 보상버퍼로 입력되고, 출력되는 동작의 실시예를 보인 도면이다. 도 6a는 전송 스트림이 지연지터 보상버퍼로 입력되는 동작을 보인 도면이다. 도시된 바와 같이 제 1 내지 제 4 스트림이 지연지터 보상버퍼로 입력된다. 각 스트림의 송신 네트워크 클럭값은 각각 0.1ms 부터 0.4ms까지 0.1ms 단위로 증가한다. 각 스트림이 입력될때의 수신 네트워크 클럭값은 제 1 스트림이 0.4ms, 제 2 스트림이 0.41ms, 제 3 스트림이 0.5ms, 제 4 스트림이 0.72ms이다. 그러므로 각 스트림의 지연시간은 제 1 스트림이 0.3ms, 제 2 스트림이 0.21ms, 제 3 스트림이 0.2ms, 제 4 스트림이 0.32ms가 된다. 상기에서 클럭값이 시간인 것은 클럭값의 주기에 따라서 연산한 값이라고 가정한다. 6A and 6B illustrate an embodiment of an operation in which a transport stream is input to and output from a delay jitter compensation buffer. 6A illustrates an operation in which a transport stream is input to a delay jitter compensation buffer. As shown, the first to fourth streams are input to the delay jitter compensation buffer. The transmission network clock value of each stream increases in 0.1 ms increments from 0.1 ms to 0.4 ms, respectively. The reception network clock values at the time of input of each stream are 0.4 ms for the first stream, 0.41 ms for the second stream, 0.5 ms for the third stream, and 0.72 ms for the fourth stream. Therefore, the delay time of each stream is 0.3 ms for the first stream, 0.21 ms for the second stream, 0.2 ms for the third stream, and 0.32 ms for the fourth stream. In the above description, it is assumed that the clock value is a time calculated according to the period of the clock value.

상기의 실시예에서 지연지터 보상버퍼의 지연보상시간을 0.3ms라고 가정한다. 그러면 제 1 스트림의 경우에는 지연시간과 지연보상시간이 동일하므로, 스트림 출력시점 판단부는 제 1 스트림이 현재 시점에 출력되어야 한다고 판단한다. 현재 시점의 수신 네트워크 클럭값이 0.4ms이므로, 제 1 스트림의 출력시점 역시 수 신 네트워크 클럭값이 0.4ms일때 출력된다. In the above embodiment, it is assumed that the delay compensation time of the delay jitter compensation buffer is 0.3 ms. Then, since the delay time and the delay compensation time are the same in the case of the first stream, the stream output time determining unit determines that the first stream should be output at the present time. Since the reception network clock value is 0.4 ms at the present time, the output time of the first stream is also output when the reception network clock value is 0.4 ms.

그리고 제 2 스트림의 경우에는 지연시간이 보상시간에 비하여 작으므로, 스트림 출력시점 판단부는 특정 시간 경과후에 제 2 스트림을 출력해야 한다고 판단한다. 제 2 스트림이 지연시간과 보상시간이 동일하게 되는 시간은 현재 시점을 기준으로 0.09ms 이후이므로, 현재 수신 네트워크 클럭값에서 0.09ms 후인 0.5ms가 제 2 스트림의 출력시점이 된다. In the case of the second stream, since the delay time is smaller than the compensation time, the stream output time determining unit determines that the second stream should be output after a specific time elapses. Since the delay time and the compensation time of the second stream become equal to each other after 0.09 ms based on the current time point, 0.5 ms, which is 0.09 ms after the current reception network clock value, becomes the output time point of the second stream.

그리고 제 4 스트림의 경우에는 지연시간이 보상시간에 비하여 크므로, 스트림 출력시점 판단부는 제 4 스트림의 출력시점이 현재 시점을 기준으로 특정시간 이전임을 판단한다. 그러므로 상기 제 4 스트림은 삭제되어야 한다.In the case of the fourth stream, since the delay time is larger than the compensation time, the stream output time determining unit determines that the output time of the fourth stream is before the specific time based on the current time point. Therefore, the fourth stream must be deleted.

도 6b는 전송 스트림이 지연지터 보상버퍼에서 출력되는 동작을 보인 도면으로, 상기한 바와 같이 각 스트림이 출력되는 시점의 수신 네트워크 클럭값은 제 1 스트림이 0.4ms, 제 2 스트림이 0.5ms, 제 3 스트림이 0.6ms이고, 제 4 스트림은 삭제된다. 이와 같이 지연지터 보상버퍼로 입력되는 복수의 스트림의 지연시간이 상이한 경우에도, 지연지터 보상버퍼에서 출력되는 복수의 스트림들은 일정한 시간 간격을 유지하게 된다.6B is a diagram illustrating an operation in which a transport stream is output from a delay jitter compensation buffer. As described above, a reception network clock value at a time point when each stream is output is 0.4 ms for the first stream, 0.5 ms for the second stream, and Three streams are 0.6ms, and the fourth stream is deleted. As described above, even when delay times of a plurality of streams input to the delay jitter compensation buffer are different, the plurality of streams output from the delay jitter compensation buffer maintain a constant time interval.

도 7은 상기 도 4의 디코딩부를 상세하게 나타낸 블록도이다. 도시된 바와 같이 디코딩부는 시간간격 조절부가 생성한 전송 스트림을 패킷 스트림으로 생성하고 시스템 타임 클럭을 추출하는 시스템 타임 클럭 복구부(700)와, 상기 패킷 스트림에서 압축데이터를 추출하고 타임 스탬프를 추출하는 디패킷화부(710)와, 상기 디패킷화부(710)가 생성한 압축데이터를 저장하는 비트버퍼(720)와, 상기 비트버퍼 (720)에 저장된 압축데이터를 디코딩하는 디코더(730)와, 상기 시스템 타임 클럭 복구부(700)가 추출한 시스템 타임 클럭에 따라서 클럭값을 카운트하는 시스템 타임 클럭(System Time Clock : 이하 STC라 한다.) 카운터(740)와, 상기 디패킷화부(710)가 추출한 타임 스탬프 및 상기 STC 카운터(740)가 카운트한 클럭값을 비교하여 상기 비트 버퍼(720)에 저장된 압축데이터의 출력을 제어하는 데이터 출력 제어부(750)를 포함하여 구성된다. FIG. 7 is a detailed block diagram illustrating the decoding unit of FIG. 4. As shown, the decoding unit generates a transport stream generated by the time interval controller as a packet stream and extracts a system time clock, and a system time clock recovery unit 700, and extracts compressed data and extracts a time stamp from the packet stream. A depacketizer 710, a bit buffer 720 for storing compressed data generated by the depacketizer 710, a decoder 730 for decoding compressed data stored in the bit buffer 720, and The system time clock (STC) for counting clock values according to the system time clock extracted by the system time clock recovery unit 700, and the time extracted by the depacketizer 710. And a data output controller 750 for comparing the stamp and the clock value counted by the STC counter 740 to control the output of the compressed data stored in the bit buffer 720. The.

상기 시스템 타임 클럭 복구부(700)는 상기 시간간격 조절부가 생성한 일정한 시간 간격을 유지하는 전송 스트림들을 패킷 스트림으로 생성한다. 또한, 상기 시스템 타임 클럭 복구부(700)는 전송 스트림의 헤더의 전단에 존재하는 시스템 타임 클럭을 추출한다. 상기 추출한 시스템 타임 클럭은 수신부에서 송신부의 타임 베이스와 동기를 확보하기 위하여 사용된다. 상기 시스템 타임 클럭 복구부(700)는 일정한 시간간격을 유지하는 전송 스트림들을 입력받으므로, 제 2 통신 인터페이스 수단이 수신한 전송 스트림들이 상이한 지연시간으로 인하여 일정한 시간 간격을 유지하지 않는 경우에도 시스템 타임 클럭을 추출할 수 있다.The system time clock recovery unit 700 generates a transport stream that maintains a predetermined time interval generated by the time interval adjusting unit as a packet stream. In addition, the system time clock recovery unit 700 extracts a system time clock existing at the front end of the header of the transport stream. The extracted system time clock is used by the receiver to secure synchronization with the time base of the transmitter. Since the system time clock recovery unit 700 receives the transport streams maintaining a constant time interval, even if the transport streams received by the second communication interface means do not maintain a constant time interval due to a different delay time, The clock can be extracted.

상기 디패킷화부(710)는 상기 시스템 타임 클럭 복구부(700)가 출력한 패킷 스트림에서 압축데이터를 추출한다. 또한, 상기 디패킷화부(710)는 패킷의 헤더에서 타임 스탬프를 독출한다. The depacketizer 710 extracts compressed data from the packet stream output by the system time clock recovery unit 700. In addition, the depacketizer 710 reads a time stamp from a header of a packet.

상기 비트버퍼(720)는 상기 디패킷화부(710)가 생성한 압축데이터를 저장한다. The bit buffer 720 stores the compressed data generated by the depacketizer 710.

상기 디코더(730)는 상기 비트버퍼(720)에 저장된 압축데이터를 디코딩한다. 상기 비트버퍼(720)에 저장된 압축데이터는 특정 시간에 따라서 디코더(730)로 출력되고, 상기 출력된 압축데이터는 디코더(730)에서 디코딩된다.The decoder 730 decodes the compressed data stored in the bit buffer 720. The compressed data stored in the bit buffer 720 is output to the decoder 730 according to a specific time, and the output compressed data is decoded by the decoder 730.

상기 STC 카운터(740)는 상기 시스템 타임 클럭 복구부(700)가 추출한 시스템 타임 클럭에 따라서 클럭값을 카운트한다. 이로 인하여 송신부와 수신부의 타임베이스가 확보된다. The STC counter 740 counts a clock value according to the system time clock extracted by the system time clock recovery unit 700. This secures the timebases of the transmitter and receiver.

상기 데이터 출력 제어부(750)는 상기 디패킷화부(710)가 추출한 타임 스탬프 및 상기 STC 카운터(740)가 카운트한 클럭값을 비교하여 상기 비트버퍼(720)에 저장된 압축데이터의 출력을 제어한다. 즉, 타임 스탬프와 STC 카운터(740)가 카운트한 클럭값이 동일한 경우에 상기 비트버퍼(720)에 저장된 압축데이터가 출력되도록 제어한다. The data output controller 750 compares the time stamp extracted by the depacketizer 710 and the clock value counted by the STC counter 740 to control the output of the compressed data stored in the bit buffer 720. That is, when the time stamp and the clock value counted by the STC counter 740 are the same, the compressed data stored in the bit buffer 720 is outputted.

상기와 같이 지연보상시간을 동일하게 함으로써 전송 스트림들이 일정한 시간 간격을 형성하도록 하면, 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림간에 지연보상시간만큼 동기가 어긋나게 된다. 예를 들면, 상기 도 6a 및 도 6b에 도시된 바와 같이 제 1 스트림의 송신 네트워크 클럭이 0.1ms이나 제 1 스트림이 출력되는 시점의 수신 네트워크 클럭은 0.4ms가 된다. 그러나 유선으로 전송 스트림을 송/수신하는 경우에는 지연시간이 거의 발생하지 않으므로, 송신부가 유선으로 송신한 제 1 스트림은 수신 네트워크 클럭값이 0.1ms일때 출력된다. 상기한 바와 같이 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림간에, 전송 스트림이 출력되는 시점은 지연지터 보상버퍼의 지연보상시간 만큼의 차이가 발생한다. 그러므로 상기 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림 간에 동기를 맞추어야 한다. As described above, if the transport streams form a constant time interval by making the delay compensation time equal, the synchronization is shifted by the delay compensation time between the transport stream transmitted by wire and the transport stream transmitted by wireless. For example, as shown in FIGS. 6A and 6B, the transmission network clock of the first stream is 0.1 ms, but the reception network clock at the time when the first stream is output is 0.4 ms. However, since the delay time hardly occurs when transmitting / receiving a transport stream by wire, the first stream transmitted by the transmitter by wire is output when the reception network clock value is 0.1 ms. As described above, the time point at which the transport stream is output between the transport stream transmitted over the wire and the transport stream transmitted over the wire is different by the delay compensation time of the delay jitter compensation buffer. Therefore, it is necessary to synchronize the transport stream transmitted by the wire and the transport stream transmitted by wireless.

도 8은 본 발명의 음성/영상신호의 동기화 장치의 다른 실시예를 나타낸 블록도이다. 상기 도 8은 전송 스트림의 동기에만 관심이 있으므로, 전송 스트림을 발생하는 부분은 도면에서 제외되었다. 도시된 바와 같이 전송 스트림을 패킷 스트림으로 생성하고 시스템 타임 클럭을 추출하는 시스템 타임 클럭 복구부(800)와, 상기 패킷 스트림을 압축데이터로 생성하고 타임 스탬프를 추출하는 디패킷화부(810)와, 상기 디패킷화부(810)가 생성한 압축데이터를 저장하는 비트버퍼(820)와, 상기 비트버퍼(820)에 저장된 압축데이터를 디코딩하는 디코더(830)와, 상기 시스템 타임 클럭 복구부(800)가 추출한 시스템 타임 클럭에 따라서 클럭값을 카운트하는 STC 카운터(840)와, 상기 디패킷화부(810)가 추출한 타임 스탬프 및 상기 STC 카운터(840)가 카운트한 클럭값 및 지연보상시간을 비교하여 상기 비트버퍼(820)에 저장된 압축데이터의 출력을 제어하는 데이터 출력 제어부(850)를 포함하여 구성된다.8 is a block diagram showing another embodiment of an apparatus for synchronizing audio / video signals according to the present invention. 8 is only interested in the synchronization of the transport stream, the portion generating the transport stream is omitted from the figure. As shown, a system time clock recovery unit 800 for generating a transport stream as a packet stream and extracting a system time clock, a depacketizer 810 for generating the packet stream as compressed data and extracting a time stamp; A bit buffer 820 for storing the compressed data generated by the depacketizer 810, a decoder 830 for decoding the compressed data stored in the bit buffer 820, and the system time clock recovery unit 800. Compares the STC counter 840 counting a clock value according to the extracted system time clock, the time stamp extracted by the depacketizer 810, the clock value counted by the STC counter 840, and the delay compensation time. It includes a data output control unit 850 for controlling the output of the compressed data stored in the bit buffer 820.

상기에서 데이터 출력 제어부(850)는 상기 STC 카운터(840)가 카운트한 클럭값 및 상기 디패킷화부(810)가 추출한 타임 스탬프 및 지연보상시간으로 비트버퍼(820)에 저장된 압축데이터의 출력을 제어한다. 유선으로 송신한 전송 스트림은 무선으로 송신한 전송 스트림에 비하여 재생 또는 복호되는 시점이 지연보상시간만큼 빠르기 때문에, 데이터 출력 제어부(850)는 비트버퍼에 저장된 압축데이터의 출력시점을 제어하는데 있어서, 지연보상시간을 고려해야 한다. The data output controller 850 controls the output of the compressed data stored in the bit buffer 820 based on the clock value counted by the STC counter 840 and the time stamp and delay compensation time extracted by the depacketizer 810. do. Since the transport stream transmitted by wire is reproduced or decoded by the delay compensation time faster than the transport stream transmitted by wireless, the data output control unit 850 controls the output time of the compressed data stored in the bit buffer. The compensation time must be taken into account.

그러므로 데이터 출력 제어부(850)는 STC 카운터(840)가 카운트한 클럭값을 타임 스탬프와 지연보상시간을 합한 값과 비교한다. 시스템 타임 클럭을 sys_clk라 하고, 타임 스탬프를 Stime라 하고, 지연보상시간을 Ddejittering 이라 하면, 데이터 출력 제어부(850)는 sys_clk = Stime + Ddejittering일때 비트버퍼(820)에 저장된 해당 압축데이터가 출력되도록 제어한다. 이로 인하여, 음성 또는 영상이 디코딩되는 시간을 지연보상시간만큼 늦게 함으로써, 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림이 동기된다. 상기 지연보상시간은 지연지터 보상버퍼의 크기에 따라서 기 설정되어 있는 값이기 때문에 데이터 출력 제어부(850)로 입력되는 과정은 생략한다. Therefore, the data output controller 850 compares the clock value counted by the STC counter 840 with the sum of the time stamp and the delay compensation time. If the system time clock is sys_clk, the time stamp is S time , and the delay compensation time is D dejittering , the data output control unit 850 stores the corresponding compressed data stored in the bit buffer 820 when sys_clk = S time + D dejittering. Control the output. Therefore, by delaying the time at which the audio or video is decoded by the delay compensation time, the transport stream transmitted by wire and the transport stream transmitted by wireless are synchronized. Since the delay compensation time is a preset value according to the size of the delay jitter compensation buffer, the process input to the data output controller 850 is omitted.

그리고 데이터 출력 제어부(850)는 sys_clk < Stime + Ddejittering일때 비트버퍼(820)에 저장된 해당 압축데이터가 현재 시점을 기준으로 일정 시간 이후에 출력되도록 한다. sys_clk < Stime + Ddejittering의 시점에서 비트버퍼(820)에 저장된 전송 스트림을 출력하면, 유선으로 송신한 전송 스트림이 무선으로 송신한 전송 스트림에 비하여 더빨리 재생 또는 복호된다. 그러므로, 현재 시점을 기준으로 특정 시간 이후에 비트버퍼(820)에 저장된 해당 압축데이터를 출력해야 한다. In addition, when sys_clk <S time + D dejittering, the data output control unit 850 outputs the corresponding compressed data stored in the bit buffer 820 after a predetermined time from the current time point. When the transport stream stored in the bit buffer 820 is output at the time of sys_clk < S time + D dejittering , the transport stream transmitted by wire is reproduced or decoded faster than the transport stream transmitted by wireless. Therefore, the compressed data stored in the bit buffer 820 must be output after a specific time based on the current time.

또한, 데이터 출력 제어부(850)는 sys_clk > Stime + Ddejittering일때 비트버퍼(820)에 저장된 해당 압축데이터를 삭제한다. sys_clk > Stime + Ddejittering 의 시점에서 비트버퍼(820)에 저장된 압축데이터를 출력하면, 유선으로 송신한 전송 스트림은 무선으로 송신한 전송 스트림에 비하여 더 늦게 재생 또는 복호된다. 그러므로, 해당 전송 스트림은 삭제되어야 한다. 왜냐하면, 재생 또는 복호 시간을 늦추는 것은 가능하나 빨리 앞당기는 것은 불가능하기 때문이다. In addition, the data output controller 850 deletes the compressed data stored in the bit buffer 820 when sys_clk> S time + D dejittering . When the compressed data stored in the bit buffer 820 is output at the time of sys_clk> S time + D dejittering , the transport stream transmitted by wire is reproduced or decoded later than the transport stream transmitted by wireless. Therefore, the transport stream must be deleted. This is because it is possible to slow down the playback or decryption time, but it is not possible to advance it earlier.

상기 비트버퍼(820)는 그 크기가 유선으로 송신한 전송 스트림을 고정된 지연시간 만큼 저장할 수 있어야 한다. 상기 비트버퍼(820)의 크기는 압축데이터를 전송한 속도와 지연보상시간의 곱으로 표시된다. 예를 들면, 압축데이터의 전송속도가 6Mbps이고 지연보상시간이 100ms라 하면, 상기 비트버퍼의 크기는 6Mbps×100ms = 600K비트가 된다. The bit buffer 820 should be able to store a transport stream transmitted by wire in size by a fixed delay time. The size of the bit buffer 820 is expressed as the product of the transmission speed of the compressed data and the delay compensation time. For example, if the transmission speed of the compressed data is 6Mbps and the delay compensation time is 100ms, the size of the bit buffer is 6Mbps x 100ms = 600K bits.

한편, 도 9는 본 발명의 음성/영상신호의 동기화 방법의 실시예를 나타낸 흐름도이다. 도시된 바와 같이 단계(S100)에서 압축데이터를 전송 스트림으로 생성한다. 압축데이터는 매체재생장치로부터 수신한 음성 또는 영상를 압축한 데이터이고, 원활한 송신을 위하여 패킷화부(401)는 압축데이터를 패킷의 형태로 변환한다. 그리고 음성 또는 영상이 복호 또는 재생되는 출력시점을 결정하는 타임 스탬프가 각 패킷 스트림의 헤더에 삽입된다. 그리고 시스템 타임 클럭 첨가부(402)는 송신부와 수신부의 타임 베이스를 맞추기 위하여 상기 패킷 스트림에 시스템 타임 클럭을 삽입하고, 패킷 스트림을 고정된 크기의 전송 스트림으로 생성한다. 9 is a flowchart illustrating an embodiment of a method for synchronizing an audio / video signal according to the present invention. As shown in step S100, compressed data is generated as a transport stream. The compressed data is data obtained by compressing an audio or video received from the medium reproducing apparatus. For smooth transmission, the packetizer 401 converts the compressed data into a packet form. A time stamp for determining an output time point at which the audio or video is decoded or reproduced is inserted in the header of each packet stream. The system time clock adder 402 inserts a system time clock into the packet stream to match the time base of the transmitter and the receiver, and generates the packet stream as a transport stream having a fixed size.

다음 단계(S102)에서 전송 스트림에 송신 네트워크 클럭을 삽입한다. 송신 네트워크 클럭 발생부(410)는 전송 스트림이 송신 네트워크 클럭 발생부(410)로 입력되는 시점의 클럭값을 출력한다. 동기 클럭 스탬핑부(420)는 상기 출력된 송신 네트워크 클럭값을 전송 스트림의 헤더의 전단에 삽입한다. In the next step S102, a transmission network clock is inserted into the transport stream. The transmission network clock generator 410 outputs a clock value at the time when the transport stream is input to the transmission network clock generator 410. The synchronous clock stamping unit 420 inserts the output transmission network clock value in front of the header of the transport stream.

다음 단계(S104)에서 제 1 통신 인터페이스 수단(430)은 송신 네트워크 클럭 값이 첨가된 전송 스트림을 외부로 송신한다. 상기 제 1 통신 인터페이스 수단(430)이 송신한 전송 스트림을 제 2 통신 인터페이스 수단(440)이 수신한다. In a next step S104, the first communication interface means 430 transmits the transport stream to which the transmission network clock value is added. The second communication interface means 440 receives the transport stream transmitted by the first communication interface means 430.

다음 단계(S106)에서 수신 네트워크 클럭값을 추출한다. 수신 네트워크 클럭 발생부(520)는 제 2 통신 인터페이스 수단(440)에서 전송 스트림이 출력되는 시점의 클럭값을 출력한다. 이로 인하여 제 2 통신 인터페이스 수단(440)이 전송 스트림을 수신할 때의 수신 네트워크 클럭값을 추출할 수 있다. In a next step S106, the reception network clock value is extracted. The reception network clock generator 520 outputs a clock value at the time when the transport stream is output from the second communication interface means 440. This allows the second communication interface means 440 to extract the received network clock value when receiving the transport stream.

다음 단계(S108)에서 제 2 통신 인터페이스 수단이 수신한 전송 스트림이 지연지터 보상버퍼에 저장된다. 제 2 통신 인터페이스 수단(440)이 수신한 복수의 전송 스트림은 주변환경에 의하여 지연시간이 상이할 수 있으므로, 각 전송 스트림이 일정한 시간 간격을 유지하도록 하기 위하여 지연지터 보상버퍼(500)에 저장한다. In a next step S108, the transport stream received by the second communication interface means is stored in the delay jitter compensation buffer. Since the plurality of transport streams received by the second communication interface means 440 may have different delay times depending on the surrounding environment, the plurality of transport streams are stored in the delay jitter compensation buffer 500 so that each transport stream maintains a constant time interval. .

다음 단계(S110)에서 송신 네트워크 클럭값을 독출하여 전송 스트림의 지연시간을 판단한다. 송신 네트워크 클럭 독출부(510)는 전송 스트림을 입력받아서 전송 스트림의 헤더의 전단부분에 위치한 송신 네트워크 클럭값을 독출한다. 그리고 지연시간 판단부(520)는 수신 네트워크 클럭값과 송신 네트워크 클럭값으로 전송 스트림의 지연시간을 판단한다. In a next step S110, the transmission network clock value is read to determine the delay time of the transport stream. The transmission network clock reading unit 510 receives the transport stream and reads the transmission network clock value located at the front end of the header of the transport stream. The delay time determining unit 520 determines the delay time of the transport stream using the reception network clock value and the transmission network clock value.

다음 단계(S112)에서 스트림 출력시점 판단부는 지연시간과 지연보상시간이 동일한지의 여부를 판단한다. 상기 단계(S112)의 판단결과 지연시간과 지연보상시간이 동일하면 단계(S114)에서 지연지터 보상버퍼에 저장된 해당 전송 스트림이 출력된다. 지연시간과 지연보상시간이 동일하면 스트림 출력시점 판단부(530)는 지연지터 보상버퍼(500)에 저장된 전송 스트림이 현재 시점에 출력되어야 한다고 판단 하고, 스트림 출력 제어부(540)의 제어로 지연지터 보상버퍼(500)에 저장된 전송 스트림이 출력된다. In a next step S112, the stream output time determining unit determines whether the delay time and the delay compensation time are the same. As a result of the determination in step S112, if the delay time and the delay compensation time are the same, the corresponding transport stream stored in the delay jitter compensation buffer is output in step S114. If the delay time and the delay compensation time are the same, the stream output time determining unit 530 determines that the transport stream stored in the delay jitter compensation buffer 500 should be output at the present time, and the delay jitter is controlled by the stream output control unit 540. The transport stream stored in the compensation buffer 500 is output.

상기 단계(S112)의 판단결과 지연시간과 지연보상시간이 동일하지 않으면 단계(S116)에서 지연시간이 지연보상시간보다 작은지의 여부를 판단한다. 상기 단계(S116)의 판단결과 지연시간이 지연보상시간보다 작으면, 단계(S118)에서 지연지터 보상버퍼에 저장된 해당 전송 스트림은 현재 시점을 기준으로 지연시간과 지연보상시간의 차이만큼의 시간 이후에 출력된다. 지연시간이 지연보상시간에 비하여 작은경우에는 스트림 출력시점 판단부(530)는 지연지터 보상버퍼(500)에 저장된 전송 스트림이 현재 시점을 기준으로 특정시간 이후에 출력되어야 한다고 판단한다. 그리고 스트림 출력 제어부(540)는 지연시간과 지연보상시간의 차이만큼의 시간후에 지연지터 보상버퍼(500)에 저장된 해당 전송 스트림이 출력되도록 제어한다. As a result of the determination in step S112, if the delay time and the delay compensation time are not the same, it is determined in step S116 whether the delay time is smaller than the delay compensation time. If the delay time is smaller than the delay compensation time as a result of the determination in step S116, the corresponding transport stream stored in the delay jitter compensation buffer in step S118 is equal to the difference between the delay time and the delay compensation time based on the current time point. Is output to If the delay time is smaller than the delay compensation time, the stream output time determination unit 530 determines that the transport stream stored in the delay jitter compensation buffer 500 should be output after a specific time on the basis of the current time. The stream output control unit 540 controls the corresponding transport stream stored in the delay jitter compensation buffer 500 to be output after a time equal to the difference between the delay time and the delay compensation time.

상기 단계(S116)의 판단결과 지연시간이 지연보상시간보다 작지 않은 경우에, 단계(S120)에서 지연지터 보상버퍼에 저장된 해당 전송 스트림을 삭제한다. 지연시간이 지연보상시간에 비하여 작지 않은 경우에는 스트림 출력시점 판단부(530)는 지연지터 보상버퍼(500)에 저장된 해당 전송 스트림이 현재 시점을 기준으로 일정시간 이전에 출력되었어야 한다고 판단한다. 그러므로 스트림 출력 제어부(540)는 해당 전송 스트림을 삭제한다. When the delay time is not smaller than the delay compensation time as a result of the determination in step S116, the corresponding transport stream stored in the delay jitter compensation buffer is deleted in step S120. If the delay time is not smaller than the delay compensation time, the stream output time determination unit 530 determines that the corresponding transport stream stored in the delay jitter compensation buffer 500 should have been output before a predetermined time on the basis of the current time. Therefore, the stream output control unit 540 deletes the transport stream.

다음 단계(S122)에서 디코딩부는 전송 스트림에서 압축데이터를 추출하고, 디코딩한다. 시스템 타임 클럭 복구부(700)는 전송 스트림을 패킷 스트림으로 생성하고, 상기 전송 스트림의 헤더에서 시스템 타임 클럭을 추출한다. 디패킷화부 (710)는 패킷 스트림에서 압축데이터를 추출하고, 상기 패킷 스트림의 헤더에서 타임 스탬프를 추출한다. 디패킷화부(710)가 출력한 압축데이터는 비트버퍼(720)에 저장되고, 상기 비트버퍼(720)는 데이터 출력 제어부(750)의 제어로 STC 카운터(740)가 카운트한 클럭값과 타임 스탬프가 동일한 시간에 출력된다. 상기 비트버퍼(720)에서 출력된 압축데이터는 디코더(730)로 입력되어 디코딩된다.In the next step S122, the decoding unit extracts and decodes the compressed data from the transport stream. The system time clock recovery unit 700 generates a transport stream as a packet stream, and extracts a system time clock from the header of the transport stream. The depacketizer 710 extracts compressed data from the packet stream and extracts a time stamp from the header of the packet stream. The compressed data output by the depacketizer 710 is stored in the bit buffer 720, and the bit buffer 720 is clocked and time stamped by the STC counter 740 under the control of the data output controller 750. Is output at the same time. The compressed data output from the bit buffer 720 is input to the decoder 730 and decoded.

한편, 도 10은 본 발명의 음성/영상신호의 동기화 방법의 다른 실시예를 나타낸 흐름도이다. 도시된 바와 같이 단계(S200)에서 시스템 타임 클럭 복구부 및 디패킷화부가 전송 스트림에서 압축데이터를 추출하고, 시스템 타임 클럭 및 타임 스탬프를 추출한다. 10 is a flowchart illustrating another embodiment of a method for synchronizing audio / video signals according to the present invention. As shown in FIG. 2, the system time clock recovery unit and the depacketizer extract the compressed data from the transport stream, and extract the system time clock and time stamp.

다음 단계(S202)에서 비트버퍼가 압축데이터를 저장한다. 유선으로 전송한 전송 스트림과 무선으로 전송한 전송 스트림과의 동기를 맞추기 위하여 비트버퍼(820)는 상기 디패킷화부(810)가 생성한 압축데이터를 저장한다. In a next step S202, the bit buffer stores the compressed data. The bit buffer 820 stores the compressed data generated by the depacketizer 810 in order to synchronize the transport stream transmitted by wire and the transport stream transmitted by wireless.

다음 단계(S204)에서 데이터 출력 제어부는 sys_clk = Stime + Ddejittering인지의 여부를 판단한다. sys_clk는 상기 시스템 타임 클럭 복구부(520)가 추출한 시스템 타임 클럭에 따라서 STC 카운터(840)가 클럭을 카운트한 클럭값이고, Stime은 상기 디패킷화부(810)가 추출한 타임 스탬프이며, Ddejittering은 지연보상시간이다. 무선으로 송신한 전송 스트림과 유선으로 송신한 전송 스트림은 지연보상시간만큼의 동기가 어긋나 있으므로, 지연보상시간만큼 유선으로 송신한 전송 스트림의 재생 또는 복호시간을 지연시켜야 한다. 그러므로 데이터 출력 제어부(850)는 sys_clk = Stime + Ddejittering이 되어 현재 시점에 비트버퍼(820)에 저장되어 있는 해당 압축데이터를 출력해야 하는지의 여부를 판단한다. In a next step S204, the data output controller determines whether sys_clk = S time + D dejittering . sys_clk is a clock value obtained by the STC counter 840 counting a clock according to the system time clock extracted by the system time clock recovery unit 520, S time is a time stamp extracted by the depacketizer 810, and D dejittering. Is the delay compensation time. Since the transmission stream transmitted wirelessly and the transmission stream transmitted by wire differ from each other by the delay compensation time, the reproduction or decoding time of the transport stream transmitted by wire is delayed by the delay compensation time. Therefore, the data output controller 850 determines whether sys_clk = S time + D dejittering to output the corresponding compressed data stored in the bit buffer 820 at the present time.

상기 단계(S204)의 판단결과 sys_clk = Stime + Ddejittering면, 단계(S206)에서 데이터 출력 제어부는 비트 버퍼에 저장된 해당 압축데이터가 출력되도록 제어한다. sys_clk = Stime + Ddejittering일때 무선으로 송신한 전송 스트림과 유선으로 송신한 전송 스트림의 동기가 맞는 시점이므로, 데이터 출력 제어부(850)는 비트버퍼(820)에 저장된 해당 압축데이터가 출력되도록 한다. As a result of the determination of step S204, if sys_clk = S time + D dejittering , in step S206, the data output control unit controls to output the corresponding compressed data stored in the bit buffer. When sys_clk = S time + D dejittering, the synchronization of the wirelessly transmitted transport stream and the wired transport stream is synchronized, so that the data output control unit 850 outputs the corresponding compressed data stored in the bit buffer 820.

상기 단계(S204)의 판단결과 sys_clk = Stime + Ddejittering이 아니면, 단계(S208)에서 sys_clk < Stime + Ddejittering인지의 여부를 판단한다. If it is determined in step S204 that sys_clk = S time + D dejittering , it is determined in step S208 whether sys_clk <S time + D dejittering .

상기 단계(S208)의 판단결과 sys_clk < Stime + Ddejittering이면, 단계(S200)에서 데이터 출력 제어부(850)는 Stime + Ddejittering - sys_clk 만큼의 시간 이후에 비트버퍼(820)에 저장된 해당 압축데이터가 출력되도록 제어한다. sys_clk < Stime + Ddejittering의 시점에서는 유선으로 송신한 전송데이터가 무선으로 송신한 전송데이터에 비하여 더 빨리 재생 또는 복호되므로, 특정 시간 이후에 유선으로 송신한 압축데이터가 출력되어야 한다. If the result of the determination in step S208 is sys_clk <S time + D dejittering , in step S200, the data output controller 850 compresses the corresponding compression stored in the bit buffer 820 after a time as S time + D dejittering − sys_clk. Control to output data. At the time of sys_clk <S time + D dejittering , since the transmission data transmitted by wire is reproduced or decoded faster than the transmission data transmitted by wireless, compressed data transmitted by wire after a specific time should be output.

상기 단계(S208)의 판단결과 sys_clk < Stime + Ddejittering가 아니면, 단계(S212)에서 해당 압축데이터를 삭제한다. sys_clk < Stime + Ddejittering의 시점에서는 유선으로 송신한 전송데이터가 무선으로 송신한 전송데이터에 비하여 더 늦게 재생 또는 복호되므로, 동기화를 위하여 해당 압축데이터는 삭제된다. If the result of the determination in step S208 is not sys_clk < S time + D dejittering , the corresponding compressed data is deleted in step S212. At the time of sys_clk <S time + D dejittering , since the transmission data transmitted by wire is reproduced or decoded later than the transmission data transmitted by wireless, the compressed data is deleted for synchronization.

단계(S214)에서 디코더는 압축데이터를 디코딩한다. In step S214, the decoder decodes the compressed data.

한편, 상기에서는 본 발명을 특정의 바람직한 실시 예에 관련하여 도시하고 설명하였지만, 이하의 특허청구범위에 의해 마련되는 본 발명의 정신이나 분야를 이탈하지 않는 한도 내에서 본 발명이 다양하게 개조 및 변화될 수 있다는 것을 당 업계에서 통상의 지식을 가진 자는 용이하게 알 수 있다.On the other hand, while the present invention has been shown and described with respect to specific preferred embodiments, various modifications and changes of the present invention without departing from the spirit or field of the invention provided by the claims below It can be easily understood by those skilled in the art.

이와 같이 본 발명은 무선으로 전송한 복수의 전송 스트림들을 지연지터 보상버퍼에 저장하고, 지연보상시간과 상기 각 전송 스트림들의 지연시간을 비교하여 지연지터 보상버퍼에 저장된 해당 전송 스트림의 출력되는 시점을 판단한다. 상기 판단결과에 따라서 스트림 출력 제어부가 상기 지연지터 보상버퍼에 저장된 전송 스트림들의 출력시점을 제어함으로써, 전송 스트림들이 일정한 시간간격을 유지할 수 있도록 한다. 이로 인하여 전송 스트림들에서 시스템 타임클럭을 추출할 수 있으므로, 송신부와 수신부의 타임 베이스를 확보할 수 있다. As described above, the present invention stores a plurality of transport streams transmitted wirelessly in a delay jitter compensation buffer, and compares the delay compensation time with the delay time of each transport stream to determine the output time point of the corresponding transport stream stored in the delay jitter compensation buffer. To judge. According to the determination result, the stream output controller controls the output time of the transport streams stored in the delay jitter compensation buffer so that the transport streams can maintain a constant time interval. As a result, system time clocks can be extracted from transport streams, thereby securing time bases of a transmitter and a receiver.

그리고 상기 전송 스트림들이 일정한 시간간격을 유지하도록 하기 위하여 지연지터 보상버퍼에 전송 스트림들을 저장하였으므로, 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림들간에 지연보상시간 만큼 동기가 어긋나게 된다. 상기에서 동기를 맞춰주기 위하여 시스템 타임 클럭을 카운터한 값을 타임 스탬프와 지연보상시간을 합한 값과 비교함으로써, 유선으로 송신한 전송 스트림이 비트 버퍼에서 출력되는 시점을 제어한다. 상기 전송 스트림이 출력되는 시점을 제어함으로써, 유선으로 송신한 전송 스트림과 무선으로 송신한 전송 스트림간에 동기를 맞출 수 있다. In addition, since the transport streams are stored in a delay jitter compensation buffer in order to maintain the constant time interval, the synchronization is shifted by the delay compensation time between the transport streams transmitted by wire and the transport streams transmitted by wireless. By comparing the value obtained by counting the system time clock with the sum of the time stamp and the delay compensation time in order to achieve the synchronization, the timing at which the transport stream transmitted via the wire is output from the bit buffer is controlled. By controlling the time point at which the transport stream is output, synchronization between the transport stream transmitted by wire and the transport stream transmitted wirelessly can be achieved.

Claims (17)

압축데이터를 전송 스트림들로 생성하는 전송 스트림 생성부;A transport stream generator for generating compressed data into transport streams; 클럭을 카운트하고, 상기 전송 스트림 생성부가 생성한 전송 스트림이 입력되는 때, 상기 카운트 값을 송신 네트워크 클럭값으로 출력하는 송신 네트워크 클럭 발생부;A transmission network clock generator for counting a clock and outputting the count value as a transmission network clock value when a transport stream generated by the transport stream generator is input; 상기 송신 네트워크 클럭값을 상기 전송 스트림 생성부가 생성한 전송 스트림들에 삽입하는 동기 클럭 스탬핑부;A synchronous clock stamping unit for inserting the transmission network clock value into transport streams generated by the transport stream generator; 상기 동기 클럭 스탬핑부가 출력한 전송 스트림을 외부로 송신하는 제 1 통신 인터페이스 수단;First communication interface means for transmitting a transport stream output by the synchronous clock stamping unit to the outside; 상기 제 1 통신 인터페이스 수단이 송신한 전송 스트림들을 수신하는 제 2 통신 인터페이스 수단;Second communication interface means for receiving transport streams transmitted by the first communication interface means; 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림들이 상호간에 일정한 시간 간격을 유지하도록 시간간격을 조절하는 시간간격 조절부; 및A time interval adjusting unit for adjusting a time interval such that the transport streams received by the second communication interface means maintain a constant time interval therebetween; And 상기 시간간격 조절부가 시간간격을 조절한 전송 스트림에서 압축데이터를 추출하여 디코딩하는 디코딩부로 구성되는 음성/영상신호의 동기화 장치.And a decoding unit configured to extract and decode compressed data from a transport stream whose time interval adjusting unit adjusts time intervals. 제 1 항에 있어서, 상기 전송 스트림 생성부는;According to claim 1, The transport stream generating unit; 압축데이터를 타임 스탬프가 포함된 복수의 패킷 스트림으로 생성하는 패킷화부; 및A packetizer for generating compressed data into a plurality of packet streams including time stamps; And 상기 패킷화부가 생성한 패킷 스트림에 시스템 타임 클럭을 삽입하여 전송 스트림으로 생성하는 시스템 타임 클럭 첨가부로 구성되는 것을 특징으로 하는 음성/영상신호의 동기화 장치.And a system time clock adder for inserting a system time clock into the packet stream generated by the packetizer to generate a transport stream. 제 1 항에 있어서, 상기 시간간격 조절부는;According to claim 1, wherein the time interval adjusting unit; 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림을 저장하는 지연지터 보상버퍼;A delay jitter compensation buffer for storing the transport stream received by the second communication interface means; 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림에서 송신 네트워크 클럭값을 독출하는 송신 네트워크 클럭 독출부;A transmission network clock reading unit for reading a transmission network clock value from the transport stream received by the second communication interface means; 클럭을 카운트하고, 상기 제 2 통신 인터페이스 수단에서 전송 스트림이 출력되는 때, 상기 카운트 값을 수신 네트워크 클럭값으로 출력하는 수신 네트워크 클럭 발생부;A reception network clock generator for counting a clock and outputting the count value as a reception network clock value when the transport stream is output from the second communication interface means; 상기 송신 네트워크 클럭 독출부가 독출한 송신 네트워크 클럭값 및 상기 수신 네트워크 클럭 발생부가 출력한 수신 네트워크 클럭값으로 전송 스트림의 지연시간을 판단하는 지연시간 판단부;A delay time determination unit determining a delay time of a transport stream based on a transmission network clock value read by the transmission network clock reader and a reception network clock value output by the reception network clock generator; 상기 지연시간 판단부가 판단한 전송 스트림의 지연시간 및 상기 지연지터 보상버퍼의 지연보상시간으로, 상기 지연지터 보상버퍼에 저장된 각 전송 스트림의 출력시점을 판단하는 스트림 출력시점 판단부; 및A stream output time determiner that determines an output time of each transport stream stored in the delay jitter compensation buffer based on the delay time of the transport stream and the delay compensation time of the delay jitter compensation buffer determined by the delay time determiner; And 상기 스트림 출력시점 판단부가 판단한 출력시점에 따라서 상기 지연지터 보상버퍼에 저장된 해당 전송 스트림의 출력을 제어하는 스트림 출력 제어부로 구성 되는 것을 특징으로 하는 음성/영상신호의 동기화 장치.And a stream output control unit for controlling the output of the transport stream stored in the delay jitter compensation buffer according to the output time determined by the stream output time determining unit. 제 1항에 있어서, 상기 디코딩부는;The apparatus of claim 1, wherein the decoding unit; 상기 시간간격 조절부가 시간간격을 조절한 전송 스트림을 패킷 스트림으로 생성하고, 상기 전송 스트림에서 시스템 타임 클럭을 추출하는 시스템 타임 클럭 복구부;A system time clock recovery unit configured to generate a transport stream of which the time interval control unit adjusts a time interval as a packet stream, and extract a system time clock from the transport stream; 상기 시스템 타임 클럭 복구부가 생성한 패킷 스트림에서 압축데이터와 타임 스탬프를 추출하는 디패킷화부;A depacketizer configured to extract compressed data and a time stamp from the packet stream generated by the system time clock recovery unit; 상기 디패킷화부가 생성한 압축데이터를 일시적으로 저장하는 비트버퍼;A bit buffer that temporarily stores the compressed data generated by the depacketizer; 상기 비트버퍼에 저장된 압축데이터를 디코딩하는 디코더;A decoder for decoding the compressed data stored in the bit buffer; 상기 시스템 타임 클럭 복구부가 추출한 시스템 타임 클럭에 따라서 클럭값을 카운트하는 STC(System Time Clock) 카운터부; 및A system time clock (STC) counter unit for counting a clock value according to the system time clock extracted by the system time clock recovery unit; And 상기 디패킷화부가 추출한 타임 스탬프 및 상기 STC 카운터부가 카운트한 클럭값으로 상기 비트버퍼에 저장된 압축데이터의 출력을 제어하는 데이터 출력 제어부로 구성되는 것을 특징으로 하는 음성/영상신호의 동기화 장치.And a data output control unit for controlling the output of the compressed data stored in the bit buffer by the time stamp extracted by the depacketizer and the clock value counted by the STC counter unit. 제 1 항에 있어서, The method of claim 1, 상기 제 1 통신 인터페이스 수단은 무선랜 모듈, 블루투스 통신 모듈 및 UWB 통신 모듈들 중에서 어느 하나인 것을 특징으로 하는 음성/영상신호의 동기화 장치.And the first communication interface means is any one of a wireless LAN module, a Bluetooth communication module, and a UWB communication module. 제 1항 또는 제 3항에 있어서, The method according to claim 1 or 3, 상기 제 2 통신 인터페이스 수단은 무선랜 모듈, 블루투스 통신 모듈 및 UWB 통신 모듈들 중에서 어느 하나인 것을 특징으로 하는 음성/영상신호의 동기화 장치.The second communication interface means is any one of a wireless LAN module, a Bluetooth communication module and a UWB communication module. 전송 스트림 생성부가 압축데이터를 전송 스트림으로 생성하는 단계;Generating, by the transport stream generator, compressed data into a transport stream; 상기 생성한 전송 스트림에 동기 클럭 스탬핑부가 송신 네트워크 클럭값을 삽입하는 단계; Inserting a transmission network clock value by a synchronous clock stamping unit into the generated transport stream; 상기 송신 네트워크 클럭값이 삽입된 전송 스트림을 제 1 통신 인터페이스 수단이 송신하여 제 2 통신 인터페이스 수단이 수신하는 단계;Transmitting, by the first communication interface means, the transport stream into which the transmission network clock value is inserted, and receiving by the second communication interface means; 상기 제 2 통신 인터페이스 수단에서 전송 스트림이 출력되는 시점의 수신 네트워크 클럭값을 추출하는 단계;Extracting, by the second communication interface means, a received network clock value at the time when the transport stream is output; 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림을 지연지터 보상버퍼에 저장하는 단계;Storing the transport stream received by the second communication interface means in a delay jitter compensation buffer; 상기 제 2 통신 인터페이스 수단이 수신한 전송 스트림에서 송신 네트워크 클럭값을 독출하고, 상기 추출한 수신 네트워크 클럭값과 비교하여 전송 스트림의 지연시간을 판단하는 단계; 및 Reading a transmission network clock value from the transport stream received by the second communication interface means, and comparing the extracted reception network clock value to determine a delay time of the transport stream; And 상기 판단한 전송 스트림의 지연시간이 지연보상시간과 동일할 경우에, 스트림 출력 제어부의 제어로 상기 지연지터 보상버퍼에 저장된 해당 전송 스트림을 출 력하는 단계로 이루어진 음성/영상신호 동기화 방법.And outputting the corresponding transport stream stored in the delay jitter compensation buffer when the determined delay time of the transport stream is equal to the delay compensation time. 제 7항에 있어서, The method of claim 7, wherein 상기 판단결과 지연시간이 지연보상시간보다 작을 경우에, 지연보상시간에서 지연시간을 뺀 만큼의 시간 이후에 상기 지연지터 보상버퍼에 저장된 해당 전송 스트림을 출력하는 단계를 더 포함하는 것을 특징으로 하는 음성/영상신호 동기화 방법.And if the delay time is less than the delay compensation time, outputting a corresponding transport stream stored in the delay jitter compensation buffer after a time equal to the delay compensation time minus the delay time. How to synchronize video signal. 제 7항 또는 제 8항에 있어서, The method according to claim 7 or 8, 상기 판단결과 지연시간이 지연보상시간보다 클 경우에, 상기 지연지터 보상버퍼에 저장된 해당 전송 스트림을 삭제하는 단계를 더 포함하는 것을 특징으로 하는 음성/영상신호 동기화 방법. And deleting the corresponding transport stream stored in the delay jitter compensation buffer when the delay time is greater than the delay compensation time. 제 7항 또는 제 8항에 있어서, The method according to claim 7 or 8, 상기 지연지터 보상버퍼에 저장된 해당 전송 스트림을 출력하는 단계 이후에, 상기 전송 스트림에서 압축데이터를 추출하고, 디코딩하는 단계를 더 포함하는 것을 특징으로 하는 음성/영상신호 동기화 방법. And after extracting the corresponding transport stream stored in the delay jitter compensation buffer, extracting and decoding compressed data from the transport stream. 전송 스트림에서 압축데이터, 시스템 타임 클럭 및 타임 스탬프를 추출하는 단계;Extracting compressed data, a system time clock and a time stamp from the transport stream; 상기 압축데이터를 비트버퍼에 저장하는 단계; 및 Storing the compressed data in a bit buffer; And sys_clk = Stime + Ddejittering인 경우에, 데이터 출력 제어부의 제어로 상기 비트버퍼에 저장한 해당 압축데이터를 출력하는 단계로 이루어진 음성/영상신호 동기화 방법.and outputting the corresponding compressed data stored in the bit buffer under the control of a data output control unit when sys_clk = S time + D dejittering . 여기서 상기 sys_clk는 상기 추출한 시스템 타임 클럭에 따라서 카운트한 클럭값이고, 상기 Stime는 상기 추출한 타임 스탬프이며, 상기 Ddejittering는 지연보상시간이다. The sys_clk is a clock value counted according to the extracted system time clock, the S time is the extracted time stamp, and the D dejittering is a delay compensation time. 제 11항에 있어서, The method of claim 11, 상기 판단결과 sys_clk < Stime + Ddejittering인 경우에, 상기 데이터 출력 제어부의 제어로 Stime + Ddejittering - sys_clk 만큼의 시간 이후에 상기 비트버퍼에 저장한 해당 압축데이터를 출력하는 단계를 더 포함하는 것을 특징으로 하는 음성/영상신호 동기화 방법.If sys_clk <S time + D dejittering as a result of the determination, further comprising the step of outputting the compressed data stored in the bit buffer after a time of S time + D dejittering − sys_clk under the control of the data output control unit. The audio / video signal synchronization method characterized in that. 제 11항 또는 12항에 있어서, The method of claim 11 or 12, 상기 sys_clk > Stime + Ddejittering인 경우에, 상기 데이터 출력 제어부의 제어로 비트버퍼에 저장한 압축데이터를 삭제하는 단계를 더 포함하는 것을 특징으로 하는 음성/영상신호 동기화 방법. And deleting the compressed data stored in the bit buffer under the control of the data output controller when the sys_clk> S time + D dejittering . 제 11항 또는 제 12항에 있어서, The method of claim 11 or 12, 상기 비트버퍼에 저장한 압축데이터를 출력하는 단계 이후에, 상기 압축데이터를 디코더가 디코딩하는 단계를 더 포함하는 것을 특징으로 하는 음성/영상신호 동기화 방법.And after the outputting the compressed data stored in the bit buffer, decoding the compressed data by the decoder. 제 11항 또는 제 12항에 있어서, The method of claim 11 or 12, 상기 비트버퍼의 크기는 전송 스트림의 전송속도와 지연보상시간의 곱의 크기인 것을 특징으로 하는 음성/영상신호 동기화 방법.The size of the bit buffer is characterized in that the size of the product of the transmission rate of the transport stream and the delay compensation time. 제 10항에 있어서, The method of claim 10, 상기 타임 스탬프는 표시 타임 스탬프(PTS) 또는 복호 타임 스탬프(DTS)인 것을 특징으로 하는 음성/영상신호 동기화 방법.And the time stamp is a display time stamp (PTS) or a decoding time stamp (DTS). 제 10항에 있어서, The method of claim 10, 상기 시스템 타임 클럭은 SCR(System Clock Reference) 또는 PCR(Program Clock Reference)인 것을 특징으로 하는 음성/영상신호 동기화 방법.The system time clock is SCR (System Clock Reference) or PCR (Program Clock Reference) characterized in that the audio / video signal synchronization method.
KR1020050062988A 2005-07-12 2005-07-12 Appratus and method for synchronizing audio/video signal KR20070008069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050062988A KR20070008069A (en) 2005-07-12 2005-07-12 Appratus and method for synchronizing audio/video signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050062988A KR20070008069A (en) 2005-07-12 2005-07-12 Appratus and method for synchronizing audio/video signal

Publications (1)

Publication Number Publication Date
KR20070008069A true KR20070008069A (en) 2007-01-17

Family

ID=38010336

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050062988A KR20070008069A (en) 2005-07-12 2005-07-12 Appratus and method for synchronizing audio/video signal

Country Status (1)

Country Link
KR (1) KR20070008069A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100803131B1 (en) * 2006-04-07 2008-02-14 엘지전자 주식회사 Method of generating timing information, broadcast receiver, and method using timing information for searching and editing
KR100841217B1 (en) * 2007-01-29 2008-06-26 주식회사 에이스엠이 Apparatus and method for controlling file streaming
KR100884237B1 (en) * 2007-02-28 2009-02-17 삼성전자주식회사 Communication system and data tx/rx method thereof
KR101019170B1 (en) * 2008-05-26 2011-03-03 광운대학교 산학협력단 Method and Apparatus of Deciding an Initial Delay in Network Synchronization Systems
KR101032747B1 (en) * 2009-11-18 2011-05-06 삼성에스디에스 주식회사 Apparatus for measuring image display delay, system and method for measuring image display delay using the same
WO2013009131A2 (en) * 2011-07-13 2013-01-17 한국전자통신연구원 Apparatus and method for transmitting packet and apparatus and method for receiving packet in mmt system
WO2014014305A1 (en) * 2012-07-19 2014-01-23 한국전자통신연구원 Method and apparatus for selectively performing packet error classification of multiple packet streams multiplexed to same port
US9118937B2 (en) 2007-10-04 2015-08-25 SMSC Europe GbmH Real-time video transmission system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100803131B1 (en) * 2006-04-07 2008-02-14 엘지전자 주식회사 Method of generating timing information, broadcast receiver, and method using timing information for searching and editing
KR100841217B1 (en) * 2007-01-29 2008-06-26 주식회사 에이스엠이 Apparatus and method for controlling file streaming
KR100884237B1 (en) * 2007-02-28 2009-02-17 삼성전자주식회사 Communication system and data tx/rx method thereof
US8787442B2 (en) 2007-02-28 2014-07-22 Samsung Electronics Co., Ltd. Communication system and data transception method thereof
US9118937B2 (en) 2007-10-04 2015-08-25 SMSC Europe GbmH Real-time video transmission system
KR101019170B1 (en) * 2008-05-26 2011-03-03 광운대학교 산학협력단 Method and Apparatus of Deciding an Initial Delay in Network Synchronization Systems
KR101032747B1 (en) * 2009-11-18 2011-05-06 삼성에스디에스 주식회사 Apparatus for measuring image display delay, system and method for measuring image display delay using the same
WO2013009131A2 (en) * 2011-07-13 2013-01-17 한국전자통신연구원 Apparatus and method for transmitting packet and apparatus and method for receiving packet in mmt system
WO2013009131A3 (en) * 2011-07-13 2013-03-07 한국전자통신연구원 Apparatus and method for transmitting packet and apparatus and method for receiving packet in mmt system
WO2014014305A1 (en) * 2012-07-19 2014-01-23 한국전자통신연구원 Method and apparatus for selectively performing packet error classification of multiple packet streams multiplexed to same port

Similar Documents

Publication Publication Date Title
JP4990762B2 (en) Maintaining synchronization between streaming audio and streaming video used for Internet protocols
JP7120997B2 (en) Multi-mode synchronous rendering of audio and video
JP4184397B2 (en) VIDEO / AUDIO PROCESSING SYSTEM AND ITS CONTROL METHOD, AUDIO PROCESSING SYSTEM, VIDEO / AUDIO PROCESSING SYSTEM CONTROL PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
US6493832B1 (en) Communication apparatus which handles a time stamp
EP2728858B1 (en) Receiving apparatus and receiving method thereof
JP3516206B2 (en) Data stream processing apparatus and method, and program storage medium
KR20070008069A (en) Appratus and method for synchronizing audio/video signal
JP2003500948A (en) Method for converting a packetized stream of information signals into a stream of information signals having a time stamp and vice versa
US20070286245A1 (en) Digital signal processing apparatus and data stream processing method
JP2009272945A (en) Synchronous reproduction apparatus
KR101014664B1 (en) Reproduction method for guaranteeing seamless reproduction of a plurality of data streams and reproducing apparatus therefor
JP3045715B2 (en) Transmission system, transmitting device, recording / reproducing device, and recording device
JP5641849B2 (en) Transmitter
JP6957186B2 (en) Information processing equipment, information processing methods, programs, and recording medium manufacturing methods
EP1533925A2 (en) Synchronization of a stream data communication system
JP2002176643A (en) Synchronization recovery system for video/audio in video/ audio decoding processing
JP2002369163A (en) Method of controlling multistream output timing and control apparatus therefor
JPH11205789A (en) Transmission rate converter of mpeg2 transport stream
JP2005151463A (en) Device and method for receiving stream data
JP2008245061A (en) Pcr reproduction system in ip stream transmission
US20100166382A1 (en) Video and audio reproduction system, distribution device, and synchronization adjustment method
JP2001339688A (en) Playback equipment of transport stream
KR20060105326A (en) Method and apparatus for av output in digital broadcasting system
KR0154005B1 (en) Apparatus for generating the presentation time stamp in the system encoder
JP2001111610A (en) Receiver for information data transmission system

Legal Events

Date Code Title Description
WITN Application deemed withdrawn, e.g. because no request for examination was filed or no examination fee was paid