CN104683882A - Generation and play method and device for multiple speed file of stream medium - Google Patents

Generation and play method and device for multiple speed file of stream medium Download PDF

Info

Publication number
CN104683882A
CN104683882A CN201510080908.2A CN201510080908A CN104683882A CN 104683882 A CN104683882 A CN 104683882A CN 201510080908 A CN201510080908 A CN 201510080908A CN 104683882 A CN104683882 A CN 104683882A
Authority
CN
China
Prior art keywords
speed
gop
broadcast information
file
sent
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.)
Granted
Application number
CN201510080908.2A
Other languages
Chinese (zh)
Other versions
CN104683882B (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.)
Sumavision Technologies Co Ltd
Original Assignee
Sumavision Technologies 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 Sumavision Technologies Co Ltd filed Critical Sumavision Technologies Co Ltd
Priority to CN201510080908.2A priority Critical patent/CN104683882B/en
Publication of CN104683882A publication Critical patent/CN104683882A/en
Application granted granted Critical
Publication of CN104683882B publication Critical patent/CN104683882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/242Synchronization processes, e.g. processing of PCR [Program Clock References]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention relates to a generation and play method and device for a multiple speed file of a stream medium. The generation and play method comprises the following steps: aiming at each stream medium, generating an initial multiple speed file under preset multiple speed of the stream medium, wherein the initial multiple speed file comprises at least one GOP(group of pictures), and the head part of each GOP comprises forward multiple speed playing information; aiming at each GOP of each initial multiple speed file, adding backward multiple speed playing information at the tail part of the GOP. According to the method provided by the invention, memory resources can be saved when multiple speed service is provided, the picture quality is improved, and calculating resources are saved.

Description

