WO2009092302A1 - 一种录制业务的实现方法和设备 - Google Patents

一种录制业务的实现方法和设备 Download PDF

Info

Publication number
WO2009092302A1
WO2009092302A1 PCT/CN2009/070042 CN2009070042W WO2009092302A1 WO 2009092302 A1 WO2009092302 A1 WO 2009092302A1 CN 2009070042 W CN2009070042 W CN 2009070042W WO 2009092302 A1 WO2009092302 A1 WO 2009092302A1
Authority
WO
WIPO (PCT)
Prior art keywords
recording
request message
media processor
media
request
Prior art date
Application number
PCT/CN2009/070042
Other languages
English (en)
French (fr)
Inventor
Cheng Chen
Jiangping Feng
Yi Zhang
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009092302A1 publication Critical patent/WO2009092302A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/16Analogue secrecy systems; Analogue subscription systems
    • H04N7/173Analogue secrecy systems; Analogue subscription systems with two-way working, e.g. subscriber sending a programme selection signal
    • H04N7/17309Transmission or handling of upstream communications
    • H04N7/17336Handling of requests in head-ends
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • H04N21/2747Remote storage of video programs received via the downstream path, e.g. from the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47214End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for content reservation or setting reminders; for requesting event notification, e.g. of sport results or stock market

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a method and an apparatus for implementing a recording service. Background technique
  • N-PVR Network Personal Video Recorder
  • the network records the media content that the user wants to record, and plays the media content according to the user's wishes.
  • the source of the media content to be recorded may be a broadcast program or an on-demand program.
  • This service can provide users with the following benefits:
  • Expansion memory of the terminal In the case where the storage space of the terminal is limited, the N-PVR can be temporarily stored and transferred or viewed at a convenient time.
  • the user can also request the network to cancel recording, stop recording, or restart recording.
  • the separation architecture refers to an architecture in which an MC (Media Controller) and an MP (Media Processor) are separated, and its schematic diagram is shown in FIG. 1A. among them, The MC completes the recording control indication function, and the MP performs the recording related operation according to the instruction of the MC, and can report the recording result.
  • the MC includes, but is not limited to, an MSC-Server (Mobile Switch Control-Server, Mobile Switching Center Server), a MRFC (Media Resource Function Controller), and an MCF (Media Control Function).
  • Processing devices include, but are not limited to, MGW (Media Gateway, Media Gateway), MRFP (Multimedia Resource Function Processor), and MDF (Media Delivery Function).
  • the control of the media resources is mainly based on the H.248 protocol.
  • the basic principle of the H.248 protocol is: abstracting various resources on the media processing device into terminals, and further dividing the terminals into physical terminals and Temporary terminal.
  • Physical terminals represent some physical entities with semi-permanent existence, such as TDM (Time Division Multiplex) time slots; temporary terminals represent common resources released after temporary application, such as RTP (Real-time Transport Protocol) streams.
  • RTP Real-time Transport Protocol
  • the basic package is defined in H.248.1, and H.248.X is the inheritance and extension of the base package.
  • a packet is a logically aggregated parameter with business dependencies. The terminals mentioned above typically implement a subset of these packets. Where the signal descriptor in the packet includes the requirements
  • the MP is applied to the signal set of the terminal.
  • the signal is identified by the package name and signal ID.
  • the event descriptor includes a set of events that the MP requires to detect and report. The event consists of the event name and some other optional parameters.
  • the statistical descriptor is used.
  • the MC sends a statistical request to the MP, and the MP responds with 4 related statistics.
  • a recording package is defined in H.248.9, which is designed for telephone recording. This package extends the basic package's signals and events to enable recording.
  • the basic recording process is shown in Figure 1B and includes the following steps:
  • Step sl01 MC instructs the MP to start recording by the recording package.
  • the signal descriptor carries the parameters related to the prompt tone, such as the prompt sound file.
  • the logo the playback speed of the tone, the playback volume of the tone, and so on.
  • timer parameters such as the pre-speech timer used to indicate the length of time before the user inputs the voice. The timer expires to indicate that the user does not input the voice; the post-speech timer is used to indicate how long the user does not speak to indicate the end of the input. A timeout indicates that the user has finished typing.
  • key-value parameters that indicate what to do when the user presses a particular key. For example, pressing the # key means to stop recording, and the * key means canceling the recording and deleting the recorded content.
  • Step sl02 the MP sends a response message to the MC.
  • Step sl03 the MP plays a prompt tone to the user, prompting the user to input the voice.
  • Step sl04 the user inputs the voice, and the MP starts recording.
  • Step sl05 the user presses some special keys to operate the recording, such as canceling the recording or stopping the recording.
  • Step sl06 If the recording is completed, the MP reports the recording completion event to the MC. If the recording is successful, you can also report the duration of the recording.
  • the user's control over the recording is directly interacted with the MP, but for the recording of the media stream played in real time, these controls are performed by the interaction between the MC and the MP.
  • the MC should be able to instruct the MP to cancel the recorded operation or restart the recording, but this is not possible in the prior art.
  • the media controller cannot actively obtain recorded statistics from the media processor.
  • Embodiments of the present invention provide a method and an apparatus for implementing a recording service, which are applied to a network personal recording N-PVR system based on a separate architecture, perfecting a recording service, and implementing direct interaction between a media controller and a media processor.
  • an embodiment of the present invention provides a method for implementing a recording service, which is applied to a network personal recording N-PVR system based on a separate architecture, and includes the following steps:
  • the media processor receives a carrying extension message sent by the media controller.
  • Request message includes a recording related control request message, an event detection request message, or a statistical request message;
  • the media processor performs corresponding processing according to the request message.
  • the embodiment of the present invention further provides a media controller, which is applied to a network personal recording N-PVR system based on a separate architecture, and includes:
  • a request message generating module configured to generate a request message carrying extended signaling sent to the media processor, where the request message includes a recording related control request message, an event detection request message, or a statistical request message;
  • a request message sending module configured to send the request message generated by the request message generating module to the media processor.
  • An embodiment of the present invention further provides a media processor, which is applied to a network personal recording N-PVR system based on a separate architecture, including:
  • the receiving module receives a request message that carries the extended signaling sent by the media controller, where the request message includes a recording related control request message, an event detection request message, or a statistical request message;
  • the processing module processes the request message that is received by the receiving module and carries the extended signaling.
  • Embodiments of the present invention have the following advantages over the prior art:
  • 1A is a schematic diagram of a separation architecture in the prior art
  • 1B is a flow chart of a recording process in the prior art
  • FIG. 2 is a flowchart of a method for implementing a recording service according to Embodiment 1 of the present invention
  • FIG. 3 is a basic flowchart of recording request and recording end in Embodiment 1 of the present invention
  • FIG. 4 is a flowchart of canceling recording in Embodiment 1 of the present invention
  • FIG. 5 is a flowchart of restarting recording in the first embodiment of the present invention
  • FIG. FIG. 6 is a flowchart of a pause and resume recording in the first embodiment of the present invention
  • FIG. 7 is a basic flowchart of a recording service using an H.248 message according to Embodiment 2 of the present invention
  • FIG. 8 is a flowchart of stopping recording by using an H.248 message according to Embodiment 2 of the present invention
  • FIG. 9 is a flowchart of canceling recording by using an H.248 message according to Embodiment 2 of the present invention
  • FIG. 10 is a second embodiment of the present invention using H.
  • the .248 message implements a flowchart for restarting recording
  • FIG. 11 is a flowchart of suspending and restoring a recording using an H.248 message according to Embodiment 2 of the present invention.
  • FIG. 12 is a schematic diagram of a system for implementing a recording service in a separate architecture according to Embodiment 3 of the present invention. detailed description
  • a method for implementing a recording service is provided, which is applied to a network personal recording N-PVR system based on a separate architecture. As shown in FIG. 2, the following steps are included:
  • Step s201 The media controller sends a request message carrying the extended signaling to the media processor.
  • the request message includes at least one of a recording related control request message, an event detection request message, and a statistical request message.
  • the control request message includes starting a recording request, canceling a recording request, restoring a recording request, restarting a recording request, and the like.
  • the event detection request message includes detecting a recording success event, or detecting a recording failure event.
  • Step s202 The media processor performs corresponding processing according to the request message.
  • Step s203 The media processor sends a response message to the media controller.
  • Step s301 The MC receives a request message for starting recording from the service control entity.
  • Step s302 The MC sends a recording request message to the MP, instructing to start recording.
  • the recording request message needs to carry the parameter: the identifier of the recorded content, which is used to indicate the physical storage location of the recorded content. This ID can be specified by the MC or by the MP. When assigned by the MP, the MP also needs to feed back the assigned identity to the MC.
  • Duration of the request recording Indicates the length of time required for recording in this recording request
  • Capacity of this request recording Indicates the capacity required for recording this recording request.
  • Recording file storage format Indicates the storage format of the file, such as 3gp format, wav format, etc.
  • Recording mode Indicates that the recording of the specified recording content can be saved by overwriting the previous recording or by adding it to the previous recording. Allow values to override overwrite and chase append.
  • the MC may also send an event detection request to the MP, requesting the MP to detect the recording completion event.
  • the event can be a recording success event or a recording failure event.
  • the MP detects the above events, it needs to report to the MC.
  • the recording is successfully completed, which can be the length of time required to record and/or the capacity requested to be recorded.
  • the reported events can simultaneously feed back the reasons for successful completion and some statistical information.
  • Step s303 The MP receives the start recording request message, starts recording the specified media content, and returns a response message to start recording to the MC.
  • Step s304 The MC sends a response message to start the recording request message to the service control entity. (2) When the control request message is the recording end message, the process of recording ends is as shown in the figure
  • the request to end the recording may come from the business control entity or from the MP.
  • Step s305' the MC receives the end recording request message sent by the service control entity.
  • Step s306' MC instructs the MP to end recording.
  • Step s307' the MP ends the recording, and returns a response message to the end of the recording to the MC.
  • the MC can also request the MP to report some statistics, such as the actual recording duration and/or the size of the actually recorded file, at the end of the recording.
  • Step s308' the MC returns a response message for ending the recording to the service control entity.
  • the flow is as described in steps s305, s306, and s307. specific:
  • Step s305 the recording ends, the recording may be successfully completed, or the recording abnormality may end.
  • the MP will send the recording result to the MC.
  • Steps s306 ⁇ s307, MC respond, and send a response message to the end of the recording to the service control entity.
  • Step s401 the MC receives a trigger to cancel the recording.
  • Step s402 The MC sends a request message for canceling the recording to the MP, requesting to cancel the current recording.
  • Step s403 The MP receives the cancel recording request, stops the recording immediately, deletes the already recorded content, and sends a response message for canceling the recording to the MC.
  • Step s404 After receiving the response information of the canceled recording sent by the MP, the MC sends a response message of canceling the recording to the service control entity. (4) When the control request message is to restart the recording request message, the process of restarting the recording is as shown in FIG. 5. Includes the following steps:
  • Step s501 the MC receives a trigger to resume recording.
  • Step s502 The MC sends a request message for restarting recording to the MP, requests to stop recording, deletes the already recorded content, and starts a new recording from the current time point.
  • Step s503 The MP receives the request to restart the recording, immediately stops the recording, deletes the already recorded content, starts recording from the current time point, and sends a response message to restart the recording to the MC.
  • Step s504 The MC receives the response message sent by the MP to restart recording, and then sends the response information to the service control entity.
  • control to restart recording can also be achieved by the following methods.
  • the specific description is:
  • the MC sends a request message to start recording to the MP, and restarts the recording by the carried recording mode parameter indication.
  • the parameter of the recording mode takes overwrite overwrite, and the new recording will be saved from the beginning of the current file, and the original saved recording will be overwritten.
  • the process is as shown in FIG. 6. Specifically, during the recording process, the MP is recording the specified media stream content, and the user or the service control entity may skip the recording by skipping the recording, and then resume recording. Includes the following steps:
  • Step s601 the MC receives a request message for suspending recording.
  • Step s602 The MC sends a request message for suspending recording, instructing the MP to pause the current recording.
  • Step s606 The MC sends a request message for restoring the recording, indicating that the MP is restored before the recording.
  • step s607 the MC resumes the original recording, and sends a recorded response message to the MC.
  • control to resume recording can also be achieved by the following methods.
  • the specific description is as follows:
  • the MC sends a request message for starting recording to the MP, and the recording is resumed by the carried recording mode parameter indication.
  • the parameter value of the recording mode is append, and the new recording content will be saved from the end of the current file and appended to the already recorded content.
  • an H.248 packet rec can be extended to implement the recording function.
  • the names of the extended packets in the embodiment, the names of the signals, the events, the statistical names, and the parameters in the packets are only examples, and other names may be used, and are not intended to limit the scope of the embodiments of the present invention. .
  • the extension of the signal included in the rec packet is as follows:
  • This signal is used to record media content, and the signal can carry some parameters:
  • Recording Content Identification Recording Identifier Used to indicate the physical storage location (location in internal memory) of the recorded content. If its value is "$", it means that the MP needs to be assigned the identifier.
  • Record mode mode Indicates the identifier used for the specified recording.
  • the recording can be saved by overwriting the previous recording or after the previous recording. This parameter is optional. Allow values to override overwrite and chase append.
  • the duration of this request recording rec duration (optional parameter): Indicates the current recording request, indicating the length of time for this request recording.
  • the capacity of this request recording rec storage (optional parameter): Indicates the capacity information related to the current recording request, indicating the recording of this request.
  • Recording format of the recording file format (optional parameter): Indicates the storage format of the file, such as 3gp format, wav format, etc.
  • This signal is used by the MC to instruct the MP to stop the ongoing recording operation and delete the recorded content. 3) Expand a restart recording signal restart
  • This signal is used by the MC to instruct the MP to stop the ongoing recording operation, delete the recorded content, and restart recording according to the re-recording request message.
  • the pause signal is used by the MC to instruct the MP to pause the current recording operation
  • the resume recording signal is used to convert the current recording status from pause to recording, starting from the current time point.
  • the MP will feedback the reason for the failure of the recording to the MC, and the reasons for the failure include MP storage space exhaustion, MP internal error, and the like.
  • the MP reports the event to the MC.
  • the event can carry some parameters, such as:
  • the recorded result (required parameter), including: 0: The time of recording of this request has been reached, the recording is successful; 1 : The capacity of this request recording has been reached, and the recording is successful.
  • the actual recorded file size size (optional parameter).
  • Step s701 The MC receives the request message for starting recording sent by the service control entity.
  • Steps s702 ⁇ s703 complete the creation of the endpoint: The MC uses the ADD command to create an endpoint, and the MP sends a response message.
  • Step s704 The MC sends a request message for starting recording to the MP.
  • the H.248 Modify command carries the extended recording request signal to complete the recording request.
  • the MC needs to send the identification to the MP as a parameter of the recording request signal. If the MC does not assign a content identifier, the MC needs to set the content identification parameter in the recording request signal to "$" to instruct the MP to allocate the content identifier.
  • the use case of the extension package rec is:
  • the MC instructs the MP to assign a content identifier, which may be fed back to the MC through the assignment completion event of the content identifier (the steps s708-s709), or may be fed back in the MP response message (at step s706)
  • the response message sent by the MP also carries the identification information of the recorded content, and step s708-s709 is not needed at this time.
  • the recorded file is saved in 3gp format and the recorded content is 30000K bytes.
  • the MC can also instruct the MP to detect a recording completion event.
  • the use case of the extension package rec is:
  • the MC can also detect the content identification assignment completion event at the same time.
  • the use case of the extension package rec is:
  • the recording request can also be sent in the ADD command, i.e., step s704 can be merged into step s702.
  • Step s705 If the MC instructs the MP to allocate the content identifier, the MP allocates the content identifier. The MP starts recording and the content is recorded to the file indicated by the content ID. in case The MC indicates the file storage type in the recording request, and the MP will store in this type, otherwise it will be stored in the MP configuration type.
  • Step s706 The MP sends a response message to the recording request to the MC.
  • Step s707 The MC sends a response message to start the recording request to the service control entity. Steps s708 ⁇ s709. If the MC instructs the MP to allocate the content identifier, the MP sends the content identifier to the MC through the NOTIFY command, and the MC sends a response message. At this time, in step s707, the response message of the MC back to the recording request of the service control entity may be after steps s708 to s709. If the MC has already assigned a content ID, these two steps are not required.
  • Step s710 If the MC requests the MP to detect the recording completion event, when the recording is completed (including the successful completion and the abnormal end), the MP reports the recording completion event to the MC through the NOTIFY command. If it is a recording failure event, the MP will report the error code to indicate the reason for the failure; if it is a recording success event, the MP will report the reason for the successful completion of the recording and the actual recording duration and/or the actual recorded content size.
  • result is 1 , indicating that the recording was successful and the recorded content has reached the threshold specified by the MC.
  • the recorded file size is 30000K bytes and the recording time is 3600 seconds.
  • Step s711 The MC sends a response message to the MP for the event reporting request.
  • Step s712 The MC sends a request for ending the recording to the service control entity.
  • Step s713 The service control entity sends a response message to the end of the recording to the MC.
  • the recording is stopped as an example to illustrate the use in the embodiment of the present invention.
  • the method for implementing the recorded service by the extended H.248 protocol, as shown in FIG. 8, specifically includes the following steps:
  • Step s801 The MC receives a request message for stopping recording from the service control entity.
  • Step s802 MC instructs the MP to stop recording. This can be done with the MODIFY request command carrying an empty signal descriptor.
  • Step s803 MP stops the recording operation.
  • Step s804 The MP sends a response message to the MC to stop recording. This is done with the MODIFY response command.
  • Step s805 the MC requests the MP to delete the recording terminal through the SUBTRACT request command.
  • the MC can also carry the AUDIT descriptor to request the MP to report statistics.
  • Step s806 After deleting the recording terminal, the MP sends a delete recording terminal response message to the MC by using the SUBSTRCT response command.
  • the MP can also carry statistical information in the response message. Such as the actual recording duration and / or the actual recorded content size.
  • Step s807 The MC sends a stop recording response message to the service control entity.
  • steps s802 and s804 may be omitted in the above process, and the terminal is deleted directly by using steps s805 and s806.
  • the method for canceling the recording is used as an example to describe the method for implementing the recording service by using the extended H.248 protocol in the embodiment of the present invention. As shown in FIG. 9, the following steps are specifically included:
  • Step s901 The MC receives the request message for canceling the recording delivered by the service control entity.
  • Step s902 The MC sends a request message for canceling the recording, and the modified command of H.248 carries the extended cancel recording signal, instructing the MP to cancel the current recording.
  • step s903 the MP stops recording and deletes the recorded content.
  • step s904 the MP sends a response message for canceling the recording to the MC.
  • Step s905 The MC sends a response message for canceling the recording to the service control entity.
  • Step s906 ⁇ s907 The process of deleting the end point between MC and MP is completed by the SUBTRACT command.
  • the method for restarting recording is used as an example to describe the method for implementing the recording service by using the extended H.248 protocol in the embodiment of the present invention. As shown in FIG. 10, the method includes the following steps:
  • Step sl001 The MC receives the request message for restarting recording delivered by the service control entity.
  • Step sl002 the MC sends a request message to restart recording, through the H.248
  • the Modify command instructs the MP to stop the current recording and resume recording.
  • Step sl003 MP stops recording, and deletes the recorded content, and restarts recording according to the request to restart the recording request.
  • Step sl004 the MP sends a response message to restart the recording to the MC.
  • Step sl005 The MC sends a response message to restart the recording to the service control entity.
  • the control for restarting the recording can also be implemented by the following method, which is specifically described as follows: Step 1011: The MC receives the request message for restarting recording delivered by the service control entity.
  • Step 1012 The MC sends a request message for restarting recording to the MP.
  • the Modify command carries the extended recording request signal and the recording mode parameter of the signal, instructing the MP to restart recording.
  • the value of the recording mode parameter is overwrite.
  • Step 1013 The MP receives a request to restart recording, stops the ongoing recording, and starts a new recording from the current time point.
  • the new recording will be covered by coverage Saved, the recorded content will be overwritten by the new recording.
  • the MP sends a response message to the MC.
  • Step 1014 The MC sends a response message to restart the recording to the service control entity.
  • the method of using the extended H.248 protocol to implement the recording service in the embodiment of the present invention as shown in FIG.
  • the MP is recording the specified media stream content.
  • Step sll01 the MC receives the request message for suspending recording.
  • the sll02 and the MC send a request message for suspending recording, and the H.248 Modify command carries an extended pause recording signal, instructing the MP to pause the current recording.
  • Step sll03 MP pause recording.
  • Step sll04 the MP sends a response message to pause the recording to the MC.
  • Step sll05 the MC sends a response message for suspending recording to the service control entity.
  • Step si 106 The MC receives a request to resume recording.
  • Step sll07 the MC sends a request message for restoring the recording, and the H.248 Modify command carries the extended recovery recording signal, indicating that the MP is restored to the recording state.
  • the use case of the expansion package rec implementation recovery recording is:
  • Step sll08 MC resumes the original recording.
  • Step sll09 the MP sends a response message for restoring the recording to the MC.
  • Step sl10 the MC sends a response message for restoring the recording to the service control entity.
  • the control of the recovery recording can also be implemented by the following method, which is specifically described as follows: Step 1111: The MC receives the request message for restoring recording delivered by the service control entity. Step 1112: The MC sends a request message for restoring the recording to the MP.
  • the Modify command carries the extended recording request signal and the recording mode parameter of the signal, instructing the MP to resume recording.
  • the value of the recording mode parameter is append.
  • An embodiment of the expansion package rec implementation recovery recording is:
  • Step 1113 The MP receives a request to resume recording, starting recording from the current time point.
  • the recording will be saved in the way of the original recording at the end of the original recording.
  • the MP sends a response message to the MC.
  • Step 1114 The MC sends a response message for restoring the recording to the service control entity.
  • Embodiment 3 of the present invention further provides a system and device for implementing a recording service under a separate architecture. As shown in FIG. 12, the media controller 10 and the media processor 20 are included.
  • the media controller 10 generates a request message sent to the media processor 20 and sends it to the media processor 20, where the request message carries an extended command.
  • the media processor 20 receives the request message sent by the media controller 10, processes the extended command in the request message, and sends a response message to the media controller 10.
  • the media controller 10 further includes:
  • the request message generating module 11 is configured to generate a request message sent to the media processor 20, where the request message carries an extended command.
  • the request message sending module 12 is configured to send the request message generated by the request message generating module 11 to the media processor 20.
  • the message setting module 13 is configured to set a request message generated by the request message generating module 11, where the request message includes at least one of a recording related control request message, an event detection request message, and a statistical request message;
  • the control request message includes at least one of a recording request, a cancel recording, a pause recording, a resume recording, and a resume recording;
  • the event detection request message includes detecting a recording success event and/or detecting a recording failure event.
  • the media processor 20 further includes:
  • the receiving module 21 receives a request message sent by the media controller 10, where the request message carries an extended command.
  • the processing module 22 processes the extended command in the request message received by the receiving module 21.
  • the sending module 23 is configured to send a response message to the media controller 10 according to the processing result of the processing module 22.
  • the event notification generating module 24 is configured to generate an event notification that needs to be sent to the media controller 10 and send it to the sending module 23;
  • the statistical result generating module 25 is configured to generate a statistical result that needs to be sent to the media controller 10 and send the result to the sending module 23.
  • the foregoing system and device provided by the embodiments of the present invention improve the implementation process of the recording service under the separate architecture by extending the control message, and satisfy different control requirements.
  • the present invention can be implemented by hardware, or can be implemented by means of software plus necessary general hardware platform, and the technical solution of the present invention. It can be embodied in the form of a software product that can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for making a computer device (may It is a personal computer, a server, or a network device, etc.) that performs the methods described in various embodiments of the present invention.
  • a non-volatile storage medium which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.
  • a computer device may It is a personal computer, a server, or a network device, etc.

Description

一种录制业务的实现方法和设备 本申请要求于 2008 年 1 月 10 日提交中国专利局, 申请号为 200810000980.X, 发明名称为 "一种录制业务的实现方法和设备" 的 中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明实施例涉及通信技术领域,尤其涉及一种录制业务的实现 方法和设备。 背景技术
N-PVR ( Network Personal Video Recorder, 网络侧个人录制 )指 在网络侧为用户分配一定的存储空间,由网络来记录用户要录制的媒 体内容, 并根据用户意愿播放这些媒体内容。 其中, 要录制的媒体内 容的来源, 可以是广播节目, 也可以是点播节目等。
该业务对于用户来说, 可以为用户带来以下好处:
( 1 )用户终端的脱机存储器: 在利用 N-PVR功能录制网络侧提 供的内容时, 终端不需要参与录制, 录制时用户甚至可以处于关机状 态。 由于不受终端带宽限制, N-PVR也可有利于用户并发录制多个 内容。
( 2 )终端的扩展存储器: 在终端的存储空间有限的情况下, 可 利用 N-PVR临时存放, 在方便的时候转移或观看。
( 3 ) 个人共享存储器: 利用个人共享空间, 可方便用户利用不 同终端(家里的、 办公室的, 甚至是他人的终端)观看个人收藏的内 容。 数据只需保存一份, 而不必到处复制内容。
在录制过程中, 用户还可以请求网络进行取消录制、停止录制或 者重新开始录制等操作。
分离架构是指 MC ( Media Controller,媒体控制器)和 MP ( Media Processor, 媒体处理器)分离的架构, 其示意图如图 1A所示。 其中, MC完成录制控制指示功能, MP按照 MC的指示进行录制相关操作, 并可进行录制结果的上报。 具体的, MC 包括但不限于 MSC-Server ( Mobile Switch Control -Server , 移动交换中心服务器)、 MRFC ( Media Resource Function Controller, 媒体资源控制功能)和 MCF ( Media Control Function, 媒体控制功能)等, 媒体处理设备包括但 不限于 MGW ( Media Gateway , 媒体网关)、 MRFP ( Multimedia Resource Function Processor, 媒体资源处理功能)和 MDF ( Media Delivery Function, 媒体传输功能)等。
现有技术中, 对媒体资源进行控制主要为基于 H.248 协议的控 制, H.248协议的基本原理是: 将媒体处理设备上的各种资源抽象为 终端, 终端又进一步分为物理终端和临时终端。 物理终端代表一些具 有半永久存在性的物理实体, 如 TDM ( Time Division Multiplex ) 时 隙;临时终端代表临时申请使用后释放的公共资源,如 RTP( Real-time Transport Protocol, 实时传输协议) 流。 终端之间的组合被抽象为上 下文, 用拓朴来描述终端之间的关系。 基于这些抽象, 呼叫接续实际 上是对终端和上下文的操作 ,通过媒体控制设备和媒体处理设备之间 的命令请求和响应来完成。
H.248.1中定义了基本包, H.248.X是对基包的继承和扩展。 包是 指具有业务相关性的参数逻辑上进行聚合形成的,以上提到的终端通 常实现了这些包的一个子集。 其中, 包中的信号描述符包括了要求
MP应用于终端的信号集, 信号由包名和信号 ID进行标识; 事件描 述符则包括了 MP要求检测和报告的一组事件,该事件由事件名和其 他一些可选参数组成;统计描述符则用于描述一个特定上下文中的终 端状态和使用信息, 通常 MC向 MP下发统计请求, MP响应上 4艮相 关统计信息。 H.248.9 中定义了录音包, 该包是为了电话录音而设计 的。 该包扩展了基本包的信号和事件, 实现了录音的功能。
基本的录制过程如图 1B所示, 包括以下步骤:
步骤 sl01、 MC通过录音包指示 MP开始录音。
其中的信号描述符中携带了提示音相关的参数,如提示音文件的 标识、 提示音的播放速度、 提示音的播放音量等。 还有一些定时器参 数, 如语音前定时器用来表示用户输入语音前的时长, 该定时器超时 表示用户没有输入语音;语音后定时器用来表示用户多长时间不讲话 表示结束输入,该定时器超时表示用户结束输入。还有一些键值参数, 用来表示用户按下某些特殊的键时要执行的操作。 比如按下#键表示 停止录制, *键表示取消录制并删除已录制的内容。
步骤 sl02、 MP向 MC发送应答消息。
步骤 sl03、 MP向用户播放提示音, 提示用户输入语音。
步骤 sl04、 用户输入语音, MP开始录制。
步骤 sl05、用户按下某些特殊的键对录制进行操作,如取消录制 或停止录制等。
步骤 sl06、 如果录制完成, MP向 MC上报录制完成事件。 如果 录制成功的话, 还可以上报录制的时长。
发明人在实现本发明的过程中,发现上述现有技术中媒体业务录 制的实现至少存在以下缺点:
现有技术中用户对录制的控制是和 MP直接交互的,但对于实时 播放的媒体流的录制, 这些控制是由 MC和 MP交互完成的。 MC应 能指示 MP取消已录制的操作或者重新开始录制,但在现有技术中无 法实现。 并且, 媒体控制器无法主动从媒体处理器处获取录制的统计 信息。
发明内容
本发明的实施例提供一种录制业务的实现方法和设备,应用于基 于分离架构的网络个人录制 N-PVR系统中, 完善录制业务, 实现媒 体控制器与媒体处理器间的直接交互。
为达上述目的, 本发明的实施例提供一种录制业务的实现方法, 应用于基于分离架构的网络个人录制 N-PVR系统中,包括以下步骤: 媒体处理器接收媒体控制器发送的携带扩展信令的请求消息,所 述请求消息包括录制相关的控制请求消息、事件检测请求消息或统计 请求消息;
所述媒体处理器根据所述请求消息进行相应的处理。
本发明的实施例还提供一种媒体控制器,应用于基于分离架构的 网络个人录制 N-PVR系统中, 包括:
请求消息生成模块,用于生成向媒体处理器发送的携带扩展信令 的请求消息, 所述请求消息包括录制相关的控制请求消息、 事件检测 请求消息或统计请求消息;
请求消息发送模块,用于将所述请求消息生成模块生成的请求消 息向所述媒体处理器发送。
本发明的实施例还提供一种媒体处理器,应用于基于分离架构的 网络个人录制 N-PVR系统中, 包括:
接收模块, 接收媒体控制器发送的携带扩展信令的请求消息, 所 述请求消息包括录制相关的控制请求消息、事件检测请求消息或统计 请求消息;
处理模块, 处理所述接收模块接收的携带扩展信令的请求消息。 与现有技术相比, 本发明的实施例具有以下优点:
通过扩展媒体控制器与媒体处理器间的控制消息,实现了媒体控 制器与媒体处理器间控制请求、 事件检测请求或统计请求的直接交 互, 实现了分离架构下录制业务的不同控制流程, 满足了不同的控制 需要。 附图说明
图 1 A是现有技术中的分离架构示意图;
图 1B是现有技术中录制过程的流程图;
图 2是本发明实施例一中录制业务的实现方法的流程图; 图 3是本发明实施例一中录制请求和录制结束的基本流程图; 图 4是本发明实施例一中取消录制的流程图;
图 5是本发明实施例一中重新开始录制流程图; 图 6是本发明实施例一中暂停及恢复录制流程图; 图 7是本发明实施例二使用 H.248消息实现录制业务的基本流程 图;
图 8是本发明实施例二使用 H.248消息实现停止录制的流程图; 图 9是本发明实施例二使用 H.248消息实现取消录制的流程图; 图 10是本发明实施例二使用 H.248消息实现重新开始录制的流 程图;
图 11是本发明实施例二使用 H.248消息实现暂停及恢复录制流 程图;
图 12是本发明实施例三中实现分离架构下的录制业务的系统示 意图。 具体实施方式
本发明的实施例一中, 提供了一种录制业务的实现方法, 应用于 基于分离架构的网络个人录制 N-PVR系统中, 如图 2所示, 包括以 下步骤:
步骤 s201、媒体控制器向媒体处理器发送携带扩展信令的请求消 息。
该请求消息包括录制相关的控制请求消息、 事件检测请求消息、 统计请求消息中的至少一种。其中,控制请求消息包括开始录制请求、 取消录制请求、 恢复录制请求、 重新开始录制请求等。 事件检测请求 消息包括检测录制成功事件、 或检测录制失败事件。
步骤 s202、 媒体处理器根据该请求消息进行相应的处理。
步骤 s203、 媒体处理器向媒体控制器发送应答消息。
以下对本发明的实施例中请求消息为控制请求消息时不同的具 体处理流程分别进行描述。
(一)当控制请求消息为开始录制请求消息时, 开始录制和录制 结束的流程如图 3所示。 其中, 步骤 s301~s304描述了开始录制请求 消息成功下发并响应的过程:
步骤 s301、 MC从业务控制实体收到开始录制的请求消息。 步骤 s302、 MC发送录制请求消息给 MP, 指示开始录制。
录制请求消息中需要携带参数为: 录制内容的标识, 用来指示被 录制内容的物理存放位置。 该标识可以由 MC指定, 也可以由 MP进 行分配。 当由 MP分配时, MP还需要反馈已经分配的标识给 MC。
同时还可以携带以下参数中的至少一种:
1 )本次请求录制的时长: 表示本次录制请求要求录制的时间长 短;
2 )本次请求录制的容量: 表示本次录制请求要求录制的容量大 小。
3 ) 录制文件的存贮格式: 表示文件的存储格式, 如 3gp格式、 wav格式等。
4 ) 录制模式: 表示对于指定的录制内容的标识, 录制内容的保 存方式可以是覆盖之前的录制内容,也可以是追加在之前的录制内容 的后面。 允许取值为覆盖 overwrite和追力口 append。
由于网络的存储空间可以用时长或容量来表示,所以在请求开始 录制时可以指定时长和 /或容量。
另外, 在开始录制请求消息中, MC还可以向 MP发送事件检 测请求, 请求 MP检测录制完成事件。 该事件可以是录制成功事件, 可以是录制失败事件。 当 MP检测到以上事件时, 需要上报给 MC。 录制成功完成, 可以是达到请求录制的时长和 /或请求录制的容量。 上报的事件中可以同时反馈成功完成的原因和一些统计信息。录制失 败, 可以是媒体处理器存储空间耗尽和 /或媒体处理器内部错误; 上 报的事件中包含录制失败的原因。
步骤 s303、 MP收到开始录制请求消息, 开始录制指定的媒体内 容; 并返回开始录制的响应消息给 MC。
步骤 s304、 MC发送开始录制请求消息的响应消息给业务控制实 体。 (二)当控制请求消息为录制结束消息时, 录制结束的过程如图
3所示, 录制结束的请求可能来自业务控制实体, 也可能来自 MP。
录制结束的请求由业务控制实体发送的时候,录制结束的流程如 图 3中虚线以下描述的步骤 s305' ~ s308'。 具体的:
步骤 s305'、 MC收到业务控制实体发送的结束录制请求消息。 步骤 s306'、 MC指示 MP结束录制。
步骤 s307'、 MP结束录制, 并向 MC返回结束录制的响应消息。 MC也可以在录制结束的时候, 要求 MP上报一些统计信息, 如实际 录制的时长和 /或实际录制的文件的大小等。
步骤 s308'、 MC向业务控制实体返回结束录制的响应消息。 录制结束的请求由 MP发送的时候, 该流程如图中步骤 s305、 s306、 s307的描述。 具体的:
步骤 s305、 录制结束, 可以是录制成功结束, 也可以是录制异常 结束。 MP将发送录制结果给 MC。
步骤 s306 ~ s307、 MC响应, 并发送录制结束的响应消息给业务 控制实体。
(三)当控制请求消息为取消录制请求消息时, 取消录制的过程 如图 4所示。 包括以下步骤:
步骤 s401、 MC接收到取消录制的触发。
步骤 s402、 MC发送取消录制的请求消息给 MP, 请求取消当前 的录制。
步骤 s403、 MP收到取消录制请求, 立即停止录制, 删除已经录 制的内容, 并发送取消录制的响应消息给 MC。
步骤 s404、 MC收到 MP发送的取消录制的响应信息后, 向业务 控制实体发送取消录制的响应消息。 (四)当控制请求消息为重新开始录制请求消息时, 重新开始录 制的流程如图 5所示。 包括以下步骤:
步骤 s501、 MC接收到重新开始录制的触发。
步骤 s502、 MC发送重新开始录制的请求消息给 MP, 请求停止 录制, 删除已经录制的内容, 并从当前时间点开始新的录制。
步骤 s503、 MP收到重新开始录制的请求, 立即停止录制, 删除 已经录制的内容, 从当前时间点开始录制, 并发送重新开始录制的响 应消息给 MC。
步骤 s504、 MC收到 MP发送的重新开始录制的响应消息, 然后 将该响应信息再发送给业务控制实体。
另外, 重新开始录制的控制还可以通过以下方法实现。 具体描述 为:
MC发送开始录制的请求消息给 MP, 通过携带的录制模式参数 指示重新开始录制。 其中, 录制模式的参数取值为覆盖 overwrite , 新 录制内容将从当前文件的起始处开始保存,原来保存的录制内容将被 覆盖。
(五)当控制请求消息为暂停录制及恢复录制时, 过程如图 6所 示。 具体的, 在录制过程中, MP正在录制指定的媒体流内容, 此时 用户或业务控制实体可能通过暂停录制跳过广告节目等,然后恢复录 制。 包括以下步骤:
步骤 s601、 MC收到暂停录制的请求消息。
步骤 s602、 MC下发暂停录制的请求消息, 指示 MP暂停当前的 录制。
步骤 s603、 MP暂停录制, 发送暂停录制的响应消息给 MC。 步骤 s604、 MC发送暂停录制的响应消息给业务控制实体。 步骤 s605、 MC收到恢复录制的请求。
步骤 s606、 MC下发恢复录制的请求消息, 指示 MP恢复之前的 录制。
步骤 s607、 MC恢复原来的录制, 发送录制的响应消息给 MC。 步骤 s608、 MC发送恢复录制的响应消息给业务控制实体。
另外, 恢复录制的控制还可以通过以下方法实现。 具体描述为: MC发送开始录制的请求消息给 MP, 通过携带的录制模式参数 指示恢复录制。 其中, 录制模式的参数取值为追加 append, 新录制内 容将从当前文件的末尾开始保存, 追加在已经录制的内容后面。
本发明的实施例二中,对上述实施例一描述的各流程的实现方法 进行详细说明。
具体的, 可以扩展一个 H.248包 rec以实现录制功能。 需要说明 的是, 本实施例中各扩展的包的名字以及包中的信号、 事件、 统计的 名字及参数的名字都只是一个示例, 也可取其他名字, 并不用于限定 本发明实施例的范围。
该 rec包中包括的对信号的扩展如下:
1 )扩展一个录制请求信号 record
该信号用于录制媒体内容, 信号中可以携带一些参数:
录制内容的标识 Recording Identifier (必选参数 ): 用来指示被录 制内容的物理存放位置(在内部存储器中的位置)。 如果它的取值为 "$", 则表示需要 MP分配该标识。
录制模式 mode (可选参数): 表示用于指定的录制内容的标识, 录制内容的保存方式可以是覆盖之前的录制内容,也可以是追加在之 前的录制内容的后面, 该参数可选。 允许取值为覆盖 overwrite和追 力口 append。 本次请求录制的时长 rec duration (可选参数 ): 表示与当 前录制请求有关, 指出了本次请求录制的时间长短。
本次请求录制的容量 rec storage (可选参数 ): 表示与当前录制请 求有关, 指示了本次请求录制的容量信息。
录制文件的存贮格式 format (可选参数 ): 表示文件的存贮格式, 如 3gp格式、 wav格式等。
2 )扩展一个取消录制信号 cancel
该信号用于 MC指示 MP停止正在进行的录制操作,并删除已录 制的内容。 3 )扩展一个重新开始录制信号 restart
该信号用于 MC指示 MP停止正在进行的录制操作,并删除已录 制的内容, 根据重新录制请求消息的指示, 重新开始录制。
4 )扩展一个暂停信号 pause和恢复录制信号 restore
暂停信号用于 MC指示 MP暂停当前的录制操作;
恢复录制信号用于将当前的录制状态由暂停转换为录制,从当前 时间点开始录制。
另外, 该 rec包中包括的对事件 ( event ) 的扩展如下:
1 )扩展一个录制失败事件 fail
通过该事件的上报, MP将反馈录制失败的原因给 MC, 失败的 原因包括 MP存储空间耗尽、 MP内部错误等。
2 )扩展一个录制成功事件 success
当录制成功完成时, MP向 MC报告该事件。 该事件可以携带一 些参数, 如:
录制的结果(必选参数), 包括: 0: 已经达到本次请求录制的时 长, 录制成功; 1 : 已经达到本次请求录制的容量, 录制成功。
实际录制的时长 duration (可选参数);
实际录制的文件大小 size (可选参数)。
3 )扩展一个内容标识分配完成事件 iddetect。 如果 MC指示 MP 分配内容标识, MP可以通过上报内容标识分配完成事件, 反馈分配 的录制内容的标识。 另夕卜, 该 rec包中包括的对统计 ( statistic ) 的扩展
1 ) 实际录制的时长
用于统计本次录制请求所录制内容的时长。
2 ) 实际录制内容的大小
用于统计本次录制请求所录制内容的大小。
如图 7所示,使用扩展的 H.248实现开始录制和录制完成的控制 如下描述。 具体包括以下步骤: 步骤 s701、 MC收到业务控制实体发送的开始录制的请求消息。 步骤 s702~s703、完成端点的创建: MC使用 ADD命令创建端点, MP回送应答消息。
步骤 s704、 MC发送开始录制的请求消息给 MP。
通过 H.248的 Modify命令携带扩展的录制请求信号, 完成录制 请求的指示。 在该步骤中, 如果 MC已经分配了内容标识, 则 MC需 要将该标识作为录制请求信号的参数发送给 MP。 如果 MC没有分配 内容标识,则 MC需要将录制请求信号中的内容标识参数设置为 "$" , 以指示 MP分配该内容标识。
扩展包 rec的使用实例为:
Signals { rec/record { Recordingldentifier = "$",
Format = "3gp",
Recstorage = 30000 在该例子中, MC指示 MP分配内容标识, 该标识可以通过内容 标识的分配完成事件反馈给 MC (所述步骤 s708-s709 ), 或可以在 MP的响应消息中反馈(在步骤 s706, MP发送的响应消息中还要携 带录制内容的标识信息, 此时不需要步骤 s708-s709 )。 录制的文件保 存格式为 3gp, 录制内容的大小为 30000K字节。
MC还可以指示 MP检测录制完成事件。
扩展包 rec的使用实例为:
Events^ 1234 { rec/fail, rec/success }
MC还可以同时检测内容标识分配完成事件。
扩展包 rec的使用实例为:
Events^ 1235 { rec/iddetect }
另外, 录制请求也可以在 ADD命令中发送, 即步骤 s704可以合 并到步骤 s702中。
步骤 s705、如果 MC指示 MP分配内容标识, 则 MP分配内容标 识。 MP 开始录制, 将内容录制到内容标识所表示的文件中。 如果 MC在录制请求中指示了文件存贮类型,则 MP将以该类型进行存贮, 否则以 MP配置的类型进行存贮。
步骤 s706、 MP向 MC发送录制请求的响应消息。
步骤 s707、 MC发送开始录制请求的响应消息给业务控制实体。 步骤 s708 ~ s709、 如果 MC指示 MP分配内容标识, 则 MP将内 容标识通过 NOTIFY命令发送给 MC , MC回送应答消息。 此时, 步 骤 s707 , MC回送给业务控制实体的录制请求的响应消息可以在步骤 s708 ~ s709之后。如果 MC已经分配了内容标识, 则不需要这两个步 骤。
扩展包 rec的实现内容标识上报的使用实例为:
Notify = A5555 { ObservedEvents =1235
{rec/iddetect(RecordingIdentifier=
"http://mediaserver/rec/example.3gp") } }
步骤 s710、如果 MC要求 MP检测录制完成事件,则当录制完成 时(包括成功完成和异常结束 ), MP通过 NOTIFY命令向 MC上报 录制完成事件。 如果是录制失败事件, MP会上报错误码以指示失败 的原因; 如果是录制成功事件, MP会上报录制成功完成的原因和实 际录制的时长和 /或实际录制的内容大小。
扩展包 rec的实现录制成功事件上报的使用实例为:
Notify=A5555 { ObservedEvents=1234{rec/success(size=30000, duration=3600, result=l) } }
在该例子中 result为 1 ,表示录制成功且录制的内容已达到了 MC 指定的容量的阈值, 此时录制的文件大小为 30000K字节, 录制的时 间为 3600秒。
步骤 s711、 MC向 MP发送事件上报请求的响应消息。
步骤 s712、 MC向业务控制实体发送录制结束的请求。
步骤 s713、 业务控制实体发送录制结束的响应消息给 MC。 本发明实施例二中, 以停止录制为例, 说明本发明实施例中使用 扩展后的 H.248协议实现录制业务的方法, 如图 8所示, 具体包括以 下步骤:
步骤 s801、 MC从业务控制实体收到停止录制的请求消息。
步骤 s802、 MC指示 MP停止录制。 这可以通过 MODIFY请求 命令携带空的信号描述符来实现。
步骤 s803、 MP停止录制操作。
步骤 s804、 MP向 MC发送停止录制的响应消息。这通过 MODIFY 应答命令实现。
步骤 s805、 MC通过 SUBTRACT请求命令指示 MP删除录制终 端。 同时 MC也可以携带 AUDIT描述符要求 MP上报统计信息。
Subtract = A5555 {Audit {Statistics} }
步骤 s806、MP删除录制终端后通过 SUBSTRCT应答命令给 MC 发送删除录制终端应答消息。 MP也可以在该应答消息中携带统计信 息。 如实际录制时长和 /或实际录制的内容大小。
Statistics {rec/duration=3600,; 录制内容的时长
rec/size=20000,; 录制内容的大小 }
步骤 s807、 MC向业务控制实体发送停止录制应答消息。
需要说明的是, 上述流程中也可以省略步骤 s802和 s804, 直接 使用步骤 s805和 s806删除终端。 本发明实施例二中, 以取消录制为例, 说明本发明实施例中使用 扩展后的 H.248协议实现录制业务的方法, 如图 9所示, 具体包括以 下步骤:
步骤 s901、 MC收到业务控制实体下发的取消录制的请求消息。 步骤 s902、 MC下发取消录制的请求消息,通过 H.248的 Modify 命令, 携带扩展的取消录制信号, 指示 MP取消当前的录制。
扩展包 rec的实现取消录制的使用实例为:
Signals { rec/cancel }
步骤 s903、 MP停止录制, 并删除已录制的内容。 步骤 s904、 MP发送取消录制的响应消息给 MC。
步骤 s905、 MC发送取消录制的响应消息给业务控制实体。
步骤 s906~s907: 通过 SUBTRACT命令完成 MC和 MP之间端 点删除的过程。
本发明实施例二中, 以重新开始录制为例, 说明本发明实施例中 使用扩展后的 H.248协议实现录制业务的方法, 如图 10所示, 具体 包括以下步骤:
步骤 sl001、 MC收到业务控制实体下发的重新开始录制的请求 消息。
步骤 sl002、 MC下发重新开始录制的请求消息, 通过 H.248的
Modify命令, 携带扩展的重新开始录制信号, 指示 MP停止当前的 录制, 重新开始录制。
扩展包 rec的实现重新开始录制的使用实例为:
Signals { rec/restart }
步骤 sl003、 MP停止录制, 并删除已录制的内容, 根据重新开 始录制请求的要求, 重新开始录制。
步骤 sl004、 MP发送重新开始录制的响应消息给 MC。
步骤 sl005、 MC发送重新开始录制的响应消息给业务控制实体。 重新开始录制的控制还可以通过下述方法实现, 具体描述为: 步骤 1011 : MC收到业务控制实体下发的重新开始录制的请求消 息。
步骤 1012: MC下发重新开始录制的请求消息给 MP。通过 Modify 命令携带扩展的录制请求信号和该信号的录制模式参数,指示 MP重 新开始录制。 其中, 录制模式参数的取值为覆盖 overwrite。
扩展包 rec的实现重新开始录制的实施例为:
Signals { rec/record(mode="overwrite") }
步骤 1013: MP收到重新开始录制的请求,停止正在进行的录制, 从当前时间点开始新的录制。 新的录制内容将以覆盖的方式进行保 存, 已经录制的内容将被新的录制内容覆盖。 MP发送响应消息给 MC。
步骤 1014: MC发送重新开始录制的响应消息给业务控制实体。 本发明实施例二中, 以暂停录制及恢复录制为例, 说明本发明实 施例中使用扩展后的 H.248协议实现录制业务的方法,如图 11所示, 具体包括以下步骤:
MP正在录制指定的媒体流内容。
步骤 sll01、 MC收到暂停录制的请求消息。
步骤 sll02、MC下发暂停录制的请求消息,通过 H.248的 Modify 命令, 携带扩展的暂停录制信号, 指示 MP暂停当前的录制。
扩展包 rec的实现暂停录制的使用实例为:
Signals { rec/pause }
步骤 sll03、 MP暂停录制。
步骤 sll04、 MP发送暂停录制的响应消息给 MC。
步骤 sll05、 MC发送暂停录制的响应消息给业务控制实体。 步骤 si 106、 MC收到恢复录制的请求。
步骤 sll07、 MC下发恢复录制的请求消息,通过 H.248的 Modify 命令, 携带扩展的恢复录制信号, 指示 MP恢复到录制状态。
扩展包 rec的实现恢复录制的使用实例为:
Signals { rec/restore }
步骤 sll08、 MC恢复原来的录制。
步骤 sll09、 MP发送恢复录制的响应消息给 MC。
步骤 slll0、 MC发送恢复录制的响应消息给业务控制实体。 恢复录制的控制还可以通过下述方法实现, 具体描述为: 步骤 1111: MC收到业务控制实体下发的恢复录制的请求消息。 步骤 1112: MC下发恢复录制的请求消息给 MP。 通过 Modify 命令携带扩展的录制请求信号和该信号的录制模式参数,指示 MP恢 复录制。 其中, 录制模式参数的取值为追加 append。 扩展包 rec的实现恢复录制的实施例为:
Signals { rec/record(mode="append") }
步骤 1113: MP收到恢复录制的请求, 从当前时间点开始录制。 录制内容将以追加的方式保存在原来录制内容的末尾。 MP发送响应 消息给 MC。
步骤 1114: MC发送恢复录制的响应消息给业务控制实体。
通过使用本发明实施例提供的上述方法, 通过扩展请求消息, 完 善了分离架构下录制业务的实现流程, 满足了不同的控制需要。 本发明的实施例三还提供一种用于实现分离架构下的录制业务 的系统和设备, 如图 12所示, 包括媒体控制器 10和媒体处理器 20。
其中,媒体控制器 10生成向媒体处理器 20发送的请求消息并向 媒体处理器 20发送, 该请求消息中携带扩展命令。媒体处理器 20接 收媒体控制器 10发送的请求消息, 处理该请求消息中的扩展命令并 向媒体控制器 10发送响应消息。
具体的: 媒体控制器 10进一步包括:
请求消息生成模块 11 , 用于生成向媒体处理器 20发送的请求消 息, 该请求消息中携带扩展命令。
请求消息发送模块 12, 用于将请求消息生成模块 11生成的请求 消息向媒体处理器 20发送。
消息设置模块 13 , 用于对请求消息生成模块 11生成的请求消息 进行设置, 所述请求消息包括录制相关的控制请求消息、 事件检测请 求消息、 统计请求消息中的至少一种; 所述录制相关的控制请求消息 包括录制请求、 取消录制、 暂停录制、 恢复录制和重新开始录制中的 至少一种; 所述事件检测请求消息包括检测录制成功事件和 /或检测 录制失败事件。
具体的, 媒体处理器 20进一步包括:
接收模块 21 , 接收媒体控制器 10发送的请求消息, 该请求消息 中携带扩展命令。 处理模块 22, 处理接收模块 21接收的请求消息中的扩展命令。 发送模块 23 , 用于根据处理模块 22的处理结果, 向媒体控制器 10发送响应消息。
事件通知生成模块 24, 用于生成需要向媒体控制器 10发送的事 件通知并发送到发送模块 23;
统计结果生成模块 25 , 用于生成需要向媒体控制器 10发送的统 计结果并发送到发送模块 23。
本发明实施例提供的上述系统和设备, 通过扩展控制消息, 完善 了分离架构下录制业务的实现流程, 满足了不同的控制需要。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解 到本发明可以通过硬件实现,也可以可借助软件加必要的通用硬件平 台的方式来实现基于这样的理解,本发明的技术方案可以以软件产品 的形式体现出来, 该软件产品可以存储在一个非易失性存储介质(可 以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一 台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行 本发明各个实施例所述的方法。
总之, 以上所述仅为本发明的较佳实施例而已, 并非用于限定本 发明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权利要求
1、 一种录制业务的实现方法, 应用于基于分离架构的网络个人 录制 N-PVR系统中, 其特征在于, 包括以下步骤:
媒体处理器接收媒体控制器发送的携带扩展信令的请求消息,所 述请求消息包括录制相关的控制请求消息、事件检测请求消息或统计 请求消息;
所述媒体处理器根据所述请求消息进行相应的处理。
2、 如权利要求 1所述录制业务的实现方法, 其特征在于, 所述控制请求消息具体为:用于进行录制相关控制的开始录制请 求消息, 所述开始录制请求消息中包括以下内容中的至少一种: 录制 内容的标识, 用于指示被录制内容的物理存放位置, 所述标识由媒体 控制器或媒体处理器分配; 录制的模式, 用于指示所述媒体处理器覆 盖之前的录制内容或追加在之前的录制内容后; 本次请求录制的时 长; 本次请求录制的容量; 录制文件的存贮格式;
所述媒体处理器进行的处理包括:
根据所述开始录制请求消息开始进行录制。
3、 如权利要求 2所述录制业务的实现方法, 其特征在于, 所述 录制内容的标识由所述媒体处理器分配时,所述媒体处理器通过标识 分配完成事件, 向所述媒体控制器反馈分配的录制内容的标识; 或媒 体处理器在响应消息中反馈分配的录制内容的标识信息给所述的媒 体控制器。
4、 如权利要求 1所述录制业务的实现方法, 其特征在于, 所述控制请求消息具体为:用于进行录制相关控制的取消录制请 求消息;
所述媒体处理器进行的处理包括:
停止当前的录制操作并删除已录制的内容。
5、 如权利要求 1所述录制业务的实现方法, 其特征在于, 所述控制请求消息具体为:用于进行录制相关控制的暂停录制请 求消息;
所述媒体处理器进行的处理包括:
暂停当前的录制操作。
6、 如权利要求 1所述录制业务的实现方法, 其特征在于, 所述控制请求消息具体为:用于进行录制相关控制的恢复录制请 求消息;
所述媒体处理器进行的处理包括:
恢复当前的录制操作并从当前录制文件的末尾开始保存内容。
7、 如权利要求 6所述录制业务的实现方法, 其特征在于, 所述恢复录制请求使用独立的消息完成; 或
所述恢复录制请求使用开始录制请求消息完成,在所述消息中指 示从当前的录制文件的末尾开始保存内容。
8、 如权利要求 1或 2所述录制业务的实现方法, 其特征在于, 所述控制请求消息具体为:用于进行录制相关控制的重新开始录 制请求消息;
所述媒体处理器进行的处理包括:
删除已录制的内容并从当前录制文件的起始处开始保存内容。
9、 如权利要求 8所述录制业务的实现方法, 其特征在于, 所述重新开始录制请求使用独立的消息完成; 或
所述重新开始录制请求使用开始录制请求消息完成,在所述消息 中指示在当前的录制文件的起始处开始保存内容。
10、 如权利要求 1所述录制业务的实现方法, 其特征在于, 所述事件检测请求消息具体为: 检测录制失败事件;
所述媒体处理器进行的处理包括:
当录制失败时所述媒体处理器向媒体控制器发送录制失败事件 消息; 所述录制失败事件消息中包括录制失败的原因; 所述录制失败 的原因为媒体处理器内部错误、 或媒体处理器存储空间耗尽。
11、 如权利要求 1所述录制业务的实现方法, 其特征在于, 所述事件检测请求消息具体为: 检测录制成功事件; 所述媒体处理器进行的处理包括:
当录制完成时所述媒体处理器向媒体控制器发送录制成功事件 消息; 所述录制成功事件消息中包括录制完成的原因、 本次录制内容 的时长、本次录制内容的容量中的至少一种;所述录制完成的原因为: 录制的内容已经达到本次请求录制的时长或录制的内容已经达到本 次请求录制的容量。
12、 如权利要求 1所述录制业务的实现方法, 其特征在于, 所述携带扩展信令的请求消息具体为统计请求消息时,
所述媒体处理器进行的处理包括:
向所述媒体控制器发送应答消息,所述应答消息中包括本次录制 内容的时长和 /或本次录制内容的容量。
13、 一种媒体控制器, 应用于基于分离架构的网络个人录制 N-PVR系统中, 其特征在于, 包括:
请求消息生成模块,用于生成向媒体处理器发送的携带扩展信令 的请求消息, 所述请求消息包括录制相关的控制请求消息、 事件检测 请求消息或统计请求消息;
请求消息发送模块,用于将所述请求消息生成模块生成的请求消 息向所述媒体处理器发送。
14、 如权利要求 13所述媒体控制器, 其特征在于, 还包括: 消息设置模块,用于对所述请求消息生成模块生成的请求消息进 行设置, 所述录制相关的控制请求消息包括开始录制、 取消录制、 暂 停录制、 恢复录制和重新开始录制中的至少一种; 所述事件检测请求 消息包括检测录制成功事件和 /或检测录制失败事件。
15、 一种媒体处理器, 应用于基于分离架构的网络个人录制 N-PVR系统中, 其特征在于, 包括:
接收模块, 接收媒体控制器发送的携带扩展信令的请求消息, 所 述请求消息包括录制相关的控制请求消息、事件检测请求消息或统计 请求消息;
处理模块, 处理所述接收模块接收的携带扩展信令的请求消息。
16、 如权利要求 15所述媒体处理器, 其特征在于, 还包括: 事件通知生成模块, 用于在所述处理模块对请求消息进行处理 后, 生成需要向所述媒体控制器发送的事件通知;
统计结果生成模块, 用于在所述处理模块对请求消息进行处理 后, 生成需要向所述媒体控制器发送的统计结果。
17、如权利要求 15或 16所述媒体处理器,其特征在于,还包括: 发送模块,用于根据所述处理模块的处理结果或所述事件通知生 成模块生成的事件通知或所述统计结果生成模块生成的统计结果,向 所述媒体控制器发送响应消息。
PCT/CN2009/070042 2008-01-10 2009-01-06 一种录制业务的实现方法和设备 WO2009092302A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA200810000980XA CN101483753A (zh) 2008-01-10 2008-01-10 一种录制业务的实现方法和设备
CN200810000980.X 2008-01-10

Publications (1)

Publication Number Publication Date
WO2009092302A1 true WO2009092302A1 (zh) 2009-07-30

Family

ID=40880662

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070042 WO2009092302A1 (zh) 2008-01-10 2009-01-06 一种录制业务的实现方法和设备

Country Status (2)

Country Link
CN (1) CN101483753A (zh)
WO (1) WO2009092302A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516485B (zh) * 2015-12-04 2019-03-01 小米科技有限责任公司 录音方法及装置
CN107483518B (zh) * 2016-06-07 2022-08-02 中兴通讯股份有限公司 一种媒体服务器及媒体服务方法
CN109600660B (zh) * 2018-08-01 2020-07-24 北京微播视界科技有限公司 用于录制视频的方法和装置
BR112020024621A2 (pt) 2018-08-01 2021-03-02 Beijing Microlive Vision Technology Co., Ltd. método e dispositivo de gravação de vídeo

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494290A (zh) * 2002-10-31 2004-05-05 深圳市中兴通讯股份有限公司 使用megaco协议实现用户自定义录音的方法
CN1674657A (zh) * 2004-03-22 2005-09-28 武汉诚源科技有限责任公司 基于网络的个人数字录像服务系统
CN1716870A (zh) * 2004-06-30 2006-01-04 华为技术有限公司 媒体流服务质量上报方法
US20060045102A1 (en) * 2004-08-31 2006-03-02 Pelaez Mariana B Method for recovering a mismatch between a media gateway and a media gateway controller
CN1889515A (zh) * 2006-04-03 2007-01-03 华为技术有限公司 一种通过h.248协议实现录音暂停功能的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494290A (zh) * 2002-10-31 2004-05-05 深圳市中兴通讯股份有限公司 使用megaco协议实现用户自定义录音的方法
CN1674657A (zh) * 2004-03-22 2005-09-28 武汉诚源科技有限责任公司 基于网络的个人数字录像服务系统
CN1716870A (zh) * 2004-06-30 2006-01-04 华为技术有限公司 媒体流服务质量上报方法
US20060045102A1 (en) * 2004-08-31 2006-03-02 Pelaez Mariana B Method for recovering a mismatch between a media gateway and a media gateway controller
CN1889515A (zh) * 2006-04-03 2007-01-03 华为技术有限公司 一种通过h.248协议实现录音暂停功能的方法

Also Published As

Publication number Publication date
CN101483753A (zh) 2009-07-15

Similar Documents

Publication Publication Date Title
JP5647133B2 (ja) マルチメディアセッションを再開、転送、又はコピーするための方法及びシステム
US8498517B2 (en) Method and system of implementing multimedia recording and media resource handling device
US9232026B2 (en) System for communicating control messages in an AVB network
JP5536779B2 (ja) 移動体デバイス上で映像を再生するための方法及びシステム
WO2009026819A1 (fr) Procédé et dispositif pour fusionner une facture et sauvegarder l'état de la file d'attente de tampon
JP2012507236A5 (zh)
CN111245851B (zh) 多终端音频传输方法、装置、终端设备和存储介质
WO2010139172A1 (zh) 流媒体的频道业务和点播业务统一管理的方法及系统
WO2008125054A1 (fr) Procédé, système et appareil pour basculer entre des chaînes appartenant à un flux multimédia
WO2009092302A1 (zh) 一种录制业务的实现方法和设备
EP2214431B1 (en) Method, system and device for service switching
WO2009012701A1 (en) A notification method, apparatus and system of real time streaming protocol event
WO2009140888A1 (zh) 一种实现录制业务的方法、装置及系统
JP5061619B2 (ja) リソース確保方法、中継装置、配信システム、およびプログラム
WO2010017725A1 (zh) 媒体播放的控制方法、系统和设备
WO2010028591A1 (zh) 实现客户端录制的方法、系统及录制控制实体
WO2010057391A1 (zh) 一种流媒体播放控制方法、设备及系统
WO2010075725A1 (zh) 终端、资讯插播系统及方法
WO2010025635A1 (zh) 一种播放切换方法、媒体服务器、用户终端和系统
WO2011072594A1 (zh) 一种会场资源处理方法、装置及系统
WO2009030151A1 (fr) Procédé, système et dispositif servant à transmettre un message de contrôle de diffusion media en mode continu
CN116614682B (zh) 一种全媒体融合音视频录制点播系统及处理方法
WO2009092271A1 (zh) 一种实现信号暂停的方法、系统及设备
US20110167163A1 (en) Communication system, method, device and program
CN101668164A (zh) 基于网际协议电视的内容发布方法、装置及系统

Legal Events

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

Ref document number: 09703898

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09703898

Country of ref document: EP

Kind code of ref document: A1