KR20080028673A - Apparatus and method of packaging/unpackaging h.264 movie file streamed or downloaded - Google Patents

Apparatus and method of packaging/unpackaging h.264 movie file streamed or downloaded Download PDF

Info

Publication number
KR20080028673A
KR20080028673A KR1020060094269A KR20060094269A KR20080028673A KR 20080028673 A KR20080028673 A KR 20080028673A KR 1020060094269 A KR1020060094269 A KR 1020060094269A KR 20060094269 A KR20060094269 A KR 20060094269A KR 20080028673 A KR20080028673 A KR 20080028673A
Authority
KR
South Korea
Prior art keywords
video
encryption
encrypted
file
information
Prior art date
Application number
KR1020060094269A
Other languages
Korean (ko)
Other versions
KR100840200B1 (en
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 KR1020060094269A priority Critical patent/KR100840200B1/en
Publication of KR20080028673A publication Critical patent/KR20080028673A/en
Application granted granted Critical
Publication of KR100840200B1 publication Critical patent/KR100840200B1/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/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption
    • H04N21/23473Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving video stream encryption by pre-encrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • 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/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • 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/23605Creation or processing of packetized elementary streams [PES]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/84Generation or processing of descriptive data, e.g. content descriptors

Abstract

A packing/unpacking apparatus for the protection of an H.264 video file and a method thereof are provided to generate a video encrypted in a file format with the same structure as an original video file by using encryption video data, non-encryption video data, and metadata descriptor information under a service environment that the H.264 video file is provided in a VOD(Video On Demand) method, thereby protecting the H.264 video file using an existing streaming system. A metadata generator(120) receives video contents information and encryption information to generate a metadata descriptor to be inserted to a video. A stream analysis unit(110) analyzes an HY.264 video received by using the encryption information transmitted from the metadata generator to search for an encryption area. An encryption unit(130) encrypts the encryption area of the video transmitted from the stream analysis unit by using the encryption information transmitted from the metadata generator. A file generator(140) constitutes the same structure of file as an original file by using the meta descriptor transmitted from the metadata generator, non-encryption video data transmitted from the stream analysis unit, and encryption video data transmitted from the encryption unit to generate an encrypted video file.

Description

H.264 형식의 동영상 파일의 보호를 위한 패키징/언패키징 장치 및 그 방법{APPARATUS AND METHOD OF PACKAGING/UNPACKAGING H.264 MOVIE FILE STREAMED OR DOWNLOADED}PACKAGING / UNPACKING APPARATUS AND PROTECTION FOR THE PROTECTION OF H.264 MOVIE VIDEO FILES {APPARATUS AND METHOD OF PACKAGING / UNPACKAGING H.264 MOVIE FILE STREAMED OR DOWNLOADED}

도 1은 H.264 형식의 비디오 스트림의 구조를 나타내는 도면,1 is a view showing the structure of a video stream in H.264 format,

도 2는 본 발명에 의한 암호화 대상이 되는 슬라이스 NAL의 구조를 나타내는 도면, 2 is a diagram showing the structure of a slice NAL to be encrypted according to the present invention;

도 3은 H.264 형식의 비디오 스트림을 MPEG-2 시스템 TS 형태로 전송될 때의 스트림 계층구조를 나타내는 도면,3 is a diagram illustrating a stream hierarchy when a video stream in H.264 format is transmitted in an MPEG-2 system TS form;

도 4는 동영상 콘텐츠의 오디오 스트림의 구조를 나타내는 도면,4 is a diagram illustrating a structure of an audio stream of video content;

도 5는 TS 패킷의 scrambling control bit를 이용한 암호화 식별표시를 나타내는 도면,5 is a diagram illustrating encryption identification using a scrambling control bit of a TS packet;

도 6은 TS 패킷에 메타데이터가 삽입된 구조를 나타내는 도면,6 is a diagram illustrating a structure in which metadata is inserted into a TS packet;

도 7은 본 발명에 의한 H.264 형식의 동영상 파일의 보호를 위한 패키징/언패키징 장치의 구조를 나타내는 도면,7 is a diagram illustrating a structure of a packaging / unpackaging device for protecting a H.264 format video file according to the present invention;

도 8은 본 발명에 의한 패키징 장치의 스트림 분석부의 스트림 분석 과정을 나타내는 도면,8 is a view showing a stream analysis process of the stream analysis unit of the packaging apparatus according to the present invention;

도 9는 본 발명에 의한 패키징 장치의 암호화부의 암호화 과정을 나타내는 도면,9 is a diagram illustrating an encryption process of an encryption unit of a packaging apparatus according to the present invention;

도 10은 본 발명에 의한 언패키징 장치의 스트리밍 동영상 복호화 과정을 나타내는 도면이다. 10 is a diagram illustrating a streaming video decoding process of an unpackaging apparatus according to the present invention.

본 발명은 인터넷을 통해 서비스되는 H.264 형식의 동영상 파일의 보호에 관한 것으로, 더욱 상세하게는 사전암호화 방식을 이용하면서 기존의 스트리밍 서버를 수정하지 않고 암호화된 H.264 형식의 동영상의 스트리밍이 가능하도록 H.264 형식의 동영상 구조의 특성을 고려한 H.264 형식의 동영상 파일의 보호를 위한 패키징/언패키징 장치 및 그 방법에 관한 것이다. The present invention relates to the protection of H.264 format video file serviced through the Internet. More particularly, the streaming of the encrypted H.264 format video without modifying the existing streaming server using a pre-encryption method The present invention relates to a packaging / unpackaging apparatus and method for protecting an H.264 format video file in consideration of characteristics of the H.264 format video structure.

H.264는 ITU-T 와 ISO/IEC 가 함께 표준화 과정을 진행시켜 얻어낸 새로운 비디오 압축 표준이다. 따라서, H.264는 비디오 어플리케이션의 모든 영역에 적용이 가능하며 상당 수준의 성능의 개선이 이루어진 새로운 표준안이다. H.263v2(H.263+) 혹은 MPEG-4 Simple Profile 과 비교했을 경우 H.264는 동일 조건일 때 대부분의 Bit-Rates에서 50% 이상 비디오 압축효율이 향상된다. H.264 is a new video compression standard that has been achieved by the standardization process between ITU-T and ISO / IEC. Therefore, H.264 is a new standard that can be applied to all areas of video applications and has a significant performance improvement. Compared with H.263v2 (H.263 +) or MPEG-4 Simple Profile, H.264 improves video compression efficiency by more than 50% in most Bit-Rates under the same conditions.

디지털 정보는 제작과 유통이 용이하므로 디지털화된 동영상 제작이 증가하고 있다. 그러나, 디지털 컨텐츠는 복제, 변형, 유포 등이 용이하고 안전하지 않은 인터넷을 통해 유통되고 있어 보안과 저작권 문제가 중요한 쟁점으로 대두되고 있 다. 이러한 문제점은 특히 사용자의 PC에 저장되어 재생되는 동영상에 주로 발생하였으므로 종래에는 사용자의 PC에 저장된 동영상 파일의 보호를 위해 동영상 파일의 전체를 암호화한 후 적법한 사용자에게만 암호화된 동영상 파일을 복호화할 수 있는 정보를 제공하는 방법을 사용하였다. As digital information is easy to produce and distribute, digitalized video production is increasing. However, since digital contents are easily copied, transformed, and distributed, and distributed through the insecure Internet, security and copyright issues are emerging as important issues. In particular, this problem has occurred mainly in the video stored and played on the user's PC. Therefore, in order to protect the video file stored in the user's PC, the encrypted video file can be decrypted only for a legitimate user after encrypting the entire video file. Informational methods were used.

한편, 스트리밍(Streaming)은 로컬 시스템에 컨텐츠를 저장하지 않고 실시간으로 데이터를 전송하여 재생이 가능하도록 하는 기술이다. 주로 대용량 동영상 컨텐츠의 경우 다운로드에 많은 시간이 소요되므로 주문형 비디오와 같은 방식으로 스트리밍을 통하여 서비스를 하는 것이 보편적이다. On the other hand, streaming is a technology that enables playback by transmitting data in real time without storing contents in a local system. In the case of large-capacity video content, it takes a lot of time to download, so it is common to provide services through streaming in the same way as video on demand.

스트리밍 서비스를 통하여 재생되는 동영상은 사용자의 PC에 저장되어 재생되는 동영상에 비하여 사용자의 PC에 저장되지 않기 때문에 불법 복제 등의 문제를 해결할 수 있었다. Since the video played through the streaming service is not stored in the user's PC compared to the video played in the user's PC, it was possible to solve problems such as illegal copying.

하지만, 최근에 스트리밍을 통해 서비스되는 동영상을 저장할 수 있는 프로그램이 등장하면서 스트리밍을 통하여 서비스되는 동영상에 대한 보호방안의 필요성이 대두되고 있다. However, with the recent emergence of programs that can store videos serviced through streaming, the need for protection measures for videos served through streaming is emerging.

종래 암호화 방식으로 이용되고 있는 것으로는 사용자의 스트리밍 요청이 있을 때마다 각 스트리밍 세션을 네트워크상에서 실시간으로 암호화하는 실시간 암호화 방식과 동영상을 미리 암호화하여 스트리밍 하는 사전암호화 방식이 있다. Conventionally, the encryption method includes a real time encryption method for encrypting each streaming session in real time on a network whenever a user requests a streaming, and a pre-encryption method for encrypting and streaming a video in advance.

실시간 암호화 방식은 모든 사용자별로 스트리밍 데이터를 실시간으로 암호화하기 때문에 대규모 사용자 처리시 암호화 성능에 의해 스트리밍 QoS(Quality of Service)에 영향을 주는 문제가 있다. 또한 사전암호화 방식은 동영상 압축 형식 및 파일 포맷을 고려하지 않고 암호화하여 암호화된 파일을 스트리밍 하기 위해서는 기존의 스트리밍 서버를 수정해야 하는 문제가 있다. Since the real-time encryption method encrypts streaming data for every user in real time, there is a problem that the streaming quality of service (QoS) is affected by encryption performance when processing a large user. In addition, the pre-encryption method requires a modification of an existing streaming server in order to stream an encrypted file encrypted without considering a video compression format and a file format.

따라서, 본 발명은 상기한 종래 기술의 문제점을 해결하기 위해 이루어진 것으로서, 본 발명은 사전암호화 방식을 이용하면서 H.264 형식의 동영상을 분석하여 암호화 영역을 암호화한 암호화 동영상 데이터와 비암호화 동영상 데이터 그리고 메타데이터 디스크립터 정보를 원본과 동일한 구조의 파일 형태로 암호화된 동영상 파일을 생성하여 기존의 스트리밍 서버를 수정하지 않고 암호화된 H.264 동영상의 스트밍을 가능하도록 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치를 제공하는 것을 목적으로 한다. Accordingly, the present invention has been made to solve the problems of the prior art, the present invention is to analyze the video of H.264 format while using the pre-encryption method encrypted video data and non-encrypted video data and the encrypted region and Protects video files in H.264 format by generating encrypted video files with metadata descriptor information in the same file structure as the original so that encrypted H.264 video can be streamed without modifying the existing streaming server. An object of the present invention is to provide a packaging device.

한편, 본 발명의 다른 목적은 복호화하는 과정에서 암호화 식별표시를 이용함으로써 복호화로 인한 부하 및 지연을 최소화할 수 있는 H.264 형식의 동영상 파일의 보호를 위한 언패키징 장치를 제공하는 것을 목적으로 한다. Meanwhile, another object of the present invention is to provide an unpackaging apparatus for protecting a video file of H.264 format that can minimize the load and delay caused by decryption by using an encryption identification mark in the decryption process. .

상기와 같은 목적을 달성하기 위한 본 발명의 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치는 동영상 콘텐츠 정보와 암호화 정보를 수신하여 동영상에 삽입할 메타데이터 디스크립터를 생성하는 메타데이터생성부; 상기 메타데이터 생성부로부터 전송된 암호화 정보를 이용하여 수신된 H.264 형식의 동영상을 분석 하여 암호화 영역을 찾는 스트림해석부; 상기 스트림해석부로부터 전달된 동영상의 암호화 영역을 상기 메타데이터 생성부로부터 전달된 암호화 정보를 이용하여 암호화하는 암호화부; 상기 메타데이터 생성부로부터 전달된 메타데이터 디스크립터와 상기 스트림해석부로부터 전달된 비암호화 동영상 데이터 및 상기 암호화부로부터 전달된 암호화 동영상 데이터를 이용하여 원본과 동일한 구조의 파일 형태로 구성하여 암화화된 동영상 파일을 생성하는 파일생성부를 포함하여 이루어지는 것을 특징으로 한다. A packaging apparatus for protecting a video file of the H.264 format of the present invention for achieving the above object comprises a metadata generation unit for receiving a video content information and encryption information to generate a metadata descriptor to be inserted into the video; A stream analysis unit searching for an encryption region by analyzing the received H.264 video using the encryption information transmitted from the metadata generator; An encryption unit for encrypting an encryption area of the video transmitted from the stream analyzer using the encryption information transmitted from the metadata generator; Encrypted video by using the metadata descriptor transmitted from the metadata generator, the unencrypted video data transmitted from the stream analysis unit, and the encrypted video data transmitted from the encryption unit to form a file having the same structure as the original. And a file generation unit for generating a file.

또한, 본 발명의 H.264 형식의 동영상 파일의 보호를 위한 언패키징 장치는 입력된 암호화된 동영상을 분석하여 상기 동영상에 삽입되어 있는 메타데이터 디스크립터로부터 콘텐츠 정보 및 암호화 정보를 추출하는 메타데이터 해석부; 상기 암호화된 동영상의 암호화 영역을 상기 메타데이터 해석부의 암호화 정보를 이용하여 복호화하는 복호화부을 포함하는 것을 특징으로 한다. In addition, the unpackaging device for protecting the H.264 format video file of the present invention is a metadata analysis unit for analyzing the input encrypted video to extract the content information and encryption information from the metadata descriptor inserted in the video ; And a decryption unit configured to decrypt the encrypted region of the encrypted video using encryption information of the metadata analysis unit.

한편, 본 발명의 H.264 형식의 동영상 파일의 보호를 위한 패키징 방법은 Meanwhile, a packaging method for protecting a H.264 video file of the present invention

동영상 콘텐츠 정보와 암호화 정보를 수신하여 동영상에 삽입할 메타데이터 디스크립터를 생성하는 1 단계; 상기 1 단계에서 수신된 암호화 정보를 이용하여 H.264 형식의 동영상을 분석하여 비암호화 영역과 암호화 영역을 탐색하는 2 단계; 상기 2 단계에서 탐색된 동영상의 암호화 영역을 상기 암호화 정보를 이용하여 암호화하는 3 단계; 상기 1 단계에서 생성된 메타데이터 디스크립터와 제 2 단계에서 탐색된 비암호화 동영상 데이터 및 제 3 단계의 암호화된 암호화 동영상 데이터를 이용하여 원본과 동일한 구조의 파일 형태로 구성하여 암호화된 동영상 파일을 생성하는 4단계를 포함하여 이루어지는 것을 특징으로 한다. Receiving a video content information and encryption information and generating a metadata descriptor to be inserted into the video; Step 2 of searching for an unencrypted area and an encrypted area by analyzing a video in H.264 format using the encrypted information received in step 1; Encrypting the encrypted region of the video searched in the second step using the encryption information; Using the metadata descriptor generated in the first step, the unencrypted video data found in the second step and the encrypted encrypted video data in the third step, the encrypted video file is generated by forming a file having the same structure as the original. Characterized in that it comprises four steps.

이하, 본 발명의 H.264 형식의 동영상 파일의 보호를 위한 패키징/언패키징 장치 및 방법에 대하여 첨부된 도면을 참조하여 상세히 설명하기로 한다. Hereinafter, a packaging / unpackaging apparatus and method for protecting a H.264 video file of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 H.264 형식의 비디오 스트림의 구조를 나타내는 도면이다.1 is a diagram illustrating a structure of a video stream in an H.264 format.

본 발명에 의해 보호 대상이 되는 H.264 형식의 동영상 방송스트림은 MPEG-2 시스템의 전송 스트림(Transport Stream : TS)형태로 다중화하여 멀티캐스트 방식으로 스트리밍되는 것을 가정한다. It is assumed that the H.264 format video broadcast stream protected by the present invention is multiplexed into a transport stream (TS) of the MPEG-2 system and streamed in a multicast manner.

H.264 비디오 스트림은 NAL(Network Adaptation Layer) 씨퀀스 형태로 이루어진다. 도 1a와 같이 H.264 비디오 스트림은 SPS(Sequence Parameter Set) NAL, PPS(Picture Parameter Set) NAL, SEI(Supplementary Enhanced Information) NAL, AU(Access Unit) delimiter NAL, Slice NAL 등 여러 종류의 NAL를 포함하여 이루어진다. 각각의 NAL은 NAL 헤더와 데이터 그리고 비트조정 부분으로 구성된다. NAL 헤더는 nal_unit_type 필드를 포함하고, 그 값에 의해 NAL의 종류를 알 수 있다. H.264 형식의 비디오 스트림을 보호하기 위해 이루어지는 동영상 암호는 여러 종류의 NAL 중 실제 비디오 데이터를 담고 있는 Slice NAL의 암호를 통해 이루어진다. SPS, PPS, SEL NAL 등은 스트리밍 서버에서 필요로 하는 정보이기 때문에 이 NAL 들을 암호화할 경우 스트리밍 서버에서 정상적인 작동이 이루어지지 않는 결과를 초래할 수 있다. The H.264 video stream is in the form of a network adaptation layer (NAL) sequence. As shown in FIG. 1A, the H.264 video stream includes several types of NALs, such as a sequence parameter set (SPS) NAL, a picture parameter set (PPS) NAL, a supplementary enhanced information (SEI) NAL, an access unit delimiter NAL, and a slice NAL. It is made to include. Each NAL consists of a NAL header, data, and bit adjustments. The NAL header includes a nal_unit_type field, and the value of the NAL header indicates the type of NAL. Video encryption is performed to protect video streams in H.264 format through the Slice NAL's encryption, which contains the actual video data. SPS, PPS, SEL NAL, etc. are information required by the streaming server, so if these NALs are encrypted, they may result in the failure of normal operation on the streaming server.

도 2는 본 발명에 의한 암호화 대상이 되는 슬라이스 NAL의 구조를 나타내는 도면이다. 2 is a diagram showing the structure of a slice NAL to be encrypted according to the present invention.

암호화 대상이 되는 슬라이스(Slice) NAL의 구조는 NAL 헤더, Slice 헤더, Slice 데이터, 조정 비트로 구성된다. Slice 헤더는 First_mb_in_slice 필도, Slice_type 필드 등으로 구성된다. Slice의 인코딩 방식으론 I 타입, B 타입 또는 P 타입이 있는데, Slice 헤더의 Slice_type 필드를 통해 인코딩 방식을 알 수 있다. 암호화 옵션에 따라 모든 Slice를 암호화거나 I 타입의 Slice만을 암호화할 때 Slice 헤더의 Slice_type 정보를 이용한다. Slice 헤더 역시 암호화에서 제외되고 Slice 데이터 영역만이 암호화 대상이 된다.The structure of the slice NAL to be encrypted is composed of a NAL header, Slice header, Slice data, and adjustment bits. The Slice header consists of the First_mb_in_slice field and the Slice_type field. There are I type, B type, or P type of encoding method of Slice. You can know the encoding method through Slice_type field of Slice header. Depending on the encryption option, the Slice_type information in the Slice header is used when encrypting all slices or only I slices. The Slice header is also excluded from encryption and only the Slice data area is encrypted.

도 3은 H.264 형식의 비디오 스트림을 MPEG-2 시스템 TS 형태로 전송될 때의 스트림 계층구조를 나타내는 도면이다. 3 is a diagram illustrating a stream hierarchy when an H.264 format video stream is transmitted in the form of an MPEG-2 system TS.

연속된 NAL로 구성된 H.264 비디오 스트림이 TS 형태로 될 때 중간에 PES 형태를 거치게 된다. 연속된 NAL 시퀀스는 PES 패킷에 담기고 PES 패킷은 다시 TS 패킷에 실린다. TS에서 암호화는 Slice 데이터를 담고 있는 TS 패킷이 대상이 된다. 아래 그림에서 사선으로 된 부분이 암호화된 영역을 표시하고 있다. When the H.264 video stream composed of consecutive NALs is in the TS format, it goes through the PES format in the middle. Consecutive NAL sequences are contained in PES packets and PES packets are again loaded in TS packets. In TS, encryption targets TS packets containing slice data. The diagonal lines in the figure below indicate the encrypted areas.

도 4는 동영상 콘텐츠의 오디오 스트림의 구조를 나타내는 도면이다. 4 is a diagram illustrating a structure of an audio stream of video content.

동영상 콘텐츠의 오디오는 대부분 MP3, AAC, 또는 AC3 포맷으로 되어 있다. 오디오 스트림은 연속된 오디오 프레임으로 구성되며 오디오 프레임은 오디오 프레임 헤더와 오디오 데이터로 구성된다. 오디오 프레임 헤더에는 오디오 프레임의 시작을 알리는 Syncword가 포함되어 있어 오디오 프레임의 시작을 알 수 있다. 오디오 역시 오디오 프레임 헤더를 제외하고 오디오 데이터가 포함된 TS 패킷만 암호화 대상이 된다. Most audio in video content is in MP3, AAC, or AC3 format. The audio stream consists of consecutive audio frames, and the audio frame consists of an audio frame header and audio data. The audio frame header includes a Syncword indicating the start of the audio frame, so that the start of the audio frame can be known. Audio is also encrypted, except for audio frame headers, only TS packets containing audio data.

도 5는 TS 패킷의 scrambling control bit를 이용한 암호화 식별표시를 나타내는 도면이다. 5 is a diagram illustrating an encryption identification mark using a scrambling control bit of a TS packet.

암호화되어 전송된 동영상의 암호화된 TS 패킷과 암호화되지 않은 TS 패킷을 구분하는 방법은 TS 패킷 헤더의 scrambling control bit의 암호화 식별표시를 이용한다. 도 5와 같이 암호화되지 않은 TS 패킷은 scrambling control bit 값을 '00'으로 설정하고, 암호화된 TS 팻킷은 scrambling control bit 값을 '11'로 설정한다. 암호화된 동영상 콘텐츠를 복호화하는 언패키징 장치에서는 scrambling control bit 값을 보고 해당 TS 팻킷을 복호화해야할지를 결정할 수 있다. 그 결과 복호화 시간을 줄일 수 있다. The method of distinguishing the encrypted TS packet and the unencrypted TS packet of the encrypted and transmitted video uses an encryption identification mark of the scrambling control bit of the TS packet header. As shown in FIG. 5, the unencrypted TS packet sets the scrambling control bit value to '00', and the encrypted TS packet sets the scrambling control bit value to '11'. The unpackaging apparatus for decrypting the encrypted video content may determine whether to decrypt the TS packet by looking at the scrambling control bit value. As a result, the decoding time can be reduced.

도 6은 TS 패킷에 메타데이터가 삽입된 구조를 나타내는 도면이다. 6 is a diagram illustrating a structure in which metadata is inserted into a TS packet.

패키징된 동영상 콘텐츠를 다운로드서비스에서도 이용할 수 있도록 동영상에 메타데이터를 삽입할 수 있다. 다만, 패키징된 콘텐츠를 스트리밍 서비스에만 이용한다면 메타데이터가 없어도 된다. 메타데이터는 도 6과 같은 형태로 동영상 콘텐츠에 삽입될 수 있다. 메타데이터는 동영상 스트림에 있는 Program Map Table(PMT)에 DRM_descriptor를 추가하고 PMT 패킷 뒤에 콘텐츠 정보를 담고 있는 Content_info 패킷을 새로 생성하여 삽입한다. Metadata can be inserted into the video so that the packaged video content can be used in a download service. However, if the packaged content is used only for the streaming service, there is no need for metadata. The metadata may be inserted into the video content in the form as shown in FIG. 6. The metadata adds a DRM_descriptor to the Program Map Table (PMT) in the video stream, and creates and inserts a new Content_info packet containing content information after the PMT packet.

Program Map Table에 삽입하는 DRM_descriptor는 다음 정보를 포함한다. The DRM_descriptor inserted in the Program Map Table includes the following information.

● Content_ID: 패키징된 콘텐츠의 Content_ID● Content_ID: Content_ID of the packaged content

● Key_acquisition_address: 패키징된 콘텐츠를 재생하기 위해 필요한 키 정보를 얻을 수 있는 키 획득을 위한 주소● Key_acquisition_address: address for key acquisition to obtain key information necessary for playing the packaged content.

● Content_info_PID: 콘텐츠 정보를 담고 있는 패킷의 PID(Program ID)● Content_info_PID: PID (Program ID) of the packet containing the content information

콘텐츠 정보를 담고 있는 Content_info 패킷은 다음 정보를 담고 있다.  The Content_info packet containing the content information contains the following information.

● Content_Title: 콘텐츠 제목● Content_Title: content title

● Conten_Produciton_Year: 콘텐츠 제작년도● Conten_Produciton_Year: Content Creation Year

● Content_Genre: 콘텐츠 장르● Content_Genre: Content Genre

● Content_Synopsis: 콘텐츠 요약 정보● Content_Synopsis: Content summary information

PMT에 DRM_descriptor를 삽입하는 방법은 PMT의 descriptor 영역에 DRM_descriptor를 추가하는 방식이다. The method of inserting the DRM_descriptor into the PMT is a method of adding the DRM_descriptor to the descriptor area of the PMT.

아래 표에서 파란색으로 표시한 부분인 program _ info _ length for(i=0;i<N;i++) {VOD_DRM_descriptor()} CRC _ 32 이다. 즉, PMT에서 변경되는 부분은 파란색으로 표시한 부분이다. PMT 정보가 변경되었으므로 CRC 값도 변경된다. 다음 표는 DRM_descriptor가 추가된 PMT의 구조를 나타낸다. Program _ info _ length for (i = 0; i <N; i ++) {VOD_DRM_descriptor ()} and CRC _ 32 are shown in blue in the table below. In other words, the part that is changed in the PMT is displayed in blue. Since the PMT information has changed, the CRC value also changes. The following table shows the structure of the PMT added with the DRM_descriptor.

SyntaxSyntax TS_program_map_section() { table_id section_syntax_indicator ‘0’ reserved section_length program_number reserved version_number current_next_indicator section_number last_section_number reserved PCR_PID reserved program _ info _ length for(i=0;i<N;i++) { VOD _ DRM _ descriptor () } for(i=0;i<N1;i++) { stream_type reserved elementary_PID reserved ES_info_length for(i=0;i<N;i++) { descriptor() } } CRC _32 } TS_program_map_section () {table_id section_syntax_indicator ‘0’ reserved section_length program_number reserved version_number current_next_indicator section_number last_section_number reserved PCR_PID reserved program _ info _ length   for (i = 0; i <N; i ++) {   VOD _ DRM _ descriptor ()   }  for (i = 0; i <N1; i ++) {stream_type reserved elementary_PID reserved ES_info_length for (i = 0; i <N; i ++) {descriptor ()}} CRC _32  }

다음 표는 PMT에 삽입되는 DRM_descriptor의 구조이다. The following table shows the structure of DRM_descriptor inserted in PMT.

SyntaxSyntax descriptiondescription VOD_DRM_descriptor() { descriptor_tag descriptor_length content_ID Key_acquisition_address_length Key_acquisition_address Content_info_PID } VOD_DRM_descriptor () {descriptor_tag descriptor_length content_ID Key_acquisition_address_length Key_acquisition_address Content_info_PID} 0x80 다음 바이트부터 descriptor 끝까지 byte 수 패키징된 콘텐츠의 식별자 키 획득 주소의 길이 키를 얻을 수 있는 관련 주소 Content_info 패킷의 PID     0x80 The number of bytes from the next byte to the end of the descriptor. The identifier of the packaged content. The length of the key acquisition address. The relevant address to obtain the key. PID of the Content_info packet.

다음 표는 콘텐츠 정보를 담은 Content_info 패킷의 구조를 나타낸다. 콘텐츠 정보의 길이가 길어서 하나의 패킷에 포함되지 않을 때는 private_indicator를 이용해 다음 패킷과 내용이 연결됨을 나타내고 패킷을 하나 더 추가한다. private_indicator가 0이면 현재 패킷의 내용이 끝이 아님을 나타낸다. 뒤에 나오는 패킷과 내용이 이어져 있음을 나타낸다. private_indicator가 1이면 현재 private section의 내용이 끝임을 나타낸다. The following table shows the structure of a Content_info packet containing content information. When the length of content information is not included in one packet, it indicates that the next packet and content are connected by using private_indicator and adds another packet. If private_indicator is 0, it indicates that the contents of the current packet are not end. It indicates that the packet and the contents that follow are connected. If private_indicator is 1, this indicates that the contents of the current private section are over.

SyntaxSyntax descriptiondescription VOD_ContentInfo_private_section() { table_id section_syntax_indicator private_indicator reserved private_section_length content_title_length content_title content_genre_length content_gene content_production_year content_synopsis_length content_synopsis } VOD_ContentInfo_private_section () {table_id section_syntax_indicator private_indicator reserved private_section_length content_title_length content_title content_genre_length content_gene content_production_year content_synopsis_length content_synopsis} 0x80 ‘0’ marker bit처럼 이용 ‘0’ 이후부터 끝날 때 까지 byte 수 title 길이 title content 장르 길이 content 장르 제작 년도 줄거리 길이 줄거리   0x80 Use as '0' marker bit Number of bytes from '0' to the end title length title content Genre length content Genre Year Plot Length Plot

PMT에 DRM_descriptor를 삽입할 때는 동영상 콘텐츠에서 가장 처음에 나오는 PMT에 삽입하고 새로 추가하는 Content_info 패킷은 변경된 PMT 패킷 바로 뒤에 삽입한다. When inserting the DRM_descriptor into the PMT, the new content_info packet is inserted immediately after the changed PMT packet.

도 7은 본 발명에 의한 H.264 형식의 동영상 파일의 보호를 위한 패키징/언패키징 장치의 구조를 나타내는 도면이다. 7 is a diagram illustrating a structure of a packaging / unpackaging apparatus for protecting a H.264 format video file according to the present invention.

H.264 형식의 동영상 파일의 보호를 위한 패키징 장치(100)는 H.264 형식의 동영상을 수신하여 암호화하고, 메타데이터를 삽입하여 원본 동영상과 동일한 구종의 파일 형태의 암호화 동영상을 생성한다. The packaging apparatus 100 for protecting the H.264 format video file receives and encrypts the H.264 format video, and inserts metadata to generate an encrypted video having the same file type as the original video.

서트리밍 서버(200)는 패키징 장치(100)에 의해 암호화된 동영상을 수신하여 요청이 있는 사용자 단말로 스트리밍 서비스를 제공한다. The trimming server 200 receives a video encrypted by the packaging apparatus 100 and provides a streaming service to a user terminal having a request.

사용자 단말(300)은 스트리밍 서버(200)에 의해 스트리밍된 암호화 동영상을 복호화하여 복호화 동영상을 생성한다. 사용자 단말(300)이 암호화 동영상을 복호화하기 위해 언패키징 장치(310)를 구비한다. The user terminal 300 decrypts the encrypted video streamed by the streaming server 200 to generate a decrypted video. The user terminal 300 includes an unpackaging apparatus 310 to decrypt the encrypted video.

언패키징 장치(310)는 스트리밍 서버로부터 스트리밍되는 암호화 동영상이나 로컬시스템에 다운로드되어 있는 암호화 동영상을 복호화한다. The unpackaging apparatus 310 decrypts the encrypted video streamed from the streaming server or the encrypted video downloaded to the local system.

패키징 장치(100)는 메타데이터 생성부(120), 스트림 해석부(110), 암호화부(130)와 파일 생성부(140)를 구비한다. The packaging apparatus 100 includes a metadata generator 120, a stream analyzer 110, an encryption unit 130, and a file generator 140.

메타데이터 생성부(120)는 메타데이터와 암호화 정보를 수신한다. 메타데이터는 동영상 콘텐츠 정보와 암호화 정보를 포함한다. 따라서, 메타데이터 생성부(120)는 동영상 콘텐츠 정보와 암호화키 정보, 암호화 크기, 암호화할 영역 선택 정보 등의 암호화 정보를 입력받아 동영상에 삽입할 메타데이터 기술정보를 생성한다. The metadata generator 120 receives metadata and encryption information. The metadata includes video content information and encryption information. Therefore, the metadata generator 120 receives encryption information such as video content information, encryption key information, encryption size, region selection information to be encrypted, and generates metadata description information to be inserted into the video.

스트림 해석부(110)는 TS 형식으로 다중화된 H.264 형식의 동영상 파일을 수신하여 암호화 영역과 비암호화 영역을 해석한다. 스트림 해석부(110)는 TS 형식으로 다중화된 H.264 형식의 동영상을 메타데이터 생성부(120)에서 전달된 암호화 정보를 이용하여 암호화 영역을 분석한다. 암호화 영역을 분석하는 경우에 암호화 정보의 암호화할 영역 선택 정보를 이용한다. The stream analyzer 110 receives the H.264 video file multiplexed in the TS format and analyzes the encrypted area and the non-encrypted area. The stream analyzer 110 analyzes the encryption region using the encryption information transferred from the metadata generator 120 to the H.264 format video multiplexed in the TS format. When analyzing the encryption area, the area selection information to be encrypted of the encryption information is used.

암호화부(130)는 스트림 해석부(110)의 분석에 의한 H.264 형식의 동영상 데이터와 메타데이터 생성부(120)로부터 전달된 암호화 정보 중에서 암호화 위치 정보와 암호화 크기 데이터를 이용해 동영상 데이터를 암호화한다. 암호화부(130)는 동영상 데이터를 전달된 암호화 크기만큼씩 암호화한 후 암호화 식별표시를 한다. 암호화 식별표시는 TS 패킷 헤더의 scrambling control bit를 이용한다. The encryption unit 130 encrypts the video data by using the encryption position information and the encryption size data among the video data of the H.264 format and the encryption information transmitted from the metadata generator 120 by the analysis of the stream analyzing unit 110. do. The encryption unit 130 encrypts the video data by the size of the transmitted encryption and then displays an encryption identification mark. The encryption identification mark uses the scrambling control bit of the TS packet header.

파일 생성부(140)는 원본과 동일한 구조의 파일 형태로 구성되는 암호화된 동영상 파일을 생성한다. 파일 생성부(140)는 메타데이터 생성부(120)로에서 생성된 메타데이터 기술 정보인 메타데이터 디스크립터 정보를 수신하고, 스트림 해석부(110)의 동영상 분석에 의한 비암호화 동영상 데이터를 수신하고, 암호화부(130)로부터 암호화된 암호화 동영상 데이터를 수신한다. 파일 생성부(140)는 메타데이터 정보를 이용해 PMT 테이블에 DRM_descriptor를 추가하고 CRC를 새로 생성하여 기존의 PMT 패킷을 수정하고 콘텐츠 정보를 포함한 Content_Info 패킷을 생성하여 PMT 패킷 뒤에 Content_Info 패킷을 삽입하고 암호화 동영상 패킷 및 비암호화 동 영상 패킷 또한 입력된 순서대로 파일로 씀으로써 원본과 동일한 파일 형태로 구성하여 암호화된 동영상 파일을 생성한다. The file generator 140 generates an encrypted video file composed of a file having the same structure as the original. The file generator 140 receives metadata descriptor information, which is metadata description information generated by the metadata generator 120, and receives unencrypted video data by video analysis of the stream analyzer 110. Receive encrypted encrypted video data from the encryption unit 130. The file generator 140 adds a DRM_descriptor to the PMT table using metadata information, creates a new CRC, modifies an existing PMT packet, generates a Content_Info packet including content information, inserts a Content_Info packet after the PMT packet, and encrypts the video. Packets and unencrypted video packets are also written to files in the input order to form the same file format as the original to create an encrypted video file.

스트리밍 서버(200)는 기존의 원본 H.264 형식의 동영상을 스트리밍하는 서버를 그대로 이용하여 패키징 장치(100)에 의해 암호화된 동영상을 사용자 단말(300)로 스트리밍한다. The streaming server 200 streams the video encrypted by the packaging apparatus 100 to the user terminal 300 by using a server for streaming the original H.264 video.

언패키징 장치(310)는 메타데이터 해석부(312)와 복호화부(311)를 포함하여 이루어진다. 메타데이터 해석부(312)는 스트리밍 서버(200)로부터 입력된 암호화된 동영상을 분석하여 동영상에 삽입되어 있는 메타데이터 디스크립터로부터 콘텐츠 정보 및 암호화 정보를 추출한다. The unpackaging apparatus 310 includes a metadata analyzer 312 and a decoder 311. The metadata analyzer 312 analyzes the encrypted video input from the streaming server 200 and extracts content information and encryption information from a metadata descriptor inserted in the video.

복호화부(311)는 암호화된 동영상의 암호화 영역을 메타데이터 해석부(312)의 암호화 정보를 이용하여 복호화하고, 사용자 단말(300)을 이용하여 복호화 영상을 재생한다. The decryption unit 311 decrypts the encrypted region of the encrypted video by using the encryption information of the metadata analyzer 312 and reproduces the decrypted image by using the user terminal 300.

언패키징 장치(310)는 스트리밍 서버(200)에 의해 스트리밍되는 암호화된 동영상을 복호화하는 것은 물론, 미리 암호화되어 사용자 단말(300)에 다운로드되어 있는 다운로드 동영상 파일(320)을 이용하여 암호화된 동영상을 복호화할 수 있다. The unpackaging device 310 not only decrypts the encrypted video streamed by the streaming server 200, but also encrypts the encrypted video using the downloaded video file 320 that is previously encrypted and downloaded to the user terminal 300. Can be decrypted

도 8은 본 발명에 의한 패키징 장치의 스트림 분석부의 스트림 분석 과정을 나타내는 도면이다. 8 is a diagram illustrating a stream analysis process of the stream analysis unit of the packaging apparatus according to the present invention.

스트림 분석부는 동영상에서 헤더의 PID(Program ID)를 이용해 비디오 패킷 을 선택해서 읽는다.S810), 선택해서 읽은 비디오 패킷의 유료부하에서 NAL(Network Adaptation Layer)의 시작코드(Start Code)를 검출한다.(S820) 만일 NAL의 시작코드가 없으면 enc_flag값을 비교하여 바로 암호화하고, NAL의 시작코드가 있으면 일단, enc_flag 값을 ‘0’으로 설정하고 NAL의 헤더에서 NAL 타입정보를 검출한다.(S830) 검출된 NAL의 타입이 슬라이스 이외의 타입을 가질 때는 다음 비디오 패킷을 읽고, 슬라이스 타입을 가진 NAL이면 현재 비디오 패킷의 유료부하 내에 또 다른 NAL이 있는지 찾고 현재의 비디오 패킷에 두 개 이상의 NAL이 있을 경우 enc_flag 값을 ‘0’으로 설정한 후 다음 비디오 패킷을 읽는다.(S840) NAL이 없을 경우 enc_flag 값이 '0'인지 확인한다.(S850) 만일 enc_flag 값이‘0’이면 enc_flag 값을 ‘1’로 설정하고 다음 비디오 패킷을 읽고, enc_flag 값이 ‘0’이 아니면 암호화 영역 선택 정보인 skip_cnt값에 따라 암호화할 영역을 지정하기 위해 enc_cnt값을 1 증가한 값과 skip_cnt값을 비교한다.(S860) enc_cnt값이 더 작으면 다음 비디오 패킷을 읽고, enc_cnt값이 더 크면 현재 비디오 패킷의 유료부하에 있는 슬라이스 NAL을 암호화부에서 처리한다.(S870) 그리고 enc_cnt값을 다시 ‘0’으로 설정하는 단계로 구성된다. The stream analyzing unit selects and reads a video packet using a PID (Program ID) of the header in the video. S810. The start code of the NAL (Network Adaptation Layer) is detected from the payload of the selected video packet. If there is no start code of the NAL, the enc_flag value is compared and immediately encrypted. If there is a start code of the NAL, the enc_flag value is set to '0' and the NAL type information is detected from the header of the NAL (S830). If the detected NAL has a type other than a slice, the next video packet is read. If the NAL has a slice type, it finds another NAL within the payload of the current video packet, and if there is more than one NAL in the current video packet. After setting the enc_flag value to '0', the next video packet is read. (S840) If there is no NAL, check whether the enc_flag value is '0'. (S850) If the enc_flag value is '0', enc_ Set the flag value to '1' and read the next video packet, and if the enc_flag value is not '0', compare the skip_cnt value with the incremented value of enc_cnt by 1 to specify the area to encrypt according to the skip_cnt value, which is the encryption region selection information. (S860) If the enc_cnt value is smaller, the next video packet is read. If the enc_cnt value is larger, the slice NAL in the payload of the current video packet is processed by the encryption unit (S870). It consists of the steps to set.