A kind of generation of Streaming Media speed file and player method, device
Technical field
The present invention relates to the communications field, particularly relate to a kind of generation and player method, device of Streaming Media speed file.
Background technology
In current Streaming Media field, most streaming media resource stores at server end, and by client terminal playing.For ease of user's viewing and understanding streaming medium content, most of streaming media server supports speed playing function.The implication of speed refers to that user can play same video with different playing duration, and wherein, it is 1X that normal play can be understood as speed.Such as, to same video, when speed is 2X, represents and play this video with the duration of the half of normal play duration; When speed is 4X, represents and play this video with the duration of 1/4 of normal play duration.Speed also comprises speed direction, i.e. forward speed and reverse speed, wherein, and forward speed and F.F., reverse speed and rewind.
At present, streaming media server does not support multiple speed, and on each speed direction of each speed, the source file encoding and decoding again of equal streaming media, generate a speed file, such as, when one section of video has two speeds, then have four speed files.When user asks speed to be play, the client of user is sent to show corresponding speed file.Concrete, speed file is by least one GOP (Group of Pictures, picture group) composition, the head of each GOP comprises for controlling the forward speed broadcast information play, the DTS (decoding time stamp, Pgmtime stabs) of such as PCR (program clock reference, program clock reference), this GOP, and the PTS (presentation time stamp, Presentation Time Stamp) of each two field picture in this GOP.Client, when playing GOP, determines when to decode to this GOP according to PCR and DTS of this GOP head, and according to PCR and PTS of this GOP head, determines when each two field picture is play.
But, the above-mentioned method realizing speed and play, because needs carry out encoding and decoding again to source file, need the computational resource expending equipment, in addition, under each speed, there is the speed file on corresponding two the speed directions of difference, so the corresponding same video of streaming media server, under same speed, need storage two speed files, cause thus taking a large amount of storage resources.
In prior art, GOP only has broadcast information at head, this broadcast information comprises PCR, PTS and DTS, and GOP does not have the broadcast information of afterbody in prior art, so the client for playing stream media does not have the function of the reverse speed broadcast information of resolving in described speed file.Certainly, user also can develop this according to the needs of oneself in client and can be total to so that can identify the reverse-play information in GOP.Below the player method of the speed file generated in embodiment one is described in detail.
Summary of the invention
The object of this invention is to provide a kind of generation and player method, device of Streaming Media speed file, causing taking more storage resources problem for realizing the broadcasting of Streaming Media speed to overcome in correlation technique.
On the one hand, the invention provides a kind of generation method of Streaming Media speed file, described method comprises:
For each Streaming Media, generate the initial speed file under the default speed of described Streaming Media; Described initial speed file comprises at least one GOP, and the head of each GOP comprises forward speed broadcast information;
For each GOP of each initial speed file, add reverse speed broadcast information at the afterbody of this GOP.
On the other hand, the invention provides a kind of player method of Streaming Media speed file, described method comprises:
Streaming media server reception client is sent, and streaming media carries out the speed playing request of speed broadcasting, at least comprises speed file identification, starts speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER does not have the function of the reverse speed broadcast information of resolving in described speed file;
According to described speed file identification, determine the speed file corresponding with described speed file identification; And according to described beginning speed reproduction time and described speed direction, determine the GOP to be sent in described speed file;
When described speed direction is forward speed, delete the reverse speed broadcast information of the afterbody of described GOP to be sent; And sequencing when being play according to forward speed by the GOP to be sent deleting reverse speed broadcast information sends to described client, by the forward speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP;
When described speed direction is reverse speed, for each GOP to be sent, replace forward speed broadcast information by the reverse speed broadcast information of this GOP to be sent, and delete the reverse speed broadcast information of the afterbody of this GOP to be sent; And will delete the GOP to be sent of the reverse speed broadcast information of afterbody, sequencing when playing according to reverse speed sends to described client, by the reverse speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP.
On the other hand, the invention provides the player method of another kind of Streaming Media speed file, described method comprises:
Streaming media server reception client is sent, and streaming media carries out the speed playing request of speed broadcasting, at least comprises speed file identification, starts speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER has the function of the reverse speed broadcast information of resolving in described speed file;
According to described beginning speed reproduction time and described speed direction, determine the GOP to be sent in described speed file;
Described GOP to be sent is sent to described client according to the sequencing play, by described client according to the speed broadcast information corresponding with the speed direction that user asks in the GOP to be sent received, completes the broadcasting to the GOP to be sent received.
On the other hand, the invention provides a kind of generating apparatus of Streaming Media speed file, described device comprises:
Initial speed file generating module, for for each Streaming Media, generates the initial speed file under the default speed of described Streaming Media; Described initial speed file comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information;
Speed file generating module, for each GOP for each initial speed file, adds reverse speed broadcast information at the afterbody of this GOP.
On the other hand, the invention provides a kind of playing device of Streaming Media speed file, described device comprises:
Speed request receiving module, for receiving, client sends, and streaming media carries out the speed playing request of speed broadcasting, at least comprise speed file identification, start speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER does not have the function of the reverse speed broadcast information of resolving in described speed file;
Determination module, for according to described speed file identification, determines the speed file corresponding with described speed file identification; And according to described beginning speed reproduction time and described speed direction, determine the GOP to be sent in described speed file;
First sending module, for when described speed direction is forward speed, deletes the reverse speed broadcast information of the afterbody of described GOP to be sent; And sequencing when being play according to forward speed by the GOP to be sent deleting reverse speed broadcast information sends to described client, by the forward speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP;
Second sending module, when described speed direction is reverse speed, for each GOP to be sent, replaces forward speed broadcast information by the reverse speed broadcast information of this GOP to be sent, and deletes the reverse speed broadcast information of the afterbody of this GOP to be sent; And will delete the GOP to be sent of the reverse speed broadcast information of afterbody, sequencing when playing according to reverse speed sends to described client, by the reverse speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP.
On the other hand, the invention provides the playing device of another kind of Streaming Media speed file, described device comprises:
Speed request receiving module, for receiving, client sends, and streaming media carries out the speed playing request of speed broadcasting, at least comprise speed file identification, start speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER has the function of the reverse speed broadcast information of resolving in described speed file;
Determination module, for according to described beginning speed reproduction time and described speed direction, determines the GOP to be sent in described speed file;
Sending module, for described GOP to be sent is sent to described client according to the sequencing play, by described client according to the speed broadcast information corresponding with the speed direction that user asks in the GOP to be sent received, complete the broadcasting to the GOP to be sent received.
The present invention at least has following beneficial effect: in the embodiment of the present invention, in streaming media server, generate the speed file under different speed in advance for each Streaming Media, such as, Streaming Media A is generated to the speed file under 2X, 4X, 16X and 32X speed of this Streaming Media A.And in each speed file, all comprise forward speed broadcast information required when this speed file forward speed is play, and reverse speed broadcast information when oppositely speed is play, thus make for a Streaming Media, a speed file is only had under a speed, there is the method for two speed files compared to existing technology at the next Streaming Media of a speed, can storage resources be saved.In addition, in embodiments of the present invention, the image of composition speed file is the image extracted from the source file of Streaming Media, without the need to carrying out encoding and decoding again to source file.Compared to existing technology, the speed file that the embodiment of the present invention provides can reduce the consumption of the computational resource to equipment.Moreover, in the embodiment of the present invention, speed file is generated because carrying out encoding and decoding again without the need to the source file of streaming media, make the picture quality of the single-frame images in the speed file of the embodiment of the present invention can not reduce picture quality because of the encoding and decoding damaged, therefore, the quality of the single-frame images of speed file that provides of the embodiment of the present invention is higher.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the present invention.
Accompanying drawing explanation
Fig. 1 is the exemplary process diagram of the generation method of Streaming Media speed file in the embodiment of the present invention;
Fig. 2 is one of exemplary process diagram of the player method of Streaming Media speed file in the embodiment of the present invention;
Fig. 3 is organizational form and the sending order schematic diagram of Streaming Media speed file in the embodiment of the present invention;
Fig. 4 is the exemplary process diagram two of the player method of Streaming Media speed file in the embodiment of the present invention;
Fig. 5 is the schematic diagram of the generating apparatus of Streaming Media speed file in the embodiment of the present invention;
Fig. 6 is the schematic diagram of the playing device of Streaming Media speed file in the embodiment of the present invention;
Fig. 7 is another schematic diagram of the playing device of Streaming Media speed file in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, embodiments of the invention are described, should be appreciated that embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
In the embodiment of the present invention, in streaming media server, generate the speed file under different speed in advance for each Streaming Media, such as, Streaming Media A is generated to the speed file under 2X, 4X, 16X and 32X speed of this Streaming Media A.Forward speed broadcast information required when this speed file forward speed is play not only all is comprised in each speed file, also comprise reverse speed broadcast information when reverse speed is play, thus make for a Streaming Media, a speed file is only needed under a speed, a Streaming Media compared to existing technology, under a speed, there is the method for two speed files, can storage resources be saved.
In addition, in embodiments of the present invention, the image of composition speed file is the image extracted from the source file of Streaming Media, without the need to carrying out encoding and decoding again to source file.Compared to existing technology, the speed file that the embodiment of the present invention provides can reduce the consumption of the computational resource to equipment.
Moreover, in the embodiment of the present invention, because the source file without the need to streaming media carries out encoding and decoding again generate speed file, so in the embodiment of the present invention embodiment of the present invention speed file in the picture quality of image can not reduce picture quality because of the encoding and decoding damaged, therefore, the quality of the single-frame images of speed file that provides of the embodiment of the present invention is higher.
In addition, in the embodiment of the present invention, for ensureing the continuity of bit stream, reducing the alarm that client causes because code stream is discontinuous, in speed file in embodiments of the present invention, with the addition of the empty P frame not having picture material.
The embodiment of the present invention provides generation method and the player method of Streaming Media speed file, be particularly useful for meeting MPEG and H.264 etc. standard carry out the Streaming Media of encoding, namely the Streaming Media comprising I frame is applicable to, the Streaming Media be such as made up of I frame and P frame, or the Streaming Media be made up of I frame, B frame and P frame.
Below by specific embodiment, the flow media playing method provided in the embodiment of the present invention is described in detail.
Embodiment one
As shown in Figure 1, be the exemplary process diagram of the generation method of Streaming Media speed file in the embodiment of the present invention, the method comprises the following steps:
Step 101: for each Streaming Media, generates the initial speed file under the default speed of described Streaming Media; Described initial speed file comprises at least one GOP, and the head of each GOP comprises forward speed broadcast information.
Wherein, preferably, when Streaming Media is the file stored, based on the source file of Streaming Media, generate the initial speed file under the default speed of this Streaming Media according to the source file of Streaming Media, such as, decoding method again of the prior art can be adopted to generate initial speed file.When Streaming Media is the real-time streams of Real-time Collection, the embodiment of preset duration or preset data amount can be stored, then the real-time streaming data of storage be regarded as source file, generate initial speed file.
Certainly, preferably, in order to the computational resource of equipment can be saved, the initial speed file under the default speed of described Streaming Media can be generated: for each default speed according to following methods, from described Streaming Media, extract the image of predetermined number, form the initial speed file under this default speed.It should be noted that, additive method of the prior art also can be adopted to generate initial speed file, and the present invention does not limit this.
Step 102: for each GOP of each initial speed file, adds reverse speed broadcast information at the afterbody of this GOP.
Wherein, described forward speed broadcast information comprises: PCR, DTS when forward speed is play, the PTS of each two field picture;
Described reverse speed broadcast information comprises: PCR, DTS when oppositely speed is play, the PTS of each two field picture.
Wherein, in one embodiment, for the ease of the beginning speed reproduction time retrieval of asking according to user and the GOP located in speed file, can also be each speed file set up index information in the embodiment of the present invention, in this index information, at least comprise the duration of corresponding speed file, code check and reference clock PCR.The method positioned of embody rule index information can with reference to prior art, and the present invention does not explain this.
Embodiment two
So that the client terminal playing speed file without the function of the reverse speed broadcast information of resolving in described speed file is example in the embodiment of the present invention, the player method of Streaming Media speed file in the embodiment of the present invention is described in detail.As shown in Figure 2, the method comprises the following steps:
Step 201: streaming media server reception client is sent, and streaming media carries out the speed playing request of speed broadcasting, at least comprises speed file identification, starts speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER does not have the function of the reverse speed broadcast information of resolving in described speed file.
Wherein, in one embodiment, described forward speed broadcast information comprise forward speed play time PCR, DTS, each two field picture PTS;
Described reverse speed broadcast information comprise reverse speed play time PCR, DTS, each two field picture PTS.
Wherein, in one embodiment, when in streaming media server being each speed file allocation one mark, the speed file identification in speed playing request is the mark characterizing unique file, and streaming media server uniquely may retrieve the speed file of this mark correspondence according to this mark.And when store in streaming media service be Streaming Media and each speed under the corresponding relation of speed file time, speed file identification in speed playing request can be the resource identification and the speed that represent Streaming Media, so streaming media server can according to resource identification determination Streaming Media, then according to the corresponding relation of Streaming Media speed file each with it, and the speed in speed playing request uniquely determines speed file.So speed file identification can be determined according to the rule of the rule and retrieval speed file that store speed file in streaming media server, does not limit in the embodiment of the present invention to this.
Step 202: according to described speed file identification, determines the speed file corresponding with described speed file identification; And according to described beginning speed reproduction time and described speed direction, determine the GOP to be sent in described speed file.
Wherein, in one embodiment, first generate initial speed file, namely the file be made up of at least one GOP, and then the speed file generated after reverse speed broadcast information is embedded into initial speed file, the generation method of initial speed file is as follows: when Streaming Media is the file stored, based on the source file of Streaming Media, generate the initial speed file under the default speed of this Streaming Media according to the source file of Streaming Media, such as, decoding method again of the prior art can be adopted to generate initial speed file.When Streaming Media is the real-time streams of Real-time Collection, the embodiment of preset duration or preset data amount can be stored, then the real-time streaming data of storage be regarded as source file, generate initial speed file.Certainly, preferably, in order to the computational resource of equipment can be saved, can initial speed file from the default speed generating described Streaming Media according to following methods: for each default speed, from described Streaming Media, extract the two field picture of predetermined number, form the initial speed file under this default speed.It should be noted that, additive method of the prior art also can be adopted to generate initial speed file, and the present invention does not limit this.
Wherein, in streaming media server, store the index information corresponding with speed file, in this index information, at least comprise reference clock, the duration of speed file and code check.The GOP starting to use when speed is play can be oriented according to the beginning speed reproduction time in speed playing request according to this index information, i.e. first GOP starting to play, then according to speed direction, can determine which GOP is the GOP to be sent needing to send to client.
After determining that first starts the GOP play, then can determine which GOP is GOP to be sent further: when speed direction is forward speed, then according to the sequencing that forward speed is play, first GOP starting to play and the GOP play afterwards thereof is GOP to be sent; When speed direction is reverse speed, then according to the sequencing that reverse speed is play, first GOP starting to play and the GOP play afterwards thereof is GOP to be sent.
Step 203: when described speed direction is forward speed, deletes the reverse speed broadcast information of the afterbody of described GOP to be sent; And sequencing when being play according to forward speed by the GOP to be sent deleting reverse speed broadcast information sends to described client, by the forward speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP.
Step 204: when described speed direction is reverse speed, for each GOP to be sent, replaces forward speed broadcast information by the reverse speed broadcast information of this GOP to be sent, and deletes the reverse speed broadcast information of the afterbody of this GOP to be sent; And will delete the GOP to be sent of the reverse speed broadcast information of afterbody, sequencing when playing according to reverse speed sends to described client, by the reverse speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP.
Wherein, in one embodiment, in order to meet the needs of transmission code rate, avoiding desultory transmission GOP to be sent, according to transmission code rate, in GOP to be sent, inserting the empty P frame not having image content.For Fig. 3, exemplary illustration is carried out to the organizational form of speed file.In figure 3, be added with reverse speed broadcast information (the reverse PES information namely described in Fig. 3) at the afterbody of each GOP, in this reverse speed broadcast information, at least comprise PCR, DTS and PTS when the reverse speed of this GOP is play.When forward speed is play when F.F. () described in Fig. 3, send GOP according to the sequencing above each GOP successively to client, namely successively according to the order transmission GOP of GOP1, GOP2, the GOP3 above GOP.When reverse speed is play when rewind () described in Fig. 3, send GOP according to the sequencing below each GOP successively to client, namely successively according to the order transmission GOP of GOP1, GOP2, the GOP3 below GOP.
To sum up, in the embodiment of the present invention, when the client of the function for not having the reverse speed broadcast information of resolving in described speed file provides speed to serve, first speed file is processed, such as, when client requirements forward speed is play, remove the reverse speed broadcast information of redundancy in speed file, and make client to identify and to resolve speed file; When the reverse speed of client requirements is play, replace forward speed broadcast information by reverse speed broadcast information, and delete the reverse speed broadcast information of speed tail of file redundancy, so that client can resolve the speed file received.
Embodiment three
So that the client terminal playing speed file with the function of the reverse speed broadcast information of resolving in described speed file is example in the present embodiment, the player method of Streaming Media speed file in the embodiment of the present invention is described in detail.As shown in Figure 4, the method comprises the following steps:
Step 401: streaming media server reception client is sent, and streaming media carries out the speed playing request of speed broadcasting, at least comprises speed file identification, starts speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER has the function of the reverse speed broadcast information of resolving in described speed file.
Wherein, described forward speed broadcast information comprise forward speed play time PCR, DTS, each two field picture PTS;
Described reverse speed broadcast information comprise reverse speed play time PCR, DTS, each two field picture PTS.
Step 402: according to described beginning speed reproduction time and described speed direction, determine the GOP to be sent in described speed file.
Wherein, determine that the method for GOP to be sent is described in embodiment two, do not repeat them here.
Step 403: described GOP to be sent is sent to described client according to the sequencing play, by described client according to the speed broadcast information corresponding with the speed direction that user asks in the GOP to be sent received, complete the broadcasting to the GOP to be sent received.
Wherein, because client can resolve the speed file of afterbody with reverse speed information, then speed file directly can be sent to client, to be resolved successively according to the speed direction that user requires by client and play the GOP each to be sent received.Concrete, when speed direction is forward speed, client can play GOP according to the forward speed broadcast information in speed file; When speed direction is reverse speed, client can play GOP according to the reverse speed broadcast information in speed file.
In the embodiment of the present invention, the client realized to the function with the reverse speed broadcast information of resolving in described speed file sends speed file, and completes the broadcasting to speed file by this client.
Embodiment four
Based on identical inventive concept, the embodiment of the present invention also provides a kind of generating apparatus of Streaming Media speed file, and as shown in Figure 5, described device comprises:
Initial speed file generating module 501, for for each Streaming Media, generates the initial speed file under the default speed of described Streaming Media; Described initial speed file comprises at least one GOP, and the head of each GOP comprises forward speed broadcast information;
Speed file generating module 502, for each GOP for each initial speed file, adds reverse speed broadcast information at the afterbody of this GOP.
Wherein, in one embodiment, described initial speed file generating module 501, for for each default speed, extracts the image of predetermined number from described Streaming Media, forms the initial speed file under this default speed.
As shown in Figure 6, the embodiment of the present invention also provides a kind of playing device of Streaming Media speed file, comprising:
Speed request receiving module 601, for receiving, client sends, and streaming media carries out the speed playing request of speed broadcasting, at least comprise speed file identification, start speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER does not have the function of the reverse speed broadcast information of resolving in described speed file;
Determination module 602, for according to described speed file identification, determines the speed file corresponding with described speed file identification; And according to described beginning speed reproduction time and described speed direction, determine the GOP to be sent in described speed file;
First sending module 603, for when described speed direction is forward speed, deletes the reverse speed broadcast information of the afterbody of described GOP to be sent; And sequencing when being play according to forward speed by the GOP to be sent deleting reverse speed broadcast information sends to described client, by the forward speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP;
Second sending module 604, when described speed direction is reverse speed, for each GOP to be sent, replaces forward speed broadcast information by the reverse speed broadcast information of this GOP to be sent, and deletes the reverse speed broadcast information of the afterbody of this GOP to be sent; And will delete the GOP to be sent of the reverse speed broadcast information of afterbody, sequencing when playing according to reverse speed sends to described client, by the reverse speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP.
As shown in Figure 7, the embodiment of the present invention also provides a kind of playing device of Streaming Media speed file, comprising:
Speed request receiving module 701, for receiving, client sends, and streaming media carries out the speed playing request of speed broadcasting, at least comprise speed file identification, start speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER has the function of the reverse speed broadcast information of resolving in described speed file;
Determination module 702, for according to described beginning speed reproduction time and described speed direction, determines the GOP to be sent in described speed file;
Sending module 703, for described GOP to be sent is sent to described client according to the sequencing play, by described client according to the speed broadcast information corresponding with the speed direction that user asks in the GOP to be sent received, complete the broadcasting to the GOP to be sent received.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (11)

1. a generation method for Streaming Media speed file, is characterized in that, described method comprises:
For each Streaming Media, generate the initial speed file under the default speed of described Streaming Media; Described initial speed file comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information;
For each GOP of each initial speed file, add reverse speed broadcast information at the afterbody of this GOP.
2. method according to claim 1, is characterized in that, described forward speed broadcast information comprises: program clock reference PCR, decoded time stamp DTS when forward speed is play, the Presentation Time Stamp PTS of each two field picture;
Described reverse speed broadcast information comprises: PCR, DTS when oppositely speed is play, the PTS of each two field picture.
3. method according to claim 1, is characterized in that, generates the initial speed file under the default speed of described Streaming Media according to following methods:
For each default speed, from described Streaming Media, extract the image of predetermined number, form the initial speed file under this default speed.
4. a player method for Streaming Media speed file, is characterized in that, described method comprises:
Streaming media server reception client is sent, and streaming media carries out the speed playing request of speed broadcasting, at least comprises speed file identification, starts speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER does not have the function of the reverse speed broadcast information of resolving in described speed file;
According to described speed file identification, determine the speed file corresponding with described speed file identification; And according to described beginning speed reproduction time and described speed direction, determine the GOP to be sent in described speed file;
When described speed direction is forward speed, delete the reverse speed broadcast information of the afterbody of described GOP to be sent; And sequencing when being play according to forward speed by the GOP to be sent deleting reverse speed broadcast information sends to described client, by the forward speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP;
When described speed direction is reverse speed, for each GOP to be sent, replace forward speed broadcast information by the reverse speed broadcast information of this GOP to be sent, and delete the reverse speed broadcast information of the afterbody of this GOP to be sent; And will delete the GOP to be sent of the reverse speed broadcast information of afterbody, sequencing when playing according to reverse speed sends to described client, by the reverse speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP.
5. method according to claim 4, is characterized in that, described forward speed broadcast information comprises: program clock reference PCR, decoded time stamp DTS when forward speed is play, the Presentation Time Stamp PTS of each two field picture;
Described reverse speed broadcast information comprises: PCR, DTS when oppositely speed is play, the PTS of each two field picture.
6. a player method for Streaming Media speed file, is characterized in that, described method comprises:
Streaming media server reception client is sent, and streaming media carries out the speed playing request of speed broadcasting, at least comprises speed file identification, starts speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER has the function of the reverse speed broadcast information of resolving in described speed file;
According to described beginning speed reproduction time and described speed direction, determine the GOP to be sent in described speed file;
Described GOP to be sent is sent to described client according to the sequencing play, by described client according to the speed broadcast information corresponding with the speed direction that user asks in the GOP to be sent received, completes the broadcasting to the GOP to be sent received.
7. method according to claim 6, is characterized in that, described forward speed broadcast information comprises: program clock reference PCR, decoded time stamp DTS when forward speed is play, the Presentation Time Stamp PTS of each two field picture;
Described reverse speed broadcast information comprises: PCR, DTS when oppositely speed is play, the PTS of each two field picture.
8. a generating apparatus for Streaming Media speed file, is characterized in that, described device comprises:
Initial speed file generating module, for for each Streaming Media, generates the initial speed file under the default speed of described Streaming Media; Described initial speed file comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information;
Speed file generating module, for each GOP for each initial speed file, adds reverse speed broadcast information at the afterbody of this GOP.
9. device according to claim 8, is characterized in that, described initial speed file generating module, for for each default speed, extracts the image of predetermined number from described Streaming Media, forms the initial speed file under this default speed.
10. a playing device for Streaming Media speed file, is characterized in that, described device comprises:
Speed request receiving module, for receiving, client sends, and streaming media carries out the speed playing request of speed broadcasting, at least comprise speed file identification, start speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER does not have the function of the reverse speed broadcast information of resolving in described speed file;
Determination module, for according to described speed file identification, determines the speed file corresponding with described speed file identification; And according to described beginning speed reproduction time and described speed direction, determine the GOP to be sent in described speed file;
First sending module, for when described speed direction is forward speed, deletes the reverse speed broadcast information of the afterbody of described GOP to be sent; And sequencing when being play according to forward speed by the GOP to be sent deleting reverse speed broadcast information sends to described client, by the forward speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP;
Second sending module, when described speed direction is reverse speed, for each GOP to be sent, replaces forward speed broadcast information by the reverse speed broadcast information of this GOP to be sent, and deletes the reverse speed broadcast information of the afterbody of this GOP to be sent; And will delete the GOP to be sent of the reverse speed broadcast information of afterbody, sequencing when playing according to reverse speed sends to described client, by the reverse speed broadcast information of described client according to the head of the GOP to be sent received, plays this GOP.
The playing device of 11. 1 kinds of Streaming Media speed files, is characterized in that, described device comprises:
Speed request receiving module, for receiving, client sends, and streaming media carries out the speed playing request of speed broadcasting, at least comprise speed file identification, start speed reproduction time and speed direction in described speed playing request; Wherein, the speed file that described speed file identification is corresponding comprises at least one picture group GOP, and the head of each GOP comprises forward speed broadcast information, and afterbody comprises reverse speed broadcast information; Described DST PLAYER has the function of the reverse speed broadcast information of resolving in described speed file;
Determination module, for according to described beginning speed reproduction time and described speed direction, determines the GOP to be sent in described speed file;
Sending module, for described GOP to be sent is sent to described client according to the sequencing play, by described client according to the speed broadcast information corresponding with the speed direction that user asks in the GOP to be sent received, complete the broadcasting to the GOP to be sent received.
CN201510080908.2A 2015-02-13 2015-02-13 A kind of generation of Streaming Media speed file and player method, device Active CN104683882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510080908.2A CN104683882B (en) 2015-02-13 2015-02-13 A kind of generation of Streaming Media speed file and player method, device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510080908.2A CN104683882B (en) 2015-02-13 2015-02-13 A kind of generation of Streaming Media speed file and player method, device

Publications (2)

Publication Number Publication Date
CN104683882A true CN104683882A (en) 2015-06-03
CN104683882B CN104683882B (en) 2018-02-23

Family

ID=53318353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510080908.2A Active CN104683882B (en) 2015-02-13 2015-02-13 A kind of generation of Streaming Media speed file and player method, device

Country Status (1)

Country Link
CN (1) CN104683882B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948571A (en) * 2017-12-27 2018-04-20 努比亚技术有限公司 The method, apparatus and computer-readable recording medium of video record
CN114257878A (en) * 2020-09-21 2022-03-29 深圳富桂精密工业有限公司 Method for playing video at double speed, computer device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7027713B1 (en) * 1999-11-30 2006-04-11 Sharp Laboratories Of America, Inc. Method for efficient MPEG-2 transport stream frame re-sequencing
US20060280431A1 (en) * 2005-06-03 2006-12-14 Kirk Blattman Supporting trick modes in a streaming digital video environment using a root trick mode stream
US20080187283A1 (en) * 2006-12-29 2008-08-07 Broadband Royalty Corporation Source optimized dynamic trickplay
CN102014300A (en) * 2009-09-07 2011-04-13 株式会社日立制作所 Device for realizing quick view function in video on demand
CN102025956A (en) * 2009-09-23 2011-04-20 华为技术有限公司 Processing method, device and system for fast forward and fast backward playing of network stream media
CN103686411A (en) * 2013-12-11 2014-03-26 深圳Tcl新技术有限公司 Method for playing video and multimedia device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7027713B1 (en) * 1999-11-30 2006-04-11 Sharp Laboratories Of America, Inc. Method for efficient MPEG-2 transport stream frame re-sequencing
US20060280431A1 (en) * 2005-06-03 2006-12-14 Kirk Blattman Supporting trick modes in a streaming digital video environment using a root trick mode stream
US20080187283A1 (en) * 2006-12-29 2008-08-07 Broadband Royalty Corporation Source optimized dynamic trickplay
CN102014300A (en) * 2009-09-07 2011-04-13 株式会社日立制作所 Device for realizing quick view function in video on demand
CN102025956A (en) * 2009-09-23 2011-04-20 华为技术有限公司 Processing method, device and system for fast forward and fast backward playing of network stream media
CN103686411A (en) * 2013-12-11 2014-03-26 深圳Tcl新技术有限公司 Method for playing video and multimedia device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948571A (en) * 2017-12-27 2018-04-20 努比亚技术有限公司 The method, apparatus and computer-readable recording medium of video record
CN107948571B (en) * 2017-12-27 2021-11-02 努比亚技术有限公司 Video recording method, device and computer readable storage medium
CN114257878A (en) * 2020-09-21 2022-03-29 深圳富桂精密工业有限公司 Method for playing video at double speed, computer device and storage medium

