The present invention relates to a data recording/reproducing device for converting a transport stream (TS) used in digital broadcasting or the like into a program stream (PS) used in a DVD (digital versatile disc) or the like.
In accordance with the spread of digital televisions (DTVs) for digital terrestrial television broadcasting or the like, DVD/HDD (hard disk drive) recorders having a DTV receiving function have been available. Coding data formats for the DTV and the DVD are constructed on the basis of the MPEG-2 (moving picture experts group-2) coding technique, and a TS is used for a DTV and a PS is used for a DVD. The general technique of the MPEG2 is standardized in ISO/IEC13818-1, 2 and 3, and the TS and PS are described in detail in ISO/IEC13818-1.
The process flow for the TS and PS of the MPEG-2 will now be simply described. First, audio or video data is compressed by corresponding compressing technique into an elementary stream (ES), and a time stamp and information of the ES are added as a PES header, so as to construct a packetized elementary stream (PES).
The PES of the audio data or the video data is divided, and a transport header including a synchronization byte and media identification information (PID) is added to each divided data, so as to construct a transport packet of 188 bytes. Such transport packets are collected to be changed into a stream, and thus, a TS is constructed. Also, when a pack of collected PESs and a pack header including system clock reference (SCR), a multiplexing speed and the like is changed into a stream, a PS is constructed. A TS uses a packet with a small fixed length for attaining high error resistance suitably for the broadcasting, and a plurality of programs can be multiplexed. In a DTV for the digital terrestrial broadcasting or the like, such a TS is used. A PS is used for a recording medium, and is characterized by a small ratio of a data amount of a header and has high data efficiency. Such a PS is used in a DVD-Video in which a movie is recorded or a readable/rewritable DVD or the like.
An example of a receiving system for the DTV is described in Patent Document 1 below. This publication does not, however, describe in detail the functions of both the DTV and a DVD/HDD recorder and TS-PS conversion for converting a TS into a PS.
A DVD/HDD recorder having the DTV receiving function should have not only a function to receive TSs transmitted from a broadcast station and to reproduce/record them but also a function to record/reproduce PSs in/from a DVD. A function to be further added may be a function to convert a received TS into a PS for recording it in a DVD.
In step S94, the TS-PS conversion is executed by using the TS decoder and the PS encoder. In step S96, the acceptance of the TS-PS conversion is cancelled, and the user is informed that the TS-PS conversion cannot be performed.
In this manner, resource use condition is confirmed for avoiding conflict of resources, and thus the TS-PS conversion can be executed. When TS decoding or PS encoding is to be performed through an operation while executing the TS-PS conversion processing, the resource use condition is similarly checked, and if the resource is being used, acceptance of the operation is cancelled.
Patent Document 1: Japanese Laid-Open Patent Publication No. 2004-129121
In the method shown in
An object of the invention is executing the TS-PS conversion processing without performing the operation again even when there arises conflict in a necessary resource between the TS-PS conversion processing and another processing.
The data recording/reproducing device of this invention includes a transport stream decoder for decoding a transport stream and outputting a resultant signal; a program stream encoder for obtaining a program stream by encoding the signal output from the transport stream decoder and outputting the program stream; a stream control unit for reading the transport stream from a recording medium, outputting the transport stream to the transport stream decoder and allowing the program stream to be recorded in the recording medium; and a system control unit for controlling the transport stream decoder and the program stream encoder to execute TS-PS conversion for converting the transport stream into the program stream, and the system control unit allows the TS-PS conversion to be executed when both of the transport stream decoder and the program stream encoder are available for the TS-PS conversion in consideration of priority of processing of the TS-PS conversion.
Accordingly, even when processing with higher priority than the TS-PS conversion processing is being executed, the TS-PS conversion processing can be proceeded if both of the transport stream decoder and the program stream encoder are available for the TS-PS conversion.
The other data recording/reproducing device of this invention includes a transport stream system decoder for performing first conversion for converting a transport stream into a packetized elementary stream; a stream control unit for allowing the packetized elementary stream to be recorded and reading the recorded packetized elementary stream; a program stream system encoder for performing second conversion for converting the packetized elementary stream read by the stream control unit into a program stream; and a system control unit for controlling the transport stream system decoder to perform the first conversion and controlling the program stream system encoder to perform the second conversion, whereby executing TS-PS conversion for converting the transport stream into the program stream, and the stream control unit reads the transport stream from a recording medium, outputs the read transport stream to the transport stream system decoder and allows the program stream to be recorded in the recording medium, and in consideration of priority of processing of the TS-PS conversion, the system control unit makes the transport stream system decoder perform the first conversion when the transport stream system decoder is available for the TS-PS conversion, and makes the program stream system encoder perform the second conversion when the program stream system encoder is available for the TS-PS conversion.
Accordingly, even when processing with higher priority than the TS-PS conversion processing is being executed, if one of the transport stream system decoder and the program stream system encoder is available for the TS-PS conversion, the first or second conversion can be performed, and therefore, the TS-PS conversion processing can be proceeded.
According to the present invention, even when there arises conflict in a necessary resource such as a decoder between the TS-PS conversion processing and another processing, if any resource becomes available for the TS-PS conversion, the TS-PS conversion processing can be proceeded. Accordingly, there is no need to perform an operation for making a request for the TS-PS conversion again when a necessary resource is being used or there is no need to perform an operation for halting the TS-PS conversion when processing in conflict in the necessary resource is requested.
Now, preferred embodiments of the invention will be described with reference to the accompanying drawings.
The data recording/reproducing device of
The recording unit 56 of
The system control unit 12 controls the whole DTV/DVD recorder. Specifically, the system control unit 12 controls data flow between respective components, gains operation information of the respective components and starts/halts an operation in accordance with operation information INF supplied by a user. The program reservation control unit 14 outputs, in accordance with set program reservation information, a start/halt signal for a reproducing or recording operation to the system control unit 12.
The TS decoder 32 obtains a PES from an input TS, obtains ESs of audio and video signals or the like from the obtained PES, decodes the thus obtained ESs and outputs the resultant as an AV signal. The PS encoder 38 encodes an audio signal and a video signal included in an input AV signal for obtaining ESs of them, obtains PESs from the respective ESs, and further obtains PSs for outputting them to the stream control unit 42.
The stream control unit 42 outputs a TS output from the digital tuner and a PS output from the PS encoder 38 to the recording unit 56 to be recorded. The recording unit 56 writes a TS and a PS output from the stream control unit 42 in a recording medium such as a DVD or an HDD. The stream control unit 42 reads a TS or a PS having been written in a recording medium from the recording unit 56, and outputs the TS to the first selector 22 and the PS to the PS decoder 52.
The PS decoder 52 obtains a PES from a PS output from the stream control unit 42, obtains ESs of audio and video signals or the like from the obtained PES, decodes the thus obtained ESs for outputting the resultant as an AV signal. The image synthesizing unit 54 synthesizes AV signals output from the analog tuner, the TS decoder 32 and the PS decoder 52 and character video information output from the system control unit 12 and outputs the resultant as an AV signal AVO.
The first selector 22 selects, in accordance with a control signal CN output from the system control unit 12, either a transport stream TST output from the digital tuner or a TS output from the stream control unit 42 for outputting it to the TS decoder 32. The second selector 24 selects, in accordance with the control signal CN output from the system control unit 12, one of an AV signal AVT output from the analog tuner, an AV signal output from the TS decoder 32 and an AV signal output from the PS decoder 52 for outputting it to the PS encoder 38.
As an exemplified operation, a recording operation for the analog broadcasting will be described. The second selector 24 selects an AV signal AVT output from the analog tuner and outputs it to the PS encoder 38. The PS encoder 38 encodes the input AV signal AVT and outputs the thus obtained PS to the stream control unit 42. The stream control unit 42 outputs the input PS to the recording unit 56 to be recorded. In this manner, the system control unit 12 controls the respective components so as to record the analog broadcasting.
Next, the TS-PS conversion processing for format conversion of a TS into a PS will be described. The stream control unit 42 reads a TS recorded in a recording medium from the recording unit 56 and outputs it to the first selector 22. The first selector 22 selects the TS output from the stream control unit 42 and outputs it to the TS decoder 32. The TS decoder 32 decodes the input TS and outputs the thus obtained AV signal to the second selector 24. The second selector 24 selects the AV signal output from the TS decoder 32 and outputs it to the PS encoder 38. The PS encoder 38 encodes the input AV signal and outputs the thus obtained PS to the stream control unit 42. The stream control unit 42 outputs the input PS to the recording unit 56 for recording it in a recording medium.
Since the TS decoder 32 and the PS encoder 38 are used in the TS-PS conversion in this manner, in the case where the TS decoder 32 is to be used in reproducing a TS or the PS encoder 38 is to be used in recording a PS, there arises conflict in a resource of the TS decoder 32 or the PS encoder 38. Accordingly, it is necessary to control the data recording/reproducing device in accordance with the use condition of the resources of the TS decoder 32 and the PS encoder 38.
Therefore, the system control unit 12 allows, in consideration of the priority of the TS-PS conversion processing, the TS decoder 32 and the PS encoder 38 to execute the TS-PS conversion in the case where both of the TS decoder 32 and the PS encoder 38 are available for the TS-PS conversion.
In step S10 of
In step S12, the system control unit 12 determines whether or not processing using the TS decoder 32 or the PS encoder 38 and having higher priority than the TS-PS conversion is being executed. In other words, it is determined whether or not the TS reproducing processing in accordance with an operation, the analog picture recording processing in accordance with an operation or the analog picture recording processing in accordance with reservation is being executed. In the case where none of these processing is being executed, namely, in the case where neither the TS decoder 32 nor the PS encoder 38 is operating, the procedure proceeds to step S84. In the case where any of these processing is being executed, namely, in the case where at least one of the TS decoder 32 and the PS encoder 38 is operating, the procedure returns to step S12, so as to wait until the resource is available by repeatedly making this determination.
In step S14, the system control unit 12 starts or resumes the aforementioned TS-PS conversion processing by using the TS decoder 32 and the PS encoder 38.
In step S16, the system control unit 12 determines whether or not processing using the TS decoder 32 or the PS encoder 38 and having higher priority than the TS-PS conversion has been activated. In other words, it is determined whether or not the TS reproducing processing in accordance with an operation, the analog picture recording processing in accordance with an operation or the analog picture recording processing in accordance with reservation has been activated. In the case where any of these processing has been activated, the procedure proceeds to step S18. In the case where none of these processing has been activated, the procedure returns to step S16, and the TS-PS conversion processing is continuously executed while repeatedly checking the start of use of the resources in any processing with higher priority.
In step S18, the system control unit 12 halts the TS-PS conversion processing and the procedure returns to step S12.
In this manner, the device of
In step S212, the system control unit 12 determines whether or not real time processing can be performed by the TS decoder 32 and the PS encoder 38. In the case where real time processing can be performed by both of the TS decoder 32 and the PS encoder 38, the procedure proceeds to step S14. In the case where real time processing cannot be performed by at least one of the TS decoder 32 and the PS encoder 38, the procedure returns to step S212, so as to wait until the resource is available by repeatedly making this determination.
In this manner, in the process flow shown in
In step S310, the system control unit 12 accepts a TS recording request made through an operation by a user. A TS recording request is a request for recording a TS received by the digital tuner. When a TS recording request is accepted, the stream control unit 42 starts a process for outputting a TS output from the digital tuner to be recorded by the recording unit 56 under control of the system control unit 12. Furthermore, the system control unit 12 executes the TS-PS conversion processing in steps S12, S14, S16 and S18 in the same manner as in
In this manner, in the process flow of
In the process flow of
In the process flow of
The data recording/reproducing device of
The system control unit 212 controls the whole DTV/DVD recorder. Specifically, the system control unit 212 controls data flow between respective components, gains operation information of the respective components and starts/halts an operation in accordance with operation information INF supplied by a user. The program reservation control unit 214 outputs, in accordance with set program reservation information, a start/halt signal for a reproducing or recording operation to the system control unit 212.
The TS system decoder 232 obtains a PES from an input TS and outputs the thus obtained PES. The PES decoder 234 obtains ESs of audio and video signals or the like from the PES obtained by the TS system decoder 232, decodes the ESs and outputs them as an AV signal. The PES encoder 236 encodes an audio signal and a video signal included in an input AV signal for obtaining ESs of the respective signals, and obtains respective PESs from the ESs for outputting them. The PS system encoder 238 obtains a PS from an input PES and outputs it to the stream control unit 242.
The stream control unit 242 outputs a TS output from the digital tuner, a PES output from the TS system decoder 232 and a PS output from the PS system encoder 238 to the recording unit 56 for recording them. The recording unit 56 writes the TS, the PES and the PS output from the stream control unit 242 in a recording medium such as a DVD or an HDD. Also, the stream control unit 242 reads a TS, a PES or a PS written in a recording medium from the recording unit 56, outputs the TS to the first selector 222, outputs the PES to the third selector 226 and outputs the PS to the PS decoder 52.
The first selector 222 selects one of a transport stream TST output from the digital tuner and a TS output from the stream control unit 242 in accordance with a control signal CN output by the system control unit 212, and outputs it to the TS system decoder 232. The second selector 224 selects one of an AV signal AVT output from the analog tuner, an AV signal output from the PES decoder 234 and an AV signal output from the PS decoder 52 in accordance with the control signal CN output by the system control unit 212, and outputs it to the PES encoder 236. The third selector 226 selects one of a PES output from the PES encoder 236 and a PES output from the stream control unit 242 in accordance with the control signal CN output by the system control unit 212, and outputs the selected one to the PS system encoder 238.
Next, TS-PES conversion processing will be described. The stream control unit 242 reads a TS recorded in a recording medium from the recording unit 56 and outputs it to the first selector 222. The first selector 222 selects the TS output from the stream control unit 242 and outputs it to the TS system decoder 232. The TS system decoder 232 converts the input TS into a PES and outputs it to the stream control unit 242. The stream control unit 242 outputs the PES output from the TS system decoder 232 to the recording unit 56 for recording it in a recording medium.
Furthermore, PES-PS conversion processing will be described. The stream control unit 242 reads a PES recorded in a recording medium from the recording unit 56 and outputs it to the third selector 226. The third selector 226 selects the PES output from the stream control unit 242 and outputs it to the PS system encoder 238. The PS system encoder 238 converts the input PES into a PS and outputs it to the stream control unit 242. The stream control unit 242 outputs the input PS to the recording unit 56 for recording it in a recording medium.
In this manner, the TS system decoder 232 is used in the TS-PES conversion and the PS system encoder 238 is used in the PES-PS conversion. Therefore, in the case where the TS system decoder 232 is to be used in reproducing a TS or the PS system encoder 238 is to be used in recording a PS, there arises conflict in a resource of the TS system decoder 232 or the PS system encoder 238. Accordingly, it is necessary to control the data recording/reproducing device in accordance with the use condition of the resources of the TS system decoder 232 and the PS system encoder 238.
Therefore, the system control unit 212 allows, in consideration of the priority of the TS-PS conversion processing, the TS system decoder 232 to execute the TS-PES conversion in the case where the TS system decoder 232 is available for the TS-PS conversion, and the PS system encoder 238 to execute the PES-PS conversion in the case where the PS system encoder 238 is available for the TS-PS conversion.
In step S510 of
In step S512, the system control unit 212 determines whether or not processing using the TS system decoder 232 and having higher priority than the TS-PS conversion is being executed. In other words, it is determined whether or not the TS reproducing processing in accordance with an operation is being executed. In the case where this processing is not being executed, namely, in the case where the TS system decoder 232 is not operating, the procedure proceeds to step S514. In the case where the processing is being executed, namely, in the case where the TS system decoder 232 is operating, the procedure returns to step S512, so as to wait until the resource is available by repeatedly making this determination.
In step S514, the system control unit 212 starts or resumes the aforementioned TS-PES conversion processing by using the TS system decoder 232.
In step S516, the system control unit 212 determines whether or not processing using the TS system decoder 232 and having higher priority than the TS-PS conversion has been activated. In other words, it is determined whether or not the TS reproducing processing in accordance with an operation has been activated. In the case where this processing has been activated, the procedure proceeds to step S518. In the case where this processing has not been activated, the procedure returns to step S516, so as to continuously execute the TS-PES conversion processing while repeatedly checking the start of use of the resource in any processing with higher priority.
In step S518, the system control unit 212 halts the TS-PES conversion processing and the procedure returns to step S512.
After accepting the TS-PS conversion request made through an operation by a user in step S510, in step S522, the system control unit 212 determines whether or not processing using the PS system encoder 238 and having higher priority than the TS-PS conversion is being executed. In other words, it is determined whether or not the analog picture recording processing in accordance with an operation or the analog picture recording processing in accordance with reservation is being executed. In the case where none of these processing is being executed, namely, in the case where the PS system encoder 238 is not operating, the procedure proceeds to step S524. In the case where any of these processing is being executed, namely, in the case where the PS system encoder 238 is operating, the procedure returns to the step S522, so as to wait until the resource is available by repeatedly making this determination.
In step S524, after a PES to be processed is recorded by the recording unit 56, the system control unit 212 starts or resumes the aforementioned PES-PS conversion processing by using the PS system encoder 238.
In step S526, the system control unit 212 determines whether or not processing using the PS system encoder 238 and having higher priority than the TS-PS conversion has been activated. In other words, it is determined whether or not the analog picture recording processing in accordance with an operation or the analog picture recording processing in accordance with reservation has been activated. In the case where any of these processing has been activated, the procedure proceeds to step S528. In the case where none of these processing has been activated, the procedure returns to step S526, so as to continuously execute the PES-PS conversion processing while repeatedly checking the start of use of the resource in any processing with higher priority.
In step S528, the system control unit 212 halts the PES-PS conversion processing and the procedure returns to step S522.
In this manner, the device of
In step S612, the system control unit 212 determines whether or not there remains any resource of the TS system decoder 232. In the case where there remains any resource of the TS system decoder 232, the procedure proceeds to step S514. In the case where there remains no resource of the TS system decoder 232, the procedure returns to step S612, so as to wait until a resource is available by repeatedly making this determination.
In step S616, the system control unit 212 determines whether or not there remains any resource of the TS system decoder 232. In the case where there remains any resource of the TS system decoder 232, the procedure returns to step S616 so as to continuously execute the TS-PES conversion processing. In the case where there remains no resource of the TS system decoder 232, the procedure proceeds to step S518.
In step S622, the system control unit 212 determines whether or not there remains any resource of the PS system encoder 238. In the case where there remains any resource of the PS system encoder 238, the procedure proceeds to step S524. In the case where there remains no resource of the PS system encoder 238, the procedure returns to step S622, so as to wait until a resource is available by repeatedly making this determination.
In step S626, the system control unit 212 determines whether or not there remains any resource of the PS system encoder 238. In the case where there remains any resource of the PS system encoder 238, the procedure returns to step S626, so as to continuously execute the PES-PS conversion processing. In the case where there remains no resource of the PS system encoder 238, the procedure proceeds to step S528.
In this manner, in the process flow of
In step S710, the system control unit 212 accepts a TS recording request made through an operation by a user. A TS recording request is a request for recording a TS received by the digital tuner. When a TS recording request is accepted, the stream control unit 242 starts, under control by the system control unit 212, processing for outputting a TS output from the digital tuner to the recording unit 56 to be recorded.
Furthermore, the system control unit 212 executes the TS-PS conversion processing in steps S512, S514, S516, S518, S522, S524, S526 and S528 in the same manner as in
In this manner, in the process flow of
In the process flow of
In the process flow of
As described so far, the TS-PS conversion can be efficiently performed in this invention, and hence, the invention is useful for a DVD/HDD recorder system or the like.
Number | Date | Country | Kind |
---|---|---|---|
2005-275968 | Sep 2005 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP06/17878 | 9/8/2006 | WO | 00 | 7/10/2007 |