CN101340570B - Method for realizing redirection when playing stream media - Google Patents

Method for realizing redirection when playing stream media Download PDF

Info

Publication number
CN101340570B
CN101340570B CN2008101184401A CN200810118440A CN101340570B CN 101340570 B CN101340570 B CN 101340570B CN 2008101184401 A CN2008101184401 A CN 2008101184401A CN 200810118440 A CN200810118440 A CN 200810118440A CN 101340570 B CN101340570 B CN 101340570B
Authority
CN
China
Prior art keywords
mpeg
time scale
transport stream
streaming media
stream packet
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
CN2008101184401A
Other languages
Chinese (zh)
Other versions
CN101340570A (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.)
Tiandi Chinese (Beijing) science and Technology Co., Ltd.
Original Assignee
Beijing Husen 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 Beijing Husen Technology Co Ltd filed Critical Beijing Husen Technology Co Ltd
Priority to CN2008101184401A priority Critical patent/CN101340570B/en
Publication of CN101340570A publication Critical patent/CN101340570A/en
Application granted granted Critical
Publication of CN101340570B publication Critical patent/CN101340570B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method used for realizing jumping when the stream media is being played, which is applicable to MPEG-2 transmission stream format files, comprising: establishing a mapping table between memory time graduation and TS stream data package number where I frame most adjacent to the time graduation exists in the MPEG-2 transmission stream format file, loading the mapping table when the stream media server is started; sending a jumping request containing time graduation to the stream media server by a set top box; searching corresponding TS stream data package number by the stream media according to the time graduation and positioning the subsequently sent TS stream data package as the TS stream data package; sending the stream media sever by starting from the TS stream data package. The technical proposal of the invention can lead the stream media server to use less space cost, realize more precise positioning, thus realizing the jumping function of the MPEG-2 transmission stream.

Description

Realize the method for redirect during a kind of streaming media playing
Technical field
The present invention relates to the digital television techniques field, realize the method for redirect when relating in particular to a kind of streaming media playing.
Background technology
MPEG-2 be 1994 by Motion Picture Experts Group (Moving Pictures Exports Group, MPEG) video of Tui Chuing and sound accompaniment compression standard thereof.Moving Picture Experts Group-2 is applicable to Standard Digital Television and the needed coded system of digital TV in high resolution, and its encoding rate is from per second 3M bit~100M bit.MPEG-2 is specially adapted to the digital tv encoder and the transmission of broadcast level, is considered to the coding standard of SD Digital Television and digital TV in high resolution.On DVD, top box of digital machine and Digital Television, extensively adopted the MPEG-2 decoder at present.
Moving Picture Experts Group-2 is in order to synthesize single or multiple data flow with one or more audio frequency, video or other elementary stream, and adaptation storage and transmission, just need pack to the encapsulation that code stream carries out again, insert information such as required various time marks, system's control simultaneously, deliver to chnnel coding and modulator at last.So just can generate two kinds of data flow that are applicable to different application respectively---transport stream (TransportStream) and program flow (Program Stream).
Transport stream is called for short TS stream, and its purpose is in order to carry out the transmission and the storage of one or more coded data under the situation that gross error might take place.Wherein contingent mistake mainly shows the mistake of bit value or losing of grouping.Transport stream is made up of one or more program, and the per pass program is combined with each other by one or more primary flows and some other streams, comprises video flowing, audio stream, program streams of information etc.The application of transport stream is very extensive, as the nonlinear editing system of the preservation of audio frequency and video, TV programme and network or the like.
The function of streaming media server is according to the precedence transmission of time and plays the continuant video data stream, makes the user need not complete download audio-video document and can watch or listen to continuous high-quality image and sound program in this locality.Therefore, stream medium data has three characteristics: continuity, real-time and sequential.Streaming media server is widely used in video request program (VOD), video broadcasting, video monitoring, video conference, fields such as remote teaching.
Need certain synchronization mechanism can realize the broadcast of continous-stable between streaming media server and the set-top box, the streaming media server end is by the transmission rate of control transmission stream, make set-top box obtain stable transport stream, thereby guarantee the quality of broadcast, therefore the streaming media server end needs a synchronized clock system, be used for writing down transmitting time, calculate transmission rate.
But the mpeg 2 transport stream that extensively adopts in the digital TV field can not be finished redirect when video broadcasting and video request program, therefore need address this problem as early as possible.
Summary of the invention
Realize the method for redirect when the objective of the invention is to propose a kind of streaming media playing, realize quick turn function in the time of can in digital TV field, carrying out video broadcasting and video request program.
For reaching this purpose, the present invention by the following technical solutions:
Realize the method for redirect during a kind of streaming media playing, be applicable to the mpeg 2 transport stream formatted file, may further comprise the steps:
Mapping table in A, settling time scale and the described mpeg 2 transport stream formatted file between the mpeg 2 transport stream packet Bale No. of the place of adjacent nearest I frame with described time scale, described mapping table also comprises the lock in time of each described mpeg 2 transport stream packet, the lock in time of described mpeg 2 transport stream packet is corresponding with described mpeg 2 transport stream packet Bale No., and stores described mapping table;
When B, streaming media server startup, load described mapping table;
C, set-top box send the jump request that comprises time scale to described streaming media server;
D, described streaming media server are searched described mapping table according to the time scale in the described jump request;
E, retrieve the mpeg 2 transport stream packet Bale No. of the time scale correspondence in the described jump request, the mpeg 2 transport stream packet that the next one is sent is orientated the mpeg 2 transport stream packet of the mpeg 2 transport stream packet Bale No. correspondence of the time scale correspondence in the described jump request as;
F, described streaming media server will begin to send the mpeg 2 transport stream packet of mpeg 2 transport stream packet Bale No. correspondence of the time scale correspondence in the described jump request and later mpeg 2 transport stream packet from the mpeg 2 transport stream packet of the mpeg 2 transport stream packet Bale No. correspondence of the time scale correspondence the described jump request to described set-top box.
In the steps A, described time scale is integer second, differs 1 second between the adjacent described time scale.
Step C further may further comprise the steps:
Described set-top box is obtained the time scale that need jump to;
The time scale that described needs are jumped to is adjusted into the integer time scale;
The jump request that will comprise described integer time scale sends to described streaming media server.
The time scale that described needs are jumped to is adjusted into the integer time scale, partly finishes by the non-integer that removes the time scale that described needs jump to, and perhaps finishes according to the mode that rounds up.
Step e is further comprising the steps of:
The lock in time that is set to described mpeg 2 transport stream packet lock in time of the current broadcast of described streaming media server.
Adopted technical scheme of the present invention, can allow streaming media server use littler space cost, faster speed realizes accurate localization more, thereby realizes the turn function of mpeg 2 transport stream.
Description of drawings
Fig. 1 is a flow chart of realizing redirect in the specific embodiment of the invention during streaming media playing.
Embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing and by embodiment.
Fig. 1 is a flow chart of realizing redirect in the specific embodiment of the invention during streaming media playing.As shown in Figure 1, the flow process that realizes redirect during streaming media playing may further comprise the steps:
Step 101, on streaming media server, set up, mapping table of storage, this mapping table comprises the MPEG-2TS stream packets Bale No. at adjacent nearest I frame place with this time scale in time scale, the MPEG-2TS stream file to be played and the lock in time of this MPEG-2TS stream packets.
This time scale can be integer second, differs 1 second between two adjacent time scales.Because time scale is integer second, the corresponding naturally integer of the line number of mapping table second is so the also information of holding time scale not in this mapping table is to reduce the size of this mapping table, only relevant with the length of program.
This mapping table also can increase other content according to concrete needs.
When step 102, streaming media server startup, be written into corresponding mapping table, because it is this mapping table is very little, also very low to the load of server.
Step 103, user be by such as different modes such as towing mouse, remote controller inputs, send to set-top box and when need jump to scale, such as 30 minutes 42 seconds 13 milliseconds.
But because streaming media server can only be accepted precision is the integer time scale of second, therefore set-top box can be adjusted into integer time scale second with the time scale that jumps to that receives, can partly finish by removing the non-integer that need jump to time scale, also can finish according to the mode that rounds up, such as 30 minutes 42 seconds 13 milliseconds be adjusted into 30 minutes 42 seconds, set-top box sends the jump request comprise this integer time scale second to streaming media server more then.
Step 104, streaming media server remove to search mapping table according to integer time scale second that comprises in this jump request.
Step 105, from this mapping table, find out the TS stream packets Bale No. corresponding, orientate the next one as this corresponding TS stream packets to the TS stream packets that set-top box sends with this integer time scale second.
Be set to the lock in time of this TS stream packets correspondence the lock in time of step 106, the current broadcast of streaming media server.
Step 107, streaming media server send this TS stream packets and later TS stream packets thereof to set-top box.
By making the mapping table file, can accurate localization to the pairing nearest I frame position of redirect time scale (be accurate to second), the precise time scale of I frame might not, be difficult to just in time this integer time scale second of correspondence in other words, therefore this redirect time scale and real redirect and the time scale that begins to play are that certain error is arranged, and this error is the difference of the time scale and the redirect time scale of I frame.General MPEG-2TS stream on average has the I frame about two in each second, specifically having several still is to be determined by encoder.If two I frames were arranged in each second, so average worst error is exactly 0.5 second, for user's consideration visually, is difficult to identify so little time error.
Because first TS packet that sends after the redirect and the redirect time scale of inaccuracy respective user appointment, streaming media server just need obtain the precise synchronization time of current TS bag when sending new data.Under should preserving lock in time in the mapping table file, streaming media server can obtain lock in time accurately by directly reading, and has avoided the reckoning that repeats after each redirect, has improved efficient and precision.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (5)

