CN103368945B - Method of recording code streams and code stream recording system - Google Patents

Method of recording code streams and code stream recording system Download PDF

Info

Publication number
CN103368945B
CN103368945B CN201310221026.4A CN201310221026A CN103368945B CN 103368945 B CN103368945 B CN 103368945B CN 201310221026 A CN201310221026 A CN 201310221026A CN 103368945 B CN103368945 B CN 103368945B
Authority
CN
China
Prior art keywords
stream
information
recording
top box
set top
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.)
Active
Application number
CN201310221026.4A
Other languages
Chinese (zh)
Other versions
CN103368945A (en
Inventor
刘鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201310221026.4A priority Critical patent/CN103368945B/en
Publication of CN103368945A publication Critical patent/CN103368945A/en
Application granted granted Critical
Publication of CN103368945B publication Critical patent/CN103368945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method of recording code streams and a code stream recording system. The system comprises a set top box and a terminal device, wherein the set top box comprises a processing module, a process scheduling module, a code stream collecting module and a PCI (Peripheral Component Interconnect) module. The method of recording the code streams comprises the steps that the terminal device sends a socket access request to the set top box after building communication connection with the set top box by adopting TCP/IP (Transmission Control Protocol/Internet Protocol), and carries a terminal device IP address; the set top box receives the socket access request, and sends a code stream recording rule information list which carries a set top box IP address and is stored in advance to the terminal device; the terminal device receives and displays the code stream recording rule information list, receives information selected by a user according to the displayed code stream recording rule information list, and generates and outputs code stream recording rule setting information to the set top box; and the set top box records and stores the code streams according to the received code stream recording rule setting information. By using the method and the device, the recording flow can be simplified, and remote recording can be realized.

Description

Record method and the stream-recording system of code stream
Technical field
The present invention relates to digital TV technology, more particularly, to a kind of method recording code stream and code stream Recording system.
Background technology
With the continuous development of DTV, the code stream information of transmission is carried out recording present all the more it Importance.For example, for Set Top Box exploitation or attendant, by recording code stream information, permissible Check transport stream(TS, TransportStream)Present in mistake and revise, thus lifted user receive See the business experience of DTV it is ensured that the running quality of digital television system and program safe broadcast; For user, by recording code stream information, recording the program oneself liked to watch at any time, can carry Carry out more excellent experience property.
In the prior art, the recording of code stream information generally uses special equipment, because its price is held high Expensive it is difficult to popularization.At present, top box of digital machine itself embedded in the software of the function with stream-recording, In the Set Top Box stream-recording page being shown by DTV, pressed by the selection up and down on remote control Button selects to recording the recording Rule Information such as frequency, recording mode, file size, code stream type, Need, through multiple selection switching, just to complete to record, not only take a significant amount of time, flexible operation Property poor, and cannot remote recording, realize the many people in strange land share a Set Top Box operated.
Content of the invention
The goal of the invention of the present invention there are provided a kind of stream-recording system and method for recording, simplifies record Flow process processed, realize remote recording.
A kind of one side according to an embodiment of the invention, there is provided stream-recording system, including: Set Top Box and terminal device;
Described Set Top Box is provided with the Set Top Box transmission control protocol TCP port for the network interconnection in advance Number and Set Top Box Internet Protocol IP address;Described terminal device is provided with advance mutual for network The terminal device tcp port number of connection and terminal device IP address;
Described Set Top Box, for by the corresponding port of Set Top Box tcp port number, receiving described terminal The socket access request that equipment sends, will carry the stream-recording prestoring of set-top box IP addresses Rule Information table sends to described terminal device;Receive described terminal device transmitted stream and record rule Configuration information, the stream-recording rule setting information according to receiving carries out stream-recording, storage;
Described terminal device, for, after setting up communication connection using TCP/IP with described Set Top Box, leading to Cross the corresponding port of terminal device tcp port number, send socket access request to described Set Top Box, Carried terminal IP address of equipment;Receive stream-recording Rule Information table, be shown, receive user root The information chosen according to the stream-recording Rule Information table shown, generates stream-recording rule setting information, To the output of described Set Top Box.
It is preferred that described Set Top Box includes:Processing module, process scheduling module and code stream collection mould Block, wherein,
Described processing module, for by described Set Top Box tcp port number, receiving described terminal device The socket access request sending, will carry the stream-recording prestoring of described set-top box IP addresses Rule Information table sends to described terminal device;Receive described terminal device transmitted stream and record rule Configuration information, exports to described process scheduling module;
Described process scheduling module, for receiving stream-recording rule setting information, notifies code stream collection Module carries out code stream collection according to stream-recording rule setting information;Receive code stream information, according to code stream Record rule setting information to be stored;
Described code stream acquisition module, for code stream collection is carried out according to the notice of described process scheduling module, After code stream collection terminates, the code stream information of collection is exported to described process scheduling module.
It is preferred that described stream-recording Rule Information table comprises:Record frequency point information, recording mode letter Breath, document size information, code stream type information and store path information.
It is preferred that the described store path information in described stream-recording rule setting information includes locally Store path information.
It is preferred that the described store path information in described stream-recording rule setting information include plug-in Storage device store path information;Described Set Top Box further includes:External component interconnects pci bus Module,
Described process scheduling module, is further used for depositing in determining stream-recording rule setting information After storage routing information is described external storage equipment store path information, by the code stream information receiving output To described pci bus module;Described pci bus module, for passing through the code stream information receiving General-purpose serial bus USB 2.0 interface exports to the described external storage equipment being connected.
It is preferred that the store path information in described stream-recording rule setting information includes described terminal Equipment store path information, described process scheduling module, it is further used for determining stream-recording rule Store path information in configuration information is the code that after described terminal device store path information, will receive Stream information exports described terminal device corresponding to described terminal device store path information.
It is preferred that described terminal device includes:Personal computer, mobile terminal and individual digital help Reason.
According to an embodiment of the invention on the other hand, additionally provide a kind of code stream recording method, bag Include:
It is pre-configured with the Set Top Box transmission control protocol TCP port numbers for the network interconnection in Set Top Box With Set Top Box Internet Protocol IP address;Terminal device is pre-configured with for the network interconnection Terminal device tcp port number and terminal device IP address;
Described terminal device after communication connection is set up with described Set Top Box using TCP/IP, by described The corresponding port of terminal device tcp port number, sends socket access request to described Set Top Box, takes Carry described terminal device IP address;
Described Set Top Box receives socket access request by the corresponding port of Set Top Box tcp port number, The stream-recording Rule Information table prestoring carrying set-top box IP addresses is sent and sets to described terminal Standby;
Described terminal device receives stream-recording Rule Information table, is shown, receive user is according to exhibition The information that the stream-recording Rule Information table showing is chosen, generates stream-recording rule setting information, to institute State Set Top Box output;
Described Set Top Box carries out stream-recording, storage according to the stream-recording rule setting information receiving.
Wherein, in described stream-recording Rule Information table, described store path information includes:Locally deposit Storage routing information, terminal device store path information and external storage equipment store path information;Institute State Set Top Box to carry out code stream storage and specifically include according to the stream-recording rule setting information receiving:
If in stream-recording rule setting information, it is locally stored path letter described in store path information Breath, then be stored in described Set Top Box local disk by the code stream of recording;
If in stream-recording rule setting information, store path information is deposited for described external storage equipment Storage routing information, then pass through general-purpose serial bus USB 2.0 interface by the code stream of recording and export to connected The described external storage equipment connecing is stored;
If in stream-recording rule setting information, store path information is that described terminal device stores road Footpath information, then exported the code stream of recording by Set Top Box tcp port and deposited to described terminal device Storage.
Wherein, the information that described receive user is chosen according to the stream-recording Rule Information table shown, raw Stream-recording rule setting information is become to include:
Receive user, according to code stream information to be recorded, is selected from the stream-recording Rule Information table shown The code stream to be recorded that takes is corresponding to be recorded frequency, recording mode, file size, code stream type and deposits Storage path;
After confirming that user's selection finishes, according to the selection information of user, generate stream-recording rule and set Confidence ceases.
As shown from the above technical solution, in the technical scheme of the embodiment of the present invention, by by Set Top Box and Terminal device is placed in network, and is respectively provided for the network interconnection for Set Top Box and terminal device Tcp port number and IP address.When Set Top Box receive terminal device transmission by tcp port number and IP Address composition socket access request after, to terminal device return includes recording frequency, recording mode, File size, code stream type, the html file of the stream-recording Rule Information table of store path, eventually After end equipment is configured according to the stream-recording Rule Information table receiving, export to Set Top Box, machine top Box completes stream-recording according to the stream-recording rule setting information that terminal device exports.So, pass through Composition internet, using terminal equipment is recorded, and not only operating procedure is simple, supports remote simultaneously Journey is recorded, and the many people in strange land can share a Set Top Box and be operated.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be right In embodiment or description of the prior art, the accompanying drawing of required use is briefly described.It should be evident that Accompanying drawing in below describing is only some embodiments of the present invention, for those of ordinary skill in the art For, other embodiments and its accompanying drawing can also be obtained according to these accompanying drawing illustrated embodiments.
Fig. 1 is the stream-recording system structure diagram of the embodiment of the present invention.
Fig. 2 records the method flow schematic diagram of code stream for the embodiment of the present invention.
Fig. 3 records method first idiographic flow schematic diagram of code stream for the embodiment of the present invention.
Fig. 4 records method second idiographic flow schematic diagram of code stream for the embodiment of the present invention.
Specific embodiment
For making the objects, technical solutions and advantages of the present invention become more apparent, referring to the drawings simultaneously Enumerate preferred embodiment, the present invention is described in more detail.However, it is necessary to explanation, explanation The many details listed in book are used for the purpose of making reader have one to one or more aspects of the present invention Thorough explanation, can also realize the aspects of the invention even without these specific details.
The term such as " module " used in this application, " system " is intended to including the reality related to computer Body, such as but not limited to hardware, firmware, combination thereof, software or executory software.Example As, module can be, it is not limited to:On processor run process, processor, object, Executable program, the thread of execution, program and/or computer.For example, computing device is run Application program and this computing device can be module.One or more modules may be located in execution A process and/or thread in, module can also be located on a computer and/or be distributed in two Between platform or more multiple stage computers.
The present invention proposes a kind of stream-recording system based on Set Top Box.Using client-side/server-side (C/S, Client/Server)Framework, using the Set Top Box of built-in Linux operating system as service end, Personal computer(PC, Personal Computer)As client.By by the clothes of C/S framework Business end and client are placed in network, and it is mutual to be respectively provided for network for service end and client The transmission control protocol of connection(TCP, Transmission Control Protocol)Port numbers and internet Interconnection protocol(IP, Internet Protocol)Address.When service end receive client transmission by After the socket access request of tcp port number and IP address composition, return to client and include recording frequency Point, recording mode, file size, code stream type, the stream-recording Rule Information table of store path HTML(HTML, Hypertext Markup Language)File, client according to After the stream-recording Rule Information table receiving is configured, export to service end, service end is according to client The stream-recording rule setting information of end output completes stream-recording.So, by forming internet, Recorded using PC, not only operating procedure is simple, supported remote recording, strange land many people can be total to simultaneously Enjoy a Set Top Box to be operated.
Fig. 1 is the stream-recording system structure diagram of the embodiment of the present invention.Referring to Fig. 1, this code stream is recorded System processed includes:Set Top Box 101 and terminal device 102, wherein,
Set Top Box 101 is provided with Set Top Box tcp port number and Set Top Box IP for the network interconnection in advance Address;Terminal device 102 is provided with terminal device tcp port number and end for the network interconnection in advance End equipment IP address;
Set Top Box 101, for by the corresponding port of Set Top Box tcp port number, receiving terminal apparatus The socket access request of 102 transmissions, will carry the stream-recording prestoring of set-top box IP addresses Rule Information table sends to terminal device 102;Receiving terminal apparatus 102 transmitted stream is recorded rule and is set Confidence ceases, and the stream-recording rule setting information according to receiving carries out stream-recording, storage;
In the embodiment of the present invention, each Set Top Box carrying out stream-recording can will be needed to enter with being available for user The terminal device of row operation carries out the network interconnection.For example, Set Top Box and terminal device can form wide area network, Also can form in LAN, and the wide area network in composition or LAN, respectively Set Top Box and terminal set Standby tcp port number and the IP address being configured to the network interconnection.
With regard to Set Top Box and terminal device are carried out the network interconnection, and it is configured to the TCP of the network interconnection Port numbers and IP address are known technology, and here omits detailed description.
Stream-recording Rule Information table comprises:Record frequency, recording mode, file size, code stream class The information such as type, store path.Wherein, recording frequency is to be supplied to Set Top Box to be transmitted flowing recording Frequency point information, can be one or more;Which type of pattern recording mode can adopt for Set Top Box Recorded;The size of the transport stream recorded that file size provides for Set Top Box, is based primarily upon machine top The consideration of box memory space;Code stream type includes:TS code stream, single channel TS stream, elementary stream(ES, Elementary Stream), packing elementary stream(PES, Packetised Elementary Stream) Deng;Store path is the storage location of the code stream recorded.
It is preferred that Set Top Box is encapsulated as html file by recording Rule Information table, by TCP/IP The HTTP of application layer(HTTP, Hypertext transfer protocol)Export to end End equipment 102.In practical application, in html file, also carry terminal device IP further Address and terminal device tcp port number.I.e. in the information of transmission, carry source IP address, mesh IP address and purpose tcp port number.
In the embodiment of the present invention, Set Top Box is received and sent messages the Set Top Box tcp port number pair all passing through to configure The port answered.
Set Top Box is carried out after relative set according to the stream-recording rule setting information receiving, to receive Code stream information from external server is recorded, and the code stream information recording is exported to recording The store path specified in rule setting information.
Terminal device 102, for, after setting up communication connection using TCP/IP with Set Top Box 101, leading to Cross the corresponding port of terminal device tcp port number, send socket access request to Set Top Box 101, Carried terminal IP address of equipment;Receive stream-recording Rule Information table, be shown, receive user root The information chosen according to the stream-recording Rule Information table shown, generates stream-recording rule setting information, Export to Set Top Box 101.
In the embodiment of the present invention, terminal device can be personal computer or mobile terminal, Can also be that personal digital assistant etc. can carry out the equipment of the network interconnection.By the network interconnection, thus Make user can realize remote recording code stream with Telnet Set Top Box;Further, by terminal Equipment is operated, in terms of operating function and Introduced cases, compared to remote control, simple to operate, Input is convenient, is effectively simplified the flow process recording code stream.
Similar with Set Top Box, the terminal device TCP end that terminal device is received and sent messages also through configuration The corresponding port of slogan.
It is preferred that user can be by input Set Top Box IP ground in the browser address bar of terminal device Location and Set Top Box tcp port number, thus triggering access Set Top Box, by carried terminal equipment tcp port Number and the socket access request of terminal device IP address be sent to Set Top Box 101.
Terminal device, after receiving the html file being sent by Set Top Box, is decapsulated, and obtains Stream-recording Rule Information table is simultaneously illustrated on terminal device screen.User believes according to code stream to be recorded Breath, from show stream-recording Rule Information table, select code stream to be recorded corresponding recording frequency, Recording mode, file size, code stream type, store path, terminal device is determining user's selection knot Shu Hou, the selection of user is generated stream-recording rule setting information, equally can be encapsulated as HTML literary composition Part, exports to Set Top Box.So, Set Top Box can be according to the record in stream-recording rule setting information Frequency processed, after carrying out frequency locking, such that it is able to receive the transport stream of frequency locking frequency transmission, according to select Recording mode is recorded, and the transport stream of recording is carried out corresponding code stream type conversion.Carry out When the transport stream of code stream type conversion reaches the file size of setting, terminate to record, and the literary composition that will record Part exports and is stored to the corresponding position of store path.So, in follow-up process, user can be from The code stream recorded is read in the corresponding position of store path, plays out;And Set Top Box is developed or is safeguarded people Member, by the code stream recorded, can check that wrong corresponding software or hardware present in transport stream are asked Topic, is modified, thus ensureing running quality and the program safe broadcast of digital television system.
Certainly, it is also possible to by setting recording starting time and record the end time in practical application Carry out the recording of code stream.Set Top Box is receiving stream-recording rule setting information, on stream-recording rule The recording starting time then comprising in configuration information then, carries out frequency locking, and starts to record, and is recording End time then, terminates to record.
From above-mentioned, the stream-recording system of the embodiment of the present invention, by be in advance Set Top Box and Terminal device is respectively provided for tcp port number and the IP address of the network interconnection, by Set Top Box bottom The tcp port driving, using C/S structure, service end provides the code stream record that can carry out stream-recording Rule Information table processed, client access service end by way of Telnet, obtain stream-recording rule Then information table, and therefrom choose the information needed for stream-recording, service end is further according to the selection of client Carry out stream-recording, the frequent selection handover operation of Set Top Box need not be carried out, you can complete code stream collection Function, be effectively simplified the flow process recording code stream, reduce carry out stream-recording operation required when Between;Meanwhile, shared service end in convenient multi-purpose family carries out stream-recording, realizes remote recording code stream.
Wherein,
Set Top Box 101 includes:Processing module 1101, process scheduling module 1102 and code stream collection mould Block 1103, wherein,
Processing module 1101, for by Set Top Box tcp port number, receiving terminal apparatus 102 send Socket access request, the stream-recording Rule Information prestoring of set-top box IP addresses will be carried Table sends to terminal device 102;Receiving terminal apparatus 102 transmitted stream records rule setting information, Export to process scheduling module 1102;
In the embodiment of the present invention, processing module 1101 is receiving the terminal being sent by terminal device 102 After the socket access request of equipment tcp port number and IP address composition, by TCP/IP application layer HTTP, will comprise setting record frequency, recording mode, file size, code stream type, storage road The html file of the stream-recording Rule Information table in footpath is sent to terminal device 102.Subsequently, according to The result accessing html file input being sent by terminal device 102 receiving, that is, comprise code stream Record the html file of rule setting information, send to process scheduling module 1102.
Process scheduling module 1102, for receiving stream-recording rule setting information, notifies code stream collection Module 1103 carries out code stream collection according to stream-recording rule setting information;Receive code stream information, according to Stream-recording rule setting information is stored;
In the embodiment of the present invention, process scheduling module 1102 realizes processing module 1101, code stream collection mould Communication between block 1103.
Code stream acquisition module 1103, carries out code stream collection for the notice according to process scheduling module 1102, After code stream collection terminates, the code stream information of collection is exported to process scheduling module 1102.
In the embodiment of the present invention, code stream acquisition module 1103 is used for the collection of code stream information, when receiving The notice being sent by process scheduling module 1102, this notice can be stream-recording rule setting information, Open data transmission channel, set according to the file size in notifying, recording mode, code stream type information Put filter, collection code stream information simultaneously filters to the code stream information of collection, and will stay through filtration Under code stream information export to process scheduling module 1102.
After process scheduling module 1102 receives code stream information, according in stream-recording rule setting information Store path information, the code stream information of reception is exported and is deposited to the corresponding position of store path information Storage.
Code stream acquisition module 1103, after the code stream information output by collection finishes, is closed data transfer and is led to Road, empties filter, discharges resource.
In practical application, code stream acquisition module 1103 registers with call back function, in code stream acquisition module 1103 After receiving notice, call call back function, open code Stream Data Transmission passage, with the code stream receiving Record the frequency point information in rule setting information as the first order filter condition of filter, with code stream class Type information as the second level filter condition of filter, using recording mode information as the 3rd of filter the Level filter condition, using document size information as the fourth stage filter condition of filter, to code stream information Carry out filtering collection, when completing fourth stage filtration, bit stream data collection completes, and filter is invalid, Notified to process scheduling module 1102 transmitting and receiving data by call back function, process scheduling module 1102 After receiving notice, receive the code stream of code stream acquisition module 1103 collection, finish receiving code stream information Afterwards, code stream acquisition module 1103 closes data transmission channel, empties filter, waits code stream next time Collection.
In practical application, because the memory space of Set Top Box is relatively limited, thus, for striking machine top The memory space of box, enables to store more code stream information, can pass through external storage equipment Mode, shunts to the code stream information of collection.Thus, when hanging with storage device outside Set Top Box, To in the stream-recording Rule Information table of terminal device output, store path information includes:Locally stored Routing information and external storage equipment store path information.Then Set Top Box further includes:Outside portion Part interconnects(PCI, Peripheral Component Interconnect)Bus module 1104,
Process scheduling module 1102, is further used for depositing in determining stream-recording rule setting information After storage routing information is external storage equipment store path information, the code stream information of reception is exported to PCI Bus module 1104;
Pci bus module 1104, for passing through USB by the code stream information receiving(USB, Universal Serial Bus)2.0 interfaces export to the external storage equipment being connected.
Certainly, in practical application, Set Top Box can also export the code stream information of collection to terminal device Stored, then store path information further includes terminal device store path information.
Process scheduling module 1102, is further used for depositing in determining stream-recording rule setting information After storage routing information is terminal device store path information, the code stream information of reception is exported and sets to terminal The standby corresponding terminal device of store path information.
Fig. 2 records the method flow schematic diagram of code stream for the embodiment of the present invention.Referring to Fig. 2, this flow process bag Include:
Step 201, be pre-configured with Set Top Box for the network interconnection Set Top Box tcp port number and Set-top box IP addresses;It is pre-configured with the terminal device tcp port for the network interconnection in terminal device Number and terminal device IP address;
In this step, the Set Top Box of the network interconnection and terminal device can form wide area network, also can form LAN.So, by the network interconnection, it is possible to achieve long-range terminal device accesses Set Top Box.
In the embodiment of the present invention, the Set Top Box quantity of the network interconnection can be one or more, and network is mutual The terminal device quantity of connection can be one or more.
Step 202, terminal device after communication connection is set up using TCP/IP and Set Top Box, by end The corresponding port of end equipment tcp port number, sends socket access request, carried terminal to Set Top Box IP address of equipment;
In this step, terminal device can be personal computer or mobile terminal, acceptable It is the equipment that personal digital assistant etc. can carry out the network interconnection.
By the browser address bar of terminal device, the set-top box IP addresses of receiving user's input and machine top Box number, generates socket access request.
It is preferred that socket access request is encapsulated as html file by terminal device, using TCP/IP The HTTP of application layer, by terminal device tcp port, exports to Set Top Box.
Step 203, Set Top Box passes through the corresponding port of Set Top Box tcp port number and receives socket word access Request, the stream-recording Rule Information table prestoring carrying set-top box IP addresses is sent to terminal Equipment;
In this step, stream-recording Rule Information table comprises:Recording frequency, recording mode, file are big The little, information such as code stream type, store path.
Similarly, Set Top Box can be encapsulated as html file by recording Rule Information table, using TCP/IP The HTTP of application layer, by Set Top Box tcp port, exports to terminal device.
Step 204, terminal device receives stream-recording Rule Information table, is shown, receive user root The information chosen according to the stream-recording Rule Information table shown, generates stream-recording rule setting information, To Set Top Box output;
In this step, user according to code stream information to be recorded, from the stream-recording Rule Information shown In table, select code stream to be recorded corresponding recording frequency, recording mode, file size, code stream type And store path, the selection of user generates stream-recording rule setting information by terminal device.
In the embodiment of the present invention, for the storage resource of effectively utilizes terminal device, storage can be set Routing information is terminal device store path information, the stream-recording Rule Information table that is, Set Top Box provides In, store path information includes locally stored routing information and terminal device store path information.With Family according to actual needs, can select for the code stream of recording to be stored in the locally stored disk of Set Top Box, Can select the code stream of recording is stored in terminal device.
Certainly, in practical application, when hanging with storage device outside Set Top Box, stream-recording Rule Information In table, store path information can further include external storage equipment store path information.
Step 205, Set Top Box carries out stream-recording, deposits according to the stream-recording rule setting information receiving Storage.
In this step, as it was previously stated, as in stream-recording Rule Information table, store path information includes: Locally stored routing information, terminal device store path information and external storage equipment store path letter Breath.Then Set Top Box carries out code stream storage and specifically includes according to the stream-recording rule setting information receiving:
If in stream-recording rule setting information, store path information is locally stored routing information, Then the code stream of recording is stored in Set Top Box local disk;
If in stream-recording rule setting information, store path information stores road for external storage equipment Footpath information, then export to enter to the external storage equipment being connected by USB2.0 interface by the code stream of recording Row storage;
If in stream-recording rule setting information, store path information is believed for terminal device store path Breath, then exported the code stream of recording by Set Top Box tcp port and stored to terminal device.
Fig. 3 records method first idiographic flow schematic diagram of code stream for the embodiment of the present invention.Referring to Fig. 3, Set Top Box is service end, and terminal device is client, and this flow process includes:
Step 301, service end starts processing module, waits client to send socket access request;
In this step, after service end is stable, start processing module, wait client send by Tcp port number and the socket access request of IP address composition, this socket access request is for asking Seek the html file obtaining stream-recording Rule Information table.
In actual applications, client can input service end by logging in browser in address field Corresponding IP address and port numbers, for example,http://192.168.0.01/81.Wherein, 192.168.0.01 For the IP address of Set Top Box, 81 is the tcp port number of set-top box processes module.
Step 302, service end receives socket access request, returns to client and comprises to arrange code stream record The html file of Rule Information table processed, waits the result accessing input to be received;
In this step, in html file, stream-recording Rule Information table includes:Recording frequency, Recording mode, file size, code stream type, store path;Record frequency to set for service end Small frequency is to the working frequency range of peak frequency, and the region being divided for bandwidth with 8MHz, records Pattern includes:Single is recorded and loop recording;Code stream type flows for TS;Store path includes:Access The external memory storage of Set Top Box USB2.0 interface and client hard-disc storage path.
Step 303, service end, according to the result accessing input receiving, carries out stream-recording;
In this step, the result accessing input is client according to the stream-recording Rule Information receiving Table carries out the stream-recording rule setting information selecting to generate.
After the client that service end receives accesses the stream-recording rule setting information of input, open number According to transmission channel, according to record record in rule setting information frequency, recording mode, file size, Code stream type information arranges filter, the code stream information of acquisition filter, carries out stream-recording.
In actual applications, when recording mode selects loop recording, and the file size recorded exceeds finger Determine path memory space when, complete to store using the method covering earliest code stream information data of collection.
Step 304, the code stream information recording is exported to specified store path.
In this step, depositing in the stream-recording rule setting information that service end returns according to client Storage path, if store path is client store path, the code stream information recording is exported to place Reason module, is exported to client by HTTP again, is saved in code stream information by client and specifies In hard disk path;If store path is external storage equipment store path, by the code stream recording Information is exported to the external storage equipment being connected with service end by USB2.0 interface.
Service end, after confirming that code stream information output finishes, is closed data transmission channel, is emptied filter, Prepare recording next time.
From above-mentioned, the code stream recording method of the embodiment of the present invention, terminal device passes through to log in browse Device, the input corresponding IP address of Set Top Box and port numbers in address field, access comprise recording mode, File size, code stream type, the html page of the table of store path, rule are recorded in input in the page Then, generate stream-recording rule setting information, return to Set Top Box, by Set Top Box according to receiving Stream-recording rule setting information, the recording of execution code stream information.For Set Top Box exploitation, safeguard people Member or domestic consumer, stream-recording is simple to operate, records the regular page by logging in browser access, Realize remote recording it is also possible to the many people in strange land share a Set Top Box carries out stream-recording.
Fig. 4 records method second idiographic flow schematic diagram of code stream for the embodiment of the present invention.Referring to Fig. 4, This flow process includes:
Step 401, on Set Top Box, electricity, sets up the network interconnection with terminal device;
Step 402, terminal device inputs set-top box IP addresses and port numbers, Register by browser Top box;
Step 403, Set Top Box returns stream-recording Rule Information table;
Step 404, the choosing that terminal device receive user is carried out according to the stream-recording Rule Information table shown Take, generate stream-recording rule setting information, export to Set Top Box;
Step 405, Set Top Box receives stream-recording rule setting information;
Step 406, parsing obtains the recording mode in stream-recording rule setting information, if recording mould Formula is loop recording, execution step 407, if recording mode is recorded for single, execution step 411;
Step 407, generates new recorded file;
Step 408, carries out stream-recording in new recorded file;
Step 409, judges whether code stream is recorded and finishes, if it is, terminating flow process, otherwise, executes step Rapid 410;
Step 410, judges whether recorded file reaches the recorded file size of setting, if it is, returning Execution step 407, otherwise, returns execution step 408;
Step 411, carries out stream-recording;
Step 412, judges whether that needs exit recording, if it is, terminating flow process, otherwise, return is held Row step 411.
In this step, if need to exit and record and whether can be finished according to the code stream recorded, or, recording Code stream whether reach setting recorded file size determine.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention. All any modification, equivalent and improvement within the spirit and principles in the present invention, made etc., Should be included within the scope of the present invention.

Claims (9)

1. a kind of stream-recording system is it is characterised in that this stream-recording system includes:Set Top Box and Terminal device, wherein,
Set Top Box be provided with advance for the network interconnection Set Top Box transmission control protocol TCP port numbers and Set Top Box Internet Protocol IP address;Terminal device is provided with the terminal for the network interconnection in advance Equipment tcp port number and terminal device IP address;
Set Top Box, for by the corresponding port of Set Top Box tcp port number, receiving terminal apparatus send Socket access request, the stream-recording Rule Information prestoring of set-top box IP addresses will be carried Table sends to terminal device;Receiving terminal apparatus transmitted stream records rule setting information, according to connecing The stream-recording rule setting information received carries out stream-recording, storage;
Terminal device, for, after setting up communication connection using TCP/IP with Set Top Box, being set by terminal The standby corresponding port of tcp port number, sends socket access request, carried terminal equipment to Set Top Box IP address;Receive stream-recording Rule Information table, be shown, receive user is according to the code stream shown Record the information that Rule Information table is chosen, generate stream-recording rule setting information, to Set Top Box output;
Described stream-recording Rule Information table comprises:Record frequency point information, recording mode information, file Size information, code stream type information and store path information.
2. stream-recording system according to claim 1 is it is characterised in that described Set Top Box bag Include:Processing module, process scheduling module and code stream acquisition module, wherein,
Processing module, for the socket being sent by Set Top Box tcp port number, receiving terminal apparatus Access request, by the stream-recording Rule Information table prestoring carrying set-top box IP addresses send to Terminal device;Receiving terminal apparatus transmitted stream records rule setting information, exports to process scheduling Module;
Process scheduling module, for receiving stream-recording rule setting information, notifies code stream acquisition module Carry out code stream collection according to stream-recording rule setting information;Receive code stream information, according to stream-recording Rule setting information is stored;
Code stream acquisition module, carries out code stream collection for the notice according to process scheduling module, in code stream After collection terminates, the code stream information of collection is exported to process scheduling module.
3. stream-recording system according to claim 2 is it is characterised in that described stream-recording Store path information in rule setting information includes locally stored routing information.
4. stream-recording system according to claim 2 is it is characterised in that described stream-recording Store path information in rule setting information includes external storage equipment store path information, described machine Top box further includes:External component interconnects pci bus module,
Described process scheduling module, is further used for depositing in determining stream-recording rule setting information After storage routing information is external storage equipment store path information, the code stream information of reception is exported to PCI Bus module;
Pci bus module, for connecing the code stream information receiving by general-purpose serial bus USB 2.0 Mouth exports to the external storage equipment being connected.
5. stream-recording system according to claim 2 is it is characterised in that described stream-recording Store path information in rule setting information includes terminal device store path information, and described process is adjusted Degree module, the store path information being further used in determining stream-recording rule setting information is eventually After end equipment store path information, the code stream information of reception is exported to terminal device store path information Corresponding terminal device.
6. the stream-recording system according to any one of claim 1 to 5 is it is characterised in that institute State terminal device to include:Personal computer, mobile terminal and personal digital assistant.
7. a kind of method recording code stream, the method includes:
It is pre-configured with the Set Top Box transmission control protocol TCP port numbers for the network interconnection in Set Top Box With Set Top Box Internet Protocol IP address;Terminal device is pre-configured with for the network interconnection Terminal device tcp port number and terminal device IP address;
Terminal device after communication connection is set up using TCP/IP and Set Top Box, by terminal device TCP The corresponding port of port numbers, sends socket access request, carried terminal IP address of equipment to Set Top Box;
Set Top Box receives socket access request by the corresponding port of Set Top Box tcp port number, will take The stream-recording Rule Information table prestoring with set-top box IP addresses sends to terminal device;
Terminal device receives stream-recording Rule Information table, is shown, and receive user is according to displaying The information that stream-recording Rule Information table is chosen, generates stream-recording rule setting information, to Set Top Box Output;
Set Top Box carries out stream-recording, storage according to the stream-recording rule setting information receiving;
Described stream-recording Rule Information table comprises:Record frequency point information, recording mode information, file Size information, code stream type information and store path information.
8. method according to claim 7, wherein, in described stream-recording Rule Information table, Store path information includes:Locally stored routing information, terminal device store path information and plug-in Storage device store path information;Described Set Top Box enters according to the stream-recording rule setting information receiving Row code stream storage specifically includes:
If in stream-recording rule setting information, store path information is locally stored routing information, Then the code stream of recording is stored in Set Top Box local disk;
If in stream-recording rule setting information, store path information stores road for external storage equipment Footpath information, then exported to be connected outer by the code stream of recording by general-purpose serial bus USB 2.0 interface Hang storage device to be stored;
If in stream-recording rule setting information, store path information is believed for terminal device store path Breath, then exported the code stream of recording by Set Top Box tcp port and stored to terminal device.
9. the method according to claim 7 or 8, wherein, described receive user is according to displaying The information that stream-recording Rule Information table is chosen, generates stream-recording rule setting information and includes:
Receive user, according to code stream information to be recorded, is selected from the stream-recording Rule Information table shown The code stream to be recorded that takes is corresponding to be recorded frequency, recording mode, file size, code stream type and deposits Storage path;
After confirming that user's selection finishes, according to the selection information of user, generate stream-recording rule and set Confidence ceases.
CN201310221026.4A 2013-06-05 2013-06-05 Method of recording code streams and code stream recording system Active CN103368945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310221026.4A CN103368945B (en) 2013-06-05 2013-06-05 Method of recording code streams and code stream recording system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310221026.4A CN103368945B (en) 2013-06-05 2013-06-05 Method of recording code streams and code stream recording system

Publications (2)

Publication Number Publication Date
CN103368945A CN103368945A (en) 2013-10-23
CN103368945B true CN103368945B (en) 2017-02-08

Family

ID=49369484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310221026.4A Active CN103368945B (en) 2013-06-05 2013-06-05 Method of recording code streams and code stream recording system

Country Status (1)

Country Link
CN (1) CN103368945B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105263042A (en) * 2015-10-13 2016-01-20 华为技术有限公司 Direct broadcast time shifting method and device, and set top box
CN107295331B (en) * 2016-06-20 2020-03-17 深圳前海茂佳软件科技有限公司 Digital television field simulation test method and system
CN107786888A (en) * 2017-11-07 2018-03-09 四川九州电子科技股份有限公司 The system and method for forwarding HDMI video signal is gathered using top box of digital machine
CN110730368B (en) * 2018-07-17 2022-03-01 深圳Tcl数字技术有限公司 Code stream automatic switching method, smart television and storage medium
CN111565321B (en) * 2020-04-28 2022-03-15 聚好看科技股份有限公司 Terminal device, server and method for screen recording

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938616A (en) * 2010-08-23 2011-01-05 深圳市华曦达科技股份有限公司 Method and network server for recording TV programs remotely
CN102118641A (en) * 2010-12-30 2011-07-06 广州市聚晖电子科技有限公司 High-definition video system and method supporting remote mobile reservation based on set-top box

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938616A (en) * 2010-08-23 2011-01-05 深圳市华曦达科技股份有限公司 Method and network server for recording TV programs remotely
CN102118641A (en) * 2010-12-30 2011-07-06 广州市聚晖电子科技有限公司 High-definition video system and method supporting remote mobile reservation based on set-top box

Also Published As

Publication number Publication date
CN103368945A (en) 2013-10-23

Similar Documents

Publication Publication Date Title
CN103368945B (en) Method of recording code streams and code stream recording system
TW518865B (en) User terminal for channel-based Internet network
TWI584619B (en) Network aggregator
JP6122028B2 (en) Controlling public display with personal devices
CN102421012B (en) Method and system for acquiring screenshot picture of television program
CN101635826B (en) Method for acquiring addresses of network video programs
CN110489626A (en) A kind of information collecting method and device
CN102497452B (en) Online streaming media service method based on embedded terminal
CN103888817B (en) It is a kind of that file is uploaded into intelligent television and the method and apparatus of played file
CN104918105B (en) More screen playing methods, equipment and the system of media file
CN103379370A (en) Intelligent television system, intelligent television, mobile device and input operation method
CN101360059A (en) Network content sharing system and method
KR20120072022A (en) Virtual smarthome system, server, home gateway based on clouding computing and method thereof
CN103338405A (en) Screen capture application method, equipment and system
CN109462848A (en) Access method, Wi-Fi Hotspot equipment and the user equipment of Wi-Fi Hotspot equipment
CN103841004B (en) Method for information display and information server
CN101795241A (en) Bulletin board system, terminal device of bulletin board system, and server device of bulletin board system
CN101115076A (en) Method for implementing information issue and sharing of mobile browser
CN103150658A (en) Augmented reality (AR) customizing system and method facing to terminal user
CN102695082A (en) Method providing a frequently-accessed service or asset list on a second display
CN107770564A (en) The method and device of remote collection audio, video data
CN102946561B (en) A kind of picture shares equipment
CN106341463A (en) A mobile internet audio/video management and control system based on an internet of things
CN108024140A (en) A kind of live broadcasting method and system
CN103347219A (en) Method of playing network videos online

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant