WO2010134238A1 - 映像記録装置 - Google Patents

映像記録装置 Download PDF

Info

Publication number
WO2010134238A1
WO2010134238A1 PCT/JP2010/001176 JP2010001176W WO2010134238A1 WO 2010134238 A1 WO2010134238 A1 WO 2010134238A1 JP 2010001176 W JP2010001176 W JP 2010001176W WO 2010134238 A1 WO2010134238 A1 WO 2010134238A1
Authority
WO
WIPO (PCT)
Prior art keywords
video data
encoding
time
unit
video
Prior art date
Application number
PCT/JP2010/001176
Other languages
English (en)
French (fr)
Inventor
木下聡
帆足克己
Original Assignee
パナソニック株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by パナソニック株式会社 filed Critical パナソニック株式会社
Publication of WO2010134238A1 publication Critical patent/WO2010134238A1/ja

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

Definitions

  • the present invention relates to a video recording apparatus and video recording method for compressing and recording video data.
  • FIG. 1 is a block diagram of a conventional video recording apparatus 100x that records video data in the MPEG (Moving Picture Experts Group) encoding method.
  • MPEG Motion Picture Experts Group
  • 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.
  • 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.
  • the first video input control unit 104 is a block that receives broadcast data, decodes a video stream, generates video data, or takes in 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.
  • 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 by a single encoding unit and output.
  • the conventional video recording apparatus 100x requires N video recording apparatuses for encoding N video data.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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
  • 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.
  • a plurality of video data can be encoded, but N video recording apparatuses are not required and mixing of video data is not required. .
  • the circuit scale of the video recording apparatus can be reduced.
  • FIG. 1 is a block diagram of a conventional video recording apparatus.
  • FIG. 2 is a block diagram of the video recording apparatus.
  • FIG. 3 is a diagram for explaining the operation of the video recording apparatus.
  • FIG. 4 is a diagram for explaining the operation of the video recording apparatus.
  • FIG. 5 is a diagram for explaining the operation of the video recording apparatus.
  • FIG. 6 is a diagram for explaining the operation of the video recording apparatus.
  • FIG. 7 is a diagram for explaining the operation of the video recording apparatus.
  • FIG. 8 is a diagram for explaining the operation of the video recording apparatus.
  • FIG. 9 is a diagram for explaining the operation of the video recording apparatus.
  • FIG. 10 is a diagram for explaining the operation of the video recording apparatus.
  • FIG. 11 is a flowchart of the video recording apparatus.
  • the video recording apparatus of aspect A1 receives the video to an input destination (frame buffer 201) in which a plurality of video data (first video data, second video data) is predetermined.
  • a video input unit first video input control unit (non-recording medium) 207, video input control unit 200, etc.) input by the input unit and each of the plurality of video data input from the video input unit are stored.
  • a frame buffer (frame buffer 201), an encoding processing unit (encoding processing unit 2022) for encoding video data, and a plurality of video data stored in the frame buffer, which video data
  • An encoder control unit (encoder control unit 205) that controls whether the encoding processing unit performs the encoding process, and the encoder control unit includes a plurality of the video data
  • the allocation time (for example, the allocation time from time T01 to time T02 in FIG. 3) given to each encoding process is determined, and when the allocation time has elapsed, video data (for example, the first data) of the encoding process 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 the video data.
  • the encoder control unit obtains the video data (for example, video data in FIG. 3) from other video data other than the video data.
  • the target video data to be encoded by the encoding processor is changed.
  • the encoder control unit changes the target video data to another video data again.
  • the video data is encoded from the first change to the subsequent change (for example, between time T03 and time T04).
  • the encoder control unit repeats the change twice in this way, all the encoding processing of the video data is performed.
  • the encoder control unit performs all the encoding processing of the video data for each of the plurality of video data.
  • 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.
  • a plurality of video data can be encoded with a simple configuration in which only one encoding processing unit that performs only one video data encoding process at a time is provided.
  • 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 having a sufficiently small circuit scale can be realized.
  • 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.
  • a third party such as copyright information, encryption key information, personal information, or authentication information.
  • 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.
  • the video recording apparatus 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.
  • the encoder control unit inputs resolution information of video data to be encoded as input video data information (input video data information of the embodiment or a part thereof), and inputs The video recording apparatus of aspect A2 that uses the resolution information to switch the allocation time of the video data of the resolution information.
  • 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 switches the allocation time of the video data using the input video data information.
  • the encoding process should be completed by the time of the lapse of the first predetermined unit in the video data.
  • 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)
  • a switching signal for example, a time T02 switch switching signal in FIG. 3
  • 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). Confirms that the encoding processing unit has completed the encoding process of the first predetermined unit in the video data that should have completed the encoding process, the code next to the video data of the allocation time.
  • 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 elapsed time (time T02).
  • 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 have been encoded, the encoding processing unit After waiting for 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 current encoding process is in progress The video data encoding information 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 the previous information.
  • 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
  • the encoding information is used 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 (necessary in the encoding processing unit). ) Information.
  • the encoding restart information is the encoding information stored in the storage area.
  • the encoding processing unit 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.
  • 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.
  • 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.
  • the first processing unit of the video data is processed in the encoding process immediately before the encoding process for the video data to be encoded by the encoding processing unit.
  • 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. .
  • the video recording apparatus is the video recording apparatus according to aspect A11 in which the first predetermined unit is a unit that can select different M pieces of pictures as the M pieces of pictures constituting the first predetermined unit.
  • 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.
  • first video input control unit non-recording unit
  • This is a video recording apparatus of aspect A1 instructing the timing to the video input control unit 200) such as (medium) 207.
  • the second predetermined unit is a slice composed of a plurality of macroblocks that are the minimum unit of encoding, or the macroblock that is the minimum unit of encoding. It is a video recording device of aspect A9.
  • the encoding processing unit when the encoder control unit has passed the allocation 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 other video data other than the video data is completed. To time T11) (for example, the first half of the allocation time) is added to the allocation time of the video data after the allocation time has elapsed, and the video recording of aspect A1 in which the allocation time of the video data is extended Device.
  • time T10 for example, the first half of the allocation time
  • the encoding processing unit encodes one video data to be encoded with a plurality of different recording settings, and each stream data corresponds to the recording data. It is a video recording apparatus of aspect A1 which generates a plurality of stream data which is data encoded by setting (refer to explanation of FIG. 10).
  • the video recording apparatus of 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.
  • 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.
  • 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.
  • the allocated time for example, time T01 to time T02 in FIG. 4
  • video data other than the video data first video data
  • the recording apparatus has, for example, the length of the allocation time (for example, time T01 to time T03 in FIG. 5) 1 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.
  • the encoder control unit completes the video data encoding process performed at the initial allocation time (eg, times T09 to T10 in FIG. 6) at the initial allocation time. If not, the portion of the encoding process for the initial allocation time that has not been completed at the allocation time (time T11 to time T12) after the initial allocation time is transferred to the encoding processing unit. It may be performed (the first half of the times T11 to T12).
  • the encoder control unit performs the video data encoding process performed at the initial allocation time (for example, times T09 to T10 in FIG. 7) at the initial allocation time. Even if it is not, it is not necessary to cause the encoding processing unit to perform a portion that has not been completed at a later allocation time (time T11 to time T12).
  • the video recording apparatus does not complete the encoding process of the video data performed during the initial allocation time (for example, times T09 to T10 in FIG. 8) in the initial allocation time.
  • 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.
  • the encoder control unit when the encoder control unit completes the encoding process in the allocation time (time T02a in FIG. 9), the remaining time after the completion of the allocation time Time (time T02a to time T03) is specified as the other time other than the assigned time, and the encoding process of the second video data is performed on the encoding processing unit at the specified other time. You may let them. 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).
  • 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.
  • the video recording device of aspect B1 is a video recording device that solves the following problems. 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.
  • the video recording device video encoding device
  • 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.
  • an allocation time is determined as follows. That is, using the input video data information of each of the plurality of input video data to be encoded, the setting of the input control unit, and the user setting, encoding of each of the plurality of input video data to be encoded Determine the allotted time available for processing. When this allocation time has elapsed, the input video data (target video data) to be encoded is switched to the next input video data.
  • 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.
  • the input video data to be encoded is switched at the next time. That is, when the encoding process of all macroblocks in a slice composed of a plurality of macroblocks is completed or the macroblock process during the interruption process is completed, the encoding process is interrupted and the encoding process is performed. The target input video data 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.
  • processing time can be independently guaranteed.
  • 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.
  • 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.
  • the allocation time for other real-time encoding processing may be calculated by setting the allocation time for non-real-time encoding processing to zero.
  • the encoding process 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.
  • 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.
  • FIG. 2 is a diagram illustrating a block configuration of a main body and a modification example of the embodiment.
  • 3 to 10 are diagrams for explaining the operation of the main body and the modification of the embodiment.
  • the main body of the embodiment and the video recording apparatus 1 in the modification include a video input control unit 200, a frame buffer 201, an encoding unit 202, a stream buffer 203, an encoding buffer 204, 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.
  • the video recording apparatus 1 is an information processing apparatus that performs information processing.
  • the information processing apparatus may be, for example, an integrated circuit including an arithmetic element and a storage element.
  • Each part shown in FIG. 2 such as the video input control unit 200 may be a circuit included in the information processing apparatus.
  • the information processing apparatus may include a computer having a CPU, a RAM, a ROM, and the like, and some or all of the plurality of parts illustrated in FIG. 2 are realized by the computer executing a program. It may be a functional block of a function.
  • the video recording apparatus 1 inputs two video data, that is, video data 1 (first video data) and video data 2 (second video data) to the video recording apparatus 1. It shall be. 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). .
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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).
  • 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. For this reason, the stream buffer 203 has two stream buffers, a first stream buffer 2031 and a second stream buffer 2032. The first stream buffer 2031 temporarily stores the encoding result of the video data 1, and the second stream buffer 2032 temporarily stores the encoding result of the video data 2. These stored encoding results are finally stored in the recording medium 209, respectively.
  • Encoder control unit 205 acquires information from clock 206, user settings, video input control unit 200, and encoding unit 202, respectively.
  • storage part is a memory
  • 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.
  • the encoder control unit 205 acquires encoding recording setting, switching frame number setting (recording speed), and processing setting information at the time of interruption of encoding from user settings.
  • 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.
  • the encoder control unit 205 acquires an encoder processing completion signal and encoding interruption information from the encoding unit 202.
  • the encoder control unit 205 uses the acquired information as input data to determine processing time allocation and processing switching.
  • the encoder control unit 205 outputs the encoding start signal, the encoding interruption signal, the encoding resumption signal, the processing setting information at the time of encoding interruption, the information at the time of resuming the encoding, and the switch switching signal by performing these processes such as allocation.
  • the encoder control unit 205 controls (the operation of) the encoding unit 202 by performing these outputs.
  • 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.
  • 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.
  • 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.
  • 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 changes the target video data after the output. And the other video data after.
  • the first video input control unit (non-recording medium) 207 is a block that handles video data without using a recording medium.
  • 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.
  • 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.
  • 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.
  • the video input control unit 200 notifies the encoding processing unit 2022 of video input timing information (not shown).
  • the encoder control unit 205 may acquire video input timing information from the video input control unit 200 and notify the encoding processing unit 2022 of the acquired video input timing information.
  • the encoding processing unit 2022 notifies the video input control unit 200 of video input timing information. Note that the encoder control unit 205 may acquire video input timing information from the encoding processing unit 2022 and notify the video input control unit 200 of the acquired video input timing information.
  • the video input control unit 200 ends the processing that should be completed by the time of the video input timing information by the encoding processing unit 2022 by that time.
  • the video input timing information to be output is output to the encoding processing unit 2022.
  • 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.
  • 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.
  • the appropriate data is data used by the encoding processing unit 2022 in the next process of the process.
  • 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.
  • the encoding unit 202 encodes one frame of each stream for two input streams basically at the display time of one frame.
  • 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).
  • 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.
  • the length of the allocation time is equal to the length of time for which the encoding unit 202 processes one frame.
  • the video input data (video data 1, video data 2) is 1080I and 480I
  • the output stream 1 is a bit stream of a 1080I interlace signal of High profile @ level 4.1
  • the output stream 2 is This is an example of a bit stream of a 480I interlace signal of High profile @ level 4.1.
  • the encoder control unit 205 inputs the following information as input video data information to the encoder control unit 205.
  • 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.
  • the encoding process is switched for each allocation time (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.
  • FIG. 3 is a diagram illustrating processing of the video recording apparatus 1 in an example in which a switch switching signal is output at every allocated time.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • the number of switching sheets may be 2 frames, and the output timing of the switch switching signal may be 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • control (Y1) First, the case of control (Y1) will be described.
  • 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).
  • time T02a, time T04a,... Time T14a are also illustrated.
  • the encoder control unit 205 If the encoding process before the switching is not completed, the encoder control unit 205 outputs the processing setting information and the encoding interruption signal when the encoding is interrupted 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.
  • 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 an encoding restart signal to the encoding unit 202 together with the encoding restart time information instead of the encoding start signal.
  • the encoding unit 202 Since the switching frame number setting is 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.
  • H.264 H.264 / AVC
  • 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.
  • 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).
  • the encoding unit 202 when the encoding unit 202 interrupts the encoding process, it outputs information at the time of encoding interruption such as resume position information.
  • 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.
  • the encoder control unit 205 outputs a switch switching signal when receiving the encoding interruption information (described above) from the encoding unit 202 (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).
  • the encoder control unit 205 outputs a switch switching signal again.
  • 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).
  • the encoding unit 202 resumes the encoding process of the interrupted image 4 of the video data 1 (from time T11).
  • 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).
  • the storage area is, for example, a part of the encoding unit 202.
  • FIG. 7 is a diagram showing processing of the video recording apparatus 1 in an example where the remaining processing is not performed.
  • 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.
  • the encoder control unit 205 can determine that the encoding process has not been completed because 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.
  • the encoding unit 202 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.
  • the encoding unit 202 In the case of forced termination, the encoding unit 202 outputs an encoding process completion signal to the encoder control unit 205.
  • Encoder control unit 205 upon receiving an encoding process completion signal from encoding unit 202, outputs a switch switching signal to 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.
  • the encoder control unit 205 outputs a switch switching signal when the encoding allocation time of the video data 2 has elapsed (time T11).
  • 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.
  • 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).
  • the processing of the image 4 of the video data 1 interrupted at the time T10a 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.
  • 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).
  • FIG. 8 is a diagram showing processing of the video recording apparatus 1 when the allocated time is extended.
  • 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.
  • 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.
  • 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.
  • the encoder control unit 205 outputs an encoding process completion signal to the encoding unit 202 as in the normal completion.
  • the encoding unit 202 has processing performance capable of processing one frame in two frame display time with respect to 1080I.
  • the video data (video input data) is 1080I and 480I data
  • the output stream 1 is a bit stream of a 1080I interlaced signal of High profile@level4.1
  • the output stream 2 is High profile @ level4. This is an example of a bit stream of 1 480I interlace signal.
  • the encoder control unit 205 inputs the following information as input video data information to the encoder control unit 205.
  • 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).
  • the actual processing time of time (2) is as follows. That is, the second allocation time after the change that has been changed so as to include the above-described free time is as follows.
  • frame_time encoding processing time for 2 frames of video data 1 Since the video input timing information (setting) is the encoder control unit 205, when the encoding processing of video data 1 (even frames thereof) is completed (time T02), The encoder control unit 205 further instructs the video input control unit 200 to transfer video data. As a result, the video input control unit 200 performs video input according to the double speed encoding process (time T02 to time T02a).
  • the video input timing information (setting thereof) is the encoder control unit 205
  • the encoder control unit 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. For this reason, after the above completion, 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.
  • the video input timing information (setting) is the encoder control unit 205.
  • 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 processing 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.
  • the video input control unit 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.
  • the encoder control unit 205 can encode the video data 1 at the double speed and ensure that the video data 1 is encoded at the double speed.
  • the second allocation time for is appropriately determined. That is, the encoder control unit 205 secures the processing time of the video data 1 while performing the encoding processing of the video data 2 using the free time of the allocation time of the processing of the video data 1.
  • a second allocation time for video data 2 is determined.
  • non-real-time encoding processing is performed in the idle time while guaranteeing the encoding processing time for encoding at the specified recording speed within the time at the specified recording speed. Can do.
  • FIG. 10 is a diagram showing an example of recording one video data in two different streams.
  • the video data (video input data) is in the format of 1080I
  • the output stream 1 is a 1080 bitstream of High profile1080 @ level 4.1
  • the stream 2 is Baseline profile @ level 1.2
  • the QVGA bitstream It is an example.
  • 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.
  • the encoding record setting for video data 1 is High profile@level4.1, 1080I, while the encoding record setting for video data 2 is Baseline profile@level1.2, QVGA.
  • 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.
  • 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.
  • the encoding unit 202 outputs a stream encoded in H.264 (H.264 / AVC), but the present invention is not limited to this.
  • the output stream may be a hierarchically encoded stream, or simply an encoded stream.
  • the allocation time is calculated using (Equation 1), but (Equation 1) can be changed and used according to the parameters to be considered.
  • the video recording device 1 is shown in FIG.
  • the video recording apparatus 1 includes a video input control unit 200, an encoding unit 202, and an encoder control unit 205.
  • 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.
  • the encoding unit 202 includes an input switch 2021, an encoding processing unit 2022, and an output switch 2023.
  • 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.
  • the video data before the change (for example, video data 1) is the target video. Specify as data (above).
  • 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.
  • 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.
  • the output switch 2023 inputs, to the output switch 2023, the same switch switching signal output from the encoder control unit 205 as the switch switching signal input to the input switch 2021.
  • 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.
  • the target video data is video data 1
  • the output switch 2023 stores the output encoded data in the first stream buffer 2031.
  • the output switch 2023 stores the output encoded data in the second stream buffer 2032.
  • 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.
  • 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 target 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.
  • FIG. 3 shows the processing of the video recording apparatus 1.
  • the horizontal axis in Fig. 3 indicates time.
  • the encoding unit continuously performs the encoding process of 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.
  • 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.
  • 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).
  • 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.
  • the upward arrow line in the “switch switching signal output timing” column at the bottom of FIG. 3 indicates the timing at which the encoder control unit 205 outputs the switch switching signal.
  • the graph in the second column from the bottom of FIG. 3 shows the operation of each switch such as the input switch 2021.
  • the target video data is the first video data
  • the input switch 2021 inputs the first video data to the encoding processing unit 2022.
  • the target video data is the second video data
  • 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.
  • the encoding unit 202 processes the second video data.
  • 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.
  • the implementation time occupies a part or all of the allocated time including the implementation time (for example, time T01 to time T02).
  • the allocation time is a time at which the switch switching signal is output at the start time of the allocation time and the next switch switching signal of 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 among the first video data and the second video data is processed within the allocation time.
  • FIG. 11 shows a flowchart of the video recording apparatus 1.
  • step S1 the encoding processing unit 2022 encodes the target video data input by the input switch 2021, and outputs the encoded data after the output via the output switch 2023.
  • 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).
  • 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.
  • 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.
  • step S2 determines whether or not to output a switch switching signal.
  • the video recording apparatus 1 performs the following processing by such processing of FIG.
  • the encoding processing unit 2022 performs encoding processing of the first video data (for example, times T03 to T04 in FIG. 3).
  • 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).
  • the encoding processing unit 2022 performs an encoding process of the target video data (second video data) after the change changed in the first step S4 (time T04 to time T05). ).
  • 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).
  • the encoding processing unit 2022 performs an encoding process on the target video data (first video data) after the change made in the second step S4 (time T06 to time T07). ).
  • the processing of the first video data and the processing of the second video data are performed in parallel (by time division processing).
  • the encoding processing unit performs encoding processing of video data.
  • the encoder control unit 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 From T02 to time T03), the encoding processing unit performs encoding processing of second video data different from the first video data.
  • the encoding processing unit performs the encoding process of the first video data.
  • a video recording apparatus is configured.
  • this video recording method and video recording apparatus are effective for a video recording apparatus that compresses and records any video on an optical disk, a semiconductor memory, a hard disk, or the like.
  • 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