1. realize the method for redirect during a streaming media playing, be applicable to the mpeg 2 transport stream formatted file, it is characterized in that, may further comprise the steps:
Mapping table in A, settling time scale and the described mpeg 2 transport stream formatted file between the mpeg 2 transport stream packet Bale No. of the place of adjacent nearest I frame with described time scale, described mapping table also comprises the lock in time of each described mpeg 2 transport stream packet, the lock in time of described mpeg 2 transport stream packet is corresponding with described mpeg 2 transport stream packet Bale No., and stores described mapping table;
When B, streaming media server startup, load described mapping table;
C, set-top box send the jump request that comprises time scale to described streaming media server;
D, described streaming media server are searched described mapping table according to the time scale in the described jump request;
E, retrieve the mpeg 2 transport stream packet Bale No. of the time scale correspondence in the described jump request, the mpeg 2 transport stream packet that the next one is sent is orientated the mpeg 2 transport stream packet of the mpeg 2 transport stream packet Bale No. correspondence of the time scale correspondence in the described jump request as;
F, described streaming media server will begin to send the mpeg 2 transport stream packet of mpeg 2 transport stream packet Bale No. correspondence of the time scale correspondence in the described jump request and later mpeg 2 transport stream packet from the mpeg 2 transport stream packet of the mpeg 2 transport stream packet Bale No. correspondence of the time scale correspondence the described jump request to described set-top box.
2. realize the method for redirect during a kind of streaming media playing according to claim 1, it is characterized in that in the steps A, described time scale is integer second, differs 1 second between the adjacent described time scale.
3. realize the method for redirect during a kind of streaming media playing according to claim 1, it is characterized in that step C further may further comprise the steps:
Described set-top box is obtained the time scale that need jump to;
The time scale that described needs are jumped to is adjusted into the integer time scale;
The jump request that will comprise described integer time scale sends to described streaming media server.
4. realize the method for redirect during a kind of streaming media playing according to claim 3, it is characterized in that, the time scale that described needs are jumped to is adjusted into the integer time scale, partly finish by the non-integer that removes the time scale that described needs jump to, perhaps finish according to the mode that rounds up.
5. realize the method for redirect during a kind of streaming media playing according to claim 1, it is characterized in that step e is further comprising the steps of:
The lock in time that is set to described mpeg 2 transport stream packet lock in time of the current broadcast of described streaming media server.
CN2008101184401A 2008-08-22 2008-08-22 Method for realizing redirection when playing stream media Expired - Fee Related CN101340570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101184401A CN101340570B (en) 2008-08-22 2008-08-22 Method for realizing redirection when playing stream media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101184401A CN101340570B (en) 2008-08-22 2008-08-22 Method for realizing redirection when playing stream media

Publications (2)

Publication Number Publication Date
CN101340570A CN101340570A (en) 2009-01-07
CN101340570B true CN101340570B (en) 2010-08-11

Family

ID=40214502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101184401A Expired - Fee Related CN101340570B (en) 2008-08-22 2008-08-22 Method for realizing redirection when playing stream media

Country Status (1)

Country Link
CN (1) CN101340570B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098571B (en) * 2009-12-14 2013-06-19 中国电信股份有限公司 Method and system for dynamically pushing data
CN102137140A (en) * 2010-10-08 2011-07-27 华为软件技术有限公司 Method, device and system for processing streaming services
CN103873891B (en) * 2014-03-20 2017-02-22 深圳创维-Rgb电子有限公司 TS streaming media file fast positioning method and system
CN109547816A (en) * 2018-12-07 2019-03-29 视联动力信息技术股份有限公司 A kind of VOD method and device based on view networking

Also Published As

Publication number Publication date
CN101340570A (en) 2009-01-07

Similar Documents

Publication Publication Date Title
JP6657313B2 (en) How to encode a set of alternate streams of video from a source video stream
US10129609B2 (en) Method for transceiving media files and device for transmitting/receiving using same
KR101254385B1 (en) Fast and editing-friendly sample association method for multimedia file formats
EP2540034B1 (en) Method and apparatus for transmitting and receiving data
EP2666288B1 (en) Apparatus and method for storing and playing content in a multimedia streaming system
JP6016778B2 (en) How to recover content streamed in chunks
KR101649533B1 (en) Method for transmitting/receiving media content and transmitting/receiving apparatus thereof
KR101575740B1 (en) Switch signaling methods providing improved switching between representations for adaptive http streaming
KR101797507B1 (en) Media content transceiving method and transceiving apparatus using same
US20120016917A1 (en) Media container file management
CN102859933A (en) Method and apparatus for providing trick play service
CN101802823A (en) Segmented metadata and indexes for streamed multimedia data
CN102487458A (en) Method for broadcasting and processing TS (Transport Stream) document and device thereof
KR20130050958A (en) Signaling video samples for trick mode video representations
CN112087642B (en) Cloud guide playing method, cloud guide server and remote management terminal
CN101340570B (en) Method for realizing redirection when playing stream media
WO2010130188A1 (en) Method and apparatus for carrying transport stream
CN1832574A (en) Signal processing apparatus and signal processing method
CN102065320B (en) Method and equipment for processing trick playing command related to transport stream (TS) code stream
KR20120008432A (en) Method and apparatus for transmitting/receiving streaming service
WO2008113241A1 (en) Method of storing media data delivered through a network
US20070146803A1 (en) Information recording apparatus and recorded information management method
JP2009158090A (en) Data signal recording device and data signal reproducing unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: BEIJING HUIXINBOSI TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: TEMBEC BROADBAND NETWORK TECHNOLOGY ( BEIJING ) CO., LTD.

Effective date: 20090807

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20090807

Address after: A, 31 floor, block 2, digital building, No. 100086 South Avenue, Beijing, Haidian District: Zhongguancun

Applicant after: Beijing Husen Technology Co., Ltd.

Address before: A, 19 floor, block 2, digital building, No. 100086 South Avenue, Beijing, Haidian District: Zhongguancun

Applicant before: Digital Video Networks (Beijing) Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: TIANDI HUAWEN (BEIJING) TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: BEIJING HUSEN TECHNOLOGY CO., LTD.

Effective date: 20130422

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20130422

Address after: 100086 room 689, building 1, zone 5, 1201-12101215 South Main Street, Beijing, Haidian District, Zhongguancun

Patentee after: Tiandi Chinese (Beijing) science and Technology Co., Ltd.

Address before: 100086, 31 floor, block A, digital building, No. 2 South Avenue, Beijing, Haidian District, Zhongguancun

Patentee before: Beijing Husen Technology Co., Ltd.

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100811

Termination date: 20130822