Nothing Special   »   [go: up one dir, main page]

CN101194508A - recording and reproducing device - Google Patents

recording and reproducing device Download PDF

Info

Publication number
CN101194508A
CN101194508A CNA2006800201343A CN200680020134A CN101194508A CN 101194508 A CN101194508 A CN 101194508A CN A2006800201343 A CNA2006800201343 A CN A2006800201343A CN 200680020134 A CN200680020134 A CN 200680020134A CN 101194508 A CN101194508 A CN 101194508A
Authority
CN
China
Prior art keywords
service
recording
information
recorded
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2006800201343A
Other languages
Chinese (zh)
Inventor
渡边茂晃
川上义雄
铃木孝聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Publication of CN101194508A publication Critical patent/CN101194508A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

Conventionally, in a broadcast recording and reproduction apparatus that executes an application program in synchronization with service reproduction, only a single service is recorded even if the application program can be synchronized with a new service and continuously executed after a service switch. Therefore, when the service is switched during reproduction of an already-recorded service, the application program cannot perform its original operation. The present invention maintains normal operation of the application program by referring to synchronization information of the application program when the service that includes the application program is recorded, and simultaneously recording a service to which it is possible to switch.

Description

记录和再现装置 recording and reproducing device

技术领域technical field

本发明涉及一种广播记录和再现装置,其收集内容并再现所收集的内容。具体地,本发明涉及一种用于接收内容的设置,所述内容由相互同步的、复用到广播波中并发送的诸如视频、音频和程序这样的数据组成,其中,对广播波进行接收并且对视频、音频和数据进行收集;以及一种用于对内容进行再现、同时维持视频/音频和诸如程序这样的数据之间的同步的设置。The present invention relates to a broadcast recording and reproducing apparatus which collects contents and reproduces the collected contents. Specifically, the present invention relates to a setup for receiving contents consisting of data such as video, audio, and programs that are synchronized with each other, multiplexed into broadcast waves, and transmitted, wherein the broadcast waves are received And video, audio, and data are collected; and a setting for reproducing content while maintaining synchronization between video/audio and data such as programs.

背景技术Background technique

从广播站发出的广播波中包括各种内容。除在普通电视节目中使用的视频和音频之外,一些情况下在内容中包括数据。存在用于发送数据的若干方法,可以将其粗略地分为按照发生的顺序(chronologically)发送数据的方法和以每个设定的间隔(per set interval)重复发送数据的方法。在前一种按照发生的顺序发送数据的方法中,例如,以顺序的次序发送在时间进展上连续的数据。该方法适于在长时间段上发送大量数据,但是其缺点在于,由于发送的时机导致不能接收的数据就不能被再次接收。Various contents are included in broadcast waves sent from broadcast stations. In addition to video and audio used in general TV programs, data is included in the content in some cases. There are several methods for transmitting data, which can be roughly classified into a method of transmitting data chronologically and a method of repeatedly transmitting data every set interval (per set interval). In the former method of transmitting data in order of occurrence, for example, data that is continuous in time progression is transmitted in sequential order. This method is suitable for sending large amounts of data over a long period of time, but has the disadvantage that data that cannot be received due to the timing of the transmission cannot be received again.

另一方面,在后一种以设定的间隔重复发送数据的方法中,在固定的时间段内对相同的数据重复发送任意次。该方法的优点在于,在发送相同数据的时间段中,可以接收到任何一条重复发送的数据,从而接收时机不受限制。由BML所代表的数据广播以及通过DSM-CC数据传送带进行的文件发送是该方法的示例。并不知道接收者何时会选择频道并且开始接收,在广播中特别是这样。在按照发生的顺序发送数据的方法中,当接收的启动落在了发送时刻之后并且未能获得数据时,无法重新获得该数据。因此,当在广播波中与视频和音频一起发送诸如应用程序这样的数据时,以每个设定的间隔重复发送数据的方法是合适的。On the other hand, in the latter method of repeatedly transmitting data at set intervals, the same data is repeatedly transmitted any number of times within a fixed period of time. The advantage of this method is that any piece of data that is repeatedly sent can be received during the time period when the same data is sent, so the receiving opportunity is not limited. Data broadcasting represented by BML and file transmission by DSM-CC data carousel are examples of this method. It is not known when a receiver will select a channel and start receiving, especially in broadcasting. In the method of sending data in order of occurrence, when the start of reception falls behind the time of sending and data fails to be obtained, the data cannot be retrieved. Therefore, when data such as an application is transmitted together with video and audio in a broadcast wave, a method of repeatedly transmitting data at every set interval is suitable.

目前,已经开发并实施了如在上述方法中所用到的用于接收包括视频、音频和应用程序的广播波并与视频和音频同步地执行该应用程序的规范。可以接收所发送的应用程序,将应用程序加载到终端,并通过执行该应用程序实现各种附加功能,而不是仅仅观看视频和音频。这种发送应用程序并将应用程序加载到终端的方法也称为“下载”。Currently, a specification for receiving a broadcast wave including video, audio, and an application program and executing the application program in synchronization with the video and audio, as used in the above method, has been developed and implemented. It is possible to receive the transmitted application program, load the application program to the terminal, and realize various additional functions by executing the application program instead of just watching video and audio. This method of sending the application and loading the application to the terminal is also called "downloading".

例如,在欧洲已经开发出称为Digital Video Broadcasting-Multimedia Home Platform(DVD-MHP)ETSI ES 201812 vl.1.1(2003-12)的规范,并且已经根据该规范开始运行。此外,美国正在开发Open Cable Application Platform(OCAP)OC-SP-OCAP1.0-I14-050119,其在有线广播环境中提供了相同的方案,并且也要开始实际的运行。在这些规范中,应用程序是用Java语言编写的。在终端中提供用于调谐、图形显示等的各种应用编程接口(API),并且通过调用这些API,Java应用程序能够控制这些功能。For example, a specification called Digital Video Broadcasting-Multimedia Home Platform (DVD-MHP) ETSI ES 201812 vl.1.1 (2003-12) has been developed in Europe, and operation has been started according to the specification. In addition, the United States is developing Open Cable Application Platform (OCAP) OC-SP-OCAP1.0-I14-050119, which provides the same solution in the cable broadcasting environment, and will also start actual operation. In these specifications, applications are written in the Java language. Various application programming interfaces (APIs) for tuning, graphic display, etc. are provided in the terminal, and by calling these APIs, Java applications can control these functions.

此外,北美正在开发OCAP-DVROC-SP-OCAP-DVR-I01-040524规范,其目的在于为OCAP规范添加用于记录和再现内容的功能。利用该规范,作为有线电视广播发送的视频、音频和与其同步并被执行的Java应用程序被记录为内容,而且,以与被记录的内容被直接从广播波中再现相同的方式进行再现。以与直接从广播波中再现相同的方式,该应用程序与视频和音频同步地再现。In addition, the OCAP-DVROC-SP-OCAP-DVR-I01-040524 specification is being developed in North America for the purpose of adding functions for recording and reproducing content to the OCAP specification. With this specification, video, audio, and Java applications synchronized with and executed as cable TV broadcasting are recorded as content, and reproduction is performed in the same manner as recorded content is reproduced directly from broadcast waves. In the same way as reproducing directly from broadcast waves, this application reproduces in synchronization with video and audio.

此外,利用OCAP-DVR,通过将广播内容记录到高速可随机存取存储介质(诸如硬盘、半导体存储器等)中,实现了内容的特技播放(trick play)。这里,特技播放指用于以任意速度、从任意位置等来再现内容的功能,诸如快进、倒退、慢动作、暂停、跳过等。利用OCAP-DVR,从广播波加载到终端的应用程序能够控制内容的记录和特技播放。换句话说,在终端中提供了用于进行记录和特技播放的API,并且Java应用程序通过调用这些API来控制每个功能。Furthermore, with the OCAP-DVR, trick play of content is realized by recording broadcast content into a high-speed random-access storage medium such as a hard disk, a semiconductor memory, and the like. Here, trick play refers to a function for reproducing content at an arbitrary speed, from an arbitrary position, etc., such as fast forward, rewind, slow motion, pause, skip, and the like. With OCAP-DVR, an application loaded to the terminal from the broadcast wave can control the recording and trick-play of content. In other words, APIs for recording and trick-play are provided in the terminal, and Java applications control each function by calling these APIs.

在OCAP-DVR中,把视频、音频以及与其同步并执行的应用程序合在一起被定义为一个服务。当广播接收终端再现服务时,与视频和音频的再现同步地执行该应用程序。通常,在发生服务切换的情况下,要被切换到的服务包含不同的应用程序,因此终止到那时为止执行的应用程序。然而,在多个服务中包含有相同的应用程序的情况下,即使服务发生切换,也有可能继续执行新服务内的该应用程序。In OCAP-DVR, video, audio, and applications synchronized and executed together are defined as a service. The application is executed in synchronization with the reproduction of video and audio when the broadcast receiving terminal reproduces the service. Usually, in the case of service switching, the service to be switched to contains a different application, so the application executed until then is terminated. However, when the same application is included in a plurality of services, even if the service is switched, the application in the new service may continue to be executed.

例如,在服务A中包括有视频A、音频A以及应用程序A,在一个不同的服务B中包括有视频B、音频B以及应用程序A。应用程序A中写有用于在服务A和服务B之间进行切换的程序代码。在再现服务A时,执行应用程序A;此后,执行前面提到的程序代码,即使服务发生切换且服务B得以再现,应用程序A也继续执行。注意,利用OCAP-DVR,通过适当设置应用程序的同步信息中的标志位,可以在发生服务切换的情况下终止应用程序A。For example, service A includes video A, audio A, and application A, and a different service B includes video B, audio B, and application A. Program code for switching between service A and service B is written in application A. When service A is reproduced, application A is executed; thereafter, the aforementioned program code is executed, and application A continues to execute even if the service is switched and service B is reproduced. Note that with OCAP-DVR, application A can be terminated in case of service switching by properly setting the flag bit in the synchronization information of the application.

利用OCAP-DVR的记录功能,可以记录广播的服务。然而,利用OCAP-DVR,当指定要记录的服务时指定了单个服务或频道标识符;因此,在再现两个或更多个服务的一个应用程序的情况下,会发生故障。换句话说,要使用上述说明,在指定要记录服务A的情况下,不会记录服务B。这样,当在再现服务A期间执行写入应用程序A中的用于从服务A切换到服务B的程序代码时,服务B不能再现,出现异常状况。Using the recording function of OCAP-DVR, broadcast services can be recorded. However, with OCAP-DVR, a single service or channel identifier is specified when a service to be recorded is specified; therefore, in the case of one application reproducing two or more services, a malfunction occurs. In other words, to use the above instructions, where Service A is specified to be documented, Service B will not be documented. Thus, when the program code written in the application program A for switching from service A to service B is executed during reproduction of service A, service B cannot be reproduced and an abnormal situation occurs.

有鉴于此,本发明的目的是提供一种记录和再现装置以及一种记录和再现方法,其中,通过在记录包括应用程序的服务时参考该应用程序的同步信息并且同时记录可能要切换到的服务,即使实际发生服务切换时,也不会出现异常状况。In view of the above, an object of the present invention is to provide a recording and reproducing apparatus and a recording and reproducing method in which, by referring to synchronization information of an application when recording a service including the application and simultaneously recording a service that may be switched to service, even when a service switchover actually occurs, there will be no abnormal conditions.

发明内容Contents of the invention

为达到上述目的,本发明的记录和再现装置包括:接收单元,用于接收多个服务,每个服务包括视频信息、音频信息、程序、用于将视频信息和音频信息与该程序同步的同步信息、和用于识别该视频信息、音频信息、程序以及同步信息的服务要素识别信息;记录单元,用于将所接收的多个服务中指定的预定服务记录到记录介质中;再现单元,用于对包括在接收到的预定服务或记录在记录介质中的预定服务中的视频信息和音频信息进行再现;以及程序执行单元,用于执行包括在接收到的预定服务或记录在记录介质中的预定服务中的程序,并且,该记录和再现装置:通过根据同步信息执行在记录在记录介质中的预定服务中所包括的程序,与包括在预定服务中的程序同步地再现包括在预定服务中的视频信息和音频信息;在记录单元正在记录预定服务时同步信息或服务要素识别信息发生更新的情况下,重新获取与所接收的多个服务中指定的预定服务相对应的服务要素识别信息;并且基于所获取的服务要素识别信息分离出所指定的预定服务,并使记录单元记录所分离的服务。To achieve the above objects, the recording and reproducing apparatus of the present invention includes: a receiving unit for receiving a plurality of services, each service including video information, audio information, a program, a synchronization device for synchronizing the video information and audio information with the program Information, and service element identification information used to identify the video information, audio information, program, and synchronization information; a recording unit, configured to record a predetermined service specified in a plurality of services received in a recording medium; a reproducing unit, using for reproducing video information and audio information included in the received predetermined service or the predetermined service recorded in the recording medium; and a program executing unit for executing the received predetermined service or the predetermined service recorded in the recording medium The program in the predetermined service, and the recording and reproducing apparatus: reproduces the program included in the predetermined service in synchronization with the program included in the predetermined service by executing the program included in the predetermined service recorded in the recording medium according to the synchronization information the video information and audio information; when the synchronization information or service element identification information is updated when the recording unit is recording the scheduled service, reacquire the service element identification information corresponding to the predetermined service specified in the received multiple services; And separate the specified predetermined service based on the acquired service element identification information, and cause the recording unit to record the separated service.

因此,通过在记录包括应用程序的服务时参考应用程序的同步信息、并且同时记录可能切换到的服务,即使当实际发生服务切换时,也可以防止出现异常状况。Therefore, by referring to the synchronization information of the application program when recording the service including the application program, and simultaneously recording the service that may be switched to, even when the service switching actually occurs, an abnormal situation can be prevented from occurring.

此外,在所述记录单元正在进行记录的时候同步信息或服务要素识别信息发生更新的情况下,该记录和再现装置可以重新获取与接收的多个服务中指定的预定服务相对应的服务要素识别信息,并且可以基于所获取的服务要素识别信息分离出指定的预定服务,并使所述记录单元记录包括在所分离出的服务中的视频信息、音频信息、程序、同步信息以及服务要素识别信息。In addition, in a case where the synchronization information or the service element identification information is updated while the recording unit is recording, the recording and reproducing apparatus may reacquire the service element identification corresponding to a predetermined service specified among the received plurality of services. information, and may separate a designated predetermined service based on the acquired service element identification information, and cause the recording unit to record video information, audio information, programs, synchronization information, and service element identification information included in the separated service .

此外,在所述记录单元正在进行记录的时候同步信息或服务要素识别信息发生更新的情况下,该记录和再现装置可以重新获取与接收的多个服务中指定的预定服务相对应的服务要素识别信息,并且可以基于所获取的服务要素识别信息分离出指定的预定服务,并使所述记录单元记录与所分离出的服务相对应的传输流(transport stream)。In addition, in a case where the synchronization information or the service element identification information is updated while the recording unit is recording, the recording and reproducing apparatus may reacquire the service element identification corresponding to a predetermined service specified among the received plurality of services. information, and may separate a specified predetermined service based on the acquired service element identification information, and cause the recording unit to record a transport stream corresponding to the separated service.

此外,包括在指定要被记录的第一个服务中的程序也可以包括在第二服务中;同步信息可以包括继续执行信息,其指示在再现期间第一服务切换到第二服务并且再现第二服务时,是否可以继续执行包括在第一服务中的程序;并且,在与第一服务中包括的程序相对应的同步信息中包括的继续执行信息指示即使在切换到第二服务并且再现第二服务的时候也可以继续执行该程序的情况下,该记录和再现装置可以基于所获取的服务要素识别信息,除了指定的第一服务之外还将第二服务分离为预定服务,并使记录单元记录所分离出的服务。In addition, the program included in the first service specified to be recorded may also be included in the second service; the synchronization information may include resume information indicating that the first service is switched to the second service during reproduction and the second service is reproduced. Whether it is possible to continue executing the program included in the first service during the service; and, the continuation information included in the synchronization information corresponding to the program included in the first service indicates that even after switching to the second service and reproducing the second In the case where the program can be continuously executed during the service, the recording and reproducing apparatus may separate the second service into predetermined services in addition to the specified first service based on the acquired service element identification information, and make the recording unit Document the separated services.

因此,在该程序属于即使发生服务切换仍可继续执行的那类程序的情况下,第二服务也可以被记录在记录介质中,从而该程序不会落入到在服务切换时不可继续执行的状态。Therefore, in the case where the program belongs to the type of program that can continue to be executed even if service switching occurs, the second service can also be recorded in the recording medium so that the program does not fall into a program that cannot continue to be executed at the time of service switching. state.

此外,可以只有在能够允许同时记录第一服务和第二服务的情况下,该记录和再现装置才基于所获取的服务要素识别信息,除了指定的第一服务之外还将第二服务分离为预定服务,并且使记录单元记录所分离出的服务。Furthermore, the recording and reproducing apparatus may separate the second service into The service is reserved, and the recording unit is made to record the separated service.

此外,根据本发明的记录和再现装置包括:接收单元,用于接收多个服务,每个服务包括视频信息、音频信息、程序、用于将视频信息和音频信息与该程序同步的同步信息、和用于识别该视频信息、音频信息、程序以及同步信息的服务要素识别信息;记录单元,用于将所接收的多个服务中指定的第一服务记录到记录介质中;再现单元,用于对包括在接收到的第一服务或记录在记录介质中的第一服务中的视频信息和音频信息进行再现;以及程序执行单元,用于执行包括在接收到的第一服务或记录在记录介质中的第一服务中的程序,并且,该记录和再现装置通过根据同步信息执行在记录在记录介质中的第一服务中所包括的程序,与包括在第一服务中的程序同步地再现包括在第一服务中的视频信息和音频信息;包括在指定要被记录的第一个服务中的程序也包括在第二服务中;同步信息包括继续执行信息,其指示在再现期间第一服务切换到第二服务并且再现第二服务时,是否可以继续执行包括在第一服务中的程序;并且,在与第一服务中包括的程序相对应的同步信息中包括的继续执行信息指示即使在切换到第二服务并且再现第二服务的时候也可以继续执行该程序的情况下,该记录和再现装置基于所获取的服务要素识别信息,除了指定的第一服务之外还将第二服务分离为预定服务,并使记录单元记录所分离出的服务。Furthermore, the recording and reproducing apparatus according to the present invention includes: a receiving unit for receiving a plurality of services each including video information, audio information, a program, synchronization information for synchronizing the video information and audio information with the program, and service element identification information for identifying the video information, audio information, program, and synchronous information; the recording unit is used to record the first service specified in the received multiple services in the recording medium; the reproducing unit is used for reproducing video information and audio information included in the received first service or the first service recorded in the recording medium; and a program execution unit for executing the received first service or recorded in the recording medium the program included in the first service in the recording medium, and the recording and reproducing apparatus reproduces the program included in the first service in synchronization with the program included in the first service by executing the program included in the first service recorded in the recording medium according to the synchronization information Video information and audio information in the first service; the program included in the first service designated to be recorded is also included in the second service; the synchronization information includes resume information indicating that the first service is switched during reproduction When reaching the second service and reproducing the second service, whether it is possible to continue executing the program included in the first service; and, the continuation information included in the synchronization information corresponding to the program included in the first service indicates that even after switching In a case where the program can continue to be executed when the second service is reached and the second service is reproduced, the recording and reproducing apparatus separates the second service into The service is subscribed, and the recording unit records the separated service.

因此,通过在记录包括应用程序的服务时参考应用程序的同步信息、并且同时记录可能切换到的服务,即使当实际发生服务切换时,也可以防止出现异常状况。Therefore, by referring to the synchronization information of the application program when recording the service including the application program, and simultaneously recording the service that may be switched to, even when the service switching actually occurs, an abnormal situation can be prevented from occurring.

此外,包括在指定要被记录的第一个服务中的程序也可以包括在第二服务中;同步信息可以包括继续执行信息,其指示在再现期间第一服务切换到第二服务并且再现第二服务时,是否可以继续执行包括在第一服务中的程序;并且,在与第一服务中包括的程序相对应的同步信息中包括的继续执行信息指示即使在切换到第二服务并且再现第二服务的时候也可以继续执行该程序的情况下,该记录和再现装置可以基于所获取的服务要素识别信息,除了指定的第一服务之外还将第二服务分离为预定服务,并使记录单元记录与所分离出的服务相对应的传输流。In addition, the program included in the first service specified to be recorded may also be included in the second service; the synchronization information may include resume information indicating that the first service is switched to the second service during reproduction and the second service is reproduced. Whether it is possible to continue executing the program included in the first service during the service; and, the continuation information included in the synchronization information corresponding to the program included in the first service indicates that even after switching to the second service and reproducing the second In the case where the program can be continuously executed during the service, the recording and reproducing apparatus may separate the second service into predetermined services in addition to the specified first service based on the acquired service element identification information, and make the recording unit Transport streams corresponding to the separated services are recorded.

此外,可以只有在能够允许同时记录第一服务和第二服务的情况下,该记录和再现装置才基于所获取的服务要素识别信息,除了指定的第一服务之外还将第二服务分离为预定服务,并且使所述记录单元记录与所分离出的服务相对应的传输流。Furthermore, the recording and reproducing apparatus may separate the second service into A service is reserved, and the recording unit is caused to record a transport stream corresponding to the separated service.

此外,在把服务记录到记录介质中的情况下,该记录单元可以将服务的文件格式转换为另一种格式,并与该服务一起记录了该文件的有效期。Furthermore, in the case of recording the service into the recording medium, the recording unit may convert the file format of the service into another format, and record the validity period of the file together with the service.

因此,例如,可以将程序和同步信息记录为文件;从而,可以节省记录介质中的空间,并且该程序不会落入到在服务切换时不可继续执行的状态。Therefore, for example, the program and synchronization information can be recorded as a file; thus, space in the recording medium can be saved, and the program does not fall into a state where execution cannot be continued at the time of service switching.

此外,该记录单元可以在每次同步信息或服务要素识别信息被更新时重新开始记录服务。In addition, the recording unit may restart the recording service every time the synchronization information or the service element identification information is updated.

注意,本发明不仅可以实现为上述记录和再现装置,而且可以实现为记录和再现方法、用于该方法的程序以及存储该程序的存储介质。Note that the present invention can be realized not only as the recording and reproducing apparatus described above but also as a recording and reproducing method, a program for the method, and a storage medium storing the program.

有关本申请技术背景的进一步信息Further information on the technical background of this application

2005年6月6日提交的美国临时申请No.60/687624以及2005年12月19日提交的美国临时申请No.60/751374的公开内容,包括说明书、附图以及权利要求书,被通过引用全部并入此处。The disclosures of U.S. Provisional Application No. 60/687624, filed June 6, 2005, and U.S. Provisional Application No. 60/751,374, filed December 19, 2005, including specification, drawings, and claims, are incorporated by reference All incorporated here.

附图说明Description of drawings

从下面结合示出了本发明的特定实施例的附图进行的说明中,本发明的这些和其它目的、优点和特性将变得显而易见。附图中:These and other objects, advantages and characteristics of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings showing specific embodiments of the invention. In the attached picture:

图1是根据本发明的广播系统的结构图;Fig. 1 is a structural diagram of a broadcasting system according to the present invention;

图2是在根据本发明的有线电视系统中,如何使用在广播系统端系统与终端装置之间的通信中所使用的频带的一个示例;2 is an example of how to use a frequency band used in communication between a broadcasting system end system and a terminal device in a cable TV system according to the present invention;

图3是在根据本发明的有线电视系统中,如何使用在广播系统端系统与终端装置之间的通信中所使用的频带的一个示例;3 is an example of how to use a frequency band used in communication between a broadcasting system end system and a terminal device in a cable TV system according to the present invention;

图4是在根据本发明的有线电视系统中,如何使用在广播系统端系统与终端装置之间的通信中所使用的频带的一个示例;4 is an example of how to use a frequency band used in communication between a broadcasting system end system and a terminal device in a cable television system according to the present invention;

图5是由MPEG-2规范所预定义的TS分组的结构图;Figure 5 is a structural diagram of TS packets predefined by the MPEG-2 specification;

图6是MPEG-2传输流的示意图;Figure 6 is a schematic diagram of an MPEG-2 transport stream;

图7是当在TS分组中携带由MPEG-2规范预定义的PES分组时的分区(division)示例;Figure 7 is an example of a division (division) when carrying a PES packet predefined by the MPEG-2 specification in a TS packet;

图8是当用一个TS分组传输由MPEG-2规范预定义的MPEG-2分段时的分区示例;FIG. 8 is an example of partitioning when MPEG-2 segments predefined by the MPEG-2 specification are transmitted with one TS packet;

图9是由MPEG-2规范预定义的MPEG-2分段的结构图;Figure 9 is a structural diagram of the MPEG-2 segment predefined by the MPEG-2 specification;

图10是使用由MPEG-2规范预定义的MPEG-2分段的示例;Figure 10 is an example of using MPEG-2 segments predefined by the MPEG-2 specification;

图11是使用由MPEG-2规范预定义的PMT的示例;Figure 11 is an example using the PMT predefined by the MPEG-2 specification;

图12是使用由MPEG-2规范预定义的PAT的示例;Figure 12 is an example using the PAT predefined by the MPEG-2 specification;

图13是根据本发明的广播记录和再现装置的硬件结构的结构示例;13 is a structural example of a hardware structure of a broadcast recording and reproducing apparatus according to the present invention;

图14是根据本发明的终端装置1200的硬件结构中的输入单元1310的面板示例;FIG. 14 is an example of a panel of an input unit 1310 in a hardware structure of a terminal device 1200 according to the present invention;

图15是在根据本发明的记录和再现装置中在记录时的设备连接的示例;FIG. 15 is an example of equipment connection at the time of recording in the recording and reproducing apparatus according to the present invention;

图16是在根据本发明的记录和再现装置中在再现时的设备连接的示例;FIG. 16 is an example of device connection at the time of reproduction in the recording and reproduction apparatus according to the present invention;

图17是示出根据本发明在终端装置中存储的程序的结构的图;17 is a diagram showing the structure of a program stored in a terminal device according to the present invention;

图18是根据本发明由终端装置执行的EPG的示例;18 is an example of an EPG executed by a terminal device according to the present invention;

图19是根据本发明由终端装置执行的EPG的示例;FIG. 19 is an example of an EPG executed by a terminal device according to the present invention;

图20是根据本发明存储在第二存储单元中的信息的示例;20 is an example of information stored in a second storage unit according to the present invention;

图21是根据本发明的记录信息管理表的示例;FIG. 21 is an example of a record information management table according to the present invention;

图22是示出根据本发明由DVB-MHP规定的AIT的细节的示意图;FIG. 22 is a diagram showing details of AIT specified by DVB-MHP according to the present invention;

图23是示出根据本发明以DSMCC格式发送的文件系统的示意图;Fig. 23 is a schematic diagram showing a file system transmitted in DSMCC format according to the present invention;

图24是示出根据本发明在终端装置中存储的程序的结构的图;24 is a diagram showing the structure of a program stored in a terminal device according to the present invention;

图25是在根据本发明的记录和再现装置中在记录时的设备连接的示例;FIG. 25 is an example of equipment connection at the time of recording in the recording and reproducing apparatus according to the present invention;

图26是根据本发明的广播记录和再现装置的硬件结构的结构示例;26 is a structural example of a hardware structure of a broadcast recording and reproducing apparatus according to the present invention;

图27是在根据本发明的记录和再现装置中在记录时的设备连接的示例;FIG. 27 is an example of device connection at the time of recording in the recording and reproducing apparatus according to the present invention;

图28是在根据本发明的记录和再现装置中在再现时的设备连接的示例;FIG. 28 is an example of device connection at the time of reproduction in the recording and reproduction apparatus according to the present invention;

图29是根据本发明的记录信息管理表的示例;Fig. 29 is an example of a record information management table according to the present invention;

图30是示出根据本发明的AIT的扩展细节的示例图;FIG. 30 is an exemplary diagram showing details of expansion of the AIT according to the present invention;

图31是根据本发明的记录过程的流程图;Figure 31 is a flowchart of a recording process according to the present invention;

图32是根据本发明的记录过程的流程图;Figure 32 is a flowchart of a recording process according to the present invention;

图33是根据本发明的记录过程的流程图;Figure 33 is a flowchart of a recording process according to the present invention;

图34是根据本发明的记录过程的流程图;Figure 34 is a flowchart of a recording process according to the present invention;

图35是根据本发明的记录过程的流程图;Figure 35 is a flowchart of a recording process according to the present invention;

图36是根据本发明的记录过程的流程图;Figure 36 is a flowchart of a recording process according to the present invention;

图37是根据本发明的记录过程的流程图;Figure 37 is a flowchart of a recording process according to the present invention;

图38是根据本发明的记录过程的流程图;以及Figure 38 is a flowchart of a recording process according to the present invention; and

图39是根据本发明的记录过程的流程图。Fig. 39 is a flow chart of the recording process according to the present invention.

具体实施方式Detailed ways

根据本发明的记录和再现装置记录由视频、音频、程序以及用于使视频、音频和程序同步的同步信息组成的内容,该同步信息包括继续执行信息,指示即使当该内容切换到另一个内容时也可以继续执行该程序;该装置包括:用于存储内容的存储介质以及内容存储单元,其中,所述内容存储单元在继续执行信息指示能够继续执行该程序的情况下,在该存储介质中存储包括在内容传输介质中的所有内容,而在其它情况下,在所述存储介质中仅存储指定的内容。The recording and reproducing apparatus according to the present invention records content composed of video, audio, program, and synchronization information for synchronizing the video, audio, and program, the synchronization information including continue execution information indicating that even when the content is switched to another content The program may also continue to be executed; the device includes: a storage medium for storing content and a content storage unit, wherein the content storage unit, in the case where the continuation of execution information indicates that the program can continue to be executed, stores the content in the storage medium All content included in the content transmission medium is stored, while in other cases only specified content is stored in the storage medium.

因此,当该程序属于即使在该内容切换到另一个内容时也可以被继续执行的那种类型时,内容传输介质中的所有内容都被存储在该存储介质中,因而该程序不会落入在切换到另一内容时不可继续执行的状态。Therefore, when the program is of a type that can be continuously executed even when the content is switched to another content, all the content in the content transmission medium is stored in the storage medium, so that the program does not fall into A state where execution cannot continue when switching to another content.

另外,该内容记录和再现装置包括存储允许单元保持单元,其保持有允许在存储介质中存储多个内容的可分离的存储允许单元;在继续执行信息指示可以继续执行程序的情况下,内容存储单元询问是否允许存储内容传输介质中包括的所有内容,在允许的情况下将内容传输介质中包括的所有内容存储在存储介质中,而在其它情况下仅将指定的内容存储在存储介质中。In addition, the content recording and reproducing apparatus includes a storage permission unit holding unit that holds a detachable storage permission unit that allows storage of a plurality of contents in the storage medium; in a case where the continuation information indicates that the program can be continuously executed, the content storage The unit inquires whether it is permitted to store all the contents included in the content transmission medium, stores all the contents included in the content transmission medium in the storage medium if permitted, and stores only specified contents in the storage medium in other cases.

因此,在允许将内容传输介质中的所有内容存储到存储介质中之后,才发生实际的存储;所以,考虑了存储介质的容量来进行记录,并且该程序也不会落入切换到另一内容时不可继续执行的状态。Therefore, the actual storage takes place after allowing all content in the content transmission medium to be stored in the storage medium; therefore, the recording is made taking into account the capacity of the storage medium, and the procedure does not fall into switching to another content A state in which execution cannot continue.

而且,该内容记录和再现装置包括内容选择单元保持单元,其保持有用于选择要在存储介质中存储哪个内容的可分离的内容选择单元,并且内容存储单元仅将内容选择单元基于能够指定内容传输介质中包括的所有内容的信息而判断为要记录的那些内容记录在存储介质中。Also, the content recording and reproducing apparatus includes a content selection unit holding unit that holds a detachable content selection unit for selecting which content is to be stored in the storage medium, and the content storage unit transfers only the content selection unit based on the content capable of specifying the content. Those contents judged to be recorded are recorded in the storage medium based on the information of all the contents included in the medium.

因而,不是存储内容传输流中的所有内容,而是仅将选定的内容存储到存储介质中;因此,可以保留存储介质中的空间,并且该程序也不会落入在切换到另一内容时不可继续执行的状态。Thus, instead of storing all the content in the content delivery stream, only selected content is stored on the storage medium; thus, space in the storage medium can be reserved and the program does not fall into the A state in which execution cannot continue.

另外,该内容记录和再现装置包括内容选择单元保持单元,其保持有用于选择要在存储介质中存储哪个内容的可分离的内容选择单元;在内容选择单元还未基于能够指定内容传输介质中包括的所有内容的信息而指定要记录的内容的情况下,内容存储单元在继续执行信息指示能够继续执行程序的情况下询问是否允许存储内容传输介质中包括的所有内容,并在允许的情况下将内容传输介质中包括的所有内容存储在存储介质中,在其它情况下仅将指定的内容存储在存储介质中。In addition, the content recording and reproducing apparatus includes a content selection unit holding unit that holds a detachable content selection unit for selecting which content is to be stored in the storage medium; In the case where the content to be recorded is designated by the information of all the contents, the content storage unit inquires whether to allow the storage of all the contents included in the content transmission medium in the case where the continuation information indicates that the program can be continued, and if permitted, sends the All content included in the content transmission medium is stored in the storage medium, and in other cases only specified content is stored in the storage medium.

因此,可以指定是将内容传输流中的所有内容存储在存储介质中还是仅存储选定的内容;因此,可以保留存储介质中的空间,并且该程序也不会落入在切换到另一内容时不可继续执行的状态。Thus, it is possible to specify whether to store all content in the content delivery stream on the storage medium or only selected content; thus, space in the storage medium is preserved and the program does not fall into the A state in which execution cannot continue.

另外,同步信息包括继续执行信息,其指示即使当内容切换到另一内容时也能够连续执行该程序;以及内容指定信息,用于指定该程序所需的另一内容,并且,该记录和再现装置包括内容存储单元,该内容存储单元在继续执行信息指示能够继续执行该程序的情况下,将内容指定信息所指定的内容存储在存储介质中,而在其它情况下仅将指定的内容存储在存储介质中。In addition, the synchronization information includes continuation information indicating that the program can be continuously executed even when the content is switched to another content; and content specifying information for specifying another content necessary for the program, and the recording and reproduction The apparatus includes a content storage unit that stores, in a storage medium, the content specified by the content specifying information in a case where the continuation of execution information indicates that the program can be continued to be executed, and stores only the specified content in a storage medium in other cases. in the storage medium.

因此,可以能指定该程序所需的另一内容;因此,可以保留存储介质的空间,并且该程序也不会落入在切换到另一内容时不可继续执行的状态。Therefore, it is possible to specify another content required by the program; therefore, the space of the storage medium can be reserved, and the program does not fall into a state where execution cannot be continued when switching to another content.

此外,在继续执行信息指示能够继续执行该程序的情况下,该内容存储单元询问是否允许存储由内容指定信息指定的内容,在允许的情况下,将由内容指定信息指定的内容存储在存储介质中,而在其它情况下仅将指定的内容存储在存储介质中。Furthermore, in a case where the continuation information indicates that the program can be continuously executed, the content storage unit inquires whether to allow storage of the content specified by the content specifying information, and stores the content specified by the content specifying information in the storage medium in the case of permission. , and in other cases only the specified content is stored in the storage medium.

因此,可以指定该程序所需的另一内容;所以,可以考虑了保留存储介质中的空间而进行记录,并且该程序也不会落入在切换到另一内容时不可继续执行的状态。Therefore, another content required by the program can be specified; therefore, recording can be performed in consideration of reserving space in the storage medium, and the program does not fall into a state where execution cannot be continued when switching to another content.

此外,除了可以指定该程序所需的另一内容,也可以选择要实际存储的内容;因此,可以保留存储介质的空间,并且该程序不会落入在切换到另一内容时不可继续执行的状态。In addition, in addition to specifying another content required by the program, it is also possible to select the content to be actually stored; therefore, the space of the storage medium can be reserved, and the program does not fall into a place where execution cannot continue when switching to another content. state.

此外,在内容选择单元还未基于内容指定信息而指定要记录的内容的情况下,内容存储单元在继续执行信息指示能够继续执行该程序的情况下询问是否允许存储由内容指定信息指定的内容,并且在允许的情况下将由内容指定信息指定的内容存储在存储介质中,而在其它情况下仅将指定的内容存储在存储介质中。In addition, in a case where the content selection unit has not specified the content to be recorded based on the content specification information, the content storage unit inquires whether to allow storage of the content specified by the content specification information if the continuation information indicates that the program can be continuously executed, And the content designated by the content designation information is stored in the storage medium in the case of permission, and only the designated content is stored in the storage medium in other cases.

因此,当指定了程序所需的另一内容时,也可以选择实际要存储的内容,甚至在不选择内容的情况下,也可以考虑了在存储介质中保留空间而进行记录,并且该程序不会落入在切换到另一内容时不可继续执行的状态。Therefore, when another content required by the program is specified, the content to be actually stored can also be selected, and even in the case of not selecting the content, recording can be performed in consideration of reserving a space in the storage medium, and the program does not will fall into a state where execution cannot continue when switching to another content.

此外,当内容存储单元将内容传输介质中包括的所有内容存储在存储介质中时,直接存储了该内容传输介质。Furthermore, when the content storage unit stores all the content included in the content transmission medium in the storage medium, the content transmission medium is directly stored.

因此,当存储内容传输流中包括的所有内容时,存储了该内容传输流本身;因此,可以简化结构,并且该程序也不会落入在切换到另一内容时不可继续执行的状态。Therefore, when all the contents included in the content transport stream are stored, the content transport stream itself is stored; therefore, the structure can be simplified, and the program does not fall into a state where execution cannot be continued when switching to another content.

此外,内容存储单元在存储介质中存储满足以下条件的所有内容:这样的内容包括具有某值的同步信息作为组成要素,在该同步信息中至少一条继续执行信息指示能够继续执行该程序。Furthermore, the content storage unit stores in the storage medium all content satisfying the condition that such content includes as a constituent element synchronization information having a value in which at least one piece of continuation information indicates that the program can be continued.