Abstract

 N本の映像データのエンコード処理を行う映像記録装置において、回路規模の拡大を抑える。複数の映像データが入力される。エンコード処理部(2022)が、映像データの符号化処理を行う。エンコーダ制御部(205)が、どの映像データを符号化処理するかを制御する。そして、エンコーダ制御部は、複数の前記映像データの各々の割り当て時間を決定し、前記割り当て時間が経過すると、次の映像データに、対象映像データを切り替える。

Description

映像記録装置
 本発明は、映像データを圧縮して記録する映像記録装置および映像記録方法に関するものである。
 図1は、映像データをMPEG(Moving Picture Experts Group)符号化方式で記録する、従来の映像記録装置100xのブロック構成図である。
 従来の映像記録装置100xは、フレームバッファ100、エンコード部101、ストリームバッファ102、エンコードバッファ103、第1の映像入力制御部(非記録媒体)104、第2の映像入力制御部(記録媒体)105、記録媒体106から構成される。
 フレームバッファ100は、入力映像データを一時的に格納するメモリで、複数の映像フレームを格納できる。ストリームバッファ102は、格納された映像フレームが映像記録装置100xにより符号化された符号化データを一時的に格納するメモリである。エンコードバッファ103は、エンコード部101で符号化するために一時的に必要なデータを格納するメモリである。第1の映像入力制御部(非記録媒体)104は、記録媒体を用いないで、映像データを扱うブロックである。例えば、第1の映像入力制御部104は、放送データを受信して、映像ストリームをデコードして、映像データを生成するブロックもしくは、映像データを外部から取り込むブロックである。第2の映像入力制御部(記録媒体)105は、例えば、HDD(Hard Disk Drive)、光ディスク、半導体メモリ等の記録媒体に記録されたストリームデータをデコードして、映像データを生成するブロックである。記録媒体106は、ストリームバッファ102に格納されたストリームをHDD、光ディスク、半導体メモリ等に格納しているブロックである。
 他方、特許第3910606号公報では、複数の映像データが時分割で混合された混合映像データを、ひとつのエンコード部でエンコード処理し、出力するという記録方法が提案されている。
特許第3910606号公報
 しかしながら、従来の映像記録装置100xは、N本の映像データのエンコード処理にN個の映像記録装置が必要である。つまり、従来は、N本の映像データのエンコード処理のために、このような映像記録装置100xがN個必要である。このため、処理する映像データが多ければ多いほど、多くの映像記録装置(映像記録装置100x)が必要となり、回路面積やコストの拡大につながるという問題がある。
 また、特許第3910606号公報では、複数の入力映像データをエンコード部に入力する前に混合するため、独立した複数の映像データを独立したストリームとして、記録することはできない。
 また、映像データを符号化処理する映像記録装置により複数の映像データが符号化処理されるのに際しては、時分割でエンコード処理する際、複数の入力映像データ各々に与える符号化処理時間を各々保証する必要がある。つまり、この保証がされないと、例えば、その符号化処理の結果が、適切な時刻に表示されず、表示が乱れるなどの弊害が生じる。
 そこで、本発明は、回路規模の拡大を抑えるため、複数の映像データのエンコード処理を時分割で行い、映像符号化する際に入手可能な情報を用いて、映像データのエンコード処理に割り当てる処理時間を、各々保証することを可能にする映像記録装置および映像記録方法を提供するものである。つまり、複数の映像データの符号化処理ができるにも関わらず、N個の映像記録装置が必要でなく、かつ、映像データの混合も必要でないようにすることを目的とする。また、ひいては、回路規模を小さくすることを目的とする。
 上記課題の少なくとも一部を解決するため、本発明の映像記録装置は、複数の映像データが入力される映像入力部と、前記映像入力部から入力される複数の前記映像データの各々を格納するフレームバッファと、映像データの符号化処理を行う符号化処理部と、前記フレームバッファに格納された複数の映像データのうちで、どの映像データを前記符号化処理部が符号化処理するかを制御するエンコーダ制御部とを備え、前記エンコーダ制御部は、複数の前記映像データの各々の符号化処理に与える割り当て時間を決定し、前記割り当て時間が経過すると、当該割り当て時間の符号化処理の映像データの次に前記符号化処理部が符号化処理する映像データに、前記符号化処理部により符号化される対象映像データを切り替える。
 映像データを符号化処理する映像記録装置において、複数の映像データの符号化処理ができるにも関わらず、N個の映像記録装置が必要でなく、かつ、映像データの混合も必要でないようにできる。ひいては、映像記録装置の回路規模が小さくできる。
図1は、従来の映像記録装置のブロック構成図である。 図2は、映像記録装置のブロック構成図である。 図3は、映像記録装置の動作を説明する図である。 図4は、映像記録装置の動作を説明する図である。 図5は、映像記録装置の動作を説明する図である。 図6は、映像記録装置の動作を説明する図である。 図7は、映像記録装置の動作を説明する図である。 図8は、映像記録装置の動作を説明する図である。 図9は、映像記録装置の動作を説明する図である。 図10は、映像記録装置の動作を説明する図である。 図11は、映像記録装置のフローチャートである。
 以下、図面を参照して、本発明を実施する形態について、詳しく説明する。
 局面A1の映像記録装置(図2の映像記録装置1)は、複数の映像データ(第1の映像データ、第2の映像データ)が予め定められた入力先(フレームバッファ201)へと当該映像入力部により入力される映像入力部(第1の映像入力制御部(非記録媒体)207等、映像入力制御部200)と、前記映像入力部から入力される複数の前記映像データの各々を格納するフレームバッファ(フレームバッファ201)と、映像データの符号化処理を行う符号化処理部(エンコード処理部2022)と、前記フレームバッファに格納された複数の映像データのうちで、どの映像データを前記符号化処理部が符号化処理するかを制御するエンコーダ制御部(エンコーダ制御部205)とを備え、前記エンコーダ制御部は、複数の前記映像データの各々の符号化処理に与える割り当て時間(例えば図3の時刻T01~時刻T02の割り当て時間など)を決定し、前記割り当て時間が経過すると、当該割り当て時間の符号化処理の映像データ(例えば第1の映像データ)の次に前記符号化処理部が符号化処理する映像データ(例えば第2の映像データ)に、前記符号化処理部により符号化される対象映像データを切り替える映像記録装置である。
 つまり、局面A1の映像記録装置においては、複数の映像データのうちのそれぞれの映像データについて、エンコーダ制御部が、その映像データ以外の他の映像データから、その映像データ(例えば図3の映像データ1)へと、符号化処理部による符号化処理が行われる対象映像データを変更させる。そして、その初めの変更の後に、再び他の映像データへと、対象映像データをエンコーダ制御部が変更させる。これにより、初めの変更から、後の変更までの間(例えば時刻T03~時刻T04の間)に、その映像データの符号化処理が行われる。こうして2度の変更をさせることをエンコーダ制御部が繰り返すことにより、その映像データの符号化処理の全てが行われる。これにより、複数の映像データのそれぞれの映像データについて、その映像データの全ての符号化処理をエンコーダ制御部が行わせる。
 なお、エンコーダ制御部は、初めの変更の前に符号化処理される第1の他の映像データとは違う第2の他の映像データを、後の変更の後に、符号化処理部に符号化処理させてもよい。
 このため、同時には1つの映像データの符号化処理しか行わない符号化処理部を単に1つ備えるだけの簡単な構成により、複数の映像データの符号化処理ができる。しかも、その符号化処理により符号化処理される対象映像データは、複数の映像データが混合されたデータである必要はない。このため、複数の映像データが混合されることが必要でないようにできる。これにより、ひいては、回路規模が十分に小さい映像記録装置が実現できる。
 しかも、映像データには、著作権の情報や、暗号鍵の情報、個人情報、又は認証情報などの、第三者に特定されるのが不適切である特定情報が含まれることがある。この映像記録装置であれば、対象映像データである映像データが変更される毎に、処理が行われる映像データが変化する。これにより、行われる処理が、どの映像データの処理かが分かり難くなり、ひいては、映像データの処理の内容が特定(解析)され難いようにできる。従って、符号化処理される映像データに含まれる、その映像データの著作権の情報等の特定情報が、第三者に特定され難いようにできる。これにより、ひいては、映像データの不正なコピーその他の不正な利用がされ難いようにできる。
 つまり、符号化処理部が1つで、かつ、映像データの混合が不要である簡単な構成と、映像データの不正な利用の防止とが両立できる。
 なお、例えば、エンコーダ制御部は、対象映像データを、第1の映像データから第2の映像データへと変更させるのに際して、変更前に第1の映像データが符号化処理される時間とは異なる時間だけ、変更の後に第2の映像データの符号化処理を符号化処理部に行わせてもよい。こうすれば、確実かつ十分に、特定情報が分かり難いようにできる。
 また、局面A2の映像記録装置は、前記エンコーダ制御部が、映像データの第1の所定単位(フレーム)の符号化処理に与える割り当て時間を切り替える(変化させる)局面A1の映像記録装置である。なお、所定単位とは、予め定められた単位である。
 また、局面A3の映像記録装置は、前記エンコーダ制御部が、符号化対象の映像データの解像度情報を、入力映像データ情報(実施形態の入力映像データ情報、又はその一部)として入力し、入力される前記解像度情報を用いて、その解像度情報の前記映像データの前記割り当て時間を切り替える局面A2の映像記録装置である。
 また、局面A4の映像記録装置は、前記エンコーダ制御部が、映像データをリアルタイムに符号化すべきか、非リアルタイムで符号化すべきか(を示す情報)を、入力映像データ情報として入力し、入力される前記入力映像データ情報を用いて、当該映像データの前記割り当て時間を切り替える局面A2の映像記録装置である。
 また、局面A5の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間が経過すると、その経過の時までに前記符号化処理が完了しているべき、前記映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了している場合は、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替える(変更する)ための切り替え信号(例えば、図3の時刻T02スイッチ切替信号)を出力する局面A1の映像記録装置である。
 また、局面A6の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間が経過する前に(例えば図4の時刻T02よりも前に)、当該割り当て時間が経過するまでに前記符号化処理部が符号化処理を完了しているべき、前記映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了したことを確認すると、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切り替え信号を、前記経過の時(時刻T02)よりも前に出力する局面A1の映像記録装置である。
 また、局面A7の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間(例えば、図6の時刻T09~時刻T10)が経過すると、当該割り当て時間が経過するまでに前記符号化処理部が符号化処理を完了しているべき、映像データ(第1の映像データ)における第1の所定単位の符号化処理を前記符号化処理部が完了していない場合は、前記符号化処理部が現在符号化処理中の、当該第1の所定単位に含まれる第2の所定単位(マクロブロック、スライスなど)の符号化処理の完了を待ってから(時刻T10aまで待ってから)、現在符号化処理中の前記映像データの符号化情報を符号化再開情報として予め定められた記憶領域(例えば第1のエンコードバッファ2041)に退避し、当該退避の後に、当該映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切替信号(時刻T10aのスイッチ切替信号)を出力する局面A1の映像記録装置である。
 なお、符号化情報は、完了しなかった前記第1の所定単位の符号化処理を前記符号化処理部が再開するために前記符号化処理部が利用する(前記符号化処理部において必要である)情報である。符号化再開情報は、上記記憶領域に記憶された当該符号化情報である。
 また、局面A8の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間が経過すると、当該経過までに前記符号化処理部が符号化処理を完了しているべき、映像データにおける第1の所定単位の符号化処理が完了していない場合は、当該割り当て時間のうちに既に前記符号化処理部が符号化処理を完了している、当該第1の所定単位に含まれる第2の処理単位の符号化情報を符号化再開情報として予め定められた記憶領域に退避してから、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに前記対象映像データを切り替えるための切り替え信号を出力する局面A1の映像記録装置である。
 また、局面A9の映像記録装置は、前記第2の所定単位が、1以上の当該第2の所定単位によって前記第1の所定単位を構成し、当該1以上の第2の所定単位のそれぞれが符号化処理されることにより、前記第1の所定単位が符号化処理される処理単位である局面A7の映像記録装置である。
 また、局面A10の映像記録装置は、前記符号化処理部が、符号化処理する対象の映像データについての、当該符号化処理の直前の符号化処理において、当該映像データの第1の処理単位の符号化処理の全てが完了している場合は(例えば、図6の時刻T07の場合は)、当該映像データにおける当該第1の処理単位の次の第1の処理単位の符号化処理(画像3の処理)を開始し、前記直前の符号化処理において、前記第1の処理単位の符号化処理の全てが完了していない場合は(図6の時刻T11の場合は)、前記直前の符号化処理において当該符号化処理部が予め定められた記憶領域に退避した符号化再開情報を用いて、前記直前の符号化処理(画像4の符号化処理)を再開する局面A1の映像記録装置である。
 また、局面A11の映像記録装置は、前記第1の所定単位が、M枚(M=1、2、3…の自然数)のピクチャから構成される局面A2の映像記録装置である。
 また、局面A12の映像記録装置は、前記第1の所定単位が、異なるM枚の前記ピクチャを、構成するM枚の前記ピクチャとして選択できる単位である局面A11の映像記録装置である。
 また、局面A13の映像記録装置は、前記エンコーダ制御部が、映像データが前記符号化処理部に入力されるタイミングを制御する予め定められた入力制御部(第1の映像入力制御部(非記録媒体)207等、映像入力制御部200)に対して、当該タイミングを指示する局面A1の映像記録装置である。
 また、局面A14の映像記録装置は、前記第2の所定単位が、符号化の最小単位であるマクロブロックの複数個から構成されるスライス、もしくは、符号化の最小単位である前記マクロブロックである局面A9の映像記録装置である。
 また、局面A15の映像記録装置は、前記エンコーダ制御部が、前記割り当て時間(例えば図8の時刻T09~時刻T10)が経過すると、当該経過までに前記符号化処理部が符号化処理を完了しているべき、映像データにおける第1の所定単位の符号化処理が完了していない場合は、当該映像データ以外の他の映像データの前記符号化処理部による符号化処理の前記割り当て時間(時刻T10~時刻T11)に含まれる時間(例えば、割り当て時間の前半部分など)を、割り当て時間が経過した前記映像データの割り当て時間に追加して、当該映像データの割り当て時間を延長する局面A1の映像記録装置である。
 また、局面A16の映像記録装置は、前記符号化処理部が、符号化処理する対象の1つの映像データを、互いに異なる複数の記録設定で各々符号化し、それぞれのストリームデータが、それぞれの前記記録設定で符号化されたデータである複数のストリームデータを生成する局面A1の映像記録装置である(図10の説明参照)。
 より具体的には、局面A1の映像記録装置は、例えば、次の特徴を更に備えてもよい。つまり、局面A1の映像記録装置は、さらに、複数の映像データから、符号化処理される対象映像データを特定し、特定される映像データを前記符号化処理部に入力し、入力される前記映像データの符号化処理を前記符号化処理部に行わせる入力スイッチ(入力スイッチ2021)と、前記複数の映像データのうちの1つにそれぞれが対応する複数の出力先(第1のストリームバッファ2031、第2のストリームバッファ2032)のうちから、対象映像データに対応する出力先を特定し、特定される出力先へと、前記符号化処理による符号化後のデータを当該符号化処理部に出力させる出力スイッチ(出力スイッチ2023)とを備えてもよい。そして、局面A1の映像記録装置では、前記エンコーダ制御部が、前記第1の映像データおよび前記第2の映像データのうちで前記対象映像データが前記符号化処理部に入力されるように前記入力スイッチを制御し、前記対象映像データに対応する前記出力先へと前記符号化後のデータが出力されるように前記出力スイッチを制御し、前記対象映像データの符号化処理を前記符号化処理部に行わせるものでもよい。
 そして、さらに具体的には、局面A1の映像記録装置は、例えば、前記エンコーダ制御部が、割り当て時間(例えば図4の時刻T01~時刻T02)が経過するまでに、その割り当て時間における前記符号化処理が完了した場合に、当該完了の時から、前記割り当て時間の経過の時(時刻T02)までの間に、当該割り当て時間に対応する映像データ(第1の映像データ)以外の他の映像データ(第2の映像データ)の符号化処理を前記符号化処理部に行わせてもよい。
 また、局面A1の記録装置は、例えば、前記割り当て時間(例えば図5の時刻T01~時刻T03)の長さが、当該割り当て時間で符号化処理される映像データ(第1の映像データ)の1フレームが前記符号化処理部により符号化処理される1フレーム処理時間に対して、2以上の予め定められた整数(例えば2)が乗じられた時間の長さであり、前記符号化処理部が、当該割り当て時間のうちに、当該整数の個数のフレームの符号化処理を行ってもよい。
 また、局面A1の映像記録装置は、例えば、エンコーダ制御部は、初めの割り当て時間(例えば図6の時刻T09~T10)で行われる、映像データの符号化処理が、当該初めの割り当て時間で完了しなかった場合に、当該初めの割り当て時間より後における割り当て時間(時刻T11~時刻T12)で、前記初めの割り当て時間の符号化処理のうちの完了しなかった部分を、前記符号化処理部に行わせ(時刻T11~T12のうちの前半部)てもよい。
 また、局面A1の映像記録装置は、例えば、エンコーダ制御部が、初めの割り当て時間(例えば図7の時刻T09~T10)で行われる、映像データの符号化処理が、当該初めの割り当て時間で完了しなくとも、後の割り当て時間(時刻T11~時刻T12)で、完了しなかった部分を前記符号化処理部に行わせなくてもよい。
 また、局面A1の映像記録装置は、例えば、初めの割り当て時間(例えば図8の時刻T09~T10)のうちに行われる、前記映像データの符号化処理が、当該初めの割り当て時間で完了しなかった場合に、当該割り当て時間の経過の時から、予め定められた時間の間(時刻T10aまで)、続けて、当該割り当て時間の符号化処理を前記符号化処理部に行わせてもよい。
 また、局面A1の映像記録装置は、例えば、エンコーダ制御部が、割り当て時間における符号化処理が完了した場合に(図9の時刻T02a)、当該割り当て時間のうちで、当該完了よりも後の残り時間(時刻T02a~時刻T03)を、当該割り当て時間以外の前記他の時間と特定して、特定される当該他の時間に前記第2の映像データの符号化処理を前記符号化処理部に行わせてもよい。そして、より具体的には、エンコーダ制御部は、例えば、特定される当該他の時間が経過するまでに(時刻T13までに)、当該第2の映像データの予め定められたフレームの符号化処理が完了した場合(時刻T12a)、当該他の時間が経過するまでに(時刻T13までに)、さらに、前記第2の映像データの当該フレーム(画像3)の次のフレーム(画像4)の符号化処理を、前記符号化処理部に行わせてもよい。そして、さらに、具体的には、エンコーダ制御部は、例えば、前記他の時間として、前記残り時間のみを特定し、前記残り時間ではない無関係時間では、前記第2の映像データの符号化処理をさせないものとしてもよい(図9参照)。
 また、局面A1の映像記録装置は、例えば、映像を第1の形式で記録する第1の映像データ(図10の映像データ1)と、当該映像と同じ映像を第2の形式で記録する第2の映像データ(図10の映像データ2)とを特定する特定部(例えばフレームバッファ201。又は、先述のリサイズ部が含まれる映像入力制御部200)を備え、前記符号化処理部は、当該符号化処理部が出力する第1の符号化後のデータの映像と同じ映像を有する第2の符号化後のデータを出力するものとしてもよい。
 また、局面B1の映像記録装置は、次の問題が解決される映像記録装置である。つまり、従来の映像符号化装置では、一つの映像データの符号化処理のために、一つの映像符号化装置が必要である。このため、複数の映像データを同時に符号化処理する場合、複数の映像符号化装置が必要となり、回路面積やコストの拡大につながるという問題がある。この問題が解決される。そして、局面B1の映像記録装置(映像符号化装置)およびその方法(映像符号化方法)によると、複数の映像データを一つの符号化処理部で時分割に切り替えながら、符号化処理するとき、符号化処理対象の複数のデータの各々の情報を用いて、符号化処理の対象の複数の映像データの各々について、その映像データの符号化処理に使用できる割り当て時間を決定し、この割り当て時間に従って、符号化処理される映像データを切り替える。これにより、上記問題が解決される。
 このような映像記録装置および映像記録方法により、一つの符号化処理部で時分割に切り替えて、複数の映像データを符号化するとき、次のように割り当て時間が決定される。すなわち、符号化処理の対象となる複数の入力映像データの各々の入力映像データ情報、入力制御部の設定、ユーザ設定を用いて、符号化処理の対象の複数の入力映像データの各々の符号化処理に使用できる割り当て時間を決定する。この割り当て時間が経過した場合は、符号化処理される入力映像データ(対象映像データ)を、次の入力映像データに切り替える。
 これにより、符号化処理の対象の複数の入力映像データの各々に与える処理時間を各々独立して保証できる。したがって、入力映像データの処理時間を保証するのに際して、その入力映像データ以外の他の入力映像データの符号化処理の影響を受けることがなく、適切に保証ができる。
 一方、割り当て時間内に所定単位(第1の所定単位)の符号化処理が完了していない場合は、次のときに、符号化処理される対象の入力映像データが切り替えられる。すなわち、複数のマクロブロックから構成されるスライス内の全てのマクロブロックの符号化処理が完了する、もしくは中断時処理中のマクロブロック処理が完了すると、符号化処理を中断し、符号化処理される対象の入力映像データを、次の入力映像データに切り替える。ただし、切替前に符号化処理が中断されたストリームの符号化処理を、次の符号化タイミングで、再開できるよう、再開情報とエンコードバッファに格納されたデータとを予め定められた記憶領域に保持する。
 このように、割り当て時間内に所定単位の符号化処理が完了しない場合であっても、処理時間を各々独立して保証することができる。また、単に時間で処理を時分割に切り替えるのではなく、スライスもしくはマクロブロックといった符号化の処理単位で処理を切り替えるため、符号化処理としても制御が容易になる。
 また、このような映像記録装置および映像記録方法において、非リアルタイム性の符号化処理を含む場合、符号化処理に使用できる割り当て時間を固定値でなく、他のリアルタイム性の符号化処理の割り当て時間の空き時間、すなわち符号化処理の完了から、処理切り替えまでの間の時間に設定するものとしてもよい。
 非リアルタイム性の符号化処理の割り当て時間を0として、他のリアルタイム性の符号化処理の割り当て時間を計算すればよい。
 これにより、リアルタイム性のある入力映像データの各々に与える符号化処理時間を保証しつつ、非リアルタイム性の符号化処理の割り当て時間を割り当てることができる。
 また、このような映像記録装置および映像記録方法により、符号化処理を等倍以上で行いたい場合、符号化処理に使用できる割り当て時間を記録倍数に応じて、増やすことで、符号化処理を高速化することができる。
 これにより、複数のエンコード部を協調させることによりこのようなことを実現する場合と比較して、容易に符号化処理を高速化できる。また、各々の記録倍数が異なる場合であっても、複数の入力映像データの各々に与える符号化処理時間を各々独立して保証することができる。
 また、このような映像記録装置および映像記録方法によると、同じ映像入力データを各々のフレームバッファに入力することで、1つの映像データから記録設定の異なる複数の符号化データを作成できる。
 これにより、1つの映像データを記録設定の異なる複数の符号化データにしたい場合であっても、符号化対象の複数の入力映像データの各々に与える処理時間を保証することができる。
 以下、より詳しい説明が行われる。
 実施の形態の本体、および本実施の形態の変形例について、図2から図10を用いて説明する。
 図2は、実施の形態の本体、変形例のブロック構成を説明する図である。
 図3から図10は、実施の形態の本体、変形例の動作を説明する図である。
 実施の形態では、局面A1、A2、A6、A7、A8、A9、A10、A13、A14における、基本的構成および、切替パターン、エンコード処理が完了しなかった場合の制御パターンなどを説明する。
 そして、実施の形態の変形例では、局面A3、A4、A5、A11、A12、A15における、等倍以外のエンコード処理や、非リアルタイム性能のエンコード処理、および、1つの映像データから複数の符号化を作成するエンコード処理などについて説明する。
 図2に示すように、実施の形態の本体、変形例における映像記録装置1は、映像入力制御部200、フレームバッファ201、エンコード部202、ストリームバッファ203、エンコードバッファ204、エンコーダ制御部205、クロック206、第1の映像入力制御部(非記録媒体)207、第2の映像入力制御部(記録媒体)208、記録媒体209などから構成される。
 なお、映像記録装置1は、情報処理を行う情報処理装置である。この情報処理装置は、具体的には、例えば、演算素子および記憶素子などを含む集積回路であってもよい。そして、映像入力制御部200などの、図2に示されるそれぞれの部分は、この情報処理装置に含まれる回路であってもよい。また、この情報処理装置は、CPU、RAM、ROMなどを有するコンピュータを含んでもよく、図2に示される複数の部分のうちの一部又は全部は、このコンピュータがプログラムを実行することにより実現される機能の機能ブロックであってもよい。
 実施の形態の本体、変形例では、二つの映像データ、すなわち映像データ1(第1の映像データ)と映像データ2(第2の映像データ)を映像記録装置1が当該映像記録装置1に入力するものとする。また、映像記録装置1の出力データは、何れもH.264(H.264/AVC)で圧縮されたビデオストリーム1(第1の出力ストリーム)、ビデオストリーム2(第2の出力ストリーム)とする。
 入力映像データは、映像入力制御部200の制御により、第1の映像入力制御部(非記録媒体)207もしくは第2の映像入力制御部(記録媒体)208から、フレームバッファ201に格納される。フレームバッファ201は、バッファ1(第1のフレームバッファ2011)とバッファ2(第2のフレームバッファ2012)とから構成され、映像データ1は、第1のフレームバッファ2011へ入力される。また、映像データ2は、第2のフレームバッファ2012へ入力される。
 エンコード部202は、詳しくは、入力スイッチ2021、エンコード処理部2022、出力スイッチ2023、中間スイッチ2024などから構成される。
 入力スイッチ2021は、フレームバッファ201からの読み出し手段である。また、入力スイッチ2021は、エンコーダ制御部205が出力するスイッチ切替信号に従って、その設定が切り替えられ、フレームバッファ201からの読み出しデータを、エンコード処理部2022へ入力する。入力スイッチ2021は、第1のフレームバッファ2011に格納される映像データ1と、第2のフレームバッファ2012に格納される映像データ2とのうちで、対象映像データである映像データをエンコード処理部2022へと入力する。対象映像データについては、後で詳しく説明される。
 出力スイッチ2023は、エンコード部202からの出力手段である。また、出力スイッチ2023は、エンコーダ制御部205が出力するスイッチ切替信号に従って、その設定が切り替えられ、エンコード処理部2022で生成した符号化データを、ストリームバッファ203へ出力する。具体的には、出力スイッチ2023は、生成される符号化データを、対象映像データの符号化データとして出力する。つまり、出力スイッチ2023は、対象映像データが、映像データ1である場合には、生成される符号化データを、後で詳しく説明される第1のストリームバッファ2031へと出力する。また、出力スイッチ2023は、対象映像データが、映像データ2である場合には、生成される符号化データを、後で詳しく説明される第2のストリームバッファ2032へと出力する。
 中間スイッチ2024は、エンコード部202からの一時的なデータ保存手段である。また、中間スイッチ2024は、エンコーダ制御部205が出力するスイッチ切替信号に従って、その設定が切り替えられ、エンコード処理部2022で行うエンコードに必要な情報を、後で詳しく説明されるエンコードバッファ204(第1のエンコードバッファ2041、第2のエンコードバッファ2042)へ出力する。
 ストリームバッファ203は、複数のフレームを格納できるストリームバッファを、入力映像データ数(例えば2)に応じて持つ。つまり、ストリームバッファ203は、異なる複数のフレームをそれぞれが格納する複数のストリームバッファを備える。具体的には、本実施の形態の本体では、入力映像データが2本である。このことから、ストリームバッファ203は、第1のストリームバッファ2031および第2のストリームバッファ2032の、2つのストリームバッファを持つ。そして、第1のストリームバッファ2031には、映像データ1のエンコード結果を、第2のストリームバッファ2032には、映像データ2のエンコード結果をそれぞれ一時的に保存する。保存されるこれらのエンコード結果は、最終的に、記録媒体209でそれぞれ保存される。
 エンコーダ制御部205は、クロック206と、ユーザ設定と、映像入力制御部200と、エンコード部202とからそれぞれ情報を取得する。
 なお、ユーザ設定は、例えば、予め定められた設定記憶部に記憶された設定である。ここで、この設定記憶部は、例えば、映像記録装置1が備える記憶部である。
 そして、エンコーダ制御部205は、クロック206より、映像記録装置1の動作の基準時間となる時間情報を取得する。
 また、エンコーダ制御部205は、ユーザ設定より、エンコード記録設定、切替フレーム枚数設定(記録速度)、エンコード中断時の処理設定情報を取得する。
 また、エンコーダ制御部205は、映像入力制御部200より、映像データの本数、入力映像データ解像度、入力映像データのリアルタイム性、映像入力タイミング情報を取得する。
 また、エンコーダ制御部205は、エンコード部202より、エンコーダ処理完了信号、エンコード中断時情報を取得する。
 そして、エンコーダ制御部205は、それぞれの取得される情報を入力データとして、処理時間の割り当て、処理の切替の判断をする。
 そして、エンコーダ制御部205は、これら割り当て等の処理を行うことにより、エンコード開始信号、エンコード中断信号、エンコード再開信号、エンコード中断時の処理設定情報、エンコード再開時情報、スイッチ切替信号を出力する。エンコーダ制御部205は、これらの出力をすることで、エンコード部202(の動作)を制御する。
 なお、スイッチ切替信号は、同時に入力スイッチ2021、出力スイッチ2023、中間スイッチ2024に対して、エンコーダ制御部205により入力される。つまり、例えば、入力スイッチ2021に入力される時刻と同じ時刻に、出力スイッチ2023等に入力される。具体的には、エンコーダ制御部205は、映像データ1をエンコード処理部2022が処理する場合は、端子Aがエンコード処理部2022に接続するように、入力スイッチ2021、出力スイッチ2023、中間スイッチ2024を切り替えるスイッチ切替信号を、これら入力スイッチ2021等にそれぞれ出力する。そして、エンコーダ制御部205は、映像データ2をエンコード処理部2022が処理する場合は、端子Bがエンコード処理部2022に接続するように、入力スイッチ2021等を切り替えるスイッチ切替信号を、これら入力スイッチ2021等にそれぞれ出力する。
 なお、映像データ1および映像データ2のうちで、エンコード処理部2022により処理される方の映像データは、対象映像データと呼ばれる。対象映像データは、スイッチ切替信号がエンコーダ制御部205により出力されることにより、映像データ1および映像データ2のうちの一方から、他方へと変更される。出力されるスイッチ切替信号は、その出力よりも前の時間の対象映像データを、その変更の前の一方の映像データと特定すると共に、その出力よりも後の時間の対象映像データを、その変更の後の他方の映像データと特定する。
 第1の映像入力制御部(非記録媒体)207は、記録媒体を用いないで、映像データを扱うブロックである。例えば、第1の映像入力制御部207は、放送データを受信して、映像ストリームをデコードして、映像データを生成するブロック、もしくは、映像データを外部から取り込むブロックである。
 第2の映像入力制御部(記録媒体)208は、HDD、光ディスク、半導体メモリ等の記録媒体に記録されたストリームデータをデコードし、映像データを生成するブロックである。
 記録媒体209は、ストリームをHDD、光ディスク、半導体メモリ等に格納しているブロックである。記録媒体209は、例えば、HDDであってもよい。
 また、エンコード処理部2022が行う符号化処理が、リアルタイム性のある符号化処理の場合は、映像入力制御部200より、映像入力タイミング情報をエンコード処理部2022へ通知する(図略)。なお、エンコーダ制御部205により、映像入力制御部200から映像入力タイミング情報が取得され、取得された映像入力タイミング情報がエンコード処理部2022に通知されてもよい。他方、逆に非リアルタイム性の符号化処理の場合は、エンコード処理部2022より、映像入力タイミング情報を映像入力制御部200へ通知する。なお、エンコーダ制御部205により、エンコード処理部2022から映像入力タイミング情報が取得され、取得された映像入力タイミング情報が映像入力制御部200に通知されてもよい。
 つまり、映像入力制御部200は、エンコード処理部2022による処理がリアルタイム性を必要とする場合、その映像入力タイミング情報の時刻までに終了されるべき処理を、その時刻までにエンコード処理部2022に終了させる映像入力タイミング情報をエンコード処理部2022に出力する。ここで、リアルタイム性が必要とは、終了されるべき処理が、その終了がされるべき時刻までに終了することが必要であることをいう。
 また、エンコード処理部2022は、リアルタイム性が必要でない場合、処理が終了するごとに、適切なデータをエンコード処理部2022に入力させるための制御を映像入力制御部200に行わせる映像入力タイミング情報を、映像入力制御部200へと出力する。ここで、適切なデータとは、その処理の次の処理でエンコード処理部2022が利用するデータである。
 次に、本実施の形態の本体の動作について、図3から図8を用いて説明する。
 なお、本実施の形態の本体の動作の説明では、エンコード部202が1フレーム(インターレースの場合は2フィールド、プログレッシブの場合は1フレーム)の表示時間のうちに、1080I映像データを2フレーム分エンコードできる性能を持つとする。なお、1080I映像データは、有効走査線の本数が1080本である映像データである。
 また、本実施の形態の本体の動作説明では、基本的には1フレームの表示時間に、入力する二つのストリームについて、各々のストリームの1フレームをエンコード部202はエンコード処理するとする。
 本実施の形態の本体では、1回の単位時間が、映像データの個数(2個)と同じ個数の割り当て時間へとエンコーダ制御部205により分割される。ここで、単位時間は、上記される1フレームの表示時間である。そして、各映像データの処理は、その映像データの割り当て時間における実施時間の間、エンコーダ制御部205がエンコード部202に行わせる。実施時間は、その実施時間が含まれる割り当て時間の一部又は全部を占める。割り当て時間の長さは、例えば、単位時間の長さが、映像データの個数で除算された長さである。そして、割り当て時間の長さは、具体的には、例えば、エンコード部202が1フレームの処理をする時間の長さに等しい。
 図3から図8は、映像入力データ(映像データ1、映像データ2)を1080Iおよび480Iとし、出力ストリーム1を、High profile@level4.1の1080Iのインターレース信号のビットストリームとし、出力ストリーム2を、High profile@level4.1の480Iのインターレース信号のビットストリームとした例である。
 まず、入力映像データ情報として、以下の情報を、エンコーダ制御部205に当該エンコーダ制御部205が入力する。
Figure JPOXMLDOC01-appb-T000001
 1frame当たりの映像データnの割り当て時間は、その処理の処理量が映像データの解像度および、記録速度に比例するので、以下の(式1)のように割り当て時間は割り当てることができる。
Figure JPOXMLDOC01-appb-M000001
time(n) :1frame当たりの映像データnの割り当て時間
frame_time :1フレーム表示時間
mb(n) :映像データnの1frame当たりのMB数
speed(n) :映像データnの記録倍数
 エンコーダ制御部205は、映像データ1が1080Iのストリームで、映像データ2が480Iのストリームであるので、mb(1)=8160,mb(2)=1350、speed(1),speed(2)=1と特定する。これらの値を、(式1)に当てはめると、下記のようになる。
 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の割り当て時間の長さとを算出する。
 符号化処理の切替パターンは、下記の3つについて説明する。エンコーダ制御部205がスイッチ切替信号を出力するタイミングは、様々な態様であってよい。その態様に応じて、対象映像データがどのように変更される(切り替えられる)かの切替パターンが決まる。以下では、(X1)~(X3)の3つの例が示される。
 (X1)1frame分に対して、上記割り当て時間ごとに、符号化処理を切り替える(図3)。つまり、割り当て時間が経過するごとに、スイッチ切替信号が出力されて、その割り当て時間の次の割り当て時間の映像データの処理がされる。
 (X2)1frame分完了したら、符号化処理を切り替える(図4)。つまり、割り当て時間が経過する前でも、実施時間が完了したら、スイッチ切替信号が出力される。
 (X3)Nframe分に対して、上記割り当て時間ごとに符号化処理を切り替える(図5)。つまり、割り当て時間が、エンコード部202が1フレームの処理をする時間の長さに対して、2以上の整数Nを乗じた長さの時間である。
 以下、詳しく説明される。
 まず切替パターン(X1)について説明する。
 図3は、割り当て時間ごとにスイッチ切替信号が出力される例における、映像記録装置1の処理を示す図である。
 映像入力タイミング情報(の設定)が、映像入力制御部200であるから(上記の入力映像データ情報の表を参照)、図3のように、クロック206からの時間情報より、エンコーダ制御部205が、1フィールド時間(16.7msec)毎にスイッチ切替信号を出力する(図3の上向き矢印を参照)。また、エンコーダ制御部205は、その出力と共に、エンコード開始信号を出力する。なお、ここで、1フィールド時間は、1フレーム(=2フィールド)の処理をエンコード処理部2022が行う時間である。
 エンコード部202は、スイッチ切替信号が出力されると、エンコードバッファ204より、エンコード処理部内部情報および、動き補償予測に必要な映像データなどを(必要なら)読み出して、エンコード処理を行う。エンコード処理が完了したら、エンコード部202の内部で保持している情報や、動き補償予測に必要な映像データなどを、現在の対象映像データについての次の割り当て時間が始まるまで、エンコードバッファ204にエンコード部202は退避しておく。
 現在の対象映像データの処理のうちで、現在のフレームのエンコード処理が、現在の割り当て時間内に完了すれば、図3のように、1フィールド時間毎に、エンコード部202に入力される映像データが、映像データ1、映像データ2、映像データ1・・・と切り替えられる。
 次に、切替パターン(X2)について説明する。
 図4は、実施時間が完了した時にスイッチ切替信号が出力される例における、映像記録装置1の処理を示す図である。
 また、図4のように、スイッチ切替信号が出力されるタイミングの一部を、他方のエンコード処理完了の時刻としても良い。エンコード処理が割り当て時間内に完了すれば、図4のように、1フィールド時間毎に、エンコード部202に入力される映像データが映像データ1、映像データ2、映像データ1・・・と切り替えられることになる。
 最後に切替パターン(X3)について説明する。
 図5は、割り当て時間の長さが、1フレームの処理時間(1フィールドの時間)にN(=2)を乗算した長さである例における、映像記録装置1の処理を示す図である。
 また、図5のように、切替枚数を2frameとして、スイッチ切替信号の出力タイミングを2frame分処理の時間(2フィールド時間)としてもよい。切替回数が減るため、エンコード処理部内部情報の復帰、退避の回数も減らすことができる。
 図5のように切替枚数を2frameとした場合には、2フィールド時間毎に、エンコード部202に入力される映像データが映像データ1、映像データ2、映像データ1・・・と切り替えられることになる。
 図を用いる説明はしていないが、他にもNframe分完了したら、切り替えるというパターン等も存在する。
 以上のように、エンコーダ制御部205が、入力映像データ情報に基いて判断を行い、1フィールド時間に1フレーム分のエンコード処理を、切り替えながら行うことで、1つのエンコード部202から2つのストリームを出力することができる。
 先に述べたように、本実施の形態の本体の説明におけるエンコード部202の処理性能は、1080Iの映像データに関して、1フレーム表示時間に、2フレーム分処理できるものなので、通常、映像データ1のエンコード処理は、1フィールド時間に完了する。しかしながら、外部的要因などにより、1フィールド時間でエンコード処理が完了しない場合を想定する必要がある。上記のように映像サイズに応じて符号化処理割り当てを決定することで、外部的要因を考慮した処理割り当て時間とすることができる。
 仮に切替前のエンコード処理が完了していない場合、下記の制御を行う。つまり、下記の(Y1)~(Y3)の例では、割り当て時間のうちに、その割り当て時間で処理されるべきフレームの処理のうちの一部の処理のみが完了した際の処理が説明される。
 (Y1)1frame分の処理を中断し、次の割り当て時間に再開し、残りの1frame分を符号化する(図6)。つまり、フレームの処理のうち、行われた一部の処理以外の残りの処理は、その一部の処理が行われた割り当て時間の次に、その映像データについて割り当てられる次の割り当て時間において行われる。
 (Y2)1frame分の処理を中断し、次の割り当て時間では次の1frame分を符号化する(図7)。つまり、次の割り当て時間では、残りの処理は実行されない。
 (Y3)1frame分の処理を延長して、他の割り当て時間に余裕がある場合は符号化し続ける(図8)。つまり、行われた一部の処理の割り当て時間の次に、その割り当て時間の映像データ以外の他の映像データについて割り当てられる割り当て時間において、残りの処理が行われる。すなわち、他の映像データの割り当て時間の一部(又は全部)が、その残りの処理の映像データの割り当て時間へと変更され、その映像データの割り当て時間が延長される。
 まず、制御(Y1)の場合について説明する。
 図6は、映像データの符号化の処理が、1フィールドの時間(時刻T09~時刻T10の時間)で完了しなかった場合の処理を示す図である。なお、図6では、時刻T02a、時刻T04a、…時刻T14aも図示される。
 仮に切替前のエンコード処理が完了していない場合、エンコード中断時の処理設定情報とエンコード中断信号をエンコーダ制御部205がエンコード部202に出力する。そして、エンコーダ制御部205は、この出力の後に、エンコーダ処理完了信号およびエンコード処理中断情報の通知をエンコード部202から受けた後、エンコード開始信号をエンコード部202に出力する。
 そして、仮に、エンコード開始信号がエンコーダ制御部205により発生される時に(時刻T11)、中断されたエンコード処理(時刻T10aで中断された処理)があることがエンコーダ制御部205により特定される場合、エンコーダ制御部205は次の出力をする。つまり、エンコーダ制御部205は、この場合、エンコード開始信号ではなく、エンコード再開時情報とともにエンコード再開信号を、エンコード部202に出力する。
 切替フレーム枚数設定が1枚であるから(上記の入力映像データ情報の表を参照)、エンコード部202は、エンコーダ制御部205からのエンコード開始信号を検出すると、1フレーム分のエンコード処理を行う。エンコード部202は、H.264(H.264/AVC)の符号化方式に従ったエンコード処理をしながら、エンコーダ処理完了信号、エンコード中断時情報をエンコーダ制御部205に通知する。図6の映像データ1の画像4の処理(ピッチが広い画像4のハッチングの領域の処理)では、エンコード処理遅延が発生し、映像データ1の割り当て時間内(時刻T09~時刻T10の時間内)に、符号化処理が完了していなかった例を示している。
 エンコーダ制御部205は、エンコードを開始してから、割り当て時間内にエンコード処理完了信号がエンコード部202からないことから、エンコード処理が完了していないと判断できる。エンコード処理がその割り当て時間内に完了していないと判断した場合、エンコーダ制御部205は、エンコード中断信号および、エンコード中断時の処理設定情報を、エンコード部202に出力する。エンコード部202は、エンコード中断信号を受けたら、そのエンコード中断信号と共にエンコード部202に出力された、エンコード中断時の処理設定情報に基いて、処理を行う。具体的には、エンコード部202は、スライスもしくはマクロブロックのうちで、出力されたエンコード中断時の処理設定情報が特定する方の符号化処理単位まで、そのエンコード処理を行う。そして、エンコード部202は、その符号化処理単位まで、エンコード処理が完了した時点で符号化処理を中断する(時刻T10a)。
 エンコード部202は、こうして、符号化処理を中断する場合、再開位置情報などのエンコード中断時情報を出力する。ただし、エンコード部202は、一部のデータ、すなわち、容量の大きいフレームバッファ201およびエンコード部202の内部で保持している情報、および、動き補償予測に必要な映像データなどの一部又は全部は、エンコードバッファ204に退避する。エンコード部202は、フレームバッファ201の空き容量が多い場合は、中断されたフレームバッファ(第1のフレームバッファ2011又は第2のフレームバッファ2012)を上書きされないよう、ガードしておいてもよい。
 エンコーダ制御部205は、エンコード中断時情報(上述)をエンコード部202から受けたら、スイッチ切替信号を出力する(時刻T10a)。これにより、エンコーダ制御部205は、入力スイッチ2021、出力スイッチ2023、中間スイッチ2024の各設定を、現在の設定と違う設定へと変更する。具体的には、図6の例では、エンコーダ制御部205は、時刻T10aにおいて、スイッチ切替信号を出力することにより、入力スイッチ2021等の設定を、映像データ2を処理するように、端子Bをエンコード処理部2022に接続する設定に切り替える。これにより、エンコード部202は、映像データ2の画像4の符号化処理(ピッチが狭い画像4のハッチングの領域の処理)を開始する。
 そして、エンコーダ制御部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の一部である。
 次に制御(Y2)について説明する。
 図7は、残りの処理が行われない例における、映像記録装置1の処理を示す図である。
 図6により説明される中断再開の処理では、符号化の処理のリアルタイム性が保証できない場合は、中断後(図6の時刻T10a)、次のピクチャにスキップして処理することで、記録データが欠落するものの、システム破綻を回避できる。その動作について図7を用いて説明する。エンコード部202へと出力される、エンコード中断時の処理設定情報に、中断時にスキップする情報をエンコーダ制御部205が付加すればよい。
 図7の映像データ1の画像4の処理(画像4の広いハッチングの領域の処理)では、エンコード処理の遅延が発生し、映像データ1の割り当て時間内(時刻T09~時刻T10の時間内)に符号化処理が完了していなかった例を示している。
 エンコーダ制御部205は、エンコードを開始してから、割り当て時間内(時刻T09~時刻T10の時間内)にエンコード処理完了信号がエンコード部202からないことから、エンコード処理が完了していないと判断できる。エンコード処理が完了していないと判断した場合、エンコーダ制御部205は、エンコード中断信号および、エンコード中断時の処理設定情報をエンコード部202に出力する。
 エンコード部202は、エンコード中断信号を受けたら、そのエンコード中断信号と共に出力された、エンコード中断時の処理設定情報が、スキップ設定であることから、直ちに、符号化処理を強制終了する(時刻T10a)。スキップするので、エンコード処理部2022(エンコード部202)は、エンコード処理部2022の内部で保持している情報や、動き補償予測に必要な映像データなどは、エンコードバッファ204に退避しない。
 強制終了した場合、エンコード部202は、エンコード処理完了信号をエンコーダ制御部205に出力する。
 エンコーダ制御部205は、エンコード処理完了信号をエンコード部202から受けたら、スイッチ切替信号をエンコード部202に出力する(時刻T10a)。これにより、入力スイッチ2021、出力スイッチ2023、中間スイッチ2024の各設定を、映像データ2を処理するように、端子Bがエンコード処理部2022に接続される設定にエンコーダ制御部205は切り替える。これにより、エンコード部202が、この切り替えに応じて、映像データ2の画像4の符号化処理(画像4のピッチが狭いハッチングの処理)を開始する。
 そして、エンコーダ制御部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の広いハッチングでの処理)。
 最後に制御(Y3)について説明する。
 図8は、割り当て時間の延長が行われる際における、映像記録装置1の処理を示す図である。
 記録データの欠落が許されない場合、以下で説明されるようにして、割り当て時間を一時に変更することで、システム破綻を回避できる。その動作について図8を用いて説明する。エンコード部202へと出力される、エンコード中断時の処理設定情報に対して、エンコーダ制御部205が、中断時には延長するとの情報を付加すればよい。
 図8の映像データ1の画像4の処理(画像4の広いハッチングの処理)では、エンコード処理の遅延が発生し、映像データ1の割り当て時間内(時刻T09~時刻T10)に、符号化処理が完了していなかった例を示している。
 エンコーダ制御部205は、エンコードを開始してから、割り当て時間内にエンコード処理完了信号がエンコード部202からないことから、エンコード処理が完了していないと判断できる。エンコード処理が完了していないと判断した場合、エンコーダ制御部205は、エンコード中断信号および、エンコード中断時の処理設定情報を、エンコード部202に出力する。エンコード部202は、エンコード中断信号を受けたら、このエンコード中断信号と共に出力されたエンコード中断時の処理設定情報が延長設定を有することから、符号化処理を継続する。具体的には、エンコード部202は、映像データ2のエンコード処理(狭いピッチのハッチングによる領域の処理)の時間から、割り当て時間を譲り受けることにより、符号化処理を継続する。ただし、譲り受けることにより延長される延長時間は、譲り渡す側である、映像データ2のエンコード処理の完了に、影響を与えない範囲で行う。延長期間内に、エンコード処理が完了したら、通常完了と同様、エンコード処理完了信号をエンコーダ制御部205はエンコード部202に出力する。
 以上のようにすることで、各映像データのエンコード処理の遅延が、その映像データ以外の他の映像データのエンコード処理に影響を与えないため、各エンコード処理の性能保証が容易となる。
 実施の形態の変形例では、先述された局面A3、A4、A5、A11、A12、A15における、等倍以外のエンコード処理や、非リアルタイム性能エンコード処理、および、1つの映像データから複数の符号化後のデータを作成するエンコード処理などについて説明する。
 変形例では、エンコード部202が、1080Iに関して、2フレーム表示時間に、1フレーム分を処理できる処理性能があるとする。
 図9は、映像データ(映像入力データ)を1080Iおよび480Iのデータとし、出力ストリーム1を、High profile@level4.1の1080Iのインターレース信号のビットストリームとし、出力ストリーム2を、High profile@level4.1の480Iのインターレース信号のビットストリームとした例である。
 まず、入力映像データ情報として、以下の情報を、エンコーダ制御部205へと、当該エンコーダ制御部205が入力する。
