CN100518312C - Stream media data processing system and method - Google Patents

Stream media data processing system and method Download PDF

Info

Publication number
CN100518312C
CN100518312C CNB2006100342339A CN200610034233A CN100518312C CN 100518312 C CN100518312 C CN 100518312C CN B2006100342339 A CNB2006100342339 A CN B2006100342339A CN 200610034233 A CN200610034233 A CN 200610034233A CN 100518312 C CN100518312 C CN 100518312C
Authority
CN
China
Prior art keywords
package
entrained
stream file
stream
medium data
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
Application number
CNB2006100342339A
Other languages
Chinese (zh)
Other versions
CN101035274A (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CNB2006100342339A priority Critical patent/CN100518312C/en
Publication of CN101035274A publication Critical patent/CN101035274A/en
Application granted granted Critical
Publication of CN100518312C publication Critical patent/CN100518312C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a streaming media data processing method for client ends connected with streaming media server through wideband network, comprising the steps of: receiving the streaming media data transmitted by the streaming media data server and recording the received streaming media data into a file; reading the stream file-carried packets and determining number of them; in sequence determining whether they are key frames; if one packet of them is a key frame, redefining this packet and the format of all packets behind it. And the invention also provides a streaming media data processing system. And the invention can make a user record and play partially recorded stream files without waiting until all programs are recorded.

Description

Stream media data processing system and method
[technical field]
The present invention relates to the system and method for deal with data, relate in particular to the system and method for handling multi-medium data.
[background technology]
Nowadays, set-top box (Set Top Box) generally has been used for cable TV, the user by set-top box watch store on the streaming media server such as advanced streaming format (Advanced Stream Format, files in stream media ASF).
ASF is a kind of stream media format that is developed by company of Microsoft (Microsoft), and it combines image, sound and animation data, and has the little advantage of file volume, is particularly suitable for passing through Network Transmission.
The user is except the ASF program is watched in hope, usually need to select to record the ASF program that they like, but because the file that set-top box is supported is limited, the user can not play the stream file that part is recorded, and must wait for and just can watch after whole performance recordings finish, thereby bring inconvenience.
[summary of the invention]
For solving the deficiency that above-mentioned prior art exists, a kind of stream media data processing system need be provided, be used for transferring the stream file that part is recorded to can play stream file.
In addition, also needing provides a kind of streaming medium data processing method, is used for transferring the stream file that part is recorded to can play stream file.
A kind of stream media data processing system is arranged in the client, and this stream media data processing system comprises records module, read module, key frame determination module, and definition module.Record module and be used for the stream medium data that the receiving stream media server transmits, and this stream medium data is recorded as stream file.Read module is used for the entrained package of reading flow file, and the quantity of the entrained package of definite stream file, and wherein the entrained package of stream file comprises package gauge outfit field and payload field.The key frame determination module is used for judging in order whether the entrained package of stream file is the key frame package.Definition module is used to obtain the entrained package quantity of stream file that read module is determined, and the form of all packages after redefining the key frame package and coming this key frame package, definition module comprises that first judges submodule, additional submodule and updating submodule.Whether the payload length of the package that first decision sub-module is used for judging that in order stream file is entrained is less than predetermined length.When additional submodule is used for payload length at the entrained package of stream file less than predetermined length, the payload of supplying the entrained package of stream file with null byte.Updating submodule is used for upgrading the entrained package gauge outfit of the stream file information relevant with described payload length, and abandons all packages before the key frame package.
A kind of streaming medium data processing method, be used for the client that is connected with streaming media server by broadband network, this streaming medium data processing method comprises step: the stream medium data that the receiving stream media server transmits, and this stream medium data is recorded as stream file; The package that the reading flow file is entrained, and the quantity of the entrained package of definite stream file, wherein the entrained package of stream file comprises package gauge outfit field and payload field; Judge in order whether the entrained package of described stream file is the key frame package; If the entrained package of described stream file is not described key frame package, then abandon the entrained package of described stream file, and change the entrained package of next described stream file over to, and judge in order whether the entrained package of next described stream file is the key frame package; If the entrained package of next described stream file is the key frame package, the form of all packages after then redefining this key frame package and coming this key frame package, this step may further comprise the steps: whether the payload length of judging the package that described stream file is entrained in order is less than predetermined length; If the payload length of the package that described stream file is entrained less than predetermined length, is then supplied the described payload of the entrained package of described stream file with null byte; Upgrade the information relevant in the entrained package gauge outfit of described stream file with described payload length.
Stream media data processing system in the embodiment of the invention is to judge by the key frame determination module whether the package in the stream file is the key frame package, and redefine to the key frame package and the form of all packages after coming this key frame package by definition module, thereby realize recording and play the stream file that part is recorded, and need not wait for that whole performance recordings finish.
[description of drawings]
Fig. 1 is the applied environment schematic diagram of stream media data processing system of the present invention.
Fig. 2 is the module map of stream media data processing system of the present invention.
Fig. 3 is the flow chart of invention streaming medium data processing method.
Fig. 4 is the stream medium data of receiving stream media server transmission in the streaming medium data processing method of the present invention, and this stream medium data is recorded as the refinement flow chart of the step of stream file.
Fig. 5 is the refinement flow chart of the step of the form of all packages after redefining the key frame package and come this key frame package in the streaming medium data processing method of the present invention.
[embodiment]
See also Fig. 1, be depicted as the applied environment schematic diagram of stream medium data of the present invention (Streaming Data) treatment system 100.As shown in the figure, client 10 is connected with streaming media server 30 by broadband network 20.In the present embodiment, client 10 is a set-top box.
See also Fig. 2, be depicted as the module map of stream media data processing system 100 of the present invention.Stream media data processing system 100 is arranged at (not shown) in the client 10.
Stream media data processing system 100 comprises records module 102, read module 104, key frame determination module 106 and definition module 108.Record module 102 and be used for the stream medium data that receiving stream media server 30 transmits, and this stream medium data is recorded as stream file.In the present embodiment, the form of stream medium data is an advanced streaming format, and the form of stream file also is an advanced streaming format.Record that module 102 comprises cache sub-module 1020, records submodule 1022, sub module stored 1024, and merge submodule 1026.Cache sub-module 1020 is used for the stream medium data that cache flow media server 30 transmits.
In the present embodiment, because streaming media server 30 begins to record life period interval the stream medium data from beginning to transmit stream medium data to client 10, and streaming media server 30 is still transmitting stream medium data during this period, so client 10 needs the stream medium data by cache sub-module 1020 receives and cache flow media server 30 transmits during this period.Record submodule 1022 and be used for the stream medium data that real-time recording streaming media server 30 transmits.In the present embodiment, after client 10 begins to record, record submodule 1022 and just begin the stream medium data that real-time recording streaming media server 30 transmits.Sub module stored 1024 is used for the stream medium data of cache sub-module 1020 buffer memorys is stored as the cache flow file, and the stream medium data that will record submodule 1022 real-time recordings is stored as real-time streaming files.Merging submodule 1026 is used for cache flow file and real-time streaming files are merged into stream file.
Read module 104 is used for the package that the reading flow file carries, and the quantity of the entrained package of definite stream file.In the present embodiment, stream file comprises at least one package.The entrained package of each stream file comprises package gauge outfit (Packet Header) field and payload (Payload) field, and comprises the information relevant with payload length in the package gauge outfit.
Key frame determination module 106 is used for judging in order whether the entrained package of described stream file is the package of key frame (Key Frame).In the present embodiment, key frame is meant the frame that is not compressed and has partial data, and stream file only just can be play when the key frame package is first package of stream file.
Definition module 108 is used to obtain the entrained package quantity of stream file that read module 104 is determined, and the form of all packages after redefining the key frame package and coming the key frame package.Definition module 108 comprises first decision sub-module 1080, additional submodule 1082, updating submodule 1084, counting submodule 1086, and second decision sub-module 1088.
Whether the payload length of the package that first decision sub-module 1080 is used for judging that in order stream file is entrained is less than predetermined length.In the present embodiment, predetermined length is to be set in advance in first decision sub-module 1080 by streaming media server 30.Additional submodule 1082 is used for supplying with null byte the payload of the entrained package of stream file.In the present embodiment, replenish submodule 1082 and only during less than predetermined length, null byte is added on the end of the entrained package of stream file in the payload of the entrained package of stream file.Updating submodule 1084 is used for upgrading the entrained package gauge outfit information relevant with payload length of stream file, and abandons all packages before the key frame package.
Counting submodule 1086 is used to add up the entrained package quantity of stream file that first decision sub-module 1080 has been judged.In the present embodiment, the initial condition of counting submodule 1086 is 0, and after judging first package, the state of counting submodule 1086 becomes 1; After judging second package, the state of counting submodule 1086 becomes 2, and the rest may be inferred.Second decision sub-module 1088 is used to judge whether the package quantity of counting submodule 1086 statistics equals read module 104 determined package quantity.In the present embodiment, if the package quantity of counting submodule 1086 statistics equals read module 104 determined package quantity, then the processing to all entrained packages of stream medium data has been finished in expression.
See also Fig. 3, be depicted as the flow chart of streaming medium data processing method of the present invention.In step S300, record the stream medium data that module 102 receiving stream media servers 30 transmit, and this stream medium data is recorded as stream file.In step S302, the package that read module 104 reading flow files carry, and the quantity of the entrained package of definite stream file.In the present embodiment, the entrained package of stream file comprises package gauge outfit field and payload field.In step S304, key frame determination module 106 judges in order whether the package that read module 104 is read is the key frame package.If package is the key frame package, then enter step S306, the form of all packages after definition module 108 redefines the key frame package and comes the key frame package.In the present embodiment, the form of all packages after redefining the key frame package and coming this key frame package is meant the payload of supplying the entrained package of stream file with null byte by additional submodule 1082, and upgrades the information relevant with payload length in the entrained package gauge outfit of stream files by updating submodule 1084.If package is not the key frame package, then enter step S308, updating submodule 1084 abandons this package, changes the entrained package of next described stream file over to, and returns step S304.
See also Fig. 4, be depicted as the stream medium data that the receiving stream media server transmits in the streaming medium data processing method of the present invention, and this stream medium data is recorded as the refinement flow chart of the step of stream file.In step S3000, streaming media server 30 begins to transmit stream medium data.In step S3002, the stream medium data that cache sub-module 1020 receives and cache flow media server 30 transmits.Next in step S3004, record the stream medium data that submodule 1022 beginning real-time recording streaming media servers 30 transmit.In step S3006, sub module stored 1024 is stored as the cache flow file with the stream medium data of cache sub-module 1020 buffer memorys, and the stream medium data that will record submodule 1022 real-time recordings is stored as real-time streaming files.In step S3008, merge submodule 1026 cache flow file and real-time streaming files are merged into stream file.
See also Fig. 5, be depicted as the refinement flow chart of step of the form of all packages after redefining the key frame package in the streaming medium data processing method of the present invention and coming this key frame package.In step S3060, first decision sub-module 1080 judges that in order whether the payload length of the package that stream file is entrained is less than predetermined length.
If payload length is not less than predetermined length, then directly enter step S3066.If payload length less than predetermined length, then enters step S3062, replenish submodule 1082 is supplied the entrained package of stream file with null byte payload.In step S3064, updating submodule 1084 is upgraded the information relevant with payload length in the entrained package gauge outfit of stream file.In step S3066, the package quantity that counting submodule 1086 statistics first decision sub-module 1080 has been judged.In step S3068, second decision sub-module 1088 judges whether the package quantity of counting submodule 1086 statistics equals read module 104 determined package quantity.If the package quantity of statistics is not equal to definite package quantity, then enter step S3070, change the entrained package of next described stream file over to.Return step S3060 then.
Stream media data processing system in the embodiment of the invention is to judge by key frame determination module 106 whether the package in the stream file is the key frame package, and the form of all packages after redefining the key frame package and come this key frame package by definition module 108, thereby realize recording and play the stream file that part is recorded, and need not wait for that whole performance recordings finish.

Claims (8)

1. a stream media data processing system is arranged in the client, it is characterized in that described stream media data processing system comprises:
Record module, be used for the stream medium data that the receiving stream media server transmits, and described stream medium data is recorded as stream file;
Read module is used to read the entrained package of described stream file, and determines the quantity of the package that described stream file is entrained, and the entrained package of wherein said stream file comprises package gauge outfit field and payload field;
The key frame determination module is used for judging in order whether the entrained package of described stream file is the key frame package; And
Definition module is used to obtain the described package quantity that described read module is determined, and the form of all packages after redefining described key frame package and coming described key frame package, and described definition module comprises:
First decision sub-module, whether the payload length of the package that is used for judging that in order described stream file is entrained is less than predetermined length;
Replenish submodule, when being used for payload length at the entrained package of described stream file less than described predetermined length, the payload of supplying the entrained package of described stream file with null byte; And
Updating submodule is used for upgrading the entrained package gauge outfit of the described stream file information relevant with described payload length, and abandons all packages before the described key frame package.
2. stream media data processing system as claimed in claim 1 is characterized in that the described module of recording comprises:
Cache sub-module is used to receive the also stream medium data of the described streaming media server transmission of buffer memory;
Record submodule, be used for the stream medium data that the described streaming media server of real-time recording transmits;
Sub module stored is used for the described stream medium data of described cache sub-module buffer memory is stored as the cache flow file, and the described described stream medium data of recording the module real-time recording is stored as real-time streaming files; And
Merge submodule, be used for described cache flow file and described real-time streaming files are merged into described stream file.
3. stream media data processing system as claimed in claim 2, the form that it is characterized in that described stream file, described cache flow file and described real-time streaming files is an advanced streaming format.
4. stream media data processing system as claimed in claim 1 is characterized in that described definition module also comprises:
The counting submodule is used to add up the package quantity that described first decision sub-module has been judged; And
Second decision sub-module is used to judge whether the described package quantity of described counting submodule statistics equals the described package quantity that described read module is determined.
5. streaming medium data processing method is used for the client that is connected with streaming media server by broadband network, it is characterized in that described streaming medium data processing method comprises the steps:
(a) receive the stream medium data that described streaming media server transmits, and described stream medium data is recorded as stream file;
(b) read the entrained package of described stream file, and determine the quantity of the package that described stream file is entrained, the entrained package of wherein said stream file comprises package gauge outfit field and payload field;
(c) judge in order whether the entrained package of described stream file is the key frame package;
(d) if the entrained package of described stream file is the key frame package, the form of all packages after then redefining described key frame package and coming described key frame package, step (d) comprises the steps:
(d1) judge that in order whether the payload length of the package that described stream file is entrained is less than predetermined length;
(d2) if the payload length of the entrained package of described stream file less than predetermined length, is then supplied the described payload of the entrained package of described stream file with null byte; And
(d3) upgrade the information relevant in the entrained package gauge outfit of described stream file with described payload length; And
(e) if the entrained package of described stream file is not described key frame package, then abandon the entrained package of described stream file, and change the entrained package of next stream file over to, and judge in order whether the entrained package of next described stream file is the key frame package.
6. streaming medium data processing method as claimed in claim 5 is characterized in that (a) receives the stream medium data that described streaming media server transmits, and its step that is recorded as stream file is comprised:
(a1) receive the also stream medium data of the described streaming media server transmission of buffer memory;
(a2) stream medium data of the described streaming media server transmission of real-time recording;
(a3) the described stream medium data with buffer memory is recorded as the cache flow file, and the described stream medium data of real-time recording is recorded as real-time streaming files; And
(a4) described cache flow file and described real-time streaming files are merged into described stream file.
7. streaming medium data processing method as claimed in claim 6, the step that it is characterized in that the form of (d) all packages after redefining described key frame package and coming described key frame package also comprises: if (d4) payload of the entrained package of described stream file is not less than predetermined length, then statistics judged stream file entrained package quantity.
8. streaming medium data processing method as claimed in claim 7 is characterized in that the step of the form of (d) all packages after redefining described key frame package and coming described key frame package also comprises:
(d5) add up the entrained package quantity of having judged of stream file;
(d6) whether the described package quantity of decision statistic equals determined described package quantity in the step (b); And
(d7) if the described package quantity of statistics is not equal to determined described package quantity in the step (b), then change the entrained package of next described stream file over to, and whether the payload length of judging the package that next described stream file is entrained in order is less than predetermined length.
CNB2006100342339A 2006-03-06 2006-03-06 Stream media data processing system and method Expired - Fee Related CN100518312C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100342339A CN100518312C (en) 2006-03-06 2006-03-06 Stream media data processing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100342339A CN100518312C (en) 2006-03-06 2006-03-06 Stream media data processing system and method

Publications (2)

Publication Number Publication Date
CN101035274A CN101035274A (en) 2007-09-12
CN100518312C true CN100518312C (en) 2009-07-22

Family

ID=38731537

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100342339A Expired - Fee Related CN100518312C (en) 2006-03-06 2006-03-06 Stream media data processing system and method

Country Status (1)

Country Link
CN (1) CN100518312C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247193B (en) * 2008-02-28 2010-12-08 华为技术有限公司 Method, system, node and super node for transmitting data in peer-to-peer network
CN101901620A (en) * 2010-07-28 2010-12-01 复旦大学 Automatic generation method and edit method of video content index file and application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1303216A (en) * 1999-09-29 2001-07-11 索尼公司 Device and method of transmission stream recording and recurrence and program recording medium
US20020057892A1 (en) * 1997-09-30 2002-05-16 Yoshizumi Mano Video recording device including the ability to concurrently record and playback
CN1463144A (en) * 2002-05-27 2003-12-24 三星电子株式会社 Method of recording position information of broadcast signal and its signal receiver and transmitter
JP2004328774A (en) * 1992-09-22 2004-11-18 Sony Corp Method of recording video data to recording medium, method of producing recording medium recording video data, and recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004328774A (en) * 1992-09-22 2004-11-18 Sony Corp Method of recording video data to recording medium, method of producing recording medium recording video data, and recording medium
US20020057892A1 (en) * 1997-09-30 2002-05-16 Yoshizumi Mano Video recording device including the ability to concurrently record and playback
CN1303216A (en) * 1999-09-29 2001-07-11 索尼公司 Device and method of transmission stream recording and recurrence and program recording medium
CN1463144A (en) * 2002-05-27 2003-12-24 三星电子株式会社 Method of recording position information of broadcast signal and its signal receiver and transmitter

Also Published As

Publication number Publication date
CN101035274A (en) 2007-09-12

Similar Documents

Publication Publication Date Title
US8209734B2 (en) Data transmission control method, data transmitting method, data transmitting apparatus, and receiving apparatus
CN100388773C (en) Digital signal processing apparatus and method
CN101267524B (en) Method for retrieving lost content for a scheduled program and digital video recorder
US20100023976A1 (en) Method and Configuration for Storing and Playing Back TV Transmissions
EP1006729B1 (en) Data recording and reproducing method and system
KR20030071481A (en) System and methods for providing video-on-demand services for broadcasting systems
CN101945262A (en) Wireless imaging transfer system, content bits rate control method
US20060171391A1 (en) Revocation information transmission method, reception method, and device Thereof
US6088366A (en) Device and method for converting a data transfer rate in communication of digital audio and video data
EP0801488B1 (en) Information transfer method and apparatus
CN101729538A (en) Image recording and regenerating apparatus, and file management method
CN100518312C (en) Stream media data processing system and method
US6701059B1 (en) Method and apparatus for recording digital data streams
AU736169B2 (en) Electronic apparatus, information transmitting method thereof, and storing medium
CN101895736A (en) Media stream data processing method and device thereof
EP0873019A2 (en) Device and method for transmitting digital audio and video data
JP2009181648A (en) Digital data accumulating device, digital data accumulating method, accumulated data transmitting device, accumulated data communication system, and accumulated data communication method
EP2228799B1 (en) Video recording and playback equipment and video recording and playback method
KR20000041813A (en) Method for streaming multimedia through network
US7984205B2 (en) Method and devices for the transfer of a data flow from a data source to a data sink
CA2071416A1 (en) Video store and forward apparatus and method
JP4201074B2 (en) Digital data transmission / reception system and method
US20070208872A1 (en) System and method for processing streaming data
JPH11205767A (en) Receiver and data rewriting method
CN101295530B (en) Digital content reproduction and storing apparatus and me

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090722

Termination date: 20140306