도 9는 본 발명에 의한 패키징 장치의 암호화부의 암호화 과정을 나타내는 도면,9 is a diagram illustrating an encryption process of an encryption unit of a packaging apparatus according to the present invention;

암호화 영역 선택 정보인 enc_size값과 현재 비디오 패킷의 유료부하의 크기(payload_size)를 비교한다.(S910) enc_size값DL 현재 비디오 패킷의 유료부하의 크기(payload_size)보다 더 클 경우 종료하고, enc_size값이 유료부하의 크기(payload_size)보다 작으면 유료부하의 뒤에서부터 enc_size의 크기 만큼에 해당하는 영역을 암호화한다.(S920) 이렇게 암호화된 영역에서 NAL의 시작코드(start code)가 있는지 검출한다.(S930) 암호화된 영역에서 NAL의 시작코드(start code)가 없으면 종료하고, 암호화된 영역에서 NAL의 시작코드(start code)가 검출되면 암호화된 영역을 다시 암호화하기 전 원본 상태로 복구한다.(S940) The enc_size value, which is encryption region selection information, is compared with the payload size of the current video packet (payload_size). (S910) enc_size value DL If the payload size of the current video packet is larger than the payload_size, the process ends. If it is smaller than the payload size (payload_size), an area corresponding to the size of enc_size is encrypted from the back of the payload (S920). In this way, it is detected whether there is a start code of NAL in the encrypted area. If there is no start code of the NAL in the encrypted region, the process terminates. If a start code of the NAL is detected in the encrypted region, the encrypted region is restored to its original state before being encrypted again (S940).

도 10은 본 발명에 의한 언패키징 장치의 스트리밍 동영상 복호화 과정을 나타내는 도면이다. 10 is a diagram illustrating a streaming video decoding process of an unpackaging apparatus according to the present invention.

암호화 영역 선택 정보인 enc_size값과 현재 비디오 패킷의 유료부하의 크기(payload_size)를 비교한다.(S950) enc_size값이 유료부하의 크기(payload_size)보다 작으면 동영상에서 헤더의 PID를 이용해 비디오 패킷을 선택해서 읽는다.(S960) 비디오 패킷 헤더의 암호화 식별 표시(enc_id)를 확인한다.(S970) 암호화 표시가 되어 있지 않으면 다음 비디오 패킷을 읽고, 암호화 표시가 되어 있는 비디오 패킷의 유료부하를 enc_size의 크기만큼 복호화한다.(S980) 복호화된 비디오 패킷 헤더의 암호화 식별 표시를 제거한다.(S990) 이때 복호화에 이용하는 키와 암호화 영역 선택 정보는 동영상 스트리밍 서비스를 받기 전에 별도의 채널을 통해 서비스 업자로부터 제공받을 수 있다. The enc_size value, which is the encryption region selection information, is compared with the payload size (payload_size) of the current video packet. (S960) Check the encryption identification mark (enc_id) of the video packet header. (S970) If the encryption mark is not displayed, the next video packet is read, and the payload of the video packet marked with encryption is equal to the size of enc_size. (S980) The encryption identification mark of the decrypted video packet header is removed. (S990) At this time, the key and encryption region selection information used for decryption can be provided from a service provider through a separate channel before receiving a video streaming service. have.

이상에서 몇 가지 실시예를 들어 본 발명을 더욱 상세하게 설명하였으나, 본 발명은 반드시 이러한 실시예로 국한되는 것이 아니고 본 발명의 기술사상을 벗어나지 않는 범위 내에서 다양하게 변형실시될 수 있다.Although the present invention has been described in more detail with reference to some embodiments, the present invention is not necessarily limited to these embodiments, and various modifications can be made without departing from the spirit of the present invention.

상술한 바와 같이, 본 발명에 의한 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치는 H.264 형식의 동영상을 주문형 비디오 방식으로 서비스하는 환경에서 암호화 동영상 데이터와 비암호화 동영상 데이터 그리고 메타데이터 디스크립터 정보를 원본과 동일한 구조의 파일 형태로 암호화된 동영상을 생성하여 기존 스트리밍 시스템을 이용할 수 있는 효과가 있다. As described above, the packaging device for the protection of the H.264 format video file according to the present invention is encrypted video data, non-encrypted video data and metadata descriptors in an environment that serves a video on demand H.264 format It is possible to use the existing streaming system by generating the encrypted video information in the form of the file of the same structure as the original.

또한, 본 발명에 의한 H.264 형식의 동영상 파일의 보호를 위한 언패키징 장치는 동영상 파일의 암호화 영역의 암호화 식별표시를 이용하여 복호화하는 영역을 쉽게 찾을 수 있어 모바일 기기나 셋탑박스와 같은 저성능의 클라이언트 단말을 이용하여 복호화 작업을 수행할 수 있는 효과가 있다. 또한 H.264 형식의 동영상의 암호화할 영역을 아주 작은 영역에서부터 동영상 대부분을 차지하는 영역까지 다양하게 선택할 수 있도록 하여 전체 시스템의 성능에 별다른 영향을 주지 않으면서 동영상을 보호할 수 있는 효과가 있다. In addition, the unpackaging apparatus for protecting the H.264 format video file according to the present invention can easily find the region to be decrypted using the encryption identification mark of the encrypted region of the video file, such as a low-performance device such as a mobile device or a set-top box There is an effect that the decoding operation can be performed using the client terminal of. In addition, H.264 format video can be selected from a very small area to the area that occupies most of the video, thereby protecting the video without affecting the performance of the entire system.

Claims (19)

동영상 콘텐츠 정보와 암호화 정보를 수신하여 동영상에 삽입할 메타데이터 디스크립터를 생성하는 메타데이터생성부;A metadata generator which receives the video content information and the encryption information to generate a metadata descriptor to be inserted into the video; 상기 메타데이터 생성부로부터 전송된 암호화 정보를 이용하여 수신된 H.264 형식의 동영상을 분석하여 암호화 영역을 찾는 스트림해석부;A stream analysis unit searching for an encryption region by analyzing the received H.264 video using the encryption information transmitted from the metadata generator; 상기 스트림해석부로부터 전달된 동영상의 암호화 영역을 상기 메타데이터 생성부로부터 전달된 암호화 정보를 이용하여 암호화하는 암호화부;An encryption unit for encrypting an encryption area of the video transmitted from the stream analyzer using the encryption information transmitted from the metadata generator; 상기 메타데이터 생성부로부터 전달된 메타데이터 디스크립터와 상기 스트림해석부로부터 전달된 비암호화 동영상 데이터 및 상기 암호화부로부터 전달된 암호화 동영상 데이터를 이용하여 원본과 동일한 구조의 파일 형태로 구성하여 암호화된 동영상 파일을 생성하는 파일생성부를 포함하여 이루어지는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치.A video file encrypted by using the metadata descriptor transmitted from the metadata generator, the non-encrypted video data transmitted from the stream analyzer, and the encrypted video data transmitted from the encryption unit, in the form of a file having the same structure as the original. Packaging apparatus for protecting a video file of the H.264 format, characterized in that comprises a file generation unit for generating a. 제 1항에 있어서, The method of claim 1, 상기 암호화 정보는 암호화 키 정보, 암호화 크기, 암호화할 영역 선택 정보를 포함하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치.And the encryption information includes encryption key information, encryption size, and region selection information to be encrypted. 제 1항에 있어서, The method of claim 1, 상기 스트림 해석부는 상기 메타데이터 생성부로부터 전달된 암호화할 영역 선택정보를 이용하여 암호화 영역을 찾는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치.And the stream analyzer finds an encrypted region by using the region selection information to be encrypted transmitted from the metadata generator. 제 1항에 있어서, The method of claim 1, 상기 암호화부는 동영상을 암호화하고, 암호화 식별표시를 하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치.The encryption unit is a packaging device for protecting a video file of the H.264 format, characterized in that for encrypting the video, and the encryption identification display. 제 1항에 있어서, The method of claim 1, 상기 파일생성부는 상기 동영상 Program Map Table(PMT)에 DRM_descriptor를 추가하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치.And the file generator adds DRM_descriptor to the video program map table (PMT). 제 5항에 있어서,The method of claim 5, 상기 파일 생성부는 상기 PMT 패킷 뒤에 Content_info 패킷을 삽입하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치.And the file generation unit inserts a Content_info packet after the PMT packet. 제 5항에 있어서, The method of claim 5, 상기 DRM_descriptor는 상기 PMT의 descriptor 영역에 추가되는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 장치. The DRM_descriptor is a packaging device for protecting a video file of the H.264 format, characterized in that added to the descriptor region of the PMT. 입력된 암호화된 동영상을 분석하여 상기 동영상에 삽입되어 있는 메타데이터 디스크립터로부터 콘텐츠 정보 및 암호화 정보를 추출하는 메타데이터 해석부;A metadata analysis unit which analyzes the input encrypted video and extracts content information and encryption information from the metadata descriptor inserted in the video; 상기 암호화된 동영상의 암호화 영역을 상기 메타데이터 해석부의 암호화 정보를 이용하여 복호화하는 복호화부을 포함하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 언패키징 장치.And a decryption unit for decrypting the encrypted region of the encrypted video by using the encryption information of the metadata analysis unit. 제 8항에 있어서,The method of claim 8, 상기 암호화된 동영상은 스트리밍에 의해 입력되는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 언패키징 장치.The unpackaging device for protecting the H.264 format video file, characterized in that the encrypted video is input by streaming. 제 8항에 있어서, The method of claim 8, 상기 암호화된 동영상은 다운로드된 동영상 파일인 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 언패키징 장치.The unpackaged device for protecting the H.264 format video file, characterized in that the encrypted video is a downloaded video file. 제 9항 또는 제 10항에 있어서, The method according to claim 9 or 10, 상기 복호화부는 상기 암호화된 동영상의 암호화 식별표시를 이용하여 암호화 영역을 찾는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 언패키징 장치.And the decryption unit searches for an encrypted region by using an encryption identification mark of the encrypted video. 제 11항에 있어서, 상기 복호화부는 상기 암호화된 동영상을 복호화하고 상기 암호화 식별표시를 제거하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 언패키징 장치.12. The unpackaging apparatus of claim 11, wherein the decryption unit decrypts the encrypted video and removes the encrypted identification mark. 동영상 콘텐츠 정보와 암호화 정보를 수신하여 동영상에 삽입할 메타데이터 디스크립터를 생성하는 1 단계;Receiving a video content information and encryption information and generating a metadata descriptor to be inserted into the video; 상기 1 단계에서 수신된 암호화 정보를 이용하여 H.264 형식의 동영상을 분석하여 비암호화 영역과 암호화 영역을 탐색하는 2 단계;Step 2 of searching for an unencrypted area and an encrypted area by analyzing a video in H.264 format using the encrypted information received in step 1; 상기 2 단계에서 탐색된 동영상의 암호화 영역을 상기 암호화 정보를 이용하여 암호화하는 3 단계;Encrypting the encrypted region of the video searched in the second step using the encryption information; 상기 1 단계에서 생성된 메타데이터 디스크립터와 제 2 단계에서 탐색된 비암호화 동영상 데이터 및 제 3 단계의 암호화된 암호화 동영상 데이터를 이용하여 원본과 동일한 구조의 파일 형태로 구성하여 암호화된 동영상 파일을 생성하는 4단 계를 포함하여 이루어지는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 방법.Using the metadata descriptor generated in the first step, the unencrypted video data found in the second step and the encrypted encrypted video data in the third step, the encrypted video file is generated by forming a file having the same structure as the original. A packaging method for protecting a video file in H.264 format, characterized in that it comprises four steps. 제 13항에 있어서, The method of claim 13, 상기 암호화 정보는 암호화 키 정보, 암호화 크기, 암호화할 영역 선택 정보를 포함하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 방법.The encryption information is a packaging method for protecting a video file of the H.264 format, characterized in that it includes encryption key information, encryption size, region selection information to be encrypted. 제 13항에 있어서, 상기 제 2 단계는 The method of claim 13, wherein the second step 상기 암호화 정보의 암호화할 영역 선택정보를 이용하여 암호화 영역을 탐색하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 방법.A packaging method for protecting a video file in H.264 format, characterized by searching for an encryption region using region selection information to be encrypted of the encryption information. 제 13항에 있어서, 상기 제 3 단계는 The method of claim 13, wherein the third step 상기 암호화 영역에 암호화 식별표시를 하는 단계를 더 포함하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 방법.Packaging method for protecting a video file of the H.264 format characterized in that it further comprises the step of displaying an encryption identification mark in the encryption area. 제 13항에 있어서, 상기 제 4 단계는 The method of claim 13, wherein the fourth step 상기 메타데이터 디스크립터는 Program Map Table(PMT)에 DRM_descriptor를 추가하는 것에 의해 암호화된 동영상 파일을 생성하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 방법.The metadata descriptor is a packaging method for protecting a video file of the H.264 format, characterized in that for generating an encrypted video file by adding the DRM_descriptor to the Program Map Table (PMT). 제 17항에 있어서, 상기 제 4 단계는 18. The method of claim 17, wherein the fourth step is 상기 PMT 패킷 뒤에 Content_info 패킷을 삽입하는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 방법.A packaging method for protecting a video file of H.264 format, characterized by inserting a Content_info packet after the PMT packet. 제 17항에 있어서, The method of claim 17, 상기 DRM_descriptor는 상기 PMT의 descriptor 영역에 추가되는 것을 특징으로 하는 H.264 형식의 동영상 파일의 보호를 위한 패키징 방법.The DRM_descriptor is a packaging method for protecting a H.264 format video file, characterized in that added to the descriptor region of the PMT.
KR1020060094269A 2006-09-27 2006-09-27 Apparatus and method of packaging/unpackaging h.264 movie file streamed or downloaded KR100840200B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020060094269A KR100840200B1 (en) 2006-09-27 2006-09-27 Apparatus and method of packaging/unpackaging h.264 movie file streamed or downloaded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020060094269A KR100840200B1 (en) 2006-09-27 2006-09-27 Apparatus and method of packaging/unpackaging h.264 movie file streamed or downloaded