Figure JPOXMLDOC01-appb-T000002
 映像データ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として計算するので、下記のようになる。
 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の割り当て時間は、下記の通りである。
  frame_time-映像データ1の2frame分のエンコード処理時間
 映像入力タイミング情報(の設定)が、エンコーダ制御部205であるから、映像データ1(の偶数フレーム)の符号化処理が完了したら(時刻T02)、エンコーダ制御部205は、さらに、映像データの転送を映像入力制御部200に指示する。これにより、2倍速の符号化処理に応じた映像入力を映像入力制御部200が行う(時刻T02~時刻T02a)。
 符号化処理の割り当て時間を倍速分だけ、乗算するように映像入力制御部200が制御すれば、上記の説明と同様に、議論を進めることができる。
 映像入力タイミング情報(の設定)がエンコーダ制御部205であるから、映像データ1(の偶数フレーム)の符号化処理が完了したら(時刻T02)、次の映像データ(奇数フレーム)をエンコーダ制御部205が用意することができる。このため、上記完了の後に、映像データ1の2回目の符号化処理をエンコード処理部2022が行う(時刻T02~時刻T02a)。2回目の符号化処理の完了と同時にスイッチ切替信号(時刻T02aのスイッチ切替信号)をエンコーダ制御部205は出力すればよい。
 一方、映像データ2の符号化処理に関しては、映像入力タイミング情報(の設定)がエンコーダ制御部205である。このため、映像データ2の符号化処理が完了したら(時刻T12a)、映像データ2のための第2の割り当て時間の残り(時刻T12a~時刻T13)がある限り、処理が完了したフレームデータの次のフレームデータをエンコード処理部2022が符号化する。第2の割り当て時間が終われば(時刻T13)、エンコード処理部2022が処理を中断し、映像データ1の符号化処理に、行われる処理が切り替わる。
 一方、映像データ2のエンコード処理について説明する。mb(2)=0であることから、第2の映像データについては、予め決められた、割り当て時間はない。つまり映像データ2の割り当て時間は基本的に0であるが、映像データ1のエンコード処理のアイドリング時間(空き時間)が、エンコード2(映像データ2のエンコード)のための割り当て時間となる。
 映像入力タイミング情報(の設定)がエンコーダ制御部205であるから、1frameの符号化処理が完了した時点で(時刻T12a)、新しい映像データ(次のフレームデータ)を入力するように、映像入力制御部200をエンコーダ制御部205が制御する。エンコーダ制御部205は、この制御をすることで、映像データ2の割り当て時間中は(時刻T13までは)、映像データ2のエンコード処理をエンコード処理部2022がし続けるようにする。スイッチ切替信号が発生するたびに、中断、再開の制御をエンコーダ制御部205は行う。
 以上の点を考慮して、エンコーダ制御部205は、映像データ1については、2倍速で符号化処理可能で、映像データ1を2倍速で符号化処理することを確保した上で、映像データ2のための第2の割り当て時間を適切に決定する。すなわち、エンコーダ制御部205は、映像データ1の処理の時間を確保する一方で、映像データ1の処理の割り当て時間のうちの空き時間を利用して、映像データ2の符号化処理を行うよう、映像データ2のための第2の割り当て時間を決定する。
 本技術を適用することで、指定の記録速度でエンコードする符号化処理の時間を、その指定の記録速度での時間内に保証しつつ、非リアルタイム性の符号化処理をその空き時間で行うことができる。
 次に、図10は、1本の映像データを、二つの異なるストリームに記録する例を示す図である。具体的には、映像データ(映像入力データ)が1080Iのフォーマットであり、かつ、出力するストリーム1をHigh profile @ level 4.1の1080Iのビットストリーム、ストリーム2をBaseline profile @ level 1.2、QVGAのビットストリームとした例である。
 まず、映像データを第1のフレームバッファ2011に映像入力制御部200が入力する。さらに、入力された映像データをQVGAのデータに、予め定められたリサイズ部(例えば映像入力制御部200)がリサイズした後に、リサイズがされた後のデータを第2のフレームバッファ2012に上記リサイズ部が入力するように制御される。これによれば、上記の説明と同様に、議論を進めることができる。入力映像データ情報として、以下の情報が、エンコーダ制御部205に入力される。なお、リサイズの処理は、例えば公知の技術による処理であってよい。
Figure JPOXMLDOC01-appb-T000003
 映像データ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と特定する。
 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が行うことで、適切なエンコード処理を実現することができる。
 なお、実施の形態の本体、および変形例では、二つの映像データの入力例を示した。一方で、入力できる映像データの個数は、エンコード部202の符号化処理性能、入力映像データの解像度、入力映像データのリアルタイム性能によって決定される上限の個数以下の個数であれば、2個以上であってもよい。
 このように、入力映像データの個数を増やす場合は、フレームバッファ201およびストリームバッファ203、エンコードバッファ204、入力スイッチ2021等のそれぞれの端子数を系統分、つまり入力映像データの個数分だけ追加すればよい。
 なお、実施の形態の本体、変形例では、H.264(H.264/AVC)で符号化されたストリームをエンコード部202が出力するとしたが、これに限るものではない。出力されるストリームは、階層符号化されたストリームであってもよいし、また、単に、符号化されたストリームであればよい。
 なお、実施の形態の本体、変形例では、(式1)を用いて割り当て時間を計算したが、考慮するパラメータに応じて、(式1)は変更して使用することができる。
 つまり、図2により、映像記録装置1が示される。
 映像記録装置1は、映像入力制御部200と、エンコード部202と、エンコーダ制御部205とを備える。
 映像入力制御部200は、第1の映像データ(映像データ1)と、第2の映像データ(映像データ2)とを特定する。映像入力制御部200は、第1のフレームバッファ2011に映像データを格納することで、第1のフレームバッファ2011に格納された映像データを第1の映像データと特定する。また、映像入力制御部200は、第2のフレームバッファ2012に映像データを格納することで、第2のフレームバッファ2012に格納された映像データを第2の映像データと特定する。
 エンコード部202は、入力スイッチ2021と、エンコード処理部2022と、出力スイッチ2023とを備える。
 入力スイッチ2021は、後で詳しく説明されるエンコーダ制御部205によって出力されるスイッチ切替信号を取得して、取得されるスイッチ切替信号を当該入力スイッチ2021に入力する。スイッチ切替信号は、エンコード処理部2022により符号化が行われる映像データ(対象映像データ)を、第1の映像データと第2の映像データのうちの一方から、他方に変更させるタイミングを特定する信号である。スイッチ切替信号は、例えば、そのスイッチ切替信号が出力されるタイミングを、その変更のタイミングとして特定する。スイッチ切替信号は、時刻が、スイッチ切替信号が特定するタイミングよりも前であるか後であるかに応じて、前であれば、その変更の前の映像データ(例えば映像データ1)を対象映像データ(上述)として特定する。一方、スイッチ切替信号は、後であれば、その変更の後の映像データ(映像データ2)を対象映像データとして特定する。入力スイッチ2021は、第1の映像データおよび第2の映像データのうちで、対象映像データたる映像データをエンコード処理部2022に入力する。
 エンコード処理部2022は、入力スイッチ2021により当該エンコード処理部2022に入力される映像データ(対象映像データ)を符号化する。そして、エンコード処理部2022は、この符号化をした後の符号化後データを出力する。
 出力スイッチ2023は、エンコーダ制御部205によって出力される、入力スイッチ2021に入力されるスイッチ切替信号と同じスイッチ切替信号を、当該出力スイッチ2023に入力する。出力スイッチ2023は、エンコード処理部2022が出力する符号化後データをエンコード部202が外部に出力するのに際して、対象映像データが符号化された符号化後のデータとしてその出力を行わせる。具体的には、出力スイッチ2023は、対象映像データが映像データ1である場合には、出力される符号化後のデータを、第1のストリームバッファ2031に格納させる。また、出力スイッチ2023は、対象映像データが映像データ2である場合には、出力される符号化後のデータを、第2のストリームバッファ2032に格納させる。こうして、出力スイッチ2023は、対象映像データに対応する方のストリームバッファに映像データを格納させることで、その映像データを、対象映像データが符号化された符号化後のデータとして出力させる。
 エンコーダ制御部205は、スイッチ切替信号を出力する。出力されるスイッチ切替信号は、入力スイッチ2021および出力スイッチ2023にそれぞれ入力される。エンコーダ制御部205は、スイッチ切替信号を出力することで、第1の映像データおよび第2の映像データの一方から他方へと、エンコード部202により処理される対象映像データを変更させる。そして、エンコーダ制御部205は、この変更をさせる制御を繰り返すことにより、第1の映像データの処理と第2の映像データの処理とをエンコード部202に並行に(時分割処理で)行わせる。
 図3により、映像記録装置1の処理が示される。
 図3の横軸は、時間を示す。時刻T01~時刻T02の時間、時刻T02~時刻T03の時間などは、何れも、第1の映像データと第2の映像データとのうちの1つ映像データの符号化処理を継続的にエンコード部202にエンコーダ制御部205が行わせる割り当て時間である。割り当て時間は、具体的には、例えば、その割り当て時間で処理される映像データの1フレームの処理にエンコード部202が要する時間以上の長さの時間である。例えば、エンコード部202は、1フィールド時間(図3の最上段を参照)のうちに、インターレース信号の1フレームを構成する2つのフィールドの処理を行う。このため、図3の例では、割り当て時間は、図3の最上段に示されるように、1フィールド時間の長さと同じ長さの時間である。
 図3の最下段の「スイッチ切替信号出力タイミング」の欄における上向きの矢印線は、エンコーダ制御部205がスイッチ切替信号を出力するタイミングを示す。
 図3の下から2段目の欄のグラフは、入力スイッチ2021等の各スイッチの動作を示す。グラフが高い値をとる時間の間においては、対象映像データが第1の映像データであり、入力スイッチ2021が第1の映像データをエンコード処理部2022に入力する。また、グラフが低い値をとる時間の間は、対象映像データが第2の映像データであり、入力スイッチ2021が第2の映像データをエンコード処理部2022に入力する。つまり、グラフが高い値をとる時間の間は、エンコード部202が第1の映像データの処理をする。また、グラフが低い値をとる時間の間は、エンコード部202が第2の映像データの処理をする。
 図3の下から3段目の欄は、ピッチの広いハッチングの各領域により、第1の映像データが処理される各第1の実施時間が示される。また、ピッチの狭いハッチングの各領域により、第2の映像データが処理される各第2の実施時間が示される。
 実施時間は、その実施時間を含む割り当て時間(例えば時刻T01~時刻T02)のうちの一部又は全部を占める。
 割り当て時間は、その割り当て時間の開始の時刻にスイッチ切替信号が出力されると共に、そのスイッチ切替信号の次のスイッチ切替信号が、その割り当て時間の終了の時刻に出力される時間である。そして、割り当て時間は、第1の映像データと、第2の映像データとのうちで、その割り当て時間に対応する方の映像データが、その割り当て時間のうちに処理される時間である。
 なお、これらの事項については、図4等においても同様である。
 図11により、映像記録装置1のフローチャートが示される。
 ステップS1では、エンコード処理部2022が、入力スイッチ2021により入力される対象映像データを符号化し、符号化された符号化後のデータを、出力スイッチ2023を介して出力する。
 ステップS2では、エンコーダ制御部205が、対象映像データを変更させるか否かを判定する。そして、エンコーダ制御部205は、終了させないとの判定をした場合(ステップS2:NO)、続けて、現在の対象映像データの符号化の処理を映像記録装置1に行わせる(ステップS1)。
 ステップS3では、終了させるとの判定がステップS2でされた場合に(ステップS2:YES)、エンコーダ制御部205が、現在の対象映像データの次に処理される次の対象映像データの処理の全てが映像記録装置1によって完了されたか否かを判定する。なお、次の映像データの処理が終了したと判定される場合(ステップS3:NO)、映像記録装置1は、例えば、図11の処理を終了してもよい。
 ステップS4では、次の映像データの処理が終了していないとステップS3で判定される場合に(ステップS3:YES)、エンコーダ制御部205が、スイッチ切替信号を出力する。エンコーダ制御部205は、この出力をすることにより、続くステップS1の処理において、次の映像データの処理をエンコード部202に行わせる。
 なお、ステップS2の判定は、終了させるとの判定がされる場合に(ステップS2:YES)、スイッチ切替信号が出力され(ステップS4)、終了させないとの判定がされる場合には(ステップS2:NO)、スイッチ切替信号が出力されない(ステップS1)判定である。つまり、ステップS2の判定では、スイッチ切替信号を出力するか否かがエンコーダ制御部205により判定される。
 このような図11の処理により、映像記録装置1は、次の処理を行う。
 第1のステップS1では、エンコード処理部2022が、第1の映像データの符号化処理を行う(例えば図3の時刻T03~T04)。
 次に、第1のステップS4では、エンコーダ制御部205が、第1のステップS1における符号化処理が終了した後に、対象映像データを、第2の映像データに変更させる(時刻T04)。
 次に、第2のステップS1では、エンコード処理部2022が、第1のステップS4で変更された変更後の対象映像データ(第2の映像データ)の符号化処理を行う(時刻T04~時刻T05)。
 次に、第2のステップS4では、エンコーダ制御部205が、第2のステップS1における符号化処理が終了した後に、対象映像データを、さらに次の映像データ(第1の映像データ)に変更させる(時刻T06)。
 次に、第3のステップS1では、エンコード処理部2022が、第2のステップS4で変更された変更後の対象映像データ(第1の映像データ)の符号化処理を行う(時刻T06~時刻T07)。
 このような処理が繰り返されることにより、第1の映像データの処理と、第2の映像データの処理とが並行に(時分割処理により)行われる。
 このようにして、符号化処理部(エンコード処理部2022)が、映像データの符号化処理を行う。また、エンコーダ制御部(エンコーダ制御部205)が、第1の映像データについての予め定められた割り当て時間(例えば図3の時刻T03~時刻T04)以外の他の時間(時刻T04~時刻T05、時刻T02~時刻T03など)に、第1の映像データとは異なる第2の映像データの符号化処理を前記符号化処理部に行わせる。ここで、当該割り当て時間では、前記第1の映像データの符号化処理を前記符号化処理部に行わせる。このような映像記録装置が構成される。
 なお、以上のように説明された各技術事項は、それぞれ、その技術事項が記載された箇所以外の他の箇所に記載された他の技術事項と、発明の趣旨を逸脱しない範囲で、適宜組み合わせられてよい。
 以上のように、この映像記録方法および映像記録装置は、あらゆる映像を光ディスクや半導体メモリ、ハードディスク等に圧縮して、記録する映像記録装置に有効である。
 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のエンコードバッファ

Claims (16)

  1.  複数の映像データが入力される映像入力部と、
     前記映像入力部から入力される複数の前記映像データの各々を格納するフレームバッファと、
     映像データを符号化処理する符号化処理部と、
     前記フレームバッファに格納された複数の前記映像データのうちで、どの映像データを前記符号化処理部が符号化処理するかを制御するエンコーダ制御部とを備え、
     前記エンコーダ制御部は、複数の前記映像データの各々の符号化処理に与える割り当て時間を決定し、前記割り当て時間が経過すると、当該割り当て時間の符号化処理の映像データの次に前記符号化処理部が符号化処理する映像データに、前記符号化処理部により符号化される対象映像データを切り替える映像記録装置。
  2.  前記エンコーダ制御部は、映像データの第1の所定単位の符号化処理に与える割り当て時間を切り替える請求項1記載の映像記録装置。
  3.  前記エンコーダ制御部は、符号化対象の映像データの解像度情報を、入力映像データ情報として入力し、入力される前記解像度情報を用いて、その解像度情報の前記映像データの前記割り当て時間を切り替える請求項2記載の映像記録装置。
  4.  前記エンコーダ制御部は、映像データをリアルタイムに符号化すべきか、非リアルタイムで符号化すべきかを、入力映像データ情報として入力し、入力される前記入力映像データ情報を用いて、当該映像データの前記割り当て時間を切り替える請求項2記載の映像記録装置。
  5.  前記エンコーダ制御部は、前記割り当て時間が経過すると、その経過の時までに前記符号化処理が完了しているべき、前記映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了している場合は、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する、次の映像データに、前記対象映像データを切り替えるための切り替え信号を出力する請求項1記載の映像記録装置。
  6.  前記エンコーダ制御部は、前記割り当て時間が経過する前に、当該割り当て時間が経過するまでに前記符号化処理部が符号化処理を完了しているべき、前記映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了したことを確認すると、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する、次の映像データに、前記対象映像データを切り替えるための切り替え信号を、前記経過の時よりも前に出力する請求項1記載の映像記録装置。
  7.  前記エンコーダ制御部は、前記割り当て時間が経過すると、当該割り当て時間が経過するまでに前記符号化処理部が符号化処理を完了しているべき、前記映像データにおける第1の所定単位の符号化処理を前記符号化処理部が完了していない場合は、前記符号化処理部が現在符号化処理中の、当該第1の所定単位に含まれる第2の所定単位の符号化処理の完了を待ってから、現在符号化処理中の前記映像データの符号化情報を符号化再開情報として予め定められた記憶領域に退避し、当該退避の後に、当該映像データの次に前記符号化処理部が符号化処理する次の映像データに、前記対象映像データを切り替えるための切替信号を出力する請求項1記載の映像記録装置。
  8.  前記エンコーダ制御部は、前記割り当て時間が経過すると、当該経過までに前記符号化処理部が符号化処理を完了しているべき、前記映像データにおける第1の所定単位の符号化処理が完了していない場合は、当該割り当て時間のうちに既に前記符号化処理部が符号化処理を完了している、当該第1の所定単位に含まれる第2の処理単位の符号化情報を符号化再開情報として予め定められた記憶領域へ退避してから、当該割り当て時間の前記映像データの次に前記符号化処理部が符号化処理する次の映像データに、前記対象映像データを切り替えるための切り替え信号を出力する請求項1記載の映像記録装置。
  9.  前記第2の所定単位は、1以上の当該第2の所定単位によって前記第1の所定単位を構成し、当該1以上の第2の所定単位のそれぞれが符号化処理されることにより、前記第1の所定単位が符号化処理される処理単位である請求項7記載の映像記録装置。
  10.  前記符号化処理部は、符号化処理する対象の映像データについての、当該符号化処理の直前の符号化処理において、当該映像データの第1の処理単位の符号化処理の全てが完了している場合は、当該映像データにおける、当該第1の処理単位の次の第1の処理単位の符号化処理を開始し、前記直前の符号化処理において、前記第1の処理単位の符号化処理の全てが完了していない場合は、前記直前の符号化処理において当該符号化処理部が予め定められた記憶領域に退避した符号化再開情報を用いて、前記直前の符号化処理を再開する請求項1記載の映像記録装置。
  11.  前記第1の所定単位は、M枚(M=1、2、3の自然数)のピクチャから構成される請求項2記載の映像記録装置。
  12.  前記第1の所定単位は、異なるM枚の前記ピクチャを、構成するM枚の前記ピクチャとして選択できる単位である請求項11記載の映像記録装置。
  13.  前記エンコーダ制御部は、映像データが前記符号化処理部に入力されるタイミングを制御する予め定められた入力制御部に対して、当該タイミングを指示する請求項1記載の映像記録装置。
  14.  前記第2の所定単位は、符号化の最小単位であるマクロブロックの複数個から構成されるスライス、もしくは、符号化の最小単位である前記マクロブロックである請求項9記載の映像記録装置。
  15.  前記エンコーダ制御部は、前記割り当て時間が経過すると、当該経過までに前記符号化処理部が符号化処理を完了しているべき、映像データにおける第1の所定単位の符号化処理が完了していない場合は、当該映像データ以外の他の映像データの、前記符号化処理部による符号化処理の前記割り当て時間に含まれる時間を、割り当て時間が経過した前記映像データの割り当て時間に追加して、当該映像データの割り当て時間を延長する請求項1記載の映像記録装置。
  16.  前記符号化処理部は、符号化処理する対象の1つの映像データを、互いに異なる複数の記録設定で各々符号化し、それぞれのストリームデータが、それぞれの前記記録設定で符号化されたデータである複数のストリームデータを生成する請求項1記載の映像記録装置。
PCT/JP2010/001176 2009-05-19 2010-02-23 映像記録装置 WO2010134238A1 (ja)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2009-121445 2009-05-19
JP2009121445A JP2010272993A (ja) 2009-05-19 2009-05-19 映像記録装置

Publications (1)

Publication Number Publication Date
WO2010134238A1 true WO2010134238A1 (ja) 2010-11-25

Family

ID=43125932

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2010/001176 WO2010134238A1 (ja) 2009-05-19 2010-02-23 映像記録装置

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6203515B2 (ja) * 2013-03-29 2017-09-27 株式会社メガチップス 画像処理装置
JP2014230159A (ja) 2013-05-23 2014-12-08 株式会社メガチップス 画像処理装置
JP7304453B1 (ja) 2022-03-03 2023-07-06 Nttエレクトロニクス株式会社 符号化装置、符号化方法および符号化プログラム

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10276365A (ja) * 1997-03-31 1998-10-13 Hitachi Ltd 映像データ圧縮装置、映像記録再生装置および映像データの圧縮符号化方法
JP2001103465A (ja) * 1999-09-29 2001-04-13 Toshiba Corp 画像圧縮装置
WO2006100820A1 (ja) * 2005-03-22 2006-09-28 Mitsubishi Denki Kabushiki Kaisha 画像符号化記録読出装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10276365A (ja) * 1997-03-31 1998-10-13 Hitachi Ltd 映像データ圧縮装置、映像記録再生装置および映像データの圧縮符号化方法
JP2001103465A (ja) * 1999-09-29 2001-04-13 Toshiba Corp 画像圧縮装置
WO2006100820A1 (ja) * 2005-03-22 2006-09-28 Mitsubishi Denki Kabushiki Kaisha 画像符号化記録読出装置

Also Published As

Publication number Publication date
JP2010272993A (ja) 2010-12-02

Similar Documents

Publication Publication Date Title
JP4411310B2 (ja) 情報処理装置およびプログラム
CN101364403B (zh) 图像处理装置及其控制方法
US8665966B2 (en) Video coding apparatus, method of controlling video coding and program of controlling video coding
JP2009111932A (ja) 動画像復号化装置
JP2008022475A (ja) 再生装置および再生方法、並びにプログラム
WO2010134238A1 (ja) 映像記録装置
EP2166770B1 (en) Moving-image reproducing apparatus and moving-image reproducing method
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
JP4197184B2 (ja) 映像復号装置、映像再生装置、映像復号方法、及び映像再生方法
JP2002164790A (ja) 圧縮ストリーム復号化装置及び方法並びに記憶媒体
JP4433319B2 (ja) 信号再生装置
JP2006101406A (ja) 情報処理装置および同装置で用いられるプログラム
JP3888848B2 (ja) 画像復号装置
JP5096883B2 (ja) 画像処理装置および画像録画再生装置
JPH08265700A (ja) 画像信号復号化方法及び画像信号復号化装置
JP2009100206A (ja) 画像符号化データ復号化装置
JP2006311587A (ja) 画像復号装置
JP2006246384A (ja) デコードプログラム、デコード方法およびデコーダ
JP2001103427A (ja) 圧縮画像再生装置及びプログラム記録媒体
US20140079139A1 (en) Moving image processing apparatus that processes a plurality of moving image data sets
JP2005176001A (ja) 半導体装置及び画像処理装置
JP6490945B2 (ja) 画像処理装置
JP2007074128A (ja) 動画像データ処理装置
JP2011015358A (ja) 映像復号化装置及び映像復号化方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10777478

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10777478

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 1201004422

Country of ref document: TH