Also Published As

Publication number Publication date
CN104683882B (en) 2018-02-23

Similar Documents

Publication Publication Date Title
EP2991341A1 (en) Video playback method, media device, playback device, and multimedia system
WO2018076998A1 (en) Method and device for generating playback video file
CN109194887B (en) Cloud shear video recording and editing method and plug-in
CN105307028A (en) Video editing method and device specific to video materials of plurality of lenses
CN111836076B (en) Video resolution switching method and device and electronic equipment
KR20130105892A (en) Method of processing a sequence of coded video frames
CN104683858A (en) Preview method and device for content of stream medium
CN110198494B (en) Video playing method, device, equipment and storage medium
CN106878815B (en) Video playing method and device
CN104661083A (en) Video playing method and system as well as stream media playing method, device and system
CN104837037A (en) Method and device for generating video playback list
CN104735463A (en) Streaming media transmission method and system
JP2003111048A (en) Server and program for contents reproduction
CN112929730A (en) Bullet screen processing method and device, electronic equipment, storage medium and system
CN106331763B (en) Method for seamlessly playing fragmented media file and device for implementing method
CN104093084A (en) Method and apparatus for playing video
CN104780456A (en) Video dotting and playing method and device
CN105530534B (en) A kind of method and apparatus of video clipping
CN104683882A (en) Generation and play method and device for multiple speed file of stream medium
EP1455360A2 (en) Disc apparatus, disc recording method, disc playback method, recording medium, and program
EP2101499A1 (en) Broadcast station device and recording/reproduction device
CN114866787B (en) Live broadcast implementation method and system
WO2016090916A1 (en) Code stream transmission method and device
KR20140134100A (en) Method for generating user video and Apparatus therefor
JP2016189613A (en) Moving image data editing device, moving image data editing method, reproducer, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant