CN103227934B - The method and server that TV programme are recorded a video - Google Patents
The method and server that TV programme are recorded a video Download PDFInfo
- Publication number
- CN103227934B CN103227934B CN201310138400.4A CN201310138400A CN103227934B CN 103227934 B CN103227934 B CN 103227934B CN 201310138400 A CN201310138400 A CN 201310138400A CN 103227934 B CN103227934 B CN 103227934B
- Authority
- CN
- China
- Prior art keywords
- file
- terminal
- video
- binary format
- server
- 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.)
- Expired - Fee Related
Links
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a kind of method recorded a video to TV programme.This method passes through during using server recording TV program, respectively terminal receive start video recording instruction when to terminal receive server transmission start video recording feedback signal when stop, and stop when recording a video feedback signal to the stopping for receiving server transmission from terminal is received when stopping video recording being instructed, record corresponding TV programme respectively using terminal, and the image file that the image file upload for recording terminal is recorded to server and server merges processing, generation one is complete, television program record file without the time difference, so as to efficiently solve recording TV program on the server because existence time difference causes the incomplete problem of TV programme recorded and the defect that compensate for storage facilities off-capacity in terminal.The invention also discloses a kind of server recorded a video to TV programme.
Description
Technical field
The present invention relates to remote-recording video technical field, more particularly, to a kind of method recorded a video to TV programme and clothes
Business device.
Background technology
Current TV is recorded a video to TV programme individually to be carried out in terminal or server mostly.In terminal record
Occur that some problems cause video recording to fail in system, video process, such as local memory capacity is inadequate(Although can be by deleting
The mode of old video file in storage container is solved, but so user can not just watch the relatively early TV programme recorded in the past;
Or mass storage is changed, but cost is high).In addition, terminal poor in server record TV programme existence time(TV)Send
Existence time is poor between time and server during video recording instruction receive the time that video recording instructs and starts recording, so as to cause
The TV programme of recording are imperfect.With reference to existing TV tech and web services technologies, proposition is a kind of to record to TV programme
The method of picture, can solve the problem of terminal video recording has insufficient memory capacity, and the TV Festival that energy settlement server is recorded
The imperfect problem of mesh is most important in information age today.
The content of the invention
It is a primary object of the present invention to provide a kind of method recorded a video to TV programme, to solve using service
Because the telecommunication existence time between terminal and server is poor during device recording TV program, cause the TV programme recorded not
Complete the problem of.
In addition, the present invention also proposes a kind of server recorded a video to TV programme, to solve to record using server
Because the telecommunication existence time between terminal and server is poor during NTSC television system NTSC program, cause the TV programme recorded imperfect
The problem of.
A kind of method recorded a video to TV programme, the method comprising the steps of:Server is received from opening that terminal is sent
Begin to record a video and instruct and stop video recording instruction;Server receive terminal transmission start video recording instruction when to receive terminal send
Stopping video recording instruction when stop, record the second image file, server receiving terminal transmission start video recording instruction when start
Record a video and sent to terminal and start feedback signal of recording a video, server stops video recording when instruction is recorded a video in the stopping for receiving terminal transmission
And send stopping video recording feedback signal to terminal;Server receives the first image file sent from terminal and the 3rd image text
Part;Server merges processing to the first image file, the second image file and the 3rd image file, to generate complete shadow
As file.Wherein:First image file be terminal detect start video recording instruction when to terminal receive server transmission open
Begin to stop during video recording feedback signal, the television program file recorded by terminal;3rd image file is that terminal detects stopping
Stop during the stopping video recording feedback signal for receiving server transmission from during video recording instruction to terminal, the TV Festival recorded by terminal
Mesh file.
Preferably, the server merges place to the first image file, the second image file and the 3rd image file
Reason, is included with generating the step of complete image file:First image file is converted into the first binary format file, by
Two image files are converted into the second binary format file, and the 3rd image file is converted into the text of the 3rd binary format
Part;First binary format file is compared with the second binary format file, deleted from the first binary format file
Except the content part repeated with the second binary format file, to generate the first file to be combined;By the second binary format
File is compared with the 3rd binary format file, find out in the 3rd binary format file with the second binary format file
The content part repeated, deletes the part repeated with the 3rd binary format file, with life from the second binary format file
Into the second binary format file to be combined;First file to be combined and the second binary format file to be combined are entered
Row merges.
Preferably, the step of the first file to be combined of the generation includes:A, extract from the second binary format file
Original position rise predetermined number bit;B, from the original position of the first binary format file, bit-by-bit position carry
Take a predetermined number bit;C, when there is predetermined number bit to be extracted from the first binary format file, than
To the predetermined number bit that is extracted from the first binary format file with extracted from the second binary format file it is pre-
If number of bits position;D, repeat the above steps B and C, until the predetermined number bit extracted from the first binary format file
Untill when position is identical with the predetermined number bit extracted from the second binary format file;E, from the first binary format text
Portion after the first bit of predetermined number bit identical deleted and extracted from the second binary format file in part
Point, to generate the first file to be combined.
Preferably, the step of generation to be combined second binary format file includes:F1, extraction are entered from the two or two
The predetermined number bit that the end position of formatted file processed rises;F2, from the end position of the 3rd binary format file, by
Individual bit extracts a predetermined number bit;F3, when there is predetermined number bit to be carried from the 3rd binary format file
When taking out, compare the predetermined number bit that is extracted from the 3rd binary format file with from the second binary format file
The predetermined number bit of middle extraction;F4, repeat the above steps F2 and F3, until what is extracted from the 3rd binary format file
Untill when predetermined number bit is identical with the predetermined number bit extracted from the second binary format file;F5, basis
That is extracted from the 3rd binary format file is identical with the predetermined number bit extracted from the second binary format file
Bit, determine stop bits and the starting repeated in the 3rd binary format file with the content of the second binary format file
Position;F6, deletion and the stop bits of the start bit from the 3rd binary format file to determination from the second binary format file
Identical content, to generate the second binary format file to be combined.
Preferably, this method is closed in server to the first image file, the second image file and the 3rd image file
And handle, also included after complete image file step with generating:Server sends the complete image file of generation to terminal
File chained address.
A kind of method recorded a video to TV programme, the method comprising the steps of:Server is received from opening that terminal is sent
Beginning video recording instruction, the video recording that starts is instructed comprising recording time;Server is receiving when starting video recording instruction of terminal transmission
Rise and stop when being reached to recording time, record N image files, server is receiving starting when starting video recording instruction for terminal transmission
Record a video and sent to terminal and start feedback signal of recording a video;Server receives the H image files sent from terminal;Server is to
N image files and H image files merge processing, to generate complete image file.Wherein:H image files are eventually
End receives stopping when starting video recording feedback signal for server transmission from detecting when starting video recording instruction to terminal, is recorded by terminal
The television program file.
Preferably, the server merges processing to N image files and H image files, complete to generate
The step of image file, includes:N image files are converted into N binary format files, and H image files are converted into
H binary format files;N binary formats file is compared with H binary format files, from H binary systems
The content part repeated with N binary formats file is deleted in formatted file, to generate the file that H is to be combined;H is treated
The file and N binary format files of merging are merged.
Preferably, the step of generation H files to be combined include:G1, extract from N binary format files
The predetermined number bit that original position rises;G2, from the original position of H binary format files, bit-by-bit position extract
Predetermined number bit;G3, when there is predetermined number bit to be extracted from H binary format files, compare
The predetermined number bit extracted from H binary format files and the present count extracted from N binary format files
Measure bit;G4, repeat the above steps G2 and G3, until the predetermined number bit extracted from H binary format files
Untill when identical with the predetermined number bit extracted from N binary format files;G5, from H binary format files
Middle deletion and the part after the first bit of the predetermined number bit identical extracted from N binary format files,
To generate H files to be combined.
A kind of server recorded a video to TV programme, the server includes:Secondary signal processing module, for connecing
Receive terminal and send and start video recording instruction and stopping video recording instruction;Second video acquisition module, for receiving opening for terminal transmission
Begin to stop during video recording instruction to the stopping video recording instruction for receiving terminal transmission, record the second image file;Secondary signal processing module,
Be additionally operable to receive terminal transmission start video recording instruction when to terminal send start record a video feedback signal, and receiving terminal hair
Sent during the stopping video recording instruction sent to terminal and stop video recording feedback signal;Second document processing module, for receiving from terminal
The first image file and the 3rd image file sent, and to the first image file, the second image file and the 3rd image text
Part merges processing, to generate complete image file;Wherein:First image file be terminal detect start video recording instruction
Shi Qizhi terminals receive server transmission start video recording feedback signal when stop, the television program file recorded by terminal;
3rd image file is the stopping video recording feedback letter for receiving server transmission from terminal is detected when stopping video recording instruction to terminal
Number when stop, the television program file recorded by terminal.
A kind of server recorded a video to TV programme, the server includes:Secondary signal processing module, for connecing
Receipts terminal transmission starts video recording instruction, and the video recording that starts is instructed comprising recording time;Second video acquisition module, for receiving
Start video recording instruction to stopping when reaching recording time to what terminal was sent, record N image files;Secondary signal processing module,
Be additionally operable to receive terminal transmission start video recording instruction when to terminal send start record a video feedback signal;Second file process mould
Block, processing is merged for receiving the H image files sent from terminal, and to N image files, H image files,
To generate complete image file.Wherein:H image files are to receive clothes to terminal from terminal is detected when starting video recording instruction
What business device was sent starts to stop during video recording feedback signal, the television program file recorded by terminal.
A kind of method that TV programme are recorded a video provided by the present invention and server, by being recorded using server
During NTSC television system NTSC program, respectively terminal receive start video recording instruction when to terminal receive server transmission beginning
Video recording feedback signal when stop, and terminal receive stop video recording instruction when to receive server transmission stopping record a video feedback
Stop during signal, record corresponding TV programme respectively using terminal, and the image file upload that terminal is recorded to server with
The image file that server is recorded merges processing, generates a television program record file complete, without the time difference.From
And recording TV program on the server is efficiently solved because existence time difference causes the TV programme recorded are incomplete to ask
Inscribe and compensate for the defect of storage facilities off-capacity in terminal.
Brief description of the drawings
Fig. 1 is the flow chart of the preferred embodiment one for the method that the present invention is recorded a video to TV programme;
Fig. 2 is the flow chart of the preferred embodiment two for the method that the present invention is recorded a video to TV programme;
Fig. 3 A are the structural representations before multiple Piece file mergences of the invention;
Fig. 3 B and Fig. 3 C are the structural representations after multiple Piece file mergences of the invention;
Fig. 4 is the composition schematic diagram for the system preferred embodiment that the present invention is recorded a video to TV programme;
Fig. 5 is the functional block diagram of the preferred embodiment of server in Fig. 4;
Fig. 6 is the functional block diagram of the preferred embodiment of terminal in Fig. 4.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
It is shown in Figure 1, it is the flow chart of the preferred embodiment one for the method that the present invention is recorded a video to TV programme.
It is emphasized that:Flow chart shown in Fig. 1 is only a preferred embodiment, and those skilled in the art appoints when knowing
What should not all depart from the scope covered in following technical scheme around the embodiment that inventive concept is built:
Server receive since terminal send video recording instruction and stop video recording instruction, it is described start video recording instruction can not
Recording time can also be included comprising recording time, the second image file can be entered if recording time is included in video recording instruction
A step of advancing is demonstrate,proved;Server receive terminal transmission start video recording instruction when to receive terminal transmission stopping video recording referring to
Stop when making, the identifier of TV-set programm information according to needed for starting video recording instruction records the second image file, required TV Festival target
Know information can for needed for programme channel or required television programme title etc., server receive terminal send start record a video
Start video recording during instruction and send to terminal to start feedback signal of recording a video, server is receiving the stopping video recording instruction of terminal transmission
When stop video recording and to terminal send stop video recording feedback signal;Server receives the first image file sent from terminal and the
Three image files;Server merges processing to the first image file, the second image file and the 3rd image file, to generate
Complete image file;Wherein:First image file is to receive server to terminal from terminal is detected when starting video recording instruction
Send start video recording feedback signal when stop, the television program file recorded by terminal;3rd image file is that terminal is detected
Stop during the stopping video recording feedback signal for receiving server transmission from when stopping video recording instruction to terminal, the TV Festival recorded by terminal
Mesh file.
The following is the complete video recording being done step-by-step with reference to the present embodiment to TV programme.
Step S10, when terminal, which is detected, starts video recording instruction, terminal starts video recording and starts video recording instruction hair by described
Give server.
Step S11, server receive it is described start video recording instruction when start to record a video and send start record a video feedback signal
To terminal.
Step S12, terminal receive it is described start video recording feedback signal when, stop current video recording, generation file f ile1
【That is the first image file】, then the file1 of generation is uploaded onto the server by the communication network of terminal and server.
Step S13, when terminal detects stopping video recording instruction, terminal starts video recording and stops video recording instruction hair by described
Give server.
Step S14, when server receives the stopping video recording instruction, server stops video recording, generation file2 files【I.e.
Second image file】, video recording feedback signal is stopped to terminal while sending.
Step S15, when terminal receives the stopping video recording feedback signal, terminal stops video recording, generates file3 files【I.e.
3rd image file】, and upload onto the server.
Step S16, server is received after the file1 and file3, and described file1, file2 and file3 are merged
Processing, to generate complete image file.
In this step S16, described file1, file2 and file3 merging treatment mode are:File1 is converted to two
System stream format file file1(2), file2 is converted into binary stream formatted file file2(2), file3 will be converted to two
System stream format file file3(2);By the binary stream formatted file file1(2)With file2(2)Computing is compared, finds out
file1(2)In with file2(2)The original position of duplicate contents(For example, with reference to the f1-s in Fig. 3 A), from file1(2)It is middle to delete
file1(2)The original position f1-s of middle duplicate contents is to last position(For example, with reference to the f1e in Fig. 3 A)Content part, with generate
First file to be combined;By the binary stream formatted file file2(2)With file3(2)Computing is compared, file3 is found out(2)
In with file2(2)The end position of duplicate contents(For example, with reference to the f3-s in Fig. 3 A), from file2(2)Middle deletion file2(2)In
With file3(2)The part of duplicate contents, to generate the second file to be combined【Second binary format file i.e. to be combined】;Will
The last position of first file to be combined is docked to the original position of the second file to be combined(For example, with reference to the f2b in Fig. 3 A), with life
Into complete image file, as shown in Figure 3 B.
Preferably, the generating mode of the described second file to be combined can be:By the binary stream formatted file
file2(2)With file3(2)Computing is compared, file2 is found out(2)In with file3(2)The start bit of duplicate contents(For example, with reference to
F2-s in Fig. 3 A), from file2(2)Middle deletion file2(2)In with file3(2)The start bit f2-s to file2 of duplicate contents(2)
Last of file position(For example, with reference to the f2e in Fig. 3 A)Content part, to generate the second file to be combined.
Further, the step of the first file to be combined of the generation includes:
A, extract from file2(2)The predetermined number bit that the original position of file rises;
It is described from file2 in this step A(2)The original position of file acts the predetermined number bit extracted, bit
Digit can arbitrarily select, such as 50,51,52 ..., n(N is taken less than file1(2)Number of bits positive integer), selection
Digit is bigger, and the operation result obtained when computing is compared is more accurate, and operation result described herein refers to two two
System stream file determines to duplicate the position of content in binary stream file when computing is compared, in the present embodiment, such as
The digit of predetermined number bit is set as 100, then the predetermined number bit is by from file2(2)The start bit of file
Put toward file2(2)100 bits composition that the last position direction of file is extracted.
B, from file1(2)The original position of file rises, and a predetermined number bit is extracted in bit-by-bit position;
It is described in file1 in this step B(2)The digit of the predetermined number bit extracted in file with from file2(2)
The digit that the original position of file acts extracted predetermined number bit is identical, for example, working as from file2(2)The start bit of file
When the digit for having put extracted predetermined number bit is 100, in file1(2)The predetermined number bit extracted in file
Digit is also 100.
C, when having predetermined number bit from file1(2)When being extracted in file, compare from file1(2)Extracted in file
Predetermined number bit with from file2(2)The predetermined number bit extracted in file;
D, repeat the above steps B and C, until from file1(2)The predetermined number bit that is extracted in file with from file2(2)
Untill when the predetermined number bit extracted in file is identical;
E, from file1(2)Deleted in file with from file2(2)The predetermined number bit identical extracted in file is the first
Part after bit, to generate the first file to be combined.Wherein the first bit refers to identical predetermined number bit
According to file1(2)First to the order of end position of original position.
In this step E, from file1(2)The object deleted in file is referred in file1(2)In file with from file2(2)
The first bit of the predetermined number bit identical bit extracted in file(For example, with reference to the f1-s in Fig. 3 A)Extremely
file1(2)Last of file position(For example, with reference to the f1e in Fig. 3 A)Part.
It is emphasized that from file2(2)Original position extract predetermined number bit it is to be combined to generate first
File, is only a preferred mode, it will be apparent to those skilled in the art that can also be from file2(2)End position extract
The bit of predetermined number generates the first file to be combined, and therefore not to repeat here.
Further, a kind of mode of the second file to be combined of the generation includes:
F1, extract from file2(2)The predetermined number bit that the end position of file rises;
It is described from file2 in this step F1(2)The end position of file acts the predetermined number bit extracted, bit
Digit can arbitrarily select, such as 50,51,52 ..., m(M is taken less than file3(2)Number of bits positive integer), selection
Digit is bigger, and the operation result obtained when computing is compared is more accurate, and operation result described herein refers to two two
System stream file determines to duplicate the position of content in binary stream file when computing is compared, in the present embodiment, such as
The digit of predetermined number bit is set as 100, then the predetermined number bit is by from file2(2)Rise the last position of file
Toward file2(2)100 bits composition that the original position direction of file is extracted.
F2, from file3(2)The end position of file rises, and a predetermined number bit is extracted in bit-by-bit position;
It is described in file3 in this step F2(2)The digit of the predetermined number bit extracted in file with from file2(2)
The digit that the end position of file acts extracted predetermined number bit is identical, for example, working as from file2(2)The stop bits of file
When the digit for having put extracted predetermined number bit is 100, in file3(2)The predetermined number bit extracted in file
Digit is also 100.
F3, when having predetermined number bit from file3(2)When being extracted in file, compare from file3(2)Carried in file
The predetermined number bit that takes with from file2(2)The predetermined number bit extracted in file;
F4, repeat the above steps F2 and F3, until from file3(2)The predetermined number bit that is extracted in file with from
file2(2)Untill when the predetermined number bit extracted in file is identical;
F5, according to from file3(2)Extracted in file with from file2(2)The predetermined number bit extracted in file is identical
Bit, determine file3(2)With file2 in file(2)Stop bits and start bit that the content of file is repeated;Wherein originate
Position is the position of the backward file prime direction interval predetermined number bit positioned at the stop bits determined.
F6, from file2(2)File2 is deleted in file(2)In file with from file3(2)The knot that the start bit of file is extremely determined
Beam position identical content part, with the second file to be combined.
It is emphasized that from file2(2)End position extract predetermined number bit it is to be combined to generate second
File, is only a preferred mode, it will be apparent to those skilled in the art that can also be from file2(2)Original position extract
The bit of predetermined number generates the second file to be combined, and therefore not to repeat here.
Further, the another way of the second file to be combined of the generation includes:
M1, extract from file3(2)The predetermined number bit that the original position of file rises;
It is described from file3 in this step M1(2)The original position of file acts the digit of the predetermined number bit extracted
Can arbitrarily select, such as 50,51,52 ..., m(M is taken less than file3(2)Number of bits positive integer), the digit of selection gets over
Greatly, the operation result obtained when computing is compared is more accurate, and operation result described herein refers to two binary streams
File is determined to duplicate the position of content in binary file when computing is compared, in the present embodiment, such as set default
The digit of number of bits position is 100, then the predetermined number bit is by from file3(2)The original position of file rises past
file3(2)100 bits composition that the last position direction of file is extracted.
M2, from file2(2)The end position of file rises, and a predetermined number bit is extracted in bit-by-bit position;
It is described in file2 in this step M2(2)The digit of the predetermined number bit extracted in file with from file3(2)
The digit that the original position of file acts extracted predetermined number bit is identical, for example, working as from file3(2)The start bit of file
When the digit for having put extracted predetermined number bit is 100, in file2(2)The predetermined number bit extracted in file
Digit is also 100.
M3, when having predetermined number bit from file2(2)When being extracted in file, compare from file2(2)Carried in file
The predetermined number bit that takes with from file3(2)The predetermined number bit extracted in file;
M4, repeat the above steps M2 and M3, until from file2(2)The predetermined number bit that is extracted in file with from
file3(2)Untill when the predetermined number bit extracted in file is identical;
M5, from file2(2)Deleted in file with from file3(2)The predetermined number bit identical extracted in file is the first
Part after bit, to generate the second file to be combined.
In this step M5, from file2(2)The object deleted in file is referred in file2(2)In file with from
file3(2)The first bit of the predetermined number bit identical bit extracted in file(For example, with reference in Fig. 3 A
f2-s)To file2(2)The part of last of file position.
In addition, server merges processing by the file to recording, generate after complete video file, server is also
The file chained address for generating complete video file is sent to terminal.User can be in terminal by opening the file
Chained address carries out such as broadcasting to the TV programme of recording, deletes, downloads operation.Therefore, using methods described record tv
Program, is not only solved because terminal and time difference that server exists when being communicated cause the image file recorded endless
Whole problem, also compensate for the defect of terminal storage facilities off-capacity.
It is shown in Figure 2, it is the flow chart of the preferred embodiment two for the method that the present invention is recorded a video to TV programme.Should
Embodiment two suitable for start video recording instruction include recording time situation.
It is emphasized that:Flow chart shown in Fig. 2 is only a preferred embodiment, and those skilled in the art appoints when knowing
What should not all depart from the scope covered in following technical scheme around the embodiment that inventive concept is built:
Server reception is recorded a video since terminal transmission and instructed, and the video recording that starts is instructed comprising recording time;Service
Device receive terminal transmission when starting video recording instruction from is reached to recording time when stop, it is electric according to needed for starting video recording instruction
Depending on program identification information record N image files, required identifier of TV-set programm information can for needed for programme channel or required
Television programme title etc., server receive terminal transmission start video recording instruction when start video recording and to terminal send start record
As feedback signal;Server receives the H image files sent from terminal;Server is to N image files and H image files
Processing is merged, to generate complete image file;Wherein:H image files be terminal detect start video recording instruction when
Rise to terminal and receive stopping when starting video recording feedback signal for server transmission, recorded by terminal.
The complete video recording to TV programme is done step-by-step below in conjunction with the present embodiment.
Step S20, when terminal detect comprising recording time when starting video recording instruction, terminal starts to record a video and will be described
Start video recording instruction and be sent to server.
Step S21, server receive it is described start video recording instruction after, server start to record a video and send starts record a video feedback
Signal is to terminal.
In this step S21, server receive it is described start video recording instruction after, server to it is described start video recording instruct into
Analysis of going judges that, when the instruction that starts to record a video is comprising recording time, server, which starts to record a video and sent, starts feedback of recording a video
Signal is to terminal.
Step S22, terminal receive it is described start video recording feedback signal when, terminal stop video recording, generate file1-1 files
【That is N image files】And upload onto the server.
Step S23, when server video time reaches recording duration, server stops video recording, generates file2-2 files
【That is H image files】.
In this step S23, the recording time information for starting to include in video recording instruction is used to control server to record
The time span of TV programme, when server video time reaches recording duration, server is automatically stopped video recording, generation
File2-2 files.
Step S24, server is received after the file1-1 files, and place is merged to the file1-1 and file2-2
Reason, to generate complete image file.
In this step S24, the merging treatment mode of the file1-1 and file2-2 are:File1-1 is converted into system
One binary stream formatted file file1-1(2), file12-2 is converted to unified binary stream formatted file file2-
2(2);By the binary stream formatted file file1-1(2)With file2-2(2)Computing is compared, file1-1 is found out(2)File
In with file2-2(2)The start bit of duplicate contents(For example, with reference to the f1-s in Fig. 3 C), from file1-1(2)Middle deletion file1-
1(2)The start bit of middle duplicate contents to last position content part, to generate file1-1(2)File to be combined;Referring to Fig. 3 C, by institute
State file1-1(2)The last position of file to be combined(For example, with reference to the f1-s in Fig. 3 C)It is docked to file2-2(2)Original position
(For example, with reference to the f2b in Fig. 3 C), to generate complete image file.
Further, the generation file1-1(2)The step of file to be combined, includes:
G1, extract from file2-2(2)The predetermined number bit that the original position of file rises;
It is described from file2-2 in this step G1(2)The original position of file acts the predetermined number bit extracted, bit
Position digit can arbitrarily select, such as 50,51,52 ..., k(K is taken less than file1-1(2)Number of bits positive integer), choosing
The digit selected is bigger, and the operation result obtained when computing is compared is more accurate, and operation result described herein refers to two
Individual binary stream file determines to duplicate the position of content in binary stream file when computing is compared, in the present embodiment
In, the digit of predetermined number bit such as is set as 100, then the predetermined number bit is by from file2-2(2)File
Original position rise toward file2-2(2)100 bits composition that the last position direction of file is extracted.
G2, from file1-1(2)The original position of file rises, and a predetermined number bit is extracted in bit-by-bit position;
It is described in file1-1 in this step G2(2)The digit of the predetermined number bit extracted in file with from
file2-2(2)The digit that the original position of file acts extracted predetermined number bit is identical, for example, working as from file2-2(2)
When the digit that the original position of file acts extracted predetermined number bit is 100, in file1-1(2)That is extracted in file is pre-
If the digit of number of bits position is also 100.
G3, when having predetermined number bit from file1-1(2)When being extracted in file, compare from file1-1(2)File
The predetermined number bit of middle extraction with from file2-2(2)The predetermined number bit extracted in file;
G4, repeat the above steps G2 and G3, until from file1-1(2)The predetermined number bit that is extracted in file with from
file2-2(2)Untill when the predetermined number bit extracted in file is identical;
G5, from file1-1(2)Deleted in file with from file2-2(2)The predetermined number bit identical extracted in file
Part after the first bit, to generate file1-1(2)File to be combined.Wherein the first bit refers to that identical is preset
According to file1-1 in number of bits position(2)First to the order of end position of original position.
In this step G5, from file1-1(2)The object deleted in file is referred in file1-1(2)In file with from
file2-2(2)The first bit of the predetermined number bit identical bit extracted in file is to file1-1(2)Last of file
The part of position.
It is emphasized that from file2-2(2)Original position extract the bit of predetermined number and generate file1-1(2)
File to be combined, is only a preferred mode, it will be apparent to those skilled in the art that can also be from file2-2(2)End
Extract the bit of predetermined number to generate file1-1 in position(2)File to be combined, therefore not to repeat here.
In addition, server merges processing by the file to recording, generate after complete video file, server is also
The file chained address for generating complete video file is sent to terminal.User can be in terminal by opening the file
Chained address carries out such as broadcasting to the TV programme of recording, deletes, downloads operation.Therefore, using methods described record tv
Program, is not only solved because terminal and time difference that server exists when being communicated cause the image file recorded endless
Whole problem, also compensate for the defect of terminal storage facilities off-capacity.
It is the composition schematic diagram for the system preferred embodiment that the present invention is recorded a video to TV programme referring to Fig. 4.The system
Including server 110, and at least one terminal 120 communicated to connect with server 110(In figure exemplified by one).
As shown in figure 5, being the functional block diagram of the preferred embodiment of server in Fig. 4.The server 110 includes the second letter
Number processing module 111, the second video acquisition module 112 and the second document processing module 113.
Illustrate the function that server 110 and terminal 120 are respectively constituted respectively in two kinds of situation below.
First, start to record a video to instruct to include and can also not include the situation of recording time:
Secondary signal processing module 111, video recording instruction and stopping video recording instruction are started for what receiving terminal 120 was sent;
Second video acquisition module 112, for receive the transmission of terminal 120 when starting video recording instruction to receiving terminal
Stop during the stopping video recording instruction of transmission, record the second image file;
Secondary signal processing module 111, is additionally operable to receiving opening to terminal transmission when starting to record a video and instructing for terminal transmission
Begin video recording feedback signal, and receive terminal transmission stopping record a video instruction when to terminal send stop video recording feedback signal;
Second document processing module 113, for receiving the first image file and the 3rd image file that are sent from terminal,
And processing is merged to the first image file, the second image file and the 3rd image file, to generate complete image file;
Wherein:First image file be terminal detect start video recording instruction when to terminal receive server transmission open
Begin to stop during video recording feedback signal, the television program file recorded by terminal;
3rd image file is the stopping record for receiving server transmission from terminal is detected when stopping video recording instruction to terminal
Stop during as feedback signal, the television program file recorded by terminal.
Further, as shown in fig. 6, the terminal 120 includes the first signal processing module 121, the first video acquisition mould
The document processing module 123 of block 122 and first, wherein:
First signal processing module 121, for detect user transmission start video recording instruction and by detect start record
Server is sent to as instructing, the stopping video recording that detecting user sends is instructed simultaneously is sent to clothes by the stopping detected video recording instruction
Business device, what the reception server was sent starts video recording feedback signal and stops video recording feedback signal;
First video acquisition module 122, for detect start video recording instruction when to receive server transmission open
Begin video recording feedback signal when stop, record the first image file, detect stop video recording instruction when to receive server send
Stopping video recording feedback signal when stop, record the 3rd image file;
First document processing module 123, for by the first image file and the 3rd image file upload to server.
Specifically, the video recording instruction that the first signal processing module 121 detecting user sends(Include and open in the video recording instruction
Begin the information such as video recording or stopping video recording instruction), when detect start video recording instruction when, start terminal 120 record a video, the first video is adopted
Collect the collection TV signal of module 122, while the first signal processing module 121 will include the protocol package for starting video recording instruction(P1)Hair
Server 110 is given, and monitors the protocol package that server 110 is beamed back;When secondary signal processing module 111 receives protocol package
(P1)When, 111 pairs of secondary signal processing module starts video recording instruction and carries out analysis judgement, it is determined whether comprising recording time,
In the embodiment, the embodiment is directed to start to record a video to instruct to may include that recording time also may not include recording
The situation of time, the second video acquisition module 112 of server 110 starts to gather TV signal, while secondary signal handles mould
Block 111 sends protocol package(P2)To terminal 120, and the stopping video recording instruction that monitoring terminal 120 is sent;When the first signal transacting
Module 121 receives protocol package(P2)When, the first video acquisition module 122 stops collection TV signal, the first document processing module
123 by the data preparation collected into the first image file(The first image file is identified with file1 below), and file1 is literary
Part uploads onto the server 110;When the first signal processing module 121 detects stopping video recording instruction, start terminal 120 and record a video,
First video acquisition module 122 starts to gather TV signal, while the first signal processing module 121 will be instructed comprising video recording is stopped
Protocol package(P1-1)Server 110 is sent to, and monitors the protocol package that server 110 is beamed back;When secondary signal processing module
111 receive protocol package(P1-1)When, the second video acquisition module 122 stops collection TV signal, now, secondary signal processing
Module sends protocol package(P3)To terminal 110, the second document processing module 123 is literary into the second image by the data preparation collected
Part(The second image file is identified with file2 below);When the first signal processing module 121 receives protocol package(P3)When, first
Video acquisition module 122 stops collection TV signal, and the first document processing module 123 is by the data preparation collected into the 3rd shadow
As file(The 3rd image file is identified with file3 below), and file3 files are uploaded onto the server 110.
After server 110 receives the file1 and file3, the second 113 pairs of document processing module file1,
File2 and file3 merge processing, to generate complete image file.
Specifically, described second document processing module 113 couples of described file1, file2 and file3 merge processing
Step includes:File1 is converted into binary stream formatted file file1(2), file2 is converted into binary stream formatted file
file2(2), file3 will be converted to binary stream formatted file file3(2);By the binary stream formatted file file1(2)
With file2(2)Computing is compared, file1 is found out(2)In with file2(2)The original position of duplicate contents(For example, with reference to Fig. 3 A
In f1-s), from file1(2)Middle deletion file1(2)The original position f1-s of middle duplicate contents is to last position(For example, with reference to Fig. 3 A
In f1e)Content part, to generate the first file to be combined;By the binary stream formatted file file2(2)With
file3(2)Computing is compared, file3 is found out(2)In with file2(2)The stop bits of duplicate contents(For example, with reference in Fig. 3 A
f3-s), from file2(2)File2 is deleted in file(2)In file with from file3(2)The original position of file is to the stop bits found out
Identical content part, to generate the second file to be combined;The last position of first file to be combined is docked to the second text to be combined
The original position of part(For example, with reference to the f2b in Fig. 3 A), to generate complete image file, as shown in Figure 3 B.
Preferably, second document processing module 113 can also generate the described second text to be combined in accordance with the following steps
Part:By the binary stream formatted file file2(2)With file3(2)Computing is compared, file2 is found out(2)In with file3(2)
The start bit of duplicate contents(For example, with reference to the f2-s in Fig. 3 A), from file2(2)File2 is deleted in file(2)In with file3(2)
The original position f2-s to file2 of duplicate contents(2)Last of file position(For example, with reference to the f2e in Fig. 3 A)Content part, with life
Into the second file to be combined.
Specifically, second document processing module 113 generates the first file to be combined of the generation in accordance with the following steps:
A, extract from file2(2)The predetermined number bit that the original position of file rises;
It is described from file2 in this step A(2)The digit that the original position of file acts the predetermined number bit extracted can
Arbitrarily to select, such as 50,51,52 ..., n(N is taken less than file1(2)Number of bits positive integer), the digit of selection gets over
Greatly, the operation result obtained when computing is compared is more accurate, and operation result described herein refers to two binary streams
File is determined to duplicate the position of content in binary stream file when computing is compared, in the present embodiment, such as set pre-
If the digit of number of bits position is 100, then the predetermined number bit is by from file2(2)The original position of file rises past
file2(2)100 bits composition that the last position direction of file is extracted.
B, from file1(2)The original position of file rises, and a predetermined number bit is extracted in bit-by-bit position;
It is described in file1 in this step B(2)The digit of the predetermined number bit extracted in file with from file2(2)
The digit that the original position of file acts extracted predetermined number bit is identical, for example, working as from file2(2)The start bit of file
When the digit for having put extracted predetermined number bit is 100, in file1(2)The predetermined number bit extracted in file
Digit is also 100.
C, when having predetermined number bit from file1(2)When being extracted in file, compare from file1(2)Extracted in file
Predetermined number bit with from file2(2)The predetermined number bit extracted in file;
D, repeat the above steps B and C, until from file1(2)The predetermined number bit that is extracted in file with from file2(2)
Untill when the predetermined number bit extracted in file is identical;
E, from file1(2)Deleted in file with from file2(2)The predetermined number bit identical extracted in file is the first
Part after bit, to generate the first file to be combined.
In this step E, from file1(2)The object deleted in file is referred in file1(2)In file with from file2(2)
The first bit of the predetermined number bit identical bit extracted in file(For example, with reference to the f1-s in Fig. 3 A)Extremely
file1(2)Last of file position(For example, with reference to the f1e in Fig. 3 A)Part.
Specifically, second document processing module 113 generates the second file to be combined of the generation in accordance with the following steps:
F1, extract from file2(2)The predetermined number bit that the end position of file rises;
It is described from file2 in this step F1(2)The end position of file acts the predetermined number bit extracted, bit
Digit can arbitrarily select, such as 50,51,52 ..., m(M is taken less than file3(2)The positive integer of the number of bits of file), choosing
The digit selected is bigger, and the operation result obtained when computing is compared is more accurate, and operation result described herein refers to two
Individual binary stream file determines to duplicate the position of content in binary stream file when computing is compared, in the present embodiment
In, the digit of predetermined number bit such as is set as 100, then the predetermined number bit is by from file2(2)File
Rise toward file2 last position(2)100 bits composition that the original position direction of file is extracted.
F2, from file3(2)The end position of file rises, and a predetermined number bit is extracted in bit-by-bit position;
It is described in file3 in this step F2(2)The digit of the predetermined number bit extracted in file with from file2(2)
The digit that the end position of file acts extracted predetermined number bit is identical, for example, working as from file2(2)The stop bits of file
When the digit for having put extracted predetermined number bit is 100, in file3(2)The predetermined number bit extracted in file
Digit is also 100.
F3, when having predetermined number bit from file3(2)When being extracted in file, compare from file3(2)Carried in file
The predetermined number bit that takes with from file2(2)The predetermined number bit extracted in file;
F4, repeat the above steps F2 and F3, until from file3(2)The predetermined number bit that is extracted in file with from
file2(2)Untill when the predetermined number bit extracted in file is identical;
F5, according to from file3(2)Extracted in file with from file2(2)The predetermined number bit extracted in file is identical
Bit, determine file3(2)With file2 in file(2)Stop bits and start bit that the content of file is repeated;Wherein originate
Position is the position of the second predetermined number of backward file prime direction interval positioned at the stop bits determined.
F6, from file2(2)Deleted in file with from file3(2)The stop bits identical content that the start bit of file is extremely determined
Part, to generate the second file to be combined.
Further, second document processing module 113 can also generate the generation second in accordance with the following steps and treat
Merge file:
M1, extract from file3(2)The predetermined number bit that the original position of file rises;
It is described from file3 in this step M1(2)The original position of file acts the digit of the predetermined number bit extracted
Can arbitrarily select, such as 50,51,52 ..., m(M is taken less than file3(2)The positive integer of the number of bits of file), the position of selection
Number is bigger, and the operation result obtained when computing is compared is more accurate, and operation result described herein refers to that two two are entered
Stream file processed is determined to duplicate the position of content in binary file when computing is compared, in the present embodiment, such as set
The digit of predetermined number bit is 100, then the predetermined number bit is by from file3(2)The original position of file rises
Toward file3(2)100 bits composition that the last position direction of file is extracted.
M2, from file2(2)The end position of file rises, and a predetermined number bit is extracted in bit-by-bit position;
It is described in file2 in this step M2(2)The digit of the predetermined number bit extracted in file with from file3(2)
The digit that the original position of file acts extracted predetermined number bit is identical, for example, working as from file3(2)The start bit of file
When the digit for having put extracted predetermined number bit is 100, in file2(2)The predetermined number bit extracted in file
Digit is also 100.
M3, when having predetermined number bit from file2(2)When being extracted in file, compare from file2(2)Carried in file
The predetermined number bit that takes with from file3(2)The predetermined number bit extracted in file;
M4, repeat the above steps M2 and M3, until from file2(2)The predetermined number bit that is extracted in file with from
file3(2)Untill when the predetermined number bit extracted in file is identical;
M5, from file2(2)Deleted in file with from file3(2)The predetermined number bit identical extracted in file is the first
Part after bit, to generate the second file to be combined.
In this step M5, from file2(2)The object deleted in file is referred in file2(2)In file with from
file3(2)The first bit of the predetermined number bit identical bit extracted in file(For example, with reference in Fig. 3 A
f2-s)To file2(2)The part of last of file position.
In addition, the second document processing module 113 of server 110 merges processing by the file to recording, generation
After complete video file, the file chained address that server 110 will additionally generate complete video file is sent to terminal 120,
So as to save the holder space of terminal 120.User can be in terminal 120 by opening the file chained address to record
The TV programme of system such as play, delete, download operation.Therefore, using the recording TV program of server 110, no
It address only because terminal 120 and time difference that server 110 exists when being communicated cause the image file recorded endless
Whole problem, also compensate for the defect of the storage facilities off-capacity of terminal 120.
It is emphasized that the video file generated eventually through merging treatment can be stored in the server 110
On storage facilities, other places can also be transferred to by network communication apparatus, such as by setting up associated mailbox and server
Communication connection between 110, will record and is sent by the video file of merging treatment to the mailbox, will can also be recorded a video
File storage is on network hard disc.
2nd, the situation of recording time need to be included by starting video recording instruction:
Secondary signal processing module 111, sends for receiving terminal 120 and starts video recording instruction, described to start video recording instruction
Include recording time;
Second video acquisition module 112, for starting video recording instruction to reaching recording time receive the transmission of terminal 120
When stop, record N image files;
Secondary signal processing module 111, is additionally operable to receiving sending to terminal when starting video recording instruction for the transmission of terminal 120
Start feedback signal of recording a video;
Second document processing module 113, for receiving the H image files sent from terminal 120, and to H images
File, N image files merge processing, to generate complete image file;
Wherein:H image files are to receive server 110 to terminal 120 from terminal 120 is detected when starting video recording instruction
Send start video recording feedback signal when stop, recorded by terminal 120;
Further, as shown in fig. 6, the terminal 120 includes the first signal processing module 121, the first video acquisition mould
The document processing module 123 of block 122 and first, wherein:
First signal processing module 121, for detect user transmission start video recording instruction and by detecting start video recording
Instruction is sent to server 110, and what the reception server 110 was sent starts feedback signal of recording a video;
First video acquisition module 122, for detect start video recording instruction when to receive server 110 transmission
Start to stop during video recording feedback signal, record H image files;
First document processing module 123, for by H image file uploads to server 110.
Specifically, the video recording instruction that the first signal processing module 121 detecting user sends(Record is included in the video recording instruction
Channel processed, start to record a video or stop video recording instruction etc. information), when detect start video recording instruction when, start terminal 120 record a video,
First video acquisition module 122 gathers TV signal, while the first signal processing module 121 will include the association for starting video recording instruction
View bag(P1)Server 110 is sent to, and monitors the protocol package that server 110 is beamed back;When secondary signal processing module 111 is received
To protocol package(P1)When, 111 pairs of secondary signal processing module starts video recording instruction and carries out analysis judgement, it is determined whether include recording
Time, in this embodiment, the embodiment are directed to start to record a video to instruct to include the situation of recording time, service
Second video acquisition module 112 of device 110 starts to gather TV signal, while secondary signal processing module 111 sends protocol package
(P2)To terminal 120, and the stopping video recording instruction that monitoring terminal 120 is sent;When the first signal processing module 121 receives agreement
Bag(P2)When, the first video acquisition module 122 stops collection TV signal, and the first document processing module 123 is by the number collected
According to being organized into H image files(H image files are identified with file1-1 below), and file1 files are uploaded onto the server
110;When the video recording duration of server 110 reaches recording time, the second video acquisition module 112 stops collection TV signal,
Second document processing module 113 is by the data preparation collected into N image files(Below with file2-2 mark N image texts
Part).
After server 110 receives the file1-1, second 113 pairs of document processing module described file1-1, file2-2
Processing is merged, to generate complete image file.
Specifically, described second document processing module, 113 couples of file1-1 and file2-2 merges the step of processing
Suddenly include:File1-1 is converted to unified binary stream formatted file file1-1(2), file12-2 is converted into unification
Binary stream formatted file file2-2(2);By the binary stream formatted file file1-1(2)With file2-2(2)It is compared
Computing, finds out file1-1(2)With file2-2 in file(2)The original position of duplicate contents(For example, with reference to the f1-s in Fig. 3 C),
From file1-1(2)Middle deletion file1-1(2)The start bit of middle duplicate contents to last position content part, to generate file1-1(2)
File to be combined;Referring to Fig. 3 C, by the file1-1(2)The last position of file to be combined(For example, with reference to the f1-s in Fig. 3 C)It is right
It is connected to file2-2(2)Original position(For example, with reference to the f2b in Fig. 3 C), to generate complete image file.
Further, the generation file1-1(2)The step of file to be combined, includes:
G1, extract from file2-2(2)The predetermined number bit that the original position of file rises;
It is described from file2-2 in this step G1(2)The original position of file acts the position of the predetermined number bit extracted
Number can be selected arbitrarily, such as 50,51,52 ..., k(K is taken less than file1-1(2)Number of bits positive integer), the position of selection
Number is bigger, and the operation result obtained when computing is compared is more accurate, and operation result described herein refers to that two two are entered
Stream file processed is determined to duplicate the position of content in binary stream file when computing is compared, in the present embodiment, such as set
The digit for determining predetermined number bit is 100, then the predetermined number bit is by from file2-2(2)The start bit of file
Put toward file2-2(2)100 bits composition that the last position direction of file is extracted.
G2, from file1-1(2)The original position of file rises, and a predetermined number bit is extracted in bit-by-bit position;
It is described in file1-1 in this step G2(2)The digit of the predetermined number bit extracted in file with from
file2-2(2)The digit that the original position of file acts extracted predetermined number bit is identical, for example, working as from file2-2(2)
When the digit that the original position of file acts extracted predetermined number bit is 100, in file1-1(2)That is extracted in file is pre-
If the digit of number of bits position is also 100.
G3, when having predetermined number bit from file1-1(2)When being extracted in file, compare from file1-1(2)File
The predetermined number bit of middle extraction with from file2-2(2)The predetermined number bit extracted in file;
G4, repeat the above steps G2 and G3, until from file1-1(2)The predetermined number bit that is extracted in file with from
file2-2(2)Untill when the predetermined number bit extracted in file is identical;
G5, from file1-1(2)Deleted in file with from file2-2(2)The predetermined number bit identical extracted in file
Part after the first bit, to generate file1-1(2)File to be combined.
In this step G5, from file1-1(2)The object deleted in file is referred in file1-1(2)In file with from
file2-2(2)The first bit of the predetermined number bit identical bit extracted in file is to file1-1(2)Last of file
The part of position.
In addition, the second document processing module 113 of server 110 merges processing by the file to recording, generation
After complete video file, the file chained address that server 110 will additionally generate complete video file is sent to terminal 120,
So as to save the holder space of terminal 120.User can be in terminal 120 by opening the file chained address to record
The TV programme of system such as play, delete, download operation.Therefore, using the recording TV program of server 110, no
It address only because terminal 120 and time difference that server 110 exists when being communicated cause the image file recorded endless
Whole problem, also compensate for the defect of the storage facilities off-capacity of terminal 120.
It is emphasized that the video file generated eventually through merging treatment can be stored in the server 110
On storage facilities, other places can also be transferred to by network communication apparatus, such as by setting up associated mailbox and server
Communication connection between 110, will record and is sent by the video file of merging treatment to the mailbox, will can also be recorded a video
File storage is on network hard disc.Terminal 120 can be the terminal of TV or other energy recording TV programs,
It should be appreciated that these are only the preferred embodiments of the present invention, it is impossible to therefore the scope of the claims of the limitation present invention,
Equivalent structure or equivalent flow conversion that every utilization description of the invention and accompanying drawing content are made, or be directly or indirectly used in
Other related technical fields, are included within the scope of the present invention.
Claims (10)
1. a kind of method that TV programme are recorded a video, it is characterised in that the method comprising the steps of:
Server receives video recording instruction and stopping video recording since terminal transmission and instructed;
Server receive terminal transmission start video recording instruction when to receive terminal transmission stopping record a video instruction when stop, record
Make the second image file, server receive terminal transmission start video recording when starting video recording instruction and sent to terminal start record
As feedback signal, server stops video recording when instruction is recorded a video in the stopping for receiving terminal transmission and sent to terminal to stop recording a video back
Feedback signal;
Server receives the first image file and the 3rd image file sent from terminal;
Server merges processing to the first image file, the second image file and the 3rd image file, to generate no time
The complete image file of difference;
Wherein:
First image file be terminal detect start video recording instruction when to terminal receive server transmission start record a video back
Stop during feedback signal, the television program file recorded by terminal;
3rd image file is that the stopping for receiving server transmission to terminal from terminal is detected when stopping video recording instruction is recorded a video back
Stop during feedback signal, the television program file recorded by terminal.
2. the method according to claim 1 that TV programme are recorded a video, it is characterised in that the server is to first
Image file, the second image file and the 3rd image file merge processing, to generate the complete image text of no time difference
The step of part, includes:
First image file is converted into the first binary format file, the second image file is converted into the second binary format
File, and the 3rd image file is converted into the file of the 3rd binary format;
First binary format file is compared with the second binary format file, deleted from the first binary format file
Except the content part repeated with the second binary format file, to generate the first file to be combined;
Second binary format file and the 3rd binary format file are compared, found out in the 3rd binary format file
The content part repeated with the second binary format file, is deleted and the 3rd binary format from the second binary format file
The part that file is repeated, to generate the second binary format file to be combined;
First file to be combined and the second binary format file to be combined are merged.
3. the method according to claim 2 that TV programme are recorded a video, it is characterised in that the generation first is waited to close
And file the step of include:
The predetermined number bit of A, extraction from the original position of the second binary format file;
B, from the original position of the first binary format file, bit-by-bit position extract a predetermined number bit;
C, when there is predetermined number bit to be extracted from the first binary format file, compare from the first binary format
The predetermined number bit extracted in file and the predetermined number bit extracted from the second binary format file;
D, repeat the above steps B and C, until the predetermined number bit that is extracted from the first binary format file with from second
Untill when the predetermined number bit extracted in binary format file is identical;
E, the predetermined number bit deleted and extracted from the second binary format file from the first binary format file
Part after the bit of identical first place, to generate the first file to be combined.
4. the method according to claim 2 that TV programme are recorded a video, it is characterised in that the generation is to be combined
The step of second binary format file, includes:
The predetermined number bit of F1, extraction from the end position of the second binary format file;
F2, from the end position of the 3rd binary format file, bit-by-bit position extract a predetermined number bit;
F3, when there is predetermined number bit to be extracted from the 3rd binary format file, compare from the 3rd binary system lattice
The predetermined number bit extracted in formula file and the predetermined number bit extracted from the second binary format file;
F4, repeat the above steps F2 and F3, until the predetermined number bit that is extracted from the 3rd binary format file with from
Untill when the predetermined number bit extracted in second binary format file is identical;
F5, according to the predetermined number extracted from the 3rd binary format file with extracting from the second binary format file
Bit identical bit, determines the knot repeated in the 3rd binary format file with the content of the second binary format file
Beam position and start bit;
F6, deletion and the stop bits of the start bit from the 3rd binary format file to determination from the second binary format file
Identical content, to generate the second binary format file to be combined.
5. the method that TV programme are recorded a video according to any one of Claims 1-4, it is characterised in that this method
Processing is merged to the first image file, the second image file and the 3rd image file in server, to generate no time difference
Complete image file step after also include:
Server sends the file chained address of the complete image file of generation to terminal.
6. a kind of method that TV programme are recorded a video, it is characterised in that the method comprising the steps of:
Server reception is recorded a video since terminal transmission and instructed, and the video recording that starts is instructed comprising recording time;
Server receive terminal transmission start video recording instruction when from is reached to recording time when stop, recording N image files,
Server receive terminal transmission start video recording instruction when start video recording and to terminal send start record a video feedback signal;
Server receives the H image files sent from terminal;
Server merges processing to N image files and H image files, to generate the complete image text of no time difference
Part;
Wherein:
H image files be terminal detect start video recording instruction when to terminal receive server transmission start record a video feedback
Stop during signal, the television program file recorded by terminal.
7. the method according to claim 6 that TV programme are recorded a video, it is characterised in that the server is to N
Image file and H image files merge processing, include the step of complete image file to generate no time difference:
N image files are converted into N binary format files, and H image files are converted into H binary formats text
Part;
N binary formats file is compared with H binary format files, deleted from H binary format files
The content part repeated with N binary formats file, to generate the file that H is to be combined;
File to be combined H and N binary format files are merged.
8. the method according to claim 7 that TV programme are recorded a video, it is characterised in that the generation H waits to close
And file the step of include:
The predetermined number bit of G1, extraction from the original position of N binary format files;
G2, from the original position of H binary format files, bit-by-bit position extract a predetermined number bit;
G3, when there is predetermined number bit to be extracted from H binary format files, compare from H binary formats
The predetermined number bit extracted in file and the predetermined number bit extracted from N binary format files;
G4, repeat the above steps G2 and G3, until the predetermined number bit that is extracted from H binary format files with from the
Untill when the predetermined number bit extracted in N binary format files is identical;
G5, deletion and the predetermined number bit phase extracted from N binary format files from H binary format files
Part after same the first bit, to generate H files to be combined.
9. a kind of server that TV programme are recorded a video, it is characterised in that the server includes:
Secondary signal processing module, sends for receiving terminal and starts video recording instruction and stopping video recording instruction;
Second video acquisition module, for being recorded a video in video recording instruction to the stopping for receiving terminal transmission that starts for receiving terminal transmission
Stop during instruction, record the second image file;
Secondary signal processing module, be additionally operable to receive terminal transmission start video recording instruction when to terminal send start to record a video back
Feedback signal, and when instruction is recorded a video in the stopping for receiving terminal transmission to terminal transmission stopping video recording feedback signal;
Second document processing module, for receiving the first image file and the 3rd image file that are sent from terminal, and to
One image file, the second image file and the 3rd image file merge processing, to generate the complete image of no time difference
File;
Wherein:First image file be terminal detect start video recording instruction when to terminal receive server transmission start record
Stop during as feedback signal, the television program file recorded by terminal;
3rd image file is that the stopping for receiving server transmission to terminal from terminal is detected when stopping video recording instruction is recorded a video back
Stop during feedback signal, the television program file recorded by terminal.
10. a kind of server that TV programme are recorded a video, it is characterised in that the server includes:
Secondary signal processing module, sends for receiving terminal and starts video recording instruction, when the instruction that starts to record a video is comprising recording
Between;
Second video acquisition module, for being instructed in the video recording that starts for receiving terminal transmission to stopping when reaching recording time, is recorded
N image files;
Secondary signal processing module, be additionally operable to receive terminal transmission start video recording instruction when to terminal send start to record a video back
Feedback signal;
Second document processing module, for receiving the H image files sent from terminal, and to N image files, H shadows
As file merges processing, to generate the complete image file of no time difference;
Wherein:H image files be terminal detect start video recording instruction when to terminal receive server transmission start record
Stop during as feedback signal, the television program file recorded by terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310138400.4A CN103227934B (en) | 2013-04-19 | 2013-04-19 | The method and server that TV programme are recorded a video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310138400.4A CN103227934B (en) | 2013-04-19 | 2013-04-19 | The method and server that TV programme are recorded a video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103227934A CN103227934A (en) | 2013-07-31 |
CN103227934B true CN103227934B (en) | 2017-07-28 |
Family
ID=48838169
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310138400.4A Expired - Fee Related CN103227934B (en) | 2013-04-19 | 2013-04-19 | The method and server that TV programme are recorded a video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103227934B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106470344B (en) * | 2015-08-20 | 2019-08-23 | 阿里巴巴集团控股有限公司 | The method for recording and server of TV programme |
CN105120299B (en) * | 2015-08-28 | 2020-02-14 | 广州酷狗计算机科技有限公司 | Video pushing method and device |
CN112738574B (en) * | 2019-10-28 | 2023-04-07 | 深圳市万普拉斯科技有限公司 | Screen recording data processing method and device, computer equipment and storage medium |
CN113347452B (en) * | 2021-08-04 | 2021-11-02 | 浙江中控技术股份有限公司 | Remote maintenance method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101068340A (en) * | 2007-06-08 | 2007-11-07 | 华为技术有限公司 | Program network transcribing method and media processing server and network transcribing system |
CN101742198A (en) * | 2008-11-24 | 2010-06-16 | 联发科技股份有限公司 | Multimedia recording apparatus and method |
CN101938601A (en) * | 2009-06-29 | 2011-01-05 | 佳能株式会社 | Picture pick-up device and control method thereof |
CN102340625A (en) * | 2010-07-16 | 2012-02-01 | 安讯士有限公司 | Method for event initiated video capturing and a video camera for capture event initiated video |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100480714B1 (en) * | 2002-08-08 | 2005-04-06 | 엘지전자 주식회사 | remote subscription record system and control method of the same |
US8165221B2 (en) * | 2006-04-28 | 2012-04-24 | Netapp, Inc. | System and method for sampling based elimination of duplicate data |
KR20080020868A (en) * | 2006-09-01 | 2008-03-06 | 삼성전자주식회사 | Apparatus and method for simultaneously recording and replaying streaming content |
CN101094492A (en) * | 2007-08-20 | 2007-12-26 | 中兴通讯股份有限公司 | Method and device for guaranteeing integrality of monitored content |
US9955107B2 (en) * | 2009-04-23 | 2018-04-24 | Arris Enterprises Llc | Digital video recorder recording and rendering programs formed from spliced segments |
CN101656861B (en) * | 2009-09-14 | 2012-07-18 | 中兴通讯股份有限公司 | Method and multimedia system for recording programs |
-
2013
- 2013-04-19 CN CN201310138400.4A patent/CN103227934B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101068340A (en) * | 2007-06-08 | 2007-11-07 | 华为技术有限公司 | Program network transcribing method and media processing server and network transcribing system |
CN101742198A (en) * | 2008-11-24 | 2010-06-16 | 联发科技股份有限公司 | Multimedia recording apparatus and method |
CN101938601A (en) * | 2009-06-29 | 2011-01-05 | 佳能株式会社 | Picture pick-up device and control method thereof |
CN102340625A (en) * | 2010-07-16 | 2012-02-01 | 安讯士有限公司 | Method for event initiated video capturing and a video camera for capture event initiated video |
Also Published As
Publication number | Publication date |
---|---|
CN103227934A (en) | 2013-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2890133B1 (en) | System and method for distributing live broadcast content | |
CN107231581B (en) | Method and system for video playing and streaming media playing control server | |
CN103227934B (en) | The method and server that TV programme are recorded a video | |
WO2016054916A1 (en) | Video content recommending and evaluating methods and devices | |
CN111147955B (en) | Video playing method, server and computer readable storage medium | |
CN104904232A (en) | Video editing device | |
CN108769805B (en) | Data transmission method and device, computer equipment and storage medium | |
CN111263239B (en) | Video frame packet loss processing method and related device | |
WO2020052017A1 (en) | Data distribution system and method, and computer readable storage medium | |
TW201806380A (en) | Video splitting device and monitoring method | |
WO2019228116A1 (en) | Data transmission method and system for use in one-way broadcast and two-way network | |
RU2673102C2 (en) | Device and method of information processing and program | |
CN106658065B (en) | Audio and video synchronization method, device and system | |
CN105812831B (en) | Network program recording method, device and system and playing method and device | |
CN114598493B (en) | Network traffic collection method | |
CN106506483B (en) | Video source group synchronized playback method and device based on ONVIF | |
CN106688240A (en) | Method and device for remotely recording video programs | |
JP2010130473A (en) | Transmitting terminal, receiving terminal, and transmission system used for one-directional transmission line | |
WO2017101311A1 (en) | Method, client and server for realising switching from live broadcasting to on-demand broadcasting | |
JP5054664B2 (en) | Receiving terminal that receives header compressed packets | |
TWI680668B (en) | Screen image transmission method, image restoration method, screen image transmission system, image restoration system, screen image transmission program, image restoration program, image compression method, image compression system, and image compression program | |
CN107066398B (en) | Distribution device and information device | |
US8719880B2 (en) | Content management server and content management method | |
CN107529190B (en) | User data acquisition system and method | |
CN116132698A (en) | Content recording method, playing method, CDN system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170728 |