JP2010272993A - Video recorder - Google Patents

Video recorder Download PDF

Info

Publication number
JP2010272993A
JP2010272993A JP2009121445A JP2009121445A JP2010272993A JP 2010272993 A JP2010272993 A JP 2010272993A JP 2009121445 A JP2009121445 A JP 2009121445A JP 2009121445 A JP2009121445 A JP 2009121445A JP 2010272993 A JP2010272993 A JP 2010272993A
Authority
JP
Japan
Prior art keywords
video data
encoding
time
video
unit
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2009121445A
Other languages
Japanese (ja)
Inventor
Satoshi Kinoshita
聡 木下
Katsumi Hoashi
克己 帆足
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp filed Critical Panasonic Corp
Priority to JP2009121445A priority Critical patent/JP2010272993A/en
Priority to PCT/JP2010/001176 priority patent/WO2010134238A1/en
Publication of JP2010272993A publication Critical patent/JP2010272993A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/4147PVR [Personal Video Recorder]
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/79Processing of colour television signals in connection with recording
    • H04N9/7921Processing of colour television signals in connection with recording for more than one processing mode

Abstract

<P>PROBLEM TO BE SOLVED: To suppress the enlargement of a circuit scale concerning a video recorder for performing the encoding processing of N-kinds of video data. <P>SOLUTION: A plurality of kinds of video data is inputted from the video input part of the video recorder (1). A frame buffer (201) stores the respective kinds of video data. An encoding processing part (2022) performs the encoding processing of the video data. An encoder control part (205) performs control about which video data is encoding-processed among the plurality of kinds of stored video data. The encoder control part determines an assignment time to be given to each kind of encoding processing concerning the plurality of kinds of video data, and switches the video data to be encoded by the encoding processing part into the video data to be subsequently encoding-processed after the video data of the encoding processing in the assignment time when the assignment time elapses. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、映像データを圧縮して記録する映像記録装置および映像記録方法に関するものである。   The present invention relates to a video recording apparatus and video recording method for compressing and recording video data.

図1は、映像データをMPEG(Moving Picture Experts Group)符号化方式で記録する従来の映像記録装置100xのブロック構成図である。   FIG. 1 is a block diagram of a conventional video recording apparatus 100x that records video data using the MPEG (Moving Picture Experts Group) encoding method.

従来の映像記録装置100xは、フレームバッファ100、エンコード部101、ストリームバッファ102、エンコードバッファ103、第1の映像入力制御部(非記録媒体)104、第2の映像入力制御部(記録媒体)105、記録媒体106から構成される。   A conventional video recording apparatus 100x includes a frame buffer 100, an encoding unit 101, a stream buffer 102, an encoding buffer 103, a first video input control unit (non-recording medium) 104, and a second video input control unit (recording medium) 105. The recording medium 106 is configured.

フレームバッファ100は、入力映像データを一時的に格納するメモリで、複数の映像フレームを格納できる。ストリームバッファ102は、格納された映像フレームが映像記録装置100xにより符号化された符号化データを一時的に格納するメモリである。エンコードバッファ103は、エンコード部101で符号化するために一時的に必要なデータを格納するメモリである。第1の映像入力制御部(非記録媒体)104は、記録媒体を用いないで、映像データを扱うブロックである。例えば、第1の映像入力制御部104は、放送データを受信して、映像ストリームをデコードして、映像データを生成するブロックもしくは、映像データを外部から取り込むブロックである。第2の映像入力制御部(記録媒体)105は、例えば、HDD(Hard Disk Drive)、光ディスク、半導体メモリ等の記録媒体に記録されたストリームデータをデコードして、映像データを生成するブロックである。記録媒体106は、ストリームバッファ102に格納されたストリームをHDD、光ディスク、半導体メモリ等に格納しているブロックである。   The frame buffer 100 is a memory that temporarily stores input video data, and can store a plurality of video frames. The stream buffer 102 is a memory that temporarily stores encoded data obtained by encoding the stored video frame by the video recording apparatus 100x. The encoding buffer 103 is a memory that stores data temporarily necessary for encoding by the encoding unit 101. The first video input control unit (non-recording medium) 104 is a block that handles video data without using a recording medium. For example, the first video input control unit 104 is a block that receives broadcast data, decodes a video stream, generates video data, or captures video data from the outside. The second video input control unit (recording medium) 105 is a block that generates video data by decoding stream data recorded on a recording medium such as an HDD (Hard Disk Drive), an optical disk, or a semiconductor memory. . The recording medium 106 is a block that stores the stream stored in the stream buffer 102 in an HDD, an optical disk, a semiconductor memory, or the like.

他方、特許第3910606号公報では、複数の映像データが時分割で混合された混合映像データを、ひとつのエンコード部でエンコード処理し、出力するという記録方法が提案されている。   On the other hand, Japanese Patent No. 3910606 proposes a recording method in which mixed video data obtained by mixing a plurality of video data in a time division manner is encoded and output by a single encoding unit.

特許第3910606号公報Japanese Patent No. 3910606

しかしながら、従来の映像記録装置100xは、N本の映像データのエンコード処理にN個の映像記録装置が必要である。つまり、従来は、N本の映像データのエンコード処理のために、このような映像記録装置100xがN個必要である。このため、処理する映像データが多ければ多いほど、多くの映像記録装置(映像記録装置100x)が必要となり、回路面積やコストの拡大につながるという問題がある。   However, the conventional video recording apparatus 100x requires N video recording apparatuses for encoding the N video data. In other words, conventionally, N video recording apparatuses 100x are necessary for encoding N video data. Therefore, there is a problem that the more video data to be processed, the more video recording devices (video recording device 100x) are required, leading to an increase in circuit area and cost.

また、特許第3910606号公報では、複数の入力映像データをエンコード部に入力する前に混合するため、独立した複数の映像データを独立したストリームとして、記録することはできない。   In Japanese Patent No. 3910606, a plurality of input video data is mixed before being input to the encoding unit, and therefore, a plurality of independent video data cannot be recorded as an independent stream.

また、映像データを符号化処理する映像記録装置により複数の映像データが符号化処理されるのに際しては、時分割でエンコード処理する際、複数の入力映像データ各々に与える符号化処理時間を各々保証する必要がある。つまり、この保証がされないと、例えば、その符号化処理の結果が、適切な時刻に表示されず、表示が乱れるなどの弊害が生じる。   In addition, when a plurality of video data is encoded by a video recording device that encodes the video data, the encoding processing time given to each of the plurality of input video data is guaranteed when performing the time-division encoding processing. There is a need to. In other words, if this guarantee is not made, for example, the result of the encoding process is not displayed at an appropriate time, and there is a problem that the display is disturbed.

そこで、本発明は、回路規模の拡大を抑えるため、複数の映像データのエンコード処理を時分割で行い、映像符号化する際に入手可能な情報を用いて、映像データのエンコード処理に割り当てる処理時間を、各々保証することを可能にする映像記録装置および映像記録方法を提供するものである。つまり、複数の映像データの符号化処理ができるにも関わらず、N個の映像記録装置が必要でなく、かつ、映像データの混合も必要でないようにすることを目的とする。また、ひいては、回路規模を小さくすることを目的とする。   Therefore, in order to suppress the expansion of the circuit scale, the present invention performs a time division for encoding a plurality of video data, and uses processing time allocated to video data encoding processing using information available when video encoding is performed. Are provided, and a video recording apparatus and a video recording method are provided. That is, it is an object to prevent N video recording apparatuses and mixing of video data even when a plurality of video data can be encoded. In addition, an object is to reduce the circuit scale.

上記課題の少なくとも一部を解決するため、本発明の映像記録装置は、複数の映像データが入力される映像入力部と、前記映像入力部から入力される複数の前記映像データの各々を格納するフレームバッファと、映像データの符号化処理を行う符号化処理部と、前記フレームバッファに格納された複数の映像データのうちで、どの映像データを前記符号化処理部が符号化処理するかを制御するエンコーダ制御部とを備え、前記エンコーダ制御部は、複数の前記映像データの各々の符号化処理に与える割り当て時間を決定し、前記割り当て時間が経過すると、当該割り当て時間の符号化処理の映像データの次に前記符号化処理部が符号化処理する映像データに、前記符号化処理部により符号化される対象映像データを切り替える。   In order to solve at least a part of the above problems, a video recording apparatus of the present invention stores a video input unit to which a plurality of video data is input, and each of the plurality of video data to be input from the video input unit. A frame buffer, an encoding processing unit that performs encoding processing of video data, and control of which video data is encoded by the encoding processing unit among a plurality of video data stored in the frame buffer An encoder control unit configured to determine an allocation time to be assigned to each encoding process of the plurality of video data, and when the allocation time has elapsed, the video data of the encoding process of the allocation time Next, the target video data to be encoded by the encoding processing unit is switched to the video data to be encoded by the encoding processing unit.

映像データを符号化処理する映像記録装置において、複数の映像データの符号化処理ができるにも関わらず、N個の映像記録装置が必要でなく、かつ、映像データの混合も必要でないようにできる。ひいては、映像記録装置の回路規模が小さくできる。   In a video recording apparatus that encodes video data, a plurality of video data can be encoded, but N video recording apparatuses are not required and mixing of video data is not required. . As a result, the circuit scale of the video recording apparatus can be reduced.

図1は、従来の映像記録装置のブロック構成図である。FIG. 1 is a block diagram of a conventional video recording apparatus. 図2は、映像記録装置のブロック構成図である。FIG. 2 is a block diagram of the video recording apparatus. 図3は、映像記録装置の動作を説明する図である。FIG. 3 is a diagram for explaining the operation of the video recording apparatus. 図4は、映像記録装置の動作を説明する図である。FIG. 4 is a diagram for explaining the operation of the video recording apparatus. 図5は、映像記録装置の動作を説明する図である。FIG. 5 is a diagram for explaining the operation of the video recording apparatus. 図6は、映像記録装置の動作を説明する図である。FIG. 6 is a diagram for explaining the operation of the video recording apparatus. 図7は、映像記録装置の動作を説明する図である。FIG. 7 is a diagram for explaining the operation of the video recording apparatus. 図8は、映像記録装置の動作を説明する図である。FIG. 8 is a diagram for explaining the operation of the video recording apparatus. 図9は、映像記録装置の動作を説明する図である。FIG. 9 is a diagram for explaining the operation of the video recording apparatus. 図10は、映像記録装置の動作を説明する図である。FIG. 10 is a diagram for explaining the operation of the video recording apparatus. 図11は、映像記録装置のフローチャートである。FIG. 11 is a flowchart of the video recording apparatus.

以下、図面を参照して、本発明を実施する形態について、詳しく説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

本発明の局面A1の映像記録装置(図2の映像記録装置1)は、複数の映像データ(第1の映像データ、第2の映像データ)が予め定められた入力先(フレームバッファ201)へと当該映像入力部により入力される映像入力部(第1の映像入力制御部(非記録媒体)207等、映像入力制御部200)と、前記映像入力部から入力される複数の前記映像データの各々を格納するフレームバッファ(フレームバッファ201)と、映像データの符号化処理を行う符号化処理部(エンコード処理部2022)と、前記フレームバッファに格納された複数の映像データのうちで、どの映像データを前記符号化処理部が符号化処理するかを制御するエンコーダ制御部(エンコーダ制御部205)とを備え、前記エンコーダ制御部は、複数の前記映像データの各々の符号化処理に与える割り当て時間(例えば図3の時刻T01〜時刻T02の割り当て時間など)を決定し、前記割り当て時間が経過すると、当該割り当て時間の符号化処理の映像データ(例えば第1の映像データ)の次に前記符号化処理部が符号化処理する映像データ(例えば第2の映像データ)に、前記符号化処理部により符号化される対象映像データを切り替える映像記録装置である。   The video recording apparatus (video recording apparatus 1 in FIG. 2) according to aspect A1 of the present invention has a plurality of video data (first video data, second video data) to a predetermined input destination (frame buffer 201). And a video input unit (first video input control unit (non-recording medium) 207, video input control unit 200) input by the video input unit, and a plurality of the video data input from the video input unit. A frame buffer (frame buffer 201) that stores each of them, an encoding processing unit (encoding processing unit 2022) that performs encoding processing of video data, and which video among a plurality of video data stored in the frame buffer An encoder control unit (encoder control unit 205) that controls whether the encoding processing unit encodes data, and the encoder control unit includes a plurality of the video data. When an allocation time (for example, allocation time from time T01 to time T02 in FIG. 3) given to each encoding process of the data is determined and the allocation time elapses, video data (for example, first data) of the allocation processing of the allocation time is determined. The video recording apparatus switches the target video data encoded by the encoding processing unit to the video data (for example, second video data) encoded by the encoding processing unit next to (1 video data). .

つまり、局面A1の映像記録装置においては、複数の映像データのうちのそれぞれの映像データについて、エンコーダ制御部が、その映像データ以外の他の映像データから、その映像データ(例えば図3の映像データ1)へと、符号化処理部による符号化処理が行われる対象映像データを変更させる。そして、その初めの変更の後に、再び他の映像データへと、対象映像データをエンコーダ制御部が変更させる。これにより、初めの変更から、後の変更までの間(例えば時刻T03〜時刻T04の間)に、その映像データの符号化処理が行われる。こうして2度の変更をさせることをエンコーダ制御部が繰り返すことにより、その映像データの符号化処理の全てが行われる。これにより、複数の映像データのそれぞれをエンコーダ制御部が符号化処理させる。   In other words, in the video recording apparatus of aspect A1, for each video data of the plurality of video data, the encoder control unit obtains the video data (for example, the video data in FIG. 3) from the video data other than the video data. To 1), the target video data to be encoded by the encoding processor is changed. Then, after the initial change, the encoder control unit changes the target video data to another video data again. Thereby, the encoding process of the video data is performed from the first change to the subsequent change (for example, between time T03 and time T04). When the encoder control unit repeats the change twice in this way, all the encoding processing of the video data is performed. Thereby, the encoder control unit causes each of the plurality of video data to be encoded.

なお、エンコーダ制御部は、初めの変更の前に符号化処理される第1の他の映像データとは違う第2の他の映像データを、後の変更の後に、符号化処理部に符号化処理させてもよい。   The encoder control unit encodes the second other video data different from the first other video data to be encoded before the first change into the encoding processing unit after the subsequent change. It may be processed.

このため、同時には1つの映像データの符号化処理しか行わない符号化処理部を単に1つ備えるだけの簡単な構成により、複数の映像データの符号化処理ができる。しかも、その符号化処理により符号化処理される対象映像データは、複数の映像データが混合されたデータである必要はない。このため、複数の映像データが混合されることが必要でないようにできる。これにより、ひいては、回路規模が小さい映像記録装置が実現できる。   Therefore, a plurality of pieces of video data can be encoded with a simple configuration in which only one encoding processing unit that performs only one video data is simultaneously processed. Moreover, the target video data to be encoded by the encoding process need not be data in which a plurality of video data is mixed. For this reason, it is not necessary to mix a plurality of video data. As a result, a video recording apparatus with a small circuit scale can be realized.

しかも、映像データには、著作権の情報や、暗号鍵の情報、個人情報、又は認証情報などの、第三者に特定されるのが不適切である特定情報が含まれることがある。この映像記録装置であれば、対象映像データである映像データが変更される毎に、処理が行われる映像データが変化する。これにより、行われる処理が、どの映像データの処理かが分かり難くなり、ひいては、映像データの処理の内容が特定(解析)され難いようにできる。従って、符号化処理される映像データに含まれる、その映像データの著作権の情報等の特定情報が、第三者に特定され難いようにできる。これにより、ひいては、映像データの不正なコピーその他の不正な利用がされ難いようにできる。   In addition, the video data may include specific information that is inappropriately specified by a third party, such as copyright information, encryption key information, personal information, or authentication information. With this video recording apparatus, the video data to be processed changes every time video data that is target video data is changed. As a result, it is difficult to determine which video data is processed, and thus it is difficult to specify (analyze) the content of the video data processing. Therefore, it is possible to make it difficult for a third party to specify specific information such as copyright information of the video data included in the encoded video data. As a result, it is possible to prevent unauthorized use of unauthorized copying of video data and other unauthorized use.

なお、例えば、エンコーダ制御部は、対象映像データを、第1の映像データから第2の映像データへと変更させるのに際して、変更前に第1の映像データが符号化処理される時間とは異なる時間だけ、変更の後に第2の映像データの符号化処理を符号化処理部に行わせてもよい。こうすれば、確実かつ十分に、特定情報が分かり難いようにできる。   Note that, for example, when the target video data is changed from the first video data to the second video data, the encoder control unit differs from the time during which the first video data is encoded before the change. The encoding processing unit may be made to perform encoding processing of the second video data after the change by time. In this way, the specific information can be made difficult to understand reliably and sufficiently.

また、局面A2の映像記録装置は、前記エンコーダ制御部が、映像データの第1の所定単位(フレーム)の符号化処理に与える割り当て時間を切り替える(変化させる)局面A1の映像記録装置である。なお、所定単位とは、予め定められた単位である。   The video recording apparatus according to aspect A2 is the video recording apparatus according to aspect A1, in which the encoder control unit switches (changes) the allocation time assigned to the encoding process of the first predetermined unit (frame) of the video data. The predetermined unit is a predetermined unit.

また、局面A3の映像記録装置は、前記エンコーダ制御部が、符号化対象の映像データの各々の解像度情報を、入力映像データ情報(実施形態の入力映像データ情報、又はその一部)として入力し、入力される前記解像度情報を用いて、その解像度情報の映像データの前記割り当て時間を切り替える局面A2の映像記録装置である。   In the video recording apparatus of aspect A3, the encoder control unit inputs the resolution information of each video data to be encoded as input video data information (input video data information of the embodiment or a part thereof). The video recording apparatus of aspect A2 that uses the resolution information that is input to switch the allocation time of the video data of the resolution information.

また、局面A4の映像記録装置は、前記エンコーダ制御部が、映像データをリアルタイムに符号化すべきか、非リアルタイムで符号化すべきか(を示す情報)を、入力映像データ情報として入力し、入力される映像データ情報を用いて、当該映像データの前記割り当て時間を切り替える局面A2の映像記録装置である。   In the video recording apparatus of aspect A4, the encoder control unit inputs as input video data information whether or not video data should be encoded in real time or non-real time as input video data information. The video recording apparatus of aspect A2 that uses the video data information to switch the allocation time of the video data.

また、局面A5の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間が経過すると、その経過の時までに前記符号化処理が完了しているべき、前記映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了している場合は、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替える(変更する)ための切り替え信号(例えば、図3の時刻T02スイッチ切替信号)を出力する局面A1の映像記録装置である。   Further, in the video recording apparatus of aspect A5, when the encoder control unit has passed the allocated time, the encoding process should be completed by the time of the lapse of the first predetermined unit in the video data. When the encoding processing unit has completed the encoding process, the target video data is switched to the next video data to be encoded by the encoding processing unit after the video data of the allocated time (change) This is a video recording apparatus of aspect A1 that outputs a switching signal (for example, a time T02 switch switching signal in FIG. 3).

また、局面A6の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間が経過する前に(例えば図4の時刻T02よりも前に)、当該割り当て時間が経過するまでに前記符号化処理部が符号化処理中を完了しているべき、前記映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了したことを確認すると、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切り替え信号を、前期経過の時(時刻T02)よりも前に出力する局面A1の映像記録装置である。   Further, in the video recording apparatus according to aspect A6, the encoder control unit performs the encoding processing unit before the allotted time elapses before the allotted time elapses (for example, before time T02 in FIG. 4). Confirming that the encoding processing unit has completed the encoding process of the first predetermined unit in the video data, which should be completed during the encoding process, next to the video data of the allocated time The video recording apparatus according to aspect A1, wherein a switching signal for switching the target video data to the next video data to be encoded by the encoding processing unit is output before the time of the previous period (time T02).

また、局面A7の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間(例えば、図6の時刻T09〜時刻T10)が経過すると、当該割り当て時間が経過するまでに前記符号化処理部が符号化処理中を完了しているべき、映像データ(第1の映像データ)における第1の所定単位の符号化処理を前記符号化処理部が完了していない場合は、前記符号化処理部が現在符号化処理中の、当該第1の所定単位に含まれる第2の所定単位(マクロブロック、スライスなど)の符号化処理の完了を待ってから(時刻T10aまで待ってから)、現在符号化処理中の前記映像データの符号化情報を符号化再開情報として予め定められた記憶領域(例えば第1のエンコードバッファ2041)に退避し、当該退避の後に、当該映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切替信号(時刻T10aのスイッチ切替信号)を出力する局面A1の映像記録装置である。   Further, in the video recording apparatus according to aspect A7, when the encoder control unit passes the allocation time (for example, time T09 to time T10 in FIG. 6), the encoding processing unit performs encoding until the allocation time elapses. If the encoding processing unit has not completed the encoding processing of the first predetermined unit in the video data (first video data) that should be completed during the encoding process, the encoding processing unit The current encoding process after waiting for the completion of the encoding process of the second predetermined unit (macroblock, slice, etc.) included in the first predetermined unit during the encoding process (after waiting until time T10a) The encoding information of the video data in the video data is saved in a predetermined storage area (for example, the first encoding buffer 2041) as encoding restart information, and after the saving, the video data is preceded by Encoding unit is a video recording apparatus aspects A1 to output a switching signal for switching the target video data to the next video data to encoding processing (switching signal at time T10a).

なお、符号化情報は、完了しなかった前記第1の所定単位の符号化処理を前記符号化処理部が再開するために前記符号化処理部が利用する(必要である)情報である。符号化再開情報は、上記記憶領域に記憶された当該符号化情報である。   The encoding information is information that is used (necessary) by the encoding processing unit so that the encoding processing unit resumes the encoding process of the first predetermined unit that has not been completed. The encoding restart information is the encoding information stored in the storage area.

また、局面A8の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間が経過すると、当該経過までに前記符号化処理部が符号化処理を完了しているべき、映像データにおける第1の所定単位の符号化処理が完了していない場合は、当該割り当て時間のうちに既に前記符号化処理部が符号化処理を完了している、当該第1の所定単位に含まれる第2の処理単位の符号化情報を符号化再開情報として予め定められた記憶領域に退避してから、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切り替え信号を出力する局面A1の映像記録装置である。   Further, in the video recording apparatus according to aspect A8, when the encoder control unit has passed the allocation time, the encoding processing unit should have completed the encoding process by the first predetermined time in the video data. When the encoding process of the unit is not completed, the second processing unit included in the first predetermined unit in which the encoding processing unit has already completed the encoding process within the allocated time. After the encoded information is saved in a predetermined storage area as encoded resumption information, the target video data is added to the next video data that is encoded by the encoding processing unit next to the video data of the allocated time. It is the video recording apparatus of aspect A1 which outputs the switching signal for switching.

また、局面A9の映像記録装置は、前記第2の所定単位が、1以上の当該第2の所定単位によって前記第1の所定単位を構成し、当該1以上の第2の所定単位のそれぞれが符号化処理されることにより、前記第1の所定単位が符号化処理される処理単位である局面A7の映像記録装置である。   In the video recording apparatus according to aspect A9, the second predetermined unit includes the first predetermined unit by one or more second predetermined units, and each of the one or more second predetermined units is The video recording apparatus according to aspect A7, in which the first predetermined unit is a processing unit to be encoded by being encoded.

また、局面A10の映像記録装置は、前記符号化処理部が、符号化処理する対象の映像データについての、当該符号化処理の直前の符号化処理において、当該映像データの第1の処理単位の符号化処理の全てが完了している場合は(例えば、図6の時刻T07の場合は)、当該映像データにおける当該第1の処理単位の次の第1の処理単位の符号化処理(画像3の処理)を開始し、前記直前の符号化処理において、前記第1の処理単位の符号化処理の全てが完了していない場合は(図6の時刻T11の場合は)、前記直前の符号化処理において当該符号化処理部が予め定められた記憶領域に退避した符号化再開情報を用いて、前記直前の符号化処理(画像4の符号化処理)を再開する局面A1の映像記録装置である。   Further, in the video recording apparatus according to aspect A10, in the encoding process immediately before the encoding process for the video data to be encoded by the encoding processing unit, the first processing unit of the video data is processed. When all of the encoding processing is completed (for example, at time T07 in FIG. 6), the encoding processing (image 3) of the first processing unit next to the first processing unit in the video data is performed. If all of the encoding processes of the first processing unit are not completed in the immediately preceding encoding process (in the case of time T11 in FIG. 6), the immediately preceding encoding is performed. The video recording apparatus according to aspect A1, wherein the encoding processing unit restarts the immediately preceding encoding process (the encoding process of the image 4) using the encoding restart information saved in a predetermined storage area in the process. .

また、局面A11の映像記録装置は、前記第1の所定単位が、M枚(M=1、2、3…の自然数)のピクチャから構成される局面A2の映像記録装置である。   The video recording apparatus according to aspect A11 is the video recording apparatus according to aspect A2 in which the first predetermined unit includes M (M = 1, 2, 3,... Natural number) pictures.

また、局面A12の映像記録装置は、前記第1の所定単位が、各々異なるM枚を選択できる局面A11の映像記録装置である。   In addition, the video recording apparatus of aspect A12 is the video recording apparatus of aspect A11 in which the first predetermined unit can select different M sheets.

また、局面A13の映像記録装置は、前記エンコーダ制御部が、映像データが前記符号化処理部に入力されるタイミングを制御する予め定められた入力制御部(第1の映像入力制御部(非記録媒体)207等、映像入力制御部200)に対して、当該タイミングを指示する局面A1の映像記録装置である。   Further, in the video recording apparatus according to aspect A13, the encoder control unit controls a predetermined input control unit (first video input control unit (non-recording unit) that controls timing at which video data is input to the encoding processing unit. This is a video recording apparatus of aspect A1 instructing the timing to the video input control unit 200) such as (medium) 207.

また、局面A14の映像記録装置は、前記第2の所定単位が、符号化の最小単位である複数のマクロブロックから構成されるスライス、もしくは、符号化の最小単位であるマクロブロックである局面A9の映像記録装置である。   In the video recording apparatus of aspect A14, the second predetermined unit is a slice composed of a plurality of macroblocks that are the minimum unit of encoding or a macroblock that is the minimum unit of encoding. Video recording device.

また、局面A15の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間(例えば図8の時刻T09〜時刻T10)が経過すると、当該経過までに前記符号化処理部が符号化処理を完了しているべき、映像データにおける第1の所定単位の符号化処理が完了していない場合は、当該映像データ以外の他の映像データの前記符号化処理部による符号化処理の前記割り当て時間(時刻T10〜時刻T11)に含まれる時間(例えば、割り当て時間の前半部分など)を、割り当て時間が経過した前記映像データの割り当て時間に追加して、当該映像データの割り当て時間を延長する局面A1の映像記録装置である。   In the video recording apparatus of aspect A15, when the encoder control unit has passed the allocated time (for example, time T09 to time T10 in FIG. 8), the encoding processing unit has completed the encoding process by that time. If the encoding processing of the first predetermined unit in the video data is not completed, the allocation time (time T10) of the encoding processing by the encoding processing unit of the video data other than the video data is completed. To time T11) (for example, the first half of the allocated time) is added to the allocated time of the video data for which the allocated time has elapsed, and the video recording of aspect A1 in which the allocated time of the video data is extended Device.

また、局面A16の映像記録装置は、前記符号化処理部が、符号化処理する対象の1つの映像データを、互いに異なる複数の記録設定で符号化し、複数のストリームデータを生成する局面A1の映像記録装置である(図10の説明参照)。   In the video recording apparatus of aspect A16, the video of aspect A1 in which the encoding processing unit encodes one video data to be encoded with a plurality of different recording settings to generate a plurality of stream data. It is a recording device (see description of FIG. 10).

より具体的には、局面A1の映像記録装置は、例えば、次の特徴を更に備えてもよい。つまり、局面A1の映像記録装置は、さらに、複数の映像データから、符号化処理される対象映像データを特定し、特定される映像データを前記符号化処理部に入力し、入力される前記映像データの符号化処理を前記符号化処理部に行わせる入力スイッチ(入力スイッチ2021)と、前記複数の映像データのうちの1つにそれぞれが対応する複数の出力先(第1のストリームバッファ2031、第2のストリームバッファ2032)のうちから、対象映像データに対応する出力先を特定し、特定される出力先へと、前記符号化処理による符号化後のデータを当該符号化処理部に出力させる出力スイッチ(出力スイッチ2023)とを備えてもよい。そして、局面A1の映像記録装置では、前記エンコーダ制御部が、前記第1の映像データおよび前記第2の映像データのうちで前記対象映像データが前記符号化処理部に入力されるように前記入力スイッチを制御し、前記対象映像データに対応する前記出力先へと前記符号化後のデータが出力されるように前記出力スイッチを制御し、前記対象映像データの符号化処理を前記符号化処理部に行わせるものでもよい。   More specifically, the video recording apparatus according to aspect A1 may further include the following features, for example. That is, the video recording apparatus of aspect A1 further specifies target video data to be encoded from a plurality of video data, inputs the specified video data to the encoding processing unit, and inputs the video An input switch (input switch 2021) for causing the encoding processing unit to perform data encoding processing, and a plurality of output destinations (first stream buffer 2031, each corresponding to one of the plurality of video data) The output destination corresponding to the target video data is specified from the second stream buffer 2032), and the data after encoding by the encoding process is output to the specified output destination to the specified output destination. An output switch (output switch 2023) may be provided. In the video recording apparatus according to aspect A1, the encoder control unit inputs the input so that the target video data is input to the encoding processing unit among the first video data and the second video data. Controlling the switch, controlling the output switch so that the encoded data is output to the output destination corresponding to the target video data, and encoding the target video data You may be allowed to do.

そして、さらに具体的には、局面A1の映像記録装置は、例えば、前記エンコーダ制御部が、割り当て時間(例えば図4の時刻T01〜時刻T02)が経過するまでに、その割り当て時間における前記符号化処理が完了した場合に、当該完了の時から、前記割り当て時間の経過の時(時刻T02)までの間に、当該割り当て時間に対応する映像データ(第1の映像データ)以外の他の映像データ(第2の映像データ)の符号化処理を前記符号化処理部に行わせてもよい。   More specifically, in the video recording apparatus according to aspect A1, for example, the encoder control unit performs the encoding at the allocated time until the allocated time (for example, time T01 to time T02 in FIG. 4) elapses. When the process is completed, video data other than the video data (first video data) corresponding to the allocated time from the completion time to the time when the allocated time elapses (time T02). You may make the said encoding process part perform the encoding process of (2nd video data).

また、局面A1の記録装置は、例えば、前記割り当て時間(例えば図5の時刻T01〜時刻T03)の長さが、当該割り当て時間で符号化処理される映像データ(第1の映像データ)の1フレームが前記符号化処理部により符号化処理される1フレーム処理時間に対して、2以上の予め定められた整数(例えば2)が乗じられた時間の長さであり、前記符号化処理部が、当該割り当て時間のうちに、当該整数の個数のフレームの符号化処理を行ってもよい。   Further, the recording apparatus according to the aspect A1 has, for example, the length of the allocation time (for example, time T01 to time T03 in FIG. 5) of video data (first video data) encoded by the allocation time. 1 frame processing time in which a frame is encoded by the encoding processing unit is a length of time multiplied by a predetermined integer of 2 or more (for example, 2), and the encoding processing unit The integer number of frames may be encoded during the allocation time.

また、局面A1の映像記録装置は、例えば、エンコーダ制御部は、初めの割り当て時間(例えば図6の時刻T09〜T10)で行われる、映像データの符号化処理が、当該初めの割り当て時間で完了しなかった場合に、当該初めの割り当て時間より後における割り当て時間(時刻T11〜時刻T12)で、前記初めの割り当て時間の符号化処理のうちの完了しなかった部分を、前記符号化処理部に行わせ(時刻T11〜T12のうちの前半部)てもよい。   Further, in the video recording apparatus of aspect A1, for example, the encoder control unit completes the video data encoding process performed at the initial allocation time (for example, times T09 to T10 in FIG. 6) at the initial allocation time. If not, the portion of the first allocation time encoding process that has not been completed at the allocation time after the initial allocation time (time T11 to time T12) is transferred to the encoding processing unit. It may be performed (the first half of the times T11 to T12).

また、局面A1の映像記録装置は、例えば、エンコーダ制御部が、初めの割り当て時間(例えば図7の時刻T09〜T10)で行われる、映像データの符号化処理が、当該初めの割り当て時間で完了しなくとも、後の割り当て時間(時刻T11〜時刻T12)で、完了しなかった部分を前記符号化処理部に行わせることは、当該後の割り当て時間では、前記映像データにおける、当該後の割り当て時間に対応する部分(フレーム)の符号化処理のみを行わせてもよい。   Further, in the video recording apparatus of aspect A1, for example, the encoder control unit completes the video data encoding process performed at the initial allocation time (for example, at times T09 to T10 in FIG. 7) at the initial allocation time. Even if it is not, it is possible to cause the encoding processing unit to perform the portion that has not been completed at a later allocation time (time T11 to time T12). Only the encoding process of the portion (frame) corresponding to time may be performed.

また、局面A1の映像記録装置は、例えば、初めの割り当て時間(例えば図8の時刻T09〜T10)のうちに行われる、前記映像データの符号化処理が、当該初めの割り当て時間で完了しなかった場合に、当該割り当て時間の経過の時から、予め定められた時間の間(時刻T10aまで)、続けて、当該割り当て時間の符号化処理を前記符号化処理部に行わせてもよい。   In addition, the video recording apparatus according to aspect A1, for example, does not complete the video data encoding process performed during the initial allocation time (for example, time T09 to T10 in FIG. 8) in the initial allocation time. In this case, the encoding processing unit may be caused to perform encoding processing for the allocation time continuously for a predetermined time (until time T10a) from the time when the allocation time has elapsed.

また、局面A1の映像記録装置は、例えば、エンコーダ制御が、割り当て時間における符号化処理が完了した場合に(図9の時刻T02a)、当該割り当て時間のうちで、当該完了よりも後の残り時間(時刻T02a〜時刻T03)を、当該割り当て時間以外の前記他の時間と特定して、特定される当該他の時間に前記第2の映像データの符号化処理を前記符号化処理部に行わせてもよい。そして、より具体的には、エンコーダ制御部は、例えば、特定される当該他の時間が経過するまでに(時刻T13までに)、当該第2の映像データの予め定められたフレームの符号化処理が完了した場合(時刻T12a)、当該他の時間が経過するまでに(時刻T13までに)、さらに、前記第2の映像データの当該フレーム(画像3)の次のフレーム(画像4)の符号化処理を、前記符号化処理部に行わせてもよい。そして、さらに、具体的には、エンコーダ制御部は、例えば、前記他の時間として、前記残り時間のみを特定し、前記残り時間ではない無関係時間では、前記第2の映像データの符号化処理をさせないものとしてもよい(図9参照)。   Also, the video recording apparatus of aspect A1, for example, when the encoder control has completed the encoding process at the allocated time (time T02a in FIG. 9), the remaining time after the completion of the allocated time (Time T02a to Time T03) is specified as the other time other than the assigned time, and the encoding processing unit performs the encoding process of the second video data at the specified other time. May be. More specifically, for example, the encoder control unit encodes a predetermined frame of the second video data before the other specified time elapses (by time T13). Is completed (time T12a), the code of the frame (image 4) next to the frame (image 3) of the second video data until the other time elapses (by time T13). The encoding processing unit may perform the encoding process. Further, more specifically, for example, the encoder control unit specifies only the remaining time as the other time, and performs encoding processing of the second video data at an irrelevant time other than the remaining time. It is good also as what is not made (refer FIG. 9).

また、局面A1の映像記録装置は、例えば、映像を第1の形式で記録する第1の映像データ(図10の映像データ1)と、当該映像と同じ映像を第2の形式で記録する第2の映像データ(図10の映像データ2)とを特定する特定部(例えばフレームバッファ201。又は、先述のリサイズ部が含まれる映像入力制御部200)を備え、前記符号化処理部は、当該符号化処理部が出力する第1の符号化後のデータの映像と同じ映像を有する第2の符号化後のデータを出力するものとしてもよい。   In addition, the video recording apparatus of aspect A1 is, for example, first video data (video data 1 in FIG. 10) that records video in the first format and second video that records the same video as the video in the second format. 2 specifying video data (video data 2 in FIG. 10) (for example, the frame buffer 201 or the video input control unit 200 including the resizing unit described above), and the encoding processing unit The second encoded data having the same video as the first encoded data output from the encoding processing unit may be output.

また、局面B1の映像記録装置は、次の問題が解決される映像記録装置である。つまり、従来の映像符号装置では、一つの映像データの符号化処理のために、一つの映像符号化装置が必要である。このため、複数の映像データを同時に符号化処理する場合、複数の映像符号化装置が必要となり、回路面積やコストの拡大につながるという問題がある。この問題が解決される。そして、局面B1の映像記録装置(映像符号化装置)およびその方法(映像符号化方法)によると、複数の映像データを一つの符号化処理部で時分割に切り替えながら、符号化処理するとき、符号化処理対象の複数のデータの各々の情報を用いて、符号化処理の対象の複数の映像データの各々について、その映像データの符号化処理に使用できる割り当て時間を決定し、この割り当て時間に従って、符号化処理される映像データを切り替える。これにより、上記問題が解決される。   Moreover, the video recording apparatus of aspect B1 is a video recording apparatus in which the following problems are solved. That is, in the conventional video encoding device, one video encoding device is required for encoding processing of one video data. For this reason, when a plurality of video data are encoded at the same time, a plurality of video encoding devices are required, which leads to an increase in circuit area and cost. This problem is solved. And according to the video recording device (video encoding device) and the method (video encoding method) of aspect B1, when encoding processing while switching a plurality of video data to time division by one encoding processing unit, Using each information of the plurality of data to be encoded, for each of the plurality of video data to be encoded, an allocation time that can be used for the encoding process of the video data is determined, and according to this allocation time The video data to be encoded is switched. This solves the above problem.

このような映像記録装置および映像記録方法により、一つの符号化処理部で時分割に切り替えて、複数の映像データを符号化するとき、符号化処理の対象となる複数の入力映像データの各々の入力映像データ情報、入力制御部の設定、ユーザ設定を用いて、符号化処理の対象の複数の入力映像データの各々の符号化処理に使用できる割り当て時間を決定する。この割り当て時間が経過した場合は、符号化処理される入力映像データ(対象映像データ)を、次の入力映像データに切り替える。   With such a video recording apparatus and video recording method, when a plurality of video data is encoded by switching to time division by one encoding processing unit, each of a plurality of input video data to be encoded is a target. Using the input video data information, the setting of the input control unit, and the user setting, an allocation time that can be used for each encoding process of a plurality of input video data to be encoded is determined. When this allocation time has elapsed, the input video data (target video data) to be encoded is switched to the next input video data.

これにより、符号化処理の対象の複数の入力映像データの各々に与える処理時間を各々独立して保証できる。したがって、入力映像データの処理時間を保証するのに際して、その入力映像データ以外の他の入力映像データの符号化処理の影響を受けることがなく、適切に保証ができる。   Thereby, the processing time given to each of the plurality of input video data to be encoded can be independently guaranteed. Therefore, when guaranteeing the processing time of the input video data, the processing can be appropriately ensured without being influenced by the encoding processing of other input video data other than the input video data.

一方、割り当て時間内に所定単位(第1の所定単位)の符号化処理が完了していない場合は、複数のマクロブロックから構成されるスライス内の全てのマクロブロックの符号化処理が完了する、もしくは中断時処理中のマクロブロック処理が完了すると、符号化処理を中断し、符号化処理される対象の入力映像データを、次の入力映像データに切り替える。ただし、切替前に符号化処理が中断されたストリームの符号化処理を、次の符号化タイミングで、再開できるよう、再開情報とエンコードバッファに格納されたデータとを予め定められた記憶領域に保持する。   On the other hand, when the encoding process of the predetermined unit (first predetermined unit) is not completed within the allocated time, the encoding process of all the macroblocks in the slice composed of a plurality of macroblocks is completed. Alternatively, when the macroblock process being interrupted is completed, the encoding process is interrupted, and the input video data to be encoded is switched to the next input video data. However, the restart information and the data stored in the encode buffer are held in a predetermined storage area so that the encoding process of the stream in which the encoding process was interrupted before switching can be restarted at the next encoding timing. To do.

このように、割り当て時間内に所定単位の符号化処理が完了しない場合であっても、処理時間を各々独立して保証することができる。また、単に時間で処理を時分割に切り替えるのではなく、スライスもしくはマクロブロックといった符号化の処理単位で処理を切り替えるため、符号化処理としても制御が容易になる。   As described above, even when the encoding process of a predetermined unit is not completed within the allocated time, the processing time can be independently guaranteed. In addition, since processing is not switched to time division simply by time, but processing is switched in units of encoding such as slices or macroblocks, control is facilitated as encoding processing.

また、このような映像記録装置および映像記録方法において、非リアルタイム性の符号化処理を含む場合、符号化処理に使用できる割り当て時間を固定値でなく、他のリアルタイム性の符号化処理の割り当て時間の空き時間、すなわち符号化処理の完了から、処理切り替えまでの間の時間に設定するものとしてもよい。   In addition, in such a video recording apparatus and video recording method, when non-real-time encoding processing is included, the allocation time that can be used for encoding processing is not a fixed value, but allocation time of other real-time encoding processing May be set to the idle time, that is, the time from the completion of the encoding process to the process switching.

非リアルタイム性の符号化処理の割り当て時間を0として、他のリアルタイム性の符号化処理の割り当て時間を計算すればよい。   What is necessary is just to calculate the allocation time of the other real-time encoding process by setting the allocation time of the non-real-time encoding process to 0.

これにより、リアルタイム性のある入力映像データの各々に与える符号化処理時間を保証しつつ、非リアルタイム性の符号化処理の割り当て時間を割り当てることができる。   Thus, it is possible to allocate the allocation time for the non-real time encoding processing while guaranteeing the encoding processing time to be given to each of the input video data having the real time property.

また、このような映像記録装置および映像記録方法により、符号化処理を等倍以上で行いたい場合、符号化処理に使用できる割り当て時間を記録倍数に応じて、増やすことで、符号化処理を高速化することができる。   In addition, with such a video recording apparatus and video recording method, when it is desired to perform the encoding process at an equal magnification or more, the encoding process can be performed at high speed by increasing the allocated time that can be used for the encoding process in accordance with the recording multiple. Can be

これにより、複数のエンコード部を協調させることによりこのようなことを実現する場合と比較して、容易に符号化処理を高速化できる。また、各々の記録倍数が異なる場合であっても、複数の入力映像データの各々に与える符号化処理時間を各々独立して保証することができる。   Thereby, compared with the case where such a thing is implement | achieved by cooperating a some encoding part, an encoding process can be speeded up easily. Even when the recording multiples are different, the encoding processing time given to each of the plurality of input video data can be independently guaranteed.

また、このような映像記録装置および映像記録方法によると、同じ映像入力データを各々のフレームバッファに入力することで、1つの映像データから記録設定の異なる複数の符号化データを作成できる。   Also, according to such a video recording apparatus and video recording method, a plurality of encoded data having different recording settings can be created from one video data by inputting the same video input data to each frame buffer.

これにより、1つの映像データを記録設定の異なる複数の符号化データにしたい場合であっても、符号化対象の複数の入力映像データの各々に与える処理時間を保証することができる。   Thus, even when one video data is to be converted into a plurality of encoded data having different recording settings, the processing time given to each of the plurality of input video data to be encoded can be guaranteed.

以下、より詳しい説明が行われる。   A more detailed description is given below.

本発明の実施の形態の本体、および本実施の形態の変形例について、図2から図10を用いて説明する。   A main body according to an embodiment of the present invention and a modification of the present embodiment will be described with reference to FIGS.

図2は、実施の形態の本体、変形例のブロック構成を説明する図である。   FIG. 2 is a diagram illustrating a block configuration of a main body and a modified example of the embodiment.

図3から図10は、実施の形態の本体、変形例の動作を説明する図である。   3 to 10 are diagrams for explaining the operation of the main body and the modification of the embodiment.

本発明の実施の形態では、局面A1、A2、A6、A7、A8、A9、A10、A13、A14における、基本的構成および、切替パターン、エンコード処理が完了しなかった場合の制御パターンなどを説明する。   In the embodiment of the present invention, the basic configuration, the switching pattern, the control pattern when the encoding process is not completed, and the like in aspects A1, A2, A6, A7, A8, A9, A10, A13, and A14 will be described. To do.

そして、実施の形態の変形例では、局面A3、A4、A5、A11、A12、A15における、等倍以外のエンコード処理や、非リアルタイム性能のエンコード処理、および、1つの映像データから複数の符号化を作成するエンコード処理などについて説明する。   In the modification of the embodiment, encoding processing other than the same magnification, encoding processing with non-real-time performance, and a plurality of encodings from one video data in aspects A3, A4, A5, A11, A12, and A15 A description will be given of the encoding process for creating the.

図2に示すように、本発明の実施の形態の本体、変形例における映像記録装置1は、映像入力制御部200、フレームバッファ201、エンコード部202、ストリームバッファ203、エンコードバッファ204、エンコーダ制御部205、クロック206、第1の映像入力制御部(非記録媒体)207、第2の映像入力制御部(記録媒体)208、記録媒体209などから構成される。   As shown in FIG. 2, the video recording apparatus 1 in the main body and the modification of the embodiment of the present invention includes a video input control unit 200, a frame buffer 201, an encoding unit 202, a stream buffer 203, an encoding buffer 204, and an encoder control unit. 205, a clock 206, a first video input control unit (non-recording medium) 207, a second video input control unit (recording medium) 208, a recording medium 209, and the like.

本発明の実施の形態の本体、変形例では、二つの映像データ、すなわち映像データ1(第1の映像データ)と映像データ2(第2の映像データ)を映像記録装置1が当該映像記録装置1に入力するものとする。また、映像記録装置1の出力データは、何れもH.264(H.264/AVC)で圧縮されたビデオストリーム1(第1の出力ストリーム)、ビデオストリーム2(第2の出力ストリーム)とする。   In the main body and the modification of the embodiment of the present invention, the video recording apparatus 1 stores two video data, that is, video data 1 (first video data) and video data 2 (second video data). 1 is assumed to be input. Also, the output data of the video recording apparatus 1 is a video stream 1 (first output stream) and a video stream 2 (second output stream) both compressed by H.264 (H.264 / AVC). .

入力映像データは、映像入力制御部200の制御により、第1の映像入力制御部(非記録媒体)207もしくは第2の映像入力制御部(記録媒体)208から、フレームバッファ201に格納される。フレームバッファ201は、バッファ1(第1のフレームバッファ2011)とバッファ2(第2のフレームバッファ2012)とから構成され、映像データ1は、第1のフレームバッファ2011へ入力される。また、映像データ2は、第2のフレームバッファ2012へ入力される。   The input video data is stored in the frame buffer 201 from the first video input control unit (non-recording medium) 207 or the second video input control unit (recording medium) 208 under the control of the video input control unit 200. The frame buffer 201 includes a buffer 1 (first frame buffer 2011) and a buffer 2 (second frame buffer 2012), and video data 1 is input to the first frame buffer 2011. Further, the video data 2 is input to the second frame buffer 2012.

エンコード部202は、詳しくは、入力スイッチ2021、エンコード処理部2022、出力スイッチ2023、中間スイッチ2024などから構成される。   Specifically, the encoding unit 202 includes an input switch 2021, an encoding processing unit 2022, an output switch 2023, an intermediate switch 2024, and the like.

入力スイッチ2021は、フレームバッファ201からの読み出し手段である。また、入力スイッチ2021は、エンコーダ制御部205が出力するスイッチ切替信号に従って、その設定が切り替えられ、フレームバッファ201からの読み出しデータを、エンコード処理部2022へ入力する。入力スイッチ2021は、第1のフレームバッファ2011に格納される映像データ1と、第2のフレームバッファ2012に格納される映像データ2とのうちで、対象映像データである映像データをエンコード処理部2022へと入力する。対象映像データについては、後で詳しく説明される。   The input switch 2021 is a means for reading from the frame buffer 201. Further, the setting of the input switch 2021 is switched in accordance with a switch switching signal output from the encoder control unit 205, and the read data from the frame buffer 201 is input to the encoding processing unit 2022. The input switch 2021 encodes video data, which is target video data, among video data 1 stored in the first frame buffer 2011 and video data 2 stored in the second frame buffer 2012. Enter. The target video data will be described in detail later.

出力スイッチ2023は、エンコード部202からの出力手段である。また、出力スイッチ2023は、エンコーダ制御部205が出力するスイッチ切替信号に従って、その設定が切り替えられ、エンコード処理部2022で生成した符号化データを、ストリームバッファ203へ出力する。具体的には、出力スイッチ2023は、生成される符号化データを、対象映像データの符号化データとして出力する。つまり、出力スイッチ2023は、対象映像データが、映像データ1である場合には、生成される符号化データを、後で詳しく説明される第1のストリームバッファ2031へと出力する。また、出力スイッチ2023は、対象映像データが、映像データ2である場合には、生成される符号化データを、後で詳しく説明される第2のストリームバッファ2032へと出力する。   The output switch 2023 is an output unit from the encoding unit 202. The output switch 2023 switches the setting according to the switch switching signal output from the encoder control unit 205, and outputs the encoded data generated by the encoding processing unit 2022 to the stream buffer 203. Specifically, the output switch 2023 outputs the generated encoded data as encoded data of the target video data. That is, when the target video data is video data 1, the output switch 2023 outputs the generated encoded data to the first stream buffer 2031 described in detail later. Further, when the target video data is video data 2, the output switch 2023 outputs the generated encoded data to the second stream buffer 2032 described in detail later.

中間スイッチ2024は、エンコード部202からの一時的なデータ保存手段である。また、中間スイッチ2024は、エンコーダ制御部205が出力するスイッチ切替信号に従って、その設定が切り替えられ、エンコード処理部2022で行うエンコードに必要な情報を、後で詳しく説明されるエンコードバッファ204(第1のエンコードバッファ2041、第2のエンコードバッファ2042)へ出力する。   The intermediate switch 2024 is a temporary data storage unit from the encoding unit 202. The intermediate switch 2024 has its setting switched according to a switch switching signal output from the encoder control unit 205, and stores information necessary for encoding performed by the encoding processing unit 2022 in an encode buffer 204 (first 1 Encoding buffer 2041 and second encoding buffer 2042).

ストリームバッファ203は、複数のフレームを格納できるストリームバッファを、入力映像データ数(例えば2)に応じて持つ。つまり、ストリームバッファ203は、異なる複数のフレームをそれぞれが格納する複数のストリームバッファを備える。具体的には、本実施の形態の本体では、入力映像データが2本である。このことから、ストリームバッファ203は、第1のストリームバッファ2031および第2のストリームバッファ2032の、2つのストリームバッファを持つ。そして、第1のストリームバッファ2031には、映像データ1のエンコード結果を、第2のストリームバッファ2032には、映像データ2のエンコード結果をそれぞれ一時的に保存する。保存されるこれらのエンコード結果は、最終的に、記録媒体209でそれぞれ保存される。   The stream buffer 203 has a stream buffer that can store a plurality of frames according to the number of input video data (for example, 2). That is, the stream buffer 203 includes a plurality of stream buffers each storing a plurality of different frames. Specifically, the main body of the present embodiment has two input video data. Thus, the stream buffer 203 has two stream buffers, a first stream buffer 2031 and a second stream buffer 2032. Then, the encoding result of the video data 1 is temporarily stored in the first stream buffer 2031, and the encoding result of the video data 2 is temporarily stored in the second stream buffer 2032. These stored encoding results are finally stored in the recording medium 209, respectively.

エンコーダ制御部205は、クロック206と、ユーザ設定と、映像入力制御部200と、エンコード部202とからそれぞれ情報を取得する。   The encoder control unit 205 acquires information from the clock 206, user settings, the video input control unit 200, and the encoding unit 202, respectively.

なお、ユーザ設定は、例えば、予め定められた設定記憶部に記憶された設定である。ここで、この設定記憶部は、例えば、映像記録装置1が備える記憶部である。   The user setting is, for example, a setting stored in a predetermined setting storage unit. Here, this setting memory | storage part is a memory | storage part with which the video recording device 1 is provided, for example.

そして、エンコーダ制御部205は、クロック206より、映像記録装置1の動作の基準時間となる時間情報を取得する。   Then, the encoder control unit 205 acquires time information serving as a reference time for the operation of the video recording apparatus 1 from the clock 206.

また、エンコーダ制御部205は、ユーザ設定より、エンコード記録設定、切替フレーム枚数設定(記録速度)、エンコード中断時の処理設定情報を取得する。   Also, the encoder control unit 205 acquires encoding recording setting, switching frame number setting (recording speed), and processing setting information when encoding is interrupted from user settings.

また、エンコーダ制御部205は、映像入力制御部200より、映像データの本数、入力映像データ解像度、入力映像データのリアルタイム性、映像入力タイミング情報を取得する。   Further, the encoder control unit 205 acquires the number of video data, the input video data resolution, the real-time property of the input video data, and video input timing information from the video input control unit 200.

また、エンコーダ制御部205は、エンコード部202より、エンコーダ処理完了信号、エンコード中断時情報を取得する。   Further, the encoder control unit 205 acquires an encoder processing completion signal and encoding interruption information from the encoding unit 202.

そして、エンコーダ制御部205は、それぞれの取得される情報を入力データとして、処理時間の割り当て、処理の切替の判断をする。   Then, the encoder control unit 205 uses the acquired information as input data to determine processing time allocation and processing switching.

そして、エンコーダ制御部205は、これら割り当て等の処理を行うことにより、エンコード開始信号、エンコード中断信号、エンコード再開信号、エンコード中断時の処理設定情報、エンコード再開時情報、スイッチ切替信号を出力する。エンコーダ制御部205は、これらの出力をすることで、エンコード部202(の動作)を制御する。   The encoder control unit 205 outputs the encoding start signal, the encoding interruption signal, the encoding resumption signal, the process setting information at the time of encoding interruption, the information at the time of resumption of encoding, and the switch switching signal by performing such processing as allocation. The encoder control unit 205 controls (the operation of) the encoding unit 202 by performing these outputs.

なお、スイッチ切替信号は、同時に入力スイッチ2021、出力スイッチ2023、中間スイッチ2024に対して、エンコーダ制御部205により入力される。つまり、例えば、入力スイッチ2021に入力される時刻と同じ時刻に、出力スイッチ2023等に入力される。具体的には、エンコーダ制御部205は、映像データ1をエンコード処理部2022が処理する場合は、端子Aがエンコード処理部2022に接続するように、入力スイッチ2021、出力スイッチ2023、中間スイッチ2024を切り替えるスイッチ切替信号を、これら入力スイッチ2021等にそれぞれ出力する。そして、エンコーダ制御部205は、映像データ2をエンコード処理部2022が処理する場合は、端子Bがエンコード処理部2022に接続するように、入力スイッチ2021等を切り替えるスイッチ切替信号を、これら入力スイッチ2021等にそれぞれ出力する。   Note that the switch switching signal is simultaneously input to the input switch 2021, the output switch 2023, and the intermediate switch 2024 by the encoder control unit 205. That is, for example, it is input to the output switch 2023 or the like at the same time as the time input to the input switch 2021. Specifically, when the encoding processing unit 2022 processes the video data 1, the encoder control unit 205 sets the input switch 2021, the output switch 2023, and the intermediate switch 2024 so that the terminal A is connected to the encoding processing unit 2022. A switch switching signal for switching is output to these input switches 2021 and the like. When the encoding processing unit 2022 processes the video data 2, the encoder control unit 205 sends a switch switching signal for switching the input switch 2021 and the like so that the terminal B is connected to the encoding processing unit 2022. Etc. respectively.

なお、映像データ1および映像データ2のうちで、エンコード処理部2022により処理される方の映像データは、対象映像データと呼ばれる。対象映像データは、スイッチ切替信号がエンコーダ制御部205により出力されることにより、映像データ1および映像データ2のうちの一方から、他方へと変更される。出力されるスイッチ切替信号は、その出力よりも前の時間の対象映像データを、その変更の前の一方の映像データと特定すると共に、その出力よりも後の時間の対照映像データを、その変更の後の他方の映像と特定する。   Of the video data 1 and the video data 2, the video data processed by the encoding processing unit 2022 is called target video data. The target video data is changed from one of video data 1 and video data 2 to the other when a switch switching signal is output by the encoder control unit 205. The switch switching signal that is output identifies the target video data before the output as one video data before the change, and the control video data after the output is changed. And the other video after.

第1の映像入力制御部(非記録媒体)207は、記録媒体を用いないで、映像データを扱うブロックである。例えば、第1の映像入力制御部207は、放送データを受信して、映像ストリームをデコードして、映像データを生成するブロック、もしくは、映像データを外部から取り込むブロックである。   The first video input control unit (non-recording medium) 207 is a block that handles video data without using a recording medium. For example, the first video input control unit 207 is a block that receives broadcast data, decodes a video stream, and generates video data, or captures video data from the outside.

第2の映像入力制御部(記録媒体)208は、HDD、光ディスク、半導体メモリ等の記録媒体に記録されたストリームデータをデコードし、映像データを生成するブロックである。   The second video input control unit (recording medium) 208 is a block that decodes stream data recorded on a recording medium such as an HDD, an optical disk, and a semiconductor memory to generate video data.

記録媒体209は、ストリームをHDD、光ディスク、半導体メモリ等に格納しているブロックである。記録媒体209は、例えば、HDDであってもよい。   The recording medium 209 is a block that stores a stream in an HDD, an optical disk, a semiconductor memory, or the like. The recording medium 209 may be, for example, an HDD.

また、エンコード処理部2022が行う符号化処理が、リアルタイム性のある符号化処理の場合は、映像入力制御部200より、映像入力タイミング情報をエンコード処理部2022へ通知する(図略)。他方、逆に非リアルタイム性の符号化処理の場合は、エンコード処理部2022より、映像入力タイミング情報を映像入力制御部200へ通知する。   Further, when the encoding process performed by the encoding processing unit 2022 is a real-time encoding process, the video input control unit 200 notifies the encoding processing unit 2022 of video input timing information (not shown). On the other hand, in the case of non-real-time encoding processing, the encoding processing unit 2022 notifies the video input control unit 200 of video input timing information.

つまり、映像入力制御部は、エンコード処理部2022による処理がリアルタイム性を必要とする場合、その映像入力タイミング情報の時刻までに終了されるべき処理を、その時刻までにエンコード処理部2022に終了させる映像入力タイミング情報をエンコード処理部2022に出力する。ここで、リアルタイム性が必要とは、終了されるべき処理が、その終了がされるべき時刻までに終了することが必要であることをいう。   That is, when the processing by the encoding processing unit 2022 requires real-time processing, the video input control unit causes the encoding processing unit 2022 to finish processing that should be completed by the time of the video input timing information by that time. Video input timing information is output to the encoding processing unit 2022. Here, the necessity for real time means that the process to be terminated needs to be terminated by the time at which the termination is to be performed.

また、エンコード処理部2022は、リアルタイム性が必要でない場合、処理が終了するごとに、適切なデータをエンコード処理部2022に入力させるための制御を映像入力制御部200に行わせる映像入力タイミング情報を、映像入力制御部200へと出力する。ここで、適切なデータとは、その処理の次の処理でエンコード処理部2022が利用するデータである。   In addition, when the real time property is not necessary, the encoding processing unit 2022 provides video input timing information for causing the video input control unit 200 to perform control for inputting appropriate data to the encoding processing unit 2022 every time the processing is completed. And output to the video input control unit 200. Here, the appropriate data is data used by the encoding processing unit 2022 in the next process of the process.

次に、本実施の形態の本体の動作について、図3から図8を用いて説明する。   Next, the operation of the main body of the present embodiment will be described with reference to FIGS.

なお、本実施の形態の本体の動作の説明では、エンコード部202が1フレーム(インターレースの場合は2フィールド、プログレッシブの場合は1フレーム)の表示時間のうちに、1080I映像データを2フレーム分エンコードできる性能を持つとする。なお、1080I映像データは、有効走査線の本数が1080本である映像データである。   In the description of the operation of the main body of the present embodiment, the encoding unit 202 encodes 1080I video data for two frames within the display time of one frame (two fields for interlace and one frame for progressive). Suppose you have the performance you can. The 1080I video data is video data having 1080 effective scanning lines.

また、本実施の形態の本体の動作説明では、基本的には1フレームの表示時間に、入力する二つのストリームについて、各々のストリームの1フレームをエンコード部202はエンコード処理するとする。   In the description of the operation of the main body of the present embodiment, it is assumed that the encoding unit 202 encodes one frame of each stream for two input streams basically at a display time of one frame.

本実施の形態の本体では、1回の単位時間が、映像データの個数(2個)と同じ個数の割り当て時間へとエンコーダ制御部205により分割される。ここで、単位時間は、上記される1フレームの表示時間である。そして、各映像データの処理は、その映像データの割り当て時間における実施時間の間、エンコーダ制御部205がエンコード部202に行わせる。実施時間は、その実施時間が含まれる割り当て時間の一部又は全部を占める。割り当て時間の長さは、例えば、単位時間の長さが、映像データの個数で除算された長さである。そして、割り当て時間の長さは、具体的には、例えば、エンコード部202が1フレームの処理をする時間の長さに等しい。   In the main body of the present embodiment, one unit time is divided by the encoder control unit 205 into the same number of allocation times as the number of video data (two). Here, the unit time is the display time of one frame described above. Each video data is processed by the encoder control unit 205 during the execution time of the video data allocation time. The execution time occupies a part or all of the allocated time including the execution time. The length of the allocation time is, for example, a length obtained by dividing the unit time length by the number of video data. For example, the length of the allocation time is equal to the length of time for which the encoding unit 202 processes one frame.

図3から図8は、映像入力データ(映像データ1、映像データ2)を1080Iおよび480Iとし、出力ストリーム1を、High profile@level4.1の1080Iのインターレース信号のビットストリームとし、出力ストリーム2を、High profile@level4.1の480Iのインターレース信号のビットストリームとした例である。   3 to 8, the video input data (video data 1 and video data 2) are 1080I and 480I, the output stream 1 is a bit stream of a 1080I interlace signal of High profile@level4.1, and the output stream 2 is This is an example of a bit stream of a 480I interlace signal of High profile@level4.1.

まず、入力映像データ情報として、以下の情報を、エンコーダ制御部205に当該エンコーダ制御部205が入力する。   First, the encoder control unit 205 inputs the following information as input video data information to the encoder control unit 205.

Figure 2010272993
Figure 2010272993

1frame当たりの映像データnの割り当て時間は、その処理の処理量が映像データの解像度および、記録速度に比例するので、以下の(式1)のように割り当て時間は割り当てることができる。   Since the processing amount of the video data n per frame is proportional to the resolution of the video data and the recording speed, the allocation time can be allocated as shown in (Equation 1) below.

Figure 2010272993
Figure 2010272993

time(n) :1frame当たりの映像データnの割り当て時間
frame_time :1フレーム表示時間
mb(n) :映像データnの1frame当たりのMB数
speed(n) :映像データnの記録倍数
time (n): Allocation time of video data n per frame
frame_time: 1 frame display time
mb (n): Number of MB per frame of video data n
speed (n): Recording multiple of video data n

エンコーダ制御部205は、映像データ1が1080Iのストリームで、映像データ2が480Iのストリームであるので、mb(1)=8160,mb(2)=1350、speed(1),speed(2)=1と特定する。これらの値を、(式1)に当てはめると、下記のようになる。   Since the video data 1 is a 1080I stream and the video data 2 is a 480I stream, the encoder control unit 205 mb (1) = 8160, mb (2) = 1350, speed (1), speed (2) = Identified as 1. When these values are applied to (Equation 1), they are as follows.

time(1)=frame_time×8160×1/(8160×1+1350×1)=frame_time×0.86
time(2)=frame_time×1350×1/(8160×1+1350×1)=frame_time×0.14
time (1) = frame_time × 8160 × 1 / (8160 × 1 + 1350 × 1) = frame_time × 0.86
time (2) = frame_time × 1350 × 1 / (8160 × 1 + 1350 × 1) = frame_time × 0.14

よって、1フレームの表示時間のうち、映像データ1のエンコード処理の割り当て時間time(1)を1.7フィールド時間、映像データ2のエンコード処理の割り当て時間time(2)を0.3フィールド時間とエンコーダ制御部205は特定する。つまり、エンコーダ制御部205は、映像入力制御部200等からの情報に基いて、これら映像データ1の割り当て時間の長さと、映像データ2の割り当て時間の長さとを算出する。   Therefore, of the display time of one frame, the allocation time time (1) of the encoding process of the video data 1 is 1.7 field time, the allocation time time (2) of the encoding process of the video data 2 is 0.3 field time, and the encoder control unit 205 Is specific. That is, the encoder control unit 205 calculates the allocation time length of the video data 1 and the allocation time length of the video data 2 based on information from the video input control unit 200 and the like.

符号化処理の切替パターンは、下記の3つについて説明する。エンコーダ制御部205がスイッチ切替信号を出力するタイミングは、様々な態様であってよい。その態様に応じて、対象映像データがどのように変更される(切り替えられる)かの切替パターンが決まる。以下では、(X1)〜(X3)の3つの例が示される。   The following three switching patterns of the encoding process will be described. The timing at which the encoder control unit 205 outputs the switch switching signal may be in various modes. A switching pattern for how the target video data is changed (switched) is determined according to the mode. In the following, three examples (X1) to (X3) are shown.

(X1)1frame分に対して、上記割り当て時間ごとに、符号化処理を切り替える(図3)。つまり、割り当て時間が経過するごとに、スイッチ切替信号が出力されて、その割り当て時間の次の割り当て時間の映像データの処理がされる。   (X1) Encoding processing is switched for each allocation time for one frame (FIG. 3). That is, every time the allocation time elapses, a switch switching signal is output, and the video data of the allocation time next to the allocation time is processed.

(X2)1frame分完了したら、符号化処理を切り替える(図4)。つまり、割り当て時間が経過する前でも、実施時間が完了したら、スイッチ切替信号が出力される。   (X2) When one frame is completed, the encoding process is switched (FIG. 4). That is, even before the allotted time has elapsed, when the execution time is completed, the switch switching signal is output.

(X3)Nframe分に対して、上記割り当て時間ごとに符号化処理を切り替える(図5)。つまり、割り当て時間が、エンコード部202が1フレームの処理をする時間の長さに対して、2以上の整数Nを乗じた長さの時間である。   (X3) Encoding processing is switched for each of the allocation times for Nframes (FIG. 5). That is, the allocation time is a time obtained by multiplying the length of time for which the encoding unit 202 processes one frame by an integer N of 2 or more.

以下、詳しく説明される。   This will be described in detail below.

まず切替パターン(X1)について説明する。   First, the switching pattern (X1) will be described.

図3は、割り当て時間ごとにスイッチ切替信号が出力される例における、映像記録装置1の処理を示す図である。   FIG. 3 is a diagram illustrating processing of the video recording apparatus 1 in an example in which a switch switching signal is output for each allocation time.

映像入力タイミング情報(の設定)が、映像入力制御部200であるから(上記の入力映像データ情報の表を参照)、図3のように、クロック206からの時間情報より、エンコーダ制御部205が、1フィールド時間(16.7msec)毎にスイッチ切替信号を出力する(図3の上向き矢印を参照)。また、エンコーダ制御部205は、その出力と共に、エンコード開始信号を出力する。なお、ここで、1フィールド時間は、1フレーム(=2フィールド)の処理をエンコード処理部2022が行う時間である。   Since the video input timing information (setting) is the video input control unit 200 (see the table of input video data information above), the encoder control unit 205 uses the time information from the clock 206 as shown in FIG. A switch switching signal is output every field time (16.7 msec) (see the upward arrow in FIG. 3). The encoder control unit 205 outputs an encoding start signal together with the output. Here, one field time is a time for the encoding processing unit 2022 to process one frame (= 2 fields).

エンコード部202は、スイッチ切替信号が出力されると、エンコードバッファ204より、エンコード処理部内部情報および、動き補償予測に必要な映像データなどを(必要なら)読み出して、エンコード処理を行う。エンコード処理が完了したら、エンコード部202の内部で保持している情報や、動き補償予測に必要な映像データなどを、現在の対象映像データについての次の割り当て時間が始まるまで、エンコードバッファ204にエンコード部202は退避しておく。   When the switch switching signal is output, the encoding unit 202 reads the internal information of the encoding processing unit and video data necessary for motion compensation prediction (if necessary) from the encoding buffer 204 and performs the encoding process. When the encoding process is completed, the information held in the encoding unit 202 and the video data necessary for motion compensation prediction are encoded in the encoding buffer 204 until the next allocation time for the current target video data starts. The unit 202 is saved.

現在の対象映像データの処理のうちで、現在のフレームのエンコード処理が、現在の割り当て時間内に完了すれば、図3のように、1フィールド時間毎に、エンコード部202に入力される映像データが、映像データ1、映像データ2、映像データ1・・・と切り替えられる。   If the current frame encoding process is completed within the current allocation time among the current target video data processing, the video data input to the encoding unit 202 every field time as shown in FIG. Are switched to video data 1, video data 2, video data 1, and so on.

次に、切替パターン(X2)について説明する。   Next, the switching pattern (X2) will be described.

図4は、実施時間が完了した時にスイッチ切替信号が出力される例における、映像記録装置1の処理を示す図である。   FIG. 4 is a diagram illustrating processing of the video recording apparatus 1 in an example in which a switch switching signal is output when the execution time is completed.

また、図4のように、スイッチ切替信号が出力されるタイミングの一部を、他方のエンコード処理完了の時刻としても良い。エンコード処理が割り当て時間内に完了すれば、図4のように、1フィールド時間毎に、エンコード部202に入力される映像データが映像データ1、映像データ2、映像データ1・・・と切り替えられることになる。   Also, as shown in FIG. 4, a part of the timing at which the switch switching signal is output may be set as the other encoding process completion time. If the encoding process is completed within the allotted time, the video data input to the encoding unit 202 is switched to video data 1, video data 2, video data 1,... Every field time as shown in FIG. It will be.

最後に切替パターン(X3)について説明する。   Finally, the switching pattern (X3) will be described.

図5は、割り当て時間の長さが、1フレームの処理時間(1フィールドの時間)にN(=2)を乗算した長さである例における、映像記録装置1の処理を示す図である。   FIG. 5 is a diagram illustrating processing of the video recording apparatus 1 in an example in which the length of the allocation time is a length obtained by multiplying the processing time of one frame (time of one field) by N (= 2).

また、図5のように、切替枚数を2frameとして、スイッチ切替信号の出力タイミングを2frame分処理の時間(2フィールド時間)としてもよい。切替回数が減るため、エンコード処理部内部情報の復帰、退避の回数も減らすことができる。   Further, as shown in FIG. 5, the number of switching sheets may be set to 2 frames, and the output timing of the switch switching signal may be set to a processing time for 2 frames (2 field times). Since the number of times of switching is reduced, the number of times that the internal information of the encoding processing unit is restored and saved can also be reduced.

図5のように切替枚数を2frameとした場合には、2フィールド時間毎に、エンコード部202に入力される映像データが映像データ1、映像データ2、映像データ1・・・と切り替えられることになる。   When the number of switching sheets is 2 frames as shown in FIG. 5, the video data input to the encoding unit 202 is switched to video data 1, video data 2, video data 1... Every two field times. Become.

説明はしていないが、他にもNframe分完了したら、切り替えるというパターン等も存在する。   Although not described, there are other patterns such as switching after completion of N frames.

以上のように、エンコーダ制御部205が、入力映像データ情報に基いて判断を行い、1フィールド時間に1フレーム分のエンコード処理を、切り替えながら行うことで、1つのエンコード部202から2つのストリームを出力することができる。   As described above, the encoder control unit 205 makes a determination based on the input video data information, and performs encoding processing for one frame in one field time while switching, so that two streams are output from one encoding unit 202. Can be output.

先に述べたように、本実施の形態の本体の説明におけるエンコード部202の処理性能は、1080Iの映像データに関して、1フレーム表示時間に、2フレーム分処理できるものなので、通常、映像データ1のエンコード処理は、1フィールド時間に完了する。しかしながら、外部的要因などにより、1フィールド時間でエンコード処理が完了しない場合を想定する必要がある。上記のように映像サイズに応じて符号化処理割り当てを決定することで、外部的要因を考慮した処理割り当て時間とすることができる。   As described above, the processing performance of the encoding unit 202 in the description of the main body of the present embodiment can process two frames in one frame display time with respect to 1080I video data. The encoding process is completed in one field time. However, it is necessary to assume a case where the encoding process is not completed in one field time due to external factors. By determining the encoding process allocation according to the video size as described above, it is possible to set the process allocation time in consideration of external factors.

仮に切替前のエンコード処理が完了していない場合、下記の制御を行う。つまり、下記の(Y1)〜(Y3)の例では、割り当て時間のうちに、その割り当て時間で処理されるべきフレームの処理のうちの一部の処理のみが完了した際の処理が説明される。   If the encoding process before switching is not completed, the following control is performed. That is, in the following examples (Y1) to (Y3), the processing when only a part of the processing of the frame to be processed in the allocation time is completed during the allocation time will be described. .

(Y1)1frame分の処理を中断し、次の割り当て時間に再開し、残りの1frame分を符号化する(図6)。つまり、フレームの処理のうち、行われた一部の処理以外の残りの処理は、その一部の処理が行われた割り当て時間の次に、その映像データについて割り当てられる次の割り当て時間において行われる。   (Y1) The processing for 1 frame is interrupted, restarted at the next allocation time, and the remaining 1 frame is encoded (FIG. 6). In other words, the remaining processing of the frame processing other than the partial processing performed is performed at the next allocation time allocated for the video data after the allocation time during which the partial processing is performed. .

(Y2)1frame分の処理を中断し、次の割り当て時間では次の1frame分を符号化する(図7)。つまり、次の割り当て時間では、残りの処理は実行されない。   (Y2) Processing for one frame is interrupted, and the next one frame is encoded in the next allocation time (FIG. 7). That is, the remaining processing is not executed in the next allocation time.

(Y3)1frame分の処理を延長して、他の割り当て時間に余裕がある場合は符号化し続ける(図8)。つまり、行われた一部の処理の割り当て時間の次に、その割り当て時間の映像データ以外の他の映像データについて割り当てられる割り当て時間において、残りの処理が行われる。すなわち、他の映像データの割り当て時間の一部(又は全部)が、その残りの処理の映像データの割り当て時間へと変更され、その映像データの割り当て時間が延長される。   (Y3) The processing for one frame is extended, and encoding is continued when there is room in other allocation time (FIG. 8). That is, after the allocation time of a part of the processing that has been performed, the remaining processing is performed at the allocation time allocated for video data other than the video data of the allocation time. That is, a part (or all) of the other video data allocation time is changed to the video data allocation time for the remaining processing, and the video data allocation time is extended.

まず、制御(Y1)の場合について説明する。   First, the case of control (Y1) will be described.

図6は、映像データの符号化の処理が、1フィールドの時間(時刻T09〜時刻T10の時間)で完了しなかった場合の処理を示す図である。なお、図6では、時刻T02a、時刻T04a、…時刻T14aも図示される。   FIG. 6 is a diagram illustrating a process when the encoding process of video data is not completed in one field time (time T09 to time T10). In FIG. 6, time T02a, time T04a,... Time T14a are also illustrated.

仮に切替前のエンコード処理が完了していない場合、エンコード中断時の処理設定情報とエンコード中断信号をエンコーダ制御部205がエンコード部202に出力する。そして、エンコーダ制御部205は、この出力の後に、エンコーダ処理完了信号およびエンコード処理中断情報の通知をエンコード部202から受けた後、エンコード開始信号をエンコード部202に出力する。   If the encoding process before switching is not completed, the encoder control unit 205 outputs the processing setting information and the encoding interruption signal at the time of encoding interruption to the encoding unit 202. After this output, the encoder control unit 205 receives an encoder processing completion signal and a notification of encoding processing interruption information from the encoding unit 202, and then outputs an encoding start signal to the encoding unit 202.

そして、仮に、エンコード開始信号がエンコーダ制御部205により発生される時に(時刻T11)、中断されたエンコード処理(時刻T10aで中断された処理)があることがエンコーダ制御部205により特定される場合、エンコーダ制御部205は次の出力をする。つまり、エンコーダ制御部205は、この場合、エンコード開始信号ではなく、エンコード再開時情報とともにエンコード再開信号を、エンコード部202に出力する。   If the encoder control unit 205 specifies that there is an interrupted encoding process (process interrupted at time T10a) when an encoding start signal is generated by the encoder control unit 205 (time T11), The encoder control unit 205 outputs the following. That is, in this case, the encoder control unit 205 outputs the encode restart signal to the encode unit 202 together with the encode restart time information instead of the encode start signal.

切替フレーム枚数設定が1枚であるから(上記の入力映像データ情報の表を参照)、エンコード部202は、エンコーダ制御部205からのエンコード開始信号を検出すると、1フレーム分のエンコード処理を行う。エンコード部202は、H.264(H.264/AVC)の符号化方式に従ったエンコード処理をしながら、エンコーダ処理完了信号、エンコード中断時情報をエンコーダ制御部205に通知する。図6の映像データ1の画像4の処理(ピッチが広い画像4のハッチングの領域の処理)では、エンコード処理遅延が発生し、映像データ1の割り当て時間内(時刻T09〜時刻T10の時間内)に、符号化処理が完了していなかった例を示している。   Since the number of switching frames is set to 1 (see the table of input video data information), the encoding unit 202 performs an encoding process for one frame when detecting the encoding start signal from the encoder control unit 205. The encoding unit 202 notifies the encoder control unit 205 of an encoder processing completion signal and encoding interruption information while performing encoding processing according to the H.264 (H.264 / AVC) encoding method. In the processing of the image 4 of the video data 1 in FIG. 6 (processing of the hatched area of the image 4 having a wide pitch), an encoding processing delay occurs, and the video data 1 is allocated within the time (time T09 to time T10). An example in which the encoding process has not been completed is shown.

エンコーダ制御部205は、エンコードを開始してから、割り当て時間内にエンコード処理完了信号がエンコード部202からないことから、エンコード処理が完了していないと判断できる。エンコード処理がその割り当て時間内に完了していないと判断した場合、エンコーダ制御部205は、エンコード中断信号および、エンコード中断時の処理設定情報を、エンコード部202に出力する。エンコード部202は、エンコード中断信号を受けたら、そのエンコード中断信号と共にエンコード部202に出力された、エンコード中断時の処理設定情報に基いて、処理を行う。具体的には、エンコード部202は、スライスもしくはマクロブロックのうちで、出力されたエンコード中断時の処理設定情報が特定する方の符号化処理単位まで、そのエンコード処理を行う。そして、エンコード部202は、その符号化処理単位まで、エンコード処理が完了した時点で符号化処理を中断する(時刻T10a)。   The encoder control unit 205 can determine that the encoding process has not been completed since the encoding process completion signal is not transmitted from the encoding unit 202 within the allocated time after starting the encoding. If it is determined that the encoding process has not been completed within the allocated time, the encoder control unit 205 outputs an encoding interruption signal and processing setting information at the time of encoding interruption to the encoding unit 202. When the encoding unit 202 receives the encoding interruption signal, the encoding unit 202 performs processing based on the processing setting information at the time of encoding interruption output to the encoding unit 202 together with the encoding interruption signal. Specifically, the encoding unit 202 performs the encoding processing up to the encoding processing unit specified by the output processing setting information at the time of the encoding interruption, among slices or macroblocks. The encoding unit 202 interrupts the encoding process when the encoding process is completed up to the encoding process unit (time T10a).

エンコード部202は、こうして、符号化処理を中断する場合、再開位置情報などのエンコード中断時情報を出力する。ただし、エンコード部202は、一部のデータ、すなわち、容量の大きいフレームバッファ201およびエンコード部202の内部で保持している情報、および、動き補償予測に必要な映像データなどの一部又は全部は、エンコードバッファ204に退避する。エンコード部202は、フレームバッファ201の空き容量が多い場合は、中断されたフレームバッファ(第1のフレームバッファ2011又は第2のフレームバッファ2012)を上書きされないよう、ガードしておいてもよい。   In this way, when the encoding unit 202 interrupts the encoding process, the encoding unit 202 outputs information at the time of encoding interruption such as resume position information. However, the encoding unit 202 has a part or all of some data, that is, information held in the large-capacity frame buffer 201 and the encoding unit 202, and video data necessary for motion compensation prediction. The data is saved in the encode buffer 204. The encoding unit 202 may guard the interrupted frame buffer (the first frame buffer 2011 or the second frame buffer 2012) from being overwritten when the free space of the frame buffer 201 is large.

エンコーダ制御部205は、エンコード中断時情報(上述)をエンコード部202から受けたら、スイッチ切替信号を出力する(時刻T10a)。これにより、エンコーダ制御部205は、入力スイッチ2021、出力スイッチ2023、中間スイッチ2024の各設定を、現在の設定と違う設定へと変更する。具体的には、図6の例では、エンコーダ制御部205は、時刻T10aにおいて、スイッチ切替信号を出力することにより、入力スイッチ2021等の設定を、映像データ2を処理するように、端子Bをエンコード処理部2022に接続する設定に切り替える。これにより、エンコード部202は、映像データ2の画像4の符号化処理(ピッチが狭い画像4のハッチングの領域の処理)を開始する。   Upon receiving the encoding interruption information (described above) from the encoding unit 202, the encoder control unit 205 outputs a switch switching signal (time T10a). Thereby, the encoder control unit 205 changes each setting of the input switch 2021, the output switch 2023, and the intermediate switch 2024 to a setting different from the current setting. Specifically, in the example of FIG. 6, the encoder control unit 205 outputs a switch switching signal at time T <b> 10 a so that the setting of the input switch 2021 and the like is set to the terminal B so as to process the video data 2. The setting is switched to the setting for connection to the encoding processing unit 2022. As a result, the encoding unit 202 starts encoding processing of the image 4 of the video data 2 (processing of the hatched area of the image 4 having a narrow pitch).

そして、エンコーダ制御部205は、映像データ2のエンコード割り当て時間が経過すると(時刻T11)、再びスイッチ切替信号を出力する。このスイッチ切替信号により、入力スイッチ2021、出力スイッチ2023、中間スイッチ2024の設定は、端子Aにエンコード処理部2022が接続される設定に切り替えられる。また、エンコーダ制御部205が、前回の映像データ1の処理が完了ではなく中断だった(時刻T10a)ことから、エンコード再開信号および、エンコード再開時情報をエンコード部202に出力する。これにより、中断された映像データ1の画像4のエンコード処理をエンコード部202が再開する(時刻T11〜)。このとき、エンコード部202は、エンコード再開時情報および、エンコードバッファ204のデータに基いて、映像データ2のエンコード処理で書きつぶされた状態の記憶域を、映像データ1の中断時の状態に復帰する。そして、エンコード部202は、この復帰をしてから、中断された映像データ1の画像4のエンコード処理、および、本来処理する、映像データ1の画像5のエンコード処理をする(時刻T11〜時刻T12の前半部および後半部)。ここで、記憶域は、例えば、エンコード部202の一部である。   Then, the encoder control unit 205 outputs the switch switching signal again when the encoding allocation time of the video data 2 has elapsed (time T11). By this switch switching signal, the settings of the input switch 2021, the output switch 2023, and the intermediate switch 2024 are switched to a setting in which the encoding processing unit 2022 is connected to the terminal A. The encoder control unit 205 outputs the encoding restart signal and the encoding restart time information to the encoding unit 202 because the previous processing of the video data 1 was not completed but interrupted (time T10a). Thereby, the encoding unit 202 resumes the encoding process of the image 4 of the interrupted video data 1 (time T11 to time T11). At this time, the encoding unit 202 restores the storage area written in the encoding process of the video data 2 to the state when the video data 1 is interrupted based on the encoding restart information and the data in the encoding buffer 204. To do. Then, after the restoration, the encoding unit 202 performs the encoding process of the image 4 of the interrupted video data 1 and the encoding process of the image 5 of the video data 1 that is originally processed (time T11 to time T12). First half and second half). Here, the storage area is, for example, a part of the encoding unit 202.

次に制御(Y2)について説明する。   Next, the control (Y2) will be described.

図7は、残りの処理が行われない例における、映像記録装置1の処理を示す図である。   FIG. 7 is a diagram illustrating processing of the video recording apparatus 1 in an example where the remaining processing is not performed.

図6により説明される中断再開の処理では、符号化の処理のリアルタイム性が保証できない場合は、中断後(図6の時刻T10a)、次のピクチャにスキップして処理することで、記録データが欠落するものの、システム破綻を回避できる。その動作について図7を用いて説明する。エンコード部202へと出力される、エンコード中断時の処理設定情報に、中断時にスキップする情報をエンコーダ制御部205が付加すればよい。   In the process of resuming interruption described with reference to FIG. 6, if the real-time property of the encoding process cannot be guaranteed, after the interruption (time T10a in FIG. 6), the recording data is processed by skipping to the next picture. Although it is missing, system failure can be avoided. The operation will be described with reference to FIG. The encoder control unit 205 may add information to be skipped at the time of interruption to the process setting information at the time of interruption of encoding output to the encoding unit 202.

図7の映像データ1の画像4の処理(画像4の広いハッチングの領域の処理)では、エンコード処理の遅延が発生し、映像データ1の割り当て時間内(時刻T09〜時刻T10の時間内)に符号化処理が完了していなかった例を示している。   In the processing of the image 4 of the video data 1 in FIG. 7 (processing of the wide hatched area of the image 4), a delay of the encoding processing occurs, and within the allocation time of the video data 1 (time T09 to time T10). An example in which the encoding process has not been completed is shown.

エンコーダ制御部205は、エンコードを開始してから、割り当て時間内(時刻T09〜時刻T10の時間内)にエンコード処理完了信号がエンコード部202からないことから、エンコード処理が完了していないと判断できる。エンコード処理が完了していないと判断した場合、エンコーダ制御部205は、エンコード中断信号および、エンコード中断時の処理設定情報をエンコード部202に出力する。   The encoder control unit 205 can determine that the encoding process has not been completed since the encoding process completion signal is not sent from the encoding unit 202 within the allocated time (from time T09 to time T10) after starting the encoding. . If it is determined that the encoding process has not been completed, the encoder control unit 205 outputs an encoding interruption signal and processing setting information at the time of encoding interruption to the encoding unit 202.

エンコード部202は、エンコード中断信号を受けたら、そのエンコード中断信号と共に出力された、エンコード中断時の処理設定情報が、スキップ設定であることから、直ちに、符号化処理を強制終了する(時刻T10a)。スキップするので、エンコード処理部2022(エンコード部202)は、エンコード処理部2022の内部で保持している情報や、動き補償予測に必要な映像データなどは、エンコードバッファ204に退避しない。   When receiving the encoding interruption signal, the encoding unit 202 forcibly terminates the encoding process immediately because the processing setting information at the time of encoding interruption output together with the encoding interruption signal is a skip setting (time T10a). . Since the data is skipped, the encoding processing unit 2022 (encoding unit 202) does not save the information held in the encoding processing unit 2022 or video data necessary for motion compensation prediction in the encoding buffer 204.

強制終了した場合、エンコード部202は、エンコード処理完了信号をエンコーダ制御部205に出力する。   In the case of forced termination, the encoding unit 202 outputs an encoding process completion signal to the encoder control unit 205.

エンコーダ制御部205は、エンコード処理完了信号をエンコード部202から受けたら、スイッチ切替信号をエンコード部202に出力する(時刻T10a)。これにより、入力スイッチ2021、出力スイッチ2023、中間スイッチ2024の各設定を、映像データ2を処理するように、端子Bがエンコード処理部2022に接続される設定にエンコーダ制御部205は切り替える。これにより、エンコード部202が、この切り替えに応じて、映像データ2の画像4の符号化処理(画像4のピッチが狭いハッチングの処理)を開始する。   Upon receiving the encoding process completion signal from the encoding unit 202, the encoder control unit 205 outputs a switch switching signal to the encoding unit 202 (time T10a). As a result, the encoder control unit 205 switches the settings of the input switch 2021, the output switch 2023, and the intermediate switch 2024 to settings for connecting the terminal B to the encoding processing unit 2022 so as to process the video data 2. As a result, the encoding unit 202 starts encoding processing of the image 4 of the video data 2 (hatching processing in which the pitch of the image 4 is narrow) in response to the switching.

そして、エンコーダ制御部205は、映像データ2のエンコード割り当て時間が経過すると(時刻T11)、スイッチ切替信号を出力する。このスイッチ切替信号により、入力スイッチ2021、出力スイッチ2023、中間スイッチ2024の各設定は、端子Aにエンコード処理部2022が接続される設定に切り替えられる。また、エンコーダ制御部205が、前回の映像データ1の処理が完了だったことから(時刻T10a)、エンコード開始信号をエンコード部202に出力する。これにより、時刻T10aで中断された映像データ1の画像4の処理(広いピッチのハッチングによる画像4の領域)をスキップして(その処理の残りの処理が行われることはなく)、画像4の次の画像5のエンコード処理をエンコード処理部2022はする。このとき、エンコード部202は、例えば、エンコード再開時情報および、エンコードバッファ204よりのデータにより、映像データ2のエンコード処理で書きつぶされた状態の記憶域を、映像データ1の中断時の状態(例えば、時刻T10aの状態)に復帰する。そして、エンコード部202は、この復帰をしてから、映像データ1の画像5をエンコード処理する(画像5の広いハッチングでの処理)。   Then, the encoder control unit 205 outputs a switch switching signal when the encoding allocation time of the video data 2 has elapsed (time T11). By this switch switching signal, each setting of the input switch 2021, the output switch 2023, and the intermediate switch 2024 is switched to a setting in which the encoding processing unit 2022 is connected to the terminal A. Further, the encoder control unit 205 outputs an encoding start signal to the encoding unit 202 because the previous processing of the video data 1 has been completed (time T10a). As a result, the processing of the image 4 of the video data 1 interrupted at the time T10a (the region of the image 4 by the wide pitch hatching) is skipped (the remaining processing of the processing is not performed), and the image 4 The encoding processing unit 2022 performs encoding processing for the next image 5. At this time, the encoding unit 202 stores, for example, the storage area in which the video data 2 is written by the encoding process of the video data 2 based on the encoding restart information and the data from the encoding buffer 204, in the state when the video data 1 is interrupted ( For example, the state returns to the state at time T10a). Then, after the restoration, the encoding unit 202 encodes the image 5 of the video data 1 (processing with a wide hatching of the image 5).

最後に制御(Y3)について説明する。   Finally, the control (Y3) will be described.

図8は、割り当て時間の延長が行われる際における、映像記録装置1の処理を示す図である。   FIG. 8 is a diagram illustrating processing of the video recording apparatus 1 when the allocation time is extended.

記録データの欠落が許されない場合、以下で説明されるようにして、割り当て時間を一時に変更することで、システム破綻を回避できる。その動作について図8を用いて説明する。エンコード部202へと出力される、エンコード中断時の処理設定情報に対して、エンコーダ制御部205が、中断時には延長するとの情報を付加すればよい。   If the loss of recorded data is not allowed, the system failure can be avoided by changing the allocation time at one time as described below. The operation will be described with reference to FIG. The encoder control unit 205 may add information indicating that the processing is to be extended at the time of interruption to the processing setting information at the time of interruption of the encoding that is output to the encoding unit 202.

図8の映像データ1の画像4の処理(画像4の広いハッチングの処理)では、エンコード処理の遅延が発生し、映像データ1の割り当て時間内(時刻T09〜時刻T10)に、符号化処理が完了していなかった例を示している。   In the processing of the image 4 of the video data 1 in FIG. 8 (processing of wide hatching of the image 4), a delay of the encoding processing occurs, and the encoding processing is performed within the allocation time of the video data 1 (time T09 to time T10). It shows an example that was not completed.

エンコーダ制御部205は、エンコードを開始してから、割り当て時間内にエンコード処理完了信号がエンコード部202からないことから、エンコード処理が完了していないと判断できる。エンコード処理が完了していないと判断した場合、エンコーダ制御部205は、エンコード中断信号および、エンコード中断時の処理設定情報を、エンコード部202に出力する。エンコード部202は、エンコード中断信号を受けたら、このエンコード中断信号と共に出力されたエンコード中断時の処理設定情報が延長設定を有することから、符号化処理を継続する。具体的には、エンコード部202は、映像データ2のエンコード処理(狭いピッチのハッチングによる領域の処理)の時間から、割り当て時間を譲り受けることにより、符号化処理を継続する。ただし、譲り受けることにより延長される延長時間は、譲り渡す側である、映像データ2のエンコード処理の完了に、影響を与えない範囲で行う。延長期間内に、エンコード処理が完了したら、通常完了と同様、エンコード処理完了信号をエンコーダ制御部205はエンコード部202に出力する。   The encoder control unit 205 can determine that the encoding process has not been completed since the encoding process completion signal is not transmitted from the encoding unit 202 within the allocated time after starting the encoding. When it is determined that the encoding process has not been completed, the encoder control unit 205 outputs an encoding interruption signal and processing setting information at the time of encoding interruption to the encoding unit 202. When receiving the encoding interruption signal, the encoding unit 202 continues the encoding process because the process setting information at the time of encoding interruption output together with the encoding interruption signal has an extension setting. Specifically, the encoding unit 202 continues the encoding process by taking over the allocation time from the time of the encoding process of the video data 2 (the process of the area by the narrow pitch hatching). However, the extended time extended by the transfer is performed within a range that does not affect the completion of the encoding process of the video data 2 on the transfer side. When the encoding process is completed within the extension period, the encoder control unit 205 outputs an encoding process completion signal to the encoding unit 202 as in the normal completion.

以上のようにすることで、各映像データのエンコード処理の遅延が、その映像データ以外の他の映像データのエンコード処理に影響を与えないため、各エンコード処理の性能保証が容易となる。   By doing so, the delay of the encoding process of each video data does not affect the encoding process of other video data other than the video data, so that the performance of each encoding process can be easily guaranteed.

実施の形態の変形例では、先述された局面A3、A4、A5、A11、A12、A15における、等倍以外のエンコード処理や、非リアルタイム性能エンコード処理、および、1つの映像データから複数の符号化後のデータを作成するエンコード処理などについて説明する。   In the modification of the embodiment, in the above-described aspects A3, A4, A5, A11, A12, and A15, encoding processing other than equal magnification, non-real-time performance encoding processing, and a plurality of encodings from one video data An encoding process for creating subsequent data will be described.

変形例では、エンコード部202が、1080Iに関して、2フレーム表示時間に、1フレーム分を処理できる処理性能があるとする。   In the modification, it is assumed that the encoding unit 202 has a processing performance capable of processing one frame for two frames display time with respect to 1080I.

図9は、映像データ(映像入力データ)を1080Iおよび480Iのデータとし、出力ストリーム1を、High profile@level4.1の1080Iのインターレース信号のビットストリームとし、出力ストリーム2を、High profile@level4.1の480Iのインターレース信号のビットストリームとした例である。   In FIG. 9, video data (video input data) is 1080I and 480I data, output stream 1 is a bit stream of a 1080I interlaced signal of High profile @ level 4.1, and output stream 2 is High profile @ level4. This is an example of a bit stream of 1 480I interlace signal.

まず、入力映像データ情報として、以下の情報を、エンコーダ制御部205へと、当該エンコーダ制御部205が入力する。   First, the encoder control unit 205 inputs the following information as input video data information to the encoder control unit 205.

Figure 2010272993
Figure 2010272993

映像データ1の記録速度が2倍速で、また、映像データ2の入力映像データのリアルタイム性はなく、映像データ2の記録速度は出来高でよいので、映像データ1の符号化処理の空き時間を、映像データ2の処理の時間として利用する。つまり、映像データ1の処理に割り当てられる第1の割り当て時間のうちで、映像データ2の処理の時間に変更されても弊害がない空き時間が、映像データ2の処理のための第2の割り当て時間に変更される(図9の狭いハッチングの領域の処理)。すなわち、先述の(式1)において、映像データ2の1frame当たりのMB数mb(2)を0とすることで、各映像データの処理時間の計算を映像記録装置1がする。これにより、1フレームの表示時間の全てを、映像データ1の符号化処理の割り当て時間として、エンコーダ制御部205は原則、特定する。エンコーダ制御部205は、映像データ1が1080Iのストリームで、映像データ2が480Iのストリームであるので、mb(2)=0であるのが反映されなければ、mb(1)=8160,mb(2)=1350、speed(1)=2,speed(2)=1となる。ただし、mb(2)=0として計算するので、下記のようになる。   Since the recording speed of the video data 1 is double speed, the input video data of the video data 2 is not real-time, and the recording speed of the video data 2 may be high, the free time for the encoding process of the video data 1 This is used as the processing time of the video data 2. That is, of the first allocation time allocated to the processing of the video data 1, the free time that does not have a harmful effect even if it is changed to the processing time of the video data 2 is the second allocation for the processing of the video data 2. The time is changed (processing of the narrow hatched area in FIG. 9). That is, the video recording apparatus 1 calculates the processing time of each video data by setting the number of MBs mb (2) per frame of the video data 2 to 0 in the above-described (Formula 1). As a result, the encoder control unit 205 specifies the entire display time of one frame as the allocation time of the encoding process of the video data 1 in principle. Since the video data 1 is a 1080I stream and the video data 2 is a 480I stream, the encoder control unit 205 does not reflect that mb (2) = 0, mb (1) = 8160, mb ( 2) = 1350, speed (1) = 2, speed (2) = 1. However, since it is calculated as mb (2) = 0, it is as follows.

time(1)=frame_time×8160×2/(8160×2+0×1)=frame_time×1
time(2)=frame_time×0×1/(8160×2+0×1)=0
time (1) = frame_time × 8160 × 2 / (8160 × 2 + 0 × 1) = frame_time × 1
time (2) = frame_time × 0 × 1 / (8160 × 2 + 0 × 1) = 0

ただし、実際のtime(2)の処理時間は下記の通りになる。つまり、上記される空き時間が含まれるように変更された変更後の第2の割り当て時間は、下記の通りである。   However, the actual processing time of time (2) is as follows. That is, the second allocation time after the change that is changed so as to include the above-described free time is as follows.

frame_time−映像データ1の2frame分のエンコード処理時間     frame_time-encoding time for 2 frames of video data 1

映像入力タイミング情報(の設定)が、エンコーダ制御部205であるから、映像データ1(の偶数フレーム)の符号化処理が完了したら(時刻T02)、エンコーダ制御部205は、さらに、映像データの転送を映像入力制御部200に指示する。これにより、2倍速の符号化処理に応じた映像入力を映像入力制御部200が行う(時刻T02〜時刻T02a)。   Since the video input timing information (setting) is the encoder control unit 205, when the encoding process of the video data 1 (even frame thereof) is completed (time T02), the encoder control unit 205 further transfers the video data. To the video input controller 200. Thus, the video input control unit 200 performs video input according to the double speed encoding process (time T02 to time T02a).

符号化処理の割り当て時間を倍速分だけ、乗算するように映像入力制御部200が制御すれば、上記の説明と同様に、議論を進めることができる。   If the video input control unit 200 controls to multiply the allocation time of the encoding process by the double speed, the discussion can proceed as in the above description.

映像入力タイミング情報(の設定)がエンコーダ制御部205であるから、映像データ1(の偶数フレーム)の符号化処理が完了したら(時刻T02)、次の映像データ(奇数フレーム)をエンコーダ制御部205が用意することができる。このため、上記完了の後に、映像データ1の2回目の符号化処理をエンコード処理部2022が行う(時刻T02〜時刻T02a)。2回目の符号化処理の完了と同時にスイッチ切替信号(時刻T02aのスイッチ切替信号)をエンコーダ制御部205は出力すればよい。   Since the video input timing information (setting thereof) is the encoder control unit 205, when the encoding process of the video data 1 (even number frame thereof) is completed (time T02), the next video data (odd frame) is transferred to the encoder control unit 205. Can be prepared. Therefore, after completion of the above, the encoding processing unit 2022 performs the second encoding process of the video data 1 (time T02 to time T02a). The encoder control unit 205 may output a switch switching signal (switch switching signal at time T02a) simultaneously with the completion of the second encoding process.

一方、映像データ2の符号化処理に関しては、映像入力タイミング情報(の設定)がエンコーダ制御部205である。このため、映像データ2の符号化処理が完了したら(時刻T12a)、映像データ2のための第2の割り当て時間の残り(時刻T12a〜時刻T13)がある限り、処理が完了したフレームデータの次のフレームデータをエンコード処理部2022が符号化する。第2の割り当て時間が終われば(時刻T13)、エンコード処理部2022が処理を中断し、映像データ1の符号化処理に、行われる処理が切り替わる。   On the other hand, regarding the encoding process of the video data 2, video input timing information (setting) is the encoder control unit 205. For this reason, when the encoding process of the video data 2 is completed (time T12a), as long as there is a remaining second allocation time for the video data 2 (time T12a to time T13), the next frame data after the process is completed. The encoding processing unit 2022 encodes the frame data. When the second allocation time ends (time T13), the encoding processing unit 2022 interrupts the processing, and the processing to be performed is switched to the encoding processing of the video data 1.

一方、映像データ2のエンコード処理について説明する。mb(2)=0であることから、第2の映像データについては、予め決められた、割り当て時間はない。つまり映像データ2の割り当て時間は基本的に0であるが、映像データ1のエンコード処理のアイドリング時間(空き時間)が、エンコード2(映像データ2のエンコード)のための割り当て時間となる。   On the other hand, the encoding process of the video data 2 will be described. Since mb (2) = 0, there is no predetermined allocation time for the second video data. That is, although the allocation time of the video data 2 is basically 0, the idling time (free time) of the encoding process of the video data 1 is the allocation time for the encoding 2 (encoding of the video data 2).

映像入力タイミング情報(の設定)がエンコーダ制御部205であるから、1frameの符号化処理が完了した時点で(時刻T12a)、新しい映像データ(次のフレームデータ)を入力するように、映像入力制御部200をエンコーダ制御部205が制御する。エンコーダ制御部205は、この制御をすることで、映像データ2の割り当て時間中は(時刻T13までは)、映像データ2のエンコード処理をエンコード処理部2022がし続けるようにする。スイッチ切替信号が発生するたびに、中断、再開の制御をエンコーダ制御部205は行う。   Since the video input timing information (setting) is the encoder control unit 205, the video input control is performed so that new video data (next frame data) is input when the encoding process of 1 frame is completed (time T12a). The encoder control unit 205 controls the unit 200. By performing this control, the encoder control unit 205 causes the encoding processing unit 2022 to continue encoding processing of the video data 2 during the allocation time of the video data 2 (until time T13). Each time a switch switching signal is generated, the encoder control unit 205 performs control of interruption and resumption.

以上の点を考慮して、エンコーダ制御部205は、映像データ1は、2倍速で符号化処理可能で、映像データ1を2倍速で符号化処理することを確保した上で、映像データ2のための第2の割り当て時間を適切に決定する。すなわち、エンコーダ制御部205は、その確保をする一方で、その映像データ1の処理の割り当て時間のうちの空き時間を利用して、映像データ2の符号化処理を行うよう、映像データ2のための第2の割り当て時間を決定する。   In consideration of the above points, the encoder control unit 205 ensures that the video data 1 can be encoded at double speed and that the video data 1 is encoded at double speed. The second allocation time is appropriately determined. That is, the encoder control unit 205 secures the video data 2 so that the video data 2 is encoded using the idle time of the allocated time for processing the video data 1. The second allocation time of is determined.

本発明を適用することで、指定の記録速度でエンコードする符号化処理の時間を、その指定の記録速度での時間内に保証しつつ、非リアルタイム性の符号化処理をその空き時間で行うことができる。   By applying the present invention, non-real time encoding processing is performed in the idle time while guaranteeing the encoding processing time for encoding at a specified recording speed within the time at the specified recording speed. Can do.

次に、図10は、1本の映像データを、二つの異なるストリームに記録する例を示す図である。具体的には、映像データ(映像入力データ)が1080Iのフォーマットであり、かつ、出力するストリーム1をHigh profile @ level 4.1の1080Iのビットストリーム、ストリーム2をBaseline profile @ level 1.2、QVGAのビットストリームとした例である。   Next, FIG. 10 is a diagram illustrating an example in which one video data is recorded in two different streams. Specifically, the video data (video input data) is in a 1080I format, and the output stream 1 is a high profile @ level 4.1 1080I bit stream, the stream 2 is a Baseline profile @ level 1.2, QVGA bit stream It is an example.

まず、映像データを第1のフレームバッファ2011に映像入力制御部200が入力する。さらに、入力された映像データをQVGAのデータに、予め定められたリサイズ部(例えば映像入力制御部200)がリサイズした後に、リサイズがされた後のデータを第2のフレームバッファ2012に上記リサイズ部が入力するように制御される。これによれば、上記の説明と同様に、議論を進めることができる。入力映像データ情報として、以下の情報が、エンコーダ制御部205に入力される。なお、リサイズの処理は、例えば公知の技術による処理であってよい。   First, the video input control unit 200 inputs video data to the first frame buffer 2011. Further, after the input video data is resized to a QVGA data by a predetermined resize unit (for example, the video input control unit 200), the resized data is stored in the second frame buffer 2012 to the resize unit. Is controlled to input. According to this, discussion can be advanced similarly to said description. The following information is input to the encoder control unit 205 as input video data information. Note that the resizing process may be a process using a known technique, for example.

Figure 2010272993
Figure 2010272993

映像データ1のエンコード記録設定は、High profile@level4.1、1080Iであるのに対し、映像データ2のエンコード記録設定は、Baseline profile@level1.2、QVGAである。エンコーダ制御部205は、映像データ1が1080Iのストリームで、映像データ2がQVGA のストリームであり、かつ、両方の映像データの記録速度が1倍速記録であることを特定する。そして、エンコーダ制御部205は、この特定がされる一方で、映像データ1が1080Iのストリームで、映像データ2が480Iのストリームであることが特定されることから、(式1)より、mb(1)=8160,mb(2)=240、speed(1),speed(2)=1と特定する。   The encoding record setting of the video data 1 is High profile @ level 4.1 and 1080I, while the encoding recording setting of the video data 2 is Baseline profile @ level 1.2 and QVGA. The encoder control unit 205 specifies that the video data 1 is a 1080I stream, the video data 2 is a QVGA stream, and the recording speed of both video data is 1 × recording. Then, the encoder control unit 205 determines that the video data 1 is a 1080I stream and the video data 2 is a 480I stream, while mb ( Specify 1) = 8160, mb (2) = 240, speed (1), speed (2) = 1.

time(1)=frame_time×8160×1/(8160×1+240×1)=frame_time×0.97
time(2)=frame_time×240×1/(8160×1+240×1)=frame_time×0.03
time (1) = frame_time × 8160 × 1 / (8160 × 1 + 240 × 1) = frame_time × 0.97
time (2) = frame_time × 240 × 1 / (8160 × 1 + 240 × 1) = frame_time × 0.03

よって、1フレーム表示時間のうち、映像データ1の符号化処理の割り当て時間(第1の割り当て時間)を1.9(およそ0.97×2)フィールド時間、映像データ2の符号化処理割り当て時間(第2の割り当て時間)を0.1(およそ0.03×2)フィールド時間とする。後は、前記同様の制御をエンコーダ制御部205が行うことで、適切なエンコード処理を実現することができる。   Therefore, of the display time of one frame, the allocation time (first allocation time) of the video data 1 is 1.9 (approximately 0.97 × 2) field time, and the encoding processing allocation time of the video data 2 (second time) (Allocation time) is 0.1 (approximately 0.03 × 2) field time. Thereafter, the encoder control unit 205 performs the same control as described above, thereby realizing an appropriate encoding process.

なお、本発明の実施の形態の本体、および変形例では、二つの映像データの入力例を示した。一方で、入力できる映像データの個数は、エンコード部202の符号化処理性能、入力映像データの解像度、入力映像データのリアルタイム性能によって決定される上限の個数以下の個数であれば、2個以上であってもよい。   In the main body and the modification of the embodiment of the present invention, two video data input examples are shown. On the other hand, the number of video data that can be input is two or more if the number is equal to or less than the upper limit determined by the encoding processing performance of the encoding unit 202, the resolution of the input video data, and the real-time performance of the input video data. There may be.

このように、入力映像データの個数を増やす場合は、フレームバッファ201およびストリームバッファ203、エンコードバッファ204、入力スイッチ2021等のそれぞれの端子数を系統分、つまり入力映像データの個数分だけ追加すればよい。   As described above, when the number of input video data is increased, the number of terminals of the frame buffer 201, the stream buffer 203, the encode buffer 204, the input switch 2021, etc. is added by the number of lines, that is, the number of input video data. Good.

なお、本発明の実施の形態の本体、変形例では、H.264(H.264/AVC)符号化されたストリームをエンコード部202が出力するとしたが、これに限るものではない。出力されるストリームは、階層符号化されたストリームであってもよいし、また、単に、符号化されたストリームであればよい。   In the main body and modification of the embodiment of the present invention, the encoding unit 202 outputs the H.264 (H.264 / AVC) encoded stream, but the present invention is not limited to this. The output stream may be a hierarchically encoded stream, or simply an encoded stream.

なお、本発明の実施の形態の本体、変形例では、(式1)を用いて割り当て時間を計算したが、考慮するパラメータに応じて、(式1)は変更して使用することができる。   In the main body and the modification of the embodiment of the present invention, the allocation time is calculated using (Equation 1), but (Equation 1) can be changed and used according to the parameters to be considered.

つまり、図2により、映像記録装置1が示される。   That is, FIG. 2 shows the video recording apparatus 1.

映像記録装置1は、映像入力制御部200と、エンコード部202と、エンコーダ制御部205とを備える。   The video recording apparatus 1 includes a video input control unit 200, an encoding unit 202, and an encoder control unit 205.

映像入力制御部200は、第1の映像データ(映像データ1)と、第2の映像データ(映像データ2)とを特定する。映像入力制御部200は、第1のフレームバッファ2011に映像データを格納することで、第1のフレームバッファ2011に格納された映像データを第1の映像データと特定する。また、映像入力制御部200は、第2のフレームバッファ2012に映像データを格納することで、第2のフレームバッファ2012に格納された映像データを第2の映像データと特定する。   The video input control unit 200 identifies first video data (video data 1) and second video data (video data 2). The video input control unit 200 stores the video data in the first frame buffer 2011, thereby identifying the video data stored in the first frame buffer 2011 as the first video data. Further, the video input control unit 200 stores the video data in the second frame buffer 2012, thereby identifying the video data stored in the second frame buffer 2012 as the second video data.

エンコード部202は、入力スイッチ2021と、エンコード処理部2022と、出力スイッチ2023とを備える。   The encoding unit 202 includes an input switch 2021, an encoding processing unit 2022, and an output switch 2023.

入力スイッチ2021は、後で詳しく説明されるエンコーダ制御部205によって出力されるスイッチ切替信号を取得して、取得されるスイッチ切替信号を当該入力スイッチ2021に入力する。スイッチ切替信号は、エンコード処理部2022により符号化が行われる映像データ(対象映像データ)を、第1の映像データと第2の映像データのうちの一方から、他方に変更させるタイミングを特定する信号である。スイッチ切替信号は、例えば、そのスイッチ切替信号が出力されるタイミングを、その変更のタイミングとして特定する。スイッチ切替信号は、時刻が、スイッチ切替信号が特定するタイミングよりも前であるか後であるかに応じて、前であれば、その変更の前の映像データ(例えば映像データ1)を対象映像データ(上述)として特定する。一方、スイッチ切替信号は、後であれば、その変更の後の映像データ(映像データ2)を対象映像データとして特定する。入力スイッチ2021は、第1の映像データおよび第2の映像データのうちで、対象映像データたる映像データをエンコード処理部2022に入力する。   The input switch 2021 acquires a switch switching signal output by the encoder control unit 205 described in detail later, and inputs the acquired switch switching signal to the input switch 2021. The switch switching signal is a signal that specifies timing for changing the video data (target video data) encoded by the encoding processing unit 2022 from one of the first video data and the second video data to the other. It is. The switch switching signal specifies, for example, the timing at which the switch switching signal is output as the timing of the change. Depending on whether the switch switching signal is before or after the timing specified by the switch switching signal, if the time is before, the video data before the change (for example, video data 1) is the target video. Specify as data (above). On the other hand, if the switch switching signal is later, the changed video data (video data 2) is specified as the target video data. The input switch 2021 inputs video data as target video data, out of the first video data and the second video data, to the encoding processing unit 2022.

エンコード処理部2022は、入力スイッチ2021により当該エンコード処理部2022に入力される映像データ(対象映像データ)を符号化する。そして、エンコード処理部2022は、この符号化をした後の符号化後データを出力する。   The encoding processing unit 2022 encodes video data (target video data) input to the encoding processing unit 2022 by the input switch 2021. Then, the encoding processing unit 2022 outputs the encoded data after this encoding.

出力スイッチ2023は、エンコーダ制御部205によって出力される、入力スイッチ2021に入力されるスイッチ切替信号と同じスイッチ切替信号を、当該出力スイッチ2023に入力する。出力スイッチ2023は、エンコード処理部2022が出力する符号化後データをエンコード部202が外部に出力するのに際して、対象映像データが符号化された符号化後のデータとしてその出力を行わせる。具体的には、出力スイッチ2023は、対象映像データが映像データ1である場合には、出力される符号化後のデータを、第1のストリームバッファ2031に格納させる。また、出力スイッチ2023は、対象映像データが映像データ2である場合には、出力される符号化後のデータを、第2のストリームバッファ2032に格納させる。こうして、出力スイッチ2023は、対象映像データに対応する方のストリームバッファに映像データを格納させることで、その映像データを、対象映像データが符号化された符号化後のデータとして出力させる。   The output switch 2023 inputs the same switch switching signal output from the encoder control unit 205 as the switch switching signal input to the input switch 2021 to the output switch 2023. The output switch 2023 causes the encoded data output by the encoding processing unit 2022 to be output as encoded data obtained by encoding the target video data when the encoded unit 202 outputs the encoded data to the outside. Specifically, when the target video data is video data 1, the output switch 2023 stores the output encoded data in the first stream buffer 2031. Further, when the target video data is the video data 2, the output switch 2023 stores the output encoded data in the second stream buffer 2032. Thus, the output switch 2023 stores the video data in the stream buffer corresponding to the target video data, and outputs the video data as encoded data obtained by encoding the target video data.

エンコーダ制御部205は、スイッチ切替信号を出力する。出力されるスイッチ切替信号は、入力スイッチ2021および出力スイッチ2023にそれぞれ入力される。エンコーダ制御部205は、スイッチ切替信号を出力することで、第1の映像データおよび第2の映像データの一方から他方へと、エンコード部202により処理される映像データを変更させる。そして、エンコーダ制御部205は、この変更をさせる制御を繰り返すことにより、第1の映像データの処理と第2の映像データの処理とをエンコード部202に並行に(時分割処理で)行わせる。   The encoder control unit 205 outputs a switch switching signal. The output switch switching signal is input to the input switch 2021 and the output switch 2023, respectively. The encoder control unit 205 outputs the switch switching signal to change the video data processed by the encoding unit 202 from one of the first video data and the second video data to the other. Then, the encoder control unit 205 causes the encoding unit 202 to perform the processing of the first video data and the processing of the second video data in parallel (by time division processing) by repeating the control for making this change.

図3により、映像記録装置1の処理が示される。   FIG. 3 shows the processing of the video recording apparatus 1.

図3の横軸は、時間を示す。時刻T01〜時刻T02の時間、時刻T02〜時刻T03の時間などは、何れも、第1の映像データと第2の映像データとのうちの1つ映像データの符号化処理を継続的にエンコード部202にエンコーダ制御部205が行わせる割り当て時間である。割り当て時間は、具体的には、例えば、その割り当て時間で処理される映像データの1フレームの処理にエンコード部202が要する時間以上の長さの時間である。例えば、エンコード部202は、1フィールド時間(図3の最上段を参照)のうちに、インターレース信号の1フレームを構成する2つのフィールドの処理を行う。このため、図3の例では、割り当て時間は、図3の最上段に示されるように、1フィールド時間の長さと同じ長さの時間である。   The horizontal axis in FIG. 3 indicates time. As for the time from time T01 to time T02, the time from time T02 to time T03, etc., the encoding unit continuously encodes one video data of the first video data and the second video data. This is the allocated time that the encoder control unit 205 performs in 202. Specifically, the allocation time is, for example, a time longer than the time required for the encoding unit 202 to process one frame of video data processed in the allocation time. For example, the encoding unit 202 performs processing of two fields constituting one frame of an interlace signal within one field time (see the uppermost stage in FIG. 3). For this reason, in the example of FIG. 3, the allocation time is a time having the same length as the length of one field time, as shown in the uppermost stage of FIG.

図3の最下段の「スイッチ切替信号出力タイミング」の欄における上向きの矢印線は、エンコーダ制御部205がスイッチ切替信号を出力するタイミングを示す。   An upward arrow line in the “switch switching signal output timing” column at the bottom of FIG. 3 indicates a timing at which the encoder control unit 205 outputs a switch switching signal.

図3の下から2段目の欄のグラフは、入力スイッチ2021等の各スイッチの動作を示す。グラフが高い値をとる時間の間においては、対象映像データが第1の映像データであり、入力スイッチ2021が第1の映像データをエンコード処理部2022に入力する。また、グラフが低い値をとる時間の間は、対象映像データが第2の映像データであり、入力スイッチ2021が第2の映像データをエンコード処理部2022に入力する。つまり、グラフが高い値をとる時間の間は、エンコード部202が第1の映像データの処理をする。また、グラフが低い値をとる時間の間は、エンコード部202が第2の映像データの処理をする。   The graph in the second column from the bottom of FIG. 3 shows the operation of each switch such as the input switch 2021. During the time when the graph takes a high value, the target video data is the first video data, and the input switch 2021 inputs the first video data to the encoding processing unit 2022. During the time when the graph takes a low value, the target video data is the second video data, and the input switch 2021 inputs the second video data to the encoding processing unit 2022. That is, during the time when the graph takes a high value, the encoding unit 202 processes the first video data. During the time when the graph takes a low value, the encoding unit 202 processes the second video data.

図3の下から3段目の欄は、ピッチの広いハッチングの各領域により、第1の映像データが処理される各第1の実施時間が示される。また、ピッチの狭いハッチングの各領域により、第2の映像データが処理される各第2の実施時間が示される。   The third column from the bottom of FIG. 3 shows each first implementation time in which the first video data is processed by each hatched area having a wide pitch. Also, each second implementation time during which the second video data is processed is indicated by each hatched area with a narrow pitch.

実施時間は、その実施時間を含む割り当て時間(例えば時刻T01〜時刻T02)のうちの一部又は全部を占める。   The implementation time occupies a part or all of the allocated time including the implementation time (for example, time T01 to time T02).

割り当て時間は、その割り当て時間の開始の時刻にスイッチ切替信号が出力されると共に、そのスイッチ切替信号の次のスイッチ切替信号が、その割り当て時間の終了の時刻に出力される時間である。そして、割り当て時間は、第1の映像データと、第2の映像データとのうちで、その割り当て時間に対応する映像データが、その割り当て時間のうちに処理される時間である。   The allocation time is a time at which the switch switching signal is output at the start time of the allocation time and the switch switching signal next to the switch switching signal is output at the end time of the allocation time. The allocation time is a time during which the video data corresponding to the allocation time is processed during the allocation time among the first video data and the second video data.

なお、これらの事項については、図4等においても同様である。   These matters are the same in FIG. 4 and the like.

図11により、映像記録装置1のフローチャートが示される。   FIG. 11 shows a flowchart of the video recording apparatus 1.

ステップS1では、エンコード処理部2022が、入力スイッチ2021により入力される対象映像データを符号化し、符号化された符号化後のデータを、出力スイッチ2023を介して出力する。   In step S 1, the encoding processing unit 2022 encodes the target video data input by the input switch 2021, and outputs the encoded data after encoding through the output switch 2023.

ステップS2では、エンコーダ制御部205が、対象映像データを変更させるか否かを判定する。そして、エンコーダ制御部205は、終了させないとの判定をした場合(ステップS2:NO)、続けて、現在の対象映像データの符号化の処理を映像記録装置1に行わせる(ステップS1)。   In step S2, the encoder control unit 205 determines whether or not to change the target video data. If the encoder control unit 205 determines not to end the process (step S2: NO), the encoder control unit 205 subsequently causes the video recording apparatus 1 to perform the process of encoding the current target video data (step S1).

ステップS3では、終了させるとの判定がステップS2でされた場合に(ステップS2:YES)、エンコーダ制御部205が、現在の対象映像データの次に処理される次の対象映像データの処理の全てが映像記録装置1によって完了されたか否かを判定する。なお、次の映像データの処理が終了したと判定される場合(ステップS3:NO)、映像記録装置1は、例えば、図11の処理を終了してもよい。   In step S3, when it is determined in step S2 that the process is to be ended (step S2: YES), the encoder control unit 205 performs all the processing of the next target video data to be processed next to the current target video data. Is determined by the video recording apparatus 1. If it is determined that the processing of the next video data has been completed (step S3: NO), the video recording apparatus 1 may end the processing of FIG. 11, for example.

ステップS4では、次の映像データの処理が終了していないとステップS3で判定される場合に(ステップS3:YES)、エンコーダ制御部205が、スイッチ切替信号を出力する。エンコーダ制御部205は、この出力をすることにより、続くステップS1の処理において、次の映像データの処理をエンコード部202に行わせる。   In step S4, when it is determined in step S3 that the processing of the next video data has not been completed (step S3: YES), the encoder control unit 205 outputs a switch switching signal. By performing this output, the encoder control unit 205 causes the encoding unit 202 to process the next video data in the subsequent step S1.

なお、ステップS2の判定は、終了させるとの判定がされる場合に(ステップS2:YES)、スイッチ切替信号が出力され、終了させないとの判定がされる場合には(ステップS2:NO)、スイッチ切替信号が出力されない判定である。つまり、ステップS2の判定では、スイッチ切替信号を出力するか否かがエンコーダ制御部205により判定される。   Note that the determination in step S2 is performed when it is determined to end (step S2: YES), and a switch switching signal is output, and it is determined that the process is not ended (step S2: NO). This is a determination that the switch switching signal is not output. That is, in the determination in step S2, the encoder control unit 205 determines whether or not to output a switch switching signal.

このような図11の処理により、映像記録装置1は、次の処理を行う。   The video recording apparatus 1 performs the following process by the process of FIG.

第1のステップS1では、エンコード処理部2022が、第1の映像データの符号化処理を行う(例えば図3の時刻T03〜T04)。   In the first step S1, the encoding processing unit 2022 performs encoding processing of the first video data (for example, times T03 to T04 in FIG. 3).

次に、第1のステップS4では、エンコーダ制御部205が、第1のステップS1における符号化処理が終了した後に、対象映像データを、第2の映像データに変更させる(時刻T04)。   Next, in the first step S4, the encoder control unit 205 changes the target video data to the second video data after the encoding process in the first step S1 is completed (time T04).

次に、第2のステップS1では、エンコード処理部2022が、第1のステップS4で変更された変更後の対象映像データ(第2の映像データ)の符号化処理を行う(時刻T04〜時刻T05)。   Next, in the second step S1, the encoding processing unit 2022 performs an encoding process on the target video data after the change (second video data) changed in the first step S4 (time T04 to time T05). ).

次に、第2のステップS4では、エンコーダ制御部205が、第2のステップS1における符号化処理が終了した後に、対象映像データを、さらに次の映像データ(第1の映像データ)に変更させる(時刻T06)。   Next, in the second step S4, the encoder control unit 205 changes the target video data to the next video data (first video data) after the encoding process in the second step S1 is completed. (Time T06).

次に、第3のステップS1では、エンコード処理部2022が、第2のステップS4で変更された変更後の対象映像データ(第1の映像データ)の符号化処理を行う(時刻T06〜時刻T07)。   Next, in the third step S1, the encoding processing unit 2022 performs an encoding process on the target video data after the change (first video data) changed in the second step S4 (time T06 to time T07). ).

このような処理が繰り返されることにより、第1の映像データの処理と、第2の映像データの処理とが並行に(時分割処理により)行われる。   By repeating such processing, the processing of the first video data and the processing of the second video data are performed in parallel (by time division processing).

このようにして、符号化処理部(エンコード処理部2022)が、映像データの符号化処理を行う。また、エンコーダ制御部(エンコーダ制御部205)が、第1の映像データについての予め定められた割り当て時間(例えば図3の時刻T03〜時刻T04)以外の他の時間(時刻T04〜時刻T05、時刻T02〜時刻T03など)に、第1の映像データとは異なる第2の映像データの符号化処理を前記符号化処理部に行わせる。ここで、当該割り当て時間では、前記第1の映像データの符号化処理を前記符号化処理部に行わせる。このような映像記録装置が構成される。   In this way, the encoding processing unit (encoding processing unit 2022) performs encoding processing of video data. Also, the encoder control unit (encoder control unit 205) performs a time other than a predetermined allocation time (for example, time T03 to time T04 in FIG. 3) for the first video data (time T04 to time T05, time). (T02 to time T03, etc.), the encoding processing unit performs encoding processing of second video data different from the first video data. Here, in the allocation time, the encoding processing unit performs the encoding process of the first video data. Such a video recording apparatus is configured.

なお、以上のように説明された各技術事項は、それぞれ、その技術事項が記載された箇所以外の他の箇所に記載された他の技術事項と、発明の趣旨を逸脱しない範囲で、適宜組み合わせられてよい。   In addition, each technical matter explained as described above is appropriately combined with other technical matters described in other places other than the place where the technical matters are described without departing from the spirit of the invention. May be.

以上のように、本発明の映像記録方法および映像記録装置は、あらゆる映像を光ディスクや半導体メモリ、ハードディスク等に圧縮して、記録する映像記録装置に有効である。   As described above, the video recording method and video recording apparatus of the present invention are effective for video recording apparatuses that compress and record any video on an optical disk, semiconductor memory, hard disk, or the like.

200 映像入力制御部
201 フレームバッファ
202 エンコード部
203 ストリームバッファ
204 エンコードバッファ
205 エンコーダ制御部
206 クロック
207 第1の映像入力制御部
208 第2の映像入力制御部
209 記録媒体
2011 第1のフレームバッファ
2012 第2のフレームバッファ
2021 入力スイッチ
2022 エンコード処理部
2023 出力スイッチ
2024 中間スイッチ
2031 第1のストリームバッファ
2032 第2のストリームバッファ
2041 第1のエンコードバッファ
2042 第2のエンコードバッファ
200 Video Input Control Unit 201 Frame Buffer 202 Encoding Unit 203 Stream Buffer 204 Encoding Buffer 205 Encoder Control Unit 206 Clock 207 First Video Input Control Unit 208 Second Video Input Control Unit 209 Recording Medium 2011 First Frame Buffer 2012 First 2 frame buffer 2021 input switch 2022 encoding processing unit 2023 output switch 2024 intermediate switch 2031 first stream buffer 2032 second stream buffer 2041 first encode buffer 2042 second encode buffer

Claims (16)

複数の映像データが入力される映像入力部と、
前記映像入力部から入力される複数の前記映像データの各々を格納するフレームバッファと、
映像データを符号化処理する符号化処理部と、
前記フレームバッファに格納された複数の前記映像データのうちで、どの映像データを前記符号化処理部が符号化処理するかを制御するエンコーダ制御部とを備え、
前記エンコーダ制御部は、複数の前記映像データの各々の符号化処理に与える割り当て時間を決定し、前記割り当て時間が経過すると、当該割り当て時間の符号化処理の映像データの次に前記符号化処理部が符号化処理する映像データに、前記符号化処理部により符号化される対象映像データを切り替える映像記録装置。
A video input unit for inputting a plurality of video data;
A frame buffer for storing each of the plurality of video data input from the video input unit;
An encoding processing unit for encoding video data;
An encoder control unit that controls which video data is encoded by the encoding processing unit among the plurality of video data stored in the frame buffer;
The encoder control unit determines an allocation time to be given to each encoding process of the plurality of video data, and when the allocation time elapses, the encoding processing unit follows the video data of the encoding process of the allocation time A video recording apparatus that switches the target video data encoded by the encoding processing unit to the video data to be encoded.
前記エンコーダ制御部は、映像データの第1の所定単位の符号化処理に与える割り当て時間を切り替える請求項1記載の映像記録装置。   The video recording apparatus according to claim 1, wherein the encoder control unit switches an allocation time given to encoding processing of a first predetermined unit of video data. 前記エンコーダ制御部は、符号化対象の映像データの各々の解像度情報を、入力映像データ情報として入力し、入力される前記解像度情報を用いて、その解像度情報の映像データの前記割り当て時間を切り替える請求項2記載の映像記録装置。   The encoder control unit inputs resolution information of each video data to be encoded as input video data information, and switches the allocation time of the video data of the resolution information using the input resolution information. Item 2. The video recording apparatus according to Item 2. 前記エンコーダ制御部は、映像データをリアルタイムに符号化すべきか、非リアルタイムで符号化すべきかを、入力映像データ情報として入力し、入力される映像データ情報を用いて、当該映像データの前記割り当て時間を切り替える請求項2記載の映像記録装置。   The encoder control unit inputs, as input video data information, whether video data should be encoded in real time or non-real time, and uses the input video data information to assign the allocation time of the video data The video recording apparatus according to claim 2, wherein the video recording device is switched. 前記エンコーダ制御部は、前記割り当て時間が経過すると、その経過の時までに前記符号化処理が完了しているべき、前記映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了している場合は、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切り替え信号を出力する請求項1記載の映像記録装置。   When the allocated time elapses, the encoder control unit performs an encoding process of a first predetermined unit in the video data, which should have been completed by the time the elapsed time, 2. The switching signal for switching the target video data to the next video data to be encoded by the encoding processing unit next to the video data of the allocation time when the video data has been completed. Video recording device. 前記エンコーダ制御部は、前記割り当て時間が経過する前に、当該割り当て時間が経過するまでに前記符号化処理部が符号化処理中を完了しているべき、前記映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了したことを確認すると、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切り替え信号を、前記経過の時よりも前に出力する請求項1記載の映像記録装置。   The encoder control unit is a first predetermined unit in the video data that the encoding processing unit should complete during the encoding process before the allocation time elapses before the allocation time elapses. When it is confirmed that the encoding processing unit has completed the encoding process, the target video data is switched to the next video data to be encoded by the encoding processing unit after the video data of the allocated time. The video recording apparatus according to claim 1, wherein the switching signal is output before the elapsed time. 前記エンコーダ制御部は、前記割り当て時間が経過すると、当該割り当て時間が経過するまでに前記符号化処理部が符号化処理中を完了しているべき、映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了していない場合は、前記符号化処理部が現在符号化処理中の、当該第1の所定単位に含まれる第2の所定単位の符号化処理の完了を待ってから、現在符号化処理中の前記映像データの符号化情報を符号化再開情報として予め定められた記憶領域に退避し、当該退避の後に、当該映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切替信号を出力する請求項1記載の映像記録装置。   When the allocation time has elapsed, the encoder control unit performs encoding processing of a first predetermined unit in video data that the encoding processing unit should have completed during the encoding process before the allocation time elapses When the encoding processing unit is not completed, the encoding processing unit waits for the completion of the encoding process of the second predetermined unit included in the first predetermined unit currently being encoded. Then, the encoding information of the video data currently being encoded is saved in a predetermined storage area as encoding restart information, and after the saving, the encoding processing unit encodes the video data next to the video data. The video recording apparatus according to claim 1, wherein a switching signal for switching the target video data to the next video data to be processed is output. 前記エンコーダ制御部は、前記割り当て時間が経過すると、当該経過までに前記符号化処理部が符号化処理を完了しているべき、映像データにおける第1の所定単位の符号化処理が完了していない場合は、当該割り当て時間のうちに既に前記符号化処理部が符号化処理を完了している、当該第1の所定単位に含まれる第2の処理単位の符号化情報を符号化再開情報として予め定められた記憶領域へ退避してから、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切り替え信号を出力する請求項1記載の映像記録装置。   When the allocated time has elapsed, the encoder control unit has not completed the first predetermined unit of encoding processing in video data that the encoding processing unit should have completed the encoding process by that time. In this case, the encoding information of the second processing unit included in the first predetermined unit, in which the encoding processing unit has already completed the encoding process within the allocated time, is preliminarily set as the encoding restart information. And a switching signal for switching the target video data to the next video data to be encoded by the encoding processing unit after the video data of the allocated time after saving to a predetermined storage area. Item 2. The video recording apparatus according to Item 1. 前記第2の所定単位は、1以上の当該第2の所定単位によって前記第1の所定単位を構成し、当該1以上の第2の所定単位のそれぞれが符号化処理されることにより、前記第1の所定単位が符号化処理される処理単位である請求項7記載の映像記録装置。   The second predetermined unit constitutes the first predetermined unit by one or more second predetermined units, and each of the one or more second predetermined units is encoded, whereby the first predetermined unit is encoded. 8. The video recording apparatus according to claim 7, wherein one predetermined unit is a processing unit to be encoded. 前記符号化処理部は、符号化処理する対象の映像データについての、当該符号化処理の直前の符号化処理において、当該映像データの第1の処理単位の符号化処理の全てが完了している場合は、当該映像データにおける当該第1の処理単位の次の第1の処理単位の符号化処理を開始し、前記直前の符号化処理において、前記第1の処理単位の符号化処理の全てが完了していない場合は、前記直前の符号化処理において当該符号化処理部が予め定められた記憶領域に退避した符号化再開情報を用いて、前記直前の符号化処理を再開する請求項1記載の映像記録装置。   The encoding processing unit completes all the encoding processing of the first processing unit of the video data in the encoding processing immediately before the encoding processing for the video data to be encoded. In this case, the encoding process of the first processing unit next to the first processing unit in the video data is started, and all the encoding processes of the first processing unit are performed in the immediately preceding encoding process. 2. The previous encoding process is restarted by using the encoding resumption information saved in a predetermined storage area by the encoding processing unit in the immediately preceding encoding process when not completed. Video recording device. 前記第1の所定単位は、M枚(M=1、2、3の自然数)のピクチャから構成される請求項2記載の映像記録装置。   The video recording apparatus according to claim 2, wherein the first predetermined unit is composed of M (M = 1, 2, 3 natural numbers) pictures. 前記第1の所定単位は、各々異なるM枚を選択できる請求項11記載の映像記録装置。   The video recording apparatus according to claim 11, wherein the first predetermined unit can select different M sheets. 前記エンコーダ制御部は、映像データが前記符号化処理部に入力されるタイミングを制御する予め定められた入力制御部に対して、当該タイミングを指示する請求項1記載の映像記録装置。   The video recording apparatus according to claim 1, wherein the encoder control unit instructs a predetermined input control unit that controls a timing at which video data is input to the encoding processing unit. 前記第2の所定単位は、符号化の最小単位である複数のマクロブロックから構成されるスライス、もしくは、符号化の最小単位であるマクロブロックである請求項9記載の映像記録装置。   The video recording apparatus according to claim 9, wherein the second predetermined unit is a slice composed of a plurality of macroblocks that are the minimum unit of encoding, or a macroblock that is the minimum unit of encoding. 前記エンコーダ制御部は、前記割り当て時間が経過すると、当該経過までに前記符号化処理部が符号化処理を完了しているべき、映像データにおける第1の所定単位の符号化処理が完了していない場合は、当該映像データ以外の他の映像データの前記符号化処理部による符号化処理の前記割り当て時間に含まれる時間を、割り当て時間が経過した前記映像データの割り当て時間に追加して、当該映像データの割り当て時間を延長する請求項1記載の映像記録装置。   When the allocated time has elapsed, the encoder control unit has not completed the first predetermined unit of encoding processing in video data that the encoding processing unit should have completed the encoding process by that time. In this case, the time included in the allocation time of the encoding process by the encoding processing unit of the video data other than the video data is added to the allocation time of the video data after the allocation time has elapsed, and the video 2. The video recording apparatus according to claim 1, wherein the data allocation time is extended. 前記符号化処理部は、符号化処理する対象の1つの映像データを、互いに異なる複数の記録設定で符号化し、複数のストリームデータを生成する請求項1記載の映像記録装置。   The video recording apparatus according to claim 1, wherein the encoding processing unit encodes one video data to be encoded with a plurality of different recording settings to generate a plurality of stream data.
JP2009121445A 2009-05-19 2009-05-19 Video recorder Pending JP2010272993A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2009121445A JP2010272993A (en) 2009-05-19 2009-05-19 Video recorder
PCT/JP2010/001176 WO2010134238A1 (en) 2009-05-19 2010-02-23 Video recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009121445A JP2010272993A (en) 2009-05-19 2009-05-19 Video recorder

Publications (1)

Publication Number Publication Date
JP2010272993A true JP2010272993A (en) 2010-12-02

Family

ID=43125932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009121445A Pending JP2010272993A (en) 2009-05-19 2009-05-19 Video recorder

Country Status (2)

Country Link
JP (1) JP2010272993A (en)
WO (1) WO2010134238A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014200038A (en) * 2013-03-29 2014-10-23 株式会社メガチップス Image processing apparatus
US9241164B2 (en) 2013-05-23 2016-01-19 Megachips Corporation Image processor that reduces processing load of a software processing unit
JP7304453B1 (en) 2022-03-03 2023-07-06 Nttエレクトロニクス株式会社 Encoding device, encoding method and encoding program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10276365A (en) * 1997-03-31 1998-10-13 Hitachi Ltd Video data compressor, video recording and reproducing device, and video data compression coding method
JP2001103465A (en) * 1999-09-29 2001-04-13 Toshiba Corp Image compression device
JPWO2006100820A1 (en) * 2005-03-22 2008-08-28 三菱電機株式会社 Image coding record reading device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014200038A (en) * 2013-03-29 2014-10-23 株式会社メガチップス Image processing apparatus
US9986243B2 (en) 2013-03-29 2018-05-29 Megachips Corporation Image processor
US9241164B2 (en) 2013-05-23 2016-01-19 Megachips Corporation Image processor that reduces processing load of a software processing unit
JP7304453B1 (en) 2022-03-03 2023-07-06 Nttエレクトロニクス株式会社 Encoding device, encoding method and encoding program

Also Published As

Publication number Publication date
WO2010134238A1 (en) 2010-11-25

Similar Documents

Publication Publication Date Title
US7653128B2 (en) Information processing apparatus and method, recording medium, and program
JP4664406B2 (en) Moving picture decoding apparatus, semiconductor device, video equipment, and moving picture decoding method
JP4519082B2 (en) Information processing method, moving image thumbnail display method, decoding device, and information processing device
JP4411310B2 (en) Information processing apparatus and program
CN101364403B (en) Image processing apparatus and method for controlling the same
JP2009044537A (en) Video stream processing device, its control method, program, and recording medium
EP1662794A1 (en) Video encoding device, video encoding control method, and video encoding control program
JP2009111932A (en) Moving image decoding device
WO2010134238A1 (en) Video recording device
US7751687B2 (en) Data processing apparatus, data processing method, data processing system, program, and storage medium
US7346112B2 (en) Method of and apparatus for decoding and displaying video that improves quality of the video
KR20130030219A (en) Video server and control method for video server
JP3308129B2 (en) Image signal decoding method and image signal decoding device
JP4197184B2 (en) Video decoding device, video playback device, video decoding method, and video playback method
JP4433319B2 (en) Signal reproduction device
JPH11239348A (en) Video/audio signal processing unit
JP2009100206A (en) Image coding and data-decoding device
US20140079139A1 (en) Moving image processing apparatus that processes a plurality of moving image data sets
JP2006311587A (en) Image decoding device
JP2002159011A (en) Image decoding device
JP2009124547A (en) Image processor, and image recording and reproducing device
JP2006246384A (en) Decoding program, decoding method, and decoder
JP2001103427A (en) Compressed image reproducing device and program recording medium
JP6490945B2 (en) Image processing device
US20060088295A1 (en) Reproduction apparatus, data processing system, reproduction method, program, and storage medium