CN107613321A - A kind of method of program recording and device - Google Patents
A kind of method of program recording and device Download PDFInfo
- Publication number
- CN107613321A CN107613321A CN201610545460.1A CN201610545460A CN107613321A CN 107613321 A CN107613321 A CN 107613321A CN 201610545460 A CN201610545460 A CN 201610545460A CN 107613321 A CN107613321 A CN 107613321A
- Authority
- CN
- China
- Prior art keywords
- file
- files
- program
- recording
- recorded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a kind of method of program recording and device, the method for program recording, to carry out video playback for DVB audio/video player systems and OTT TV play systems simultaneously, hardware cost is reduced.The method of program recording includes:According to the IP multicast signals received, program is recorded according to default recording duration, generates corresponding recorded file, the recorded file includes transport stream TS file;The TS files virtual dividing is cut into slices for several TS according to default section duration;Virtual sliced sheet file is generated according to position of each TS sections in the TS files.
Description
Technical field
The present invention relates to internet television technology, more particularly to a kind of method of program recording and device.
Background technology
With the development of Internet technology, (Digital Video Broadcasting, digital video are wide by traditional DVB
Broadcast) video playback can not meet the needs of user, user wishes can be by TV set-top box, PC (Personal
Computer, PC) and the terminal such as mobile phone watch TV programme, in this way, there is OTT (Over The Top) TV
(internet television).
OTT TV are the video frequency programs by the Internet transmission, such as PPS (PPS Web TVs), UUSEE (long-drawn-out view network electricity
Depending on) etc. platform content transmission on display screen (including TV), its terminal can be television set, computer, set top box, PAD,
Smart mobile phone etc..
In traditional DVB video playbacks, after video is modulated by IPQAM, it is transmitted by CHINA RFTCOM Co Ltd, machine
Top box realizes video playback by frequency locking.In OTT TV video playbacks, video typically uses HTTP (HyperText
Transfer Protocol, HTTP) mode carry out video playback, basic agreement has HLS (http live
Streaming, Streaming transfer protocol) agreement.
HLS be Apple Inc. realize the Streaming transfer protocol based on HTTP, can be achieved the live of Streaming Media, time shift,
Review and program request, realize that code check is adaptive.HLS protocol is divided into main m3u8, sub- m3u8 and TS section three parts.Main m3u8 descriptions should
All code rate informations of program, it includes all sub- m3u8 request address;Sub- m3u8 describes the information of all TS sections, bag
Include the request address of TS sections;TS sections are specific media data, can be with independent play-out.
When being played out using HLS, video playback can be realized by following three step:The first step, the main m3u8 of client request;
Second step, parses main m3u8, and client selects a kind of code check, obtain the sub- m3u8 texts of the code check according to the network condition of oneself
Part;3rd step, client obtain the broadcast address of TS sections, then ask small TS sections file successively by parsing sub- m3u8
Play out.
However, in the prior art, either DVB video playbacks or OTT TV video playbacks, for direct broadcast band
Record, DVB and OTT TV recording mode is different, need to separate and record.The recording of corresponding DVB direct broadcast bands, according to program
Singly recorded, corresponding TS (Transport Stream) file of program, while generate index file and F.F. is fast
Move back file.Recording for OTT TV direct broadcast bands, a TS file is generated per 10s.DVB had not only been supported to play but also prop up for one
In the system for holding OTT TV, respective recording mode must be also used when recording direct broadcast band, i.e., for DVB should be supported again
OTT TV channel is supported, it is necessary to preserve two parts of recorded files, causes waste of storage space, and needs more record to take
Business device, adds hardware cost and management cost.
The content of the invention
The embodiment of the present invention provides a kind of method of program recording and device, while supplies DVB audio/video player systems and OTT TV
Play system carries out video playback, reduces hardware cost.
The embodiment of the present invention provides a kind of method of program recording, including:
According to the Internet protocol IP multicast signal received, program is recorded according to default recording duration, generated
Corresponding recorded file, the recorded file include transport stream TS file;
The TS files virtual dividing is cut into slices for several TS according to default section duration;
Virtual sliced sheet file is generated according to position of each TS sections in the TS files.
The embodiment of the present invention provides a kind of performance recording device, including:
Recording elements, the Internet protocol IP multicast signal received for basis, according to default recording duration to program
Recorded, generate corresponding recorded file, the recorded file includes transport stream TS file;
Cutting unit, for the TS files virtual dividing to be cut into slices for several TS according to default section duration;
Generation unit, for generating virtual sliced sheet file according to position of each TS sections in the TS files.
Beneficial effect of the present invention includes:
Method of program recording and device provided in an embodiment of the present invention, are recorded according to default recording time to program,
Corresponding recorded file is generated, the recorded file includes transport stream TS file, for DVB video playbacks;In order to make recording
Video is played for OTT TV, and the TS files virtual dividing of generation is cut into slices for several TS according to default section duration.And according to
Position generation virtual sliced sheet file of each TS sections in the TS files, plays for OTT TV and uses, ensure that DVB and OTT
TV plays a public performance recording file, reduces performance recording cost.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the present invention, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 a are the implementation process diagram of method of program recording provided in an embodiment of the present invention;
Fig. 1 b are the naming method implementing procedure signal of recorded file in method of program recording provided in an embodiment of the present invention
Figure;
Fig. 1 c are the implementation process diagram that program identification is determined in method of program recording provided in an embodiment of the present invention;
Fig. 1 d are the implementing procedure signal that virtual sliced sheet file is generated in method of program recording provided in an embodiment of the present invention
Figure;
Fig. 2 is the structural representation of performance recording device provided in an embodiment of the present invention;
Fig. 3 is the implementation process diagram of the player method of program of the embodiment of the present invention based on DVB play systems;
Fig. 4 a are the implementation process diagram of the player method of program of the embodiment of the present invention based on OTT play systems;
Fig. 4 b are the reality that sub- m3u8 files are generated in the player method of program of the embodiment of the present invention based on OTT play systems
Apply schematic flow sheet.
Embodiment
In order to reduce the cost of performance recording, the invention provides a kind of method of program recording and device, while for DVB and
OTT TV video playbacks.
The preferred embodiments of the present invention are illustrated below in conjunction with Figure of description, it will be appreciated that described herein
Preferred embodiment is merely to illustrate and explain the present invention, and is not intended to limit the present invention, and in the case where not conflicting, this hair
The feature in embodiment and embodiment in bright can be mutually combined.
Embodiment one,
As shown in Figure 1a, it is the implementation process diagram of method of program recording provided in an embodiment of the present invention, can includes
Following steps:
The Internet protocol IP multicast signal that S11, basis receive, program is recorded according to default recording duration,
Corresponding recorded file is generated, recorded file includes transport stream TS file.
When it is implemented, Video Record Processor receives the IP (Internet Protocol, Internet protocol) that Broadcasting Cable Network is sent
Multicast signal, after receiving IP multicast signals, Video Record Processor automatically generates recording programme, while according to default recording
Duration and record programme program is recorded, and generate corresponding recorded file, wherein, a length of 30 points during default recording
Clock, recorded file can be, but not limited to include TS (Transport Stream, transport stream) file, index file and multiple speeds
File etc..
Specifically, TS files are used for the media data information for storing program, and index file is used to record a certain of TS files
Frame of data information, for DVB positioning playings;Speed file is used to realize that DVB fast forwarding and fast rewinding to play, and it is fast to common are 4 speeds
Enter fast reverse play, the broadcasting of 8 speed fast forwarding and fast rewindings etc., according to rewind fast-forward functionality difference is realized, speed file is divided into speed F.F.
File and speed rewind file.
Further, in order that DVB playeds can both be supported by recording program, OTT TV play systems are supported again
Play, the embodiments of the invention provide a kind of recorded file naming method, wherein, recorded file can be according to as shown in Figure 1 b
Flow is named to recorded file:
S111, determine to record programm name, program identification and the file type of program respectively.
When it is implemented, each program is imparted in order to distinguish information, the Broadcasting Cable Network such as the programm name of recording program
Corresponding port numbers address, IP multicast signals are then sent to Video Record Processor by corresponding port numbers address, that is to say, that
The programm name of port numbers address and each program is one-to-one, and therefore, Video Record Processor is receiving Broadcasting Cable Network transmission
IP multicast signals when, can not only start to record program, can also draw by port numbers address needs the program
Programm name, such as CCTV1_800.
Specifically, determine to record the program identification of program according to flow as illustrated in figure 1 c in the embodiment of the present invention, can be with
Comprise the following steps:
S1111, record program is recorded at the beginning of between, the time started is converted to according to preset rules
Integer type numerical value.
When it is implemented, Video Record Processor to record program start record when, it is necessary to record recording at the beginning of between, note
When form between at the beginning of record is the xxxx-xx-xx moon, xx day;Xx points:The xx seconds, such as 2015-01-25 12:41:02, according to
Time conversion function will be converted to integer type numerical value, the physical significance of the function of time between at the beginning of record under linux system
It is the number of seconds by time structure data conversion into process, is specifically expressed as time structure data conversion into from January 1st, 1970
0 divides to count within 0 second to the UTC to be changed (Universal Time Coordinated, the general universal time coordinated) times and is passed through when 0
Number of seconds, for example, by 2015-01-25 12:41:02 is input in time conversion function and can obtain integer type numerical value and be
1422160862。
S1112, the first result of calculation obtained according to integer type numerical value and default duration of recording.
When it is implemented, default duration of recording can be, but not limited to as 30 minutes, i.e., 1800 seconds, or other any
Time, the embodiment of the present invention is to this without limiting.It is a length of when being recorded in the embodiment of the present invention with presetting for the ease of description
Illustrated exemplified by 1800 seconds.
Calculate the integer type numerical value drawn in step S1111 divided by the default result for recording duration and round, made
For time started 2015-01-25 12 in the first result of calculation, such as step S1111:41:02 conversion after integer type numerical value be
1422160862, preset a length of 1800 when recording, then the first result of calculation calculated is 1422160862/1800=
790089。
S1113, according to preset characters string and the first result of calculation obtain record program program identification.
When it is implemented, the program identification requirement for recording program is big for English and 16 bit digital combining forms, English alphabet
Small letter, the embodiment of the present invention is to this without limiting.For convenience, the embodiment of the present invention is used as predetermined word using REAL
Illustrated exemplified by symbol string.
In order to meet program identification rule, the front of inadequate 16 bit digital of the first result of calculation calculated need to be mended 0, then
790089 drawn in step S1112 need front to mend 0 and obtain 0000000000790089, splice further according to preset characters string REAL
Into the program identification for recording program, it is:REAL0000000000790089.
The method of the programm name and program identification that determine recorded file is had been described that in step S111, the present invention is in fact
Applying in example is also needed to determine the program category for recording program, and TS files, index file and again can be generated when being recorded to program
Fast file, program extension name differs corresponding to the program of different program categories, can distinguish and determine by extension name
Record the program category of program, the entitled .ts of extension, the entitled .idx of the extension of index file of such as TS files.
It should be noted that the speed file in recorded file is for realizing the rewind fast-forward functionality to recorded video,
Conventional has 2,4 or 8 speed rewind fast-forward functionalities, and according to rewind fast-forward functionality difference is realized, speed file is divided into speed F.F.
File and speed rewind file, further, because fast forwarding and fast rewinding speed is different, therefore speed F.F. file is further divided into 2
Speed F.F. file, 4 speed F.F. files and 8 speed F.F. files etc., while speed rewind file can be divided into 2 speed rewinds
File, 4 speed rewind files and 8 speed rewind files.The embodiment of the present invention is said by taking 8 speed fast forwarding and fast rewinding files as an example
It is bright, in order to preferably distinguish a few speed F.F. files and speed F.F. file, 8 speed F.F. files, 8_2 can be represented with 8_1
8 speed rewind files are represented, therefore the file type of speed file can be represented by 8_1 and/or 8_2 marks, certainly, may be used also
To represent to employ speed file in file by using other marks, the present invention is to this without limiting.
To sum up, can be to determine the programm name of recorded file, program identification and program category with Video Record Processor.
Programm name, program identification and the file type that S112, basis are determined are named to recorded file.
When it is implemented, according to the programm name, program identification and file type that are obtained in step S111, you can to recording
File starts to name, and the embodiment of the present invention is using programm name as CCTV1_800, program identification REAL0000000000790089
Exemplified by name to recorded file illustrate, because recorded file includes TS files, index file, speed file, it is ordered
Name be respectively:
TS filenames:CCTV1_800_REAL0000000000790089_ts
Index file name:CCTV1_800_REAL0000000000790089_idx
8 speed F.F. files:CCTV1_800_REAL0000000000790089_8_1
8 speed rewind files:CCTV1_800_REAL0000000000790089_8_2
Based on this, admission server starts to record program, in order that recording according to the IP multicast signals received
File can support DVB and OTT play systems simultaneously, and carry out renaming to recorded file.
S12, according to it is default section duration by TS files virtual dividing be several TS section.
In order to make performance recording file be played for OTT TV, in the embodiment of the present invention, after obtaining recorded file, also
TS files virtual dividing need to be cut into slices for several TS according to default section duration, default section duration can be, but not limited to as 10
Second, the embodiment of the present invention is to this without limiting.
For convenience, illustrated in the embodiment of the present invention when default section exemplified by a length of 10 seconds.If default cut
A length of 30 minutes, i.e., 1800 seconds during TS files, then can be that 180 TS cut into slices by TS file divisions a length of 10 seconds during piece.
S13, the position generation virtual sliced sheet file according to each TS sections in TS files.
It should be noted that naming rule and the above-mentioned generation TS files of the virtual switching file of generation, index file with
And 8 speed F.F. file and 8 speed rewind files naming rule it is identical, repeat no more here.In this example, the virtual of generation cuts
Exchange of notes part can be named as:CCTV1_800_REAL0000000000790089_vmf.
When it is implemented, virtual sliced sheet file can be generated according to the flow shown in Fig. 1 d:
S131, determine starting position and end position of every TS sections in TS files.
It is split to form because TS cuts into slices by TS files according to default section duration, when default section during a length of 10s,
Started at starting to record the moment, then using the 0th byte of TS files is cut into slices in TS as first TS since 0s in TS files
Starting position in file, the end position that the corresponding m-th byte of the TS files at the end of 10s is cut into slices as TS, in order to
Keep recording continuity when program plays, the corresponding m-th byte of the TS files at the end of 10s is cut into slices as second TS
Starting position in TS files, then cut into slices and exist as second TS by the corresponding nth byte of TS files at the end of 10s
End position in TS files, the like, the embodiment of the present invention repeats no more to this.
S132, according between at the beginning of being recorded to program and default section duration obtains the second result of calculation.
When it is implemented, with the time in step S1111 being identical between at the beginning of to performance recording, and it is also required to hold
Operation in row step S1112, integer type numerical value will be converted into the time started, be not described further herein, or to start
Time is 2015-01-25 12:41:02 and illustrated exemplified by a length of 10s during default section, then the integer type numerical value after changing
For 1422160862, using being recorded to program at the beginning of between divided by the result that draws of default section duration round as second
Result of calculation, then the second result of calculation is 1422160862/10=142216086.
S133, cut into slices for every TS, according to programm name, TS starting positions of the section in TS files and stop bits
Put and the second result of calculation generates segmentation information corresponding to TS sections;
When it is implemented, the embodiment of the present invention is that CCTV1_800, first TS cut into slices in TS files with programm name
Starting position is 0, and end position 23960976, the second result of calculation are described exemplified by 142216086, then can obtain the
The segmentation information of one TS section can be expressed as:CCTV1_800_142216086.ts0-23960976.Wherein CCTV1_
800 be programm name, and 142216086 be system time/section duration (10 seconds), behind question mark be TS sections hereof
Starting position and end position, the like, the segmentation information that other TS cut into slices can be obtained.
S134, determine that segmentation information corresponding to all TS sections forms the virtual sliced sheet file.
According to the method that any section is obtained in step S133, all TS under the recording program can be obtained by that analogy and are cut
Segmentation information corresponding to piece, segmentation information corresponding to all TS sections is then formed into virtual sliced sheet file, wherein, virtual sliced sheet
File is used to record relative position of the TS sections in TS files, according to the relative position, corresponding TS sections is found out, for OTT
System plays use.
According to embodiments of the present invention, include herein below (with CCTV1_ in the virtual sliced sheet file ultimately generated
Exemplified by 800_REAL0000000000790089_vmf files):
CCTV1_800_142216086.ts0-23960976
CCTV1_800_142216087.ts23960976-43960976
CCTV1_800_142216088.ts43960976-63960976
……。
Method of program recording provided in an embodiment of the present invention, Video Record Processor are receiving the IP multicasts letter of radio network transmission
After number, program is recorded according to default recording duration, generates corresponding recorded file, the recorded file includes transport stream
TS files, the TS files support DVB system plays;In order that obtain recorded file supports OTT system plays simultaneously, cut according to default
Piece duration cuts into slices TS files virtual dividing for several TS, and virtual sliced sheet is generated according to position of each TS sections in TS files
File, virtual sliced sheet file are used to record relative position of the TS sections in TS files, when using OTT system plays, recorded
Content of the server in virtual sliced sheet file can find corresponding to TS section, for OTT system plays use, portion record
File supports DVB and OTT play systems simultaneously, reduces recording cost.
Embodiment two,
Embodiment two provides a kind of performance recording device, because the device solves the principle of problem and above-mentioned section directory
Method processed is similar, therefore the implementation of the device may refer to the implementation of method, repeats part and repeats no more.
As shown in Fig. 2 be the structural representation of performance recording device provided in an embodiment of the present invention, including:Recording elements
21st, cutting unit 22 and generation unit 23, wherein:
Recording elements 21, the Internet protocol IP multicast signal received for basis, according to default recording duration to section
Mesh is recorded, and generates corresponding recorded file, and recorded file includes transport stream TS file.
Cutting unit 22, for TS files virtual dividing to be cut into slices for several TS according to default section duration.
Generation unit 23, for generating virtual sliced sheet file according to position of each TS sections in TS files.
When it is implemented, recording elements 21, specifically include the first determination subelement and name subelement, wherein:
First determination subelement, for determining programm name, program identification and the file type of recording program respectively.
Subelement is named, for being carried out according to programm name, program identification and the file type determined to recorded file
Name.
Specifically, the first determination subelement, specifically include:Logging modle, module and determining module are obtained, wherein:
Logging modle, for record program is recorded at the beginning of between, according to preset rules to the time started carry out
It is converted to integer type numerical value.
Module is obtained, for obtaining the first result of calculation according to integer type numerical value and default duration of recording.
Determining module, for obtaining the program identification according to preset characters string and the first result of calculation.
When it is implemented, generation unit 23, specifically includes the second determination subelement/processing subelement and the 3rd and determines that son is single
Member, wherein:
Second determination subelement, for determining starting position and end position of every TS sections in TS files;
Subelement is handled, for being cut into slices for every TS, according to the start bit of programm name, TS sections in TS files
Put and generate segmentation information corresponding to TS sections with end position and the second result of calculation;
3rd determination subelement, for determining segmentation information composition virtual sliced sheet file corresponding to all TS sections.
Wherein, virtual sliced sheet file is used to record relative position of the TS sections in TS files.
For convenience of description, above each several part is divided by function describes respectively for each module (or unit).Certainly, exist
The function of each module (or unit) can be realized in same or multiple softwares or hardware when implementing of the invention.For example, this
The performance recording device that inventive embodiments two provide can be arranged in Video Record Processor, completed by Video Record Processor to section directory
System.
Based on same inventive concept, the method for program recording and device provided according to the above embodiment of the present invention, correspondingly,
Another embodiment of the present invention also each provides corresponding program broadcasting method, due to performance recording provided in an embodiment of the present invention
The recorded file that method obtains supports DVB and OTT system plays simultaneously, therefore according to play system when program plays in the present invention
Difference, program broadcasting method is different, next in conjunction with the embodiments three and example IV be directed to DVB play systems pair respectively
Program broadcasting method provided by the invention and program broadcasting method provided by the invention is described for OTT play systems.
Embodiment three,
As shown in figure 3, the implementing procedure signal of the player method for program of the embodiment of the present invention based on DVB play systems
Figure, may comprise steps of:
S31, the DVB playing requests for recording the normal speed of program are sent to playback equipment.
When it is implemented, receiving the DVB playing requests for the normal speed that client is sent, the request can be that some is any
The recording program of period, if request time is 2015-12-01 12:00:00 arrives 2015-12-01 13:00:00, in order to retouch
State conveniently, the embodiment of the present invention illustrates by taking time period as an example.
S32, send index file download request corresponding to program.
When it is implemented, playback equipment can directly obtain the recording section when receiving the playing request for recording program
Purpose programm name, and request time, according to the naming rule of recorded file, corresponding recorded file name can be drawn.Such as:Connect
The recording programm name received is CCTV1_800, and request time section is 2015-12-01 12:00:00 arrives 2015-12-01 13:
00:00, by with time conversion function, and according to the naming method of recorded file in embodiment, recorded file name can be drawn
Two for CCTV1_800_REAL0000000000804968 and CCTV1_800_REAL0000000000804969 are recorded text
Part.Playback equipment can play both of these documents successively.Before this, playback equipment need to ask first recording to Video Record Processor
Index file corresponding to filename, such as the entitled CCTV1_800_REAL0000000000804968_idx of index file.
S33, receive the index file that Video Record Processor is sent.
Video Record Processor carries when receiving the index file download request of playback equipment transmission according in download request
Index file name, read the index file for all recording programs being locally stored, and find with playback equipment send index
Filename identical index file, is then sent to playback equipment by the index file.
The index file that S34, parsing receive, position the play position of the normal speed TS files of program.
When it is implemented, because index file is to be used to record some I frame information, for DVB system positioning playings, because
This, playback equipment parses to the index file received, navigates to the position that commences play out of client requirements, such as CCTV1_
800_REAL0000000000804968 recorded files need to commence play out from the I frame informations position navigated to.
S35, to client send IPQAM modulation intelligences.
The position for the I frame informations that playback equipment is oriented according to step S34 need to be modulated to IPQAM (Internet
Protocol Quadrature Amplitude Modulation, Internet protocol quadrature amplitude modulation) on modulator, so as to
Client-side lock frequency, realizes video request program.
It should be noted that the program stream inputted on IP backbone can be multiplexed into what is specified again by IPQAM modulators
In multi-service transport stream, then quadrature amplitude modulation and frequency change are carried out, export RF (Radio Frequency, radio frequency) signal,
Used for client.
S36, send the download request that TS files are downloaded from specified location.
The starting position of the program played according to the client requirements that are obtained in step S34, to Video Record Processor send from
Download the download request of TS files in the starting position.
S37, receive the corresponding TS files that the download request that Video Record Processor is sent according to playback equipment returns
Video Record Processor is specified after the TS file downloads request of the specified location of playback equipment transmission is received according to this
Position, such as CCTV1_800_REAL0000000000804968, found from the TS files being locally stored with being saved in file name
Mesh title and program identification identical TS files, such as CCTV1_800_REAL0000000000804968, then by the TS files
Playback equipment is sent to, playback equipment performs subsequent operation after receiving the TS files.
In addition, playback equipment may be used also before the download request that specified location downloads TS files is sent to Video Record Processor
Can directly produce the filename for the TS files for needing to download according to the specified location, such as according to CCTV1_800_
The entitled CCTV1_800_REAL0000000000804968_ of TS files that the needs of REAL0000000000804968 generations are downloaded
Ts is simultaneously sent to Video Record Processor, and Video Record Processor is found with being somebody's turn to do according to the TS filenames in all TS files being locally stored
TS filename identical TS files, and the TS files are sent to playback equipment, playback equipment performs after receiving the TS files
Subsequent operation.
S38, by the corresponding TS file datas modulates information received to IPQAM modulators.
Program is recorded in order to so allow client to be played from its desired position, playback equipment will be received with specifying
The corresponding TS files in position are modulated on IPQAM modulators, and so as to the client lock frequency, based on this, user passes through client
Hold the desired recording program of can viewing.
Further, when user thinks that skip forward/back records program, user is by remote control or miscellaneous equipment to client
Skip forward/back order is sent, playback equipment needs to perform following flows:
Speed skip forward/back file can be divided into the speed skip forward/back files such as 2,4 and 8 in the embodiment of the present invention, in order to
Description is convenient, is illustrated in the embodiment of the present invention by taking 8 speed F.F. files as an example.
S39, the DVB playing requests for recording program speed skip forward/back are sent to playback equipment.
The speed skip forward/back playing request that playback equipment is sent according to client, it is 8 speeds such as to obtain the speed file
F.F. file.
S310, according to index file, navigate to the position of the I frame informations of speed skip forward/back file.
When it is implemented, playback equipment is found based on 8 according to index file first when receiving 8 speed F.F. file
The I frame informations of speed F.F., 8 speed F.F.s are carried out based on the I frame informations, CCTV1_800_ is identified as such as I frame informations
REAL0000000000804968。
S311, send TS file downloads request corresponding to the I frame informations of speed skip forward/back document alignment.
Playback equipment draws the 8 entitled CCTV1_800_ of speed F.F. file according to the I frame informations navigated to
REAL0000000000804968_8_1, and the entitled CCTV1_800_REAL0000000000804968_ts of TS files drawn,
Playback equipment TS files according to corresponding to the I frame informations of the positioning of acquisition send the request of TS file downloads to Video Record Processor.
S312, receive the corresponding TS files that Video Record Processor is sent.
Video Record Processor is looked into when receiving the TS filenames of playback equipment transmission from all TS files being locally stored
Find out with TS filename identical TS files, then send the file to playback equipment.
S313, by the corresponding TS file datas modulates information received to IPQAM.
The 8 speed command fast forward playing requests that playback equipment is sent according to the client received, obtain corresponding TS
File, and be modulated on IPQAM, so as to client-side lock frequency, user watches the recording program.
Example IV,
As shown in figure 4, the implementing procedure signal of the player method for program of the embodiment of the present invention based on OTT play systems
Figure, may comprise steps of:
S41, the main m3u8 download requests that OTT is played are sent to playback equipment.
When it is implemented, client need to be sent out when initiation OTT play systems play out to recording program to playback equipment
The main m3u8 download requests for sending OTT to play.
The main m3u8 download requests that S42, basis receive, construct main m3u8 files.
When it is implemented, the code rate information of performance recording situation of the playback equipment according to Video Record Processor, such as recording program
Deng the main m3u8 files of dynamic generation.
S43, to client send main m3u8 files.
S44, receive the sub- m3u8 file downloads request that client is sent.
Because main m3u8 files are used to record all code rate informations for recording program, and request comprising all sub- m3u8
Location.Client selects a kind of code check according to the main m3u8 files received, sends sub- m3u8 download requests to playback equipment, plays
Equipment receives the sub- m3u8 file downloads request of client transmission, performs subsequent operation.
S45, according to current acquisition time, automatically generate sub- m3u8 files.
When it is implemented, playback equipment is according to following rule, the sub- m3u8 files of dynamic generation, as shown in Figure 4 b:
S451, determine that client needs the programm name for recording program watched.
For client when sending OTT playing requests to playback equipment, playback equipment can directly obtain the record for needing to play
The programm name of program processed.
S452, determine to record the program identification of program.
When it is implemented, by recording current acquisition time, and after being converted into integer type numerical value, the integer type is calculated
The result of calculation of numerical value divided by default section duration, the integer type numerical value after such as changing preset section duration into 1448942405
For 10 seconds, then integer type numerical value 1448942405 divided by default section the duration result of calculation of 10 seconds were 144894240.
Sub- m3u8 files are generated according to following procedure according to the programm name and program identification determined:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:144894240
#EXTINF:10
CCTV1_800_144894240.ts
#EXTINF:10
CCTV1_800_144894241.ts
#EXTINF:10
CCTV1_800_144894242.ts
Sub- m3u8 files can be generated based on this program/order.
S46, to client send sub- m3u8 files.
The sub- m3u8 files that S47, basis receive send TS section file download requests to playback equipment.
When it is implemented, client receive playback equipment transmission sub- m3u8 files after, can be by reading sub- m3u8
Content in file, the request address of TS sections is obtained, and TS section file download requests are sent to playback equipment, such as to broadcasting
Equipment sends the TS section files that CCTV1_800_144894240.ts is downloaded in request.
S48, the name cut into slices according to TS, generate corresponding virtual sliced sheet filename.
Playback equipment such as CCTV1_800_144894240.ts, obtains corresponding according to the TS section filenames received
The filename of virtual sliced sheet file, the text of virtual sliced sheet file is obtained according to the naming method of the recorded file name in method for recording
Part name, it is 144894240*10/1800=804968, then the file of virtual sliced sheet file is entitled:CCTV1_800_
REAL0000000000804968_vmf。
S49, the request of virtual sliced sheet file download is sent to Video Record Processor.
When it is implemented, playback equipment is sent under virtual sliced sheet according to the virtual sliced sheet filename of generation to Video Record Processor
Request is carried, the virtual sliced sheet filename of generation is carried in the download request.
S410, receive the virtual sliced sheet file that Video Record Processor is sent.
When it is implemented, Video Record Processor after the virtual sliced sheet download request of playback equipment transmission is received, records clothes
Be engaged in device found out according to virtual sliced sheet filename in all virtual sliced sheet files being locally stored sent with playback equipment it is virtual
Section filename identical virtual sliced sheet file, is then sent to playback equipment by the virtual sliced sheet file, and playback equipment receives
The virtual sliced sheet file that Video Record Processor is sent performs subsequent process.
The virtual sliced sheet file that S411, parsing receive, obtain relative position of the TS sections in TS files.
Because virtual sliced sheet file is the relative position for recording TS sections in TS files, playback equipment parsing receives
The virtual sliced sheet file arrived, relative position of the TS sections in TS files is therefrom obtained, then finds the determination of client needs
TS section.
S412, send corresponding TS sections download request.
S413, receive the corresponding TS sections that the relative position that Video Record Processor is cut into slices in TS files according to TS is sent.
Video Record Processor is found according to relative position of the TS sections in TS files from all TS files being locally stored
Corresponding TS sections, are then sent to playback equipment.After playback equipment receives the TS section file execution that Video Record Processor is sent
Continuous operation.
S414, the corresponding TS of acquisition section file is sent to client.
.The TS section files of acquisition are sent to client by playback equipment so that user can be somebody's turn to do by client terminal playing
Record program.
A kind of method of program recording and device provided in an embodiment of the present invention, Video Record Processor is according to the IP multicasts received
Signal, program is recorded according to default recording duration, generate corresponding TS files, and it is according to default section duration that TS is literary
Part virtual dividing is cut into slices for several TS, is generated virtual sliced sheet file according to position of each TS sections in TS files, is virtually cut
Piece file is used to record relative position of the TS sections in TS files, so that the recorded file can both support DVB systems
Play, support OTT system plays again, reduce recording cost.
The performance recording device that embodiments herein is provided can be realized by computer program.Those skilled in the art
It should be appreciated that above-mentioned Module Division mode is only one kind in numerous Module Division modes, if being divided into other moulds
Block or non-division module, all should be within the protection domain of the application as long as performance recording device has above-mentioned function.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (10)
- A kind of 1. method of program recording, it is characterised in that including:According to the Internet protocol IP multicast signal received, program is recorded according to default recording duration, generation is corresponding Recorded file, the recorded file includes transport stream TS file;The TS files virtual dividing is cut into slices for several TS according to default section duration;Virtual sliced sheet file is generated according to position of each TS sections in the TS files.
- 2. the method as described in claim 1, it is characterised in that the recorded file is named in such a way:Programm name, program identification and the file type of the recording program are determined respectively;The programm name, program identification and file type according to determining are named to the recorded file.
- 3. method as claimed in claim 2, it is characterised in that determine the program identification as follows:Between recording at the beginning of recording program, the time started is carried out according to preset rules to be converted to integer type Numerical value;First result of calculation is obtained according to the integer type numerical value and default duration of recording;The program identification is obtained according to preset characters string and first result of calculation.
- 4. method as claimed in claim 3, it is characterised in that generated according to position of each TS sections in the TS files empty Intend section file, specifically include:Determine starting position and end position of every TS sections in the TS files;According between at the beginning of being recorded to program and the default section duration obtains the second result of calculation;Cut into slices for every TS, cut into slices according to the programm name, the TS starting position and stop bits in the TS files Put and second result of calculation generates segmentation information corresponding to TS sections;Determine that segmentation information corresponding to all TS sections forms the virtual sliced sheet file.
- 5. method as claimed in claim 4, it is characterised in that the virtual sliced sheet file is used to record the TS sections in institute State the relative position in TS files.
- A kind of 6. performance recording device, it is characterised in that including:Recording elements, for according to the Internet protocol IP multicast signal received, being carried out according to default recording duration to program Record, generate corresponding recorded file, the recorded file includes transport stream TS file;Cutting unit, for the TS files virtual dividing to be cut into slices for several TS according to default section duration;Generation unit, for generating virtual sliced sheet file according to position of each TS sections in the TS files.
- 7. device as claimed in claim 6, it is characterised in that the recording elements, specifically include:First determination subelement, for determining programm name, program identification and the file type of the recording program respectively;Name subelement, for according to the programm name, program identification and the file type determined to the recorded file It is named.
- 8. device as claimed in claim 7, it is characterised in that first determination subelement, specifically include:Logging modle, for record program is recorded at the beginning of between, according to preset rules to the time started carry out It is converted to integer type numerical value;Module is obtained, for obtaining the first result of calculation according to the integer type numerical value and default duration of recording;Determining module, for obtaining the program identification according to preset characters string and first result of calculation.
- 9. device as claimed in claim 8, it is characterised in that generation unit, specifically include:Second determination subelement, for determining starting position and end position of every TS sections in the TS files;Subelement is handled, for being cut into slices for every TS, according to the programm name, TS sections opening in the TS files Beginning position and end position and second result of calculation generate segmentation information corresponding to TS sections;3rd determination subelement, for determining that segmentation information corresponding to all TS sections forms the virtual sliced sheet file.
- 10. device as claimed in claim 9, it is characterised in that the virtual sliced sheet file is used to record the TS and cut into slices to exist Relative position in the TS files.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610545460.1A CN107613321A (en) | 2016-07-12 | 2016-07-12 | A kind of method of program recording and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610545460.1A CN107613321A (en) | 2016-07-12 | 2016-07-12 | A kind of method of program recording and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107613321A true CN107613321A (en) | 2018-01-19 |
Family
ID=61054947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610545460.1A Pending CN107613321A (en) | 2016-07-12 | 2016-07-12 | A kind of method of program recording and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107613321A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089174A (en) * | 2018-08-16 | 2018-12-25 | 咪咕视讯科技有限公司 | A kind of processing method and processing device of multimedia data stream, computer storage medium |
WO2021078279A1 (en) * | 2019-10-24 | 2021-04-29 | 中兴通讯股份有限公司 | Live media stream recording method and system, and computer-readable storage medium |
WO2021254375A1 (en) * | 2020-06-18 | 2021-12-23 | 中兴通讯股份有限公司 | Video partitioning method, transfer method, server, adaptor and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101646044A (en) * | 2008-08-05 | 2010-02-10 | 深圳市同洲电子股份有限公司 | PVR set-top box and method and system for virtual partition management of time-shifting files of PVR set-top box |
CN102880605A (en) * | 2011-07-11 | 2013-01-16 | 上海聚力传媒技术有限公司 | Method, device, equipment and system for generating mixed playing index information |
CN103051931A (en) * | 2011-10-11 | 2013-04-17 | 中兴通讯股份有限公司 | Method, server, client and system for recording and playing replay program |
CN104602138A (en) * | 2015-01-30 | 2015-05-06 | 青岛海信电器股份有限公司 | Method and device for supporting HLS protocol by streaming media server |
-
2016
- 2016-07-12 CN CN201610545460.1A patent/CN107613321A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101646044A (en) * | 2008-08-05 | 2010-02-10 | 深圳市同洲电子股份有限公司 | PVR set-top box and method and system for virtual partition management of time-shifting files of PVR set-top box |
CN102880605A (en) * | 2011-07-11 | 2013-01-16 | 上海聚力传媒技术有限公司 | Method, device, equipment and system for generating mixed playing index information |
CN103051931A (en) * | 2011-10-11 | 2013-04-17 | 中兴通讯股份有限公司 | Method, server, client and system for recording and playing replay program |
CN104602138A (en) * | 2015-01-30 | 2015-05-06 | 青岛海信电器股份有限公司 | Method and device for supporting HLS protocol by streaming media server |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089174A (en) * | 2018-08-16 | 2018-12-25 | 咪咕视讯科技有限公司 | A kind of processing method and processing device of multimedia data stream, computer storage medium |
CN109089174B (en) * | 2018-08-16 | 2020-12-22 | 咪咕视讯科技有限公司 | Multimedia data stream processing method and device and computer storage medium |
WO2021078279A1 (en) * | 2019-10-24 | 2021-04-29 | 中兴通讯股份有限公司 | Live media stream recording method and system, and computer-readable storage medium |
WO2021254375A1 (en) * | 2020-06-18 | 2021-12-23 | 中兴通讯股份有限公司 | Video partitioning method, transfer method, server, adaptor and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220006849A1 (en) | Content Storage and Identification | |
US20200243117A1 (en) | Providing Enhanced Content | |
US8191103B2 (en) | Real-time bookmarking of streaming media assets | |
CN1988646B (en) | Method and apparatus for displaying information about broadcasting contents | |
WO2017117422A1 (en) | Methods and apparatus for presenting advertisements during playback of recorded television content | |
US20020059604A1 (en) | System and method for linking media content | |
US20080279535A1 (en) | Subtitle data customization and exposure | |
CN104410902B (en) | The player method and terminal of a kind of programme televised live, the generation method and equipment of index file | |
CN104065979A (en) | Method for dynamically displaying information related with video content and system thereof | |
CN106847315A (en) | A kind of talking book synchronous methods of exhibiting sentence by sentence | |
KR20100134164A (en) | Apparatus and method for managing indexing information file of external device | |
CN103118302B (en) | The method and relevant device of digital content version switching | |
JP2007525900A (en) | Method and apparatus for locating content in a program | |
KR101472013B1 (en) | Server and method for providing music streaming include data of add image | |
EP3531707A1 (en) | Audio content playback control | |
CN107613321A (en) | A kind of method of program recording and device | |
US20060218248A1 (en) | Contents distribution system, contents distribution method, and computer-readable storage medium therefor | |
US20030172346A1 (en) | Method and computer program for expanding and contracting continuous play media seamlessly | |
JP2005018925A (en) | Recording and reproducing device, and recording and reproducing method | |
JP4679232B2 (en) | Recording device | |
JP2004104721A (en) | Multimedia reproducing apparatus and program providing system | |
JP2016213709A (en) | Moving image reproduction system, client device, server device, and program | |
JP6215866B2 (en) | Internet video playback system and program | |
JP6367882B2 (en) | Client terminal and internet video playback system provided with the same | |
JP2009163600A (en) | Metadata sharing system, server device, client device, and metadata sharing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |