KR101148733B1 - Apparatus and method for detecting video stream - Google Patents
Apparatus and method for detecting video stream Download PDFInfo
- Publication number
- KR101148733B1 KR101148733B1 KR1020050017446A KR20050017446A KR101148733B1 KR 101148733 B1 KR101148733 B1 KR 101148733B1 KR 1020050017446 A KR1020050017446 A KR 1020050017446A KR 20050017446 A KR20050017446 A KR 20050017446A KR 101148733 B1 KR101148733 B1 KR 101148733B1
- Authority
- KR
- South Korea
- Prior art keywords
- packet
- sps
- pps
- detecting
- header
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000001514 detection method Methods 0.000 claims abstract description 34
- 238000001824 photoionisation detection Methods 0.000 description 12
- 230000003139 buffering effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- WIUGDTDEQHIWAS-UHFFFAOYSA-N sodium;[3-[[3-[(2-bromoacetyl)amino]phenoxy]-hydroxyphosphoryl]oxy-5-(5-methyl-2,4-dioxopyrimidin-1-yl)oxolan-2-yl]methyl [3-[(2-bromoacetyl)amino]phenyl] hydrogen phosphate Chemical compound [Na+].O=C1NC(=O)C(C)=CN1C1OC(COP(O)(=O)OC=2C=C(NC(=O)CBr)C=CC=2)C(OP(O)(=O)OC=2C=C(NC(=O)CBr)C=CC=2)C1 WIUGDTDEQHIWAS-UHFFFAOYSA-N 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44008—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04H—BROADCAST COMMUNICATION
- H04H2201/00—Aspects of broadcast communication
- H04H2201/10—Aspects of broadcast communication characterised by the type of broadcast system
- H04H2201/11—Aspects of broadcast communication characterised by the type of broadcast system digital multimedia broadcasting [DMB]
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
본 발명은 디지털 방송 수신기에서 비디오 스트림을 검출하는 장치 및 비디오 스트림을 검출하기 위해 SPS/PPS(Sequence Parameter Set/Picture Parameter Set)를 검출 하는 방법에 관한 것이다. 본 디지털 방송 수신기에서 비디오 스트림을 검출하기 위해 SPS/PPS를 검출 하는 방법은, TS 패킷을 읽는 과정과, 상기 TS 패킷에서 2바이트의 검출 패턴을 찾는 과정과, 상기 패턴의 검출로 오브젝트 디스크립터의 위치를 얻은 다음 SPS/PPS 정보를 검출하는 과정을 포함함을 특징으로 한다.The present invention relates to a device for detecting a video stream in a digital broadcast receiver and a method for detecting a sequence parameter set / picture parameter set (SPS / PPS) for detecting a video stream. The method for detecting an SPS / PPS for detecting a video stream in the digital broadcast receiver includes reading a TS packet, finding a detection pattern of 2 bytes in the TS packet, and detecting the position of the object descriptor. Obtaining the SPS / PPS information and then characterized in that it comprises the process of detecting.
디지털 방송, 채널 전환, PMT(Program Map Table), SPS/PPS(Sequence Parameter Set/Picture Parameter Set) Digital Broadcasting, Channel Switching, Program Map Table (PMT), Sequence Parameter Set / Picture Parameter Set (SPS / PPS)
Description
도 1은 종래의 디지털 방송 수신기의 비디오 스트림 검출 장치의 구성을 나타낸 도면1 is a view showing the configuration of a video stream detection apparatus of a conventional digital broadcast receiver
도 2는 본 발명의 바람직한 실시예에 따른 디지털 방송 수신기의 비디오 스트림 검출 장치의 구성을 나타낸 도면2 is a diagram showing the configuration of a video stream detection apparatus of a digital broadcast receiver according to an embodiment of the present invention.
도 3은 본 발명의 바람직한 실시예에 따른 디지털 방송 수신기에서 SPS/PPS 정보를 검출하는 방법을 설명하기 위해 예시한, 섹션(section) 데이터를 갖는 TS의 포맷.3 is a format of a TS having section data, illustrated for explaining a method of detecting SPS / PPS information in a digital broadcast receiver according to a preferred embodiment of the present invention.
도 4는 도 3의 섹션 데이터 부분을 구체적으로 나타낸 도면FIG. 4 illustrates the section data portion of FIG. 3 in detail.
도 5는 본 발명의 바람직한 실시예에 따른 디지털 방송 수신기에서 비디오 스트림을 검출하기 위해 SPS/PPS 정보를 검출하는 방법을 나타낸 흐름도5 is a flowchart illustrating a method of detecting SPS / PPS information for detecting a video stream in a digital broadcast receiver according to an embodiment of the present invention.
본 발명은 디지털 방송 시스템에 관한 것으로, 특히 디지털 멀티미디어 방송 (Digital Multimedia Broadcasting: 이하 DMB라 함.) 수신기에서 비디오 스트림을 검출하는 장치 및 상기 상기 비디오 스트림을 검출하기 위해 비디오 코덱 초기 화 정보(Sequence Parameter Set/Picture Parameter Set: 이하 SPS/PPS라 함)를 신속히 검출하는 방법에 관한 것이다.The present invention relates to a digital broadcasting system, and more particularly, to an apparatus for detecting a video stream in a digital multimedia broadcasting (DMB) receiver and a video codec initialization information (Sequence Parameter) for detecting the video stream. Set / Picture Parameter Set: hereinafter referred to as SPS / PPS).
디지털 비디오 신호를 디코딩 하기 위해서는 비디오의 크기 정보 및 디코더를 초기화 하기 위한 정보, 즉 SPS/PPS 정보가 필요하다. In order to decode the digital video signal, video size information and information for initializing a decoder, that is, SPS / PPS information are required.
SPS/PPS 정보를 미리 정의해서 사용하거나 위성 DMB의 경우에는 인트라 프레임(intraframe)에 이 SPS/PPS 정보를 삽입해서 인트라 프레임만 찾으면 비디오를 디코딩할 수 있다. 그러나 지상파 DMB의 경우에는 SPS/PPS 정보를 반드시 먼저 검출한 다음 인트라 프레임을 찾아야 한다. If the SPS / PPS information is defined in advance, or in the case of satellite DMB, the SPS / PPS information may be inserted into an intraframe to decode the video if only the intra frame is found. However, in the case of terrestrial DMB, the SPS / PPS information must be detected first and then an intra frame must be found.
지상파 DMB는 기존의 디지털 텔레비전(Digital TV: 이하 DTV라 함)과는 달리 MPEG(Motion Picture Experts Group)-4 SL(Synchronization Layer) 단계를 추가하여 구성된 표준이고, 전체적인 전송 규약이 MPEG-4 파일 포맷(file format)과 유사한 구조를 갖는다. 또한 지상파 DMB는 전송 스트림(Transport Stream: 이하 TS라 함)을 이용하여 비디오 스트림을 전송하고 있다. 그래서 TS 패킷의 PID{Packet ID(identification)}에 의해 공중(air)으로부터 들어오는 데이터 중 현재의 TS 패킷이 사용자가 원하는 비디오 스트림인지 아닌지를 구분한다. SPS/PPS 정보는 다른 PID로 정의된 TS 패킷에 의해서 전송되고 있다. 그러므로 SPS/PPS 정보를 찾기 전까지는 비디오 스트림을 찾는다 해도 비디오 디코딩을 할 수가 없다. Unlike conventional digital television (DTV), terrestrial DMB is a standard formed by adding the Motion Picture Experts Group (MPEG) -4 Synchronization Layer (SL) step, and the overall transmission protocol is the MPEG-4 file format. It has a structure similar to (file format). In addition, terrestrial DMB transmits a video stream using a transport stream (hereinafter referred to as TS). Therefore, PID (Packet ID (identification)) of the TS packet to distinguish whether or not the current TS packet among the data coming from the air (air) whether the desired video stream. SPS / PPS information is transmitted by TS packets defined by other PIDs. Therefore, even after searching the video stream, video decoding cannot be performed until the SPS / PPS information is found.
도 1은 종래의 디지털 방송 수신기의 비디오 스트림 검출 장치의 구성을 나 타낸 도면이다.1 is a diagram showing the configuration of a video stream detection apparatus of a conventional digital broadcast receiver.
지상파 DMB로부터 비디오 스트림을 검출하기 위해서 도시된 바와 같이 TS 역다중화를 실시하게 된다. TS가 수신되면 PAT(Program Association Table) 검출기 110에서 PAT를 찾는다. 찾아진 PAT로부터 PMT(Program Map Table)의 PID를 얻어낸다. 그리고 PMT의 PID를 참조하여 PMT 검출기 110에서 PMT를 찾는다. 이때 찾은 PMT에서 오디오/비디오 스트림의 PID를 얻어내서 비디오를 역다중화 하게 된다.TS demultiplexing is performed as shown to detect a video stream from the terrestrial DMB. When the TS is received, the
그런데 SPS/PPS 정보는 다른 PID로 정의된 패킷을 통해 전송되므로 PMT에서 SPS/PPS 정보가 들어 있는 TS 패킷에 관한 PID 정보를 검출해야 한다. 이때 검출된 정보를 참조하여 SPS/PPS 검출기 130에서 SPS/PPS 정보가 검출되면 비디오 코덱을 초기화 할 수 있다.However, since the SPS / PPS information is transmitted through a packet defined by another PID, the PMT needs to detect PID information about a TS packet including the SPS / PPS information. In this case, when the SPS / PPS information is detected by the SPS /
SPS/PPS 정보의 검출로 디코더의 초기화가 이루어졌고, PMT 검출을 통해 해당 방송 채널의 비디오 TS 패킷이 어떤 PID를 갖는지도 알게 되었으므로, 이때부터는 수신 TS 패킷들의 헤더를 분석하여 그들 중 해당 비디오 TS 패킷이 찾아지면 인트라 프레임 검출기 140이 그 비디오 TS 패킷으로부터 인트라 프레임 위치를 검출한다. 이렇게 인트라 프레임 위치까지 알게 되면 비디오 역다중화기 150에서 TS 패킷들의 헤더를 분석하여 그 TS 패킷이 비디오 TS 패킷인지 확인하고 비디오 PES(Packetized Elementary Stream)를 찾아 인트라 프레임을 검출할 수 있으며, 이렇게 찾아진 비디오 데이터(인트라 프레임)는 링버퍼(vid) 100에 전달되어 버퍼링된다. 도시하지 않았으나, 비디오 데이터는 디코더에 제공되고, 디코더에서 압축 해제된 비디오 신호는 사용자가 시청할 수 있도록 표시부를 통하여 출력된다.Decoder initialization was performed by detecting the SPS / PPS information, and the PMT detection also revealed the PID of the video TS packet of the corresponding broadcast channel. From this time, the headers of the received TS packets were analyzed to determine the corresponding video TS packet. If found,
그러나 만일 PAT 검출에 실패하면, 상기 버퍼링한 TS 패킷들을 버리고 TS 버퍼링부터 다시 실시한다. 또한 PAT 검출에는 성공했으나 PMT 검출에 실패하였다면, 상기 버퍼링한 TS 패킷들을 버리고 TS 버퍼링부터 다시 실시한다. 또한 PAT 검출과 PMT 검출에는 성공했으나 인트라 프레임 검출에 실패하였다면, 상기 버퍼링한 TS 패킷들을 버리고 TS 버퍼링부터 다시 실시한다. However, if the PAT detection fails, the buffered TS packets are discarded and TS buffering is performed again. In addition, if PAT detection succeeds but PMT detection fails, the buffered TS packets are discarded and TS buffering is performed again. In addition, if PAT detection and PMT detection succeed, but intra frame detection fails, the buffered TS packets are discarded and TS buffering is performed again.
그런데 상기 SPS/PPS 검출기 130에 의한 SPS/PPS 정보 검출에 소요되는 시간으로 인해 채널 전환 시간이 최대 0.5초 정도 더 길어진다. 여기서 채널 전환 시간이란 사용자가 자신이 시청하고자 하는 방송 채널을 선택한 후 해당 방송의 화면을 보기까지 걸리는 시간을 말한다. 사용자에게 지루한 느낌을 주지 않으려면 채널 전환 시간이 빠를수록 좋을 것이고, 그러한 측면을 고려한다면, SPS/PPS 정보 검출에 소요되는 시간이 채널 전환 시간을 늦추는 한 요인이 될 수 있으므로 개선할 필요가 있다. However, due to the time required for detecting the SPS / PPS information by the SPS /
따라서 본 발명은 SPS/PPS 정보를 신속히 검출하는 데 걸리는 시간으로 인해 채널 전환 시간이 길어지는 것을 막는 방법 및 이를 이용하여 비디오 스트림을 검출하는 장치를 제공함에 있다. Accordingly, an aspect of the present invention is to provide a method of preventing a channel switching time from being prolonged due to a time required for quickly detecting SPS / PPS information, and an apparatus for detecting a video stream using the same.
이를 위해 본 제1발명은 디지털 방송 수신기에서 비디오 스트림을 검출하는 장치가, 해당 방송 채널의 비디오 데이터를 갖는 TS(Transport Stream) 패킷의 PID를 획득하기 위해 수신 TS(Transport Stream) 패킷으로부터 PMT(Program Map Table)를 검출하는 PMT 검출기와, 수신 TS 패킷으로부터, 특정 패턴의 검출을 통해, 비디오 코덱을 초기화 하는 데 필요한 SPS/PPS(Sequence Parameter Set/Picture Parameter Set)를 검출하며, 상기 SPS/PPS의 검출이 상기 PMT 검출기에 의한 PMT 검출과 동시에 이루어지는 SPS/PPS 검출기와, 수신 TS 패킷으로부터 인트라 프레임의 위치 정보를 검출하는 인트라 프레임 검출기와, 상기 검출한 PMT 및 인트라 프레임 위치 정보를 참조하여 수신 TS 패킷을 분석하여 비디오 데이터를 찾아 출력하는 비디오 역다중화기를 포함함을 특징으로 한다. To this end, the present invention provides an apparatus for detecting a video stream in a digital broadcast receiver, wherein a PMT (Program) is received from a received TS packet to obtain a PID of a TS packet having video data of a corresponding broadcast channel. A PMT detector for detecting a Map Table and a sequence pattern set / picture parameter set (SPS / PPS) required for initializing a video codec through detection of a specific pattern from a received TS packet. An SPS / PPS detector, which detects the PMT at the same time as the PMT detector, an intra frame detector for detecting the position information of the intra frame from the received TS packet, and a received TS packet with reference to the detected PMT and the intra frame position information. It is characterized by including a video demultiplexer for analyzing and finding video data.
이를 위해 본 제2발명은 디지털 방송 수신기에서 비디오 스트림을 검출하기 위해 SPS/PPS를 검출 하는 방법이, TS 패킷을 읽는 과정과, 상기 TS 패킷에서 2바이트의 검출 패턴을 찾는 과정과, 상기 패턴의 검출로 오브젝트 디스크립터의 위치를 얻은 다음 SPS/PPS 정보를 검출하는 과정을 포함함을 특징으로 한다.To this end, the second aspect of the present invention provides a method of detecting an SPS / PPS for detecting a video stream in a digital broadcasting receiver, including: reading a TS packet, finding a detection pattern of 2 bytes in the TS packet, and And detecting the SPS / PPS information after obtaining the position of the object descriptor by the detection.
이하 본 발명의 바람직한 실시 예를 첨부한 도면을 참조하여 상세히 설명한다. 우선 각 도면의 구성 요소들에 참조 부호를 부가함에 있어서, 동일한 구성 요소들에 한해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 하기 설명에서는 구체적인 정보의 크기(바이트) 등과 같은 특정(特定) 사항들이 나타나고 있는데, 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐 이러한 특정 사항들 없이도 본 발명이 실시될 수 있음은 이 기술 분야에서 통상의 지식을 가진 자에게는 자명하다 할 것이다. 그 리고 본 발명을 설명함에 있어, 관련된 공지 기능 혹은 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used for the same reference numerals even though they are shown in different drawings. In the following description, specific matters such as size (bytes) of specific information appear, which are provided to help a more general understanding of the present invention, and the present invention may be practiced without these specific matters. It is self-evident to those of ordinary knowledge in Esau. And in describing the present invention, if it is determined that the detailed description of the related known function or configuration may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted.
도 2는 본 발명의 바람직한 실시예에 따른 디지털 방송 수신기의 TS 역다중화 장치를 나타낸 도면이다.2 illustrates a TS demultiplexing apparatus of a digital broadcast receiver according to an exemplary embodiment of the present invention.
지상파 DMB는 시스템 A(유레카 147)에 의해서 채널단 전송이 이루어진다. 위성 DMB의 경우는 PAT에 여러 방송국 정보를 세팅하지만, 지상파 DMB의 경우는 PAT에 하나의 방송국 정보를 세팅한다. 그러므로 굳이 PAT를 찾지 않더라도 PMT 검출기 125와 SPS/PPS 검출기 135를 이용하여 각각 PMT를 갖는 TS 패킷과 SPS/PPS 정보를 갖는 TS 패킷을 동시에 검출해 낼 수 있다. 다시 말해서, 기존 위성 DMB의 SPS/PPS 정보 검출은 PMT PID 검출을 기본으로 하지만, 본 발명의 바람직한 실시예와 같은 지상파 DMB의 경우는 페이로드 검출을 기본으로 한다. Terrestrial DMB is channel-end transmitted by System A (Eureka 147). In the case of satellite DMB, various broadcasting station information is set in the PAT, but in the case of terrestrial DMB, one broadcasting station information is set in the PAT. Therefore, even if a PAT is not found, a TS packet having a PMT and a TS packet having SPS / PPS information can be simultaneously detected using the
상기 SPS/PPS 검출기 135에서 검출한 SPS/PPS 정보를 이용하여 비디오 코덱을 초기화 한다. 그리고 상기 PMT 검출기 125에 의해 검출된 PMT로부터 해당 방송 채널의 비디오 PES의 PID를 획득한다. 이때 획득된 비디오 PES의 PID를 참조하면 수신 TS 패킷들 중 해당 방송 채널의 비디오 TS 패킷을 판별해낼 수 있다. 이로써 인트라 프레임 검출기 140은 해당 방송 채널의 비디오 TS 패킷으로부터 인트라 프레임의 위치를 검출할 수 있다. 이렇게 인트라 프레임 위치까지 알게 되면 비디오 역다중화기 150에서 TS 패킷들의 헤더를 분석하여 그 TS 패킷이 비디오 TS 패킷인지 확인하고 비디오 PES를 찾아 인트라 프레임을 검출할 수 있으며, 이렇게 찾아진 비디오 데이터(인트라 프레임)는 링버퍼(vid) 100에 전달되어 버퍼링된다. 도시하지 않았으나, 비디오 데이터는 디코더에 제공되고, 디코더에서 압축 해제된 비디오 신호는 사용자가 시청할 수 있도록 표시부를 통하여 출력된다.The video codec is initialized using the SPS / PPS information detected by the SPS /
도 3은 본 발명의 바람직한 실시예에 따른 디지털 방송 수신기에서 SPS/PPS 정보를 검출하는 방법을 설명하기 위해 예시한, 섹션(section) 데이터를 갖는 TS의 포맷이다. 3 is a format of a TS having section data, which is illustrated to explain a method of detecting SPS / PPS information in a digital broadcast receiver according to a preferred embodiment of the present invention.
TS 패킷은 전체 188바이트로 이루어진다. 188바이트 중에는 4바이트의 TS 헤더가 있고, 이 4바이트의 첫 번째 바이트는 동기 바이트(sync byte) 210이며 그 값은 일반적으로 0x47이다. 또한 이 4바이트 TS 헤더 안에는 PUSI 필드 220이 존재하는데, 1비트이며 그 값이 1일 경우에는 오프셋(offset) 필드 230이 존재한다. 오프셋 필드 230의 값은 섹션 데이터의 실제적인 시작 위치를 알려주는 데 사용된다. 즉, 도시된 바와 같이 오프셋 필드 230과 섹션 데이터 240 사이에 임의의 데이터가 존재할 경우 오프셋 필드 230은 그 데이터의 크기를 정의하는 값을 가진다. 그러나 도시된 바와 달리 일반적으로 DMB에서 이 오프셋 값은 0이며, 오프셋 필드 230 바로 뒤에 섹션 데이터 240이 존재한다. The TS packet consists of 188 bytes in total. Among 188 bytes, there is a 4-byte TS header, and the first byte of this 4-byte is a
TS 패킷의 페이로드 부분(TS 페이로드)을 분석하면 그 TS 패킷이 섹션 데이터인지 여부를 알 수 있다. 현재 TDMB에서 사용하는 PMT나 SPS/PPS 정보를 포함한 섹션 데이터는 그 크기가 183바이트를 넘지 않아서 단일 TS 패킷에 전 섹션 데이터가 포함되어 전송되고 있다. 그러므로 섹션 데이터의 헤더(섹션 헤더) 부분에 있는 테이블 ID 필드를 확인하는 것만으로도 그 TS 패킷이 어떤 섹션 데이터인지 알 수 있다. 예를 들어, 테이블 ID의 값이 0X05일 경우는 SPS/PPS 정보를 갖는 섹션 데이터이고, 0x02이면 PMT를 갖는 섹션 데이터이다. Analyzing the payload portion (TS payload) of the TS packet can determine whether the TS packet is section data. The section data including the PMT or SPS / PPS information used in the TDMB does not exceed 183 bytes in size, and thus the entire section data is transmitted in a single TS packet. Therefore, only by checking the table ID field in the header (section header) portion of the section data, it is possible to know what section data the TS packet is. For example, when the value of the table ID is 0X05, it is section data having SPS / PPS information, and when it is 0x02, it is section data having PMT.
도 4는 도 3의 섹션 데이터 부분을 구체적으로 나타낸 것으로, ID가 0x05인 섹션 데이터의 포맷을 예시한 것이다. 4 illustrates the section data portion of FIG. 3 in detail, and illustrates a format of section data having an ID of 0x05.
테이블 ID 필드(table id) 240A는 해당 섹션의 정보가 무엇인지를 나타내기 위한 필드로서, 그 값이 0x05일 경우 SPS/PPS 정보 240J를 갖는 섹션 데이터이다. 섹션 길이(section length) 240B는 이어지는 TS ID(Transport stream id) 필드 240C로부터 섹션 페이로드의 끝까지 길이를 정의하는 필드이다.The
DMB시스템에서 테이블 ID 필드 240A의 값이 0x05인 섹션 데이터의 경우에는 테이블 ID 필드 240A로부터 마지막 섹션번호 필드(last section number) 240E까지의 길이가 8바이트로 고정되어 있다. 이는 테이블 ID 필드 240A나 섹션 길이(section length) 240B 이외는 중요한 정보로서 사용되지 않기 때문에 상당수의 필드를 고정적인 값을 갖도록 해놓았기 때문이다. 예를 들면, 도시된 바와 같이 TS ID 필드 240C 및 섹션번호(section number) 필드 240D 등의 값은 0(0X0000, 0X00)이다. In the case of section data in which the
마지막 섹션번호 필드 240E 다음에는 SL 헤더 필드(SL Header) 240F가 위치하는데, SL 헤더의 포멧은 MPEG-4 파트(part) 1에 정의되어 있다. SL 헤더 필드 240F의 크기는 다른 TS 패킷을 참조하여야 알 수 있다. 다시 말해서, SL 헤더 필드 240F의 크기를 확인하려면 시스템 구현의 복잡성을 가중시키고, 다른 TS 패킷이 준비될 때까지 대기해야 하므로 시간적 소모가 발생한다. 그래서 본 발명은 SL 헤더 필드 240F의 크기를 확인하지 않고, 0x01**01에 해당하는 바이트 패턴을 검출하는 것이다. 도시된 바에 따르면, SL 헤더 필드 240F 다음에 ID가 두 개 존재하는데, 첫 번째 ID 240G가 0x01이고, 길이 정보 필드 정보(Len) 240H 1 바이트를 건너서, 두 번째 ID 240I도 0x01이다. 그러므로 SL 헤더 필드 240F 다음의 ID인 0x01의 위치를 찾게 되면, 그 다음부터는 DMB 표준 문서에 기술된 내용에 의거 비트 단위로 분석하여 SPS/PPS 정보 필드 240J를 검출하면 된다. After the last
상기 패턴 검출의 범위는 SL 헤더의 위치에서 시작해서 DMB에서 사용되는 SL 헤더의 최대 가능 크기인 13바이트보다 다소 큰 범위이면 충분하다. 만약 이러한 패턴을 찾지 못했을 때에는 다음 TS 패킷에 대하여 마찬가지 방법으로 분석을 한다. The range of the pattern detection is sufficient if it starts at the position of the SL header and is somewhat larger than 13 bytes, which is the maximum possible size of the SL header used in the DMB. If this pattern is not found, the next TS packet is analyzed in the same way.
도 5는 본 발명의 바람직한 실시예에 따른 디지털 방송 수신기에서 비디오 스트림을 검출하기 위해 SPS/PPS 정보를 검출하는 방법을 나타낸 흐름도로서, SPS/PPS 정보를 PAT나 PMT의 도움 없이 얻어내기 위한 구체적인 방법을 개시하고 있다.FIG. 5 is a flowchart illustrating a method of detecting SPS / PPS information for detecting a video stream in a digital broadcasting receiver according to an embodiment of the present invention, and a specific method for obtaining SPS / PPS information without the help of a PAT or PMT. Is starting.
TS 패킷이 수신되면, 310단계에서 이를 읽는다. 그리고 310단계 먼저 4바이트의 TS 헤더 중에서 PUSI(payload unit start indicator) 플래그가 온(on) 상태인지 혹은 오프(off) 상태인지 확인한다. PUSI 플래그가 온 상태인 경우는 오디오 혹은 비디오 스트림의 PES(Packetized Elementary Stream) 패킷 헤더가 존재할 경우와 각종 섹션 데이터의 첫 번째 TS 패킷일 경우이다. 그러므로 일단 이 PUSI 플래그가 온 상태이면 PMT나 SPS/PPS 정보를 갖는 섹션 데이터일 수 있다. 그러므로 330단계 ~ 380단계를 통해 TS 패킷의 페이로드 부분을 분석함으로써 섹션 데이터임을 알 수 있다. When the TS packet is received, it is read in
330단계에서 오프셋이 0이고, ID가 0X05인지 여부를 확인한다. 오프셋이 0이고 ID가 0X05이면 오프셋 필드 바로 다음에 SPS/PPS 섹션 데이터가 존재하는 것으로 인식한다. 그리고 340단계에서 섹션 헤더 400을 표준 문서에 입각해서 분석(parsing)한다. 상기 분석을 통해 SL 헤더를 찾는다. 전술한 바와 같이 테이블 ID 필드에서 SL 헤더 필드까지는 8바이트로 고정되어 있다. 단, 보통의 TS 스트림과 달리 TDMB의 경우에는 섹션 헤더 400에 MPEG-4 SL 헤더(SL Header)가 더 포함되어 있으므로 이 부분을 분석해야 되지만, SPS/PPS 정보를 얻는 데는 불필요하기 때문에 MPEG-4 SL 헤더는 무시해도 상관이 없다. In
SL 헤더를 찾으면, 350단계에서 SPS/PPS 정보를 실질적으로 갖는 페이로드 부분(섹션 페이로드)의 첫 위치를 찾기 위해서 0x01**01의 패턴을 찾는다. 전술한 바와 같이, 이 패턴은 0x01이 첫 번째 ID(410)이고 다음은 1바이트의 길이 정보(Len), 다시 0x01이 두 번째 ID(420)가 되는 표준 문서에 입각한 것이다. 검출 범위가 최대 13바이트를 넘지 않으므로 13바이트 이내에서 2바이트 검출 패턴은 오류 없이 검출된다. If the SL header is found, in
상기 0x01**01의 패턴 검출에 성공하면 370단계에서 SPS/PPS 정보를 갖는 오브젝트 디스크립터(Object Descriptor)의 위치를 정확히 얻어낸 다음, 380단계에서 표준 문서에 입각하여 SPS/PPS를 검출한다. 여기서 2바이트 검출 패턴의 위치는 오브젝트 디스크립터의 위치를 의미한다. 즉, "0x01**0x01"이 오브젝트 디스크립터의 헤더가 된다.If the pattern detection of 0x01 ** 01 is successful, in
한편 본 발명의 상세한 설명에서는 구체적인 실시 예에 관해 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 발명의 범위는 설명된 실시 예에 국한되어 정해져서는 안 되며 후술하는 특허청구의 범위뿐 만 아니라 이 특허청구의 범위와 균등한 것들에 의해 정해져야 한다.Meanwhile, in the detailed description of the present invention, specific embodiments have been described, but various modifications are possible without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined not only by the scope of the following claims, but also by the equivalents of the claims.
상술한 바와 같이 본 발명은 MPEG-4 SL이 추가된 TS 스트림에서 초기 혹은 채널 전환을 할 때마다 필요하게 되는 SPS/PPS 정보를 빠르게 검출할 수 있다. 지상파 DMB의 경우 PAT 검출이 필요 없고, SPS/PPS 정보를 갖는 섹션 데이터를 검출하는 시간이 획기적으로 감축되어 채널 전환 시간이 줄어드는 효과가 있다. As described above, the present invention can quickly detect SPS / PPS information required for initial or channel switching in a TS stream to which MPEG-4 SL is added. In the case of terrestrial DMB, PAT detection is not required, and the time for detecting section data having SPS / PPS information is greatly reduced, thereby reducing channel switching time.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050017446A KR101148733B1 (en) | 2005-03-02 | 2005-03-02 | Apparatus and method for detecting video stream |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050017446A KR101148733B1 (en) | 2005-03-02 | 2005-03-02 | Apparatus and method for detecting video stream |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20060096726A KR20060096726A (en) | 2006-09-13 |
KR101148733B1 true KR101148733B1 (en) | 2012-05-21 |
Family
ID=37624209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020050017446A KR101148733B1 (en) | 2005-03-02 | 2005-03-02 | Apparatus and method for detecting video stream |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101148733B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101803082B1 (en) * | 2016-08-16 | 2017-11-29 | 서울여자대학교 산학협력단 | Container Generation Method for Ultra High Definition Scalable Video Streaming Services |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100785968B1 (en) * | 2006-06-28 | 2007-12-14 | 주식회사 대우일렉트로닉스 | De- multiplexer in a dmb receiver |
KR20150042651A (en) * | 2013-10-11 | 2015-04-21 | 에스케이플래닛 주식회사 | Codec for video call, user device with the same and codec operating method thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09284664A (en) * | 1996-04-15 | 1997-10-31 | Matsushita Electric Ind Co Ltd | Program information framing method and program information framing device |
KR20030012730A (en) * | 2001-08-04 | 2003-02-12 | 삼성전자주식회사 | Method, apparatus and information storage medium for recording broadcast program |
KR20050014487A (en) * | 2003-07-31 | 2005-02-07 | 삼성전자주식회사 | Mpts-spts splitting apparatus |
-
2005
- 2005-03-02 KR KR1020050017446A patent/KR101148733B1/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09284664A (en) * | 1996-04-15 | 1997-10-31 | Matsushita Electric Ind Co Ltd | Program information framing method and program information framing device |
KR20030012730A (en) * | 2001-08-04 | 2003-02-12 | 삼성전자주식회사 | Method, apparatus and information storage medium for recording broadcast program |
KR20050014487A (en) * | 2003-07-31 | 2005-02-07 | 삼성전자주식회사 | Mpts-spts splitting apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101803082B1 (en) * | 2016-08-16 | 2017-11-29 | 서울여자대학교 산학협력단 | Container Generation Method for Ultra High Definition Scalable Video Streaming Services |
Also Published As
Publication number | Publication date |
---|---|
KR20060096726A (en) | 2006-09-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2721397C (en) | Method of receiving broadcasting signal and apparatus for receiving broadcasting signal | |
US9860611B2 (en) | Broadcast service transmitting method, broadcasting service receiving method and broadcast service receiving apparatus | |
US20080259962A1 (en) | Contents reproducing apparatus | |
EP1746836A2 (en) | Encoded stream reproducing apparatus | |
US7603024B1 (en) | Apparatus for storing and searching audio/video data containing additional information | |
US20100328527A1 (en) | Fast Channel Switch Between Digital Television Channels | |
US8978083B2 (en) | Method for transmitting a broadcast service, method for receiving a broadcast service, and apparatus for receiving a broadcast service | |
US20060034337A1 (en) | Data synchronization method and apparatus for digital multimedia data receiver | |
KR100640424B1 (en) | Apparatus and method for controlling channel change in digital multimedia broadcasting receiver | |
US20080313678A1 (en) | Method and apparatus for transporting mobile broadcasting service, and method and apparatus for receiving mobile broadcasting service | |
US7639636B2 (en) | Method of searching for broadcasting channel of specific program in a DMB receiving terminal | |
US8872970B2 (en) | System and method for transport stream sync byte detection with transport stream having multiple emulated sync bytes | |
US20060203853A1 (en) | Apparatus and methods for video synchronization by parsing time stamps from buffered packets | |
KR101148733B1 (en) | Apparatus and method for detecting video stream | |
WO2011029304A1 (en) | Method and apparatus for retrieving i frame | |
US8483548B2 (en) | Digital broadcast recording apparatus | |
US20080250467A1 (en) | Method of processing broadcasting service information and hybrid tv using the same | |
JP4884787B2 (en) | Broadcast receiving apparatus and channel selection method | |
US8155506B2 (en) | System and method for transport PID version check | |
US20070147785A1 (en) | Method of detecting information break position of multiplexed stream, sound digital broadcast recording apparatus, and recording control method | |
US20060083235A1 (en) | Channel navigation method of digital broadcast and digital broadcast receiver to be applied to the same | |
US8832773B2 (en) | System and method for transport PID broadcast scheme | |
WO2007105697A1 (en) | Digital image data processing device and processing method | |
KR100245842B1 (en) | An demultiplexer for hdtv | |
KR101285380B1 (en) | Apparatus and method for processing Digital broadcasting signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20150429 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20160428 Year of fee payment: 5 |
|
LAPS | Lapse due to unpaid annual fee |