WO2014190650A1 - Local recording service realizing method and apparatus - Google Patents

Local recording service realizing method and apparatus Download PDF

Info

Publication number
WO2014190650A1
WO2014190650A1 PCT/CN2013/084684 CN2013084684W WO2014190650A1 WO 2014190650 A1 WO2014190650 A1 WO 2014190650A1 CN 2013084684 W CN2013084684 W CN 2013084684W WO 2014190650 A1 WO2014190650 A1 WO 2014190650A1
Authority
WO
WIPO (PCT)
Prior art keywords
recording
service
local
time
recording service
Prior art date
Application number
PCT/CN2013/084684
Other languages
French (fr)
Chinese (zh)
Inventor
何丽莉
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014190650A1 publication Critical patent/WO2014190650A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43622Interfacing an external recording device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/4227Providing Remote input by a user located remotely from the client device, e.g. at work
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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 present invention relates to the field of communication network technologies, and in particular, to an implementation method and corresponding apparatus for a local recording service.
  • cPVR c ient Persona l Video Recording
  • IPTV Internet Protoco l Te levi s ion, IPTV
  • the cPVR service is a personalized program recording service based on the channel.
  • the user can start recording according to the user operation, for example, pressing the recording button or according to the preset time set by the user, and the set top box records the current time.
  • you can keep it, and the recorded content can be saved for a long time until the user deletes it manually.
  • the local time shift service means that the user can start recording according to the user operation, for example, pressing the pause button during the process of watching the live channel, and the set top box records the currently viewed channel content and temporarily saves the time shifting content in the set top box, usually local time shifting.
  • the method of segmented loop recording is to delete the segments outside the time shift range according to the time shifting duration, so that the total length of the locally saved recorded content is always less than or equal to the time shifting duration.
  • pause, fast rewind, fast forward and other time shift operations can be realized within the time shift period.
  • the system will stop recording and automatically delete the recorded content.
  • the system has a preset default time shift, such as 2 hours.
  • the content after the current time can only be recorded locally, and the content before the current time cannot be recorded, for example, in the middle of a certain program.
  • the cPVR is started, and the content of the past part of the program cannot be recorded.
  • the content before the startup point cannot be time-shifted.
  • An embodiment of the present invention provides a method and an apparatus for implementing a local recording service, which is used to extend a recording time range to a current time point by using a local recording service.
  • the method for implementing the local recording service includes: receiving an instruction of a user to start a first local recording service; determining that a second local recording service is currently running Obtaining a recording time range of the second local recording service, where the first local recording service is a local personal video recording cPVR service, and the second local recording service is a local time shift service, or The local recording service is a local time-shift service, and the second local recording service is a cPVR service; receiving a recording start time or recording of the first local recording service specified by the user in the recording time range of the second local recording service Translating, according to the recording start time of the specified first local recording service, the content recorded by the second local recording service between the recording start time and the current time of the first local recording service into a Decoding the content of the first local recording service, starting the first local recording service; or placing the second local recording service in the first local recording service according to the recording time period of the specified first local recording service The content recorded during the recording period is converted into
  • the first local recording service is a local time shift service
  • the second local recording service is a cPVR service
  • the receiving user is in the second local recording service.
  • the recording start time or the recording time period of the first local recording service specified in the current recording time range includes: receiving the distance specified by the user in the current recording time range of the second local recording service, the current time is less than the time shift duration Recording start time.
  • the recording start time of the second local recording service in the first local recording service Converting the content recorded between the current time to the recorded content of the first local recording service includes: recording the second local recording service between the recording start time and the current time of the first local recording service Saving the content to the recording directory of the first local recording service; converting the content recorded by the second local recording service during the recording period of the first local recording service into the recording of the first local recording service
  • the content includes: saving the content recorded by the second local recording service in the recording period of the first local recording service to the recording directory of the first local recording service.
  • the receiving user is in a current recording time range of the second local recording service
  • the recording start time or the recording time period of the specified first local recording service further includes: acquiring program play time information in a current recording time range of the second local recording service; the receiving user is in the second local Recording the current recording time range of the service
  • the recording start time or the recording time period of the specified first local recording service includes: receiving, by the user, the current recording of the second local recording service according to the program playing time information in the current recording time range of the second local recording service The recording start time or recording time period of the first local recording service specified in the time range.
  • the device for implementing a local recording service includes: a user interaction unit, configured to receive an instruction of a user to start a first local recording service, and transmit the instruction for starting the first local recording service to Determining unit;
  • the determining unit is configured to receive, by the user interaction unit, the instruction to start the first local recording service, and determine, according to the instruction to start the first local recording service, that the second local recording service is currently running, and The result of determining that the second local recording service is currently running is sent to the acquiring unit, where the first local recording service records a cPVR service for the local personal video, and the second local recording service is a local time shift service, or When the first local recording service is a local time shift service, the second local recording service is a cPVR service;
  • the obtaining unit is configured to receive, by the determining unit, the result that the second local recording service is currently running, and obtain the second local recording service according to the result that the second local recording service is currently running. Recording time range;
  • the user interaction unit is further configured to receive a recording start time or a recording time period of the first local recording service specified by the user in a current recording time range of the second local recording service, and record the first local recording
  • the recording start time or recording time period of the service is sent to the recording unit;
  • the recording unit is configured to receive, from the user interaction unit, a recording start time or a recording time period of the first local recording service, and according to the recording start time of the specified first local recording service, Converting, by the second local recording service, the content recorded between the recording start time and the current time of the first local recording service to the recorded content of the first local recording service, starting the first local recording service; or according to The recording time period of the specified first local recording service converts the content recorded by the second local recording service in the recording period of the first local recording service into the recording content of the first local recording service.
  • the first local recording service is a local time shift service
  • the second local recording service is a cPVR service
  • the user interaction unit is configured to receive a current recording of a user in the second local recording service.
  • the recording start time or the recording time period of the first local recording service specified in the time range includes: the user interaction unit, configured to receive a distance current time specified by the user in a current recording time range of the second local recording service
  • the recording start time is less than the time shift duration.
  • the recording unit is configured to: according to the recording start time of the specified first local recording service
  • the recording of the content recorded by the second local recording service between the recording start time and the current time of the first local recording service into the recording content of the first local recording service includes: the recording unit, configured to The recording start time of the specified first local recording service saves the content recorded by the second local recording service between the recording start time and the current time of the first local recording service to the first local
  • the recording unit is configured to record the second local recording service during the recording period of the first local recording service according to the recording time period of the specified first local recording service.
  • Converting the content to the recorded content of the first local recording service includes: the recording unit, configured to perform, according to the specified first local recording Recording of the service period of the second local content recorded on the first local traffic service record of saving the recorded period of time recorded to the first recording directory of local service record.
  • the acquiring unit is further configured to receive, by the user, the second local recording service Obtaining the program play time information in the current recording time range of the second local recording service before the recording start time or the recording time period of the first local recording service specified in the current recording time range;
  • the user interaction unit configured to receive a recording start time or a recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service, where the user interaction unit is configured to: Receiving a recording start time or a recording time of the first local recording service specified by the user in the current recording time range of the second local recording service according to the program playing time information in the current recording time range of the second local recording service segment.
  • the embodiment of the present invention determines that the second local recording service is currently running, and obtains the recording time range of the second local recording service, and the receiving user is The recording start time or the recording time period of the first local recording service specified in the recording time range, according to the recording start time Converting, by the local recording service, the content recorded between the recording start time and the current time into the recorded content of the first local recording service, starting the first local recording service, or according to the recording time period
  • the content recorded by the two local recording services during the recording period is converted into the recorded content of the first local recording service, thereby realizing that the content can be recorded before the current time, that is, recording more content, thereby providing the user with A better business experience.
  • FIG. 1 is a flowchart of a method for implementing a local recording service according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for implementing a local recording service according to an embodiment of the present invention
  • FIG. 3 is a local recording service according to another embodiment of the present invention
  • FIG. 4 is a structural diagram of an apparatus for implementing a local recording service according to an embodiment of the present invention
  • FIG. 5 is a structural diagram of an apparatus for implementing a local recording service based on a computer system according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method for implementing a local recording service.
  • the method includes:
  • Step 101 Receive an instruction of the user to start the first local recording service.
  • Step 102 Determine that the second local recording service is currently running, and obtain the recording time range of the second local recording service, where the first local recording service records a cPVR service for the local personal video, and the second local recording service For the local time shift service, or the first The local recording service is a local time shift service, and the second local recording service is a cPVR service.
  • Step 1 03 Receive a recording start time or a recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service.
  • the step is specifically: the receiving user specifies the current recording time range of the second local recording service. The distance from the current time is less than the recording start time of the time shift.
  • the method further includes: acquiring program play time information in a current recording time range of the second local recording service;
  • Step 203 is specifically: receiving, by the user, the current local recording service according to the current
  • the program play time information in the recording time range is the recording start time or the recording time period of the first local recording service specified in the current recording time range of the second local recording service.
  • Step 1104 Convert, according to the recording start time of the specified first local recording service, the content recorded by the second local recording service between the recording start time and the current time of the first local recording service to Recording content of the first local recording service, starting the first local recording service; or recording the second local recording service in the first local recording according to the recording time period of the specified first local recording service The content recorded during the recording period of the service is converted into the recorded content of the first local recording service.
  • the recording of the content recorded by the second local recording service between the recording start time and the current time of the first local recording service into the recording content of the first local recording service is specifically as follows: Saving the content recorded by the second local recording service between the recording start time and the current time of the first local recording service into the recording directory of the first local recording service; and recording the second local recording
  • the recording of the content recorded in the recording period of the first local recording service into the recording content of the first local recording service is specifically: recording the second local recording service in the first local recording service
  • the content recorded in the time period is saved in the recording directory of the first local recording service.
  • the second local recording service may continue or terminate.
  • Another embodiment of the present invention provides a flowchart for implementing a local recording service. Referring to FIG. 2, the specific process includes:
  • Step 201 During the process of playing the live program, the terminal receives the first local record of the user's activation.
  • the business that is, the instructions of the cPVR business.
  • the user may be interested in the current program during the process of watching the live program, or may be interested in the program just finished, and when the user wants to record and watch the movie, the cPVR service is started in real time by pressing the record button.
  • Step 202 Determine whether the second local recording service is running, in this embodiment, the local time shift service. If yes, go to step 203. If not, go to step 209.
  • the terminal may determine, according to the task manager or the service state machine, whether the local time shift service is currently running.
  • the second local recording service that is currently running also includes the second local recording service that ends at the current time.
  • Step 203 Obtain a recording time range and an instantaneous shift range of the local time shift service.
  • the recording time range that is, the time shift range
  • the recording time range may be obtained from the service state machine of the local time shift service.
  • the current time is 10: 00
  • the time shift range of the local time shift service is 8: 00-10: 00.
  • step 204 is an optional step.
  • Step 204 Acquire broadcast time information of a program included in a recording time range of the local time shift service.
  • the method is implemented as follows: According to the playing time information of the program in the program list, the playing time information of the program included in the recording time range of the local time shift service is obtained.
  • the content of the two programs P1 and P2 is included in the recording time range, wherein the playing time of the program P1 is 7:30-9:40, and the playing time of the program P2 is 9. : 40-11: 00.
  • the part of the content of the program P1 and the program P3 is included in the recording time range, and the complete content of the program P2, wherein the program P1 is played at a time of 7: 00-8: 10, the program The playback time of P2 is 8: 10-9: 50, and the playback time of program P3 is 9: 50-11: 00.
  • the recording time range includes only part of the content of the program P1, and the playing time of the program P1 is 7: 40-11: 00.
  • the terminal can present the recording time range of the local time shift service, and present recording options such as user-specified recording from the current time, selecting the recording start time in the recording time range, and selecting the recording time period in the recording time range.
  • the step 205 may be: displaying the play time information of the acquired program and the prompt information, where the prompt information is used. The user is prompted to specify the recording start time from the current time or the recording start time in the recording time range or the recording time period in the recording time range according to the playing time information of the program included in the recording time range of the local time shift service.
  • the time shift range of the terminal presenting the local time shift service is 8: 00-10: 00
  • the play time of the program P1 is 7: 30-9: 40
  • the play time of the program P2. 9: 40-11: 00 and provide a recording option that the user specifies to start recording from the current time, select the recording start time in the recording time range, and select the recording time period in the recording time range.
  • four buttons can be presented.
  • the valid input value or draggable time bar of the input box is between 8: 00-10: 00.
  • the time shift range of the terminal presenting the local time shift service is 8: 00-10: 00
  • the play time of the program P1 is 7: 00-8: 10
  • the play time of the program P2 is For 8: 10-9: 50
  • the playback time of program P3 is 9: 50-11: 00
  • the user is specified to start recording from the current time, select the recording start time in the recording time range, and select the recording time in the recording time range.
  • the recording options of the segment can be provided with five buttons, namely “recording program P2", “recording from the start time of P3” and “recording from the current time”, “custom recording in the time shift range” Start time “and” in the time shift range custom recording time period”, will appear further when the user selects "Custom recording start time in time shift range” or “Custom recording start time in time shift range” button Input box or draggable time bar for specifying the recording start time Or the recording time period, the valid input value of the input box or the draggable time bar is between 8: 00-10: 00.
  • the terminal presents a time shift range of the local time shift service of 8: 00-10: 00, a play time of the program P1 of 7: 40-11: 00, and provides a user designation from The current time starts recording, selects the recording start time in the recording time range, and selects the recording time of the recording time period in the recording time range.
  • buttons can be provided, which are “recording from the left edge of the time shift”, “ Recording from the current time ", “In the time shift range Custom recording start time” and “In the time shift range Custom recording time period”, when the user selects "In the time shift range Custom recording start time” or "At After the time shift range custom recording start time” button, the input box or draggable time bar will appear further, which is used to specify the recording start time or recording time period, the valid input value of the input box or the draggable time bar is 8: 00-10: 00.
  • Step 206 Receiving a selection made by the user according to the prompt information, determining a recording option selected by the user. If the user selects to start recording from the current time, the process proceeds to step 209, and if the user specifies the recording start time in the recording time range, Proceeding to step 208, if the user specifies the selected recording time period in the recording time range, the process proceeds to step 207.
  • the user clicks the button "record from the current time", and then determines that the user selects to start recording from the current time, and proceeds to step 209.
  • Two values are specified in the shift range as the recording start time and the recording end time, and the user proceeds to step 207 after inputting or dragging to select the recording start time and the recording end time; or in the second example, the user clicks the button" Recording the program P2", it is determined that the user selects the recording time period in the recording time range, and the recording time period is P2, the playing time is 8:10-9:50, and the process proceeds to step 207.
  • Time 9:50 proceeding to step 208; or in the third example of the embodiment, the user clicks "record from the time shift left border" to determine that the user selects the recording start time in the recording time range, and The recording start time is the time shift left boundary 8: 00, and proceeds to step 208.
  • Step 207 Convert the content recorded by the local time shift service in the recording period specified by the user into the recorded content of the cPVR service.
  • the first local recording service that is, the cPVR process ends; according to the user selection or the system setting, the second local recording service, that is, the local time shift service can continue, Can be terminated.
  • Step 208 Convert the content recorded by the local time shift service between the recording start time and the current time specified by the user into the recording content of the cPVR service, and further continue to record from the current time, and therefore proceeds to step 209.
  • the recording of the content recorded by the local time shift service in the recording period specified by the user into the recording content of the cPVR service in the step 207 may be: saving the content recorded by the local time shift service in the recording period specified by the user to In the recording directory of the cPVR service, the step 208 converts the content recorded by the local time shift service between the recording start time and the current time specified by the user into the recorded content of the cPVR service, which may be: The recorded content from the recording start time to the current time is saved to the recording directory of the cP VR service.
  • the content is usually recorded in a fragmented manner, and may be sliced according to time or size, and an index file is created for each fragment.
  • the index file records the playback start time and end time of each slice, for example, the broadcast of the slice 1.ts; the start time is 9:00:00, and the playback end time is 9:00:10.
  • the recording duration of a slice is about 10s.
  • the local time-shift service records the fragmented loops.
  • the clips outside the time-shift range are deleted according to the time-shift duration.
  • the clips of the cPVR service are saved in the directory and are not deleted unless the user manually deletes the files corresponding to the recording task.
  • the content recorded by the local time shift service is stored in a fixed directory, and the recorded content of each cPVR service recording task is stored in a separate directory.
  • the terminal When playing a local time shift service or a file recorded by a cPVR service, the terminal first indexes the file according to the index. The piece calculates the total duration of the current recording file, and adds the recording file and the corresponding index file to the playlist, and automatically plays it in series.
  • the content recorded by the local time shift service in the recording period specified by the user is converted into the recorded content of the cPVR service.
  • the implementation manner is as follows: The terminal parses the index file generated by the local time shift recording service, so as to find the local time shift. Record all the shards corresponding to the user-specified recording time period recorded by the service; copy the found shards and corresponding index files to the directory corresponding to the cPVR recording task.
  • the copied fragment can be renamed, for example, the fragment 1.
  • ts is named pre l . ts , which is convenient for the system to identify the fragment as a fragment converted from the local time-shifted service, and to avoid generation.
  • the fragment is renamed.
  • the set-top box plays each slice according to the index file sequence, which is the same as the normal cPVR recording and playback.
  • the fragment with the prefix pre is played first.
  • the step 208 converts the content recorded by the local time shift service between the recording start time and the current time of the user into the recorded content of the cPVR service, and the implementation manner is as follows:
  • the terminal parses the index generated by the local time shift recording service. File, so as to find all the fragments recorded by the local time shift recording service corresponding to the user-specified recording start time to the current time range; copy the found fragment and the corresponding index file to the directory corresponding to the current cPVR recording task. in.
  • Step 209 Start the cPVR service.
  • This step specifically starts recording from the current time and stores the recorded content in the corresponding directory of the cPVR service.
  • the local time-shift service can continue or terminate depending on user selection or system settings.
  • the recording may be stopped after receiving the user's instruction to end the cPVR service. For example, the user ends the cPVR service by pressing the recording button again, or automatically stops the recording after the current program ends.
  • the system setting may be: when the judgment result in step 202 is that the local time shift service is not currently running, or when the user selects to start recording from the current time in step 206, after receiving the user's instruction to end the cPVR service, The recording is stopped; when the step c208 is entered to start the cPVR service step, the recording is automatically stopped after the current program ends.
  • the user can share cPVR and local time shift recording while watching the live channel.
  • the content recorded in the local time shift service that has been started can be converted into the content of the cPVR service, thereby expanding the content of the past recording.
  • the content that has been played before the current time can be supplemented to record to the complete program, or cPVR can be started after the live program ends, and the completely finished program can be supplemented, thereby improving user experience.
  • a further embodiment of the present invention provides a flowchart for implementing a local recording service. Referring to FIG. 3, the specific process includes:
  • Step 301 In the process of playing the live broadcast program, the terminal receives the first local recording service initiated by the user, which is specifically an instruction of the local time shift service in this embodiment.
  • the user may be interested in the current program during the process of watching the live program.
  • the local time shift service is started in real time by pressing the pause button.
  • Step 302 Determine whether the second local recording service, that is, the cPVR service, is running, if yes, proceed to step 303, and if no, proceed to step 308.
  • the terminal may determine, according to the task manager or the service state machine, whether the cPVR service is currently running.
  • the second local recording service that is currently running also includes the second local recording service that ends at the current time.
  • Step 303 Obtain a recording time range of the cPVR service.
  • the recording time range of the cPVR service is obtained from the service state machine of the cPVR service.
  • step 304 is an optional step.
  • Step 304 Acquire broadcast time information of the program included in the recording time range of the cPVR service.
  • the method is implemented as follows: According to the playing time information of the program in the program list, the playing time information of the program included in the recording time range of the cPVR service is obtained.
  • the current time is 1 0: 00
  • the time shift duration is 2 hours
  • the current recording time range of the cPVR service is 6: 00-1 0: 00
  • the recording time range is included.
  • the current time is 10: 00
  • the time shift period is 2 hours
  • the current recording time range of the cPVR service is 9: 00-10: 00
  • the program includes the program within the recording time range.
  • Step 305 Presenting prompt information, the prompt information is used to prompt the user to select a recording start time from the current time or specify a distance in the recording time range of the cPVR service that is less than the current time.
  • the terminal can display the recording time range and the time shift duration of the cPVR service, and present the recording for the user to select to start recording from the current time, specify the distance from the current time d in the recording time range of the cPVR service, and the time shift duration. Recording options for the beginning time.
  • the step 305 may be: displaying the played time information of the acquired program and the prompt information, where the prompt information is used to prompt the user.
  • the recording start time from the current time is selected according to the play time information of the program included in the recording time range of the cPVR service or the recording start time is shorter than the current time in the current recording time range.
  • the recording time range of the terminal presenting the cPVR service is 6: 00-10: 00
  • the playing time of the program P1 is 6: 00-9: 00
  • the playing time of the program P2 is 9: 00-11: 00
  • a recording option that provides a user to select a recording start time that is recorded from the current time and specifies a distance from the current recording time range that is less than the current time.
  • three buttons may be presented.
  • the input box or draggable time bar will be further displayed to specify the recording start time, the valid input value of the input box or the draggable time bar is between 8: 00-10: 00.
  • the recording time range of the terminal presenting the cPVR service is 9: 00-10: 00
  • the playing time of the program P1 is 8: 00-11: 00
  • the user selection is provided from the current
  • the time starts recording, and the recording time is specified in the current recording time range.
  • the recording time is shorter than the recording time of the recording time.
  • three buttons can be displayed, which are "recording from the current time” and "from the cPVR left".
  • Step 306 Receiving a selection made by the user according to the prompt information, determining whether the user selects to start recording from the current time, and if yes, proceeding to step 308, and if not, proceeding to step 307.
  • Step 307 Convert the content recorded by the cPVR service between the recording start time and the current time specified by the user into the recording content of the local time shift service.
  • the step may specifically be: saving the content recorded by the cPVR service between the recording start time and the current time specified by the user into the recording directory of the local time shift service.
  • the content is usually recorded in a fragmented manner, and an index file is created for each fragment.
  • the step can be implemented as follows: The terminal parses the index file generated by the cPVR service, and searches for all the fragments recorded by the cPVR service corresponding to the user-specified recording start time to the current time range; The index file is copied to the directory corresponding to the local time shift service.
  • Step 308 Start the local time shift service.
  • This step specifically starts recording from the current time and stores the recorded content in the directory corresponding to the local time shift service.
  • the cPVR service can continue or terminate depending on user selection or system settings.
  • the local time shift service After the local time shift service is started, it can be automatically stopped after the user switches channels or after power off.
  • the user when the user watches the live channel, the user can share the cPVR and the local time-shifted recording content, and after the local time-shift service is started, the content recorded in the activated cPVR service can be converted into the content of the local time-shift service, thereby supplementing Recording the past content, expanding the time shift range.
  • the local time shift service when the local time shift service is started during the playback of the live program, the content that has been played before the current time can be supplemented, so that the user can start from the starting point of the current program. Move to improve the user experience.
  • An embodiment of the present invention provides a device for implementing a local recording service.
  • the device 400 includes:
  • the user interaction unit 401 is configured to receive an instruction of the user to start the first local recording service, and transmit the instruction for starting the first local recording service to the determining unit;
  • the determining unit 402 is configured to receive, by the user interaction unit 401, the instruction to start the first local recording service, and determine, according to the instruction to start the first local recording service, that the second local recording service is currently running, and The result of determining that the second local recording service is currently running is sent to the acquiring unit, where the first local recording service records a cPVR service for the local personal video, and the second local recording service is a local time shift service, or When the first local recording service is a local time shift service, the second local recording service is a cPVR service;
  • the obtaining unit 403 is configured to receive, by the determining unit 402, the result that the second local recording service is currently running, and obtain the second local recording service according to the result that the second local recording service is currently running. Recording time range;
  • the user interaction unit 401 is further configured to receive a recording start time or a recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service, and the first local recording service The recording start time or recording time period is sent to the recording unit;
  • the recording unit 404 is configured to receive, from the user interaction unit 401, a recording start time or a recording time period of the first local recording service, and according to the recording start time of the specified first local recording service.
  • the second local recording service Converting, by the second local recording service, the content recorded between the recording start time and the current time of the first local recording service to the recorded content of the first local recording service, starting the first local recording service; or according to The recording time period of the specified first local recording service converts the content recorded by the second local recording service in the recording period of the first local recording service into the recording content of the first local recording service.
  • the first local recording service is a local time shift service
  • the second local recording service is a cPVR service
  • the user interaction unit 401 is configured to receive a current recording time of the second local recording service by the user.
  • the recording start time or the recording time period of the first local recording service specified in the range includes: the user interaction unit 401, configured to receive a distance current time specified by the user in a current recording time range of the second local recording service The recording start time is less than the time shift duration.
  • the recording unit 404 is configured to: record, according to the recording start time of the specified first local recording service, the recording start time of the first local recording service to the current time. Converting the recorded content to the recording content of the first local recording service includes: a recording unit 404, configured to: report the second local recording service according to the recording start time of the specified first local recording service The content recorded between the recording start time and the current time of the first local recording service is saved in the recording directory of the first local recording service;
  • the recording unit 404 is configured to convert, according to the specified recording period of the first local recording service, the content recorded by the second local recording service in the recording period of the first local recording service into the first Recording content of the local recording service includes: a recording unit 404, configured to record the second local recording service in a recording period of the first local recording service according to the recording time period of the specified first local recording service The content is saved to the recording directory of the first local recording service.
  • the obtaining unit 403 is further configured to: receive, by the user, the second local before the recording start time or the recording time period of the first local recording service specified in the current recording time range of the second local recording service.
  • Recording time letter of the recording in the current recording time range of the service includes: a user interaction unit 401, configured to: Receiving a recording start time or a recording time of the first local recording service specified by the user in the current recording time range of the second local recording service according to the program playing time information in the current recording time range of the second local recording service segment.
  • the units in the device for implementing the local recording service in the embodiment of the present invention are respectively used to implement the functions of the steps of the foregoing local recording service implementation method. Since the steps have been described in detail in the foregoing method embodiments, Let me repeat.
  • the device for realizing the local recording service in the embodiment of the present invention may be implemented based on a computer system, and the methods shown in FIG. 1, FIG. 2, and FIG. 3 may be implemented in a device that converts the local recording service based on the computer system.
  • Figure 5 illustrates an embodiment of a device that implements local recording services based on a computer system.
  • the device for implementing the local recording service in this embodiment may include: a processor 501, a memory 502, and a communication interface 503, where:
  • the communication interface 503 is configured to communicate with a user.
  • the messages exchanged between the UCB platform and the user are both transmitted and received through the communication interface 503.
  • the communication interface 503 is configured to receive an instruction of the user to initiate the first local recording service;
  • the memory 502 is configured to store the program instruction and the content recorded by the first local recording service and the second local recording service;
  • the processor 501 is configured to receive the user.
  • the program instruction stored in the memory 502 is invoked, and the following operations are performed: determining that the second local recording service is currently running, and acquiring the recording time range of the second local recording service, where The first local recording service records the cPVR service for the local personal video, the second local recording service is the local time shift service, or the first local recording service is the local time shift service, and the second local recording service is a recording start time or a recording time period of the first local recording service specified by the user in the recording time range of the second local recording service; and a recording start time according to the specified first local recording service And the second local recording service is in the first local recording service.
  • the processor 501 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or the like.
  • the UCB platform in this embodiment may include a bus 504.
  • the processor 501, the memory 502, and the communication interface 503 can be connected and communicated via the bus 504.
  • the memory 502 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
  • the processor 501 can also be used to perform the steps of the device for implementing the local recording service described in FIG. 1 , FIG. 2 and FIG. 3 in the embodiment of the method, and the embodiments of the present invention are not described in detail herein.

Abstract

An embodiment of the present invention provides a local recording service realizing method and apparatus, the method comprising: receiving an instruction for starting a first local recording service; determining the current operation of a second local recording service, and obtaining the recording time range of the second local recording service; receiving the recording starting time or recording time period of the first local recording service, which is specified in the recording time range by a user; according to the recording starting time, converting the content, recorded from the recording starting time to the current time by the second local recording service, into the recorded content of the first local recording service, and starting the first local recording service; or, according to the recording time period, converting the content, recorded within the recording time period by the second local recording service, into the recorded content of the first local recording service. The method and apparatus of the present invention can be used for recording the program contents before the current time via the local recording service, thus providing users with better service experience.

Description

本地录制业务的实现方法和装置  Method and device for realizing local recording service
技术领域 Technical field
本发明涉及通信网络技术领域, 尤其涉及一种本地录制业务的实现方 法和相应装置。  The present invention relates to the field of communication network technologies, and in particular, to an implementation method and corresponding apparatus for a local recording service.
背景技术 Background technique
交互式网络电视( Internet Protoco l Te levi s ion, IPTV ) 中开展了 两种本地录制业务, 分别是本地个人视频录制 ( c l ient Persona l Video Recording , cPVR )业务和本地时移业务。  Two kinds of local recording services, namely, c ient Persona l Video Recording (cPVR) service and local time shift service, are carried out in the interactive Internet TV (Internet Protoco l Te levi s ion, IPTV).
其中, cPVR业务是基于频道的一种个性化节目录制业务, 用户在观看 直播频道的过程中, 可以随时根据用户操作、 例如按录制键或根据用户预 先设置的起始时间启动录制, 机顶盒录制当前正在观看的频道内容后并保 看, 并且录制的内容可以长久保存直到用户手动删除。  The cPVR service is a personalized program recording service based on the channel. During the process of watching the live channel, the user can start recording according to the user operation, for example, pressing the recording button or according to the preset time set by the user, and the set top box records the current time. After watching the channel content, you can keep it, and the recorded content can be saved for a long time until the user deletes it manually.
本地时移业务是指用户在观看直播频道的过程中可以根据用户操作、 例如按暂停键启动录制, 机顶盒录制当前观看的频道内容并将时移时长的 内容临时保存在机顶盒中, 通常本地时移采用分片循环录制的方式, 即根 据时移时长来删除时移范围外的分片, 从而本地保存的录制内容总长度始 终小于或等于时移时长。 本地时移业务启动后在时移时长内可以实现暂停、 快退、 快进等时移操作, 当切换频道或断电后系统将停止录制并自动删除 录制的内容。 通常, 系统存在预设的默认时移时长, 例如 2 小时。 现有技 术中, 当用户观看直播频道时, 启动 cPVR业务或本地时移业务后, 只能对 当前时刻之后的内容进行本地录制, 而无法录制当前时刻之前的内容, 例 如在某个节目中间才启动 cPVR, 无法录制所述节目已经过去部分的内容, 例如启动本地时移后, 无法对启动点之前的内容时移观看。  The local time shift service means that the user can start recording according to the user operation, for example, pressing the pause button during the process of watching the live channel, and the set top box records the currently viewed channel content and temporarily saves the time shifting content in the set top box, usually local time shifting. The method of segmented loop recording is to delete the segments outside the time shift range according to the time shifting duration, so that the total length of the locally saved recorded content is always less than or equal to the time shifting duration. After the local time shift service is started, pause, fast rewind, fast forward and other time shift operations can be realized within the time shift period. When the channel is switched or the power is turned off, the system will stop recording and automatically delete the recorded content. Typically, the system has a preset default time shift, such as 2 hours. In the prior art, when a user views a live channel, after starting the cPVR service or the local time shift service, the content after the current time can only be recorded locally, and the content before the current time cannot be recorded, for example, in the middle of a certain program. The cPVR is started, and the content of the past part of the program cannot be recorded. For example, after the local time shift is started, the content before the startup point cannot be time-shifted.
发明内容 Summary of the invention
本发明实施例提供了一种本地录制业务的实现方法和装置, 用于通过 本地录制业务将录制时间范围扩展到当前时间点之前。  An embodiment of the present invention provides a method and an apparatus for implementing a local recording service, which is used to extend a recording time range to a current time point by using a local recording service.
第一方面, 本发明实施例提供的本地录制业务的实现方法包括: 接收 用户的启动第一本地录制业务的指令; 确定当前正在运行第二本地录制业 务, 获取所述第二本地录制业务的录制时间范围, 其中, 所述第一本地录 制业务为本地个人视频录制 cPVR业务, 所述第二本地录制业务为本地时移 业务, 或者, 所述第一本地录制业务为本地时移业务, 所述第二本地录制 业务为 cPVR业务; 接收用户在所述第二本地录制业务的录制时间范围中指 定的第一本地录制业务的录制起始时间或录制时间段; 根据所述指定的第 一本地录制业务的录制起始时间将所述第二本地录制业务在所述第一本地 录制业务的录制起始时间至当前时间之间录制的内容转换为所述第一本地 录制业务的录制内容, 启动所述第一本地录制业务; 或者根据所述指定的 第一本地录制业务的录制时间段将所述第二本地录制业务在所述第一本地 录制业务的录制时间段内录制的内容转换为所述第一本地录制业务的录制 内容。 The first aspect, the method for implementing the local recording service provided by the embodiment of the present invention includes: receiving an instruction of a user to start a first local recording service; determining that a second local recording service is currently running Obtaining a recording time range of the second local recording service, where the first local recording service is a local personal video recording cPVR service, and the second local recording service is a local time shift service, or The local recording service is a local time-shift service, and the second local recording service is a cPVR service; receiving a recording start time or recording of the first local recording service specified by the user in the recording time range of the second local recording service Translating, according to the recording start time of the specified first local recording service, the content recorded by the second local recording service between the recording start time and the current time of the first local recording service into a Decoding the content of the first local recording service, starting the first local recording service; or placing the second local recording service in the first local recording service according to the recording time period of the specified first local recording service The content recorded during the recording period is converted into the recording content of the first local recording service.
在第一方面的第一种可能的实现方式中, 所述第一本地录制业务为本 地时移业务, 所述第二本地录制业务为 cPVR业务; 所述接收用户在所述第 二本地录制业务的当前录制时间范围中指定的第一本地录制业务的录制起 始时间或录制时间段包括: 接收用户在所述第二本地录制业务的当前录制 时间范围中指定的距离当前时间小于时移时长的录制起始时间。  In a first possible implementation manner of the first aspect, the first local recording service is a local time shift service, the second local recording service is a cPVR service, and the receiving user is in the second local recording service. The recording start time or the recording time period of the first local recording service specified in the current recording time range includes: receiving the distance specified by the user in the current recording time range of the second local recording service, the current time is less than the time shift duration Recording start time.
结合第一方面或第一方面的第一种可能的实现方式, 在第二种可能的 实现方式中, 所述将所述第二本地录制业务在所述第一本地录制业务的录 制起始时间至当前时间之间录制的内容转换为所述第一本地录制业务的录 制内容包括: 将所述第二本地录制业务在所述第一本地录制业务的录制起 始时间至当前时间之间录制的内容保存到所述第一本地录制业务的录制目 录中; 将所述第二本地录制业务在所述第一本地录制业务的录制时间段内 录制的内容转换为所述第一本地录制业务的录制内容包括: 将所述第二本 地录制业务在所述第一本地录制业务的录制时间段内录制的内容保存到所 述第一本地录制业务的录制目录中。  With reference to the first aspect, or the first possible implementation manner of the first aspect, in a second possible implementation, the recording start time of the second local recording service in the first local recording service Converting the content recorded between the current time to the recorded content of the first local recording service includes: recording the second local recording service between the recording start time and the current time of the first local recording service Saving the content to the recording directory of the first local recording service; converting the content recorded by the second local recording service during the recording period of the first local recording service into the recording of the first local recording service The content includes: saving the content recorded by the second local recording service in the recording period of the first local recording service to the recording directory of the first local recording service.
结合第一方面或第一方面的第一种可能或第二种可能的实现方式, 在 第三种可能的实现方式中, 所述接收用户在所述第二本地录制业务的当前 录制时间范围中指定的第一本地录制业务的录制起始时间或录制时间段之 前还包括: 获取所述第二本地录制业务的当前录制时间范围中的节目播放 时间信息; 所述接收用户在所述第二本地录制业务的当前录制时间范围中 指定的第一本地录制业务的录制起始时间或录制时间段包括: 接收用户根 据所述第二本地录制业务的当前录制时间范围中的节目播放时间信息在所 述第二本地录制业务的当前录制时间范围中指定的第一本地录制业务的录 制起始时间或录制时间段。 With reference to the first aspect or the first possible or the second possible implementation manner of the first aspect, in a third possible implementation manner, the receiving user is in a current recording time range of the second local recording service The recording start time or the recording time period of the specified first local recording service further includes: acquiring program play time information in a current recording time range of the second local recording service; the receiving user is in the second local Recording the current recording time range of the service The recording start time or the recording time period of the specified first local recording service includes: receiving, by the user, the current recording of the second local recording service according to the program playing time information in the current recording time range of the second local recording service The recording start time or recording time period of the first local recording service specified in the time range.
第二方面, 本发明实施例提供的实现本地录制业务的设备包括: 用户交互单元, 用于接收用户的启动第一本地录制业务的指令, 并将 所述启动第一本地录制业务的指令传送给确定单元;  In a second aspect, the device for implementing a local recording service according to the embodiment of the present invention includes: a user interaction unit, configured to receive an instruction of a user to start a first local recording service, and transmit the instruction for starting the first local recording service to Determining unit;
所述确定单元, 用于从所述用户交互单元接收所述启动第一本地录制 业务的指令, 以及根据所述启动第一本地录制业务的指令确定当前正在运 行第二本地录制业务, 并将所述确定当前正在运行第二本地录制业务的结 果发送给获取单元,其中,所述第一本地录制业务为本地个人视频录制 cPVR 业务, 所述第二本地录制业务为本地时移业务, 或者, 所述第一本地录制 业务为本地时移业务时, 所述第二本地录制业务为 cPVR业务;  The determining unit is configured to receive, by the user interaction unit, the instruction to start the first local recording service, and determine, according to the instruction to start the first local recording service, that the second local recording service is currently running, and The result of determining that the second local recording service is currently running is sent to the acquiring unit, where the first local recording service records a cPVR service for the local personal video, and the second local recording service is a local time shift service, or When the first local recording service is a local time shift service, the second local recording service is a cPVR service;
所述获取单元, 用于从所述确定单元接收所述确定当前正在运行第二 本地录制业务的结果, 并根据所述确定当前正在运行第二本地录制业务的 结果获取所述第二本地录制业务的录制时间范围;  The obtaining unit is configured to receive, by the determining unit, the result that the second local recording service is currently running, and obtain the second local recording service according to the result that the second local recording service is currently running. Recording time range;
所述用户交互单元, 还用于接收用户在所述第二本地录制业务的当前 录制时间范围中指定的第一本地录制业务的录制起始时间或录制时间段, 以及将所述第一本地录制业务的录制起始时间或录制时间段发送给录制单 元;  The user interaction unit is further configured to receive a recording start time or a recording time period of the first local recording service specified by the user in a current recording time range of the second local recording service, and record the first local recording The recording start time or recording time period of the service is sent to the recording unit;
所述录制单元, 用于从所述用户交互单元接收所述第一本地录制业务 的录制起始时间或录制时间段, 以及根据所述指定的第一本地录制业务的 录制起始时间将所述第二本地录制业务在所述第一本地录制业务的录制起 始时间至当前时间之间录制的内容转换为所述第一本地录制业务的录制内 容, 启动所述第一本地录制业务; 或者根据所述指定的第一本地录制业务 的录制时间段将所述第二本地录制业务在所述第一本地录制业务的录制时 间段内录制的内容转换为所述第一本地录制业务的录制内容。  The recording unit is configured to receive, from the user interaction unit, a recording start time or a recording time period of the first local recording service, and according to the recording start time of the specified first local recording service, Converting, by the second local recording service, the content recorded between the recording start time and the current time of the first local recording service to the recorded content of the first local recording service, starting the first local recording service; or according to The recording time period of the specified first local recording service converts the content recorded by the second local recording service in the recording period of the first local recording service into the recording content of the first local recording service.
在第二方面的第一种可能的实现方式中, 所述第一本地录制业务为本 地时移业务, 所述第二本地录制业务为 cPVR业务;  In a first possible implementation manner of the second aspect, the first local recording service is a local time shift service, and the second local recording service is a cPVR service;
所述用户交互单元用于接收用户在所述第二本地录制业务的当前录制 时间范围中指定的第一本地录制业务的录制起始时间或录制时间段包括: 所述用户交互单元, 用于接收用户在所述第二本地录制业务的当前录制时 间范围中指定的距离当前时间小于时移时长的录制起始时间。 The user interaction unit is configured to receive a current recording of a user in the second local recording service. The recording start time or the recording time period of the first local recording service specified in the time range includes: the user interaction unit, configured to receive a distance current time specified by the user in a current recording time range of the second local recording service The recording start time is less than the time shift duration.
结合第二方面或第二方面的第一种可能的实现方式, 在第二种可能的 实现方式中, 所述录制单元, 用于根据所述指定的第一本地录制业务的录 制起始时间将所述第二本地录制业务在所述第一本地录制业务的录制起始 时间至当前时间之间录制的内容转换为所述第一本地录制业务的录制内容 包括: 所述录制单元, 用于根据所述指定的第一本地录制业务的录制起始 时间将所述第二本地录制业务在所述第一本地录制业务的录制起始时间至 当前时间之间录制的内容保存到所述第一本地录制业务的录制目录中; 所述录制单元, 用于根据所述指定的第一本地录制业务的录制时间段 将所述第二本地录制业务在所述第一本地录制业务的录制时间段内录制的 内容转换为所述第一本地录制业务的录制内容包括: 所述录制单元, 用于 根据所述指定的第一本地录制业务的录制时间段将所述第二本地录制业务 在所述第一本地录制业务的录制时间段内录制的内容保存到所述第一本地 录制业务的录制目录中。  With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation, the recording unit is configured to: according to the recording start time of the specified first local recording service The recording of the content recorded by the second local recording service between the recording start time and the current time of the first local recording service into the recording content of the first local recording service includes: the recording unit, configured to The recording start time of the specified first local recording service saves the content recorded by the second local recording service between the recording start time and the current time of the first local recording service to the first local The recording unit is configured to record the second local recording service during the recording period of the first local recording service according to the recording time period of the specified first local recording service. Converting the content to the recorded content of the first local recording service includes: the recording unit, configured to perform, according to the specified first local recording Recording of the service period of the second local content recorded on the first local traffic service record of saving the recorded period of time recorded to the first recording directory of local service record.
结合第二方面或第二方面的第一种可能或第二种可能的实现方式, 在 第三种可能的实现方式中: 所述获取单元, 还用于接收用户在所述第二本 地录制业务的当前录制时间范围中指定的第一本地录制业务的录制起始时 间或录制时间段之前获取所述第二本地录制业务的当前录制时间范围中的 节目播放时间信息;  With reference to the second aspect or the first possible or the second possible implementation manner of the second aspect, in a third possible implementation manner, the acquiring unit is further configured to receive, by the user, the second local recording service Obtaining the program play time information in the current recording time range of the second local recording service before the recording start time or the recording time period of the first local recording service specified in the current recording time range;
所述用户交互单元, 用于接收用户在所述第二本地录制业务的当前录 制时间范围中指定的第一本地录制业务的录制起始时间或录制时间段包 括: 所述用户交互单元, 用于接收用户根据所述第二本地录制业务的当前 录制时间范围中的节目播放时间信息在所述第二本地录制业务的当前录制 时间范围中指定的第一本地录制业务的录制起始时间或录制时间段。  The user interaction unit, configured to receive a recording start time or a recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service, where the user interaction unit is configured to: Receiving a recording start time or a recording time of the first local recording service specified by the user in the current recording time range of the second local recording service according to the program playing time information in the current recording time range of the second local recording service segment.
由以上技术方案可以看出, 由于本发明实施例利用接收到启动第一本 地录制业务的指令后, 确定当前正在运行第二本地录制业务, 获取第二本 地录制业务的录制时间范围, 接收用户在所述录制时间范围中指定的第一 本地录制业务的录制起始时间或录制时间段, 根据所述录制起始时间将第 二本地录制业务在所述录制起始时间至当前时间之间录制的内容转换为第 一本地录制业务的录制内容, 启动所述第一本地录制业务, 或者根据所述 录制时间段将所述第二本地录制业务在所述录制时间段内录制的内容转换 为所述第一本地录制业务的录制内容, 从而实现了能够录制到当前时间之 前的内容, 即录制更多的内容, 从而为用户提供更好的业务体验。 It can be seen from the above technical solution that, after receiving the instruction to start the first local recording service, the embodiment of the present invention determines that the second local recording service is currently running, and obtains the recording time range of the second local recording service, and the receiving user is The recording start time or the recording time period of the first local recording service specified in the recording time range, according to the recording start time Converting, by the local recording service, the content recorded between the recording start time and the current time into the recorded content of the first local recording service, starting the first local recording service, or according to the recording time period The content recorded by the two local recording services during the recording period is converted into the recorded content of the first local recording service, thereby realizing that the content can be recorded before the current time, that is, recording more content, thereby providing the user with A better business experience.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例提供的本地录制业务的实现方法流程图; 图 2为本发明实施例提供的本地录制业务的实现方法流程图; 图 3为本发明另一个实施例提供的本地录制业务的实现方法流程图; 图 4为本发明实施例提供的实现本地录制业务的设备的结构图; 图 5 为本发明实施例提供的基于计算机系统的实现本地录制业务的设 备的结构图。  1 is a flowchart of a method for implementing a local recording service according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for implementing a local recording service according to an embodiment of the present invention; FIG. 3 is a local recording service according to another embodiment of the present invention; FIG. 4 is a structural diagram of an apparatus for implementing a local recording service according to an embodiment of the present invention; FIG. 5 is a structural diagram of an apparatus for implementing a local recording service based on a computer system according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了本地录制业务的实现方法,请参照图 1 , 该方法包 括:  The embodiment of the present invention provides a method for implementing a local recording service. Referring to FIG. 1, the method includes:
步骤 101 : 接收用户的启动第一本地录制业务的指令。  Step 101: Receive an instruction of the user to start the first local recording service.
步骤 102 : 确定当前正在运行第二本地录制业务, 获取所述第二本地录 制业务的录制时间范围, 其中, 所述第一本地录制业务为本地个人视频录 制 cPVR业务, 所述第二本地录制业务为本地时移业务, 或者, 所述第一本 地录制业务为本地时移业务, 所述第二本地录制业务为 cPVR业务。 Step 102: Determine that the second local recording service is currently running, and obtain the recording time range of the second local recording service, where the first local recording service records a cPVR service for the local personal video, and the second local recording service For the local time shift service, or the first The local recording service is a local time shift service, and the second local recording service is a cPVR service.
步骤 1 03 :接收用户在所述第二本地录制业务的当前录制时间范围中指 定的第一本地录制业务的录制起始时间或录制时间段。  Step 1 03: Receive a recording start time or a recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service.
其中, 当所述第一本地录制业务为本地时移业务, 所述第二本地录制 业务为 cPVR业务时, 该步骤具体为: 接收用户在所述第二本地录制业务的 当前录制时间范围中指定的距离当前时间小于时移时长的录制起始时间。  When the first local recording service is a local time shift service, and the second local recording service is a cPVR service, the step is specifically: the receiving user specifies the current recording time range of the second local recording service. The distance from the current time is less than the recording start time of the time shift.
可选的, 步骤 1 03之前还可以包括: 获取所述第二本地录制业务的当 前录制时间范围中的节目播放时间信息; 步骤 1 03具体为: 接收用户根据 所述第二本地录制业务的当前录制时间范围中的节目播放时间信息在所述 第二本地录制业务的当前录制时间范围中指定的第一本地录制业务的录制 起始时间或录制时间段  Optionally, before step 133, the method further includes: acquiring program play time information in a current recording time range of the second local recording service; Step 203 is specifically: receiving, by the user, the current local recording service according to the current The program play time information in the recording time range is the recording start time or the recording time period of the first local recording service specified in the current recording time range of the second local recording service.
步骤 1 04 :根据所述指定的第一本地录制业务的录制起始时间将所述第 二本地录制业务在所述第一本地录制业务的录制起始时间至当前时间之间 录制的内容转换为所述第一本地录制业务的录制内容, 启动所述第一本地 录制业务; 或者根据所述指定的第一本地录制业务的录制时间段将所述第 二本地录制业务在所述第一本地录制业务的录制时间段内录制的内容转换 为所述第一本地录制业务的录制内容。  Step 1104: Convert, according to the recording start time of the specified first local recording service, the content recorded by the second local recording service between the recording start time and the current time of the first local recording service to Recording content of the first local recording service, starting the first local recording service; or recording the second local recording service in the first local recording according to the recording time period of the specified first local recording service The content recorded during the recording period of the service is converted into the recorded content of the first local recording service.
其中, 步骤 1 04 中将所述第二本地录制业务在所述第一本地录制业务 的录制起始时间至当前时间之间录制的内容转换为所述第一本地录制业务 的录制内容具体为: 将所述第二本地录制业务在所述第一本地录制业务的 录制起始时间至当前时间之间录制的内容保存到所述第一本地录制业务的 录制目录中; 将所述第二本地录制业务在所述第一本地录制业务的录制时 间段内录制的内容转换为所述第一本地录制业务的录制内容具体为: 将所 述第二本地录制业务在所述第一本地录制业务的录制时间段内录制的内容 保存到所述第一本地录制业务的录制目录中。  The recording of the content recorded by the second local recording service between the recording start time and the current time of the first local recording service into the recording content of the first local recording service is specifically as follows: Saving the content recorded by the second local recording service between the recording start time and the current time of the first local recording service into the recording directory of the first local recording service; and recording the second local recording The recording of the content recorded in the recording period of the first local recording service into the recording content of the first local recording service is specifically: recording the second local recording service in the first local recording service The content recorded in the time period is saved in the recording directory of the first local recording service.
根据用户选择或系统设置, 在第一本地录制业务启动后, 第二本地录 制业务可以继续, 也可以终止。  According to the user selection or system setting, after the first local recording service is started, the second local recording service may continue or terminate.
本发明另一个实施例提供了本地录制业务的实现方法流程图, 请参照 图 2 , 具体流程包括:  Another embodiment of the present invention provides a flowchart for implementing a local recording service. Referring to FIG. 2, the specific process includes:
步骤 201 : 在播放直播节目过程中, 终端接收到用户的启动第一本地录 制业务, 即 cPVR业务的指令。 Step 201: During the process of playing the live program, the terminal receives the first local record of the user's activation. The business, that is, the instructions of the cPVR business.
具体的, 可以是用户在观看直播节目过程中, 对当前节目比较感兴趣、 或者对刚才结束的节目比较感兴趣期望录制下来以后观看时, 通过按录制 键实时启动 cPVR业务进行录制。  Specifically, the user may be interested in the current program during the process of watching the live program, or may be interested in the program just finished, and when the user wants to record and watch the movie, the cPVR service is started in real time by pressing the record button.
步骤 202: 判断是否正在运行第二本地录制业务, 在本实施例中为本地 时移业务, 如果是, 则进入步骤 203, 如果不是, 则进入步骤 209。  Step 202: Determine whether the second local recording service is running, in this embodiment, the local time shift service. If yes, go to step 203. If not, go to step 209.
具体的, 可以是终端根据任务管理器或业务状态机判断当前是否正在 运行本地时移业务。  Specifically, the terminal may determine, according to the task manager or the service state machine, whether the local time shift service is currently running.
其中, 当前正在运行的第二本地录制业务, 也包括在当前时间结束的 第二本地录制业务。  The second local recording service that is currently running also includes the second local recording service that ends at the current time.
步骤 203: 获取本地时移业务的录制时间范围、 即时移范围。  Step 203: Obtain a recording time range and an instantaneous shift range of the local time shift service.
具体的, 可以是从本地时移业务的业务状态机获取录制时间范围、 即 时移范围。  Specifically, the recording time range, that is, the time shift range, may be obtained from the service state machine of the local time shift service.
例如, 在本实施例中, 当前时间为 10: 00, 本地时移业务的时移范围为 8: 00-10: 00。  For example, in this embodiment, the current time is 10: 00, and the time shift range of the local time shift service is 8: 00-10: 00.
以下步骤 204为可选步骤。  The following step 204 is an optional step.
步骤 204:获取本地时移业务的录制时间范围内包含的节目的播放时间 信息。  Step 204: Acquire broadcast time information of a program included in a recording time range of the local time shift service.
具体的, 该步骤的实现方法为: 根据节目单中节目的播放时间信息, 获取本地时移业务的录制时间范围内包含的节目的播放时间信息。  Specifically, the method is implemented as follows: According to the playing time information of the program in the program list, the playing time information of the program included in the recording time range of the local time shift service is obtained.
例如, 在本实施例的第一个例子中, 录制时间范围内包含两个节目 P1 和 P2的部分内容, 其中节目 P1的播放时间为 7: 30-9: 40, 节目 P2的播放 时间为 9: 40-11: 00。  For example, in the first example of the embodiment, the content of the two programs P1 and P2 is included in the recording time range, wherein the playing time of the program P1 is 7:30-9:40, and the playing time of the program P2 is 9. : 40-11: 00.
例如, 在本实施例的第二个例子中, 录制时间范围内包含节目 P1和节 目 P3 的部分内容, 以及节目 P2 的完整内容, 其中节目 P1 的播放时间为 7: 00-8: 10, 节目 P2 的播放时间为 8: 10-9: 50, 节目 P3 的播放时间为 9: 50-11: 00。  For example, in the second example of the embodiment, the part of the content of the program P1 and the program P3 is included in the recording time range, and the complete content of the program P2, wherein the program P1 is played at a time of 7: 00-8: 10, the program The playback time of P2 is 8: 10-9: 50, and the playback time of program P3 is 9: 50-11: 00.
例如, 在本实施例的第三个例子中, 录制时间范围只包含节目 P1的部 分内容, 节目 P1的播放时间为 7: 40-11: 00。 步骤 205: 呈现提示信息, 所述提示信息用于提示用户指定从当前时间 开始录制或在本地时移业务的录制时间范围中指定录制起始时间或在录制 时间范围中指定录制时间段。 For example, in the third example of the embodiment, the recording time range includes only part of the content of the program P1, and the playing time of the program P1 is 7: 40-11: 00. Step 205: Presenting prompt information, the prompt information is used to prompt the user to specify the recording start time from the current time or specify the recording start time in the recording time range of the local time shift service or specify the recording time period in the recording time range.
具体的, 终端可以呈现本地时移业务的录制时间范围, 并呈现用于用 户指定的从当前时间开始录制、 在录制时间范围选择录制起始时间、 在录 制时间范围选择录制时间段等录制选项。  Specifically, the terminal can present the recording time range of the local time shift service, and present recording options such as user-specified recording from the current time, selecting the recording start time in the recording time range, and selecting the recording time period in the recording time range.
可选的, 当步骤 204 获取到本地时移业务的录制时间范围内包含的节 目的播放时间信息后, 步骤 205 可以是呈现获取到的节目的播放时间信息 以及提示信息, 所述提示信息用于提示用户根据所述本地时移业务的录制 时间范围内包含的节目的播放时间信息指定从当前时间开始录制或在录制 时间范围中指定录制起始时间、 或在录制时间范围中指定录制时间段。  Optionally, after the step 204 obtains the play time information of the program included in the recording time range of the local time shift service, the step 205 may be: displaying the play time information of the acquired program and the prompt information, where the prompt information is used. The user is prompted to specify the recording start time from the current time or the recording start time in the recording time range or the recording time period in the recording time range according to the playing time information of the program included in the recording time range of the local time shift service.
例如, 在本实施例的第一个例子中, 终端呈现本地时移业务的时移范 围为 8: 00-10: 00、 节目 P1 的播放时间 7: 30-9: 40、 节目 P2 的播放时间 9: 40-11 : 00 , 以及提供用户指定从当前时间开始录制、 在录制时间范围选 择录制起始时间、 在录制时间范围选择录制时间段的录制选项, 具体的, 可以是呈现四个按钮, 分别是 "从 P2起始时间开始录制"、 "从当前时间开 始录制"、 "在时移范围自定义录制起始时间" 和 "在时移范围自定义录制 时间段", 当用户选择 "在时移范围自定义录制起始时间" 或 "在时移范围 自定义录制起始时间" 按钮后, 将进一步出现输入框或者可拖动时间条, 用于指定录制起始时间或录制时间段, 输入框的有效输入值或者可拖动时 间条在 8: 00-10: 00之间。  For example, in the first example of the embodiment, the time shift range of the terminal presenting the local time shift service is 8: 00-10: 00, the play time of the program P1 is 7: 30-9: 40, and the play time of the program P2. 9: 40-11: 00, and provide a recording option that the user specifies to start recording from the current time, select the recording start time in the recording time range, and select the recording time period in the recording time range. Specifically, four buttons can be presented. They are "recording from the start time of P2", "recording from current time", "custom recording start time in time shift range" and "custom recording time period in time shift range", when the user selects "at" After the time shift range custom recording start time " or "time shift range custom recording start time" button, the input box or draggable time bar will appear further to specify the recording start time or recording time period. The valid input value or draggable time bar of the input box is between 8: 00-10: 00.
例如, 在本实施例的第二个例子中, 终端呈现本地时移业务的时移范 围为 8: 00-10: 00、 节目 P1的播放时间 7: 00-8: 10, 节目 P2的播放时间为 8: 10-9: 50, 节目 P3的播放时间为 9: 50-11: 00, 以及提供用户指定从当前 时间开始录制、 在录制时间范围选择录制起始时间、 在录制时间范围选择 录制时间段的录制选项, 具体的, 可以是提供五个按钮, 分别是 "录制节 目 P2"、 "从 P3起始时间开始录制"和 "从当前时间开始录制"、 "在时移范 围自定义录制起始时间" 和 "在时移范围自定义录制时间段", 当用户选择 "在时移范围自定义录制起始时间" 或 "在时移范围自定义录制起始时间" 按钮后, 将进一步出现输入框或者可拖动时间条, 用于指定录制起始时间 或录制时间段,输入框的有效输入值或者可拖动时间条在 8: 00-10: 00之间。 例如, 在本实施例的第三个例子中, 终端呈现本地时移业务的时移范 围为 8: 00-10: 00、 节目 P1的播放时间 7: 40-11: 00, 以及提供用户指定从 当前时间开始录制、 在录制时间范围选择录制起始时间、 在录制时间范围 选择录制时间段的录制选项, 具体的, 可以是提供四个按钮, 分别是 "从 时移左边界开始录制"、 "从当前时间开始录制"、 "在时移范围自定义录制 起始时间" 和 "在时移范围自定义录制时间段", 当用户选择 "在时移范围 自定义录制起始时间" 或 "在时移范围自定义录制起始时间" 按钮后, 将 进一步出现输入框或者可拖动时间条, 用于指定录制起始时间或录制时间 段, 输入框的有效输入值或者可拖动时间条在 8: 00-10: 00之间。 For example, in the second example of the embodiment, the time shift range of the terminal presenting the local time shift service is 8: 00-10: 00, the play time of the program P1 is 7: 00-8: 10, and the play time of the program P2 is For 8: 10-9: 50, the playback time of program P3 is 9: 50-11: 00, and the user is specified to start recording from the current time, select the recording start time in the recording time range, and select the recording time in the recording time range. The recording options of the segment, specifically, can be provided with five buttons, namely "recording program P2", "recording from the start time of P3" and "recording from the current time", "custom recording in the time shift range" Start time "and" in the time shift range custom recording time period", will appear further when the user selects "Custom recording start time in time shift range" or "Custom recording start time in time shift range" button Input box or draggable time bar for specifying the recording start time Or the recording time period, the valid input value of the input box or the draggable time bar is between 8: 00-10: 00. For example, in the third example of the embodiment, the terminal presents a time shift range of the local time shift service of 8: 00-10: 00, a play time of the program P1 of 7: 40-11: 00, and provides a user designation from The current time starts recording, selects the recording start time in the recording time range, and selects the recording time of the recording time period in the recording time range. Specifically, four buttons can be provided, which are "recording from the left edge of the time shift", " Recording from the current time ", "In the time shift range Custom recording start time" and "In the time shift range Custom recording time period", when the user selects "In the time shift range Custom recording start time" or "At After the time shift range custom recording start time" button, the input box or draggable time bar will appear further, which is used to specify the recording start time or recording time period, the valid input value of the input box or the draggable time bar is 8: 00-10: 00.
步骤 206: 接收到用户根据提示信息进行的选择, 判断用户选择的录制 选项, 如果用户选择的是从当前时间开始录制, 则进入步骤 209 , 如果用户 在录制时间范围中指定录制起始时间, 则进入步骤 208 , 如果用户在录制时 间范围中指定选择录制时间段, 则进入步骤 207。  Step 206: Receiving a selection made by the user according to the prompt information, determining a recording option selected by the user. If the user selects to start recording from the current time, the process proceeds to step 209, and if the user specifies the recording start time in the recording time range, Proceeding to step 208, if the user specifies the selected recording time period in the recording time range, the process proceeds to step 207.
例如, 在本实施例的第一个、 第二个、 第三个例子中, 用户点击按钮 "从当前时间开始录制", 则确定用户选择的是从当前时间开始录制, 进入 步骤 209。  For example, in the first, second, and third examples of the embodiment, the user clicks the button "record from the current time", and then determines that the user selects to start recording from the current time, and proceeds to step 209.
例如, 在本实施例的第一个、 第二个、 第三个例子中, 用户点击按钮 "在时移范围自定义录制时间段" 后出现输入框或者可拖动时间条, 允许 用户在时移范围内指定两个值分别作为录制起始时间和录制终止时间, 待 用户通过输入或拖动选择录制起始时间和录制结束时间后进入步骤 207 ;或 者第二个例子中, 用户点击按钮 "录制节目 P2" , 确定用户选择的是在录制 时间范围中选择录制时间段,且录制时间段是 P2的播放时间为 8: 10-9: 50, 进入步骤 207。  For example, in the first, second, and third examples of the embodiment, the user clicks the button "Customize the recording time period in the time shift range" and an input box or a draggable time bar appears, allowing the user to be in time. Two values are specified in the shift range as the recording start time and the recording end time, and the user proceeds to step 207 after inputting or dragging to select the recording start time and the recording end time; or in the second example, the user clicks the button" Recording the program P2", it is determined that the user selects the recording time period in the recording time range, and the recording time period is P2, the playing time is 8:10-9:50, and the process proceeds to step 207.
例如, 在本实施例的第一个、 第二个、 第三个例子中, 用户点击按钮 "在时移范围自定义录制起始时间" 后出现输入框或者可拖动时间条, 允 许用户在时移范围内指定一个值作为录制起始时间, 待用户通过输入或拖 动选择录制起始时间后进入步骤 208; 或者在本实施例的第一个例子中, 用 户点击 "从 P2起始时间开始录制", 确定用户选择的是在录制时间范围中 指定录制起始时间,且录制起始时间是 P2的起始时间 9: 40 ,进入步骤 208; 或者在本实施例的第二个例子中, 用户点击 "从 P3起始时间开始录制", 确定用户选择的是在录制时间范围中指定录制起始时间, 且录制起始时间 是 P3的起始时间 9: 50, 进入步骤 208; 或者在本实施例的第三个例子中, 用户点击 "从时移左边界开始录制", 确定用户选择的是在录制时间范围中 指定录制起始时间, 且录制起始时间是时移左边界 8: 00, 进入步骤 208。 For example, in the first, second, and third examples of the embodiment, the user clicks the button "Customize recording start time in the time shift range" to appear an input box or a draggable time bar, allowing the user to A value is specified as the recording start time in the time shift range, and the user proceeds to step 208 after inputting or dragging to select the recording start time; or in the first example of the embodiment, the user clicks "start time from P2" Start recording", determine that the user selects the recording start time in the recording time range, and the recording start time is 9:40 of the start time of P2, proceeds to step 208; Or in the second example of the embodiment, the user clicks "record from the start time of P3", determines that the user selects the recording start time in the recording time range, and the recording start time is the start of P3. Time 9:50, proceeding to step 208; or in the third example of the embodiment, the user clicks "record from the time shift left border" to determine that the user selects the recording start time in the recording time range, and The recording start time is the time shift left boundary 8: 00, and proceeds to step 208.
步骤 207:将本地时移业务在用户指定的录制时间段中录制的内容转换 为 cPVR业务的录制内容。  Step 207: Convert the content recorded by the local time shift service in the recording period specified by the user into the recorded content of the cPVR service.
步骤 207 结束后, 由于用户指定的录制时间段内容已经转换获得, 第 一本地录制业务, 即 cPVR流程结束; 根据用户选择或系统设置, 第二本地 录制业务, 即本地时移业务可以继续, 也可以终止。  After the step 207 is finished, because the content of the recording period specified by the user has been converted, the first local recording service, that is, the cPVR process ends; according to the user selection or the system setting, the second local recording service, that is, the local time shift service can continue, Can be terminated.
步骤 208:将本地时移业务在用户指定的录制起始时间至当前时间之间 录制的内容转换为 cPVR业务的录制内容, 并且还需继续从当前时间开始录 制, 因此进入步骤 209。  Step 208: Convert the content recorded by the local time shift service between the recording start time and the current time specified by the user into the recording content of the cPVR service, and further continue to record from the current time, and therefore proceeds to step 209.
其中, 步骤 207 中将本地时移业务在用户指定的录制时间段中录制的 内容转换为 cPVR业务的录制内容具体可以为: 将本地时移业务在用户指定 的录制时间段中录制的内容保存到 cPVR业务的录制目录中; 步骤 208将本 地时移业务在用户指定的录制起始时间至当前时间之间录制的内容转换为 cPVR业务的录制内容具体可以为: 将本地时移业务在用户指定选择的录制 起始时间至当前时间之间录制的内容保存到 cP VR业务的录制目录中。  The recording of the content recorded by the local time shift service in the recording period specified by the user into the recording content of the cPVR service in the step 207 may be: saving the content recorded by the local time shift service in the recording period specified by the user to In the recording directory of the cPVR service, the step 208 converts the content recorded by the local time shift service between the recording start time and the current time specified by the user into the recorded content of the cPVR service, which may be: The recorded content from the recording start time to the current time is saved to the recording directory of the cP VR service.
其中, 为了能够让 cPVR业务录制内容和本地时移业务录制内容方便互 相转换, 通常将以分片的方式录制内容, 可以按照时间或者大小进行分片, 并为每个分片建立一个索引文件, 该索引文件记录每个分片的播放起始时 间和结束时间, 例如, 分片 1. t s的播; ^始时间为 9: 00: 00, 播放结束时 间 9: 00: 10。 通常的, 一个分片的录制时长为 10s左右。 In order to enable the cPVR service recording content and the local time-shift service recording content to be easily converted, the content is usually recorded in a fragmented manner, and may be sliced according to time or size, and an index file is created for each fragment. The index file records the playback start time and end time of each slice, for example, the broadcast of the slice 1.ts; the start time is 9:00:00, and the playback end time is 9:00:10. Usually, the recording duration of a slice is about 10s.
本地时移业务为分片循环录制, 根据时移时长来删除时移范围外的分 片, cPVR业务的分片录制后保存在目录下不删除, 除非用户手工删除录制 任务对应的文件。 而且, 本地时移业务录制的内容存放在一个固定的的目 录, 每个 cPVR业务的录制任务录制的内容存放在一个单独的目录下。  The local time-shift service records the fragmented loops. The clips outside the time-shift range are deleted according to the time-shift duration. The clips of the cPVR service are saved in the directory and are not deleted unless the user manually deletes the files corresponding to the recording task. Moreover, the content recorded by the local time shift service is stored in a fixed directory, and the recorded content of each cPVR service recording task is stored in a separate directory.
播放本地时移业务或者 cPVR业务录制的文件时, 终端首先根据索引文 件计算出当前的录制文件总时长, 并把录制文件和对应的索引文件加入到 播放列表中, 自动串联起来播放。 When playing a local time shift service or a file recorded by a cPVR service, the terminal first indexes the file according to the index. The piece calculates the total duration of the current recording file, and adds the recording file and the corresponding index file to the playlist, and automatically plays it in series.
对于步骤 207将本地时移业务在用户指定的录制时间段中录制的内容 转换为 cPVR业务的录制内容, 可以的实现方式为: 终端解析本地时移录制 业务生成的索引文件, 从而查找本地时移录制业务录制的与用户指定的录 制时间段对应的所有分片; 将查找到的分片与对应的索引文件拷贝到本次 cPVR录制任务对应的目录中。 可选的, 可以对拷贝后的分片进行重命名, 例如将分片 1. t s命名为 pre l . t s , 便于系统识别该分片为从本地时移业务 转换的分片、 以及避免生成的分片重名。 拷贝结束后, 用户选择播放本次 cPVR录制任务录制的文件时, 机顶盒根据索引文件顺序播放各个分片, 和 正常的 cPVR录制播放一样。 可选的, 如果对拷贝后的分片进行了重命名, 首先播放前缀为 pre的分片。  For the step 207, the content recorded by the local time shift service in the recording period specified by the user is converted into the recorded content of the cPVR service. The implementation manner is as follows: The terminal parses the index file generated by the local time shift recording service, so as to find the local time shift. Record all the shards corresponding to the user-specified recording time period recorded by the service; copy the found shards and corresponding index files to the directory corresponding to the cPVR recording task. Optionally, the copied fragment can be renamed, for example, the fragment 1. ts is named pre l . ts , which is convenient for the system to identify the fragment as a fragment converted from the local time-shifted service, and to avoid generation. The fragment is renamed. After the copy is finished, when the user chooses to play the file recorded by the cPVR recording task, the set-top box plays each slice according to the index file sequence, which is the same as the normal cPVR recording and playback. Optionally, if the copied fragment is renamed, the fragment with the prefix pre is played first.
类似的, 步骤 208将本地时移业务在用户选择的录制起始时间至当前 时间之间录制的内容转换为 cPVR业务的录制内容, 可以的实现方式为: 终 端解析本地时移录制业务生成的索引文件, 从而查找本地时移录制业务录 制的与用户指定的录制起始时间至当前时间范围对应的所有分片; 将查找 到的分片与对应的索引文件拷贝到本次 cPVR录制任务对应的目录中。  Similarly, the step 208 converts the content recorded by the local time shift service between the recording start time and the current time of the user into the recorded content of the cPVR service, and the implementation manner is as follows: The terminal parses the index generated by the local time shift recording service. File, so as to find all the fragments recorded by the local time shift recording service corresponding to the user-specified recording start time to the current time range; copy the found fragment and the corresponding index file to the directory corresponding to the current cPVR recording task. in.
步骤 209 : 启动 cPVR业务。  Step 209: Start the cPVR service.
该步骤具体为从当前时间开始录制, 并将录制的内容存放在 cPVR业务 对应的目录中。  This step specifically starts recording from the current time and stores the recorded content in the corresponding directory of the cPVR service.
根据用户选择或系统设置, 本地时移业务可以继续, 也可以终止。 启动 cPVR业务后可以是在接收到用户的结束 cPVR业务的指令后停止 录制, 例如用户通过再次按录制键结束 cPVR业务, 也可以是在当前节目结 束后自动停止录制。  The local time-shift service can continue or terminate depending on user selection or system settings. After the cPVR service is started, the recording may be stopped after receiving the user's instruction to end the cPVR service. For example, the user ends the cPVR service by pressing the recording button again, or automatically stops the recording after the current program ends.
例如, 系统设置可以是: 当步骤 202 中判断结果是当前没有运行本地 时移业务时, 或者当步骤 206 中用户选择的是从当前时间开始录制时, 在 接收到用户的结束 cPVR业务的指令后停止录制; 当通过步骤 208进入到启 动 cPVR业务步骤后, 在当前节目结束后自动停止录制。  For example, the system setting may be: when the judgment result in step 202 is that the local time shift service is not currently running, or when the user selects to start recording from the current time in step 206, after receiving the user's instruction to end the cPVR service, The recording is stopped; when the step c208 is entered to start the cPVR service step, the recording is automatically stopped after the current program ends.
通过该实施例, 用户在观看直播频道时, 可共享 cPVR和本地时移录制 内容, 启动 cPVR业务后可以将已经启动的本地时移业务中录制的内容转换 为 cPVR业务的内容, 从而扩展补充录制已经过去的内容。 例如, 在直播节 目的播放过程中启动 cPVR , 可以补充录制当前时间前已经播放的内容, 从 而录制到完整的节目, 或者在直播节目结束后启动 cPVR , 可以补充录制该 完全结束的节目, 从而提高用户体验。 With this embodiment, the user can share cPVR and local time shift recording while watching the live channel. After the cPVR service is started, the content recorded in the local time shift service that has been started can be converted into the content of the cPVR service, thereby expanding the content of the past recording. For example, when cPVR is started during the playback of the live program, the content that has been played before the current time can be supplemented to record to the complete program, or cPVR can be started after the live program ends, and the completely finished program can be supplemented, thereby improving user experience.
本发明再一个实施例提供了本地录制业务的实现方法流程图, 请参照 图 3 , 具体流程包括: A further embodiment of the present invention provides a flowchart for implementing a local recording service. Referring to FIG. 3, the specific process includes:
步骤 301 : 在播放直播节目过程中, 终端接收到用户的启动第一本地录 制业务, 在本实施例中具体为本地时移业务的指令。  Step 301: In the process of playing the live broadcast program, the terminal receives the first local recording service initiated by the user, which is specifically an instruction of the local time shift service in this embodiment.
具体的, 可以是用户在观看直播节目过程中, 对当前节目比较感兴趣 期望通过回看的方式对当前节目反复观看时, 通过按暂停键实时启动本地 时移业务进行录制。  Specifically, the user may be interested in the current program during the process of watching the live program. When the user wants to watch the current program repeatedly by looking back, the local time shift service is started in real time by pressing the pause button.
步骤 302 : 判断是否正在运行第二本地录制业务, 即 cPVR业务, 如果 是, 则进入步骤 303 , 如果不是, 则进入步骤 308。  Step 302: Determine whether the second local recording service, that is, the cPVR service, is running, if yes, proceed to step 303, and if no, proceed to step 308.
具体的, 可以是终端根据任务管理器或业务状态机判断当前是否正在 运行 cPVR业务。  Specifically, the terminal may determine, according to the task manager or the service state machine, whether the cPVR service is currently running.
其中, 当前正在运行的第二本地录制业务, 也包括在当前时间结束的 第二本地录制业务。  The second local recording service that is currently running also includes the second local recording service that ends at the current time.
步骤 303 : 获取 cPVR业务的录制时间范围。  Step 303: Obtain a recording time range of the cPVR service.
具体的, 可以是从 cPVR业务的业务状态机获取 cPVR业务的录制时间 范围。  Specifically, the recording time range of the cPVR service is obtained from the service state machine of the cPVR service.
以下步骤 304为可选步骤。  The following step 304 is an optional step.
步骤 304 : 获取 cPVR业务的录制时间范围内包含的节目的播放时间信 息。  Step 304: Acquire broadcast time information of the program included in the recording time range of the cPVR service.
具体的, 该步骤的实现方法为: 根据节目单中节目的播放时间信息, 获取 cPVR业务的录制时间范围内包含的节目的播放时间信息。  Specifically, the method is implemented as follows: According to the playing time information of the program in the program list, the playing time information of the program included in the recording time range of the cPVR service is obtained.
例如, 在本实施例的第一个例子中, 当前时间为 1 0: 00 , 时移时长为 2 小时, cPVR业务的当前录制时间范围为 6: 00-1 0: 00 , 且录制时间范围内包 含两个节目 PI和 P2的部分内容, 其中节目 P1的播放时间为 6: 00-9: 00, P2的播放时间为 9: 00-11: 00。 For example, in the first example of the embodiment, the current time is 1 0: 00, the time shift duration is 2 hours, and the current recording time range of the cPVR service is 6: 00-1 0: 00, and the recording time range is included. The content of the two programs PI and P2, wherein the playing time of the program P1 is 6: 00-9: 00, and the playing time of the P2 is 9: 00-11: 00.
例如, 在本实施例的第二个例子中, 当前时间为 10: 00, 时移时长为 2 小时, cPVR业务的当前录制时间范围为 9: 00-10: 00, 且录制时间范围内包 含节目 P1的部分内容, 其中节目 P1的播放时间为 8: 00-11: 00。  For example, in the second example of the embodiment, the current time is 10: 00, the time shift period is 2 hours, and the current recording time range of the cPVR service is 9: 00-10: 00, and the program includes the program within the recording time range. Part of the content of P1, wherein the playing time of the program P1 is 8: 00-11: 00.
步骤 305: 呈现提示信息, 所述提示信息用于提示用户选择从当前时间 开始录制或在 cPVR业务的录制时间范围中指定距离当前时间小于时移时长 的录制起始时间。  Step 305: Presenting prompt information, the prompt information is used to prompt the user to select a recording start time from the current time or specify a distance in the recording time range of the cPVR service that is less than the current time.
具体的, 终端可以呈现 cPVR业务的录制时间范围、 时移时长, 并呈现 用于用户选择从当前时间开始录制、 在 cPVR业务的录制时间范围中指定距 离当前时间 d、于时移时长的录制起始时间的录制选项。  Specifically, the terminal can display the recording time range and the time shift duration of the cPVR service, and present the recording for the user to select to start recording from the current time, specify the distance from the current time d in the recording time range of the cPVR service, and the time shift duration. Recording options for the beginning time.
可选的, 当步骤 304获取到 cPVR业务的录制时间范围内包含的节目的 播放时间信息后, 步骤 305 可以是呈现获取到的节目的播放时间信息以及 提示信息, 所述提示信息用于提示用户根据所述 cPVR业务的录制时间范围 内包含的节目的播放时间信息选择从当前时间开始录制或在当前录制时间 范围中指定距离当前时间小于时移时长的录制起始时间。  Optionally, after the step 304 obtains the play time information of the program included in the recording time range of the cPVR service, the step 305 may be: displaying the played time information of the acquired program and the prompt information, where the prompt information is used to prompt the user. The recording start time from the current time is selected according to the play time information of the program included in the recording time range of the cPVR service or the recording start time is shorter than the current time in the current recording time range.
例如, 在本实施例的第一个例子中, 终端呈现 cPVR业务的录制时间范 围为 6: 00-10: 00、 节目 P1的播放时间为 6: 00-9: 00、 节目 P2的播放时间 为 9: 00-11: 00, 以及提供用户选择从当前时间开始录制、 在当前录制时间 范围指定距离当前时间小于时移时长的录制起始时间的录制选项, 具体的, 可以是呈现三个按钮, 分别是 "从当前时间开始录制"、 "从 P2起始时间开 始录制"、 "在时移范围自定义录制起始时间", 当用户选择 "在时移范围自 定义录制起始时间" 按钮后, 将进一步出现输入框或者可拖动时间条, 用 于指定选择录制起始时间, 输入框的有效输入值或者可拖动时间条在 8: 00-10: 00之间。  For example, in the first example of the embodiment, the recording time range of the terminal presenting the cPVR service is 6: 00-10: 00, the playing time of the program P1 is 6: 00-9: 00, and the playing time of the program P2 is 9: 00-11: 00, and a recording option that provides a user to select a recording start time that is recorded from the current time and specifies a distance from the current recording time range that is less than the current time. Specifically, three buttons may be presented. They are "recording from current time", "recording from P2 start time", "custom recording start time in time shift range", when the user selects "custom recording start time in time shift range" button , the input box or draggable time bar will be further displayed to specify the recording start time, the valid input value of the input box or the draggable time bar is between 8: 00-10: 00.
例如, 在本实施例的第二个例子中, 终端呈现 cPVR业务的录制时间范 围为 9: 00-10: 00、 节目 P1的播放时间为 8: 00-11: 00, 以及提供用户选择 从当前时间开始录制、 在当前录制时间范围指定距离当前时间小于时移时 长的录制起始时间的录制选项, 具体的, 可以是呈现三个按钮, 分别是 "从 当前时间开始录制"、 "从 cPVR左边界开始录制"、 "在时移范围自定义录制 起始时间", 当用户选择 "在时移范围自定义录制起始时间" 按钮后, 将进 一步出现输入框或者可拖动时间条, 用于指定录制起始时间, 输入框的有 效输入值或者可拖动时间条在 9: 00-10: 00之间。 For example, in the second example of the embodiment, the recording time range of the terminal presenting the cPVR service is 9: 00-10: 00, the playing time of the program P1 is 8: 00-11: 00, and the user selection is provided from the current The time starts recording, and the recording time is specified in the current recording time range. The recording time is shorter than the recording time of the recording time. Specifically, three buttons can be displayed, which are "recording from the current time" and "from the cPVR left". Boundary starts recording "," custom recording in time shift range Start time", when the user selects the "Customize recording start time in time shift range" button, the input box or draggable time bar will appear further, which is used to specify the recording start time, the valid input value of the input box or The draggable time bar is between 9: 00-10: 00.
步骤 306: 接收到用户根据提示信息进行的选择, 判断用户选择的是否 从当前时间开始录制, 如果是, 则进入步骤 308 , 如果不是, 则进入步骤 307。  Step 306: Receiving a selection made by the user according to the prompt information, determining whether the user selects to start recording from the current time, and if yes, proceeding to step 308, and if not, proceeding to step 307.
具体的, 可以是根据用户选择的录制选项判断用户选择的是从当前时 间开始录制或者在 cPVR业务的录制时间范围中指定距离当前时间小于时移 时长的录制起始时间。  Specifically, it may be determined according to the recording option selected by the user that the user selects to start recording from the current time or specify a recording start time in which the current time is less than the time shift duration in the recording time range of the cPVR service.
例如, 在本实施例的第一个、 第二个例子中, 用户点击按钮 "从当前 时间开始录制", 则进入步骤 308。  For example, in the first and second examples of the embodiment, the user clicks the button "record from the current time", and proceeds to step 308.
例如, 在本实施例的第一个、 第二个例子中, 用户点击按钮 "在时移 范围自定义录制起始时间" 后出现输入框或者可拖动时间条, 允许用户在 时移范围内指定一个距离当前时间小于时移时长的值作为录制起始时间, 待用户通过输入或拖动选择录制起始时间后进入步骤 307;或者在本实施例 的第一个例子中, 用户点击 "从 P2起始时间开始录制", 确定用户选择的 录制起始时间是 P2的起始时间 9: 00, 进入步骤 307 ; 或者在本实施例的第 二个例子中, 用户点击 "从 cPVR左边界开始录制", 确定用户指定的录制 起始时间是 cPVR的录制起始时间 9: 00 , 进入步骤 307;  For example, in the first and second examples of the embodiment, the user clicks the button "Customize the recording start time in the time shift range" and an input box or a draggable time bar appears, allowing the user to be within the time shift range. Specifying a value that is less than the current time from the current time as the recording start time, and after the user selects the recording start time by inputting or dragging, proceeds to step 307; or in the first example of the embodiment, the user clicks "from "P2 start time starts recording", it is determined that the recording start time selected by the user is 9:00 of the start time of P2, and proceeds to step 307; or in the second example of the embodiment, the user clicks "starts from the left boundary of cPVR" Recording, determining that the recording start time specified by the user is the recording start time of the cPVR 9: 00, proceeds to step 307;
步骤 307: 将 cPVR业务在用户指定的录制起始时间至当前时间之间录 制的内容转换为本地时移业务的录制内容。  Step 307: Convert the content recorded by the cPVR service between the recording start time and the current time specified by the user into the recording content of the local time shift service.
该步骤具体可以为, 将所述 cPVR业务在用户指定的录制起始时间至当 前时间之间录制的内容保存到所述本地时移业务的录制目录中。  The step may specifically be: saving the content recorded by the cPVR service between the recording start time and the current time specified by the user into the recording directory of the local time shift service.
其中, 为了便于 cPVR业务录制内容和本地时移业务录制内容方便互相 转换, 通常采用分片的方式进行内容的录制, 并且为每个分片建立一个索 引文件。 该步骤可以的实现方式为: 终端解析 cPVR业务生成的索引文件, 从而查找 cPVR业务录制的与用户指定的录制起始时间至当前时间范围对应 的所有分片; 将查找到的分片与对应的索引文件拷贝到本地时移业务对应 的目录中。 详细描述可以参考图 2对应实施例的步骤 207和步骤 208的描 述。 步骤 308: 启动本地时移业务。 In order to facilitate the conversion between the recorded content of the cPVR service and the recorded content of the local time-shifted service, the content is usually recorded in a fragmented manner, and an index file is created for each fragment. The step can be implemented as follows: The terminal parses the index file generated by the cPVR service, and searches for all the fragments recorded by the cPVR service corresponding to the user-specified recording start time to the current time range; The index file is copied to the directory corresponding to the local time shift service. For a detailed description, reference may be made to the description of steps 207 and 208 of the corresponding embodiment of FIG. 2. Step 308: Start the local time shift service.
该步骤具体为从当前时间开始录制, 并将录制的内容存放在本地时移 业务对应的目录中。  This step specifically starts recording from the current time and stores the recorded content in the directory corresponding to the local time shift service.
根据用户选择或系统设置, cPVR业务可以继续, 也可以终止。  The cPVR service can continue or terminate depending on user selection or system settings.
启动本地时移业务后可以是在用户切换频道后或者断电后自动停止。  After the local time shift service is started, it can be automatically stopped after the user switches channels or after power off.
通过该实施例, 用户在观看直播频道时, 可共享 cPVR和本地时移录制 内容, 启动本地时移业务后可以将已经启动的 cPVR业务中录制的内容转换 为本地时移业务的内容, 从而补充录制已经过去的内容, 扩大了时移范围, 例如, 在直播节目的播放过程中启动本地时移业务时, 可以补充录制当前 时间前已经播放的内容, 使得用户能够从当前节目的起始点开始时移, 从 而提高用户体验。 With this embodiment, when the user watches the live channel, the user can share the cPVR and the local time-shifted recording content, and after the local time-shift service is started, the content recorded in the activated cPVR service can be converted into the content of the local time-shift service, thereby supplementing Recording the past content, expanding the time shift range. For example, when the local time shift service is started during the playback of the live program, the content that has been played before the current time can be supplemented, so that the user can start from the starting point of the current program. Move to improve the user experience.
本发明一个实施例提供了实现本地录制业务的设备,请参照图 4 , 该设 备 400包括: An embodiment of the present invention provides a device for implementing a local recording service. Referring to FIG. 4, the device 400 includes:
用户交互单元 401 , 用于接收用户的启动第一本地录制业务的指令, 并 将所述启动第一本地录制业务的指令传送给确定单元;  The user interaction unit 401 is configured to receive an instruction of the user to start the first local recording service, and transmit the instruction for starting the first local recording service to the determining unit;
确定单元 402 ,用于从所述用户交互单元 401接收所述启动第一本地录 制业务的指令, 以及根据所述启动第一本地录制业务的指令确定当前正在 运行第二本地录制业务, 并将所述确定当前正在运行第二本地录制业务的 结果发送给获取单元, 其中, 所述第一本地录制业务为本地个人视频录制 cPVR业务, 所述第二本地录制业务为本地时移业务, 或者, 所述第一本地 录制业务为本地时移业务时, 所述第二本地录制业务为 cPVR业务;  The determining unit 402 is configured to receive, by the user interaction unit 401, the instruction to start the first local recording service, and determine, according to the instruction to start the first local recording service, that the second local recording service is currently running, and The result of determining that the second local recording service is currently running is sent to the acquiring unit, where the first local recording service records a cPVR service for the local personal video, and the second local recording service is a local time shift service, or When the first local recording service is a local time shift service, the second local recording service is a cPVR service;
获取单元 403 ,用于从所述确定单元 402接收所述确定当前正在运行第 二本地录制业务的结果, 并根据所述确定当前正在运行第二本地录制业务 的结果获取所述第二本地录制业务的录制时间范围;  The obtaining unit 403 is configured to receive, by the determining unit 402, the result that the second local recording service is currently running, and obtain the second local recording service according to the result that the second local recording service is currently running. Recording time range;
用户交互单元 401 ,还用于接收用户在所述第二本地录制业务的当前录 制时间范围中指定的第一本地录制业务的录制起始时间或录制时间段, 以 及将所述第一本地录制业务的录制起始时间或录制时间段发送给录制单 元; 录制单元 404 ,用于从所述用户交互单元 401接收所述第一本地录制业 务的录制起始时间或录制时间段, 以及根据所述指定的第一本地录制业务 的录制起始时间将所述第二本地录制业务在所述第一本地录制业务的录制 起始时间至当前时间之间录制的内容转换为所述第一本地录制业务的录制 内容, 启动所述第一本地录制业务; 或者根据所述指定的第一本地录制业 务的录制时间段将所述第二本地录制业务在所述第一本地录制业务的录制 时间段内录制的内容转换为所述第一本地录制业务的录制内容。 可选的, 所述第一本地录制业务为本地时移业务, 所述第二本地录制 业务为 cPVR业务; 所述用户交互单元 401用于接收用户在所述第二本地录 制业务的当前录制时间范围中指定的第一本地录制业务的录制起始时间或 录制时间段包括: 所述用户交互单元 401 , 用于接收用户在所述第二本地录 制业务的当前录制时间范围中指定的距离当前时间小于时移时长的录制起 始时间。 可选的, 录制单元 404 , 用于根据所述指定的第一本地录制业务的录制 起始时间将所述第二本地录制业务在所述第一本地录制业务的录制起始时 间至当前时间之间录制的内容转换为所述第一本地录制业务的录制内容包 括: 录制单元 404 , 用于根据所述指定的第一本地录制业务的录制起始时间 将所述第二本地录制业务在所述第一本地录制业务的录制起始时间至当前 时间之间录制的内容保存到所述第一本地录制业务的录制目录中; The user interaction unit 401 is further configured to receive a recording start time or a recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service, and the first local recording service The recording start time or recording time period is sent to the recording unit; The recording unit 404 is configured to receive, from the user interaction unit 401, a recording start time or a recording time period of the first local recording service, and according to the recording start time of the specified first local recording service. Converting, by the second local recording service, the content recorded between the recording start time and the current time of the first local recording service to the recorded content of the first local recording service, starting the first local recording service; or according to The recording time period of the specified first local recording service converts the content recorded by the second local recording service in the recording period of the first local recording service into the recording content of the first local recording service. Optionally, the first local recording service is a local time shift service, and the second local recording service is a cPVR service; the user interaction unit 401 is configured to receive a current recording time of the second local recording service by the user. The recording start time or the recording time period of the first local recording service specified in the range includes: the user interaction unit 401, configured to receive a distance current time specified by the user in a current recording time range of the second local recording service The recording start time is less than the time shift duration. Optionally, the recording unit 404 is configured to: record, according to the recording start time of the specified first local recording service, the recording start time of the first local recording service to the current time. Converting the recorded content to the recording content of the first local recording service includes: a recording unit 404, configured to: report the second local recording service according to the recording start time of the specified first local recording service The content recorded between the recording start time and the current time of the first local recording service is saved in the recording directory of the first local recording service;
录制单元 404 ,用于根据所述指定的第一本地录制业务的录制时间段将 所述第二本地录制业务在所述第一本地录制业务的录制时间段内录制的内 容转换为所述第一本地录制业务的录制内容包括: 录制单元 404 , 用于根据 所述指定的第一本地录制业务的录制时间段将所述第二本地录制业务在所 述第一本地录制业务的录制时间段内录制的内容保存到所述第一本地录制 业务的录制目录中。  The recording unit 404 is configured to convert, according to the specified recording period of the first local recording service, the content recorded by the second local recording service in the recording period of the first local recording service into the first Recording content of the local recording service includes: a recording unit 404, configured to record the second local recording service in a recording period of the first local recording service according to the recording time period of the specified first local recording service The content is saved to the recording directory of the first local recording service.
可选的, 获取单元 403 ,还用于接收用户在所述第二本地录制业务的当 前录制时间范围中指定的第一本地录制业务的录制起始时间或录制时间段 之前获取所述第二本地录制业务的当前录制时间范围中的节目播放时间信 息; 用户交互单元 401 , 用于接收用户在所述第二本地录制业务的当前录制 时间范围中指定的第一本地录制业务的录制起始时间或录制时间段包括: 用户交互单元 401 ,用于接收用户根据所述第二本地录制业务的当前录制时 间范围中的节目播放时间信息在所述第二本地录制业务的当前录制时间范 围中指定的第一本地录制业务的录制起始时间或录制时间段。 Optionally, the obtaining unit 403 is further configured to: receive, by the user, the second local before the recording start time or the recording time period of the first local recording service specified in the current recording time range of the second local recording service. Recording time letter of the recording in the current recording time range of the service The user interaction unit 401, configured to receive a recording start time or a recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service, includes: a user interaction unit 401, configured to: Receiving a recording start time or a recording time of the first local recording service specified by the user in the current recording time range of the second local recording service according to the program playing time information in the current recording time range of the second local recording service segment.
本发明实施例的实现本地录制业务的设备中各单元分别用于实现前述 本地录制业务实现方法的各步骤的功能, 由于在前述方法实施例中, 已经 对各步骤进行了详细说明, 在此不再贅述。 The units in the device for implementing the local recording service in the embodiment of the present invention are respectively used to implement the functions of the steps of the foregoing local recording service implementation method. Since the steps have been described in detail in the foregoing method embodiments, Let me repeat.
本发明实施例中的实现本地录制业务的设备可以基于计算机系统来实 现, 图 1、 图 2、 图 3所示的方法均可在基于计算机系统的本地录制业务相 互转换的设备来实现。 图 5 示出了基于计算机系统来实现本地录制业务的 设备的实施例。本实施例中实现本地录制业务的设备可以包括:处理器 501、 存储器 502和通信接口 503 , 其中:  The device for realizing the local recording service in the embodiment of the present invention may be implemented based on a computer system, and the methods shown in FIG. 1, FIG. 2, and FIG. 3 may be implemented in a device that converts the local recording service based on the computer system. Figure 5 illustrates an embodiment of a device that implements local recording services based on a computer system. The device for implementing the local recording service in this embodiment may include: a processor 501, a memory 502, and a communication interface 503, where:
通信接口 503 , 用于与用户通信。 UCB平台与用户之间交互的消息(如 方法实施例图 1、 2、 3所示) 均通过通信接口 503发送和接收。 具体地, 通信接口 503 用于接收用户的启动第一本地录制业务的指令; 存储器 502 用于存储程序指令以及第一本地录制业务、 第二本地录制业务录制的内容; 处理器 501 用于接收用户的启动第一本地录制业务的指令之后, 调用存储 器 502 中存储的程序指令, 执行如下操作: 确定当前正在运行第二本地录 制业务, 获取所述第二本地录制业务的录制时间范围, 其中, 所述第一本 地录制业务为本地个人视频录制 cPVR业务, 所述第二本地录制业务为本地 时移业务, 或者, 所述第一本地录制业务为本地时移业务, 所述第二本地 录制业务为 cPVR业务; 接收用户在所述第二本地录制业务的录制时间范围 中指定的第一本地录制业务的录制起始时间或录制时间段; 根据所述指定 的第一本地录制业务的录制起始时间将所述第二本地录制业务在所述第一 本地录制业务的录制起始时间至当前时间之间录制的内容转换为所述第一 本地录制业务的录制内容, 启动所述第一本地录制业务; 或者根据所述指 定的第一本地录制业务的录制时间段将所述第二本地录制业务在所述第一 本地录制业务的录制时间段内录制的内容转换为所述第一本地录制业务的 录制内容。 The communication interface 503 is configured to communicate with a user. The messages exchanged between the UCB platform and the user (as shown in Figures 1, 2, and 3 of the method embodiment) are both transmitted and received through the communication interface 503. Specifically, the communication interface 503 is configured to receive an instruction of the user to initiate the first local recording service; the memory 502 is configured to store the program instruction and the content recorded by the first local recording service and the second local recording service; and the processor 501 is configured to receive the user. After the instruction of the first local recording service is started, the program instruction stored in the memory 502 is invoked, and the following operations are performed: determining that the second local recording service is currently running, and acquiring the recording time range of the second local recording service, where The first local recording service records the cPVR service for the local personal video, the second local recording service is the local time shift service, or the first local recording service is the local time shift service, and the second local recording service is a recording start time or a recording time period of the first local recording service specified by the user in the recording time range of the second local recording service; and a recording start time according to the specified first local recording service And the second local recording service is in the first local recording service. Converting the content recorded between the recording start time and the current time into the recorded content of the first local recording service, starting the first local recording service; or according to the recording time period of the specified first local recording service Converting the content recorded in the recording period of the first local recording service to the content of the first local recording service Recording content.
其中,处理器 501可以是中央处理器( central processing unit, CPU), 专用集成电路 ( appl icat ion - specif ic integrated circuit, ASIC )等。 其中, 本实施例中的 UCB平台可以包括总线 504。 处理器 501、 存储器 502 以及通信接口 503之间可通过总线 504连接并通信。 其中, 存储器 502可 以包括: 随机存取存储器 (random access memory, RAM), 只读存储器 ( read-only memory, ROM), 磁盘等具有存储功能的实体;  The processor 501 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or the like. The UCB platform in this embodiment may include a bus 504. The processor 501, the memory 502, and the communication interface 503 can be connected and communicated via the bus 504. The memory 502 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
处理器 501还可以用于执行方法实施例中图 1、 图 2、 图 3描述的相关 的实现本地录制业务的设备各步骤, 本发明实施例在此不再详述。  The processor 501 can also be used to perform the steps of the device for implementing the local recording service described in FIG. 1 , FIG. 2 and FIG. 3 in the embodiment of the method, and the embodiments of the present invention are not described in detail herein.
以上对本发明所提供的一种进行了详细介绍, 本文中应用了具体个例 对本发明的原理及实施方式进行了阐述, 以上实施例的说明只是用于帮助 理解本发明的方法及其核心思想; 同时, 对于本领域的一般技术人员, 依 据本发明的思想, 在具体实施方式及应用范围上均会有改变之处, 综上所 述, 本说明书内容不应理解为对本发明的限制。  The foregoing provides a detailed description of the present invention. The principles and embodiments of the present invention are described herein with reference to specific examples. The description of the above embodiments is only to assist in understanding the method of the present invention and its core ideas; In the meantime, the present invention is not limited by the scope of the present invention.

Claims

权利要求 Rights request
1、 一种本地录制业务的实现方法, 其特征在于, 所述方法包括: 接收用户的启动第一本地录制业务的指令; 1. A method for implementing a local recording service, characterized in that the method includes: receiving a user's instruction to start the first local recording service;
确定当前正在运行第二本地录制业务, 获取所述第二本地录制业务的 录制时间范围, 其中, 所述第一本地录制业务为本地个人视频录制 cPVR 业务, 所述第二本地录制业务为本地时移业务, 或者, 所述第一本地录制 业务为本地时移业务, 所述第二本地录制业务为 cPVR业务; Determine that the second local recording service is currently running, and obtain the recording time range of the second local recording service, where the first local recording service is a local personal video recording cPVR service, and the second local recording service is local time time-shift service, or, the first local recording service is a local time-shift service, and the second local recording service is a cPVR service;
接收用户在所述第二本地录制业务的录制时间范围中指定的第一本地 录制业务的录制起始时间或录制时间段; Receive the recording start time or recording time period of the first local recording service specified by the user in the recording time range of the second local recording service;
根据所述指定的第一本地录制业务的录制起始时间将所述第二本地录 制业务在所述第一本地录制业务的录制起始时间至当前时间之间录制的内 容转换为所述第一本地录制业务的录制内容, 启动所述第一本地录制业务; 或者根据所述指定的第一本地录制业务的录制时间段将所述第二本地录制 业务在所述第一本地录制业务的录制时间段内录制的内容转换为所述第一 本地录制业务的录制内容。 Convert the content recorded by the second local recording service between the recording start time of the first local recording service and the current time according to the specified recording start time of the first local recording service into the first the recording content of the local recording service, start the first local recording service; or set the second local recording service to the recording time of the first local recording service according to the specified recording time period of the first local recording service The recorded content in the segment is converted into the recorded content of the first local recording service.
2、 根据权利要求 1所述的方法, 其特征在于: 2. The method according to claim 1, characterized in that:
所述第一本地录制业务为本地时移业务, 所述第二本地录制业务为 cPVR业务; The first local recording service is a local time-shift service, and the second local recording service is a cPVR service;
所述接收用户在所述第二本地录制业务的当前录制时间范围中指定的 第一本地录制业务的录制起始时间或录制时间段包括: The recording start time or recording time period of the first local recording service specified by the receiving user in the current recording time range of the second local recording service includes:
接收用户在所述第二本地录制业务的当前录制时间范围中指定的距离 当前时间小于时移时长的录制起始时间。 The distance specified by the user in the current recording time range of the second local recording service is received. The current time is less than the recording start time of the time shift length.
3、 根据权利要求 1或 2所述的方法, 其特征在于: 3. The method according to claim 1 or 2, characterized in that:
所述将所述第二本地录制业务在所述第一本地录制业务的录制起始时 间至当前时间之间录制的内容转换为所述第一本地录制业务的录制内容包 括: 将所述第二本地录制业务在所述第一本地录制业务的录制起始时间至 当前时间之间录制的内容保存到所述第一本地录制业务的录制目录中; 将所述第二本地录制业务在所述第一本地录制业务的录制时间段内录 制的内容转换为所述第一本地录制业务的录制内容包括: 将所述第二本地 录制业务在所述第一本地录制业务的录制时间段内录制的内容保存到所述 第一本地录制业务的录制目录中。 Converting the content recorded by the second local recording service between the recording start time of the first local recording service and the current time into the recorded content of the first local recording service includes: converting the second local recording service into the recorded content of the first local recording service. The content recorded by the local recording service between the recording start time of the first local recording service and the current time is saved in the recording directory of the first local recording service; and the second local recording service is stored in the recording directory of the first local recording service. Converting the content recorded within the recording time period of a local recording service into the recording content of the first local recording service includes: converting the content recorded by the second local recording service within the recording time period of the first local recording service. Save to the In the recording directory of the first local recording service.
4、 根据权利要求 1、 2或 3所述的方法, 其特征在于: 4. The method according to claim 1, 2 or 3, characterized in that:
所述接收用户在所述第二本地录制业务的当前录制时间范围中指定的 第一本地录制业务的录制起始时间或录制时间段之前还包括: 获取所述第 二本地录制业务的当前录制时间范围中的节目播放时间信息; Before the recording start time or recording time period of the first local recording service specified by the receiving user in the current recording time range of the second local recording service, the method further includes: obtaining the current recording time of the second local recording service. Program broadcast time information in the range;
所述接收用户在所述第二本地录制业务的当前录制时间范围中指定的 第一本地录制业务的录制起始时间或录制时间段包括: 接收用户根据所述 第二本地录制业务的当前录制时间范围中的节目播放时间信息在所述第二 本地录制业务的当前录制时间范围中指定的第一本地录制业务的录制起始 时间或录制时间段。 The recording start time or recording time period of the first local recording service specified by the receiving user in the current recording time range of the second local recording service includes: The receiving user determines the current recording time of the second local recording service according to The program playback time information in the range specifies the recording start time or recording time period of the first local recording service in the current recording time range of the second local recording service.
5、 一种实现本地录制业务的设备, 其特征在于, 所述设备包括: 用户交互单元, 用于接收用户的启动第一本地录制业务的指令, 并将 所述启动第一本地录制业务的指令传送给确定单元; 5. A device for implementing a local recording service, characterized in that the device includes: a user interaction unit, configured to receive a user's instruction to start the first local recording service, and to process the instruction to start the first local recording service. transmitted to the determination unit;
所述确定单元, 用于从所述用户交互单元接收所述启动第一本地录制 业务的指令, 以及根据所述启动第一本地录制业务的指令确定当前正在运 行第二本地录制业务, 并将所述确定当前正在运行第二本地录制业务的结 果发送给获取单元, 其中, 所述第一本地录制业务为本地个人视频录制 cPVR业务, 所述第二本地录制业务为本地时移业务, 或者, 所述第一本地 录制业务为本地时移业务时, 所述第二本地录制业务为 cPVR业务; The determining unit is configured to receive the instruction to start the first local recording service from the user interaction unit, and determine that the second local recording service is currently running according to the instruction to start the first local recording service, and store the instruction to start the first local recording service. The result of determining that the second local recording service is currently running is sent to the acquisition unit, wherein the first local recording service is a local personal video recording cPVR service, the second local recording service is a local time-shift service, or, the When the first local recording service is a local time-shift service, the second local recording service is a cPVR service;
所述获取单元, 用于从所述确定单元接收所述确定当前正在运行第二 本地录制业务的结果, 并根据所述确定当前正在运行第二本地录制业务的 结果获取所述第二本地录制业务的录制时间范围; The obtaining unit is configured to receive the result of determining that the second local recording service is currently running from the determining unit, and obtain the second local recording service based on the result of determining that the second local recording service is currently running. recording time range;
所述用户交互单元, 还用于接收用户在所述第二本地录制业务的当前 录制时间范围中指定的第一本地录制业务的录制起始时间或录制时间段, 以及将所述第一本地录制业务的录制起始时间或录制时间段发送给录制单 元; The user interaction unit is also configured to receive the recording start time or recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service, and record the first local recording service. The recording start time or recording time period of the service is sent to the recording unit;
所述录制单元, 用于从所述用户交互单元接收所述第一本地录制业务 的录制起始时间或录制时间段, 以及根据所述指定的第一本地录制业务的 录制起始时间将所述第二本地录制业务在所述第一本地录制业务的录制起 始时间至当前时间之间录制的内容转换为所述第一本地录制业务的录制内 容, 启动所述第一本地录制业务; 或者根据所述指定的第一本地录制业务 的录制时间段将所述第二本地录制业务在所述第一本地录制业务的录制时 间段内录制的内容转换为所述第一本地录制业务的录制内容。 The recording unit is configured to receive the recording start time or recording time period of the first local recording service from the user interaction unit, and record the first local recording service according to the specified recording start time. The content recorded by the second local recording service between the recording start time of the first local recording service and the current time is converted into the recorded content of the first local recording service, and the first local recording service is started; or according to The designated first local recording service The recording time period converts the content recorded by the second local recording service in the recording time period of the first local recording service into the recorded content of the first local recording service.
6、 根据权利要求 5所述的设备, 其特征在于: 6. The device according to claim 5, characterized in that:
所述第一本地录制业务为本地时移业务, 所述第二本地录制业务为 cPVR业务; The first local recording service is a local time-shift service, and the second local recording service is a cPVR service;
所述用户交互单元用于接收用户在所述第二本地录制业务的当前录制 时间范围中指定的第一本地录制业务的录制起始时间或录制时间段包括: 所述用户交互单元, 用于接收用户在所述第二本地录制业务的当前录制时 间范围中指定的距离当前时间小于时移时长的录制起始时间。 The user interaction unit is configured to receive the recording start time or recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service. The user interaction unit is configured to receive The recording start time specified by the user in the current recording time range of the second local recording service is less than the time shift length from the current time.
7、 根据权利要求 5或 6所述的设备, 其特征在于: 7. The device according to claim 5 or 6, characterized in that:
所述录制单元, 用于根据所述指定的第一本地录制业务的录制起始时 间将所述第二本地录制业务在所述第一本地录制业务的录制起始时间至当 前时间之间录制的内容转换为所述第一本地录制业务的录制内容包括: 所 述录制单元, 用于根据所述指定的第一本地录制业务的录制起始时间将所 述第二本地录制业务在所述第一本地录制业务的录制起始时间至当前时间 之间录制的内容保存到所述第一本地录制业务的录制目录中; The recording unit is configured to record the second local recording service between the recording start time of the first local recording service and the current time according to the designated recording start time of the first local recording service. Converting the content into the recording content of the first local recording service includes: the recording unit, configured to convert the second local recording service to the first local recording service according to the designated recording start time of the first local recording service. The content recorded between the recording start time of the local recording service and the current time is saved in the recording directory of the first local recording service;
所述录制单元, 用于根据所述指定的第一本地录制业务的录制时间段 将所述第二本地录制业务在所述第一本地录制业务的录制时间段内录制的 内容转换为所述第一本地录制业务的录制内容包括: 所述录制单元, 用于 根据所述指定的第一本地录制业务的录制时间段将所述第二本地录制业务 在所述第一本地录制业务的录制时间段内录制的内容保存到所述第一本地 录制业务的录制目录中。 The recording unit is configured to convert the content recorded by the second local recording service within the recording time period of the first local recording service into the third local recording service according to the specified recording time period of the first local recording service. The recording content of a local recording service includes: the recording unit, configured to record the second local recording service in the recording time period of the first local recording service according to the specified recording time period of the first local recording service. The recorded content is saved in the recording directory of the first local recording service.
8、 根据权利要求 5、 6或 7所述设备, 其特征在于: 8. The device according to claim 5, 6 or 7, characterized in that:
所述获取单元, 还用于接收用户在所述第二本地录制业务的当前录制 时间范围中指定的第一本地录制业务的录制起始时间或录制时间段之前获 取所述第二本地录制业务的当前录制时间范围中的节目播放时间信息; 所述用户交互单元, 用于接收用户在所述第二本地录制业务的当前录 制时间范围中指定的第一本地录制业务的录制起始时间或录制时间段包 括: 所述用户交互单元, 用于接收用户根据所述第二本地录制业务的当前 录制时间范围中的节目播放时间信息在所述第二本地录制业务的当前录制 时间范围中指定的第一本地录制业务的录制起始时间或录制时间段。 The obtaining unit is also configured to receive the recording start time or recording time period of the first local recording service specified by the user in the current recording time range of the second local recording service to obtain the second local recording service. Program playback time information in the current recording time range; The user interaction unit is used to receive the recording start time or recording time of the first local recording service specified by the user in the current recording time range of the second local recording service The section includes: the user interaction unit, configured to receive the first program specified by the user in the current recording time range of the second local recording service based on the program playback time information in the current recording time range of the second local recording service. The recording start time or recording time period of the local recording service.
PCT/CN2013/084684 2013-05-29 2013-09-30 Local recording service realizing method and apparatus WO2014190650A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310206778.3A CN103313124B (en) 2013-05-29 2013-05-29 The implementation method of local recoding service and device
CN201310206778.3 2013-05-29

Publications (1)

Publication Number Publication Date
WO2014190650A1 true WO2014190650A1 (en) 2014-12-04

Family

ID=49137828

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/084684 WO2014190650A1 (en) 2013-05-29 2013-09-30 Local recording service realizing method and apparatus

Country Status (2)

Country Link
CN (1) CN103313124B (en)
WO (1) WO2014190650A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313124B (en) * 2013-05-29 2016-08-10 华为技术有限公司 The implementation method of local recoding service and device
CN103686290A (en) * 2013-12-27 2014-03-26 乐视致新电子科技(天津)有限公司 Method and device for controlling video delayed playing of intelligent television by mobile communication terminal
CN105635746B (en) * 2014-11-07 2019-10-25 南京中兴软件有限责任公司 The recording processing of TVOD recording task, recording method and device, system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001184753A (en) * 1999-12-22 2001-07-06 Funai Electric Co Ltd Video recording reservation setting device
US20030152360A1 (en) * 2002-02-14 2003-08-14 Toshirou Mukai Time-series data recording device and time-series data recording method
CN1791202A (en) * 2004-12-15 2006-06-21 联想(北京)有限公司 Method for recording program
CN101841681A (en) * 2009-03-21 2010-09-22 中兴通讯股份有限公司 Method and device for recording mobile multimedia broadcast program
CN103313124A (en) * 2013-05-29 2013-09-18 华为技术有限公司 Local recording service implementation method and local recording service implementation device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100428789C (en) * 2005-03-31 2008-10-22 联想(北京)有限公司 Method and system for realizing pre-recording based on electronic program guide information
CN1856064A (en) * 2005-04-26 2006-11-01 联想(北京)有限公司 Method for recording program from different place

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001184753A (en) * 1999-12-22 2001-07-06 Funai Electric Co Ltd Video recording reservation setting device
US20030152360A1 (en) * 2002-02-14 2003-08-14 Toshirou Mukai Time-series data recording device and time-series data recording method
CN1791202A (en) * 2004-12-15 2006-06-21 联想(北京)有限公司 Method for recording program
CN101841681A (en) * 2009-03-21 2010-09-22 中兴通讯股份有限公司 Method and device for recording mobile multimedia broadcast program
CN103313124A (en) * 2013-05-29 2013-09-18 华为技术有限公司 Local recording service implementation method and local recording service implementation device

Also Published As

Publication number Publication date
CN103313124B (en) 2016-08-10
CN103313124A (en) 2013-09-18

Similar Documents

Publication Publication Date Title
US11687313B2 (en) Audio file processing to reduce latencies in play start times for cloud served audio files
US8392505B2 (en) Collaborative playlist management
JP6506800B2 (en) System and method for outputting multilingual audio and ancillary audio from a single container
US9800923B2 (en) Systems and methods for recording content from a different source when previous content runs over
US20140288686A1 (en) Methods, systems, devices and computer program products for managing playback of digital media content
CN103338407B (en) A kind of method of television set and TV set for browsing channel
WO2007121289A2 (en) Portable media player enabled to obtain previews of media content
US20070245378A1 (en) User system providing previews to an associated portable media player
EP1700306A1 (en) Device for storing and playing back digital content and method of bookmarking digital content
CN102055717A (en) Quick playing method, terminal and server
WO2014190650A1 (en) Local recording service realizing method and apparatus
WO2011150648A1 (en) Method and system for providing preview video, media server and playing terminal
CN106576181B (en) Method, apparatus and medium for reverse recording
JP2015119286A (en) Content server, content reproduction device, content reproduction control method, and content reproduction control program
US20120176872A1 (en) Continuous Playback on an Optical Media Disc Player
WO2013123723A1 (en) Method for searching related information of digital television programs and digital television receiving terminal
WO2012068979A1 (en) Method and apparatus for mobile phone multimedia program preview
JP2008306260A (en) Digest reproducing device, and content distribution server
CN106686435A (en) Multimedia video file playing method, apparatus and TV terminal
JP6328489B2 (en) Music reproduction system based on station information, music reproduction apparatus, and station information transfer method
JP2008259075A (en) Content playback apparatus, content playback method, content playback system, content playback program and recording medium
EP2140677B1 (en) Method and apparatus for playback of content items
JP2007096664A (en) Data reproducing device
JP2016092599A (en) Digital broadcast reproduction device and digital broadcast reproduction method
JP2006189487A (en) Server system, portable terminal device, and program

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: 13885906

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: 13885906

Country of ref document: EP

Kind code of ref document: A1