因此,当指定了即使该内容改变为不同内容时也能够继续执行的这类程序时,将内容传输流中被认为必需的内容存储在存储介质中;所以该程序不会落入在切换到另一内容时不可继续执行的状态。Therefore, when such a program that can continue to be executed even when the content is changed to a different content is specified, the content considered necessary in the content delivery stream is stored in the storage medium; A state in which execution cannot continue.

此外,在具有指定内容作为组成要素的同步信息中的继续执行信息指示能够继续执行该程序的情况下,内容存储单元询问是否允许将满足以下条件的所有内容存储在存储介质中:这样的内容包括具有某值的同步信息作为组成要素,在该同步信息中至少一条继续执行信息指示能够继续执行该程序;并且,在允许的情况下,将满足以下条件的所有内容存储在存储介质中:这样的内容包括具有某值的同步信息作为组成要素,在该同步信息中至少一条继续执行信息指示能够继续执行该程序;而在其它情况下仅将指定的内容存储在所述存储介质中。Furthermore, in the case where the continuation information in the synchronization information having specified content as a constituent element indicates that the program can be continued, the content storage unit inquires whether to allow storage in the storage medium of all content satisfying the condition that such content includes Synchronization information having a value as a constituent element in which at least one piece of continuation information indicates that the program can be continued; and, where permitted, storing in the storage medium all contents satisfying the following conditions: such The content includes, as a constituent element, synchronization information having a value in which at least one piece of continuation information indicates that the program can be continued; and in other cases only specified content is stored in the storage medium.

因此,在就是否将内容传输流中被认为必需的内容存储在存储介质中得到允许之后,才发生实际的存储;因此,可以考虑到保留存储介质中的空间而进行记录,并且该程序也不会落入在切换到另一内容时不可继续执行的状态。Therefore, the actual storage takes place after permission is obtained as to whether to store the content deemed necessary in the content delivery stream in the storage medium; therefore, it can be recorded in consideration of reserving the space in the storage medium, and the procedure does not will fall into a state where execution cannot continue when switching to another content.

此外,内容存储单元仅将内容选择单元基于以下信息而判断为要记录的内容存储在存储介质中:这样的信息能够指定包含具有某值的同步信息作为组成要素的内容,在该同步信息中至少一条继续执行信息指示能够继续执行该程序。Furthermore, the content storage unit stores in the storage medium only the content that the content selection unit judges to be recorded based on information capable of specifying content including, as a constituent element, synchronous information having a value in which at least A continuation message indicates that the program can continue.

因此,不是存储内容传输流中被认为必需的所有内容,而是仅将所选定的内容存储在存储介质中,所以可以保留存储介质中的空间,并且该程序也不会落入在切换到另一内容时不可继续执行的状态。Therefore, instead of storing all the content considered necessary in the content delivery stream, only selected content is stored on the storage medium, so space in the storage medium can be reserved and the program does not fall into the trap of switching to Another content is a state where execution cannot continue.

此外,在内容选择单元还未基于特定信息(该信息能够指定包含具有某值的同步信息作为组成要素的内容,在该同步信息中至少一条继续执行信息指示能够继续执行该程序)而指定要记录的内容的情况下,内容存储单元在继续执行信息指示能够继续执行该程序的情况下,询问是否允许将包含具有某值的同步信息(其中至少一条继续执行信息指示能够继续执行该程序)作为组成要素的所有内容存储在所述存储介质中,并且在允许的情况下,将包含具有某值的同步信息(其中至少一条继续执行信息指示能够继续执行该程序)作为组成要素的所有内容存储在该存储介质中,而在其它情况下仅将指定的内容存储在该存储介质中。In addition, in the content selection unit, the content to be recorded has not been specified based on the specific information that can specify, as a constituent element, content including synchronous information having a value in which at least one piece of continuation information indicates that the program can be continued. In the case of the content of the content, the content storage unit inquires whether to allow the inclusion of synchronization information having a certain value (wherein at least one piece of continuation information indicates that the program can be continued) as a component if the continuation information indicates that the program can be continued. All the contents of the elements are stored in the storage medium, and if permitted, all the contents including synchronization information having a value (wherein at least one piece of continuation information indicates that the program can be continued) are stored in the storage medium as constituent elements. storage medium, and in other cases only the specified content is stored on that storage medium.

因此,可以指定在存储介质中是存储内容传输流中被认为必需的所有内容、还是仅存储选定的内容,所以,可以保留存储介质中的空间,并且该程序也不会落入在切换到另一内容时不可继续执行的状态。Thus, it is possible to specify whether to store in the storage medium all content considered necessary in the content delivery stream, or only selected content, so that space in the storage medium can be reserved and the program does not fall into the trap of switching to Another content is a state where execution cannot continue.

此外,当内容存储单元在存储介质中进行存储时,以流格式存储视频和音频,以从流中提取出来的文件格式存储程序和同步信息。Also, when the content storage unit stores in the storage medium, video and audio are stored in a stream format, and program and synchronization information are stored in a file format extracted from the stream.

因此,程序和同步信息被存储为文件,所以可以保留存储介质中的空间,并且该程序也不会落入在切换到另一内容时不可继续执行的状态。Therefore, the program and synchronization information are stored as files, so space in the storage medium can be reserved, and the program does not fall into a state where execution cannot be continued when switching to another content.

(第一实施例)(first embodiment)

以下,参考附图说明根据本发明的第一实施例的装置和方法。本发明旨在记录和再现以任意介质发送和接收的内容;然而,在本实施例中,将有线电视广播系统作为示例说明。在有线电视广播系统中,正如本发明中所述,通常将广播记录和再现装置(记录和再现装置)称为终端装置。Hereinafter, an apparatus and method according to a first embodiment of the present invention will be described with reference to the accompanying drawings. The present invention is intended to record and reproduce content transmitted and received in an arbitrary medium; however, in this embodiment, a cable TV broadcasting system is explained as an example. In a cable TV broadcasting system, as described in the present invention, a broadcast recording and reproducing device (recording and reproducing device) is generally called a terminal device.

图1是示出组成广播系统的各装置之间的关系的框图;该广播系统由广播站端系统(头端)101、终端装置A111、终端装置B112以及终端装置C113组成。在有线系统中,在广播站端系统和每个终端装置之间的连接121是有线连接,诸如同轴电缆、光纤缆线等。在图1中,一个广播站端系统与三个终端装置相连接,但终端装置的数目是任意的。FIG. 1 is a block diagram showing the relationship between devices constituting a broadcast system; the broadcast system is composed of a broadcast station side system (head end) 101, a terminal device A111, a terminal device B112, and a terminal device C113. In a wired system, the connection 121 between the broadcast station end system and each terminal device is a wired connection, such as a coaxial cable, fiber optic cable, or the like. In FIG. 1, one broadcast station side system is connected to three terminal devices, but the number of terminal devices is arbitrary.

广播站端系统101以广播信号的形式将诸如视频/音频/用于数据广播的数据这样的信息发送给多个终端装置。使用由广播系统的操作规范、广播系统运行的国家/地区的法律等设定的频带中的频率来发送该广播信号。The broadcast station side system 101 transmits information such as video/audio/data for data broadcasting to a plurality of terminal devices in the form of broadcast signals. The broadcast signal is transmitted using a frequency in a frequency band set by the operating specification of the broadcast system, the law of the country/region in which the broadcast system operates, or the like.

利用本实施例中的有线系统,将以数据细节和传输方向(入站、出站)来划分在广播信号传输中使用的频带,并进行应用。With the cable system in this embodiment, the frequency band used in broadcast signal transmission will be divided by data details and transmission direction (inbound, outbound) and applied.

图2是示出频带划分的一个示例的图表。该频带被大致划分为两类:带外(缩写为OOB)和带内。将5MHz到130MHz分配为OOB,其主要用于广播站端系统101与终端装置A111、终端装置B112和终端装置C113之间的入站/出站数据交换。将130MHz到864MHz分配为带内,其主要用于仅出站的广播频道,包括视频/音频。将QPSK调制类型用于OOB,并且将QAM64或QAM256调制类型用于带内。调制类型技术通常是已知的,与本发明关系不大,因而省略了详细说明。FIG. 2 is a diagram showing an example of frequency band division. The frequency band is roughly divided into two categories: out-of-band (abbreviated as OOB) and in-band. 5 MHz to 130 MHz are allocated as OOB, which is mainly used for inbound/outbound data exchange between the broadcast station side system 101 and the terminal device A111, the terminal device B112, and the terminal device C113. 130MHz to 864MHz are allocated in-band, which is mainly used for outbound-only broadcast channels, including video/audio. Use QPSK modulation type for OOB, and QAM64 or QAM256 modulation type for in-band. Modulation type techniques are generally known and not relevant to the present invention, so a detailed description is omitted.

图3是一个更详细使用OOB频带的示例。将70MHz到74MHz用于从广播站端系统101发送的出站数据,所有终端装置A111、终端装置B112和终端装置C113从广播站端系统101接收相同数据。另一方面,将10.0MHz到10.1MHz用于从终端装置A111发送入站数据到广播站端系统101;将10.1MHz到10.2MHz用于从终端装置B112发送入站数据到广播站端系统101;将10.2MHz到10.3MHz用于从终端装置C113发送入站数据到广播站端系统101。由此,可以独立地从每个终端装置A111、B112及C113向广播站端系统101发送对于每个终端装置唯一的数据。Figure 3 is an example of using the OOB band in more detail. Using 70 MHz to 74 MHz for outbound data transmitted from the broadcast station side system 101 , all the terminal device A 111 , terminal device B 112 , and terminal device C 113 receive the same data from the broadcast station side system 101 . On the other hand, 10.0 MHz to 10.1 MHz are used for sending inbound data from the terminal device A111 to the broadcast station side system 101; 10.1 MHz to 10.2 MHz are used for sending inbound data from the terminal device B112 to the broadcast station side system 101; 10.2MHz to 10.3MHz are used for sending inbound data from the terminal device C113 to the broadcast station end system 101 . Thus, data unique to each terminal device can be independently transmitted from each terminal device A111, B112, and C113 to the broadcasting station side system 101.

图4是一个使用带内频带的示例。将150MHz到156MHz和156MHz到162MHz分别分配给电视频道1和电视频道2,其后以6MHz的间隔分配电视频道。从310MHz开始以1MHz为单位分配无线电频道。这些频道中的每个频道都可以用作模拟广播或用作数字广播。以MPEG-2规范下的TS分组格式来发送数字广播,并且除音频和视频以外,还可以发送用于各种数字广播的数据以及用于构造EPG的电视节目组织信息。Figure 4 is an example using an in-band frequency band. 150MHz to 156MHz and 156MHz to 162MHz are allocated to TV channel 1 and TV channel 2, respectively, and then TV channels are allocated at intervals of 6MHz. Radio channels are allocated in units of 1MHz starting from 310MHz. Each of these channels can be used as an analog broadcast or as a digital broadcast. Digital broadcasting is transmitted in the TS packet format under the MPEG-2 specification, and in addition to audio and video, data for various digital broadcasting and television program organization information for constructing an EPG can be transmitted.

广播站端系统101使用上述频带将适当的广播信号发送给终端装置,所以其具有QPSK调制单元、QAM调制单元等等。另外,广播站端系统101具有用于从终端装置接收数据的QPSK解调器。此外,可以认为该广播站端系统101具有与调制单元和解调单元有关的各种设备。然而,本发明主要涉及终端装置,所以省略了详细说明。The broadcast station side system 101 transmits appropriate broadcast signals to terminal devices using the above-mentioned frequency band, so it has a QPSK modulation unit, a QAM modulation unit, and the like. In addition, the broadcast station side system 101 has a QPSK demodulator for receiving data from a terminal device. Furthermore, this broadcasting station side system 101 can be considered to have various devices related to a modulation unit and a demodulation unit. However, the present invention mainly relates to terminal devices, so detailed description is omitted.

为了从广播站端系统101接收和再现广播信号,终端装置A111、B112以及C113具有QAM解调单元和QPSK解调单元。另外,为了向广播站端系统101发送对于每个终端装置来说是唯一的数据,每个终端装置都具有QPSK解调单元。在本发明中,终端装置是广播记录和再现装置,稍后说明其详细结构。In order to receive and reproduce broadcast signals from the broadcast station side system 101, the terminal devices A111, B112, and C113 have a QAM demodulation unit and a QPSK demodulation unit. In addition, in order to transmit data unique to each terminal device to the broadcast station side system 101, each terminal device has a QPSK demodulation unit. In the present invention, the terminal device is a broadcast recording and reproducing device, the detailed structure of which will be described later.

广播站端系统101对MPEG-2传输流进行调制,并在广播信号中发送该流。终端装置接收广播信号,解调并再现MPEG-2传输流,并且从该流中提取和使用必要信息。为了说明在终端装置中出现的设备功能和连接结构,首先以简要方式说明MPEG-2传输流的结构。The broadcast station side system 101 modulates an MPEG-2 transport stream and transmits the stream in a broadcast signal. A terminal device receives a broadcast signal, demodulates and reproduces an MPEG-2 transport stream, and extracts and uses necessary information from the stream. In order to explain the equipment functions and connection structure appearing in the terminal device, first, the structure of the MPEG-2 transport stream will be explained in a simplified manner.

图5是示出TS分组结构的图。一个TS分组500具有188字节的长度,且由报头501、自适应字段502以及有效负载(payload)503组成。报头501保存TS分组的控制信息,具有4字节的长度,并且其结构为504中所示。在报头501中,有个字段表示为“Packet ID (分组ID)”(后面称为PID),通过该PID的值对TS分组进行识别。自适应字段502保存诸如时间信息这样的额外信息。自适应字段502不是必备的,也有自适应字段502不出现的情况。有效负载503保存TS分组中携带的信息,诸如视频、音频以及数据广播数据。FIG. 5 is a diagram showing a TS packet structure. One TS packet 500 has a length of 188 bytes, and is composed of a header 501 , an adaptation field 502 , and a payload (payload) 503 . The header 501 holds control information of the TS packet, has a length of 4 bytes, and its structure is shown in 504 . In the header 501, there is a field represented as "Packet ID (packet ID)" (hereinafter referred to as PID), and the TS packet is identified by the value of the PID. Adaptation field 502 holds additional information such as time information. The adaptation field 502 is not mandatory, and there are cases where the adaptation field 502 does not appear. The payload 503 holds information carried in TS packets, such as video, audio, and data broadcast data.

图6是MPEG-2传输流的示意图。TS分组在有效负载中保存各种信息,诸如视频、音频、用于数据广播的数据等等。TS分组601和TS分组603在报头中保存PID 100,并且在有效负载中保存关于视频1的信息。TS分组602和TS分组605在报头中保存PID 200,并且在有效负载中保存关于数据1的信息。TS分组604在报头保存PID 300,并且在有效负载中保存关于音频1的信息。将在有效负载中保存不同类型数据的TS分组混合并且将它们作为序列连续发送,这被称为复用。MPEG-2传输流600是一个对TS分组601到605进行复用的构造示例。Fig. 6 is a schematic diagram of an MPEG-2 transport stream. TS packets hold various information such as video, audio, data for data broadcasting, etc. in the payload. TS packet 601 and TS packet 603 hold PID 100 in the header, and hold information on Video 1 in the payload. The TS packet 602 and the TS packet 605 hold the PID 200 in the header, and hold information on Data 1 in the payload. The TS packet 604 holds the PID 300 in the header, and holds information on Audio 1 in the payload. Mixing TS packets holding different types of data in payloads and sending them consecutively as a sequence is called multiplexing. An MPEG-2 transport stream 600 is a configuration example in which TS packets 601 to 605 are multiplexed.

具有相同PID的TS分组保存相同类型的信息。因此,通过接收复用的TS分组并针对每个PID提取TS分组所保存的信息,终端装置再现了视频和音频,并再现了诸如电视节目组织信息这样的数据。在图6中,TS分组601和TS分组603每个都携带有与视频1有关的信息,并且TS分组602和TS分组605每个都携带有与数据1有关的信息。TS packets with the same PID hold the same type of information. Therefore, by receiving the multiplexed TS packets and extracting information held by the TS packets for each PID, the terminal device reproduces video and audio, and reproduces data such as television program organization information. In FIG. 6 , TS packet 601 and TS packet 603 each carry information on Video 1 , and TS packet 602 and TS packet 605 each carry information on Data 1 .

这里,就有效负载中包含的每种数据类型的格式给出说明。Here, a description is given regarding the format of each data type contained in the payload.

将视频和音频表示成所谓的分组基本流(Packetized ElementaryStream,PES)分组的格式。PES分组包括某个时间段的视频信息或音频信息,通过接收PES分组,广播记录和再现装置能够将PES分组中包含的视频和音频信息输出到屏幕和扬声器。广播站不停地发送PES分组,所以对于广播记录和再现装置来说,可以不停地连续再现视频和音频。当实际传输PES分组时,在PES分组的大小大于一个TS分组的有效负载的情况下,将该PES分组进行划分并存储在多个TS分组的有效负载内。Video and audio are represented in a format called Packetized Elementary Stream (PES) packets. The PES packet includes video information or audio information of a certain time period, and by receiving the PES packet, the broadcast recording and reproducing apparatus can output the video and audio information contained in the PES packet to a screen and a speaker. A broadcasting station transmits PES packets without stopping, so for a broadcast recording and reproducing apparatus, video and audio can be continuously reproduced without stopping. When the PES packet is actually transmitted, in the case where the size of the PES packet is larger than the payload of one TS packet, the PES packet is divided and stored in the payload of a plurality of TS packets.

图7示出了传输PES分组时的分区示例。PES分组701太大,以至于无法被存储和携带在单个TS分组的有效负载中,因此将该PES分组701划分为PES分组分区A702a、PES分组分区B702b以及PES分组分区C702c,并且被携带在具有相同PID的三个TS分组703到705中。实际上,视频和音频作为基本流(ES)来获得,这是通过将包含在多个PES分组的多个有效负载中的数据连接起来得到的。基本流的格式是数字化的视频和音频,诸如由MPEG-2视频标准、MPEG-1和MPEG-2音频标准等所定义的。Fig. 7 shows an example of partitioning when transmitting PES packets. PES packet 701 is too large to be stored and carried in the payload of a single TS packet, so this PES packet 701 is divided into PES packet partition A 702a, PES packet partition B 702b, and PES packet partition C 702c, and is carried in the payload with Three TS packets 703 to 705 of the same PID. In practice, video and audio are obtained as elementary streams (ES), which are obtained by concatenating data contained in multiple payloads of multiple PES packets. The format of the elementary stream is digitized video and audio, such as defined by the MPEG-2 video standard, the MPEG-1 and MPEG-2 audio standards, and the like.

另一方面,用被称为MPEG-2分段的格式来表示诸如电视节目组织信息这样的信息和用于数据广播的数据。当实际传输该MPEG-2分段时,在MPEG-2分段具有比一个TS分组的有效负载还大的尺寸的情况下,将该MPEG-2分段划分并存储在多个TS分组的有效负载内。On the other hand, information such as television program organization information and data for data broadcasting are expressed in a format called MPEG-2 segment. When the MPEG-2 segment is actually transmitted, in the case where the MPEG-2 segment has a size larger than the payload of one TS packet, the MPEG-2 segment is divided and stored in the payload of a plurality of TS packets. within the load.

图8示出了当传输MPEG-2分段时的分区示例。由于MPEG-2分段801太大,以至于不能被存储或携带在单个TS分组的有效负载中。将MPEG-2分段801划分为分段分区A 802a、分段分区B 802b以及分段分区C 802c,并且被携带在具有相同PID的三个TS分组803到805中。Fig. 8 shows an example of partitioning when MPEG-2 segments are transmitted. Since the MPEG-2 segment 801 is too large to be stored or carried in the payload of a single TS packet. The MPEG-2 segment 801 is divided into segment partition A 802a, segment partition B 802b, and segment partition C 802c, and is carried in three TS packets 803 to 805 having the same PID.

图9表示了该MPEG-2分段的结构。MPEG-2分段被构造为报头901和有效负载902。报头901保存MPEG-2分段的控制信息。由报头结构903表示该结构。有效负载902保存MPEG-2分段900中所携带的数据。在报头结构903中出现的table_id表示MPEG-2分段的类型,table_id_extension是当需要进一步区分具有相同table_id的MPEG-2分段时所使用的扩展标识符。Fig. 9 shows the structure of this MPEG-2 section. An MPEG-2 segment is structured as a header 901 and a payload 902 . The header 901 holds control information of the MPEG-2 section. This structure is represented by header structure 903 . Payload 902 holds the data carried in MPEG-2 section 900 . The table_id appearing in the header structure 903 indicates the type of MPEG-2 section, and table_id_extension is an extension identifier used when it is necessary to further distinguish MPEG-2 sections with the same table_id.

可以将如图10所示的传输电视节目组织信息的情况作为使用MPEG-2分段的示例给出。在该例子中,如1004行中所写的,将解调广播信号所必需的信息写入到报头结构903中table_id为64的MPEG-2分段中,该MPEG-2分段还被携带在分配的PID为16的TS分组中。A case of transmitting television program organization information as shown in FIG. 10 can be given as an example using MPEG-2 segmentation. In this example, as written in line 1004, the information necessary to demodulate the broadcast signal is written into the MPEG-2 segment whose table_id is 64 in the header structure 903, which is also carried in The assigned PID is 16 in the TS group.

在MPEG-2分段的情况下不存在PES格式。出于该原因,基本流(ES)是MPEG-2传输流中由相同PID标识的TS分组的有效负载的串联。例如,在图8中,其中划分并携带MPEG-2分段的TS分组803到805都由相同的PID 200来标识。可以认为这是携带MPEG-2分段801的ES。There is no PES format in the case of MPEG-2 segments. For this reason, an elementary stream (ES) is a concatenation of the payloads of TS packets identified by the same PID in an MPEG-2 transport stream. For example, in FIG. 8 , TS packets 803 to 805 in which MPEG-2 segments are divided and carried are all identified by the same PID 200. This can be thought of as an ES carrying MPEG-2 segment 801 .

在MPEG-2传输流中还存在称为节目的概念。将该节目表示为ES的集合,其用于需要一起处理多个ES的情况中。当使用节目时,可以一起处理视频/音频以及随附的数据广播数据。例如,在同时处理要再现的视频/音频的情况下,通过将视频ES和音频ES组成一个节目,可以看到,广播记录和再现装置应当同时再现这两个ES,以作为一个电视节目。In the MPEG-2 transport stream there is also a concept called a program. The program is represented as a collection of ESs, which is used in cases where multiple ESs need to be processed together. When using programs, video/audio and accompanying data broadcast data can be processed together. For example, in the case of simultaneously processing video/audio to be reproduced, by composing a video ES and an audio ES into one program, it can be seen that a broadcast recording and reproducing apparatus should reproduce both ESs simultaneously as one television program.

为了表示节目,MPEG-2中使用了称为节目映射表(PMT)和节目关联表(PAT)的两个表。在ISO/IEC 13818-1,“MPEG-2系统”规范中可以找到详细说明。下面简要说明PMT和PAT。To represent programs, two tables called Program Mapping Table (PMT) and Program Association Table (PAT) are used in MPEG-2. A detailed description can be found in the ISO/IEC 13818-1, "MPEG-2 Systems" specification. The PMT and PAT are briefly described below.

PMT是包括了MPEG-2传输流中的节目号的表。将PMT构造为一个MPEG-2分段,并且table_id为2。PMT保存用于标识节目和该节目的附加信息的节目编号,以及有关属于该节目的ES的信息。PMT is a table including program numbers in the MPEG-2 transport stream. Construct the PMT as an MPEG-2 segment, and table_id is 2. The PMT holds a program number for identifying a program and additional information for the program, and information about ESs belonging to the program.

图11给出了PMT的一个示例。1100是节目号。在同一传输流中,将该节目号唯一分配给节目,并用于识别PMT。行1111到1114表示关于单个ES的信息。列1101是ES的类型,其中指定了“视频”、“音频”、“数据”等等。列1102是组成该ES的TS分组的PID。列1103是关于ES的附加信息。例如,在行1111中示出的ES是音频ES,并且由PID为5011的TS分组携带。Figure 11 shows an example of a PMT. 1100 is the program number. This program number is uniquely assigned to a program within the same transport stream and is used to identify a PMT. Rows 1111 to 1114 represent information on a single ES. Column 1101 is the type of ES in which "video", "audio", "data" and the like are specified. Column 1102 is the PID of the TS packets making up this ES. Column 1103 is additional information about ES. For example, the ES shown in row 1111 is an audio ES, and is carried by a TS packet with a PID of 5011.

PAT是在MPEG-2传输流中只存在一个的表。将PAT构造为一个MPEG-2分段,table_id为0,并且由PID为0的TS分组携带。PAT保存用于标识MPEG-2传输流的transport_stream_id,以及有关表示在该MPEG-2传输流中所存在节目的所有PMT的信息。The PAT is a table that exists only one in the MPEG-2 transport stream. The PAT is constructed as an MPEG-2 segment, the table_id is 0, and is carried by a TS packet with a PID of 0. The PAT holds transport_stream_id for identifying an MPEG-2 transport stream, and information on all PMTs representing programs present in the MPEG-2 transport stream.

图12给出了PAT的示例。1200是transport_stream_id。将transport_stream_id用于识别MPEG-2传输流。行1211到1213表示有关节目的信息。列1201是节目号。列1202是发送与该节目相对应的PMT的TS分组的PID。例如,行1211中示出的该节目的PMT的节目号为101,并且在PID为501的TS分组中携带着相应的PMT。Figure 12 shows an example of PAT. 1200 is transport_stream_id. Use transport_stream_id to identify an MPEG-2 transport stream. Rows 1211 to 1213 represent information about programs. Column 1201 is the program number. Column 1202 is the PID of the TS packet that transmits the PMT corresponding to the program. For example, the program number of the PMT of the program shown in row 1211 is 101, and the corresponding PMT is carried in the TS packet whose PID is 501.

在终端装置再现某个节目的情况下,该终端装置使用了PAT和PMT,并且指定了组成该节目的视频和音频,并再现该视频和音频。例如,对于携带着图12中的PAT和图11中的PMT的MPEG-2传输流,在再现属于节目号为101的节目的视频和音频的情况下,有下列处理过程。首先,从PID为“0”的TS分组中获得作为table_id为“0”的MPEG-2分段传输的PAT。搜索PAT以便寻找节目号为“101”的节目,并获得行1211。从行1211中获得了携带节目号为“101”的节目的PMT的TS分组的PID“501”。接着,从PID为“501”的TS分组中获得作为table_id为“2”的MPEG-2分段传输的PMT。从该PMT中获得音频ES信息(行1111)以及视频ES信息(行1112)。从行1111中获得携带着音频ES的TS分组的PID“5011”。另外,从行1112获得携带着视频ES的TS分组的PID“5012”。接着,从PID为“5011”的TS分组中获得音频PES分组,从PID为“5012”的TS分组中获得视频PES分组。通过这样,可以获取要再现的视频和音频ES分组,并且可以再现组成节目号101的视频和音频。In the case where a terminal device reproduces a certain program, the terminal device uses PAT and PMT, and specifies video and audio constituting the program, and reproduces the video and audio. For example, for an MPEG-2 transport stream carrying PAT in FIG. 12 and PMT in FIG. 11, in the case of reproducing video and audio belonging to a program whose program number is 101, there is the following processing. First, the PAT transmitted as the MPEG-2 segment whose table_id is "0" is obtained from the TS packet whose PID is "0". The PAT is searched for program number "101" and row 1211 is obtained. The PID "501" of the TS packet carrying the PMT of the program whose program number is "101" is obtained from row 1211. Next, the PMT transmitted as the MPEG-2 segment with table_id "2" is obtained from the TS packet with the PID "501". Audio ES information (line 1111) and video ES information (line 1112) are obtained from the PMT. The PID "5011" of the TS packet carrying the audio ES is obtained from row 1111. Also, the PID "5012" of the TS packet carrying the video ES is obtained from row 1112 . Next, the audio PES packet is obtained from the TS packet with the PID "5011", and the video PES packet is obtained from the TS packet with the PID "5012". Through this, the video and audio ES packets to be reproduced can be acquired, and the video and audio making up the program number 101 can be reproduced.

注意,有些情况下MPEG-2传输流是经过加扰的。这是一种称为条件接入系统的设置。例如,通过对携带有某个视频/音频的PES分组进行加扰,只有能够对其进行解扰的特定观看者才能观看到该视频和音频。为了解扰并观看该视频和音频,观看者必须使用称为解扰器的装置来对该视频和音频进行解扰。例如,在OCAP兼容的终端装置中,使用一种具有内部解扰器的卡型适配器。有线电视运营商将配置为能够解扰特定节目的适配器分配给每个观看者,观看者将该适配器插入终端装置。一旦这样做,该适配器就基于诸如解扰密钥以及每个合同持有者的合同信息这样的解扰信息来对指定节目进行解扰。解扰的方法、获得解扰密钥的方法等等取决于适配器,而对本发明的实现没有影响。Note that in some cases MPEG-2 transport streams are scrambled. This is a setup called a conditional access system. For example, by scrambling a PES packet carrying a certain video/audio, only specific viewers who can descramble it can watch the video and audio. In order to descramble and watch the video and audio, the viewer must use a device called a descrambler to descramble the video and audio. For example, in an OCAP-compatible terminal device, a card-type adapter with an internal descrambler is used. The cable operator assigns each viewer an adapter configured to descramble a particular program, which the viewer plugs into the terminal device. Once this is done, the adapter descrambles the specified program based on the descrambling information such as the descrambling key and each contract holder's contract information. The method of descrambling, the method of obtaining the descrambling key, etc. depend on the adapter and have no influence on the realization of the present invention.

至此,进行了关于MPEG-2规范的简要说明;下面,给出术语的详细定义。在本发明中,存在两类术语“program”。一类是出现在MPEG-2规范中的“节目”,另一类指的是由CPU执行的代码集合的“程序”。因为前者是操作规范中所用术语“服务”的同义词,以后为了避免混淆,将前者称为“服务”,将后者简单称为“程序”。此外,就后者而言,将专门用Java语言写的“程序”称为“Java程序”。So far, a brief description of the MPEG-2 specification has been made; below, a detailed definition of terms is given. In the present invention, there are two types of term "program". One is a "program" that appears in the MPEG-2 specification, and the other refers to a "program" that is a collection of codes executed by the CPU. Because the former is a synonym for the term "service" used in the operating specification, in order to avoid confusion, the former will be referred to as "service" and the latter will simply be referred to as "program". Also, regarding the latter, a "program" written exclusively in the Java language is referred to as a "Java program".

根据本发明,已经给出了关于在MPEG-2规范中指定的几种一般信息的说明。下面,详细说明本发明中所用的广播记录和再现终端。According to the present invention, explanations have been given about several kinds of general information specified in the MPEG-2 specification. Next, the broadcast recording and reproducing terminal used in the present invention will be described in detail.

图13是示出根据本实施例的广播记录和再现装置的一般硬件结构的方框图;换句话说,表示图1中示出的终端装置111、112以及113的具体内部结构。1300是广播记录和再现装置,其被构造为:调谐器1301;TS解码器(TS解复用器)1302;AV解码器1303;扬声器1304;显示器1305;CPU 1306;第二存储单元1307;主存储单元1308;ROM 1309;输入单元1310;适配器1311;AV编码器1312;以及复用器(MPEG-2传输流复用器等)1313。注意,本实施例是通过对由OCAP-DVR规范实现的广播记录和再现终端进行扩展获得的,并且其特定硬件结构几乎等同于OCAP-DVR规范所需的结构。FIG. 13 is a block diagram showing the general hardware structure of the broadcast recording and reproducing apparatus according to the present embodiment; 1300 is a broadcast recording and reproducing apparatus, which is configured as: a tuner 1301; a TS decoder (TS demultiplexer) 1302; an AV decoder 1303; a speaker 1304; a display 1305; a CPU 1306; storage unit 1308; ROM 1309; input unit 1310; adapter 1311; AV encoder 1312; Note that this embodiment is obtained by extending the broadcast recording and reproducing terminal realized by the OCAP-DVR specification, and its specific hardware structure is almost equivalent to that required by the OCAP-DVR specification.

调谐器1301是这样一种设备,其根据诸如CPU 1306规定的频率这样的调谐信息,对调制后的、从广播站端系统101发送的广播信号进行解调。调谐器1301包括:对带内信号进行内部解调的QAM解调器1301a;解调带外信号的QPSK解调器1301b;以及执行调制的QPSK调制器1301c。作为当调谐器1301的QAM解调器1301a对带内信号进行解调时的结果而获得MPEG-2传输流经过具有解扰功能的适配器,并被发送给TS解码器1302。The tuner 1301 is a device that demodulates a modulated broadcast signal transmitted from the broadcast station side system 101 based on tuning information such as a frequency specified by the CPU 1306. The tuner 1301 includes: a QAM demodulator 1301a that internally demodulates an in-band signal; a QPSK demodulator 1301b that demodulates an out-of-band signal; and a QPSK modulator 1301c that performs modulation. An MPEG-2 transport stream obtained as a result when the QAM demodulator 1301 a of the tuner 1301 demodulates an in-band signal passes through an adapter having a descrambling function, and is sent to the TS decoder 1302 .

TS解码器1302是这样一种设备,其具有基于CPU 1306所规定的PID、分段过滤条件等,将符合特定条件的PES分组和MPEG-2分段从MPEG-2传输流中分离出的功能。该分离功能被称为分组过滤。在TS解码器中包含有两类过滤设备,分别是PID过滤器和分段过滤器。稍后给出有关过滤的详细说明。MPEG-2传输流输入到TS解码器是由多个类型的组成单元执行的。在接收到广播并且无需记录就再现服务的情况下,将适配器1311输出的MPEG-2传输流输入到TS解码器1302中。另一方面,在再现第二存储单元1307中所记录的服务的情况下,将第二存储单元1307输出的MPEG-2传输流输入到该TS解码器1302中。接收哪个输入受从软件接收指令的CPU 1306控制。The TS decoder 1302 is a device that has a function of separating PES packets and MPEG-2 segments that meet specific conditions from the MPEG-2 transport stream based on the PID, segment filter conditions, etc. specified by the CPU 1306 . This separation function is called packet filtering. There are two types of filtering devices in the TS decoder, namely PID filter and segment filter. A detailed description on filtering will be given later. The input of the MPEG-2 transport stream to the TS decoder is performed by various types of constituent elements. In a case where a broadcast is received and the service is reproduced without recording, the MPEG-2 transport stream output from the adapter 1311 is input into the TS decoder 1302 . On the other hand, in the case of reproducing the service recorded in the second storage unit 1307 , the MPEG-2 transport stream output from the second storage unit 1307 is input into this TS decoder 1302 . Which input is received is controlled by CPU 1306 which receives instructions from software.

将TS解码器1302分离出的视频和音频的PES分组输出到AV解码器1303。另外,将TS解码器1302分离出的MPEG-2分段通过直接存储器存取(DMA)传送到主存储单元1308,并且由CPU 1306执行的程序等使用。The video and audio PES packets separated by the TS decoder 1302 are output to the AV decoder 1303 . In addition, the MPEG-2 segments separated by the TS decoder 1302 are transferred to the main storage unit 1308 by direct memory access (DMA), and are used by programs executed by the CPU 1306 and the like.

AV解码器1303是具有对编码的视频ES和音频ES进行解码的功能的设备。AV解码器从发送自TS解码器的、携带有音频和视频信息的PES分组中获取ES,并且解码ES。在服务再现时,将通过由AV解码器1303进行的解码获得的音频信号和视频信号发送给扬声器1304和显示器1305,但是在服务记录时,将其发送给AV编码器1312。采用哪条输出路径受从软件接收指令的CPU 1306控制。The AV decoder 1303 is a device having a function of decoding encoded video ES and audio ES. The AV decoder acquires ESs from the PES packets carrying audio and video information transmitted from the TS decoder, and decodes the ESs. The audio signal and video signal obtained by decoding by the AV decoder 1303 are sent to the speaker 1304 and the display 1305 at the time of service reproduction, but are sent to the AV encoder 1312 at the time of service recording. Which output path is taken is controlled by the CPU 1306 which receives instructions from software.

扬声器1304再现了AV解码器1303输出的音频。The speaker 1304 reproduces the audio output from the AV decoder 1303 .

显示器1305再现了AV解码器1303输出的视频。The display 1305 reproduces the video output from the AV decoder 1303 .

CPU 1306执行在广播记录和再现装置中运行的程序。CPU 1306执行包含在ROM 1309中的程序。或者,CPU 1306执行从广播信号或网络下载的、保存在主存储单元1308中的程序。或者,CPU执行了从广播信号或网络下载的、保存在第二存储单元1307中的程序。根据所执行的程序的指导,对调谐器1301、TS解码器1302、AV解码器1303、扬声器1304、显示器1305、第二存储单元1307、主存储单元1308、ROM 1309以及输入单元1310进行控制。另外,通过不仅与终端装置1300中存在的设备进行通信,而且与适配器1311中的设备进行通信,CPU 1306能够控制适配器1311。The CPU 1306 executes programs running in the broadcast recording and reproducing apparatus. The CPU 1306 executes programs contained in the ROM 1309. Alternatively, the CPU 1306 executes a program stored in the main storage unit 1308 downloaded from a broadcast signal or the network. Alternatively, the CPU executes a program stored in the second storage unit 1307 downloaded from a broadcast signal or a network. The tuner 1301, TS decoder 1302, AV decoder 1303, speaker 1304, display 1305, second storage unit 1307, main storage unit 1308, ROM 1309, and input unit 1310 are controlled according to the instructions of the executed program. In addition, the CPU 1306 can control the adapter 1311 by communicating not only with devices existing in the terminal device 1300 but also with devices in the adapter 1311.