Publications (2)

Publication Number Publication Date
KR20080028673A true KR20080028673A (en) 2008-04-01
KR100840200B1 KR100840200B1 (en) 2008-06-23

Family

ID=39531567

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020060094269A KR100840200B1 (en) 2006-09-27 2006-09-27 Apparatus and method of packaging/unpackaging h.264 movie file streamed or downloaded

Country Status (1)

Country Link
KR (1) KR100840200B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009066901A2 (en) * 2007-11-22 2009-05-28 Markany Inc. Method for encrypting digital file, method for decrypting digital file, apparatus for processing digital file and apparatus for converting encryption format
KR101145782B1 (en) * 2010-10-11 2012-05-16 경희대학교 산학협력단 Method for lightweight video contents encryption and decryption to provide mobile contents service
KR20200013963A (en) * 2018-07-31 2020-02-10 국민대학교산학협력단 Apparatus and method for decrypting encrypted files

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102241615B1 (en) * 2020-01-15 2021-04-19 한국과학기술원 Method to identify and video titles using metadata in video webpage source code, and apparatuses performing the same
KR102328597B1 (en) * 2020-09-09 2021-11-18 주식회사 알파비트 Filter module for excuting encryption function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100596382B1 (en) * 2003-11-05 2006-07-03 한국전자통신연구원 Apparatus for protecting digital content and method therefor

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009066901A2 (en) * 2007-11-22 2009-05-28 Markany Inc. Method for encrypting digital file, method for decrypting digital file, apparatus for processing digital file and apparatus for converting encryption format
WO2009066901A3 (en) * 2007-11-22 2009-08-20 Markany Inc Method for encrypting digital file, method for decrypting digital file, apparatus for processing digital file and apparatus for converting encryption format
KR101145782B1 (en) * 2010-10-11 2012-05-16 경희대학교 산학협력단 Method for lightweight video contents encryption and decryption to provide mobile contents service
KR20200013963A (en) * 2018-07-31 2020-02-10 국민대학교산학협력단 Apparatus and method for decrypting encrypted files