第二存储单元1307是一种存储器装置,即使对该装置的供电中断也不会删除该装置的存储内容;例如,诸如FLASH-ROM这样的非易失性存储器、硬盘驱动器(HDD)、诸如CD-R和DVD-R这样的可重写介质。第二存储单元1307基于来自CPU 1306的指令保存信息。The second storage unit 1307 is a memory device whose storage contents are not erased even if the power supply to the device is interrupted; for example, a nonvolatile memory such as FLASH-ROM, a hard disk drive (HDD), such as a CD -R and DVD-R such rewritable media. The second storage unit 1307 stores information based on instructions from the CPU 1306.

主存储单元1308是这样一种设备,其具有根据来自CPU 1306、支持DMA传输的设备等的指令临时保存信息的功能,并且被构造为RAM等。The main storage unit 1308 is a device that has a function of temporarily saving information according to an instruction from the CPU 1306, a device supporting DMA transfer, or the like, and is configured as a RAM or the like.

ROM 1309是非可重写存储设备,更具体地,其被构造为ROM、CD-ROM、DVD等。CPU 1306执行的程序就存储在ROM 1309中。The ROM 1309 is a non-rewritable storage device, and more specifically, it is configured as a ROM, CD-ROM, DVD, or the like. Programs executed by the CPU 1306 are stored in the ROM 1309.

输入单元1310更具体地被构造为面板或遥控接收器,接受来自用户的输入。图14是将输入单元1310构造为面板的情况的一个示例。面板1400具有七个按钮:光标上按钮1401、光标下按钮1402、光标左按钮1403、光标右按钮1404、OK按钮1405、取消按钮1406、EPG按钮1407以及模式切换按钮1408。当用户按一个按钮时,所按的按钮的标识符会被告知给CPU 1306。The input unit 1310 is more specifically configured as a panel or a remote control receiver, accepting an input from a user. FIG. 14 is an example of a case where the input unit 1310 is configured as a panel. Panel 1400 has seven buttons: cursor up button 1401 , cursor down button 1402 , cursor left button 1403 , cursor right button 1404 , OK button 1405 , cancel button 1406 , EPG button 1407 and mode switch button 1408 . When the user presses a button, the identifier of the pressed button is notified to the CPU 1306.

适配器1311是用于对带内频率范围内发送的MPEG-2传输流进行解扰的设备,其包括一个或多个解扰器。调谐器1301a输出的MPEG-2传输流被输入到适配器1311中,并且对具有CPU 1306指定的PID的TS分组进行解扰。适配器1311将已解扰的MPEG-2传输流输出给TS解码器1302。Adapter 1311 is a device for descrambling an MPEG-2 transport stream sent in the in-band frequency range, which includes one or more descramblers. The MPEG-2 transport stream output from the tuner 1301a is input into the adapter 1311, and the TS packets with the PID specified by the CPU 1306 are descrambled. The adapter 1311 outputs the descrambled MPEG-2 transport stream to the TS decoder 1302 .

此外,适配器1311还对在OOB频率范围内所发送的数据进行格式转换。将在OOB中发送的信息调制为QPSK调制格式。就出站传输而言,QPSK解调器1301b对从广播站端系统101发送的输出信号进行解调,并将产生的比特流输入到适配器1311中。适配器1311从该比特流中包含的各种信息中提取出由CPU 1306指定的信息,将该信息转换为可由CPU 1306中运行的程序解释的格式,并将其提供给CPU 1306。另一方面,就入站传输而言,CPU 1306把要发送到广播站端系统101的信息输入进适配器1311中。适配器1311将从CPU1306输入的信息转换为可以由广播站端系统101解释的格式,并且将其输入到QPSK调制器1301c中。QPSK调制器1301c对从适配器1311输入的信息进行QPSK-调制,并且将其发送给广播站端系统101。In addition, the adapter 1311 also converts the format of the data transmitted in the OOB frequency range. The information sent in OOB is modulated into a QPSK modulation format. For outbound transmission, the QPSK demodulator 1301b demodulates the output signal transmitted from the broadcast station end system 101, and inputs the resulting bit stream into the adapter 1311. The adapter 1311 extracts information specified by the CPU 1306 from various information contained in the bit stream, converts the information into a format that can be interpreted by a program running in the CPU 1306, and supplies it to the CPU 1306. On the other hand, in terms of inbound transmission, the CPU 1306 inputs information to be sent to the broadcast station end system 101 into the adapter 1311. The adapter 1311 converts the information input from the CPU 1306 into a format that can be interpreted by the broadcast station side system 101, and inputs it into the QPSK modulator 1301c. The QPSK modulator 1301c performs QPSK-modulation on the information input from the adapter 1311, and transmits it to the broadcast station side system 101.

美国有线系统中所使用的CableCARD,以前称为部署点(POD),可以作为适配器1311的一个具体示例给出。A CableCARD used in the US Cable system, formerly known as a Point of Deployment (POD), can be given as a specific example of adapter 1311 .

AV编码器1312将AV解码器1303解码的音频信号编码为MPEG音频格式的音频,并且将视频信号编码为MPEG视频格式的视频。AV编码器1312将编码后的视频和音频输出给复用器1313。可以通过公知的技术来实现AV编码器1312。The AV encoder 1312 encodes the audio signal decoded by the AV decoder 1303 into audio in the MPEG audio format, and encodes the video signal into video in the MPEG video format. The AV encoder 1312 outputs encoded video and audio to the multiplexer 1313 . The AV encoder 1312 can be realized by a well-known technique.

复用器1313是这样一种设备,其具有将从AV编码器1312输入的视频和音频以及由TS解码器过滤和分离的私有分段数据复用为MPEG-2传输流的功能。可以用公知的技术来实现复用器1313。The multiplexer 1313 is a device that has a function of multiplexing video and audio input from the AV encoder 1312 and private segment data filtered and separated by the TS decoder into an MPEG-2 transport stream. Multiplexer 1313 can be implemented using known techniques.

下面,详细说明上述广播记录和再现装置将包含在广播波中的服务记录到第二存储单元1307中的处理过程,以及该广播记录和再现装置从第二存储单元1307中连续读出和再现该服务的处理过程。Next, the above-mentioned broadcast recording and reproducing apparatus records the service contained in the broadcast wave into the second storage unit 1307 in detail, and the broadcast recording and reproducing apparatus continuously reads and reproduces the service from the second storage unit 1307. The processing of the service.

首先,说明将包含在广播波中的服务记录到第二存储单元1307中的处理过程。First, a processing procedure for recording a service included in a broadcast wave into the second storage unit 1307 will be described.

图15示出了表示在记录该服务期间每个设备的物理连接顺序、处理细节以及输入/输出数据格式的概念性表述。1500是终端装置,其具有:调谐器1301;适配器1311;解扰器1501;TS解码器1302;PID过滤器1502;分段过滤器1503;AV解码器1303;主存储单元1308;AV编码器1312;复用器1313;以及记录区1504。图15中与图13具有相同编号的组成单元具有相同的功能,因此省略了说明。FIG. 15 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during recording of the service. 1500 is a terminal device having: a tuner 1301; an adapter 1311; a descrambler 1501; a TS decoder 1302; a PID filter 1502; a segment filter 1503; ; multiplexer 1313; and recording area 1504. The constituent units in FIG. 15 having the same numbers as those in FIG. 13 have the same functions, and therefore explanations are omitted.

首先,调谐器1301根据CPU 1306提供的调谐指令对广播波进行调谐。调谐器1301对该广播波进行解调并将MPEG-2传输流输入到适配器1311。First, the tuner 1301 tunes broadcast waves according to a tuning instruction provided by the CPU 1306. The tuner 1301 demodulates the broadcast wave and inputs the MPEG-2 transport stream to the adapter 1311 .

位于适配器1311内部的解扰器1501基于每个观看者的条件接入信息对MPEG-2传输流进行解扰。将已经解扰的MPEG-2传输流输入进TS解码器中。The descrambler 1501 located inside the adapter 1311 descrambles the MPEG-2 transport stream based on the conditional access information of each viewer. Input the descrambled MPEG-2 transport stream into the TS decoder.

在TS解码器1302中存在用于处理MPEG-2传输流的两类装置:PID过滤器1502和分段过滤器1503。In the TS decoder 1302 there are two types of means for processing an MPEG-2 transport stream: a PID filter 1502 and a segmentation filter 1503 .

PID过滤器1502从输入的MPEG-2传输流中提取出含有CPU1306指定的PID的TS分组,然后提取有效负载中存在的PES分组和MPEG-2分段。例如,当在CPU 1306发指令控制提取具有PID=100的TS分组的PID过滤的情况下输入图6的MPEG-2传输流的时候,提取了分组601和603,然后进行连接,这样就重新构造了视频1的PES分组。或者,当在CPU 1306发指令控制提取具有PID=200的TS分组的PID过滤的情况下输入图6的MPEG-2传输流的时候,提取了分组602和605,然后连接,这样就重新构造了数据1的MPEG-2分段。The PID filter 1502 extracts the TS packets containing the PID specified by the CPU 1306 from the input MPEG-2 transport stream, and then extracts the PES packets and MPEG-2 fragments present in the payload. For example, when the MPEG-2 transport stream of FIG. 6 is input when the CPU 1306 issues an instruction to control the extraction of the PID filter of the TS packets with PID=100, the packets 601 and 603 are extracted and then concatenated, thus reconstructing The PES grouping of Video 1 was added. Alternatively, when the MPEG-2 transport stream of FIG. 6 is input under the condition that the CPU 1306 issues an instruction to control the PID filtering to extract TS packets with PID=200, the packets 602 and 605 are extracted and then concatenated, thus reconstructing MPEG-2 segment of data 1.

分段过滤器1503从输入的MPEG-2分段中提取与由CPU 1306指定的分段过滤条件相符的MPEG-2分段,并将该MPEG-2分段通过DMA传输给主存储单元1308。可以将PID值指定为分段过滤条件,并且可以将table_id指定为辅助条件。例如,CPU 1306指定了提取PID=200的TS分组的PID过滤,以及提取table_id为64的分段的分段过滤。如之前所提到的,重新构造数据1的MPEG-2分段,分段过滤器1503仅从这些MPEG-2分段中提取table_id为64的分段,并且将其通过DMA传输到作为缓存器的主存储单元1308。The segment filter 1503 extracts the MPEG-2 segment that matches the segment filter condition specified by the CPU 1306 from the input MPEG-2 segment, and transfers the MPEG-2 segment to the main storage unit 1308 by DMA. A PID value can be specified as a segmentation filter condition, and a table_id can be specified as an auxiliary condition. For example, the CPU 1306 specifies PID filtering to extract TS packets with PID=200, and segment filtering to extract segments whose table_id is 64. As mentioned before, to reconstruct the MPEG-2 segment of data 1, the segment filter 1503 extracts only the segment whose table_id is 64 from these MPEG-2 segments, and transfers it to the buffer by DMA main storage unit 1308 .

输入到主存储器单元1308中的MPEG-2分段被输入到复用器1313中。The MPEG-2 segments input into the main memory unit 1308 are input into the multiplexer 1313 .

TS解码器1302提取的视频PES分组和音频PES分组被输入到AV解码器1303中。The video PES packets and audio PES packets extracted by the TS decoder 1302 are input into the AV decoder 1303 .

AV解码器解码视频PES分组并且转换视频,将其输入到AV编码器1312中。AV解码器也解码音频PES分组并转换音频,将其输入到AV编码器1312中。The AV decoder decodes video PES packets and converts video, which is input to the AV encoder 1312 . The AV decoder also decodes audio PES packets and converts audio, which is input to the AV encoder 1312 .

AV编码器1312将视频转换为MPEG视频,并将其输入到复用器1313中。AV编码器1312也将音频转换为MPEG音频,并将其输入到复用器1313中。The AV encoder 1312 converts the video into MPEG video, and inputs it into the multiplexer 1313 . The AV encoder 1312 also converts audio into MPEG audio, and inputs it into the multiplexer 1313 .

复用器1313将从AV编码器输入的MPEG视频和MPEG音频复用到从主存储单元1308输入的MPEG-2分段上,从而生成了MPEG-2传输流。将所生成的MPEG-2传输流记录到记录区1504中。The multiplexer 1313 multiplexes the MPEG video and MPEG audio input from the AV encoder onto the MPEG-2 segment input from the main storage unit 1308, thereby generating an MPEG-2 transport stream. The generated MPEG-2 transport stream is recorded into the recording area 1504 .

记录区1504由第二存储单元1307或其它记录区的全部或部分组成,其记录了构成服务的MPEG-2传输流。The recording area 1504 is composed of the whole or part of the second storage unit 1307 or other recording area, which records the MPEG-2 transport stream constituting the service.

接着,说明连续从第二存储单元1307读出服务并进行再现的处理过程。Next, the procedure for continuously reading and reproducing services from the second storage unit 1307 will be described.

图16示出了表示在再现该服务期间每个设备的物理连接顺序、处理细节以及输入/输出数据格式的概念性表述。1600是终端装置,其具有:记录区1504;TS解码器1302;PID过滤器1502;分段过滤器1503;AV解码器1303;扬声器1304;显示器1305;以及主存储单元1308。图16中与图13具有相同编号的组成单元具有同样的功能,因此省略了说明。FIG. 16 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during reproduction of the service. 1600 is a terminal device having: a recording area 1504; a TS decoder 1302; a PID filter 1502; a section filter 1503; an AV decoder 1303; The constituent units in FIG. 16 having the same numbers as those in FIG. 13 have the same functions, and therefore descriptions thereof are omitted.

以图15中说明的顺序,将记录在记录区1504中的MPEG-2传输流输入到TS解码器1302中。The MPEG-2 transport stream recorded in the recording area 1504 is input into the TS decoder 1302 in the order illustrated in FIG. 15 .

然后,TS解码器1302内的PID过滤器1502提取具有CPU 1306指定PID的视频PES和音频PES。所提取的PES分组被输入到AV解码器1303中。或者,TS解码器1302内的PID过滤器1502和分段过滤器1503提取具有CPU 1306指定的PID和table_id的MPEG-2分段。所提取的MPEG-2分段被通过DMA传输到主存储单元1308中。Then, the PID filter 1502 inside the TS decoder 1302 extracts the video PES and audio PES with the PID specified by the CPU 1306. The extracted PES packets are input to the AV decoder 1303 . Alternatively, the PID filter 1502 and the segment filter 1503 within the TS decoder 1302 extract MPEG-2 segments having the PID and table_id specified by the CPU 1306. The extracted MPEG-2 segments are transferred to the main storage unit 1308 by DMA.

输入到AV解码器1303中的视频PES和音频PES被解码,并且被输出为音频信号和视频信号。此后,将该音频信号和视频信号输入到显示器1305和扬声器1304中,从而再现该音频和视频。The video PES and audio PES input into the AV decoder 1303 are decoded, and output as audio signals and video signals. Thereafter, the audio and video signals are input into the display 1305 and the speaker 1304, thereby reproducing the audio and video.

输入到主存储单元1308中的MPEG-2分段被输入到CPU 1306中并且在适当的时候由软件使用。The MPEG-2 segments input into the main storage unit 1308 are input into the CPU 1306 and used by software as appropriate.

至此,已经说明了有关本发明的硬件结构的一个示例。此后,说明本发明主要功能,即通过Java程序控制服务的记录和再现。So far, an example of the hardware configuration related to the present invention has been explained. Hereinafter, the main function of the present invention, that is, recording and reproduction of services controlled by a Java program, will be described.

本发明中的服务记录指的是将该服务中所包含的视频、音频、Java程序、Java程序的同步信息等记录到诸如硬盘、蓝光光盘(BD)、数字通用光盘(DVD)、以及安全数字(SD)存储卡这样的任意存储介质中。在图13所示的结构图中,这些存储介质被表示为第二存储单元1307。服务再现指的是基于Java程序的同步信息执行和再现记录在记录介质中的视频、音频以及Java程序。要求已记录服务的再现结果几乎等同于一接收到广播波就直接再现该服务的结果。Service recording in the present invention refers to recording video, audio, Java programs, synchronization information of Java programs, etc. included in the service to hard disks, Blu-ray Discs (BD), Digital Versatile Discs (DVD), and secure digital discs. (SD) memory card and other arbitrary storage media. In the configuration diagram shown in FIG. 13 , these storage media are represented as a second storage unit 1307 . Service reproduction refers to executing and reproducing video, audio, and Java programs recorded in recording media based on synchronization information of Java programs. The reproduction result of the recorded service is required to be almost equivalent to the result of directly reproducing the service as soon as the broadcast wave is received.

图17是记录和再现该服务所需的程序的结构图,其是记录在ROM 1309中的软件。FIG. 17 is a structural diagram of a program required for recording and reproducing the service, which is software recorded in the ROM 1309.

程序1700由子程序OS 1701、EPG 1702、Java VM 1703以及Java库1704组成。Program 1700 consists of subroutine OS 1701, EPG 1702, Java VM 1703 and Java library 1704.

OS 1701是操作系统;Linux、Windows等作为示例。OS 1701由如下组成:用于执行诸如EPG 1702和Java VM 1703这样的其它子程序的内核1701a;以及子程序用其来控制终端装置1300的组成单元的库1701b。内核1701a是公知技术,因此省略了详细说明。OS 1701 is an operating system; Linux, Windows, etc. are examples. The OS 1701 is composed of: a kernel 1701a for executing other subprograms such as the EPG 1702 and the Java VM 1703; The kernel 1701a is a well-known technology, so detailed description is omitted.

例如,库1701b提供了用于控制调谐器的调谐功能。库1701b从另一个子程序接受包含频率的调谐信息,并将其提供给调谐器1301。调谐器1301基于所提供的调谐信息进行解调处理,并且能将解调后的MPEG-2传输流传给TS解码器1302。作为结果,其它子程序能够通过库1701b来控制调谐器1301。For example, library 1701b provides a tuning function for controlling a tuner. The library 1701b accepts tuning information including frequency from another subroutine and provides it to the tuner 1301. The tuner 1301 performs demodulation processing based on the supplied tuning information, and can deliver the demodulated MPEG-2 transport stream to the TS decoder 1302 . As a result, other subroutines can control the tuner 1301 through the library 1701b.

此外,库1701b提供用于唯一标识频道的频道信息。图20示出了频道信息的一个示例。使用OOB或带内频率范围发送频道信息,其被适配器1311转换为图表格式,并且被存储在可以被该库访问的临时存储单元中。行2001是频道标识符,其等同于例如由SCTE65数字有线电视的带外传送的服务信息所定义的source_ID。行2002是频道名,其等同于在同一SCTE65标准中的source_name。行2003是调谐信息,它是提供给调谐器1301的诸如频率、传输速率、调制格式等的信息。行2004是用于指定PMT的程序号。例如,列2011是一组服务信息,包括频道标识符“1”、频道名“频道1”、调谐信息中的频率“150MHz…”、以及节目号“101”。In addition, the library 1701b provides channel information for uniquely identifying a channel. FIG. 20 shows an example of channel information. Channel information is transmitted using OOB or in-band frequency range, which is converted to a chart format by the adapter 1311 and stored in a temporary storage unit that can be accessed by the library. Row 2001 is a channel identifier that is equivalent to source_ID defined by, for example, SCTE65 Service Information for Out-of-Band Delivery of Digital Cable TV. Line 2002 is the channel name, which is equivalent to source_name in the same SCTE65 standard. Row 2003 is tuning information, which is information such as frequency, transmission rate, modulation format, and the like supplied to the tuner 1301 . Line 2004 is a program number for designating a PMT. For example, column 2011 is a set of service information including channel identifier "1", channel name "channel 1", frequency "150MHz..." in tuning information, and program number "101".

在此基础上,库1701b还可以设定用于控制图13所示的硬件组成单元的参数。稍后详细说明各个功能。On this basis, the library 1701b can also set parameters for controlling the hardware constituent units shown in FIG. 13 . Each function will be described in detail later.

Java VM 1701是Java虚拟机,其顺序地分析并执行以Java(TM)语言编写的程序。以Java语言编写的程序被编译为不依赖于硬件的中间代码,称为字节码。Java虚拟机是执行该字节码的解释器。JavaVM 1703执行以Java语言编写的Java库1704。在诸如“Java语言规范”(ISBN 0-201-63451-1)以及“Java虚拟机规范”(ISBN0-201-63451-X)的出版物中说明了Java语言的详细内容。另外,可以通过Java本地接口(JNI)调用不是用Java语言编写的其它子程序,或被该类子程序调用。可以在“Java本地接口”等书中找到有关JNI的详细内容。The Java VM 1701 is a Java virtual machine that sequentially analyzes and executes programs written in the Java(TM) language. Programs written in the Java language are compiled into hardware-independent intermediate code called bytecode. The Java Virtual Machine is an interpreter that executes this bytecode. The JavaVM 1703 executes a Java library 1704 written in the Java language. Details of the Java language are described in publications such as "Java Language Specification" (ISBN 0-201-63451-1) and "Java Virtual Machine Specification" (ISBN 0-201-63451-X). In addition, other subroutines not written in the Java language can be called through the Java Native Interface (JNI), or called by such subroutines. Details about JNI can be found in books such as "Java Native Interface".

Java库1704是用Java语言编写的库,为了对广播记录和再现装置的功能进行控制,由Java程序调用该库。然而,也有必须使用诸如OS 1701的库1701b这样的非Java语言编写的子程序的情况。Java程序可以通过调用Java库1704所拥有的Java应用编程接口(API)来使用Java库1740所提供的功能。The Java library 1704 is a library written in the Java language, which is called by a Java program in order to control the functions of the broadcast recording and reproducing apparatus. However, there are also situations where it is necessary to use subroutines written in languages other than Java such as the library 1701b of the OS 1701. The Java program can use the functions provided by the Java library 1740 by calling the Java Application Programming Interface (API) owned by the Java library 1704 .

调谐器1704c是用于控制广播记录和再现终端中的带内接收调谐器1301a的Java库。当Java程序将包括频率的调谐信息传给调谐器1704c时,调谐器1704c用该信息来调用库1701b的调谐功能,结果是,可以控制广播记录和再现终端的带内接收调谐器1301a的工作。The tuner 1704c is a Java library for controlling the in-band reception tuner 1301a in the broadcast recording and reproducing terminal. When the Java program transmits tuning information including frequency to the tuner 1704c, the tuner 1704c uses the information to call the tuning function of the library 1701b, and as a result, the operation of the in-band receiving tuner 1301a of the broadcast recording and reproducing terminal can be controlled.

SF 1704e是用于控制广播记录和再现终端的PID过滤器1502和分段过滤器1503的功能的Java库。当Java程序将诸如PID、table_id等的过滤条件传给SF 1704e时,SF 1704e基于这些条件使用库1701b的功能,设定过滤条件并控制PID过滤器1502和分段过滤器1503,获取满足预期过滤条件的MPEG-2分段,并将该MPEG-2分段传给设定过滤条件的Java程序。The SF 1704e is a Java library for controlling the functions of the PID filter 1502 and the segment filter 1503 of the broadcast recording and reproducing terminal. When the Java program passes filter conditions such as PID, table_id, etc. to SF 1704e, SF 1704e uses the function of library 1701b based on these conditions, sets the filter conditions and controls the PID filter 1502 and segment filter 1503, and obtains the desired filter. Conditional MPEG-2 segment, and the MPEG-2 segment is passed to the Java program that sets the filter condition.

DSM-CC 1704d是用于访问DSM-CC对象传送带(object carousel)的文件系统的Java库。DSM-CC对象传送带包括在由SF 1704e获得的MPEG-2分段中。DSM-CC由ISO/IEC 13818-6标准定义,并且是用于使用MPEG-2分段来发送任意文件的机制。通过使用这个,可以从广播站向终端发送文件。基于由Java程序等指定的DSM-CC标识符和文件标识符,DSM-CC 1704d使用SF 1704e并获取MPEG-2分段,取得基于ISO/IEC 13818-6标准的文件,并且将该文件输出给主存储单元1308、第二存储单元1307等。实现DSM-CC的详细方法与本发明无关,因此省略了细节。DSM-CC 1704d is a Java library for accessing the file system of the DSM-CC object carousel. The DSM-CC object carousel is included in the MPEG-2 section obtained by SF 1704e. DSM-CC is defined by the ISO/IEC 13818-6 standard and is a mechanism for transmitting arbitrary files using MPEG-2 segments. By using this, it is possible to send a file from a broadcasting station to a terminal. DSM-CC 1704d uses SF 1704e and acquires MPEG-2 segments based on the DSM-CC identifier and file identifier specified by a Java program, etc., acquires a file based on the ISO/IEC 13818-6 standard, and outputs the file to The main storage unit 1308, the second storage unit 1307, and so on. The detailed method of implementing DSM-CC is irrelevant to the present invention, so the details are omitted.

AM 1704b是提供用于管理服务中包含的Java程序的执行和终止的功能的应用程序管理器。AM 1704b提取复用到由指定的MPEG-2传输流所指定的频道中的Java程序,并且根据单独复用的同步信息使所提取的Java程序执行或终止。该Java程序的Java类文件被以前面所提的DSM-CC格式复用到MPEG-2传输流中。另外,该Java程序的同步信息是称为AIT的格式,并被复用到该MPEG-2传输流中。AIT是应用程序信息表的首字母缩写,如在DVB-MHP规范(ETSITS101812 DVB-MHP规范V1.0.2)的第10小节中所定义的,其是table_id为“0x74”的MPEG-2分段。在本实施例的说明中,所用的AIT是DVB-MHP规范定义的版本的修改版。AM 1704b is an application manager that provides a function for managing execution and termination of Java programs included in the service. The AM 1704b extracts the Java program multiplexed into the channel specified by the specified MPEG-2 transport stream, and causes the extracted Java program to be executed or terminated according to the individually multiplexed synchronization information. The Java class file of the Java program is multiplexed into the MPEG-2 transport stream in the aforementioned DSM-CC format. Also, the synchronization information of the Java program is in a format called AIT, and is multiplexed into the MPEG-2 transport stream. AIT is an acronym for Application Information Table, which is an MPEG-2 section whose table_id is "0x74", as defined in subsection 10 of the DVB-MHP specification (ETSITS101812 DVB-MHP specification V1.0.2). In the description of this embodiment, the AIT used is a modified version of the version defined by the DVB-MHP specification.

图24示出了AM 1704b的内部结构。AM 1704b被构造为AIT监控单元2402和应用程序状态管理单元2401。Figure 24 shows the internal structure of AM 1704b. The AM 1704b is structured as an AIT monitoring unit 2402 and an application state management unit 2401.

AIT监控单元2402对AIT的更新状态进行监控,以在服务再现和记录时从TS解码器输出的MPEG-2传输流的私有分段和频道标识符作为输入。首先,AIT监控单元2402以指定频道标识符作为关键字在库1701b中搜索频道信息,并且获得相应服务的节目号。接着,使用SF 1704e等,从MPEG-2传输流中获取PAT。然后,从PMT的信息中获得与所获得的节目号相对应的PMT的PID。再次使用SF1704e,获取实际的PMT。所获取的PMT是图11所示的格式,并且已经写有以“数据”作为流标识符且以“AIT”作为补充信息的基本流的PID。此外,当把现在获得的PID和AIT的table_ID“0x74”作为过滤条件提供给SF 1701e时,就获得了实际的AIT。The AIT monitoring unit 2402 monitors the update state of the AIT, taking as input the private segment and channel identifier of the MPEG-2 transport stream output from the TS decoder at the time of service reproduction and recording. First, the AIT monitoring unit 2402 searches for channel information in the library 1701b with a designated channel identifier as a key, and obtains a program number of a corresponding service. Next, obtain the PAT from the MPEG-2 transport stream using SF 1704e, etc. Then, the PID of the PMT corresponding to the obtained program number is obtained from the information of the PMT. Use SF1704e again to get the actual PMT. The acquired PMT is in the format shown in FIG. 11, and has written the PID of the elementary stream with "data" as the stream identifier and "AIT" as supplementary information. Furthermore, when the now obtained PID and table_ID "0x74" of the AIT are supplied to the SF 1701e as filter conditions, the actual AIT is obtained.

图22是示意性地示出AIT信息的示例的图表。AIT版本号2200表示该AIT的版本。AIT的版本越高,AIT越新。相同AIT版本的AIT被重复接收,但是因为已经获取了一个AIT,所以AIT监控单元2402忽略并且不再获取相同AIT版本的AIT,仅获取比已获得的AIT新的AIT。注意,在此时,有可能会出现PAT和PMT的版本升级。因此,不断监控在PAT和PMT中是否出现了版本升级,在PAT或PMT实际出现了版本升级的情况下,必须基于版本升级的PAT和PMT通过前面所提的方法重新获取实际的AIT。AIT监控单元2402将每个AIT的所获取的新AIT输出给应用程序状态管理单元2401和已记录服务选择单元2404。列2201是Java程序的标识符。根据MHP标准,该标识符被定义为应用程序ID。FIG. 22 is a diagram schematically showing an example of AIT information. The AIT version number 2200 indicates the version of the AIT. The higher the version of the AIT, the newer the AIT. AITs of the same AIT version are repeatedly received, but since one AIT has already been acquired, the AIT monitoring unit 2402 ignores and no longer acquires an AIT of the same AIT version, and only acquires an AIT newer than the already acquired AIT. Note that at this point, version upgrades of PAT and PMT may occur. Therefore, it is constantly monitored whether there is a version upgrade in the PAT and PMT. If there is actually a version upgrade in the PAT or PMT, the actual AIT must be reacquired based on the version upgrade PAT and PMT through the aforementioned method. The AIT monitoring unit 2402 outputs the acquired new AIT of each AIT to the application state management unit 2401 and the recorded service selection unit 2404 . Column 2201 is the identifier of the Java program. According to the MHP standard, this identifier is defined as an application ID.

列2202是Java程序的控制信息。在该控制信息中,有“自动启动(autostart)”、“呈现(present)”、“关闭(kill)”等;“自动启动”意思是终端装置1300立即自动执行该Java程序,“呈现”意思是不进行自动执行,而“关闭”意思是停止该Java程序。列2203是用于提取包括DSM-CC格式的Java程序的PID的DSM-CC标识符。列2204是Java程序的程序名。列2205是service_bound_flag(服务绑定标志),其中1表示当选择不同服务时该Java程序将毫无疑问地结束。0表示当选择另一个服务时,如果指明该Java程序仍与那个服务的AIT相对应,则继续执行该Java程序而无需终止。然而,即使在0的情况下,新选择的服务中的Java程序的控制信息也被赋予优先级。同样在0情况下,当新选择的服务未被记录时,继续照现在的样子执行当前的Java程序。Column 2202 is control information of the Java program. In the control information, there are "autostart", "present", "kill" and so on; "autostart" means that the terminal device 1300 automatically executes the Java program immediately, and "present" means is not to perform automatic execution, and "shut down" means to stop the Java program. Column 2203 is the DSM-CC identifier used to extract the PID of the Java program including the DSM-CC format. Column 2204 is the program name of the Java program. Column 2205 is service_bound_flag (service binding flag), where 1 means that the Java program will end without doubt when a different service is selected. 0 indicates that when another service is selected, if the Java program still corresponds to the AIT of that service, the execution of the Java program is continued without termination. However, even in the case of 0, the control information of the Java program in the newly selected service is given priority. Also in the case of 0, when the newly selected service is not registered, continue to execute the current Java program as it is now.

注意,在这种情况下,一种配置可以是终止Java程序的情况。这里,一种仅能对指定服务进行选择性再现的EPG应用可以被作为service_bound_flag=0的Java程序的示例给出。换句话说,通过在所有要选择性地再现的服务中包括service_bound_flag=0的相同EPG应用,在每个服务都根据该EPG应用被有选择性地再现的情况下,可以不终止地连续执行该EPG应用。行2211、2212、2213以及2214是Java程序的多组信息。由行2211定义的Java程序是Java程序标识符“0x3221”、控制信息“自动启动”、DSM-CC标识符“1”以及程序名“a/TopXlet”的组合。Note that in this case, one configuration can be the case where the Java program is terminated. Here, an EPG application capable of selective reproduction of only a specified service can be given as an example of a Java program with service_bound_flag=0. In other words, by including the same EPG application with service_bound_flag=0 in all the services to be selectively reproduced, in the case where each service is selectively reproduced according to the EPG application, the execution can be continuously executed without termination. EPG application. Lines 2211, 2212, 2213, and 2214 are sets of information of the Java program. The Java program defined by the line 2211 is a combination of the Java program identifier "0x3221", the control information "autostart", the DSM-CC identifier "1", and the program name "a/TopXlet".

行2212中定义的Java程序是包括Java程序标识符“0x3222”、控制信息“呈现”、DSM-CC标识符“1”以及程序名“b/GameXlet”的一组。这里,由行2211、2212以及2214定义的三个Java程序具有相同的DSM-CC标识符。这就表示这三个Java程序被包括在一个以DSM-CC格式编码的文件系统中。这里,针对Java程序规定了四类信息,但是事实上,定义了更多信息类型。详情可以查阅DVB-MHP规范。The Java program defined in line 2212 is a set including a Java program identifier "0x3222", control information "presentation", a DSM-CC identifier "1", and a program name "b/GameXlet". Here, the three Java programs defined by lines 2211, 2212, and 2214 have the same DSM-CC identifier. This means that the three Java programs are included in a file system encoded in the DSM-CC format. Here, four types of information are specified for Java programs, but in fact, more types of information are defined. For details, please refer to the DVB-MHP specification.

应用程序状态管理单元2401分析从AIT监控单元2402输出的更新后的AIT的细节,并且基于该AIT的这些细节来管理该Java程序的执行状态。Application state management unit 2401 analyzes the details of the updated AIT output from AIT monitoring unit 2402, and manages the execution state of the Java program based on the details of the AIT.

首先,应用程序状态管理单元2401从AIT内部找到控制信息为“自动启动”的Java程序,并提取相应的DSM-CC标识符和Java程序名。参考图22,AM 1704b从行2211提取Java程序,并获取DSM-CC标识符“1”和Java程序名“a/TopXlet”。接着,应用程序状态管理单元2401使用从AIT获得的DSM-CC标识符以便访问DSM-CC1704d,并能够取得存储在DSM-CC文件系统中的该Java程序的文件。该文件被存储在主存储单元1308、第二存储单元1307等中。此后,从MPEG-2传输流的TS分组中取得诸如文件系统这样的数据并将该数据保存到诸如主存储单元1308和第二存储单元1307这样的存储装置中,将这称为下载。First, the application state management unit 2401 finds the Java program whose control information is "autostart" from inside the AIT, and extracts the corresponding DSM-CC identifier and Java program name. Referring to FIG. 22, the AM 1704b extracts the Java program from row 2211, and acquires the DSM-CC identifier "1" and the Java program name "a/TopXlet". Next, the application state management unit 2401 uses the DSM-CC identifier obtained from the AIT in order to access the DSM-CC 1704d, and can acquire the file of the Java program stored in the DSM-CC file system. This file is stored in the main storage unit 1308, the second storage unit 1307, and the like. Thereafter, fetching data such as a file system from the TS packets of the MPEG-2 transport stream and saving the data in storage devices such as the main storage unit 1308 and the second storage unit 1307 is referred to as downloading.

图23是下载的文件系统的示例。在该图中,圆形代表目录,而方形代表文件。2301是根目录,2302是目录“a”,2303是目录“b”,2304是文件“TopXlet.class”,2305是文件“GameXlet.class”,2306是目录“z”,2307是文件“MusicXlet.class”,以及2308是文件“StudyXlet.class”。Fig. 23 is an example of a downloaded file system. In this diagram, circles represent directories and squares represent files. 2301 is the root directory, 2302 is the directory "a", 2303 is the directory "b", 2304 is the file "TopXlet.class", 2305 is the file "GameXlet.class", 2306 is the directory "z", 2307 is the file "MusicXlet. class", and 2308 is the file "StudyXlet.class".

接着,应用程序状态管理单元2401从下载到主存储单元1308中的文件系统中,将要执行的Java程序传给Java VM 1703。这里,当要执行的Java程序名为“A/TopXlet”时,文件“a/TopXlet.class”是该要执行的文件,其中将“.class”加到该Java程序名的末尾。“/”是路径和文件名之间的分隔符,参考图23,文件2304是应该被执行的Java程序。在Java VM中将该文件作为Java程序执行。Next, the application state management unit 2401 transfers the Java program to be executed from the file system downloaded to the main storage unit 1308 to the Java VM 1703. Here, when the name of the Java program to be executed is "A/TopXlet", the file "a/TopXlet.class" is the file to be executed, wherein ".class" is added to the end of the name of the Java program. "/" is a separator between a path and a file name, and referring to FIG. 23, a file 2304 is a Java program that should be executed. Execute the file as a Java program in the Java VM.

每次从AIT监控单元2402输出具有新AIT版本的AIT时,应用程序状态管理单元2401分析该AIT,并且改变新Java程序的执行状态。Every time an AIT with a new AIT version is output from the AIT monitoring unit 2402, the application state management unit 2401 analyzes the AIT, and changes the execution state of the new Java program.

JMF 1704a控制包含在服务中的视频和音频的再现。具体地说,在再现该服务时,JMF 1704a使来自从TS解码器输出的MPEG-2传输流的指定视频ES和音频ES被输入到AV解码器中。JMF 1704a controls the reproduction of video and audio contained in the service. Specifically, when reproducing the service, the JMF 1704a causes specified video ES and audio ES from the MPEG-2 transport stream output from the TS decoder to be input to the AV decoder.

JMF 1704a的一个输入是要再现的频道的频道标识符。首先,JMF1704a将指定的频道标识符作为关键字在库1701b中搜索频道信息,并且获得节目号。接着,使用SF 1704e等,从MPEG-2传输流中获取了PAT。然后,从PMT的信息中获得与所获得的节目号相对应的PMT的PID。再次使用SF 1704,获取实际的PMT。所获取的PMT是图11所示格式,并且写有以“视频”和“音频”作为流标识符的基本流的PID。当JMF 1704a通过库1701b将这些PID设置在TS解码器1302的PID过滤器1502中时,由AV解码器1303对其上复用了这些PID的视频ES和音频ES进行解码,如图15或图16所示。通过扬声器1304和显示器1305再现所解码的音频和视频。One input to JMF 1704a is the channel identifier of the channel to be reproduced. First, JMF 1704a searches channel information in library 1701b using the specified channel identifier as a key, and obtains a program number. Next, using SF 1704e etc., the PAT was obtained from the MPEG-2 transport stream. Then, the PID of the PMT corresponding to the obtained program number is obtained from the information of the PMT. Using SF 1704 again, get the actual PMT. The acquired PMT is in the format shown in FIG. 11, and the PID of the elementary stream is written with "video" and "audio" as stream identifiers. When the JMF 1704a sets these PIDs in the PID filter 1502 of the TS decoder 1302 through the library 1701b, the video ES and the audio ES on which these PIDs are multiplexed are decoded by the AV decoder 1303, as shown in FIG. 15 or FIG. 16. The decoded audio and video are reproduced through speaker 1304 and display 1305 .

已记录服务选择处理程序(handler)管理器1704g对已记录服务选择处理程序的注册和执行进行处理,所述已记录服务选择处理程序用于确定是否在记录时除了指定的服务以外还同时记录另一服务。图24示出了已记录服务选择处理程序管理器1704g的内部结构。已记录服务选择处理程序管理器1704g包括:已记录服务选择处理程序注册单元2406;已记录服务选择处理程序调用单元2405;多服务记录允许处理程序注册单元2408;以及多服务记录允许处理程序调用单元2407。The recorded service selection handler (handler) manager 1704g handles registration and execution of a recorded service selection handler for determining whether to simultaneously record other services in addition to the specified service at the time of recording. One serving. FIG. 24 shows the internal structure of the recorded service selection handler manager 1704g. The recorded service selection handler manager 1704g includes: a recorded service selection handler registration unit 2406; a recorded service selection handler call unit 2405; a multi-service record permission handler registration unit 2408; and a multi-service record permission handler call unit 2407.

已记录服务选择处理程序注册单元2406提供了注册已记录服务选择处理程序的Java API。该Java API是registerHandler(Handler h)的格式,并且在h中指定了已记录服务选择处理程序。当调用该API时,将所指定的已记录服务选择处理程序存储在主存储单元1308中。Recorded service selection handler registration unit 2406 provides a Java API for registering recorded service selection handlers. The Java API is of the form registerHandler(Handler h), and the recorded service selection handler is specified in h. When this API is called, the designated recorded service selection handler is stored in the main storage unit 1308 .

已记录服务选择处理程序是下载的Java程序的一部分,其是以Java语言编写的程序代码。已记录服务选择处理程序具有Handler.notify方法的返回值,该方法具有array PMT[](AIT ait,PMTpmt,PMT pmt[])。参数ait是包括要记录的服务的AIT;参数pmt是表示要记录的服务的PMT;参数pmt[]是要同时记录的PMT组。这些参数被从已记录服务选择单元2404传输到已记录服务选择处理程序调用单元2405。下载的Java程序参考这些参数的信息,选择要与原服务同时记录的服务,并且将其作为返回值PMT[]返回。注意,返回值为空表示已记录服务选择处理程序并未特别指定想要记录的服务,并且把对要记录的服务的选择留给记录管理器1704h。The recorded service selection handler is a part of the downloaded Java program, which is a program code written in the Java language. It is documented that service selection handlers have a return value of a Handler.notify method that has an array PMT[](AIT ait, PMTpmt, PMT pmt[]). The parameter ait is the AIT including the service to be recorded; the parameter pmt is the PMT representing the service to be recorded; the parameter pmt[] is the PMT group to be recorded at the same time. These parameters are transferred from the recorded service selection unit 2404 to the recorded service selection handler call unit 2405 . The downloaded Java program refers to the information of these parameters, selects the service to be recorded simultaneously with the original service, and returns it as the return value PMT[]. Note that a return value of null indicates that the recorded service selection handler did not specifically specify a service to be recorded, and leaves the selection of services to be recorded to the recording manager 1704h.

已记录服务选择处理程序调用单元2405从已记录服务选择单元2404接收包括要记录的服务的AIT、表示要记录的服务的PMT以及与要同时记录的服务相对应的所有PMT。然后,已记录服务选择处理程序调用单元2405以那些条信息来调用在主存储单元中注册的已记录服务选择处理程序的notify方法。此后,已记录服务选择处理程序调用单元2405向已记录服务选择单元2404通知该已记录服务选择处理程序的返回值PMT[]。The recorded service selection handler calling unit 2405 receives from the recorded service selection unit 2404 the AIT including the service to be recorded, the PMT indicating the service to be recorded, and all the PMTs corresponding to the services to be recorded simultaneously. Then, the recorded service selection handler calling unit 2405 calls the notify method of the recorded service selection handler registered in the main storage unit with those pieces of information. Thereafter, the recorded service selection handler calling unit 2405 notifies the recorded service selection unit 2404 of the return value PMT[] of the recorded service selection handler.

多服务记录允许处理程序注册单元2408提供注册多服务记录允许处理程序的Java API。该Java API是registerHandler(AllowHandler h)的格式,并且将多服务记录允许处理程序指定为h。当调用该API时,将指定的多服务记录允许处理程序存储在主存储单元1308中。The multi-service record allowing handler registration unit 2408 provides a Java API for registering a multi-service record allowing handler. This Java API is in the form of registerHandler(AllowHandler h), and the multi-service record allow handler is specified as h. When this API is called, the specified multi-service record permission handler is stored in the main storage unit 1308 .

多服务记录允许处理程序是下载的Java程序的一部分,并且是用Java语言编写的程序代码。多服务记录允许处理程序将具有布尔值的方法Handler.allowMultiServicRec()作为返回值。当调用该方法时,下载的Java程序判断是否允许与原始服务一起同时记录多个服务,并且将其作为返回值返回。返回值为真时表示允许同时记录多个服务。返回值为假时表示不允许同时记录多个服务,只能单独记录指定的服务。The multi-service record enabling handler is part of the downloaded Java program and is program code written in the Java language. A multi-service record allows handlers to have a method Handler.allowMultiServicRec() with a boolean value as return value. When this method is called, the downloaded Java program judges whether it is allowed to simultaneously record multiple services together with the original service, and returns it as a return value. When the return value is true, it means that multiple services are allowed to record at the same time. When the return value is false, it means that multiple services are not allowed to be recorded at the same time, and only the specified service can be recorded separately.

一从已记录服务选择单元2404接收到多服务记录允许判断请求,多服务记录允许处理程序调用单元2407就调用在主存储器单元中注册的多服务记录允许处理程序的allowMultiServiceRec方法。此后,多服务记录允许处理程序调用单元2407向已记录服务选择单元2404通知多服务记录允许处理程序的返回值。Upon receiving the multi-service recording permission judgment request from the recorded service selection unit 2404, the multi-service recording permission handler calling unit 2407 calls the allowMultiServiceRec method of the multi-service record permission handler registered in the main memory unit. Thereafter, the multi-service record permission handler calling unit 2407 notifies the recorded service selection unit 2404 of the return value of the multi-service record permission handler.

记录管理器1704h将包括指定的服务的MPEG-2传输流记录在第二存储单元中。图24示出了记录管理器1704h的内部结构。记录管理器1704h包括记录注册单元2403以及已记录服务选择单元2404。记录注册单元2403以频道标识符、起始时间以及结束时间为输入,在第二存储单元1307中仅仅记录所指定的服务的起始时间和结束时间之间的间隔。记录注册单元2403是用于记录注册的Java API,其具有record(int source_id,Time start,Time end)。source_id指定了频道标识符,start指定了记录的起始时间,而end指定了记录的结束时间。另外,记录注册单元2403还接受来自非Java程序的记录注册请求。例如,可以从EPG 1702指定频道标识符、起始时间以及结束时间。当进行了记录注册时,记录注册单元2403等待。The recording manager 1704h records the MPEG-2 transport stream including the specified service in the second storage unit. Fig. 24 shows the internal structure of the recording manager 1704h. The record manager 1704h includes a record registration unit 2403 and a recorded service selection unit 2404 . The record registration unit 2403 takes the channel identifier, start time and end time as input, and only records the interval between the start time and end time of the specified service in the second storage unit 1307 . The record registration unit 2403 is a Java API for record registration, which has record(int source_id, Time start, Time end). source_id specifies the channel identifier, start specifies the start time of the recording, and end specifies the end time of the recording. In addition, the record registration unit 2403 also accepts a record registration request from a non-Java program. For example, a channel identifier, start time, and end time may be specified from EPG 1702. When the record registration is performed, the record registration unit 2403 waits.

此后,一旦到达记录起始时间之前的特定时间,EPG 1702就向已记录服务选择单元2404提供指定的频道标识符、记录起始时间以及记录结束时间,并请求记录该服务。这里,该特定时间可以是任意时间,但希望其是已记录服务选择单元2404可以完成记录预处理的时间量,如下所述。已记录服务选择单元2404基于所指定的频道标识符、记录起始时间以及记录结束时间,将该服务记录到第二存储单元中。Thereafter, upon reaching a specific time before the recording start time, the EPG 1702 provides the specified channel identifier, recording start time, and recording end time to the recorded service selection unit 2404, and requests recording of the service. Here, the specific time may be any time, but desirably it is the amount of time that the recorded service selection unit 2404 can complete recording preprocessing, as described below. The recorded service selection unit 2404 records the service into the second storage unit based on the specified channel identifier, recording start time, and recording end time.

首先,在第二存储单元1307中,已记录服务选择单元2404确保一个记录区1504,该记录区用于记录从指定的起始时间到指定的结束时间的MPEG-2传输流。将媒体标识符提供给所确保的记录区。接着,以频道标识符作为关键字,已记录服务选择单元2404从库1701b所拥有的频道信息中获得对应于该频道标识符的调谐信息。此后,当已记录服务选择单元2404为调谐器1704c提供该调谐信息时,调谐器1704c开始进行调谐。这里,调谐信息是可以指定诸如频率、调制方法等的信息。另外,如图15所示,对硬件组成单元的输入和输出进行设置,使得通过适配器1311将MPEG-2传输流输入到TS解码器中。First, in the second storage unit 1307, the recorded service selection unit 2404 secures a recording area 1504 for recording an MPEG-2 transport stream from a designated start time to a designated end time. A media identifier is provided to the secured recording area. Next, using the channel identifier as a key, the recorded service selection unit 2404 obtains the tuning information corresponding to the channel identifier from the channel information owned by the library 1701b. Thereafter, when the recorded service selection unit 2404 provides the tuner 1704c with the tuning information, the tuner 1704c starts tuning. Here, the tuning information is information that can specify such as frequency, modulation method, and the like. In addition, as shown in FIG. 15 , the input and output of the hardware constituent units are set so that the MPEG-2 transport stream is input into the TS decoder through the adapter 1311 .

接着,使用SF 1704e,已记录服务选择单元2404从通过调谐获得的MPEG-2传输流中获取PAT。此后,从该PAT中获取PMT的PID,并且使用SF 1704e,获取MPEG-2传输流中的所有PMT。另外,已记录服务选择单元2404从库1701b中搜索与所指定的频道标识符相对应的节目号,并检查相应的PMT。注意,在MPEG标准中,可以升级PAT和PMT的版本。因此,已记录服务选择单元2404不断地对PAT和PMT进行过滤和监控;当PAT或PMT的版本得到升级后,重复上述处理过程,并且获得了该MPEG-2传输流中所有的PMT以及要记录的服务的PMT。Next, using the SF 1704e, the recorded service selection unit 2404 acquires the PAT from the MPEG-2 transport stream obtained by tuning. Thereafter, PIDs of PMTs are obtained from this PAT, and using SF 1704e, all PMTs in the MPEG-2 Transport Stream are obtained. Also, the recorded service selection unit 2404 searches the library 1701b for a program number corresponding to the specified channel identifier, and checks the corresponding PMT. Note that in the MPEG standard, versions of PAT and PMT can be upgraded. Therefore, recorded service selection unit 2404 constantly filters and monitors PAT and PMT; after the version of PAT or PMT is upgraded, repeat the above-mentioned process, and obtain all PMTs in this MPEG-2 transport stream and to record PMT of the service.

在记录过程中,一旦从AIT监控单元2402接收到关于具有升级后版本的新AIT的通知,或一旦检测到PAT或PMT的版本升级,已记录服务选择单元2404就向已记录服务选择处理程序调用单元2405通知最新的AIT、由频道标识符(其又是由记录注册单元2403指定的)指定的要记录的服务的PMT、以及作为同时记录的服务的MPEG-2传输流中的所有PMT,并请求调用已记录服务选择处理程序。然后,正如前面所提到的,已记录服务选择处理程序调用单元2405将记录和再现处理程序通知方法的返回值返回给已记录服务选择单元2404。During the recording process, once a notification about a new AIT with an upgraded version is received from the AIT monitoring unit 2402, or once a version upgrade of PAT or PMT is detected, the recorded service selection unit 2404 calls the recorded service selection handler The unit 2405 notifies the latest AIT, the PMT of the service to be recorded specified by the channel identifier (which in turn is specified by the recording registration unit 2403), and all the PMTs in the MPEG-2 transport stream as the simultaneously recorded service, and The request invokes the documented service selection handler. Then, as mentioned earlier, the recorded service selection handler calling unit 2405 returns the return value of the recording and reproduction handler notification method to the recorded service selecting unit 2404.

如果从已记录服务选择处理程序调用单元2405返回PMT阵列,则同时记录所指定的PMT表示的服务。在PMT阵列中表示的所有ES(换句话说,音频、视频)、以及组成有关所有PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。然而,在第二存储单元1307中有很少剩余空间的情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。If a PMT array is returned from the recorded service selection handler calling unit 2405, the service indicated by the specified PMT is simultaneously recorded. All ESs (in other words, audio, video) represented in the PMT array, and all PIDs and table_ids of segment ESs constituting services related to all PMTs, are set in the PID filter 1502 of the TS decoder and the segment filtering device 1503. However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 . Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 15 . Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,如果从已记录服务选择处理程序调用单元2405返回“空”,则已记录服务选择单元2404通过下列步骤确定要同时记录的服务。On the other hand, if "null" is returned from the recorded service selection handler call unit 2405, the recorded service selection unit 2404 determines services to be simultaneously recorded through the following steps.

首先,已记录服务选择单元2404参考AIT,并且检查包括在该服务中的所有Java程序的service_bound_flag。First, the recorded service selection unit 2404 refers to the AIT, and checks the service_bound_flags of all the Java programs included in the service.

如果对于所有Java程序,service_bound_flag=1,则已记录服务选择单元2404仅记录由频道标识符指定的要记录的服务。换句话说,在TS解码器的PID过滤器1502和分段过滤器1503中设置要记录的服务的PMT中表示的所有ES(换句话说,音频、视频)、以及组成该服务的分段ES的所有PID和table_id。此后,通过库1701b设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。If service_bound_flag=1 for all Java programs, the recorded service selection unit 2404 records only the service to be recorded specified by the channel identifier. In other words, all the ESs indicated in the PMT of the service to be recorded (in other words, audio, video), and the segment ESs constituting the service are set in the PID filter 1502 and the segment filter 1503 of the TS decoder All PIDs and table_ids. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,在有service_bound_flag=0的Java程序的情况下,已记录服务选择单元2404首先向多服务记录允许处理程序调用单元2407请求判断是否允许记录多个服务。在多服务记录允许处理程序调用单元2407返回“假”时,执行在service_bournd_flag=1情况下所述的处理过程,只记录由频道标识符所指定的要记录的服务。在多服务记录允许处理程序调用单元2407返回“真”时,已记录服务选择单元2404记录MPEG-2传输流中的所有服务。换句话说,在MPEG-2传输流中的所有PMT中表示的所有ES(换句话说,音频、视频)、以及组成有关所有PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。然而,在第二存储单元1307中有很少剩余空间情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503,以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。On the other hand, in the case of a Java program with service_bound_flag=0, recorded service selection unit 2404 first requests multi-service recording permission handler calling unit 2407 to judge whether recording of multiple services is permitted. When the multi-service recording permission handler calling unit 2407 returns "false", the processing described in the case of service_bournd_flag=1 is performed, and only the service to be recorded specified by the channel identifier is recorded. When multi-service recording allow handler calling unit 2407 returns "true", recorded service selecting unit 2404 records all services in the MPEG-2 transport stream. In other words, all ESs (in other words, audio, video) expressed in all PMTs in the MPEG-2 transport stream, and all PIDs and table_ids of segment ESs constituting services related to all PMTs are set in TS PID filter 1502 and segmentation filter 1503 of the decoder. However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and the segment filter 1503 of the TS decoder so as to only record into the remaining space The audio/video ES and the segment are recorded into the second storage unit 1307. Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 15 . Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

期望在所指定的记录起始时间之前完成如上所述的、发生在实际进行记录之前的预处理。可以在指定的起始时间之后将该服务记录到记录区1504中。It is desirable to complete the preprocessing described above, which occurs before recording is actually performed, before the specified recording start time. The service may be recorded into recording area 1504 after a specified start time.

此后,当到达所指定的记录结束时间时,已记录服务选择单元2404停止调谐器1704c的调谐处理,并且使MPEG-2传输流到记录区1504中的写入结束。另外,创建如图21所示的记录信息管理表,作为之前记录的MPEG-2传输流的管理信息。Thereafter, when the specified recording end time is reached, the recorded service selection unit 2404 stops the tuning process of the tuner 1704c, and causes the writing of the MPEG-2 transport stream into the recording area 1504 to end. In addition, a recording information management table as shown in FIG. 21 is created as the management information of the previously recorded MPEG-2 transport stream.

图21是一个用于对记录在第二存储单元1307的记录区1504中的记录信息等信息进行管理的记录信息管理表的示例。以图表格式记录该记录信息。列2101是记录标识符。列2102是指定要被记录的频道标识符。列2103是相应的节目号。列2104是该服务的记录起始时间,列2105是该服务的记录结束时间。列2106是标识作为服务记录的MPEG-2传输流的媒体标识符。行2111到2112的每行是每个记录标识符、频道标识符、节目号、起始时间、结束时间以及媒体标识符的一组。例如,行2111示出记录标识符“000”、频道标识符“2”,节目号“102”、起始时间“2005/03/30 11:00”、结束时间“2005/03/3012:00”、以及媒体标识符“TS_001”。FIG. 21 is an example of a recording information management table for managing information such as recording information recorded in the recording area 1504 of the second storage unit 1307. Record this record information in a graph format. Column 2101 is the record identifier. Column 2102 is to specify the channel identifier to be recorded. Column 2103 is the corresponding program number. Column 2104 is the recording start time of the service, and column 2105 is the recording end time of the service. Column 2106 is a media identifier identifying the MPEG-2 transport stream recorded as a service. Each of rows 2111 to 2112 is a set of each record identifier, channel identifier, program number, start time, end time, and media identifier. For example, row 2111 shows record identifier "000", channel identifier "2", program number "102", start time "2005/03/30 11:00", end time "2005/03/3012:00 , and the media identifier "TS_001".

服务管理器1704f对已记录在第二存储单元1307中的MPEG-2传输流内的服务的再现进行管理,或者对从适配器1311输入的MPEG-2传输流中的服务的再现进行管理。The service manager 1704f manages the reproduction of the service in the MPEG-2 transport stream that has been recorded in the second storage unit 1307, or manages the reproduction of the service in the MPEG-2 transport stream input from the adapter 1311.

下面,说明在对记录在第二存储单元1307中的MPEG-2传输流中包含的服务的再现进行管理的情况下的处理过程。这等同于对已记录的服务进行再现。在这种情况下,服务管理器1704f将记录标识符作为输入。仅将再现已记录在第二存储单元1307中、并且由该记录标识符指定的服务。首先,参考由记录管理器1704h创建的记录信息管理表,服务管理器1704f通过指定的记录标识符,获得要再现的服务的频道标识符和媒体标识符。然后,服务管理器1704f通过库1701b命令第二存储单元1307将由所获得的媒体标识符指定的MPEG-2传输流输出给TS解码器1302。另外,服务管理器1704f通过库1701b设定每个硬件组成单元的输出目的地,以便流经图16所示的路径。此后,将第二存储单元1307提供给JMF 1704a以作为该MPEG-2传输流的位置,并且提供要再现的频道标识符。然后,通过上述处理过程,JMF 1704a开始对第二存储单元1307输出的MPEG-2传输流中复用的音频和视频进行再现。此外,将要再现的频道标识符提供给AM 1704b的AIT监控单元2402。然后,根据通过TS解码器1302从第二存储单元1307输出的MPEG-2传输流中复用的AIT,AM1704b开始执行和终止复用在相同MPEG-2传输流中的Java程序。此后,继续再现该服务,直到从第二存储单元1307输出的MPEG-2传输流结束。Next, the processing procedure in the case of managing the reproduction of the service contained in the MPEG-2 transport stream recorded in the second storage unit 1307 will be described. This is equivalent to reproducing the recorded service. In this case, the service manager 1704f takes the record identifier as input. Only the service that has been recorded in the second storage unit 1307 and specified by the recording identifier will be reproduced. First, referring to the recording information management table created by the recording manager 1704h, the service manager 1704f obtains the channel identifier and the media identifier of the service to be reproduced by specifying the recording identifier. Then, the service manager 1704f instructs the second storage unit 1307 to output the MPEG-2 transport stream specified by the obtained media identifier to the TS decoder 1302 through the library 1701b. In addition, the service manager 1704f sets the output destination of each hardware constituent unit through the library 1701b so as to flow through the route shown in FIG. 16 . Thereafter, the second storage unit 1307 is provided to the JMF 1704a as the location of the MPEG-2 transport stream, and the channel identifier to be reproduced is provided. Then, through the above process, the JMF 1704a starts to reproduce the audio and video multiplexed in the MPEG-2 transport stream output by the second storage unit 1307. In addition, the channel identifier to be reproduced is provided to the AIT monitoring unit 2402 of the AM 1704b. Then, according to the AIT multiplexed in the MPEG-2 transport stream output from the second storage unit 1307 by the TS decoder 1302, the AM 1704b starts executing and terminates the Java program multiplexed in the same MPEG-2 transport stream. Thereafter, reproduction of the service continues until the MPEG-2 transport stream output from the second storage unit 1307 ends.

另一方面,下面说明对从适配器1311输入的MPEG-2传输流内的服务进行再现的情况。这对应于从广播波直接再现服务。在这种情况下,服务管理器1704f将要再现服务的频道标识符作为输入。服务管理器1704f通过库1701,命令将从图15的适配器1311输出的MPEG-2传输流输出到TS解码器1302。另外,通过库1701b,服务管理器1704f设定每个组成单元的输出目的地,以便流经图16所示的路径。此后,将适配器1311提供给JMF 1704a作为该MPEG-2传输流的位置,并且提供要再现的频道标识符。然后,通过上述处理过程,JMF 1704a开始对适配器1311输出的MPEG-2传输流中复用的音频和视频进行再现。此外,将适配器1311提供给AM 1704b作为该MPEG-2传输流的位置,并且提供要再现的频道标识符。然后,根据复用在从适配器1311输出的MPEG-2传输流中的AIT,AM 1704b开始执行和终止复用在从第二存储单元1307输出的MPEG-2传输流中的Java程序。此后,继续再现该服务,直到从第二存储单元1307输出的MPEG-2传输流结束。On the other hand, a case where a service in an MPEG-2 transport stream input from the adapter 1311 is played back will be described below. This corresponds to directly reproducing services from broadcast waves. In this case, the service manager 1704f takes as input the channel identifier of the service to be reproduced. The service manager 1704f instructs the output of the MPEG-2 transport stream output from the adapter 1311 of FIG. 15 to the TS decoder 1302 through the library 1701 . In addition, through the library 1701b, the service manager 1704f sets the output destination of each constituent unit so as to flow through the route shown in FIG. 16 . Thereafter, the adapter 1311 is provided to the JMF 1704a as the location of the MPEG-2 transport stream, and the channel identifier to be reproduced is provided. Then, through the above processing procedure, the JMF 1704a starts to reproduce the audio and video multiplexed in the MPEG-2 transport stream output from the adapter 1311. In addition, the adapter 1311 is provided to the AM 1704b as the location of the MPEG-2 transport stream, and a channel identifier to be reproduced is provided. Then, the AM 1704b starts executing and terminates the Java program multiplexed in the MPEG-2 transport stream output from the second storage unit 1307 according to the AIT multiplexed in the MPEG-2 transport stream output from the adapter 1311. Thereafter, reproduction of the service continues until the MPEG-2 transport stream output from the second storage unit 1307 ends.

EPG 1702是电子节目指南,其功能是使用户选择要记录和再现的电视节目。通过接收广播波进行的常规再现偏离了本发明的领域,所以省略了说明。EPG 1702 is an electronic program guide whose function is to enable users to select television programs to be recorded and reproduced. Conventional reproduction by receiving broadcast waves deviates from the field of the present invention, so description is omitted.

在记录电视节目的情况下,EPG 1702显示已广播的电视节目的列表,并且让用户选择所希望的电视节目。图19是让用户选择要记录的电视节目的屏幕显示示例。在一个格中显示了时间1901以及频道1902和1903,可以检查每个时间上的每个可记录频道的电视节目。对于用户来说,可以通过使用包括在终端装置1300的输入单元1310中的光标上、下、右和左按钮1401到1404来移动屏幕中的焦点1911。此外,当按下OK按钮1405时,将选择记录当前焦点所指的电视节目。EPG 1702从库中获得了该电视节目的频道标识符,并当通过用户选择了要记录的电视节目时,将该电视节目的频道标识符、起始时间以及结束时间告知记录管理器1704h的记录注册单元2403。In the case of recording TV programs, the EPG 1702 displays a list of broadcasted TV programs and lets the user select a desired TV program. Figure 19 is an example of a screen display for a user to select a television program to record. Time 1901 and channels 1902 and 1903 are displayed in one grid, and TV programs of each recordable channel at each time can be checked. For the user, the focus 1911 in the screen can be moved by using cursor up, down, right and left buttons 1401 to 1404 included in the input unit 1310 of the terminal device 1300 . Additionally, when the OK button 1405 is pressed, the television program currently in focus will be selected for recording. The EPG 1702 obtains the channel identifier of the TV program from the library, and when the user selects the TV program to be recorded, the channel identifier, start time and end time of the TV program are notified to the recording manager 1704h Registration unit 2403.

另一方面,在再现已记录的电视节目的情况下,EPG 1702显示已记录的电视节目的列表,并让用户选择所希望的电视节目。图18是使其对已记录的电视节目进行选择的屏幕显示的示例。在该时刻上存储在第二存储单元1307中的所有电视节目均被列出。对于用户来说,可以使用包括在终端装置1300的输入单元1310中的光标上和下按钮1401和1402在屏幕内移动焦点1801。此外,当按下OK按钮时,将选择再现当前焦点所指的电视节目。EPG 1702从记录管理器1704h获得了该电视节目的记录标识符,当用户选择了要再现的电视节目时,向服务管理器1704f告知该电视节目的记录标识符。基于该信息,服务管理器1704f从第二存储单元1307读出该电视节目并对其进行再现。On the other hand, in the case of reproducing recorded TV programs, the EPG 1702 displays a list of recorded TV programs and allows the user to select a desired TV program. Figure 18 is an example of a screen display enabling selection of recorded television programs. All television programs stored in the second storage unit 1307 at that moment are listed. For the user, the focus 1801 can be moved within the screen using the cursor up and down buttons 1401 and 1402 included in the input unit 1310 of the terminal device 1300 . In addition, when the OK button is pressed, the TV program currently in focus will be selected for reproduction. The EPG 1702 obtains the record identifier of the TV program from the record manager 1704h, and when the user selects a TV program to be reproduced, notifies the service manager 1704f of the record identifier of the TV program. Based on this information, the service manager 1704f reads out the television program from the second storage unit 1307 and reproduces it.

下面,示出了如上所述构造的本实施例的典型操作。Next, a typical operation of the present embodiment constructed as described above is shown.

图31是示出了本实施例中,当把包括在广播波中的服务记录在第二存储单元1307中时的处理过程的概况的流程图。FIG. 31 is a flowchart showing an outline of a processing procedure when recording a service included in a broadcast wave in the second storage unit 1307 in this embodiment.

在S3101中,Java程序或其它程序将频道标识符、记录起始时间以及记录结束时间提供给记录注册单元2403。然后进行到S3102,记录注册单元2403等待,直到所指定的记录起始时间之前的固定时间段。此后,当到达在所指定的记录起始时间之前的该固定时间段时,该处理过程进行到S3103,并且记录注册单元2403请求已记录服务选择单元2404开始记录处理。已记录服务选择单元2404重复以下处理过程,直至到达所指定的记录结束时间。In S3101, the Java program or other programs provide the record registration unit 2403 with a channel identifier, a recording start time, and a recording end time. Then proceeding to S3102, the recording registration unit 2403 waits until a fixed period of time before the specified recording start time. Thereafter, when the fixed period of time before the specified recording start time is reached, the processing proceeds to S3103, and the recording registration unit 2403 requests the recorded service selection unit 2404 to start recording processing. The recorded service selection unit 2404 repeats the following processing until the specified recording end time is reached.

当发生AIT或PMT的版本升级时,或者发生由于PAT的版本升级引起的PMT更新时,该处理过程进行到S3104,并且已记录服务选择单元2404获取包含要记录的服务的传输流内的所有PMT,该服务由频道标识符指定。已记录服务选择处理程序调用单元2405被请求指定所有PMT并且调用已记录服务选择处理程序的notify方法。根据返回值,该处理过程以下列方式出现分支。When a version upgrade of AIT or PMT occurs, or a PMT update due to a version upgrade of PAT occurs, the process proceeds to S3104, and the recorded service selection unit 2404 acquires all the PMTs within the transport stream containing the service to be recorded , the service is specified by a channel identifier. The recorded service selection handler calling unit 2405 is requested to specify all PMTs and call the notify method of the recorded service selection handler. Depending on the return value, the processing branches in the following manner.

在返回值为PMT阵列的情况下,该处理过程进行到S3105,根据第二存储单元1307中所剩空间,已记录服务选择单元2404将包括在该PMT阵列中的所有音频/视频ES和分段记录在第二存储单元1307中。In the case that the return value is a PMT array, the process proceeds to S3105, and according to the remaining space in the second storage unit 1307, the recorded service selection unit 2404 will include all audio/video ESs and segments in the PMT array recorded in the second storage unit 1307.

在返回值为空的情况下,该处理过程进行到S3106,并且针对由所指定的频道标识符指定的服务的AIT的所有Java程序,检查service_bound_flag的值。当所有Java程序的service_bound_flag=1时,该处理过程进行到S3107,并且仅将由该频道标识符(其又是由记录注册单元2403指定的)指定的服务的音频/视频ES和分段记录在第二存储单元1307中。In case the return value is null, the process proceeds to S3106, and the value of service_bound_flag is checked for all Java programs of the AIT of the service specified by the specified channel identifier. When service_bound_flag=1 of all Java programs, the process proceeds to S3107, and only the audio/video ES and segments of the service specified by the channel identifier (which again is specified by the record registration unit 2403) are recorded at S3107. In the second storage unit 1307.

另一方面,在S3106中,在并不是所有Java程序的service_bound_flag均为1的情况下,该处理过程进行到S3108。这里,多服务记录允许处理程序调用单元2407被请求调用多服务记录允许处理程序的AllowMultiServiceRec方法。如果结果为假,则该处理过程进行到前述的S3107。另一方面,如果结果为真,则该处理过程进行到S3109,并且根据第二存储单元1307中所剩空间,将包括由频道标识符(其又是由记录注册单元2403指定的)指定的服务的MPEG-2传输流内的所有PMT的音频/视频ES和分段记录在第二存储单元1307中。当上述每个分支之后的处理都结束时,该处理过程返回到S3103,并重复进行处理。On the other hand, in S3106, in the case where the service_bound_flags of not all Java programs are 1, the process proceeds to S3108. Here, the multi-service record allowing handler calling unit 2407 is requested to call the AllowMultiServiceRec method of the multi-service recording allowing handler. If the result is false, the process proceeds to the aforementioned S3107. On the other hand, if the result is true, the process proceeds to S3109, and according to the remaining space in the second storage unit 1307, the service specified by the channel identifier (which is again specified by the record registration unit 2403) will be included. Audio/video ES and segments of all PMTs within the MPEG-2 transport stream are recorded in the second storage unit 1307 . When the processing after each of the above branches ends, the processing procedure returns to S3103, and the processing is repeated.

如上所述,根据本实施例,在记录服务时,可以参考要记录的ES的数目、存储单元中的可用空间等,通过下载的Java程序来确定是否与该服务一起同时记录其它服务。另外,可以自动检测包括在该服务中的Java程序是否是可为两个或更多服务执行的类型,并且在该Java程序是这种可执行的类型的情况下,可以记录所有可记录的服务。通过这样,即使该Java程序在服务再现期间实际进行了服务切换,该Java程序也可以继续执行而不会异常终止。As described above, according to the present embodiment, when recording a service, it is possible to determine whether to simultaneously record other services together with the service by referring to the number of ESs to be recorded, the available space in the storage unit, etc., through the downloaded Java program. In addition, it is possible to automatically detect whether the Java program included in the service is of a type that can be executed by two or more services, and if the Java program is of such an executable type, it is possible to record all recordable services . By doing so, even if the Java program actually performs service switching during service reproduction, the Java program can continue executing without abnormal termination.

(第二实施例)(second embodiment)

以下,参考附图说明了根据本发明的第二实施例的装置和方法。Hereinafter, an apparatus and method according to a second embodiment of the present invention are described with reference to the accompanying drawings.

如图13和图14所示那样构造用于本实施例的硬件结构。因为这与第一实施例中的结构和功能相同,所以省略了说明。The hardware structure used in this embodiment is constructed as shown in FIGS. 13 and 14 . Since this is the same structure and function as in the first embodiment, description is omitted.

在本实施例中,每个硬件组成单元具有如下输入和输出设定。In this embodiment, each hardware constituent unit has the following input and output settings.

首先,图15示出了表示在仅记录服务内指定的ES的情况下每个设备的物理连接顺序、处理细节以及输入/输出数据格式的概念性表述。因为这是第一实施例中所说明的相同结构,因此省略了说明。First, FIG. 15 shows a conceptual expression representing the physical connection order of each device, processing details, and input/output data format in the case of recording only ES specified within a service. Since this is the same structure described in the first embodiment, description is omitted.

接着,图25示出了表示在记录传送服务的所有MPEG-2传输流的情况下每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。2500是终端装置,其包括调谐器1301、适配器1311、解扰器1501以及记录区1504。图15中与图13具有相同编号的组成单元具有相同的功能,所以省略了说明。首先,调谐器1301根据CPU 1306提供的调谐指令对广播波进行调谐。调谐器1301对广播波进行解调并且将MPEG-2传输流输入到适配器1311中。位于适配器1311中的解扰器1501基于每个观看者的条件接入信息对MPEG-2传输流进行解扰。将已经解扰的MPEG-2传输流记录到第二存储单元中。Next, FIG. 25 shows a conceptual representation representing the physical connection order of each device, processing details, and input/output data format in the case of recording all MPEG-2 transport streams of the delivery service. 2500 is a terminal device including a tuner 1301 , an adapter 1311 , a descrambler 1501 and a recording area 1504 . The constituent elements in FIG. 15 having the same numbers as those in FIG. 13 have the same functions, so explanations are omitted. First, the tuner 1301 tunes broadcast waves according to a tuning instruction provided by the CPU 1306. The tuner 1301 demodulates broadcast waves and inputs the MPEG-2 transport stream into the adapter 1311 . The descrambler 1501 located in the adapter 1311 descrambles the MPEG-2 transport stream based on the conditional access information of each viewer. The descrambled MPEG-2 transport stream is recorded into the second storage unit.

最后,图16示出了表示在再现来自第二存储单元的服务期间每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是第一实施例中所说明的相同结构,所以省略了说明。Finally, FIG. 16 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during reproduction of services from the second storage unit. Since this is the same structure explained in the first embodiment, explanation is omitted.

至此,已说明了有关本发明的硬件结构的示例。此后,说明本发明的主要功能,即,通过Java程序控制服务的记录和再现。So far, an example of the hardware configuration related to the present invention has been described. Hereinafter, the main function of the present invention, that is, recording and reproduction of services controlled by a Java program, will be described.

如图17和图24所示那样构造用于本实施例的软件结构。另外,这里再次使用了用于第一实施例的图18到图23,来说明每种数据类型的结构以及屏幕配置。The software structure used in this embodiment is constructed as shown in FIGS. 17 and 24 . In addition, FIG. 18 to FIG. 23 for the first embodiment are used again here to explain the structure of each data type and the screen configuration.

关于图17和图24,除了已记录服务选择单元2404以及已记录服务选择处理程序调用单元2405以外,其它的组成单元等同于第一实施例所说明的那些,因此省略了说明。17 and 24, except for the recorded service selection unit 2404 and the recorded service selection handler call unit 2405, other constituent units are equivalent to those explained in the first embodiment, and therefore explanations are omitted.

本实施例的已记录服务选择处理程序调用单元2405是第一实施例的已记录服务选择处理程序调用单元2405的部分修改版本,并且其输出值不同于第一实施例的输出值。另外,对应于此,该已记录服务选择处理程序的notify方法也是不同的格式。本实施例的Handler.notify(AIT ait,PMT pmt,PMT pmt[])方法以整型值作为返回值。返回值为0表示已记录服务选择处理程序并是想要确定要记录的服务的选择。返回值为1表示仅记录要记录的指定服务。返回值为2表示传输要记录的服务的整个MPEG-2传输流均被记录。已记录服务选择处理程序调用单元2405将该notify方法的返回值返回给已记录服务选择单元2404。The recorded service selection handler calling unit 2405 of the present embodiment is a partially modified version of the recorded service selection handler calling unit 2405 of the first embodiment, and its output value is different from that of the first embodiment. In addition, corresponding to this, the notify method of the recorded service selection handler is also in a different format. The Handler.notify(AIT ait, PMT pmt, PMT pmt[]) method of this embodiment uses an integer value as a return value. A return value of 0 indicates that the service selection handler is documented and is a selection that wants to determine which services to record. A return value of 1 indicates that only the specified service to be logged is logged. A return value of 2 indicates that the entire MPEG-2 Transport Stream transporting the service to be recorded is recorded. The recorded service selection handler calling unit 2405 returns the return value of the notify method to the recorded service selection unit 2404 .

本实施例的已记录服务选择单元2404是第一实施例的已记录服务选择单元2404的部分修改版本,并且在已记录服务选择处理程序调用单元2405调用notify方法之后的处理过程不同于第一实施例。The recorded service selection unit 2404 of this embodiment is a partially modified version of the recorded service selection unit 2404 of the first embodiment, and the processing procedure after the recorded service selection handler calling unit 2405 invokes the notify method is different from that of the first embodiment example.

如果从已记录服务选择处理程序调用单元2405返回了返回值1,则只记录由频道标识符指定的要记录的服务。换句话说,在TS解码器的PID过滤器1502和分段过滤器1503中设置了在要记录的服务的PMT中表示的所有ES(换句话说,音频、视频)、以及组成该服务的分段ES的所有PID和table_id。此后,通过库1701b,设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录在第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录在已确保的记录区1504中。If a return value of 1 is returned from the recorded service selection handler calling unit 2405, only the service to be recorded specified by the channel identifier is recorded. In other words, all the ESs indicated in the PMT of the service to be recorded (in other words, audio, video), and the segments that make up the service are set in the PID filter 1502 and the segment filter 1503 of the TS decoder. All PIDs and table_ids of segment ES. Thereafter, through the library 1701b, the output destination of each hardware constituent unit is set so as to follow the processing procedure of recording the service included in the broadcast wave in the second storage unit 1307 shown in FIG. 15 . Then, all the ESs constituting the desired channel are recorded in the reserved recording area 1504 according to the flow shown in FIG. 15 .

如果从已记录服务选择处理程序调用单元2405返回的返回值为2,则记录传送要记录的服务的整个MPEG-2传输流。在该情况中,如图25所示,根据当记录了传送该服务的整个MPEG-2传输流时发生的输入和输出操作,已记录服务选择单元2404通过库1701b设定了每个硬件组成单元的输出目的地。然后,根据图25所述的流程,将传送要记录的服务的整个MPEG-2传输流记录在已确保的记录区1504中。If the return value returned from the recorded service selection handler calling unit 2405 is 2, the entire MPEG-2 transport stream delivering the service to be recorded is recorded. In this case, as shown in FIG. 25, the recorded service selection unit 2404 sets each hardware constituent unit via the library 1701b according to the input and output operations that occur when the entire MPEG-2 transport stream delivering the service is recorded. output destination. Then, according to the flow described in FIG. 25, the entire MPEG-2 transport stream delivering the service to be recorded is recorded in the secured recording area 1504.

另一方面,如果从已记录服务选择处理程序调用单元2405返回的返回值为0,则已记录服务选择单元2404通过下列步骤确定要同时记录的服务。On the other hand, if the return value returned from the recorded service selection handler calling unit 2405 is 0, the recorded service selection unit 2404 determines services to be simultaneously recorded through the following steps.

首先,已记录服务选择单元2404参考AIT,并且检查包括在该服务中的所有Java程序的service_bound_flag。First, the recorded service selection unit 2404 refers to the AIT, and checks the service_bound_flags of all the Java programs included in the service.

如果所有Java程序的service_bound_flag=1,则已记录服务选择单元2404仅记录由频道标识符指定的要记录的服务。换句话说,在TS解码器的PID过滤器1502和分段过滤器1503中设置要记录的服务的PMT中表示的所有ES(换句话说,音频、视频)、以及组成该服务的分段ES的所有PID和table_id。此后,通过库1701b设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。If service_bound_flag=1 of all Java programs, recorded service selection unit 2404 records only the service to be recorded specified by the channel identifier. In other words, all the ESs indicated in the PMT of the service to be recorded (in other words, audio, video), and the segment ESs constituting the service are set in the PID filter 1502 and the segment filter 1503 of the TS decoder All PIDs and table_ids. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,在有service_bound_flag=0的Java程序的情况下,已记录服务选择单元2404向多服务记录允许处理程序调用单元2407请求判断是否允许记录多个服务。在多服务记录允许处理程序调用单元2407返回“假”时,执行在service_bound_flag=1情况下所述的处理过程,只记录由频道标识符所指定的要记录的服务。在多服务记录允许处理程序调用单元2407返回“真”时,已记录服务选择单元2404记录传送要记录的服务的整个MPEG-2传输流。在这种情况下,如图25所示,根据当记录了传送该服务的整个MPEG-2传输流时发生的输入/输出操作,已记录服务选择单元2404通过库1701b设定每个硬件组成单元的输出目的地。然后,根据图25所述的流程,将传送要记录的服务的整个MPEG-2传输流记录在已确保的记录区1504中。On the other hand, in the case of a Java program with service_bound_flag=0, recorded service selection section 2404 requests multi-service recording permission handler calling section 2407 to judge whether recording of multiple services is permitted. When the multi-service recording permission handler calling unit 2407 returns "false", the processing described in the case of service_bound_flag=1 is performed, and only the service to be recorded specified by the channel identifier is recorded. When the multi-service recording permission handler calling unit 2407 returns "true", the recorded service selecting unit 2404 records the entire MPEG-2 transport stream delivering the service to be recorded. In this case, as shown in FIG. 25, the recorded service selection unit 2404 sets each hardware constituent unit through the library 1701b according to the input/output operation that occurs when the entire MPEG-2 transport stream delivering the service is recorded. output destination. Then, according to the flow described in FIG. 25, the entire MPEG-2 transport stream delivering the service to be recorded is recorded in the secured recording area 1504.

期望在所指定的记录起始时间之前完成如上所述的、发生在实际进行记录之前的预处理。实际的在记录区1504中进行的记录发生在所指定的起始时间之后。It is desirable to complete the preprocessing described above, which occurs before recording is actually performed, before the specified recording start time. Actual recording in recording area 1504 occurs after the specified start time.

此后,当到达所指定的记录结束时间时,已记录服务选择单元2404停止调谐器1704c的调谐处理,并且使MPEG-2传输流到记录区1504中的写入结束。另外,创建如图21所示的记录信息管理表,作为之前记录的MPEG-2传输流的管理信息。Thereafter, when the specified recording end time is reached, the recorded service selection unit 2404 stops the tuning process of the tuner 1704c, and causes the writing of the MPEG-2 transport stream into the recording area 1504 to end. In addition, a recording information management table as shown in FIG. 21 is created as the management information of the previously recorded MPEG-2 transport stream.

除了上述以外的其它处理过程与第一实施例中的相同。Processing procedures other than the above are the same as in the first embodiment.

以下,示出如上所述构造的本实施例的典型操作。In the following, a typical operation of the present embodiment constructed as described above is shown.

图32是示出了在本实施例中,当把包括在广播波中的服务记录在第二存储单元1307中时的处理过程的概况的流程图。FIG. 32 is a flowchart showing an outline of a processing procedure when recording a service included in a broadcast wave in the second storage unit 1307 in the present embodiment.

在S3201中,Java程序或其它程序将频道标识符、记录起始时间以及记录结束时间提供给记录注册单元2403。然后进行到S3202,记录注册单元2403等待,直到所指定的记录起始时间之前的固定时间段。此后,当到达在所指定的记录起始时间之前的该固定时间段时,该处理过程进行到S3203,并且记录注册单元2403请求已记录服务选择单元2404开始记录处理。已记录服务选择单元2404重复以下处理过程,直至到达所指定的记录结束时间。In S3201, the Java program or other programs provide the record registration unit 2403 with a channel identifier, a recording start time, and a recording end time. Then proceeding to S3202, the recording registration unit 2403 waits until a fixed period of time before the specified recording start time. Thereafter, when the fixed period of time before the specified recording start time is reached, the processing proceeds to S3203, and the recording registration unit 2403 requests the recorded service selection unit 2404 to start recording processing. The recorded service selection unit 2404 repeats the following processing until the specified recording end time is reached.

当发生AIT或PMT的版本升级时,或者发生由于PAT的版本升级引起的PMT更新时,该处理过程进行到S3204,并且已记录服务选择单元2404获取包含要记录的服务的传输流内的所有PMT,该服务由频道标识符指定。已记录服务选择处理程序调用单元2405被请求指定所有PMT并且调用已记录服务选择处理程序的notify方法。根据返回值,该处理过程以下列方式出现分支。When a version upgrade of AIT or PMT occurs, or a PMT update due to a version upgrade of PAT occurs, the process proceeds to S3204, and the recorded service selection unit 2404 acquires all the PMTs within the transport stream containing the service to be recorded , the service is specified by a channel identifier. The recorded service selection handler calling unit 2405 is requested to specify all PMTs and call the notify method of the recorded service selection handler. Depending on the return value, the processing branches in the following manner.

在返回值为2的情况下,该处理过程进行到S3207,并且将包括由频道标识符(其又是由记录注册单元2403指定的)指定的服务的MPEG-2传输流全部记录在第二存储单元1307中。In the case where the return value is 2, the process proceeds to S3207, and all MPEG-2 transport streams including the service specified by the channel identifier (which is again specified by the record registration unit 2403) are all recorded in the second storage Unit 1307.

在返回值为1的情况下,该处理过程进行到S3208,并且仅将由频道标识符(其又是由记录注册单元2403指定的)指定的服务的视频/音频ES和分段记录在第二存储单元1307中。In the case that the return value is 1, the process proceeds to S3208, and only the video/audio ES and segment of the service specified by the channel identifier (which is again specified by the record registration unit 2403) are recorded in the second storage Unit 1307.

在返回值为0情况下,该处理过程进行到S3205,并且针对由指定的频道标识符指定的服务的AIT的所有Java程序,检测service_bound_flag的值。在所有Java程序的service_bound_flag=1的情况下,该处理过程进行到S3208,之前进行过说明。另一方面,在并不是所有Java程序的service_bound_flag均为1时,该处理过程进行到S3206,并且多服务记录允许处理程序调用单元2407被请求调用多服务记录允许处理程序的AllowMultiServiceRec方法。如果结果为假,则该处理过程进行到前面提到的S3208。然而,如果结果为真,则该处理过程进行到前面提到的S3207。In case the return value is 0, the process proceeds to S3205, and for all Java programs of the AIT of the service specified by the specified channel identifier, the value of service_bound_flag is checked. In the case of service_bound_flag=1 for all Java programs, the process proceeds to S3208, which was explained earlier. On the other hand, when the service_bound_flags of not all Java programs are 1, the process proceeds to S3206, and the multi-service record allow handler calling unit 2407 is requested to call the AllowMultiServiceRec method of the multi-service record allow handler. If the result is false, the process proceeds to the aforementioned S3208. However, if the result is true, the process proceeds to the aforementioned S3207.

当上述每个分支之后的处理都结束时,该处理过程返回到S3203,并且重复进行处理。When the processing after each of the above branches ends, the processing returns to S3203, and the processing is repeated.

根据本实施例,当记录服务时,通过由下载的Java程序参考存储单元中所剩的可用空间,可以确定是只记录该服务还是记录传送该服务的整个MPEG-2传输流。另外,可以自动检测包括在该服务中的Java程序是否是可为两个或更多服务执行的类型,并且在该Java程序是这种可执行的类型的情况下,可以记录传送该服务的整个MPEG-2传输流。通过这样,即使该Java程序在服务再现期间实际进行了服务切换,该Java程序也可以继续执行而不会异常终止。According to this embodiment, when recording a service, by referring to the remaining free space in the storage unit by the downloaded Java program, it can be determined whether to record only the service or the entire MPEG-2 transport stream conveying the service. In addition, it is possible to automatically detect whether the Java program included in the service is of a type that can be executed by two or more services, and if the Java program is of such an executable type, it is possible to record the entire MPEG-2 Transport Stream. By doing so, even if the Java program actually performs service switching during service reproduction, the Java program can continue executing without abnormal termination.

(第三实施例)(third embodiment)

以下,参考附图说明根据本发明的第三实施例的装置和方法。Hereinafter, an apparatus and method according to a third embodiment of the present invention will be described with reference to the accompanying drawings.

图26是示出根据本发明的广播记录和再现装置的一般硬件结构的框图;换句话说,示出了在图1中所示的终端装置111、112以及113的具体内部结构。1300是广播记录和再现装置,其被构造为:调谐器1301;TS解码器(TS解复用器)1302;AV解码器1303;扬声器1304;显示器1305;CPU 1306;第二存储单元1307;主存储单元1308;ROM 1309;输入单元1310;适配器1311;AV编码器11312;复用器(MPEG-2传输流复用器等)1313;分段转换单元2601;以及分段读出单元2602。除了复用器1313、分段转换单元2601以及分段读出单元2602以外,与第一实施例中图13所述的那些具有相同的名字和编号的要素等同于第一实施例中所述的那些要素,因此省略了说明。FIG. 26 is a block diagram showing a general hardware structure of a broadcast recording and reproducing apparatus according to the present invention; in other words, shows a specific internal structure of terminal devices 111, 112, and 113 shown in FIG. 1300 is a broadcast recording and reproducing apparatus, which is configured as: a tuner 1301; a TS decoder (TS demultiplexer) 1302; an AV decoder 1303; a speaker 1304; a display 1305; a CPU 1306; storage unit 1308; ROM 1309; input unit 1310; adapter 1311; AV encoder 11312; multiplexer (MPEG-2 transport stream multiplexer, etc.) 1313; segment conversion unit 2601; Except for the multiplexer 1313, the segment conversion unit 2601, and the segment readout unit 2602, elements having the same names and numbers as those described in FIG. 13 in the first embodiment are equivalent to those described in the first embodiment. Those elements are therefore omitted from description.

复用器1313与第一实施例的复用器的不同之处在于,它并不把AIT分段和DSM-CC分段复用起来。除此以外,复用器1313是相同的。The multiplexer 1313 differs from that of the first embodiment in that it does not multiplex the AIT segment and the DSM-CC segment. Otherwise, the multiplexer 1313 is the same.

分段转换单元2401将没有被复用器复用的分段转换为文件,并且将该文件记录进第二存储单元1307的记录区1504内。在经过主存储单元1308之后,被TS解码器1302过滤出的AIT分段以及DSM-CC分段经过分段转换单元2401,并且被记录在记录区1504中,而没有经过复用器。这里,当将分段记录在记录区1504中是的记录方法因分段的格式不同而不同。The segment converting unit 2401 converts the segment not multiplexed by the multiplexer into a file, and records the file into the recording area 1504 of the second storage unit 1307 . After passing through the main storage unit 1308, the AIT segment and the DSM-CC segment filtered out by the TS decoder 1302 pass through the segment conversion unit 2401 and are recorded in the recording area 1504 without passing through the multiplexer. Here, the recording method when recording the segment in the recording area 1504 differs depending on the format of the segment.

在文件系统以DSM-CC文件系统格式记录在MPEG-2传输流中的情况下,分段转换单元2401将该文件系统转换为对该记录区1504唯一的文件系统格式(这又是对终端唯一的),并且将该文件系统记录到记录区1504中。In the case that the file system is recorded in the MPEG-2 transport stream in the DSM-CC file system format, the segment conversion unit 2401 converts the file system into the file system format unique to the recording area 1504 (which is unique to the terminal again). ), and record the file system into the recording area 1504.

另外,在AIT的情况下,分段转换单元2401将AIT转换为扩展记录信息管理表格式,如图29所示,并且将AIT记录到记录区1504中。图26中示出的记录信息管理表是图21中示出的记录信息管理表的扩展版本;两个表中用相同编号标识的项其含义与与图21所示的记录信息管理表中的相同。分段转换单元2401创建了AIT信息管理表部分,并且当已记录服务选择单元2404创建记录信息管理表时,将这部分与该记录信息管理表合并。Also, in the case of the AIT, the segment conversion unit 2401 converts the AIT into the extended recording information management table format as shown in FIG. 29 , and records the AIT into the recording area 1504. The record information management table shown in Figure 26 is an extended version of the record information management table shown in Figure 21; the meanings of the items marked with the same number in the two tables are the same as those in the record information management table shown in Figure 21 same. The segment conversion unit 2401 creates the AIT information management table part, and when the recorded service selection unit 2404 creates the record information management table, merges this part with the record information management table.

行2911和2912中每一行都示出了一个服务的记录信息。行2911、2912中每一行都具有记录标识符2101、频道标识符2102、节目号2103、服务记录起始时间2104、服务记录结束时间2105、媒体标识符2106以及对于AIT信息管理表的引用2907。AIT信息管理表具有媒体时间2921和与其对应的AIT版本2922。Each of rows 2911 and 2912 shows record information of one service. Each of the rows 2911, 2912 has a record identifier 2101, a channel identifier 2102, a program number 2103, a service record start time 2104, a service record end time 2105, a media identifier 2106, and a reference 2907 to the AIT information management table. The AIT information management table has a media time 2921 and an AIT version 2922 corresponding thereto.

媒体时间2921是再现相应的MPEG-2传输流时的时间,是表示相应MPEG-2传输流中的位置的时间戳。AIT版本号2922对应于图22中的AIT版本2200。例如,记录标识符2101为“001”的服务的记录信息具有媒体标识符2106为“TS_002”,并且在引用的AIT信息管理表中的媒体时间2921为“00:00:00”时,相应的AIT版本2922为“1”。以相同方式,对应于媒体时间2921为“00:05:00”的AIT版本2922为“2”,并且对应于媒体时间2921为“00:20:00”的AIT版本2922为“3”。The media time 2921 is the time when the corresponding MPEG-2 transport stream is played back, and is a time stamp indicating the position in the corresponding MPEG-2 transport stream. AIT version number 2922 corresponds to AIT version 2200 in FIG. 22 . For example, the record information of the service whose record identifier 2101 is "001" has the media identifier 2106 as "TS_002", and when the media time 2921 in the referenced AIT information management table is "00:00:00", the corresponding AIT version 2922 is "1". In the same way, the AIT version 2922 corresponding to the media time 2921 of "00:05:00" is "2", and the AIT version 2922 corresponding to the media time 2921 of "00:20:00" is "3".

例如,在再现频道标识符2901为“001”的服务时,参考记录信息管理表,再现由媒体标识符2902“TS_002”指定的复用了视频和音频的MPEG-2传输流;另外,参考AIT信息管理表,当媒体时间2921到达“00:00:00”时,根据AIT版本2922为“1”的AIT,执行控制以使得Java程序启动或终止。以类似的方式,当媒体时间2921到达“00:05:00”时根据AIT版本2922为“2”的AIT,以及当媒体时间2921到达“00:20:00”时根据AIT版本2922为“3”的AIT,执行控制以使得Java程序启动或终止。将作为私有分段格式的二进制文件的实际AIT转换为对记录区1504唯一的文件系统格式(这又是对终端唯一的),并且将其记录在记录区1504中。为所记录的文件赋予唯一文件名(可以通过其来唯一识别该文件),并将其作为AIT文件名2923记录在记录信息管理表中。For example, when reproducing the service whose channel identifier 2901 is "001", refer to the recording information management table, and reproduce the MPEG-2 transport stream multiplexed with video and audio specified by the media identifier 2902 "TS_002"; Information management table, when the media time 2921 reaches "00:00:00", according to the AIT whose AIT version 2922 is "1", control is performed so that the Java program is started or terminated. In a similar manner, an AIT of "2" according to AIT version 2922 when the media time 2921 reaches "00:05:00" and "3" according to the AIT version 2922 when the media time 2921 reaches "00:20:00" The AIT of "executes control so that the Java program starts or terminates. The actual AIT, which is a binary file in a private segment format, is converted into a file system format unique to the recording area 1504 (which in turn is unique to the terminal), and recorded in the recording area 1504. A unique file name (by which the file can be uniquely identified) is assigned to the recorded file, and is recorded as the AIT file name 2923 in the recording information management table.

在实际的广播波中,重复传输相同AIT版本的AIT任意次数,但是在本实施例中,通过检测接收到的AIT版本中的变化,仅将在该时刻更新的第一个AIT记录到记录区1504中。In actual broadcast waves, AITs of the same AIT version are repeatedly transmitted any number of times, but in this embodiment, only the first AIT updated at that moment is recorded to the recording area by detecting a change in the received AIT version In 1504.

分段读出单元2602搜索对应于从记录区读出的MPEG-2传输流的当前再现时间的媒体时间,并且从文件中读出对应于该媒体时间的AIT和DSM-CC文件系统,并且将其传给软件AIT监控单元2402。换句话说,AIT监控单元2402并不像第一实施例那样参考TS解码器的过滤结果,而是从分段读出单元2602获得AIT二进制文件和DSM-CC文件系统。Segment readout unit 2602 searches for the media time corresponding to the current reproduction time of the MPEG-2 transport stream read from the recording area, and reads out the AIT and DSM-CC file system corresponding to the media time from the file, and sets It is passed to the software AIT monitoring unit 2402 . In other words, the AIT monitoring unit 2402 does not refer to the filtering result of the TS decoder as in the first embodiment, but obtains the AIT binary file and the DSM-CC file system from the segment readout unit 2602 .

图14是本实施例中的输入单元310的结构示例。因为这与第一实施例中所述的相同,所以省略了说明。FIG. 14 is a structural example of the input unit 310 in this embodiment. Since this is the same as described in the first embodiment, description is omitted.

下面详细说明上述广播记录和再现装置将包含在广播波中的服务记录在第二存储单元1307中的处理过程,以及该广播记录和再现装置连续从第二存储单元1307中读出并再现服务的处理过程。The following describes in detail the above-mentioned broadcast recording and reproducing apparatus to record the service included in the broadcast wave in the second storage unit 1307, and the broadcast recording and reproducing apparatus continuously reads out and reproduces the information of the service from the second storage unit 1307. process.

首先,说明将包含在广播波中的服务记录在第二存储单元1307中的处理过程。First, the processing procedure for recording the service included in the broadcast wave in the second storage unit 1307 will be described.

图27示出了表示在记录服务期间每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。该图中与图15所示的组成单元具有相同编号的组成单元已在第一实施例中说明,因此省略了说明。与图15相反,以图27所示的硬件结构,在经过主存储单元1308之后,由TS解码器1302过滤的AIT分段和DSM-CC分段经过了分段转换单元2601并且被记录到记录区1504中,而没有经过复用器。FIG. 27 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during a recording service. Component units in this figure having the same numbers as those shown in FIG. 15 have already been described in the first embodiment, and thus explanations are omitted. Contrary to FIG. 15, with the hardware structure shown in FIG. 27, after passing through the main storage unit 1308, the AIT segment and the DSM-CC segment filtered by the TS decoder 1302 pass through the segment conversion unit 2601 and are recorded to the record area 1504 without going through the multiplexer.

接着,给出了有关从第二存储单元1307顺序读出记录的MPEG-2传输流并再现服务的说明。Next, a description is given about sequentially reading out the recorded MPEG-2 transport stream from the second storage unit 1307 and reproducing the service.

图28示出了表示在记录该服务期间每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。该图中与图16所示的组成单元具有相同编号的组成单元已在第一实施例中说明,因此省略了说明。FIG. 28 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during recording of the service. Component units in this figure having the same numbers as those shown in FIG. 16 have already been described in the first embodiment, and thus explanations are omitted.

图28的硬件结构与图16中的硬件结构的不同之处在于,记录在记录区1504中的分段是通过分段读出单元2901被读入主存储单元,而不经过TS解码器。The difference between the hardware structure in FIG. 28 and the hardware structure in FIG. 16 is that the segments recorded in the recording area 1504 are read into the main storage unit through the segment readout unit 2901 without passing through the TS decoder.

至此,已经说明了有关本发明的硬件结构的示例。此后,说明本发明的主要功能,即,通过Java程序对服务记录进行控制以及对特技播放进行控制。So far, an example of the hardware configuration related to the present invention has been explained. Hereinafter, the main functions of the present invention, ie, the control of service recording and the control of trick play by a Java program, will be described.

用于本实施例的软件结构被构造为如图17和图24所示。另外,将用于第一实施例的图18到图23再次用在这里,以说明每种数据类型的结构和屏幕配置。The software structure used in this embodiment is structured as shown in FIGS. 17 and 24 . In addition, FIG. 18 to FIG. 23 used for the first embodiment are used here again to explain the structure and screen configuration of each data type.

关于图17和图24,除了应用程序状态管理单元2401、AIT管理单元2402以及已记录服务选择单元2404以外,其它的组成单元与第一实施例所述的那些相同,因此省略了说明。17 and 24, except for the application state management unit 2401, the AIT management unit 2402, and the recorded service selection unit 2404, other constituent units are the same as those described in the first embodiment, and therefore explanations are omitted.

在本实施例中,AIT监控单元2402是第一实施例中的AIT监控单元2402的部分修改版本,不同之处在于,AIT监控单元2402读出已分别被记录在第二存储单元中的AIT文件,而不是与过滤和获取复用在从第二存储单元1307读出的MPEG-2传输流中的AIT。AIT监控单元2402根据利用AIT信息管理表中的媒体时间2921进行的服务再现或记录的进度,验证对应于当前媒体时间的AIT,获取对应于当前媒体时间的AIT文件名,并读出实际的AIT文件。媒体时间继续向前,当时间到达应该参考不同AIT的时候,取得新AIT。换句话说,这等价于AIT的版本升级。因此,当前版本的AIT的有效时间从该AIT的有效起始媒体时间开始一直持续到另一个AIT的有效起始媒体时间。In this embodiment, the AIT monitoring unit 2402 is a partially modified version of the AIT monitoring unit 2402 in the first embodiment, the difference is that the AIT monitoring unit 2402 reads out the AIT files that have been respectively recorded in the second storage unit , instead of filtering and fetching the AIT multiplexed in the MPEG-2 transport stream read from the second storage unit 1307 . The AIT monitoring unit 2402 verifies the AIT corresponding to the current media time according to the progress of service reproduction or recording using the media time 2921 in the AIT information management table, acquires the AIT file name corresponding to the current media time, and reads out the actual AIT document. The media time continues to move forward, and when the time reaches the time when a different AIT should be referred to, a new AIT is obtained. In other words, this is equivalent to a version upgrade of AIT. Therefore, the valid time of the AIT of the current version continues from the valid start media time of the AIT to the valid start media time of another AIT.

除此以外的其它处理过程与第一实施例的AIT监控单元3231的处理过程相同。Other processing procedures are the same as those of the AIT monitoring unit 3231 in the first embodiment.

本实施例的应用程序状态管理单元2401是第一实施例的应用程序状态管理单元2401的部分修改版本,其从第二存储单元1307中读出以原始文件系统格式记录的Java类文件,而不是复用在MPEG-2传输流中的DSM-CC分段中读出Java程序。除此以外的其它处理过程与第一实施例中的应用程序状态管理单元的处理过程相同。The application state management unit 2401 of this embodiment is a partially modified version of the application state management unit 2401 of the first embodiment, which reads out Java class files recorded in the original file system format from the second storage unit 1307 instead of The Java program is read out in the DSM-CC section multiplexed in the MPEG-2 transport stream. Other processing procedures are the same as those of the application state management unit in the first embodiment.

本实施例的已记录服务选择单元2404是第一实施例的已记录服务选择单元2404的部分修改的版本,从已记录服务选择处理程序调用单元2405返回的记录和再现处理程序的notify方法的返回值之后的处理过程不同于第一实施例。The recorded service selection unit 2404 of the present embodiment is a partially modified version of the recorded service selection unit 2404 of the first embodiment, and the return of the notify method of the recording and reproduction processing program returned from the recorded service selection processing program call unit 2405 The processing after the value is different from the first embodiment.

如果从已记录服务选择处理程序调用单元2405返回PMT阵列,则同时记录所指定的PMT表示的服务组。在PMT阵列中表示的所有ES(换句话说,音频、视频)、以及组成有关所有PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。然而,在第二存储单元1307中有很少剩余空间的情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。If the PMT array is returned from the recorded service selection handler calling unit 2405, the service group indicated by the specified PMT is recorded at the same time. All ESs (in other words, audio, video) represented in the PMT array, and all PIDs and table_ids of segment ESs constituting services related to all PMTs, are set in the PID filter 1502 of the TS decoder and the segment filtering device 1503. However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 .

可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图27所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图27所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 27 . Then, according to the flow shown in FIG. 27, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,如果从已记录服务选择处理程序调用单元2405返回“空”,则已记录服务选择单元2404通过下列步骤确定要同时记录的服务。On the other hand, if "null" is returned from the recorded service selection handler call unit 2405, the recorded service selection unit 2404 determines services to be simultaneously recorded through the following steps.

首先,已记录服务选择单元2404参考AIT,并且检查包括在该服务中的所有Java程序的service_bound_flag。First, the recorded service selection unit 2404 refers to the AIT, and checks the service_bound_flags of all the Java programs included in the service.

如果对于所有Java程序,service_bound_flag=1,则已记录服务选择单元2404仅记录由频道标识符指定的要记录的服务。换句话说,在TS解码器的PID过滤器1502和分段过滤器1503中设置要记录的服务的PMT中表示的所有ES(换句话说,音频、视频)、以及组成该服务的分段ES的所有PID和table_id。此后,通过库1701b设定每个硬件组成单元的输出目的地,以便遵循图27所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图27所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。If service_bound_flag=1 for all Java programs, the recorded service selection unit 2404 records only the service to be recorded specified by the channel identifier. In other words, all the ESs indicated in the PMT of the service to be recorded (in other words, audio, video), and the segment ESs constituting the service are set in the PID filter 1502 and the segment filter 1503 of the TS decoder All PIDs and table_ids. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure shown in FIG. 27 for recording the service included in the broadcast wave into the second storage unit 1307. Then, according to the flow shown in FIG. 27, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,在有service_bound_flag=0的Java程序的情况下,已记录服务选择单元2404向多服务记录允许处理程序调用单元2407请求判断是否允许记录多个服务。在多服务记录允许处理程序调用单元2407返回“假”的情况下,执行在service_bound_flag=1情况下所述的处理过程,只记录由频道标识符所指定的要记录的服务。在多服务记录允许处理程序调用单元2407返回“真”的情况下,已记录服务选择单元2404记录MPEG-2传输流中的所有服务。换句话说,在MPEG-2传输流中的所有PMT中表示的所有ES(换句话说,音频、视频)、以及组成有关所有PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。On the other hand, in the case of a Java program with service_bound_flag=0, recorded service selection section 2404 requests multi-service recording permission handler calling section 2407 to judge whether recording of multiple services is permitted. In the case where the multi-service record permission handler calling unit 2407 returns "false", the processing described in the case of service_bound_flag=1 is performed, and only the service to be recorded specified by the channel identifier is recorded. In a case where the multi-service recording permission handler calling unit 2407 returns "true", the recorded service selecting unit 2404 records all services in the MPEG-2 transport stream. In other words, all ESs (in other words, audio, video) expressed in all PMTs in the MPEG-2 transport stream, and all PIDs and table_ids of segment ESs constituting services related to all PMTs are set in TS PID filter 1502 and segmentation filter 1503 of the decoder.

然而,在第二存储单元1307中有很少剩余空间情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图27所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图27所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 . Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 27 . Then, according to the flow shown in FIG. 27, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

期望在所指定的记录起始时间之前完成如上所述的、发生在实际进行记录之前的预处理。实际的在记录区1504中进行的记录发生在所指定的起始时间之后。It is desirable to complete the preprocessing described above, which occurs before recording is actually performed, before the specified recording start time. Actual recording in recording area 1504 occurs after the specified start time.

此后,当到达所指定的记录结束时间时,已记录服务选择单元2404停止调谐器1704c的调谐处理,并且使MPEG-2传输流到记录区1504中的写入结束。另外,创建如图29所示的记录信息管理表,作为之前记录的MPEG-2传输流的管理信息。注意,将AIT信息管理表部分与由分段转换单元2401创建的表合并。除此以外的其它处理过程与第一实施例中的应用程序状态管理单元的处理过程相同。Thereafter, when the specified recording end time is reached, the recorded service selection unit 2404 stops the tuning process of the tuner 1704c, and causes the writing of the MPEG-2 transport stream into the recording area 1504 to end. In addition, a recording information management table as shown in FIG. 29 is created as the management information of the previously recorded MPEG-2 transport stream. Note that the AIT information management table part is merged with the table created by the segment conversion unit 2401. Other processing procedures are the same as those of the application state management unit in the first embodiment.

以下,示出了如上所述构造的本实施例的典型操作。In the following, a typical operation of the present embodiment constructed as described above is shown.

图33是示出了在本实施例中,当把包括在广播波中的服务记录到第二存储单元1307中时的处理过程的概况的流程图。FIG. 33 is a flowchart showing an outline of a processing procedure when recording a service included in a broadcast wave into the second storage unit 1307 in the present embodiment.

在S3301中,Java程序或其它程序将频道标识符、记录起始时间以及记录结束时间提供给记录注册单元2403。然后进行到S3302,记录注册单元2403等待,直到所指定的记录起始时间之前的固定时间段。此后,当到达在所指定的记录起始时间之前的该固定时间段时,该处理过程进行到S3303,并且记录注册单元2403请求已记录服务选择单元2404开始记录处理。已记录服务选择单元2404重复以下处理过程,直至到达所指定的记录结束时间。In S3301, the Java program or other programs provide the record registration unit 2403 with a channel identifier, a recording start time, and a recording end time. Then proceeding to S3302, the recording registration unit 2403 waits until a fixed period of time before the designated recording start time. Thereafter, when the fixed period of time before the specified recording start time is reached, the processing proceeds to S3303, and the recording registration unit 2403 requests the recorded service selection unit 2404 to start recording processing. The recorded service selection unit 2404 repeats the following processing until the specified recording end time is reached.

当发生AIT或PMT的版本升级时,或者发生由于PAT的版本升级引起的PMT更新时,该处理过程进行到S3304,并且已记录服务选择单元2404获取包含要记录的服务的传输流内的所有PMT,该服务是由频道标识符指定的。已记录服务选择处理程序调用单元2405被请求指定所有PMT并且调用已记录服务选择处理程序的notify方法。根据返回值,该处理过程以下列方式出现分支。When a version upgrade of AIT or PMT occurs, or a PMT update due to a version upgrade of PAT occurs, the process proceeds to S3304, and the recorded service selection unit 2404 acquires all the PMTs within the transport stream containing the service to be recorded , the service is specified by a channel identifier. The recorded service selection handler calling unit 2405 is requested to specify all PMTs and call the notify method of the recorded service selection handler. Depending on the return value, the processing branches in the following manner.

在返回值为PMT阵列的情况下,该处理过程进行到S3305,根据第二存储单元1307中所剩空间,已记录服务选择单元2404将包括在该PMT阵列中的所有音频/视频ES和分段文件记录在第二存储单元1307中。In the case that the return value is a PMT array, the process proceeds to S3305, and according to the remaining space in the second storage unit 1307, the recorded service selection unit 2404 will include all audio/video ESs and segments in the PMT array Files are recorded in the second storage unit 1307 .

在返回值为空的情况下,该处理过程进行到S3306,并且针对由所指定的频道标识符指定的服务的AIT的所有Java程序,检查service_bound_flag的值。在所有Java程序的service_bound_flag=1的情况下,该处理过程进行到S3307,并且仅将由该频道标识符(其又是由记录注册单元2403指定的)指定的服务的视频/音频ES和分段文件记录在第二存储单元1307中。In case the return value is null, the process proceeds to S3306, and the value of service_bound_flag is checked for all Java programs of the AIT of the service specified by the specified channel identifier. In the case of service_bound_flag=1 of all Java programs, the process proceeds to S3307, and only the video/audio ES and segment file of the service specified by the channel identifier (which is again specified by the record registration unit 2403) recorded in the second storage unit 1307.

另一方面,在S3306中,在并不是所有Java程序的service_bound_flag均为1的情况下,该处理过程进行到S3308。这里,多服务记录允许处理程序调用单元2407被要求调用多服务记录允许处理程序的AllowMultiServiceRec方法。如果结果为假,则该处理过程进行到前述的S3307。另一方面,如果结果为真,则该处理过程进行到S3309,并且根据第二存储单元1307中所剩空间,将包括由频道标识符(其又是由记录注册单元2403指定的)指定的服务的MPEG-2传输流内的所有PMT的音频/视频ES和分段记录在第二存储单元1307中。当上述每个分支之后的处理都结束时,该处理过程返回到S3303,并重复进行处理。On the other hand, in S3306, in the case where the service_bound_flags of not all Java programs are 1, the process proceeds to S3308. Here, the multi-service record allow handler calling unit 2407 is required to call the AllowMultiServiceRec method of the multi-service record allow handler. If the result is false, the process proceeds to the aforementioned S3307. On the other hand, if the result is true, the process proceeds to S3309, and according to the remaining space in the second storage unit 1307, the service specified by the channel identifier (which is again specified by the record registration unit 2403) will be included. Audio/video ES and segments of all PMTs within the MPEG-2 transport stream are recorded in the second storage unit 1307 . When the processing after each of the above branches ends, the processing returns to S3303, and the processing is repeated.

如上所述,根据本实施例,当记录服务时,通过由下载的Java程序参考存储单元中的可用空间等,可以确定是否与该服务同时地记录其它服务。另外,可以自动检测包括在该服务中的Java程序是否是可在两个或更多服务上执行的类型,并且在该Java程序是这种可执行的类型的情况下,可以记录所有可记录的服务。通过这样,即使该Java程序在服务再现期间实际进行了服务切换,该Java程序也可以继续执行而不会异常终止。此外,因为将诸如AIT和DSM-CC这样的重复发送相同数据的私有分段转换为文件格式,并且仅当有更新时才记录,可以节省存储单元中的空间。As described above, according to the present embodiment, when a service is recorded, by referring to the available space in the storage unit or the like by the downloaded Java program, it can be determined whether to record other services simultaneously with the service. In addition, it is possible to automatically detect whether the Java program included in the service is of a type executable on two or more services, and if the Java program is of such an executable type, it is possible to record all recordable Serve. By doing so, even if the Java program actually performs service switching during service reproduction, the Java program can continue executing without abnormal termination. In addition, since private segments such as AIT and DSM-CC that repeatedly transmit the same data are converted into a file format and recorded only when there is an update, space in the storage unit can be saved.

(第四实施例)(fourth embodiment)

以下,参考附图说明根据本发明的第四实施例的装置和方法。Hereinafter, an apparatus and method according to a fourth embodiment of the present invention will be described with reference to the accompanying drawings.

如图13和图14所示那样构造用于本实施例的硬件结构。因为这与第一实施例中的结构和功能相同,所以省略了说明。The hardware structure used in this embodiment is constructed as shown in FIGS. 13 and 14 . Since this is the same structure and function as in the first embodiment, description is omitted.

在本实施例中,每个硬件组成单元具有如下输入和输出设定。In this embodiment, each hardware constituent unit has the following input and output settings.

首先,图15示出了表示在仅记录服务内指定的ES的情况下每个设备的物理连接顺序、处理细节以及输入/输出数据格式的概念性表述。因为这是第一实施例中所说明的相同结构,因此省略了说明。First, FIG. 15 shows a conceptual expression representing the physical connection order of each device, processing details, and input/output data format in the case of recording only ES specified within a service. Since this is the same structure described in the first embodiment, description is omitted.

接着,图16示出了表示在再现来自第二存储单元的服务期间每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是第一实施例中所说明的相同结构,所以省略了说明。Next, FIG. 16 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during reproduction of services from the second storage unit. Since this is the same structure explained in the first embodiment, explanation is omitted.

至此,已说明了有关本发明的硬件结构的示例。此后,说明本发明的主要功能,即,通过Java程序控制服务的记录和再现。So far, an example of the hardware configuration related to the present invention has been described. Hereinafter, the main function of the present invention, that is, recording and reproduction of services controlled by a Java program, will be described.

另外,这里再次使用了第一实施例中使用的图18至图21以及图23,以便说明用于本实施例中的每种数据类型的结构以及屏幕配置。在本实施例中,使用了图30所示格式的AIT,而非图22所示格式的AIT。关于图30中所示的AIT,名字或编号与图22中所示的那些相同的要素与第一实施例中所述的那些要素是一样的,所以省略了说明。在图30中,新添加了记录目标频道标识符3001。图30列出了要同时记录的服务的频道标识符,使得每个Java程序都正常执行。例如,这表示,行2211中的Java程序要正常工作,就必须同时记录频道标识符为1和2的服务。In addition, FIG. 18 to FIG. 21 and FIG. 23 used in the first embodiment are used again here in order to explain the structure of each data type and the screen configuration used in this embodiment. In this embodiment, the AIT in the format shown in FIG. 30 is used instead of the AIT in the format shown in FIG. 22 . Regarding the AIT shown in FIG. 30, elements whose names or numbers are the same as those shown in FIG. 22 are the same as those described in the first embodiment, so explanations are omitted. In FIG. 30, a recording target channel identifier 3001 is newly added. Fig. 30 lists the channel identifiers of the services to be simultaneously recorded so that each Java program is normally executed. For example, this means that, for the Java program in line 2211 to work normally, services with channel identifiers 1 and 2 must be recorded at the same time.

本实施例中使用的软件结构被构造为如图17和图24所示。对于图17和图24,除了已记录服务选择单元2404以外,其它组成单元都与第一实施例中所述的那些相同,所以省略了说明。The software structure used in this embodiment is structured as shown in FIGS. 17 and 24 . 17 and 24, except for the recorded service selection unit 2404, other constituent units are the same as those described in the first embodiment, so explanations are omitted.

本实施例的已记录服务选择单元2404是第一实施例的已记录服务选择单元2404的部分修改版本,并且以下步骤之后的处理过程不同于第一实施例:i)在记录操作期间从AIT监控单元接收到关于已经升级了版本的新AIT的通知,或者ii)检测到PAT或PMT的版本升级。此时,已记录服务选择单元2404首先检查从AIT监控单元2402接收到的、版本已经升级的新AIT中的同时记录目标频道标识符3001。去除冗余,列出了写入该AIT中表示的所有Java程序中的同时记录目标频道标识符3001。The recorded service selection unit 2404 of the present embodiment is a partially modified version of the recorded service selection unit 2404 of the first embodiment, and the processing procedure after the following steps is different from the first embodiment: i) monitoring from the AIT during the recording operation The unit receives a notification about a new AIT whose version has been upgraded, or ii) detects a version upgrade of PAT or PMT. At this time, the recorded service selection unit 2404 first checks the simultaneous recording target channel identifier 3001 in the new AIT whose version has been upgraded received from the AIT monitoring unit 2402 . Redundancy is removed, and simultaneous recording target channel identifiers 3001 written in all Java programs indicated in this AIT are listed.

在图30所示的AIT示例中,去除冗余,同时记录目标频道标识符是1、2和4。此后,已记录服务选择单元2404向已记录服务选择处理程序调用单元2405通知最新的AIT、与去除冗余的同时记录目标频道标识符相对应的PMT、以及要记录的服务的PMT,并请求调用已记录服务选择处理程序。然后,如前所述,已记录服务选择处理程序调用单元2405将记录和再现处理程序通知方法的返回值返回给已记录服务选择单元2404。In the AIT example shown in FIG. 30, redundancy is removed while recording target channel identifiers are 1, 2, and 4. Thereafter, the recorded service selection unit 2404 notifies the recorded service selection handler calling unit 2405 of the latest AIT, the PMT corresponding to the simultaneous recording target channel identifier while removing redundancy, and the PMT of the service to be recorded, and requests to call Documented service selection handler. Then, the recorded service selection handler calling unit 2405 returns the return value of the recording and reproduction handler notification method to the recorded service selecting unit 2404 as described above.

如果从已记录服务选择处理程序调用单元2405返回PMT阵列,则同时记录所指定的PMT表示的服务组。在PMT阵列中表示的所有ES(换句话说,音频、视频)、以及组成有关所有PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。然而,在第二存储单元1307中有很少剩余空间的情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。If the PMT array is returned from the recorded service selection handler calling unit 2405, the service group indicated by the specified PMT is recorded at the same time. All ESs (in other words, audio, video) represented in the PMT array, and all PIDs and table_ids of segment ESs constituting services related to all PMTs, are set in the PID filter 1502 of the TS decoder and the segment filtering device 1503. However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 .

可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 15 . Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,如果从已记录服务选择处理程序调用单元2405返回“空”,则已记录服务选择单元2404通过下列步骤确定要同时记录的服务。On the other hand, if "null" is returned from the recorded service selection handler call unit 2405, the recorded service selection unit 2404 determines services to be simultaneously recorded through the following steps.

首先,已记录服务选择单元2404参考AIT,并且检查包括在该服务中的所有Java程序的service_bound_flag。First, the recorded service selection unit 2404 refers to the AIT, and checks the service_bound_flags of all the Java programs included in the service.

如果对于所有Java程序,service_bound_flag=1,则已记录服务选择单元2404仅记录由频道标识符指定的要记录的服务。换句话说,在TS解码器的PID过滤器1502和分段过滤器1503中设置要记录的服务的PMT中表示的所有ES(换句话说,音频、视频)、以及组成该服务的分段ES的所有PID和table_id。此后,通过库1701b设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。If service_bound_flag=1 for all Java programs, the recorded service selection unit 2404 records only the service to be recorded specified by the channel identifier. In other words, all the ESs indicated in the PMT of the service to be recorded (in other words, audio, video), and the segment ESs constituting the service are set in the PID filter 1502 and the segment filter 1503 of the TS decoder All PIDs and table_ids. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,在有service_bound_flag=0的Java程序的情况下,已记录服务选择单元2404向多服务记录允许处理程序调用单元2407请求判断是否允许记录多个服务。在多服务记录允许处理程序调用单元2407返回“假”的情况下,执行在service_bound_flag=1情况下所述的处理过程,只记录由频道标识符所指定的要记录的服务。在多服务记录允许处理程序调用单元2407返回“真”的情况下,已记录服务选择单元2404记录由去除冗余的同时记录目标频道标识符所指定的所有服务。换句话说,在与该同时记录目标频道标识符相对应的PMT组中表示的所有ES(换句话说,音频、视频)、以及组成有关所述PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。On the other hand, in the case of a Java program with service_bound_flag=0, recorded service selection section 2404 requests multi-service recording permission handler calling section 2407 to judge whether recording of multiple services is permitted. In the case where the multi-service record permission handler calling unit 2407 returns "false", the processing described in the case of service_bound_flag=1 is performed, and only the service to be recorded specified by the channel identifier is recorded. In a case where the multi-service recording permission handler calling unit 2407 returns "true", the recorded service selecting unit 2404 records all services specified by the redundant simultaneous recording target channel identifier. In other words, all ESs (in other words, audio, video) represented in the PMT group corresponding to the simultaneous recording target channel identifier, and all PIDs and table_ids of segment ESs constituting the service on said PMT , are set in the PID filter 1502 and segment filter 1503 of the TS decoder.

然而,在第二存储单元1307中有很少剩余空间情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 . Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 15 . Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

期望在所指定的记录起始时间之前完成如上所述的、发生在实际进行记录之前的预处理。实际的在记录区1504中进行的记录发生在所指定的起始时间之后。It is desirable to complete the preprocessing described above, which occurs before recording is actually performed, before the specified recording start time. Actual recording in recording area 1504 occurs after the specified start time.

此后,当到达所指定的记录结束时间时,已记录服务选择单元2404停止调谐器1704c的调谐处理,并且使MPEG-2传输流到记录区1504中的写入结束。另外,创建如图21所示的记录信息管理表,作为之前记录的MPEG-2传输流的管理信息。Thereafter, when the specified recording end time is reached, the recorded service selection unit 2404 stops the tuning process of the tuner 1704c, and causes the writing of the MPEG-2 transport stream into the recording area 1504 to end. In addition, a recording information management table as shown in FIG. 21 is created as the management information of the previously recorded MPEG-2 transport stream.

除上述以外的处理过程与第一实施例中的处理过程相同。Processing procedures other than the above are the same as those in the first embodiment.

以下,示出了如上所述构造的本实施例的典型操作。In the following, a typical operation of the present embodiment constructed as described above is shown.

图34是示出了在本实施例中,当把包括在广播波中的服务记录到第二存储单元1307中时的处理过程的概况的流程图。FIG. 34 is a flowchart showing an outline of a processing procedure when recording a service included in a broadcast wave into the second storage unit 1307 in the present embodiment.

在S3401中,Java程序或其它程序将频道标识符、记录起始时间以及记录结束时间提供给记录注册单元2403。然后进行到S3402,记录注册单元2403等待,直到所指定的记录起始时间之前的固定时间段。此后,当到达在所指定的记录起始时间之前的该固定时间段时,该处理过程进行到S3403,并且记录注册单元2403请求已记录服务选择单元2404开始记录处理。已记录服务选择单元2404重复以下处理过程,直至到达所指定的记录结束时间。In S3401, a Java program or other program supplies a channel identifier, a recording start time, and a recording end time to the recording registration unit 2403. Then proceeding to S3402, the recording registration unit 2403 waits until a fixed period of time before the specified recording start time. Thereafter, when the fixed period of time before the designated recording start time is reached, the processing proceeds to S3403, and the recording registration unit 2403 requests the recorded service selection unit 2404 to start recording processing. The recorded service selection unit 2404 repeats the following processing until the specified recording end time is reached.

当发生AIT或PMT的版本升级时,或者发生由于PAT的版本升级引起的PMT更新时,该处理过程进行到S3404,并且已记录服务选择单元2404检查包括由频道标识符所指定的要记录的服务的AIT的同时记录目标频道标识符,并且确定要同时记录的服务。已记录服务选择单元2404指定要同时记录的服务,并且请求已记录服务选择处理程序调用单元2405调用已记录服务选择处理程序的notify方法。根据返回值,该处理过程以下列方式出现分支。When a version upgrade of AIT or PMT occurs, or when a PMT update occurs due to a version upgrade of PAT, the process proceeds to S3404, and the recorded service selection unit 2404 checks that the service to be recorded is specified by the channel identifier. The AIT simultaneously records the target channel identifier, and determines the services to be simultaneously recorded. The recorded service selection unit 2404 specifies services to be simultaneously recorded, and requests the recorded service selection handler calling unit 2405 to call the notify method of the recorded service selection handler. Depending on the return value, the processing branches in the following manner.

在返回值为PMT阵列的情况下,该处理过程进行到S3405,根据第二存储单元1307中所剩空间,已记录服务选择单元2404将包括在该PMT阵列中的所有音频/视频ES和分段记录在第二存储单元1307中。In the case that the return value is a PMT array, the process proceeds to S3405, and according to the remaining space in the second storage unit 1307, the recorded service selection unit 2404 will include all audio/video ESs and segments in the PMT array recorded in the second storage unit 1307.

在返回值为空的情况下,该处理过程进行到S3406,并且针对由所指定的频道标识符指定的服务的AIT的所有Java程序,检查service_bound_flag的值。In case the return value is null, the process proceeds to S3406, and the value of service_bound_flag is checked for all Java programs of the AIT of the service specified by the specified channel identifier.

在所有Java程序的service_bound_flag=1的情况下,该处理过程进行到S3407,并且仅将由该频道标识符(其又是由记录注册单元2403指定的)指定的服务的视频/音频ES和分段记录在第二存储单元1307中。In the case of service_bound_flag=1 of all Java programs, the process proceeds to S3407, and only the video/audio ES and segment of the service specified by the channel identifier (which is again specified by the record registration unit 2403) are recorded In the second storage unit 1307 .

另一方面,在S3406中,在并不是所有Java程序的service_bound_flag均为1的情况下,该处理过程进行到S3408。这里,多服务记录允许处理程序调用单元2407被请求调用多服务记录允许处理程序的AllowMultiServiceRec方法。如果结果为假,则该处理过程进行到前述的S3407。另一方面,如果结果为真,则该处理过程进行到S3409,并且根据第二存储单元1307中所剩空间,将与要同时记录的服务相对应的所有PMT的视频/音频ES和分段记录在第二存储单元1307中。On the other hand, in S3406, in the case where the service_bound_flags of not all Java programs are 1, the process proceeds to S3408. Here, the multi-service record allowing handler calling unit 2407 is requested to call the AllowMultiServiceRec method of the multi-service recording allowing handler. If the result is false, the process proceeds to the aforementioned S3407. On the other hand, if the result is true, then the process proceeds to S3409, and according to the remaining space in the second storage unit 1307, the video/audio ES and segment recording of all PMTs corresponding to the service to be simultaneously recorded In the second storage unit 1307 .

当上述每个分支之后的处理都结束时,该处理过程返回到S3403,并重复进行处理。When the processing after each of the above branches ends, the processing procedure returns to S3403, and the processing is repeated.

根据本实施例,在第一实施例的效果的基础上,仅选择性地记录正常执行Java程序所必需的服务,这样使得可以正常执行该Java程序而不浪费存储单元中的空间。According to this embodiment, on the basis of the effect of the first embodiment, only the services necessary for normal execution of the Java program are selectively recorded, so that the Java program can be normally executed without wasting space in the storage unit.

(第五实施例)(fifth embodiment)

以下,参考附图说明根据本发明的第五实施例的装置和方法。Hereinafter, an apparatus and method according to a fifth embodiment of the present invention will be described with reference to the accompanying drawings.

如图13和图14所示那样构造用于本实施例的硬件结构。因为这与第一实施例中的结构和功能相同,所以省略了说明。The hardware structure used in this embodiment is constructed as shown in FIGS. 13 and 14 . Since this is the same structure and function as in the first embodiment, description is omitted.

在本实施例中,每个硬件组成单元具有如下输入和输出设定。In this embodiment, each hardware constituent unit has the following input and output settings.

首先,图15示出了表示在仅记录服务内指定的ES的情况下每个设备的物理连接顺序、处理细节以及输入/输出数据格式的概念性表述。因为这是如第一实施例中所述的相同结构,因此省略了说明。接着,图25示出了表示在记录传送服务的MPEG-2传输流的情况下每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是如第二实施例中所述的相同结构,因此省略了说明First, FIG. 15 shows a conceptual expression representing the physical connection order of each device, processing details, and input/output data format in the case of recording only ES specified within a service. Since this is the same structure as described in the first embodiment, description is omitted. Next, FIG. 25 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data format in the case of recording the MPEG-2 transport stream of the delivery service. Since this is the same structure as described in the second embodiment, description is omitted

最后,图16示出了表示在记录服务期间每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是如第一实施例中所述的相同结构,因此省略了说明。Finally, FIG. 16 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during recording services. Since this is the same structure as described in the first embodiment, description is omitted.

至此,已说明了有关本发明的硬件结构的示例。此后,说明本发明的主要功能,即,通过Java程序控制服务的记录和再现。So far, an example of the hardware configuration related to the present invention has been described. Hereinafter, the main function of the present invention, that is, recording and reproduction of services controlled by a Java program, will be described.

另外,这里再次使用了第一实施例中使用的图18至图21以及图23,以便说明用于本实施例中的每种数据类型的结构以及屏幕配置;这里也使用了第四实施例的图30所示的AIT格式。因为这些图与第一和第四实施例中所述的相同,因此省略了说明。In addition, FIG. 18 to FIG. 21 and FIG. 23 used in the first embodiment are used here again in order to explain the structure and screen configuration of each data type used in this embodiment; The AIT format shown in Figure 30. Since these figures are the same as those described in the first and fourth embodiments, explanations are omitted.

本实施例中使用的软件结构被构造为如图17和图24所示。对于图17和图24,除了已记录服务选择处理程序调用单元2405和已记录服务选择单元2404以外,其它组成单元都与第一实施例中所述的那些相同,所以省略了说明。另外,已记录服务选择处理程序调用单元2405与第二实施例中所述的相同,因此省略了说明。The software structure used in this embodiment is structured as shown in FIGS. 17 and 24 . 17 and 24, except for the recorded service selection handler calling unit 2405 and the recorded service selection unit 2404, other constituent units are the same as those described in the first embodiment, so explanations are omitted. In addition, the recorded service selection processing program calling unit 2405 is the same as that described in the second embodiment, so the description is omitted.

本实施例的已记录服务选择单元2404是第二实施例的已记录服务选择单元2404的部分修改版本,并且当在记录操作期间从已记录服务选择处理程序调用单元2405请求调用已记录服务选择处理程序时提供PMT的方法与第二实施例不同。一从AIT监控单元2405接收到关于版本已升级的新AIT的通知,或者检测到PAT或PMT版本升级,已记录服务选择单元2404就首先检查从AIT监控单元2402接收的、版本升级过的新AIT中的同时记录目标频道标识符3001。去除冗余,列出了写入该AIT中表示的所有Java程序中的同时记录目标频道标识符3001。The recorded service selection unit 2404 of the present embodiment is a partially modified version of the recorded service selection unit 2404 of the second embodiment, and when the recorded service selection process is called from the recorded service selection processing program calling unit 2405 during the recording operation The method of providing PMT during programming is different from that of the second embodiment. Upon receiving a notification about the upgraded new AIT from the AIT monitoring unit 2405, or detecting a PAT or PMT version upgrade, the recorded service selection unit 2404 first checks the new AIT received from the AIT monitoring unit 2402, whose version has been upgraded. Simultaneous recording target channel identifier 3001 in . Redundancy is removed, and simultaneous recording target channel identifiers 3001 written in all Java programs indicated in this AIT are listed.

在图30所示的AIT示例中,去除冗余,同时记录目标频道标识符是1、2和4。此后,已记录服务选择单元2404向已记录服务选择处理程序调用单元2405通知最新的AIT、与去除冗余的同时记录目标频道标识符相对应的PMT、以及要记录的服务的PMT,并请求调用已记录服务选择处理程序。然后,如前所述,已记录服务选择处理程序调用单元2405将记录和再现处理程序通知方法的返回值返回给已记录服务选择单元2404。此后的处理过程与第二实施例中所述的那些相同。In the AIT example shown in FIG. 30 , redundancy is removed while recording target channel identifiers are 1, 2, and 4. Thereafter, the recorded service selection unit 2404 notifies the recorded service selection handler calling unit 2405 of the latest AIT, the PMT corresponding to the simultaneous recording target channel identifier while removing redundancy, and the PMT of the service to be recorded, and requests to call Documented service selection handler. Then, the recorded service selection handler calling unit 2405 returns the return value of the recording and reproduction handler notification method to the recorded service selecting unit 2404 as described above. Processing procedures thereafter are the same as those described in the second embodiment.

以下,示出如上所述构造的本实施例的典型操作。In the following, a typical operation of the present embodiment constructed as described above is shown.

图35是示出了在本实施例中,当把包括在广播波中的服务记录在第二存储单元1307中时的处理过程的概况的流程图。FIG. 35 is a flowchart showing an outline of a processing procedure when recording a service included in a broadcast wave in the second storage unit 1307 in the present embodiment.

在S3501中,Java程序或其它程序将频道标识符、记录起始时间以及记录结束时间提供给记录注册单元2403。然后进行到S3502,记录注册单元2403等待,直到所指定的记录起始时间之前的固定时间段。此后,当到达在所指定的记录起始时间之前的该固定时间段时,该处理过程进行到S3503,并且记录注册单元2403请求已记录服务选择单元2404开始记录处理。已记录服务选择单元2404重复以下处理过程,直至到达所指定的记录结束时间。In S3501, the Java program or other programs provide the record registration unit 2403 with a channel identifier, a recording start time, and a recording end time. Then proceeding to S3502, the recording registration unit 2403 waits until a fixed period of time before the specified recording start time. Thereafter, when the fixed period of time before the specified recording start time is reached, the processing proceeds to S3503, and the recording registration unit 2403 requests the recorded service selection unit 2404 to start recording processing. The recorded service selection unit 2404 repeats the following processing until the specified recording end time is reached.

当发生AIT或PMT的版本升级时,或者发生由于PAT的版本升级引起的PMT更新时,该处理过程进行到S3504,并且已记录服务选择单元2404检查包括由频道标识符所指定的要记录的服务的AIT的同时记录目标频道标识符,并且确定要同时记录的服务。已记录服务选择单元2404指定要同时记录的服务,并且请求已记录服务选择处理程序调用单元2405调用已记录服务选择处理程序的notify方法。根据返回值,该处理过程以下列方式出现分支。When a version upgrade of AIT or PMT occurs, or when a PMT update occurs due to a version upgrade of PAT, the process proceeds to S3504, and the recorded service selection unit 2404 checks that the service to be recorded is specified by the channel identifier. The AIT simultaneously records the target channel identifier, and determines the services to be simultaneously recorded. The recorded service selection unit 2404 specifies services to be simultaneously recorded, and requests the recorded service selection handler calling unit 2405 to call the notify method of the recorded service selection handler. Depending on the return value, the processing branches in the following manner.

如果返回值为2,则该处理过程进行到S3507,并且将包括由频道标识符(其又是由记录注册单元2403指定的)指定的服务的所有MPEG-2传输流记录在第二存储单元1307中。If the return value is 2, the process proceeds to S3507, and all MPEG-2 transport streams including services specified by the channel identifier (which is again specified by the record registration unit 2403) are recorded in the second storage unit 1307 middle.

如果返回值为1,则该处理过程进行到S3508,并且仅将由频道标识符(其又是由记录注册单元2403指定的)指定的服务的视频/音频ES和分段记录在第二存储单元1307中。If the return value is 1, the process proceeds to S3508, and only the video/audio ES and segment of the service specified by the channel identifier (which is again specified by the record registration unit 2403) are recorded in the second storage unit 1307 middle.

如果返回值为0,则该处理过程进行到S3505,并且针对由指定的频道标识符指定的服务的AIT的所有Java程序,检查service_bound_flag的值。在所有Java程序的service_bound_flag=1的情况下,该处理过程进行到S3508,之前进行过说明。另一方面,在并不是所有Java程序的service_bound_flag均为1的情况下,该处理过程进行到S3506,并且多服务记录允许处理程序调用单元2407被要求调用多服务记录允许处理程序的AllowMultiServiceRec方法。如果结果为假,则该处理过程进行到前述的S3508。然而,如果结果为真,则该处理过程进行到前述的S3507。If the return value is 0, the process proceeds to S3505, and the value of service_bound_flag is checked for all Java programs of the AIT of the service specified by the specified channel identifier. In the case of service_bound_flag=1 for all Java programs, the process proceeds to S3508, which was explained earlier. On the other hand, in the case where service_bound_flags of not all Java programs are 1, the process proceeds to S3506, and the multi-service record allow handler calling unit 2407 is required to call the AllowMultiServiceRec method of the multi-service record allow handler. If the result is false, the process proceeds to the aforementioned S3508. However, if the result is true, the process proceeds to the aforementioned S3507.

当上述每个分支之后的处理都结束时,该处理过程返回到S3503,并且重复进行处理。When the processing after each of the above branches ends, the processing procedure returns to S3503, and the processing is repeated.

根据本实施例,在第二实施例的效果的基础上,可以仅选择性地记录正常执行Java程序所必需的服务,这样使得可以正常执行该Java程序而不浪费存储单元中的空间。According to this embodiment, on the basis of the effect of the second embodiment, only services necessary for normal execution of the Java program can be selectively recorded, so that the Java program can be normally executed without wasting space in the storage unit.

(第六实施例)(sixth embodiment)

以下,参考附图说明根据本发明的第六实施例的装置和方法。Hereinafter, an apparatus and method according to a sixth embodiment of the present invention will be described with reference to the drawings.

如图26和图14所示那样构造用于本实施例的硬件结构。因为图26具有与第三实施例相同的结构和功能,所以省略了说明。同样,因为图14具有与第一实施例相同的结构和功能,所以省略了说明。The hardware structure used in this embodiment is constructed as shown in FIG. 26 and FIG. 14 . Since FIG. 26 has the same structure and function as those of the third embodiment, description is omitted. Also, since FIG. 14 has the same structure and function as those of the first embodiment, description is omitted.

在本实施例中,每个硬件组成单元具有如下输入和输出设定。In this embodiment, each hardware constituent unit has the following input and output settings.

首先,图27示出了表示在仅记录服务内指定的ES的情况下每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是如第三实施例中所述的相同结构,所以省略了说明。First, FIG. 27 shows a conceptual expression representing the physical connection sequence of each device, processing details, and input/output data format in the case of recording only ES specified within a service. Since this is the same structure as described in the third embodiment, description is omitted.

接着,图28示出了表示在记录服务期间每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是如第三实施例中所述的相同结构,所以省略了说明。Next, FIG. 28 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during the recording service. Since this is the same structure as described in the third embodiment, description is omitted.

至此,已说明了有关本发明的硬件结构的示例。此后,说明本发明的主要功能,即,通过Java程序控制服务的记录和再现。So far, an example of the hardware configuration related to the present invention has been described. Hereinafter, the main function of the present invention, that is, recording and reproduction of services controlled by a Java program, will be described.

另外,这里再次使用了第一实施例中使用的图18至图20以及图23,以便说明用于本实施例中的每种数据类型的结构以及屏幕配置;这里也使用了第三实施例的图29所示的记录信息管理表和第四实施例的图30所示的AIT格式。因为这些图与第一、第三和第四实施例中所述的相同,因此省略了说明。In addition, FIG. 18 to FIG. 20 and FIG. 23 used in the first embodiment are used here again in order to explain the structure and screen configuration of each data type used in this embodiment; The recording information management table shown in FIG. 29 and the AIT format shown in FIG. 30 of the fourth embodiment. Since these figures are the same as those described in the first, third and fourth embodiments, explanations are omitted.

本实施例中使用的软件结构被构造为如图17和图24所示。对于图17和图24,除了应用程序状态管理单元2401、AIT管理单元2402以及已记录服务选择单元2404以外,其它组成单元与第一实施例中所述的那些相同,所以省略了说明。另外,因为应用程序状态管理单元2401和AIT管理单元2402与第三实施例中所述的那些相同,所以省略了说明。The software structure used in this embodiment is structured as shown in FIGS. 17 and 24 . 17 and 24, except for the application state management unit 2401, AIT management unit 2402, and recorded service selection unit 2404, other constituent units are the same as those described in the first embodiment, so explanations are omitted. In addition, since the application state management unit 2401 and the AIT management unit 2402 are the same as those described in the third embodiment, explanations are omitted.

本实施例的已记录服务选择单元2404是第一实施例的已记录服务选择单元2404的部分修改版本。以下步骤之后的处理过程不同于第一实施例:i)在记录操作期间从AIT监控单元接收到关于已经升级了版本的新AIT的通知,或者ii)检测到PAT或PMT的版本升级。此时,已记录服务选择单元2404首先检查从AIT监控单元2402接收到的、版本已经升级的新AIT中的同时记录目标频道标识符3001。去除冗余,列出了写入该AIT中表示的所有Java程序中的同时记录目标频道标识符3001。在图30所示的AIT示例中,去除冗余,同时记录目标频道标识符是1、2和4。此后,已记录服务选择单元2404向已记录服务选择处理程序调用单元2405通知最新的AIT、与去除冗余的同时记录目标频道标识符相对应的PMT、以及要记录的服务的PMT,并请求调用已记录服务选择处理程序。然后,如前所述,已记录服务选择处理程序调用单元2405将记录和再现处理程序通知方法的返回值返回给已记录服务选择单元2404。The recorded service selection unit 2404 of the present embodiment is a partially modified version of the recorded service selection unit 2404 of the first embodiment. The processing after the following steps is different from the first embodiment: i) receiving a notification from the AIT monitoring unit about a new AIT whose version has been upgraded during the recording operation, or ii) detecting a version upgrade of PAT or PMT. At this time, the recorded service selection unit 2404 first checks the simultaneous recording target channel identifier 3001 in the new AIT whose version has been upgraded received from the AIT monitoring unit 2402 . Redundancy is removed, and simultaneous recording target channel identifiers 3001 written in all Java programs indicated in this AIT are listed. In the AIT example shown in FIG. 30, redundancy is removed while recording target channel identifiers are 1, 2, and 4. Thereafter, the recorded service selection unit 2404 notifies the recorded service selection handler calling unit 2405 of the latest AIT, the PMT corresponding to the simultaneous recording target channel identifier while removing redundancy, and the PMT of the service to be recorded, and requests to call Documented service selection handler. Then, the recorded service selection handler calling unit 2405 returns the return value of the recording and reproduction handler notification method to the recorded service selecting unit 2404 as described above.

如果从已记录服务选择处理程序调用单元2405返回PMT阵列,则同时记录所指定的PMT表示的服务组。在PMT阵列中表示的所有ES(换句话说,音频、视频)、以及组成有关所有PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。然而,在第二存储单元1307中有很少剩余空间的情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。If the PMT array is returned from the recorded service selection handler calling unit 2405, the service group indicated by the specified PMT is recorded at the same time. All ESs (in other words, audio, video) represented in the PMT array, and all PIDs and table_ids of segment ESs constituting services related to all PMTs, are set in the PID filter 1502 of the TS decoder and the segment filtering device 1503. However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and the section are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 .

可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图27所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图27所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 27 . Then, according to the flow shown in FIG. 27, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,如果从已记录服务选择处理程序调用单元2405返回“空”,则已记录服务选择单元2404通过下列步骤确定要同时记录的服务。On the other hand, if "null" is returned from the recorded service selection handler call unit 2405, the recorded service selection unit 2404 determines services to be simultaneously recorded through the following steps.

首先,已记录服务选择单元2404参考AIT,并且检查包括在该服务中的所有Java程序的service_bound_flag。First, the recorded service selection unit 2404 refers to the AIT, and checks the service_bound_flags of all the Java programs included in the service.

如果对于所有Java程序,service_bound_flag=1,则已记录服务选择单元2404仅记录由频道标识符指定的要记录的服务。换句话说,在TS解码器的PID过滤器1502和分段过滤器1503中设置要记录的服务的PMT中表示的所有ES(换句话说,音频、视频)、以及组成该服务的分段ES的所有PID和table_id。此后,通过库1701b设定每个硬件组成单元的输出目的地,以便遵循图27所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图27所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。If service_bound_flag=1 for all Java programs, the recorded service selection unit 2404 records only the service to be recorded specified by the channel identifier. In other words, all the ESs indicated in the PMT of the service to be recorded (in other words, audio, video), and the segment ESs constituting the service are set in the PID filter 1502 and the segment filter 1503 of the TS decoder All PIDs and table_ids. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure shown in FIG. 27 for recording the service included in the broadcast wave into the second storage unit 1307. Then, according to the flow shown in FIG. 27, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,在有service_bound_flag=0的Java程序的情况下,已记录服务选择单元2404向多服务记录允许处理程序调用单元2407请求判断是否允许记录多个服务。在多服务记录允许处理程序调用单元2407返回“假”的情况下,执行在service_bound_flag=1情况下所述的处理过程,只记录由频道标识符所指定的要记录的服务。在多服务记录允许处理程序调用单元2407返回“真”的情况下,已记录服务选择单元2404记录由去除冗余的同时记录目标频道标识符所指定的服务组。换句话说,在与该同时记录目标频道标识符相对应的PMT组中表示的所有ES(换句话说,音频、视频)、以及组成有关所述PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。On the other hand, in the case of a Java program with service_bound_flag=0, recorded service selection section 2404 requests multi-service recording permission handler calling section 2407 to judge whether recording of multiple services is permitted. In the case where the multi-service record permission handler calling unit 2407 returns "false", the processing described in the case of service_bound_flag=1 is performed, and only the service to be recorded specified by the channel identifier is recorded. In a case where the multi-service recording permission handler calling unit 2407 returns "true", the recorded service selecting unit 2404 records the service group specified by the redundant simultaneous recording target channel identifier. In other words, all ESs (in other words, audio, video) represented in the PMT group corresponding to the simultaneous recording target channel identifier, and all PIDs and table_ids of segment ESs constituting the service on said PMT , are set in the PID filter 1502 and segment filter 1503 of the TS decoder.

然而,在第二存储单元1307中有很少剩余空间情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图27所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图27所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 . Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 27 . Then, according to the flow shown in FIG. 27, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

期望在所指定的记录起始时间之前完成如上所述的、发生在实际进行记录之前的预处理。实际的在记录区1504中进行的记录发生在所指定的起始时间之后。It is desirable to complete the preprocessing described above, which occurs before recording is actually performed, before the specified recording start time. Actual recording in recording area 1504 occurs after the specified start time.

此后,当到达所指定的记录结束时间时,已记录服务选择单元2404停止调谐器1704c的调谐处理,并且使MPEG-2传输流到记录区1504中的写入结束。另外,创建如图29所示的记录信息管理表,作为之前记录的MPEG-2传输流的管理信息。注意,AIT信息管理表部分被与分段转换单元2401所创建的表合并。Thereafter, when the specified recording end time is reached, the recorded service selection unit 2404 stops the tuning process of the tuner 1704c, and causes the writing of the MPEG-2 transport stream into the recording area 1504 to end. In addition, a recording information management table as shown in FIG. 29 is created as the management information of the previously recorded MPEG-2 transport stream. Note that the AIT information management table part is merged with the table created by the segment conversion unit 2401.

除此以外的处理过程与第一实施例的已记录服务选择单元2404的处理过程相同。The processing procedure other than this is the same as that of the recorded service selection unit 2404 of the first embodiment.

以下,示出了如上所述构造的本实施例的典型操作。In the following, a typical operation of the present embodiment constructed as described above is shown.

图36是示出了在本实施例中,当把包括在广播波中的服务记录到第二存储单元1307中时的处理过程的概况的流程图。FIG. 36 is a flowchart showing an outline of a processing procedure when recording a service included in a broadcast wave into the second storage unit 1307 in the present embodiment.

在S3601中,Java程序或其它程序将频道标识符、记录起始时间以及记录结束时间提供给记录注册单元2403。然后进行到S3602,记录注册单元2403等待,直到所指定的记录起始时间之前的固定时间段。此后,当到达在所指定的记录起始时间之前的该固定时间段时,该处理过程进行到S3603,并且记录注册单元2403请求已记录服务选择单元2404开始记录处理。已记录服务选择单元2404重复以下处理过程,直至到达所指定的记录结束时间。In S3601, the Java program or other programs provide the record registration unit 2403 with a channel identifier, a recording start time, and a recording end time. Then proceeding to S3602, the recording registration unit 2403 waits until a fixed period of time before the specified recording start time. Thereafter, when the fixed period of time before the specified recording start time is reached, the processing proceeds to S3603, and the recording registration unit 2403 requests the recorded service selection unit 2404 to start recording processing. The recorded service selection unit 2404 repeats the following processing until the specified recording end time is reached.

当发生AIT或PMT的版本升级时,或者发生由于PAT的版本升级引起的PMT更新时,该处理过程进行到S3604,并且已记录服务选择单元2404检查包括由频道标识符所指定的要记录的服务的AIT的同时记录目标频道标识符,并且确定要同时记录的服务。已记录服务选择单元2404指定要同时记录的服务,并且请求已记录服务选择处理程序调用单元2405调用已记录服务选择处理程序的notify方法。根据返回值,该处理过程以下列方式出现分支。When a version upgrade of AIT or PMT occurs, or when a PMT update occurs due to a version upgrade of PAT, the process proceeds to S3604, and the recorded service selection unit 2404 checks that the service to be recorded is specified by the channel identifier. The AIT simultaneously records the target channel identifier, and determines the services to be simultaneously recorded. The recorded service selection unit 2404 specifies services to be simultaneously recorded, and requests the recorded service selection handler calling unit 2405 to call the notify method of the recorded service selection handler. Depending on the return value, the processing branches in the following manner.

在返回值为PMT阵列的情况下,该处理过程进行到S3605,根据第二存储单元1307中所剩空间,已记录服务选择单元2404将包括在该PMT阵列中的所有音频/视频ES和分段文件记录在第二存储单元1307中。In the case that the return value is a PMT array, the process proceeds to S3605, and according to the remaining space in the second storage unit 1307, the recorded service selection unit 2404 will include all audio/video ESs and segments in the PMT array Files are recorded in the second storage unit 1307 .

在返回值为空的情况下,该处理过程进行到S3606,并且针对由所指定的频道标识符指定的服务的AIT的所有Java程序,检查service_bound_flag的值。在所有Java程序的service_bound_flag=1的情况下,该处理过程进行到S3607,并且仅将由该频道标识符(其又是由记录注册单元2403指定的)指定的服务的视频/音频ES和分段文件记录在第二存储单元1307中。In case the return value is null, the process proceeds to S3606, and the value of service_bound_flag is checked for all Java programs of the AIT of the service specified by the specified channel identifier. In the case of service_bound_flag=1 of all Java programs, the process proceeds to S3607, and only the video/audio ES and segment file of the service specified by the channel identifier (which again is specified by the record registration unit 2403) recorded in the second storage unit 1307.

另一方面,在S3606中,在并不是所有Java程序的service_bound_flag均为1的情况下,该处理过程进行到S3608。这里,多服务记录允许处理程序调用单元2407被要求调用多服务记录允许处理程序的AllowMultiServiceRec方法。如果结果为假,则该处理过程进行到前述的S3607。另一方面,如果结果为真,则该处理过程进行到S3609,并且根据第二存储单元1307中所剩空间,将与要同时记录的服务相对应的所有PMT的视频/音频ES和分段文件记录在第二存储单元1307中。On the other hand, in S3606, in the case where the service_bound_flags of not all Java programs are 1, the process proceeds to S3608. Here, the multi-service record allow handler calling unit 2407 is required to call the AllowMultiServiceRec method of the multi-service record allow handler. If the result is false, the process proceeds to the aforementioned S3607. On the other hand, if the result is true, then the process proceeds to S3609, and according to the remaining space in the second storage unit 1307, the video/audio ES and segment files of all PMTs corresponding to the services to be simultaneously recorded recorded in the second storage unit 1307.

当上述每个分支之后的处理都结束时,该处理过程返回到S3603,并重复进行处理。When the processing after each of the above branches ends, the processing returns to S3603, and the processing is repeated.

根据本实施例,在第三实施例的效果的基础上,仅选择性地记录正常执行Java程序所必需的服务,这样使得可以正常执行该Java程序而不浪费存储单元中的空间。According to this embodiment, on the basis of the effect of the third embodiment, only services necessary for normal execution of the Java program are selectively recorded, so that the Java program can be normally executed without wasting space in the storage unit.

(第七实施例)(seventh embodiment)

以下,参考附图说明根据本发明的第七实施例的装置和方法。Hereinafter, an apparatus and method according to a seventh embodiment of the present invention will be described with reference to the accompanying drawings.

如图13和图14所示那样构造用于本实施例的硬件结构。因为这与第一实施例中的结构和功能相同,所以省略了说明。The hardware structure used in this embodiment is constructed as shown in FIGS. 13 and 14 . Since this is the same structure and function as in the first embodiment, description is omitted.

在本实施例中,每个硬件组成单元具有如下输入和输出设定。In this embodiment, each hardware constituent unit has the following input and output settings.

首先,图15示出了表示在仅记录服务内指定的ES的情况下每个设备的物理连接顺序、处理细节以及输入/输出数据格式的概念性表述。因为这是如第一实施例中所述的相同结构,因此省略了说明。First, FIG. 15 shows a conceptual expression representing the physical connection order of each device, processing details, and input/output data format in the case of recording only ES specified within a service. Since this is the same structure as described in the first embodiment, description is omitted.

接着,图16示出了表示在记录服务期间每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是如第一实施例中所述的相同结构,因此省略了说明。Next, FIG. 16 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during the recording service. Since this is the same structure as described in the first embodiment, description is omitted.

至此,已说明了有关本发明的硬件结构的示例。此后,说明本发明的主要功能,即,通过Java程序控制服务的记录和再现。So far, an example of the hardware configuration related to the present invention has been described. Hereinafter, the main function of the present invention, that is, recording and reproduction of services controlled by a Java program, will be described.

这里再次使用了第一实施例中使用的图18至图23,以便说明用于本实施例中的每种数据类型的结构以及屏幕配置。因为组成要素与第一实施例中所述的相同,因此省略了说明。18 to 23 used in the first embodiment are used here again in order to explain the structure of each data type and the screen configuration used in this embodiment. Since the constituent elements are the same as those described in the first embodiment, description is omitted.

本实施例中使用的软件结构被构造为如图17和图24所示。对于图17和图24,除了AIT监控单元2402和已记录服务选择单元2404以外,其它组成单元都与第一实施例中所述的那些相同,所以省略了说明。The software structure used in this embodiment is structured as shown in FIGS. 17 and 24 . 17 and 24, except for the AIT monitoring unit 2402 and the recorded service selection unit 2404, other constituent units are the same as those described in the first embodiment, so explanations are omitted.

除了第一实施例的AIT监控单元2402的功能,本实施例的AIT监控单元2402对包括在MPEG-2传输流中的所有AIT的版本升级进行监控。换句话说,对除了指定的频道标识符以外的频道也监控AIT的版本升级。该过程几乎与获取与所指定的频道标识符相对应的服务的AIT的情况是一样的。首先,使用库1701b,获取对应于所指定的频道标识符的调谐信息。接着,使用SF 1704e,获取PAT。获取所有PMT中由该PAT所引用的实际PMT,并且参考在实际PMT中写入的细节,搜索流类型为“数据”并且以“AIT”作为附加信息的基本流的PID;对该PID进行分段过滤,并且获得所有实际的AIT。只要当出现任何AIT的版本升级,AIT监控单元2402将MPEG-2传输流内所有服务的整个最新的AIT输出给已记录服务选择单元2404。注意,因为有可能对于PAT和PMT发生版本升级,在PAT或PMT发生版本升级的情况下,必须重新获取AIT并且检查AIT的版本升级。In addition to the function of the AIT monitoring unit 2402 of the first embodiment, the AIT monitoring unit 2402 of the present embodiment monitors version upgrades of all AITs included in the MPEG-2 transport stream. In other words, the version upgrade of AIT is also monitored for channels other than the specified channel identifier. This procedure is almost the same as the case of acquiring the AIT of the service corresponding to the designated channel identifier. First, using the library 1701b, tuning information corresponding to the specified channel identifier is acquired. Next, use SF 1704e to obtain PAT. Obtain the actual PMT referenced by this PAT among all PMTs, and refer to the details written in the actual PMT, search for the PID of the elementary stream whose stream type is "data" and has "AIT" as additional information; analyze the PID Segment filtering, and get all actual AITs. The AIT monitoring unit 2402 outputs the entire latest AITs of all services in the MPEG-2 transport stream to the recorded service selection unit 2404 whenever any AIT version upgrade occurs. Note that since there is a possibility of version upgrade for PAT and PMT, in the case of version upgrade of PAT or PMT, it is necessary to reacquire AIT and check the version upgrade of AIT.

本实施例的已记录服务选择单元2404是第一实施例的已记录服务选择单元2404的部分修改版本。以下步骤之后的处理过程不同于第一实施例:i)在记录操作期间从AIT监控单元接收到关于已经升级了版本的新AIT的通知,或者ii)检测到PAT或PMT的版本升级。此时,已记录服务选择单元2404首先检查从AIT监控单元2402接收到的、版本已经升级的一组新AIT的service_bound_flag 2205。The recorded service selection unit 2404 of the present embodiment is a partially modified version of the recorded service selection unit 2404 of the first embodiment. The processing after the following steps is different from the first embodiment: i) receiving a notification from the AIT monitoring unit about a new AIT whose version has been upgraded during the recording operation, or ii) detecting a version upgrade of PAT or PMT. At this point, the recorded service selection unit 2404 first checks the service_bound_flag 2205 of a group of new AITs whose versions have been upgraded received from the AIT monitoring unit 2402.

首先,如果在由记录频道标识符(其又是由记录注册单元2403指定的)指定的服务的AIT中不存在service_bound_flag=0的Java程序,确定没有要同时记录的服务。First, if there is no Java program with service_bound_flag=0 in the AIT of the service specified by the recording channel identifier (which in turn is specified by the recording registration unit 2403), it is determined that there is no service to be simultaneously recorded.

另一方面,即使在由记录频道标识符指定的服务的AIT中存在一个service_bound_flag=0的Java程序,则开始对要同时记录的服务的特定操作。换句话说,对从AIT监控单元2402输出的所有组AIT进行检查,即使在该AIT中有一个service_bound_flag=0的Java程序,那么拥有该AIT的服务就是要同时记录的服务。On the other hand, even if there is a Java program with service_bound_flag=0 in the AIT of the service specified by the recording channel identifier, a specific operation for the service to be simultaneously recorded is started. In other words, all group AITs output from the AIT monitoring unit 2402 are checked, even if there is a Java program with service_bound_flag=0 in the AIT, then the service that owns the AIT is the service to be recorded at the same time.

此后,已记录服务选择单元2404向已记录服务选择处理程序调用单元2405通知最新的AIT、与被判定为要同时记录的服务相对应的PMT组、以及要记录的服务的PMT,并请求调用已记录服务选择处理程序。然后,如前所述,已记录服务选择处理程序调用单元2405将记录和再现处理程序通知方法的返回值返回给已记录服务选择单元2404。Thereafter, the recorded service selection unit 2404 notifies the recorded service selection processing program calling unit 2405 of the latest AIT, the PMT group corresponding to the services judged to be simultaneously recorded, and the PMT of the service to be recorded, and requests to call the recorded service. Records the service selection handler. Then, the recorded service selection handler calling unit 2405 returns the return value of the recording and reproduction handler notification method to the recorded service selecting unit 2404 as described above.

如果从已记录服务选择处理程序调用单元2405返回PMT阵列,则同时记录所指定的PMT表示的服务组。在PMT阵列中表示的所有ES(换句话说,音频、视频)、以及组成有关所有PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。然而,在第二存储单元1307中有很少剩余空间的情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。If the PMT array is returned from the recorded service selection handler calling unit 2405, the service group indicated by the specified PMT is recorded at the same time. All ESs (in other words, audio, video) represented in the PMT array, and all PIDs and table_ids of segment ESs constituting services related to all PMTs, are set in the PID filter 1502 of the TS decoder and the segment filtering device 1503. However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 .

可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 15 . Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,如果从已记录服务选择处理程序调用单元2405返回“空”,则已记录服务选择单元2404通过下列步骤确定要同时记录的服务。On the other hand, if "null" is returned from the recorded service selection handler call unit 2405, the recorded service selection unit 2404 determines services to be simultaneously recorded through the following steps.

首先,已记录服务选择单元2404参考由记录注册单元2403指定的要记录的服务的AIT,并且检查包括在该服务中的所有Java程序的service_bound_flag。First, the recorded service selection unit 2404 refers to the AIT of the service to be recorded specified by the recording registration unit 2403, and checks the service_bound_flags of all the Java programs included in the service.

如果对于所有Java程序,service_bound_flag=1,则已记录服务选择单元2404仅记录由频道标识符指定的要记录的服务。换句话说,在TS解码器的PID过滤器1502和分段过滤器1503中设置要记录的服务的PMT中表示的所有ES(换句话说,音频、视频)、以及组成该服务的分段ES的所有PID和table_id。此后,通过库1701b设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。If service_bound_flag=1 for all Java programs, the recorded service selection unit 2404 records only the service to be recorded specified by the channel identifier. In other words, all the ESs indicated in the PMT of the service to be recorded (in other words, audio, video), and the segment ESs constituting the service are set in the PID filter 1502 and the segment filter 1503 of the TS decoder All PIDs and table_ids. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,在有service_bound_flag=0的Java程序的情况下,已记录服务选择单元2404向多服务记录允许处理程序调用单元2407请求判断是否允许记录多个服务。在多服务记录允许处理程序调用单元2407返回“假”的情况下,执行在service_bound_flag=1情况下所述的处理过程,只记录由频道标识符所指定的要记录的服务。在多服务记录允许处理程序调用单元2407返回“真”的情况下,记录所有之前所述的要同时记录的服务。换句话说,在与同时记录目标频道标识符相对应的PMT组中表示的所有ES(换句话说,音频、视频)、以及组成有关所述PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。On the other hand, in the case of a Java program with service_bound_flag=0, recorded service selection section 2404 requests multi-service recording permission handler calling section 2407 to judge whether recording of multiple services is permitted. In the case where the multi-service record permission handler calling unit 2407 returns "false", the processing described in the case of service_bound_flag=1 is performed, and only the service to be recorded specified by the channel identifier is recorded. In the case where the multi-service record allowing handler call unit 2407 returns "true", all the previously described services to be recorded simultaneously are recorded. In other words, all ESs (in other words, audio, video) represented in the PMT group corresponding to the simultaneous recording target channel identifier, and all PIDs and table_ids of the segmented ESs constituting the service related to the PMT, Set in the PID filter 1502 and segment filter 1503 of the TS decoder.

然而,在第二存储单元1307中有很少剩余空间情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图15所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图15所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 . Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 15 . Then, according to the flow shown in FIG. 15, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

期望在所指定的记录起始时间之前完成如上所述的、发生在实际进行记录之前的预处理。实际的在记录区1504中进行的记录发生在所指定的起始时间之后。It is desirable to complete the preprocessing described above, which occurs before recording is actually performed, before the specified recording start time. Actual recording in recording area 1504 occurs after the specified start time.

此后,当到达所指定的记录结束时间时,已记录服务选择单元2404停止调谐器1704c的调谐处理,并且使MPEG-2传输流到记录区1504中的写入结束。另外,创建如图21所示的记录信息管理表,作为之前记录的MPEG-2传输流的管理信息。Thereafter, when the specified recording end time is reached, the recorded service selection unit 2404 stops the tuning process of the tuner 1704c, and causes the writing of the MPEG-2 transport stream into the recording area 1504 to end. In addition, a recording information management table as shown in FIG. 21 is created as the management information of the previously recorded MPEG-2 transport stream.

除上述以外的处理过程与第一实施例中的处理过程相同。Processing procedures other than the above are the same as those in the first embodiment.

以下,示出了如上所述构造的本实施例的典型操作。In the following, a typical operation of the present embodiment constructed as described above is shown.

图37是示出了在本实施例中,当把包括在广播波中的服务记录到第二存储单元1307中时的处理过程的概况的流程图。FIG. 37 is a flowchart showing an outline of a processing procedure when recording a service included in a broadcast wave into the second storage unit 1307 in the present embodiment.

在S3701中,Java程序或其它程序将频道标识符、记录起始时间以及记录结束时间提供给记录注册单元2403。然后进行到S3702,记录注册单元2403等待,直到所指定的记录起始时间之前的固定时间段。此后,当到达在所指定的记录起始时间之前的该固定时间段时,该处理过程进行到S3703,并且记录注册单元2403请求已记录服务选择单元2404开始记录处理。已记录服务选择单元2404重复以下处理过程,直至到达所指定的记录结束时间。In S3701, the Java program or other programs provide the record registration unit 2403 with a channel identifier, a recording start time, and a recording end time. Then proceeding to S3702, the recording registration unit 2403 waits until a fixed period of time before the specified recording start time. Thereafter, when the fixed period of time before the specified recording start time is reached, the processing proceeds to S3703, and the recording registration unit 2403 requests the recorded service selection unit 2404 to start recording processing. The recorded service selection unit 2404 repeats the following processing until the specified recording end time is reached.

当发生AIT或PMT的版本升级时,或者发生由于PAT的版本升级引起的PMT更新时,该处理过程进行到S3704,并且已记录服务选择单元2404基于包括由频道标识符指定的要记录的服务的AIT的service_bound_flag,确定要同时记录的服务。已记录服务选择单元2404指定要同时记录的服务,并且请求已记录服务选择处理程序调用单元2405调用已记录服务选择处理程序的notify方法。根据返回值,该处理过程以下列方式出现分支。When a version upgrade of AIT or PMT occurs, or when a PMT update occurs due to a version upgrade of PAT, the process proceeds to S3704, and the recorded service selection unit 2404 is based on the AIT's service_bound_flag, which determines the services to be recorded at the same time. The recorded service selection unit 2404 specifies services to be simultaneously recorded, and requests the recorded service selection handler calling unit 2405 to call the notify method of the recorded service selection handler. Depending on the return value, the processing branches in the following manner.

在返回值为PMT阵列的情况下,该处理过程进行到S3705,根据第二存储单元1307中所剩空间,已记录服务选择单元2404将包括在该PMT阵列中的所有音频/视频ES和分段记录在第二存储单元1307中。In the case that the return value is a PMT array, the process proceeds to S3705, and according to the remaining space in the second storage unit 1307, the recorded service selection unit 2404 will include all audio/video ESs and segments in the PMT array recorded in the second storage unit 1307.

在返回值为空的情况下,该处理过程进行到S3706,并且针对由所指定的频道标识符指定的服务的AIT的所有Java程序,检查service_bound_flag的值。在所有Java程序的service_bound_flag=1的情况下,该处理过程进行到S3707,并且仅将由该频道标识符(其又是由记录注册单元2403指定的)指定的服务的视频/音频ES和分段记录在第二存储单元1307中。In case the return value is null, the process proceeds to S3706, and the value of service_bound_flag is checked for all Java programs of the AIT of the service specified by the specified channel identifier. In the case of service_bound_flag=1 of all Java programs, the process proceeds to S3707, and only the video/audio ES and segment of the service specified by the channel identifier (which is again specified by the record registration unit 2403) are recorded In the second storage unit 1307 .

另一方面,在S3706中,在并不是所有Java程序的service_bound_flag均为1的情况下,该处理过程进行到S3708。这里,多服务记录允许处理程序调用单元2407被要求调用多服务记录允许处理程序的AllowMultiServiceRec方法。如果结果为假,则该处理过程进行到前述的S3707。另一方面,如果结果为真,则该处理过程进行到S3709,并且根据第二存储单元1307中所剩空间,将与要同时记录的服务相对应的所有PMT的视频/音频ES和分段记录在第二存储单元1307中。On the other hand, in S3706, in the case where the service_bound_flags of not all Java programs are 1, the process proceeds to S3708. Here, the multi-service record allow handler calling unit 2407 is required to call the AllowMultiServiceRec method of the multi-service record allow handler. If the result is false, the process proceeds to the aforementioned S3707. On the other hand, if the result is true, the process proceeds to S3709, and according to the remaining space in the second storage unit 1307, the video/audio ES and segment recording of all PMTs corresponding to the service to be simultaneously recorded In the second storage unit 1307 .

当上述每个分支之后的处理都结束时,该处理过程返回到S3703,并重复进行处理。When the processing after each of the above branches ends, the processing procedure returns to S3703, and the processing is repeated.

根据本实施例,在第一实施例的效果的基础上,可以选择性地仅记录正常执行Java程序所必需的服务,这样使得可以正常执行该Java程序而不浪费存储单元中的空间。According to this embodiment, on the basis of the effect of the first embodiment, only the services necessary for the normal execution of the Java program can be selectively recorded, so that the Java program can be normally executed without wasting space in the storage unit.

(第八实施例)(eighth embodiment)

以下,参考附图说明根据本发明的第八实施例的装置和方法。Hereinafter, an apparatus and method according to an eighth embodiment of the present invention will be described with reference to the drawings.

如图13和图14所示那样构造用于本实施例的硬件结构。因为这与第一实施例中的结构和功能相同,所以省略了说明。The hardware structure used in this embodiment is constructed as shown in FIGS. 13 and 14 . Since this is the same structure and function as in the first embodiment, description is omitted.

在本实施例中,每个硬件组成单元具有如下输入和输出设定。In this embodiment, each hardware constituent unit has the following input and output settings.

首先,图15示出了表示在仅记录服务内指定的ES的情况下每个设备的物理连接顺序、处理细节以及输入/输出数据格式的概念性表述。因为这是如第一实施例中所述的相同结构,因此省略了说明。First, FIG. 15 shows a conceptual expression representing the physical connection order of each device, processing details, and input/output data format in the case of recording only ES specified within a service. Since this is the same structure as described in the first embodiment, description is omitted.

接着,图25示出了表示在记录传送服务的MPEG-2传输流的情况下每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是如第二实施例中所述的相同结构,因此省略了说明Next, FIG. 25 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data format in the case of recording the MPEG-2 transport stream of the delivery service. Since this is the same structure as described in the second embodiment, description is omitted

最后,图16示出了表示在记录服务期间每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是如第一实施例中所述的相同结构,因此省略了说明。Finally, FIG. 16 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during recording services. Since this is the same structure as described in the first embodiment, description is omitted.

至此,已说明了有关本发明的硬件结构的示例。此后,说明本发明的主要功能,即,通过Java程序控制服务的记录和再现。So far, an example of the hardware configuration related to the present invention has been described. Hereinafter, the main function of the present invention, that is, recording and reproduction of services controlled by a Java program, will be described.

这里再次使用了第一实施例中使用的图18至图23,以便说明用于本实施例中的每种数据类型的结构以及屏幕配置。因为组成要素与第一实施例中所述的相同,因此省略了说明。18 to 23 used in the first embodiment are used here again in order to explain the structure of each data type and the screen configuration used in this embodiment. Since the constituent elements are the same as those described in the first embodiment, description is omitted.

本实施例中使用的软件结构被构造为如图17和图24所示。对于图17和图24,除了AIT监控单元2402、已记录服务选择处理程序调用单元2405和已记录服务选择单元2404以外,其它组成单元都与第一实施例中所述的那些相同,所以省略了说明。另外,已记录服务选择处理程序调用单元2405与第二实施例中所述的相同,因此省略了说明。AIT监控单元2402与第七实施例中所述的相同,因此省略了说明。The software structure used in this embodiment is structured as shown in FIGS. 17 and 24 . 17 and 24, except for the AIT monitoring unit 2402, the recorded service selection handler calling unit 2405, and the recorded service selection unit 2404, other constituent units are the same as those described in the first embodiment, so the illustrate. In addition, the recorded service selection processing program calling unit 2405 is the same as that described in the second embodiment, so the description is omitted. The AIT monitoring unit 2402 is the same as that described in the seventh embodiment, so description is omitted.

本实施例的已记录服务选择单元2404是第二实施例的已记录服务选择单元2404的部分修改版本,并且当在记录操作期间从已记录服务选择处理程序调用单元2405请求调用已记录服务选择处理程序时提供PMT的方法与第二实施例不同。在此时,已记录服务选择单元2404首先检查从AIT监控单元2402接收到的、版本已升级的一组新AIT的service_bound_flag 2205。The recorded service selection unit 2404 of the present embodiment is a partially modified version of the recorded service selection unit 2404 of the second embodiment, and when the recorded service selection process is called from the recorded service selection processing program calling unit 2405 during the recording operation The method of providing PMT during programming is different from that of the second embodiment. At this time, the recorded service selection unit 2404 first checks the service_bound_flag 2205 of a group of new AITs whose versions have been upgraded received from the AIT monitoring unit 2402.

如果在由记录频道标识符(其又是由记录注册单元2403指定的)指定的服务的AIT中不存在service_bound_flag=0的Java程序,则确定没有要同时记录的服务。If there is no Java program with service_bound_flag=0 in the AIT of the service specified by the recording channel identifier (which in turn is specified by the recording registration unit 2403), it is determined that there is no service to be simultaneously recorded.

另一方面,即使在由记录频道标识符指定的服务的AIT中存在一个service_bound_flag=0的Java程序,则开始对要同时记录的服务的特定操作。换句话说,对从AIT监控单元2402输出的所有组AIT进行检查,即使在该AIT中有一个service_bound_flag=0的Java程序,那么拥有该AIT的服务就是要同时记录的服务。On the other hand, even if there is a Java program with service_bound_flag=0 in the AIT of the service specified by the recording channel identifier, a specific operation for the service to be simultaneously recorded is started. In other words, all group AITs output from the AIT monitoring unit 2402 are checked, even if there is a Java program with service_bound_flag=0 in the AIT, then the service that owns the AIT is the service to be recorded at the same time.

此后,已记录服务选择单元2404向已记录服务选择处理程序调用单元2405通知最新的AIT、与被判定为要同时记录的服务相对应的PMT组、以及要记录的服务的PMT,并请求调用已记录服务选择处理程序。然后,如前所述,已记录服务选择处理程序调用单元2405将记录和再现处理程序通知方法的返回值返回给已记录服务选择单元2404。此后的处理过程与第二实施例中所述的相同。Thereafter, the recorded service selection unit 2404 notifies the recorded service selection processing program calling unit 2405 of the latest AIT, the PMT group corresponding to the services judged to be simultaneously recorded, and the PMT of the service to be recorded, and requests to call the recorded service. Records the service selection handler. Then, the recorded service selection handler calling unit 2405 returns the return value of the recording and reproduction handler notification method to the recorded service selecting unit 2404 as described above. The processing thereafter is the same as that described in the second embodiment.

以下,示出如上所述构造的本实施例的典型操作。In the following, a typical operation of the present embodiment constructed as described above is shown.

图38是示出了在本实施例中,当把包括在广播波中的服务记录在第二存储单元1307中时的处理过程的概况的流程图。FIG. 38 is a flowchart showing an outline of a processing procedure when recording a service included in a broadcast wave in the second storage unit 1307 in the present embodiment.

在S3801中,Java程序或其它程序将频道标识符、记录起始时间以及记录结束时间提供给记录注册单元2403。然后进行到S3802,记录注册单元2403等待,直到所指定的记录起始时间之前的固定时间段。此后,当到达在所指定的记录起始时间之前的该固定时间段时,该处理过程进行到S3803,并且记录注册单元2403请求已记录服务选择单元2404开始记录处理。已记录服务选择单元2404重复以下处理过程,直至到达所指定的记录结束时间。In S3801, the Java program or other programs provide the record registration unit 2403 with the channel identifier, the recording start time, and the recording end time. Then proceeding to S3802, the recording registration unit 2403 waits until a fixed period of time before the specified recording start time. Thereafter, when the fixed period of time before the designated recording start time is reached, the processing proceeds to S3803, and the recording registration unit 2403 requests the recorded service selection unit 2404 to start recording processing. The recorded service selection unit 2404 repeats the following processing until the specified recording end time is reached.

当发生AIT或PMT的版本升级时,或者发生由于PAT的版本升级引起的PMT更新时,该处理过程进行到S3804,并且已记录服务选择单元2404基于包括由频道标识符指定的要记录的服务的AIT的service_bound_flag,确定要同时记录的服务。已记录服务选择单元2404指定要同时记录的服务,并且请求已记录服务选择处理程序调用单元2405调用已记录服务选择处理程序的notify方法。根据返回值,该处理过程以下列方式出现分支。When a version upgrade of AIT or PMT occurs, or when a PMT update occurs due to a version upgrade of PAT, the process proceeds to S3804, and the recorded service selection unit 2404 is based on the AIT's service_bound_flag, which determines the services to be recorded at the same time. The recorded service selection unit 2404 specifies services to be simultaneously recorded, and requests the recorded service selection handler calling unit 2405 to call the notify method of the recorded service selection handler. Depending on the return value, the processing branches in the following manner.

如果返回值为2,则该处理过程进行到S3807,并且将包括由频道标识符(其又是由记录注册单元2403指定的)指定的服务的所有MPEG-2传输流记录在第二存储单元1307中。If the return value is 2, the process proceeds to S3807, and all MPEG-2 transport streams including services specified by the channel identifier (which is again specified by the record registration unit 2403) are recorded in the second storage unit 1307 middle.

如果返回值为1,则该处理过程进行到S3808,并且仅将由频道标识符(其又是由记录注册单元2403指定的)指定的服务的视频/音频ES和分段记录在第二存储单元1307中。If the return value is 1, the process proceeds to S3808, and only the video/audio ES and segment of the service specified by the channel identifier (which is again specified by the record registration unit 2403) are recorded in the second storage unit 1307 middle.

如果返回值为0,则该处理过程进行到S3805,并且针对由指定的频道标识符指定的服务的AIT的所有Java程序,检查service_bound_flag的值。在所有Java程序的service_bound_flag=1的情况下,该处理过程进行到S3808,之前进行过说明。另一方面,在并不是所有Java程序的service_bound_flag均为1的情况下,该处理过程进行到S3806,并且多服务记录允许处理程序调用单元2407被要求调用多服务记录允许处理程序的AllowMultiServiceRec方法。如果结果为假,则该处理过程进行到前述的S3808。然而,如果结果为真,则该处理过程进行到前述的S3807。If the return value is 0, the process proceeds to S3805, and the value of service_bound_flag is checked for all Java programs of the AIT of the service specified by the specified channel identifier. In the case of service_bound_flag=1 for all Java programs, the process proceeds to S3808, which was explained earlier. On the other hand, in the case where service_bound_flags of not all Java programs are 1, the process proceeds to S3806, and the multi-service record allow handler calling unit 2407 is required to call the AllowMultiServiceRec method of the multi-service record allow handler. If the result is false, the process proceeds to the aforementioned S3808. However, if the result is true, the process proceeds to the aforementioned S3807.

当上述每个分支之后的处理都结束时,该处理过程返回到S3803,并且重复进行处理。When the processing after each of the above branches ends, the processing procedure returns to S3803, and the processing is repeated.

根据本实施例,在第二实施例的效果的基础上,可以选择性地仅记录假定是正常执行Java程序所必需的服务,这样使得可以正常执行该Java程序而不浪费存储单元中的空间。According to this embodiment, on the basis of the effect of the second embodiment, only services assumed to be necessary for normal execution of a Java program can be selectively recorded, so that the Java program can be normally executed without wasting space in the storage unit.

(第九实施例)(ninth embodiment)

以下,参考附图说明根据本发明的第九实施例的装置和方法。Hereinafter, an apparatus and method according to a ninth embodiment of the present invention will be described with reference to the drawings.

如图26和图14所示那样构造用于本实施例的硬件结构。因为图26具有与第三实施例相同的结构和功能,所以省略了说明。因为图14具有与第一实施例相同的结构和功能,所以省略了说明。在本实施例中,每个硬件组成单元具有如下输入和输出设定。The hardware structure used in this embodiment is constructed as shown in FIG. 26 and FIG. 14 . Since FIG. 26 has the same structure and function as those of the third embodiment, description is omitted. Since FIG. 14 has the same structure and function as those of the first embodiment, description is omitted. In this embodiment, each hardware constituent unit has the following input and output settings.

首先,图27示出了表示在仅记录服务内指定的ES的情况下每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是如第三实施例中所述的相同结构,所以省略了说明。First, FIG. 27 shows a conceptual expression representing the physical connection sequence of each device, processing details, and input/output data format in the case of recording only ES specified within a service. Since this is the same structure as described in the third embodiment, description is omitted.

接着,图28示出了表示在记录服务期间每个设备的物理连接顺序、处理细节、以及输入/输出数据格式的概念性表述。因为这是如第三实施例中所述的相同结构,所以省略了说明。Next, FIG. 28 shows a conceptual representation representing the physical connection sequence of each device, processing details, and input/output data formats during the recording service. Since this is the same structure as described in the third embodiment, description is omitted.

至此,已说明了有关本发明的硬件结构的示例。此后,说明本发明的主要功能,即,通过Java程序控制服务的记录和再现。So far, an example of the hardware configuration related to the present invention has been described. Hereinafter, the main function of the present invention, that is, recording and reproduction of services controlled by a Java program, will be described.

这里再次使用了第一实施例中使用的图18至图21以及图23,以便说明用于本实施例中的每种数据类型的结构以及屏幕配置;这里也使用了第四实施例的图30所示的AIT格式。因为这些图与第一和第四实施例中所述的相同,因此省略了说明。Figure 18 to Figure 21 and Figure 23 used in the first embodiment are used here again in order to illustrate the structure and screen configuration of each data type used in this embodiment; Figure 30 of the fourth embodiment is also used here AIT format shown. Since these figures are the same as those described in the first and fourth embodiments, explanations are omitted.

本实施例中使用的软件结构被构造为如图17和图24所示。对于图17和图24,除了AIT监控单元2402、已记录服务选择处理程序调用单元2405和已记录服务选择单元2404以外,其它组成单元都与第一实施例中所述的那些相同,所以省略了说明。另外,已记录服务选择处理程序调用单元2405与第二实施例中所述的相同,因此省略了说明。AIT监控单元2402与第七实施例中所述的相同,因此省略了说明。The software structure used in this embodiment is structured as shown in FIGS. 17 and 24 . 17 and 24, except for the AIT monitoring unit 2402, the recorded service selection handler calling unit 2405, and the recorded service selection unit 2404, other constituent units are the same as those described in the first embodiment, so the illustrate. In addition, the recorded service selection processing program calling unit 2405 is the same as that described in the second embodiment, so the description is omitted. The AIT monitoring unit 2402 is the same as that described in the seventh embodiment, so description is omitted.

本实施例的已记录服务选择单元2404是第一实施例的已记录服务选择单元2404的部分修改版本,并且当在记录操作期间从已记录服务选择处理程序调用单元2405请求调用已记录服务选择处理程序时提供PMT的方法与第一实施例不同。在此时,已记录服务选择单元2404首先检查从AIT监控单元2402接收到的、版本已升级的一组新AIT的service_bound_flag2205。The recorded service selection unit 2404 of the present embodiment is a partially modified version of the recorded service selection unit 2404 of the first embodiment, and calls the recorded service selection process when a request is made from the recorded service selection processing program calling unit 2405 during the recording operation The method of providing PMT during programming is different from that of the first embodiment. At this time, the recorded service selection unit 2404 first checks the service_bound_flag 2205 of a set of new AITs whose version has been upgraded received from the AIT monitoring unit 2402 .

如果在由记录频道标识符(其又是由记录注册单元2403指定的)指定的服务的AIT中不存在service_bound_flag=0的Java程序,则确定没有要同时记录的服务。If there is no Java program with service_bound_flag=0 in the AIT of the service specified by the recording channel identifier (which in turn is specified by the recording registration unit 2403), it is determined that there is no service to be simultaneously recorded.

另一方面,即使在由记录频道标识符指定的服务的AIT中存在一个service_bound_flag=0的Java程序,则开始对要同时记录的服务的特定操作。换句话说,对从AIT监控单元2402输出的所有组AIT进行检查,即使在该AIT中有一个service bound_flag=0的Java程序,那么拥有该AIT的服务就是要同时记录的服务。On the other hand, even if there is a Java program with service_bound_flag=0 in the AIT of the service specified by the recording channel identifier, a specific operation for the service to be simultaneously recorded is started. In other words, check all group AITs output from the AIT monitoring unit 2402, even if there is a Java program with service bound_flag=0 in the AIT, then the service that owns the AIT is the service to be recorded at the same time.

此后,已记录服务选择单元2404向已记录服务选择处理程序调用单元2405通知最新的AIT、与被判定为要同时记录的服务相对应的PMT组、以及要记录的服务的PMT,并请求调用已记录服务选择处理程序。然后,如前所述,已记录服务选择处理程序调用单元2405将记录和再现处理程序通知方法的返回值返回给已记录服务选择单元2404。Thereafter, the recorded service selection unit 2404 notifies the recorded service selection processing program calling unit 2405 of the latest AIT, the PMT group corresponding to the services judged to be simultaneously recorded, and the PMT of the service to be recorded, and requests to call the recorded service. Records the service selection handler. Then, the recorded service selection handler calling unit 2405 returns the return value of the recording and reproduction handler notification method to the recorded service selecting unit 2404 as described above.

如果从已记录服务选择处理程序调用单元2405返回PMT阵列,则同时记录所指定的PMT表示的服务组。在PMT阵列中表示的所有ES(换句话说,音频、视频)、以及组成有关所有PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。然而,在第二存储单元1307中有很少剩余空间的情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。If the PMT array is returned from the recorded service selection handler calling unit 2405, the service group indicated by the specified PMT is recorded at the same time. All ESs (in other words, audio, video) represented in the PMT array, and all PIDs and table_ids of segment ESs constituting services related to all PMTs, are set in the PID filter 1502 of the TS decoder and the segment filtering device 1503. However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 .

可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图27所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图27所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 27 . Then, according to the flow shown in FIG. 27, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,如果从已记录服务选择处理程序调用单元2405返回“空”,则已记录服务选择单元2404通过下列步骤确定要同时记录的服务。On the other hand, if "null" is returned from the recorded service selection handler call unit 2405, the recorded service selection unit 2404 determines services to be simultaneously recorded through the following steps.

首先,已记录服务选择单元2404参考AIT,并且检查包括在该服务中的所有Java程序的service_bound_flag。First, the recorded service selection unit 2404 refers to the AIT, and checks the service_bound_flags of all the Java programs included in the service.

如果对于所有Java程序,service_boudnd_flag=1,则已记录服务选择单元2404仅记录由频道标识符指定的要记录的服务。换句话说,在TS解码器的PID过滤器1502和分段过滤器1503中设置要记录的服务的PMT中表示的所有ES(换句话说,音频、视频)、以及组成该服务的分段ES的所有PID和table_id。此后,通过库1701b设定每个硬件组成单元的输出目的地,以便遵循图27所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图27所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。If service_boudnd_flag=1 for all Java programs, the recorded service selection unit 2404 records only the service to be recorded specified by the channel identifier. In other words, all the ESs indicated in the PMT of the service to be recorded (in other words, audio, video), and the segment ESs constituting the service are set in the PID filter 1502 and the segment filter 1503 of the TS decoder All PIDs and table_ids. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure shown in FIG. 27 for recording the service included in the broadcast wave into the second storage unit 1307. Then, according to the flow shown in FIG. 27, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

另一方面,在有service_bound_flag=0的Java程序的情况下,已记录服务选择单元2404向多服务记录允许处理程序调用单元2407请求判断是否允许记录多个服务。在多服务记录允许处理程序调用单元2407返回“假”的情况下,执行在service_bound_flag=1情况下所述的处理过程,只记录由频道标识符所指定的要记录的服务。在多服务记录允许处理程序调用单元2407返回“真”的情况下,记录由去除冗余的同时记录目标频道标识符所指定的所有服务。换句话说,在与同时记录目标频道标识符相对应的PMT组中表示的所有ES(换句话说,音频、视频)、以及组成有关所述PMT的服务的分段ES的所有PID和table_id,被设置在TS解码器的PID过滤器1502和分段过滤器1503中。On the other hand, in the case of a Java program with service_bound_flag=0, recorded service selection section 2404 requests multi-service recording permission handler calling section 2407 to judge whether recording of multiple services is permitted. In the case where the multi-service record permission handler calling unit 2407 returns "false", the processing described in the case of service_bound_flag=1 is performed, and only the service to be recorded specified by the channel identifier is recorded. In a case where the multi-service recording permission handler calling unit 2407 returns "true", all services specified by the channel identifier of the recording target channel while removing redundancy are recorded. In other words, all ESs (in other words, audio, video) represented in the PMT group corresponding to the simultaneous recording target channel identifier, and all PIDs and table_ids of the segmented ESs constituting the service related to the PMT, Set in the PID filter 1502 and segment filter 1503 of the TS decoder.

然而,在第二存储单元1307中有很少剩余空间情况下,根据所剩空间,仅记录一部分音频/视频ES和分段。换句话说,已记录服务选择单元2404通过库1701b检查第二存储单元1307中的剩余空间,并且设置TS解码器的PID过滤器1502和分段过滤器1503以便只把可以记录进该剩余空间的音频/视频ES和分段记录进第二存储单元1307中。可以用任意算法来确定所需空间。例如,音频/视频ES的比特率被写入传输流中,并且可以由库1701b获取。有一种方法根据比特率和记录时间来计算记录所需的空间量,并且不记录至少不能记录音频/视频ES的服务。此后,通过库1701b来设定每个硬件组成单元的输出目的地,以便遵循图27所示的将包括在广播波中的服务记录到第二存储单元1307中的处理过程。然后,根据图27所述的流程,将组成所期望的频道的所有ES记录到已确保的记录区1504中。However, in the case where there is little remaining space in the second storage unit 1307, only a part of the audio/video ES and sections are recorded according to the remaining space. In other words, the recorded service selection unit 2404 checks the remaining space in the second storage unit 1307 through the library 1701b, and sets the PID filter 1502 and segment filter 1503 of the TS decoder so that only the service that can be recorded in the remaining space is recorded. Audio/video ES and segments are recorded into the second storage unit 1307 . Any algorithm may be used to determine the required space. For example, the bit rate of the audio/video ES is written in the transport stream, and can be acquired by the library 1701b. There is a way to calculate the amount of space required for recording based on the bitrate and recording time, and not record services that at least can't record audio/video ES. Thereafter, the output destination of each hardware constituent unit is set by the library 1701b so as to follow the processing procedure of recording the service included in the broadcast wave into the second storage unit 1307 shown in FIG. 27 . Then, according to the flow shown in FIG. 27, all the ESs constituting the desired channel are recorded in the reserved recording area 1504.

期望在所指定的记录起始时间之前完成如上所述的、发生在实际进行记录之前的预处理。实际的在记录区1504中进行的记录发生在所指定的起始时间之后。It is desirable to complete the preprocessing described above, which occurs before recording is actually performed, before the specified recording start time. Actual recording in recording area 1504 occurs after the specified start time.

此后,当到达所指定的记录结束时间时,已记录服务选择单元2404停止调谐器1704c的调谐处理,并且使MPEG-2传输流到记录区1504中的写入结束。另外,创建如图29所示的记录信息管理表,作为之前记录的MPEG-2传输流的管理信息。注意,AIT信息管理表部分被与分段选择单元2401创建的表合并。Thereafter, when the specified recording end time is reached, the recorded service selection unit 2404 stops the tuning process of the tuner 1704c, and causes the writing of the MPEG-2 transport stream into the recording area 1504 to end. In addition, a recording information management table as shown in FIG. 29 is created as the management information of the previously recorded MPEG-2 transport stream. Note that the AIT information management table part is merged with the table created by the segment selection unit 2401.

除此以外的处理过程与第一实施例中的应用程序状态管理单元进行的处理过程相同。Other processing procedures are the same as those performed by the application state management unit in the first embodiment.

以下,示出了如上所述构造的本实施例的典型操作。In the following, a typical operation of the present embodiment constructed as described above is shown.

图39是示出了在本实施例中,当把包括在广播波中的服务记录到第二存储单元1307中时的处理过程的概况的流程图。FIG. 39 is a flowchart showing an outline of a processing procedure when recording a service included in a broadcast wave into the second storage unit 1307 in the present embodiment.

在S3901中,Java程序或其它程序将频道标识符、记录起始时间以及记录结束时间提供给记录注册单元2403。然后进行到S3902,记录注册单元2403等待,直到所指定的记录起始时间之前的固定时间段。此后,当到达在所指定的记录起始时间之前的该固定时间段时,该处理过程进行到S3903,并且记录注册单元2403请求已记录服务选择单元2404开始记录处理。已记录服务选择单元2404重复以下处理过程,直至到达所指定的记录结束时间。In S3901, the Java program or other programs provide the record registration unit 2403 with a channel identifier, a recording start time, and a recording end time. Then proceeding to S3902, the recording registration unit 2403 waits until a fixed period of time before the specified recording start time. Thereafter, when the fixed period of time before the designated recording start time is reached, the processing proceeds to S3903, and the recording registration unit 2403 requests the recorded service selection unit 2404 to start recording processing. The recorded service selection unit 2404 repeats the following processing until the specified recording end time is reached.

当发生AIT或PMT的版本升级时,或者发生由于PAT的版本升级引起的PMT更新时,该处理过程进行到S3904,并且已记录服务选择单元2404基于包括由频道标识符指定的要记录的服务的AIT的service_bound_flag,确定要同时记录的服务。已记录服务选择单元2404指定要同时记录的服务,并且请求已记录服务选择处理程序调用单元2405调用已记录服务选择处理程序的notify方法。根据返回值,该处理过程以下列方式出现分支。When a version upgrade of AIT or PMT occurs, or when a PMT update occurs due to a version upgrade of PAT, the process proceeds to S3904, and the recorded service selection unit 2404 is based on the AIT's service_bound_flag, which determines the services to be recorded at the same time. The recorded service selection unit 2404 specifies services to be simultaneously recorded, and requests the recorded service selection handler calling unit 2405 to call the notify method of the recorded service selection handler. Depending on the return value, the processing branches in the following manner.

在返回值为PMT阵列的情况下,该处理过程进行到S3905,根据第二存储单元1307中所剩空间,已记录服务选择单元2404将包括在该PMT阵列中的所有音频/视频ES和分段记录在第二存储单元1307中。In the case that the return value is a PMT array, the process proceeds to S3905, and according to the remaining space in the second storage unit 1307, the recorded service selection unit 2404 will include all audio/video ESs and segments in the PMT array recorded in the second storage unit 1307.

在返回值为空的情况下,该处理过程进行到S3906,并且针对由所指定的频道标识符指定的服务的AIT的所有Java程序,检查service_bound_flag的值。在所有Java程序的service_bound_flag=1的情况下,该处理过程进行到S3907,并且仅将由该频道标识符(其又是由记录注册单元2403指定的)指定的服务的视频/音频ES和分段记录在第二存储单元1307中。In case the return value is null, the process proceeds to S3906, and the value of service_bound_flag is checked for all Java programs of the AIT of the service specified by the specified channel identifier. In the case of service_bound_flag=1 of all Java programs, the process proceeds to S3907, and only the video/audio ES and segment of the service specified by the channel identifier (which is again specified by the record registration unit 2403) are recorded In the second storage unit 1307 .

另一方面,在S3906中,在并不是所有Java程序的service_bound_flag均为1的情况下,该处理过程进行到S3908。这里,多服务记录允许处理程序调用单元2407被要求调用多服务记录允许处理程序的AllowMultiServiceRec方法。如果结果为假,则该处理过程进行到前述的S3907。另一方面,如果结果为真,则该处理过程进行到S3909,并且根据第二存储单元1307中所剩空间,将与要同时记录的服务相对应的所有PMT的视频/音频ES和分段记录在第二存储单元1307中。On the other hand, in S3906, in the case where the service_bound_flags of not all Java programs are 1, the process proceeds to S3908. Here, the multi-service record allow handler calling unit 2407 is required to call the AllowMultiServiceRec method of the multi-service record allow handler. If the result is false, the process proceeds to the aforementioned S3907. On the other hand, if the result is true, the process proceeds to S3909, and according to the remaining space in the second storage unit 1307, the video/audio ES and segment recording of all PMTs corresponding to the service to be simultaneously recorded In the second storage unit 1307 .

当上述每个分支之后的处理都结束时,该处理过程返回到S3903,并重复进行处理。When the processing after each of the above branches ends, the processing returns to S3903, and the processing is repeated.

根据本实施例,在第三实施例的效果的基础上,可以选择性地仅记录正常执行Java程序所必需的服务,这样使得可以正常执行该Java程序而不浪费存储单元中的空间。According to this embodiment, on the basis of the effects of the third embodiment, only the services necessary for the normal execution of the Java program can be selectively recorded, so that the Java program can be normally executed without wasting space in the storage unit.

上述的一些实施例简要说明了本发明的实施例,但是也可以考虑其它实施例而不偏离本发明的范围。另外,一种配置可以是,其中选择和组合了每个实施例的主要处理过程。可以用硬件替代上述说明书中用软件实现的部分,反之亦然。The above-described embodiments briefly illustrate embodiments of the invention, but other embodiments can also be considered without departing from the scope of the invention. Also, a configuration may be in which the main processing procedures of each embodiment are selected and combined. Parts implemented by software in the above description may be replaced by hardware, and vice versa.

在这些实施例的说明中,为每个Java程序都写有同时记录频道标识符,但是同时记录频道标识符也可以被写为AIT中的一个列表,以作为再现服务所必须的同时记录频道标识符的列表,其中去除了冗余内容。In the description of these embodiments, the simultaneous recording channel identifier is written for each Java program, but the simultaneous recording channel identifier may also be written as a list in the AIT as the simultaneous recording channel identification necessary for the reproduction service list of symbols, with redundant content removed.

多服务记录允许处理程序的方法Handler.allowMultiServiceRec()可以具有这样一种配置,其提供与已记录服务选择处理程序的方法Handler.notify(AIT ait,PMT pmt,PMT pmt[])的参数一样的参数,来作为参数;或者换句话说,是这样一种配置,其提供AIT、要记录的服务的PMT、要同时记录的服务的PMT等。在这种情况下,因为多服务记录允许处理程序可以获得有关安排要记录的服务的信息,所以可以进行更合适的依情况的判断。另外,这些方法参数并不限于AIT和PMT,而可以是任意的,只要可以获得关于要记录的服务以及要同时记录的服务的信息。The method Handler.allowMultiServiceRec() of the multi-service record allow handler may have a configuration that provides the same parameters as the method Handler.notify(AIT ait, PMT pmt, PMT pmt[]) of the recorded service selection handler parameter, as a parameter; or in other words, a configuration that provides the AIT, the PMT of the service to be recorded, the PMT of the service to be recorded at the same time, etc. In this case, more appropriate case-by-case decisions can be made because the multi-service record allows the handler to obtain information about the services scheduled to be recorded. In addition, these method parameters are not limited to AIT and PMT, but may be arbitrary as long as information on services to be recorded and services to be simultaneously recorded can be obtained.

在这些实施例中,示出了用于有线系统的构造,但是可以独立于广播系统的类型来应用本发明。例如,可以很容易将本发明应用于卫星系统、地面波系统或使用IP网络的电视节目分发系统。此外,因为本发明与各个广播系统之间的差异没有直接关系,因此本发明可以被应用于任意传输介质而与广播系统无关。不管系统是有线或无线系统,都可以应用本发明。In these embodiments, configurations for cable systems are shown, but the present invention can be applied independently of the type of broadcasting system. For example, the present invention can be easily applied to a satellite system, a terrestrial wave system, or a television program distribution system using an IP network. Furthermore, since the present invention is not directly related to differences between respective broadcasting systems, the present invention can be applied to any transmission medium regardless of broadcasting systems. The present invention can be applied regardless of whether the system is a wired or wireless system.

AV解码器不必同时对视频和音频进行解码。即使AV解码器被构造为分离的视频和音频解码器,也能够实施本发明。此外,AV解码器可以具有针对诸如隐藏式字幕(closed captioning)等的数据的解码功能而无需任何干预。由AV解码器解码的音频信号和视频信号可以在被存储到记录区1504中之前的任何阶段被加扰。An AV decoder does not have to decode video and audio at the same time. The present invention can be implemented even if the AV decoder is constructed as separate video and audio decoders. Also, the AV decoder can have a decoding function for data such as closed captioning without any intervention. The audio signal and video signal decoded by the AV decoder may be scrambled at any stage before being stored in the recording area 1504 .

在这些实施例中,给出了一个示例,其中引入了用来控制条件接入的适配器,但是该适配器对本发明的实现并不是必要的。该适配器可以是任何格式,没有该适配器的结构也是可以的。在这种情况下,在图15中,来自调谐器的MPEG-2传输流被直接输入到TS解码器中。本发明也可以应用于这种情况。此外,由适配器执行的条件接入的放行并不是必须要在TS解码器之前进行。很容易可以实施的一种配置是,适配器在任意位置并被用于对条件接入进行放行,并且本发明也可应用于这种情况。In these embodiments, an example is given in which an adapter for controlling conditional access is introduced, but this adapter is not essential to the implementation of the present invention. The adapter can be in any format, and structures without the adapter are also possible. In this case, in Fig. 15, the MPEG-2 transport stream from the tuner is directly input into the TS decoder. The present invention can also be applied to this case. Furthermore, the clearance of conditional access performed by the adapter does not have to be performed before the TS decoder. One configuration that can easily be implemented is that the adapter is in an arbitrary position and is used to allow conditional access, and the invention is applicable in this case as well.

AV编码器将音频和视频信号编码成的编码格式可以是任意格式。不管什么编码格式,都可应用本发明。The encoding format into which the AV encoder encodes audio and video signals may be any format. The present invention can be applied regardless of the encoding format.

复用器的复用格式也可以是任意格式。不管什么复用格式,都可应用本发明。The multiplexing format of the multiplexer may also be in any format. The present invention is applicable regardless of the multiplexing format.

显示器和扬声器可以被包含在广播记录和再现装置中,或者外部的显示器和扬声器可以被连接到广播记录和再现装置。不管显示器和扬声器的位置和数量如何,都可应用本发明。A display and a speaker may be included in the broadcast recording and reproducing apparatus, or an external display and speaker may be connected to the broadcast recording and reproducing apparatus. The present invention is applicable regardless of the positions and numbers of displays and speakers.

即使CPU本身是执行多处理的系统(所述处理是TS解码、AV解码、AV编码以及复用的全部或某些),也可以实施本发明。The present invention can be implemented even if the CPU itself is a system that performs multiprocessing, which is all or some of TS decoding, AV decoding, AV encoding, and multiplexing.

作为记录服务的格式,MPEG-2传输流也可以在从调谐器输出之后被直接记录到记录区中,而不经过TS解码器;或者,通过安装用来转换MPEG-2传输流的格式的转换器来转换来自调谐器的MPEG-2传输流的格式,并将其记录到记录区中。不管什么服务记录方法,都可以实施本发明。As a format for recording services, MPEG-2 transport stream can also be recorded directly into the recording area after output from the tuner without passing through a TS decoder; or, by installing a conversion for converting the format of the MPEG-2 transport stream converter to convert the format of the MPEG-2 transport stream from the tuner and record it in the recording area. The present invention can be implemented regardless of the service recording method.

某些Java虚拟机将字节码转换为可由CPU解释的可执行形式,并将得到的结果传给CPU,由该CPU来执行;本发明也可应用于这种情况。Some Java virtual machines convert the bytecode into an executable form that can be interpreted by the CPU, and pass the result to the CPU for execution by the CPU; the present invention can also be applied in this case.

上述实施例描述了一种关于AIT的实施方法,其中从带内获得传输流;然而,用于查询AM应执行的Java程序的方法并不仅仅依赖于该AIT。在假定正由美国有线系统使用的OCAP中,使用了XAIT,其与AIT是一样的并且以OOB发送同步数据。此外,可以考虑诸如开始执行预记录在ROM中的程序、开始执行下载并被记录在第二存储单元中的程序等的方法。The above embodiments describe an implementation method with respect to the AIT in which the transport stream is obtained in-band; however, the method for querying the Java program that the AM should execute does not depend solely on the AIT. In OCAP, which is supposed to be used by the American cable system, XAIT is used, which is the same as AIT and transmits synchronization data in OOB. Furthermore, methods such as starting execution of a program pre-recorded in the ROM, starting execution of a program downloaded and recorded in the second storage unit, etc. may be considered.

用于记录DSM-CC文件系统和AIT文件的方法可以是任意方法。The method for recording the DSM-CC file system and AIT file may be any method.

即使将从MPEG-2传输流过滤并获取AIT分段的方法和以唯一格式将DSM-CC分段记录进文件中的方法组合起来,也可以实现本发明。另外,即使将从MPEG-2传输流过滤并获取DSM-CC分段的方法和以唯一格式将AIT分段记录进文件中的方法组合起来,也可以实现本发明。The present invention can be realized even if the method of filtering and obtaining the AIT segment from the MPEG-2 transport stream is combined with the method of recording the DSM-CC segment into a file in a unique format. In addition, the present invention can be realized even if a method of filtering and acquiring DSM-CC segments from an MPEG-2 transport stream and a method of recording AIT segments in a file in a unique format are combined.

尽管上面只详述了本发明的某些示例性实施例,但是本领域的技术人员很容易理解,在没有本质上偏离本发明的新颖启示和优点的情况下,示例性实施例中可以有很多变型。因此,所有这样的变型都是要被包括在本发明的范围之内。Although only certain exemplary embodiments of the present invention have been described in detail above, it will be readily understood by those skilled in the art that many of the exemplary embodiments may be incorporated without materially departing from the novel teachings and advantages of the present invention. transform. Accordingly, all such modifications are intended to be included within the scope of this invention.

工业实用性Industrial Applicability

根据本发明的记录和再现装置以及记录和再现方法可以被用于消费者电子产业,作为用来记录和再现广播的装置。例如,本发明可应用于有线STB、数字电视等。此外,本发明也可应用于具有广播接收功能的设备,例如,移动电话设备等。The recording and reproducing apparatus and recording and reproducing method according to the present invention can be used in the consumer electronics industry as an apparatus for recording and reproducing broadcasting. For example, the present invention is applicable to cable STBs, digital televisions, and the like. Furthermore, the present invention is also applicable to devices having a broadcast receiving function, for example, mobile phone devices and the like.

Claims (20)

1.一种记录和再现装置,包括:1. A recording and reproducing apparatus comprising: 接收单元,用于接收多个服务,每个服务包括视频信息、音频信息、程序、同步信息以及服务要素识别信息,其中,所述同步信息用于将所述视频信息和所述音频信息与所述程序同步,所述服务要素识别信息用于识别所述视频信息、音频信息、程序和同步信息;A receiving unit, configured to receive multiple services, each of which includes video information, audio information, programs, synchronization information, and service element identification information, wherein the synchronization information is used to combine the video information and the audio information with the The program synchronization, the service element identification information is used to identify the video information, audio information, program and synchronization information; 记录单元,用于将所接收的多个服务中的指定的预定服务记录到记录介质中;a recording unit, configured to record a specified predetermined service among the received multiple services into a recording medium; 再现单元,用于再现在所接收的预定服务中或记录在所述记录介质中的预定服务中包括的视频信息和音频信息;以及a reproducing unit for reproducing video information and audio information included in the received predetermined service or the predetermined service recorded in the recording medium; and 程序执行单元,用于执行在所接收的预定服务中或记录在所述记录介质中的预定服务中包括的程序,a program execution unit for executing a program included in the received predetermined service or the predetermined service recorded in said recording medium, 其中,所述记录和再现装置:Wherein, the recording and reproducing device: 通过根据所述同步信息执行记录在所述记录介质中的预定服务中包括的程序,与在所述预定服务中包括的程序同步地再现在所述预定服务中包括的视频信息和音频信息;reproducing video information and audio information included in the predetermined service in synchronization with the program included in the predetermined service by executing the program included in the predetermined service recorded in the recording medium according to the synchronization information; 在所述记录单元记录所接收的多个服务中的所指定的预定服务的同时所述同步信息或所述服务要素识别信息发生更新的情况下,重新获取与所述预定服务相对应的服务要素识别信息;以及reacquiring a service element corresponding to the predetermined service in a case where the synchronization information or the service element identification information is updated while the recording unit is recording a specified predetermined service among the received plurality of services identifying information; and 基于所获取的服务要素识别信息分离所指定的预定服务,并使所述记录单元记录所分离的服务。The specified predetermined service is separated based on the acquired service element identification information, and the recording unit is caused to record the separated service. 2.根据权利要求1所述的记录和再现装置,2. The recording and reproducing apparatus according to claim 1, 其中,所述记录和再现装置:Wherein, the recording and reproducing device: 在所述记录单元进行记录的同时所述同步信息或所述服务要素识别信息发生更新的情况下,重新获取与所接收的多个服务中的所指定的预定服务相对应的服务要素识别信息;以及When the synchronization information or the service element identification information is updated while the recording unit is recording, reacquire the service element identification information corresponding to the specified predetermined service among the received multiple services; as well as 基于所获取的服务要素识别信息分离所指定的预定服务,并使所述记录单元记录在所分离的服务中包括的视频信息、音频信息、程序、同步信息以及服务要素识别信息。The specified predetermined service is separated based on the acquired service element identification information, and the recording unit is caused to record video information, audio information, program, synchronization information, and service element identification information included in the separated service. 3.根据权利要求1所述的记录和再现装置,3. The recording and reproducing apparatus according to claim 1, 其中,所述记录和再现装置:Wherein, the recording and reproducing device: 在所述记录单元进行记录的同时所述同步信息或所述服务要素识别信息发生更新的情况下,重新获取与所接收的多个服务中的所指定的预定服务相对应的服务要素识别信息;以及When the synchronization information or the service element identification information is updated while the recording unit is recording, reacquire the service element identification information corresponding to the specified predetermined service among the received multiple services; as well as 基于所获取的服务要素识别信息分离所指定的预定服务,并使所述记录单元记录与所分离的服务相对应的传输流。The specified predetermined service is separated based on the acquired service element identification information, and the recording unit is caused to record a transport stream corresponding to the separated service. 4.根据权利要求1所述的记录和再现装置,4. The recording and reproducing apparatus according to claim 1, 其中,包括在要记录的指定的第一服务中的程序也包括在第二服务中;wherein the program included in the specified first service to be recorded is also included in the second service; 所述同步信息包括继续执行信息,其指示当在再现期间将所述第一服务切换到所述第二服务并再现所述第二服务时是否可以继续执行包括在所述第一服务中的程序;以及The synchronization information includes continuation information indicating whether the program included in the first service can be continuously executed when the first service is switched to the second service during reproduction and the second service is reproduced. ;as well as 在与所述第一服务中包括的程序相对应的同步信息中包括的继续执行信息指示即使当切换到所述第二服务并再现所述第二服务时也可以继续执行所述程序的情况下,所述记录和再现装置基于所获取的服务要素识别信息,除了所指定的第一服务之外还将所述第二服务分离为预定服务,并使所述记录单元记录所分离的服务。In a case where the continuation information included in the synchronization information corresponding to the program included in the first service indicates that execution of the program can be continued even when switching to the second service and reproducing the second service , the recording and reproducing apparatus separates the second service into predetermined services in addition to the specified first service based on the acquired service element identification information, and causes the recording unit to record the separated services. 5.根据权利要求1所述的记录和再现装置,5. The recording and reproducing apparatus according to claim 1, 其中,只有在允许同时记录第一服务和第二服务的情况下,所述记录和再现装置基于所获取的服务要素识别信息,除了所指定的第一服务之外还将所述第二服务分离为预定服务,并使所述记录单元记录所分离的服务。Wherein, the recording and reproducing apparatus separates the second service in addition to the specified first service based on the acquired service element identification information only in a case where simultaneous recording of the first service and the second service is permitted. To subscribe to a service, and cause the recording unit to record the separated service. 6.一种记录和再现装置,包括:6. A recording and reproducing apparatus comprising: 接收单元,用于接收多个服务,每个服务包括视频信息、音频信息、程序、同步信息以及服务要素识别信息,其中,所述同步信息用于将所述视频信息和所述音频信息与所述程序同步,所述服务要素识别信息用于识别所述视频信息、音频信息、程序和同步信息;A receiving unit, configured to receive multiple services, each of which includes video information, audio information, programs, synchronization information, and service element identification information, wherein the synchronization information is used to combine the video information and the audio information with the The program synchronization, the service element identification information is used to identify the video information, audio information, program and synchronization information; 记录单元,用于将所接收的多个服务中的指定的第一服务记录到记录介质中;a recording unit, configured to record a specified first service among the received multiple services into a recording medium; 再现单元,用于再现在所接收的第一服务中或记录在所述记录介质中的第一服务中包括的视频信息和音频信息;以及a reproducing unit for reproducing video information and audio information included in the received first service or the first service recorded in the recording medium; and 程序执行单元,用于执行在所接收的第一服务中或记录在所述记录介质中的第一服务中包括的程序,a program execution unit for executing a program included in the received first service or the first service recorded in the recording medium, 其中,通过根据所述同步信息执行记录在所述记录介质中的第一服务中包括的程序,所述记录和再现装置与在所述第一服务中包括的程序同步地再现在所述第一服务中包括的视频信息和音频信息;Wherein, by executing the program included in the first service recorded in the recording medium based on the synchronization information, the recording and reproducing means reproduces the program included in the first service in synchronization with the program included in the first service. Video information and audio information included in the Services; 包括在指定要记录的所述第一服务中的程序也包括在第二服务中;a program included in said first service designated to be recorded is also included in a second service; 所述同步信息包括继续执行信息,其指示当在再现期间将所述第一服务切换到所述第二服务并再现所述第二服务时是否可以继续执行包括在所述第一服务中的程序;以及The synchronization information includes continuation information indicating whether the program included in the first service can be continuously executed when the first service is switched to the second service during reproduction and the second service is reproduced. ;as well as 在与所述第一服务中包括的程序相对应的同步信息中包括的继续执行信息指示即使当切换到所述第二服务并再现所述第二服务时也可以继续执行所述程序的情况下,所述记录和再现装置基于所获取的服务要素识别信息,除了所指定的第一服务之外还将所述第二服务分离为预定服务,并使所述记录单元记录所分离的服务。In a case where the continuation information included in the synchronization information corresponding to the program included in the first service indicates that execution of the program can be continued even when switching to the second service and reproducing the second service , the recording and reproducing apparatus separates the second service into predetermined services in addition to the specified first service based on the acquired service element identification information, and causes the recording unit to record the separated services. 7.根据权利要求6所述的记录和再现装置,7. The recording and reproducing apparatus according to claim 6, 其中,包括在指定要记录的所述第一服务中的程序也包括在第二服务中;Wherein, the program included in said first service designated to be recorded is also included in the second service; 所述同步信息包括继续执行信息,其指示当在再现期间将所述第一服务切换到所述第二服务并再现所述第二服务时是否可以继续执行包括在所述第一服务中的程序;以及The synchronization information includes continuation information indicating whether the program included in the first service can be continuously executed when the first service is switched to the second service during reproduction and the second service is reproduced. ;as well as 在与所述第一服务中包括的程序相对应的同步信息中包括的继续执行信息指示即使当切换到所述第二服务并再现所述第二服务时也可以继续执行所述程序的情况下,所述记录和再现装置基于所获取的服务要素识别信息,除了所指定的第一服务之外还将所述第二服务分离为预定服务,并使所述记录单元记录与所分离的服务相对应的传输流。In a case where the continuation information included in the synchronization information corresponding to the program included in the first service indicates that execution of the program can be continued even when switching to the second service and reproducing the second service , the recording and reproducing apparatus separates the second service into a predetermined service in addition to the specified first service based on the acquired service element identification information, and causes the recording unit to record the corresponding transport stream. 8.根据权利要求7所述的记录和再现装置,8. The recording and reproducing apparatus according to claim 7, 其中,只有在允许同时记录所述第一服务和所述第二服务的情况下,所述记录和再现装置基于所获取的服务要素识别信息,除了所指定的第一服务之外还将所述第二服务分离为预定服务,并使所述记录单元记录与所分离的服务相对应的传输流。Wherein, only in the case where the simultaneous recording of the first service and the second service is permitted, the recording and reproducing apparatus, based on the acquired service element identification information, adds the specified first service to the The second service is separated into predetermined services, and the recording unit is caused to record transport streams corresponding to the separated services. 9.根据权利要求1或6所述的记录和再现装置,9. The recording and reproducing apparatus according to claim 1 or 6, 其中,在将服务记录到所述记录介质中的情况下,所述记录单元将服务的文件格式转换为另一种格式,并与所述服务一起记录所述文件的有效期。Wherein, in the case of recording the service into the recording medium, the recording unit converts the file format of the service into another format, and records the validity period of the file together with the service. 10.根据权利要求1或6所述的记录和再现装置,10. The recording and reproducing apparatus according to claim 1 or 6, 其中,每次更新所述同步信息或所述服务要素识别信息时,所述记录单元重新开始记录所述服务。Wherein, the recording unit restarts recording the service every time the synchronization information or the service element identification information is updated. 11.一种记录和再现装置,包括:11. A recording and reproducing apparatus comprising: 接收单元,用于接收多个服务,每个服务包括视频信息、音频信息、程序、同步信息以及服务要素识别信息,其中,所述同步信息用于将所述视频信息和所述音频信息与所述程序同步,所述服务要素识别信息用于识别所述视频信息、音频信息、程序和同步信息;A receiving unit, configured to receive multiple services, each of which includes video information, audio information, programs, synchronization information, and service element identification information, wherein the synchronization information is used to combine the video information and the audio information with the The program synchronization, the service element identification information is used to identify the video information, audio information, program and synchronization information; 记录单元,用于将所接收的多个服务中的指定的预定服务记录到记录介质中;a recording unit, configured to record a specified predetermined service among the received multiple services into a recording medium; 再现单元,用于再现在所接收的预定服务中或记录在所述记录介质中的预定服务中包括的视频信息和音频信息;以及a reproducing unit for reproducing video information and audio information included in the received predetermined service or the predetermined service recorded in the recording medium; and 程序执行单元,用于执行在所接收的预定服务中或记录在所述记录介质中的预定服务中包括的程序,a program execution unit for executing a program included in the received predetermined service or the predetermined service recorded in said recording medium, 其中,所述记录和再现装置:Wherein, the recording and reproducing device: 通过根据所述同步信息执行记录在所述记录介质中的预定服务中包括的程序,与在所述预定服务中包括的程序同步地再现在所述预定服务中包括的视频信息和音频信息;reproducing video information and audio information included in the predetermined service in synchronization with the program included in the predetermined service by executing the program included in the predetermined service recorded in the recording medium according to the synchronization information; 在所述记录单元记录所述预定服务的同时所述同步信息或所述服务要素识别信息发生更新的情况下,重新获取与所接收的多个服务中的所指定的预定服务相对应的同步信息;以及In a case where the synchronization information or the service element identification information is updated while the recording unit is recording the predetermined service, reacquiring the synchronization information corresponding to the specified predetermined service among the received plurality of services ;as well as 基于所获取的同步信息分离所指定的预定服务,并使所述记录单元记录所分离的服务。The specified predetermined service is separated based on the acquired synchronization information, and the recording unit is caused to record the separated service. 12.根据权利要求11所述的记录和再现装置,12. The recording and reproducing apparatus according to claim 11, 其中,所述同步信息包括同时记录信息和继续执行信息,其中,所述同时记录信息指示在记录指定要记录的第一服务的情况下要同时记录的第二服务,所述继续执行信息指示当在再现期间将所述第一服务切换到所述第二服务并再现所述第二服务时是否可以继续执行包括在所述第一服务中的程序;以及Wherein, the synchronization information includes simultaneous recording information and continuation execution information, wherein the simultaneous recording information indicates the second service to be simultaneously recorded when recording the first service specified to be recorded, and the continuation information indicates when whether it is possible to continue executing the program included in the first service when switching the first service to the second service during reproduction and reproducing the second service; and 在与所述第一服务中包括的程序相对应的同步信息中包括的继续执行信息指示即使当切换到所述第二服务并再现所述第二服务时也可以继续执行所述程序的情况下,所述记录和再现装置基于在所获取的同步信息中包括的同时记录信息,除了所指定的第一服务之外还将所述第二服务分离为预定服务,并使所述记录单元记录所分离的服务。In a case where the continuation information included in the synchronization information corresponding to the program included in the first service indicates that execution of the program can be continued even when switching to the second service and reproducing the second service , the recording and reproducing apparatus separates the second service into predetermined services in addition to the specified first service based on simultaneous recording information included in the acquired synchronous information, and causes the recording unit to record the separate services. 13.根据权利要求12所述的记录和再现装置,13. The recording and reproducing apparatus according to claim 12, 其中,只有在允许同时记录所述第一服务和所述第二服务的情况下,所述记录和再现装置基于在所获取的同步信息中包括的同时记录信息,除了所指定的第一服务之外还将所述第二服务分离为预定服务,并使所述记录单元记录所分离的服务。Wherein, only in the case where the simultaneous recording of the first service and the second service is permitted, the recording and reproducing apparatus, based on the simultaneous recording information included in the acquired synchronous information, other than the specified first service In addition, the second service is separated into predetermined services, and the recording unit records the separated services. 14.根据权利要求11所述的记录和再现装置,14. The recording and reproducing apparatus according to claim 11, 其中,所述记录和再现装置基于在所获取的同步信息中包括的同时记录信息分离所指定的预定服务,并使所述记录单元记录在所分离的服务中包括的视频信息、音频信息、程序、同步信息以及服务要素识别信息。Wherein, the recording and reproducing means separates specified predetermined services based on simultaneous recording information included in the acquired synchronous information, and causes the recording unit to record video information, audio information, programs included in the separated services , synchronization information, and service element identification information. 15.根据权利要求11所述的记录和再现装置,15. The recording and reproducing apparatus according to claim 11, 其中,所述记录和再现装置基于所获取的同步信息分离所指定的预定服务,并使所述记录单元记录与所分离的服务相对应的传输流。Wherein, the recording and reproducing apparatus separates the specified predetermined service based on the acquired synchronization information, and causes the recording unit to record the transport stream corresponding to the separated service. 16.根据权利要求11所述的记录和再现装置,16. The recording and reproducing apparatus according to claim 11, 其中,在将服务记录到所述记录介质中的情况下,所述记录单元将服务的文件格式转换为另一种格式,并与所述服务一起记录所述文件的有效期。Wherein, in the case of recording the service into the recording medium, the recording unit converts the file format of the service into another format, and records the validity period of the file together with the service. 17.根据权利要求11所述的记录和再现装置,17. The recording and reproducing apparatus according to claim 11, 其中,每次更新所述同步信息或所述服务要素识别信息时,所述记录单元重新开始记录所述服务。Wherein, the recording unit restarts recording the service every time the synchronization information or the service element identification information is updated. 18.根据权利要求11所述的记录和再现装置,18. The recording and reproducing apparatus according to claim 11, 其中,所述同步信息包括继续执行信息,其指示当在再现期间将所述第一服务切换到所述第二服务并再现所述第二服务时是否可以继续执行包括在所述第一服务中的程序,以及Wherein, the synchronization information includes continuation information indicating whether it is possible to continue execution of the program included in the first service when the first service is switched to the second service during reproduction and the second service is reproduced. program, and 所述记录和再现装置:The recording and reproducing device: 在所述记录单元记录所接收的多个服务中的所指定的预定服务的同时所述同步信息或所述服务要素识别信息发生更新的情况下,重新获取与所述预定服务相对应的同步信息;以及reacquiring synchronization information corresponding to the predetermined service in a case where the synchronization information or the service element identification information is updated while the recording unit is recording a specified predetermined service among the received plurality of services ;as well as 基于在所获取的同步信息中包括的继续执行信息分离所指定的预定服务,并使所述记录单元记录所分离的服务。The specified predetermined service is separated based on the continuation information included in the acquired synchronization information, and the recording unit is caused to record the separated service. 19.根据权利要求12所述的记录和再现装置,19. The recording and reproducing apparatus according to claim 12, 其中,所述记录和再现装置基于在所获取的同步信息中包括的同时记录信息分离所指定的预定服务,并使所述记录单元记录在所分离的服务中包括的视频信息、音频信息、程序、同步信息以及服务要素识别信息。Wherein, the recording and reproducing means separates specified predetermined services based on simultaneous recording information included in the acquired synchronous information, and causes the recording unit to record video information, audio information, programs included in the separated services , synchronization information, and service element identification information. 20.根据权利要求11所述的记录和再现装置,20. The recording and reproducing apparatus according to claim 11, 其中,所述记录和再现装置基于所获取的同步信息分离所指定的预定服务,并使所述记录单元记录与所分离的服务相对应的传输流。Wherein, the recording and reproducing apparatus separates the specified predetermined service based on the acquired synchronization information, and causes the recording unit to record the transport stream corresponding to the separated service.
CNA2006800201343A 2005-06-06 2006-06-05 recording and reproducing device Pending CN101194508A (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US68762405P 2005-06-06 2005-06-06
US60/687,624 2005-06-06
US60/751,374 2005-12-19

Publications (1)

Publication Number Publication Date
CN101194508A true CN101194508A (en) 2008-06-04

Family

ID=39488324

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006800201343A Pending CN101194508A (en) 2005-06-06 2006-06-05 recording and reproducing device

Country Status (1)

Country Link
CN (1) CN101194508A (en)

Similar Documents

Publication Publication Date Title
CN101176341B (en) content reproduction device
US8745632B2 (en) Broadcast receiving terminal and program execution method for resource reservation
US7590331B2 (en) Broadcast recording apparatus
KR20080078836A (en) Recording device with residual capacity detection unit
KR20080015087A (en) Broadcast recording and reproducing apparatus and method
CN101208750B (en) Recording and reproduction apparatus and recording and reproduction method
CN101189866A (en) broadcast receiving terminal
CN101218817A (en) recording and reproducing device
WO2007072958A1 (en) Content management system
KR20080015096A (en) Record and playback device
WO2007072891A1 (en) Recording and reproduction apparatus
CN101194508A (en) recording and reproducing device
MX2007013880A (en) Recording and reproduction apparatus.
JP2006345505A (en) Broadcast accumulation terminal
MX2007014724A (en) Broadcast receiving terminal and program execution method.
MX2007013537A (en) Broadcast recording and reproduction apparatus and method thereof.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080604