Also Published As

Publication number Publication date
KR100840200B1 (en) 2008-06-23

Similar Documents

Publication Publication Date Title
KR101611848B1 (en) Signaling and handling content encryption and rights management in content transport and delivery
US8818896B2 (en) Selective encryption with coverage encryption
JP7418533B2 (en) System and method for protecting elementary bitstreams incorporating independently encoded tiles
EP3094083B1 (en) File generation method, file generation device and recording medium
US20060036551A1 (en) Protecting elementary stream content
KR20080033983A (en) Protecting elementary stream content
US8656447B2 (en) Splicing of content
JP4583924B2 (en) Audio / video / data stream trick play with conditional access
KR100840200B1 (en) Apparatus and method of packaging/unpackaging h.264 movie file streamed or downloaded
US20180302674A1 (en) File generating method and file generating apparatus
US11330226B2 (en) Information processing apparatus, information recording medium and information processing method
US10284529B2 (en) Information processing apparatus and information processing method
JP2015109131A (en) File generation method, reproduction method, file generation device, regeneration device and recording medium
WO2015083354A1 (en) File generation method, playback method, file generation device, playback device, and recording medium
US11811840B2 (en) UHD HLS streaming trusted client server environment
KR100728242B1 (en) System for protecting MPEG-2 TS files, apparatus and method of generating/playing protection MPEG-2 TS in its
WO2015072127A1 (en) File generation method and file generation apparatus
AU2004224936A1 (en) Encryption of MPEG Bitstreams
Kim et al. Protection system for MPEG-2 streaming media

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
AMND Amendment
J201 Request for trial against refusal decision
B701 Decision to grant
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130527

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20140529

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee