CN104683882B - A kind of generation of Streaming Media speed file and player method, device - Google Patents

A kind of generation of Streaming Media speed file and player method, device Download PDF

Info

Publication number
CN104683882B
CN104683882B CN201510080908.2A CN201510080908A CN104683882B CN 104683882 B CN104683882 B CN 104683882B CN 201510080908 A CN201510080908 A CN 201510080908A CN 104683882 B CN104683882 B CN 104683882B
Authority
CN
China
Prior art keywords
speed
gop
file
broadcast information
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.)
Active
Application number
CN201510080908.2A
Other languages
Chinese (zh)
Other versions
CN104683882A (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 present invention relates to a kind of generation of Streaming Media speed file and player method, device.Methods described includes:For each Streaming Media, the initial speed file under the default speed of the Streaming Media is generated;The initial speed file includes at least one GOP, and each GOP head includes positive speed broadcast information;For each GOP of each initial speed file, reverse speed broadcast information is added in the afterbody of the GOP.Method provided by the invention at all, storage resource can be saved when providing speed service, improve image quality and save computing resource.

Description

A kind of generation of Streaming Media speed file and player method, device
Technical field
The present invention relates to generation and player method, the device of the communications field, more particularly to a kind of Streaming Media speed file.
Background technology
In current Streaming Media field, most streaming media resource stores in server end, and by client terminal playing. Watched for ease of user and understand streaming medium content, most of streaming media servers support speed playing function.The implication of speed Refer to that user can play same video with different playing durations, wherein, it is 1X that normal play, which can be understood as speed,.Example Such as, to same video, when speed is 2X, represent to play the video with the duration of the half of normal play duration;Speed is 4X When, represent to play the video with 1/4 duration of normal play duration.Speed also includes speed direction, i.e., positive speed and Reverse speed, wherein, positive speed is F.F., and reverse speed is rewind.
At present, streaming media server does not support a variety of speeds, on each speed direction of each speed, equal convection current The encoding and decoding again of the source file of media, a speed file is generated, such as when one section of video there are two speeds, then there are four times Fast file.When user asks speed to play, the client that corresponding speed file is sent to user is shown.Specifically, again Fast file is made up of at least one GOP (Group of Pictures, picture group), and each GOP head includes broadcasting for control The positive speed broadcast information put, such as PCR (program clock reference, program clock reference), the DTS of the GOP (decoding time stamp, Pgmtime stamp), and the PTS (presentation of each two field picture in the GOP Time stamp, Presentation Time Stamp).Client is determined when to this when playing GOP according to the PCR on the GOP heads and DTS GOP is decoded, and according to the PCR and PTS on the GOP heads, determines when each two field picture plays.
However, the above-mentioned method realized speed and played, due to needing that source file progress again encoding and decoding is set, it is necessary to expend Standby computing resource, in addition, there is the speed file corresponded to respectively on two speed directions under each speed, then Streaming Media Server corresponds to same video, needs to store two speed files under same speed, thus causes to take substantial amounts of storage money Source.
The content of the invention
It is an object of the invention to provide a kind of generation of Streaming Media speed file and player method, device, to overcome correlation Cause to take more storage resource problem to realize that Streaming Media speed plays in technology.
On the one hand, the present invention provides a kind of generation method of Streaming Media speed file, and methods described includes:
For each Streaming Media, the initial speed file under the default speed of the Streaming Media is generated;Described initial times Fast file includes at least one GOP, and each GOP head includes positive speed broadcast information;
For each GOP of each initial speed file, reverse speed broadcast information is added in the afterbody of the GOP.
On the other hand, the present invention provides a kind of player method of Streaming Media speed file, and methods described includes:
Streaming media server receives what client was sent, and streaming media carries out the speed playing request of speed broadcasting, institute State and speed file identification is comprised at least in speed playing request, starts speed reproduction time and speed direction;Wherein, it is described Speed file corresponding to speed file identification includes at least one GOP, and each GOP head plays including positive speed Information, afterbody include reverse speed broadcast information;The DST PLAYER is reverse in the speed file without parsing The function of speed broadcast information;
According to the speed file identification, it is determined that speed file corresponding with the speed file identification;And according to described Start speed reproduction time and the speed direction, determine the GOP to be sent in the speed file;
When the speed direction is positive speed, the reverse speed broadcast information of the afterbody of the GOP to be sent is deleted; And the sequencing when GOP to be sent for deleting reverse speed broadcast information is played according to positive speed is sent to the visitor Family end, the positive speed broadcast information by the client according to the GOP to be sent received head, plays the GOP;
When the speed direction is reverse speed, for each GOP to be sent, with reverse times of the GOP to be sent Fast broadcast information replaces positive speed broadcast information, and deletes the reverse speed broadcast information of the afterbody of the GOP to be sent;And The GOP to be sent of the reverse speed broadcast information of afterbody will be deleted, sequencing when being played according to reverse speed is sent to institute Client is stated, the reverse speed broadcast information by the client according to the GOP to be sent received head, plays the GOP.
On the other hand, the present invention provides the player method of another Streaming Media speed file, and methods described includes:
Streaming media server receives what client was sent, and streaming media carries out the speed playing request of speed broadcasting, institute State and speed file identification is comprised at least in speed playing request, starts speed reproduction time and speed direction;Wherein, the speed Speed file corresponding to file identification includes at least one GOP, and each GOP head includes positive speed and plays letter Breath, afterbody include reverse speed broadcast information;The DST PLAYER has the reverse speed parsed in the speed file The function of broadcast information;
According to the beginning speed reproduction time and the speed direction, the GOP to be sent in the speed file is determined;
The GOP to be sent is sent to the client according to the sequencing of broadcasting, by the client according to connecing Speed broadcast information corresponding with the speed direction of user's request in the GOP to be sent received, is completed pending to what is received Send GOP broadcasting.
On the other hand, the present invention provides a kind of generating means of Streaming Media speed file, and described device includes:
Initial speed file generating module, for for each Streaming Media, under the default speed for generating the Streaming Media Initial speed file;The initial speed file includes at least one picture group GOP, and each GOP head is included just To speed broadcast information;
Speed file generating module, for each GOP for each initial speed file, in the afterbody of the GOP Add reverse speed broadcast information.
On the other hand, the present invention provides a kind of playing device of Streaming Media speed file, and described device includes:
Speed request receiving module, send for receiving client, the speed that streaming media carries out speed broadcasting is broadcast Request is put, speed file identification is comprised at least in the speed playing request, starts speed reproduction time and speed direction; Wherein, speed file corresponding to the speed file identification includes at least one picture group GOP, and each GOP head Including positive speed broadcast information, afterbody includes reverse speed broadcast information;The DST PLAYER is without described in parsing The function of reverse speed broadcast information in speed file;
Determining module, for according to the speed file identification, it is determined that speed corresponding with the speed file identification is literary Part;And according to the beginning speed reproduction time and the speed direction, determine the GOP to be sent in the speed file;
First sending module, for when the speed direction is positive speed, deleting the afterbody of the GOP to be sent Reverse speed broadcast information;And the priority when GOP to be sent for deleting reverse speed broadcast information is played according to positive speed Order is sent to the client, is played and believed according to the positive speed on the GOP to be sent received head by the client Breath, plays the GOP;
Second sending module, it is pending with this for each GOP to be sent when the speed direction is reverse speed Send GOP reverse speed broadcast information to replace positive speed broadcast information, and delete the reverse speed of the afterbody of the GOP to be sent Broadcast information;And the GOP to be sent of the reverse speed broadcast information of afterbody, priority when being played according to reverse speed will be deleted Order is sent to the client, is played and believed according to the reverse speed on the GOP to be sent received head by the client Breath, plays the GOP.
On the other hand, the present invention provides the playing device of another Streaming Media speed file, and described device includes:
Speed request receiving module, send for receiving client, the speed that streaming media carries out speed broadcasting is broadcast Request is put, speed file identification is comprised at least in the speed playing request, starts speed reproduction time and speed direction;Its In, speed file corresponding to the speed file identification includes at least one picture group GOP, and each GOP head bag Positive speed broadcast information is included, afterbody includes reverse speed broadcast information;The DST PLAYER, which has, parses the speed The function of reverse speed broadcast information in file;
Determining module, for according to the beginning speed reproduction time and the speed direction, determining the speed file In GOP to be sent;
Sending module, for the GOP to be sent to be sent into the client according to the sequencing of broadcasting, by described With the speed direction of user request corresponding speed broadcast information of the client in the GOP to be sent received, completion pair The GOP to be sent received broadcasting.
The present invention at least has the advantages that:In the embodiment of the present invention, in advance to be each in streaming media server Individual Streaming Media generates the speed file under different speeds, such as the Streaming Media A 2X, 4X, 16X and 32X are generated for Streaming Media A Speed file under speed.And forward direction required when the speed file forward direction speed plays is included in each speed file Speed broadcast information, and reverse speed broadcast information during reverse speed broadcasting, so that for a Streaming Media, one Only have a speed file under individual speed, compared with prior art in a next Streaming Media of speed have two speed files Method, storage resource can be saved.In addition, in embodiments of the present invention, the image of composition speed file is from the source of Streaming Media The image extracted in file, without carrying out encoding and decoding again to source file.Compared with prior art, provided in an embodiment of the present invention times Fast file can reduce the consumption to the computing resource of equipment.Furthermore in the embodiment of the present invention, because of the source document without streaming media Part carries out the generation speed file of encoding and decoding again so that the picture quality of the single-frame images in the speed file of the embodiment of the present invention Picture quality will not be reduced because of the encoding and decoding damaged, therefore, the single-frame images of speed file provided in an embodiment of the present invention Quality it is higher.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not Can the limitation present invention.
Brief description of the drawings
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 player method of Streaming Media speed file in the embodiment of the present invention;
Fig. 3 is the organizational form of Streaming Media speed file and transmission sequential schematic in the embodiment of the present invention;
Fig. 4 is two of the exemplary process diagram 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 means 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
Embodiments of the invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that embodiment described herein is only used In the description and interpretation present invention, it is not intended to limit the present invention.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
In the embodiment of the present invention, the speed under different speeds is generated in advance for each Streaming Media in streaming media server File, such as the speed file under Streaming Media A 2X, 4X, 16X and 32X speed is generated for Streaming Media A.In each times Required positive speed broadcast information when not only being played in fast file comprising the speed file forward direction speed, also comprising reverse times Reverse speed broadcast information when speed plays, so that for a Streaming Media, only needs a speed under a speed File, compared with prior art in a Streaming Media, have the methods of two speed files under a speed, storage money can be saved Source.
In addition, in embodiments of the present invention, the image of composition speed file is the figure extracted from the source file of Streaming Media Picture, without carrying out encoding and decoding again to source file.Compared with prior art, speed file provided in an embodiment of the present invention can be reduced Consumption to the computing resource of equipment.
Furthermore in the embodiment of the present invention, because the source file without streaming media carries out the generation speed text of encoding and decoding again Part, so the picture quality of the image in the embodiment of the present invention in the speed file of the embodiment of the present invention will not be because of the volume damaged Decode and reduce picture quality, therefore, the quality of the single-frame images of speed file provided in an embodiment of the present invention is higher.
In addition, in the embodiment of the present invention, to ensure the continuity of bit stream, reduce client because code stream is discontinuous and The alarm of initiation, the empty P frames of no picture material are with the addition of in speed file in embodiments of the present invention.
The embodiment of the present invention provides the generation method and player method of Streaming Media speed file, is particularly suitable for use in and meets MPEG And the Streaming Media that H.264 etc. standard is encoded, that is, the Streaming Media of I frames is suitable for inclusion in, such as be made up of I frames and P frames Streaming Media, or the Streaming Media being made up of I frames, B frames and P frames.
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 party Method comprises the following steps:
Step 101:For each Streaming Media, the initial speed file under the default speed of the Streaming Media is generated;Institute Stating initial speed file includes at least one GOP, and each GOP head includes positive speed broadcast information.
Wherein, preferably, when Streaming Media is stored file, based on the source file of Streaming Media, according to stream The source file of media generates the initial speed file under the default speed of the Streaming Media, such as can use of the prior art heavy New decoding method generates initial speed file., can be by preset duration or pre- when Streaming Media is the real-time streams gathered in real time If the embodiment of data volume stores, the real-time streaming data of storage is then regarded as source file, generates initial speed file.
Certainly, preferably, in order to save the computing resource of equipment, the Streaming Media can be generated according to following methods Default speed under initial speed file:Speed is preset for each, the figure of predetermined number is extracted from the Streaming Media Picture, form the initial speed file under the default speed.It should be noted that other method of the prior art can also be used Initial speed file is generated, the present invention is not limited this.
Step 102:For each GOP of each initial speed file, add reverse speed in the afterbody of the GOP and broadcast Put information.
Wherein, the positive speed broadcast information includes:PCR, DTS's, each two field picture when positive speed plays PTS;
The reversely speed broadcast information includes:PCR, DTS, the PTS of each two field picture when reverse speed plays.
Wherein, in one embodiment, the retrieval of beginning speed reproduction time and positioning for the ease of being asked according to user GOP in speed file, can also be that each speed file establish an index information, index letter in the embodiment of the present invention Duration, code check and the reference clock PCR of corresponding speed file are comprised at least in breath.Concrete application index information carries out what is positioned Method may be referred to prior art, and the present invention is not described to this.
GOP only has broadcast information on head in the prior art, and the broadcast information includes PCR, PTS and DTS, and prior art Middle GOP does not have the broadcast information of afterbody, so, the client for playing stream media is without in the parsing speed file Reverse speed broadcast information function.Certainly, user can also according to the needs of oneself client develop this can altogether so as to In the reverse-play information in GOP can be identified.The player method of the speed file to being generated in embodiment one is carried out detailed below Describe in detail bright.
Embodiment two
In order to without without the reverse speed broadcast information parsed in the speed file in the embodiment of the present invention Function client terminal playing speed file exemplified by, the player method of Streaming Media speed file in the embodiment of the present invention is carried out detailed Describe in detail bright.As shown in Fig. 2 this method comprises the following steps:
Step 201:Streaming media server receives what client was sent, and the speed that streaming media carries out speed broadcasting plays Ask, speed file identification is comprised at least in the speed playing request, starts speed reproduction time and speed direction;Its In, speed file corresponding to the speed file identification includes at least one GOP, and each GOP head includes forward direction Speed broadcast information, afterbody include reverse speed broadcast information;The DST PLAYER is without the parsing speed file In reverse speed broadcast information function.
Wherein, in one embodiment, the positive speed broadcast information include positive speed play when PCR, DTS, The PTS of each two field picture;
The reversely speed broadcast information includes PCR, DTS, the PTS of each two field picture when reverse speed plays.
Wherein, in one embodiment, when in streaming media server being each speed file one mark of distribution, times Speed file identification in fast playing request is the mark for characterizing unique file, and streaming media server may according to the mark Uniquely retrieve speed file corresponding to the mark.And when what is stored in streaming media service is Streaming Media and the speed under each speed During the corresponding relation of file, the speed file identification in speed playing request can be represent Streaming Media resource identification and times Speed, then streaming media server can determine Streaming Media according to resource identification, then according to Streaming Media and its each speed file Speed in corresponding relation, and speed playing request uniquely determines speed file.So speed file identification can be according to stream matchmaker Depending on the rule of speed file and the rule of retrieval speed file are stored in body server, this is not limited in the embodiment of the present invention It is fixed.
Step 202:According to the speed file identification, it is determined that speed file corresponding with the speed file identification;And According to the beginning speed reproduction time and the speed direction, the GOP to be sent in the speed file is determined.
Wherein, in one embodiment, first generate initial speed file, i.e., the file being made up of at least one GOP, then Reverse speed broadcast information is embedded into the speed file generated after initial speed file, the generation method of initial speed file again It is as follows:When Streaming Media is stored file, based on the source file of Streaming Media, generated according to the source file of Streaming Media Initial speed file under the default speed of the Streaming Media, such as decoding method again of the prior art can be used to generate Initial speed file., can be by preset duration or the embodiment of preset data amount when Streaming Media is the real-time streams gathered in real time Store, the real-time streaming data of storage is then regarded as source file, generate initial speed file.Certainly, preferably, in order to The computing resource of equipment is enough saved, can be from the initial speed text under the default speed that the Streaming Media is generated according to following methods Part:Speed is preset for each, the two field picture of predetermined number is extracted from the Streaming Media, is formed first under the default speed Beginning speed file.It should be noted that other method of the prior art can also be used to generate initial speed file, the present invention This is not limited.
Wherein, index information corresponding with speed file is stored with streaming media server, is at least wrapped in the index information Include the duration and code check of reference clock, speed file.Can be according to the beginning in speed playing request times according to the index information Fast reproduction time orients the GOP, i.e. first GOP commenced play out, then according to speed side for starting to be used when speed plays To, it may be determined which GOP is to need to be sent to the GOP to be sent of client.
When it is determined that first commence play out GOP after, then may further determine which GOP is GOP to be sent:Work as speed When direction is positive speed, then the sequencing that is played according to positive speed and its plays first GOP commenced play out afterwards GOP be all GOP to be sent;When speed direction is reverse speed, then according to reverse speed play sequencing, first The GOP commenced play out the and its GOP played afterwards is GOP to be sent.
Step 203:When the speed direction is positive speed, the reverse speed of the afterbody of the GOP to be sent is deleted Broadcast information;And the sequencing when GOP to be sent for deleting reverse speed broadcast information is played according to positive speed is sent To the client, the positive speed broadcast information by the client according to the GOP to be sent received head, playing should GOP。
Step 204:When the speed direction is reverse speed, for each GOP to be sent, with the GOP to be sent Reverse speed broadcast information replace positive speed broadcast information, and the reverse speed for deleting the afterbody of the GOP to be sent plays Information;And the GOP to be sent of the reverse speed broadcast information of afterbody, sequencing when being played according to reverse speed will be deleted The client is sent to, the reverse speed broadcast information by the client according to the GOP to be sent received head, is broadcast Put the GOP.
Wherein, in one embodiment, in order to meet the needs of transmission code rate, avoid desultory transmission to be sent GOP, according to transmission code rate, the empty P frames of no image content are inserted in GOP to be sent.By taking Fig. 3 as an example, to speed file Organizational form is illustrative.In figure 3, (scheme added with reverse speed broadcast information in each GOP afterbody Reverse PES information described in 3), comprise at least in the reverse speed broadcast information PCR when the reverse speeds of the GOP play, DTS and PTS.When positive speed plays when F.F. () described in Fig. 3, according to the sequencing above each GOP to visitor Family end sends GOP successively, i.e., sends GOP according to the order of GOP1, GOP2, GOP3 above GOP successively.When reverse speed plays When rewind () i.e. described in Fig. 3, GOP is sent according to the sequencing below each GOP successively to client, i.e., successively according to The order of GOP1, GOP2, GOP3 below GOP send GOP.
To sum up, in the embodiment of the present invention, when for without the reverse speed broadcast information parsed in the speed file When the client of function provides speed service, first speed file is handled, such as during the broadcasting of client requirements forward direction speed, The reverse speed broadcast information of redundancy in speed file is removed, and enables a client to identify and parses speed file;Work as visitor When family end requires that reverse speed plays, positive speed broadcast information is replaced with reverse speed broadcast information, and delete speed file The reverse speed broadcast information of afterbody redundancy, in order to which client can parse the speed file received.
Embodiment three
In order to without the function of parsing the reverse speed broadcast information in the speed file in the present embodiment Client terminal playing speed file exemplified by, in the embodiment of the present invention Streaming Media speed file player method carry out specifically It is bright.As shown in figure 4, this method comprises the following steps:
Step 401:Streaming media server receives what client was sent, and the speed that streaming media carries out speed broadcasting plays Ask, speed file identification is comprised at least in the speed playing request, starts speed reproduction time and speed direction;Wherein, Speed file corresponding to the speed file identification includes at least one GOP, and each GOP head includes positive speed Broadcast information, afterbody include reverse speed broadcast information;The DST PLAYER has anti-in the parsing speed file To the function of speed broadcast information.
Wherein, the positive speed broadcast information includes PCR, DTS, the PTS of each two field picture when positive speed plays;
The reversely speed broadcast information includes PCR, DTS, the PTS of each two field picture when reverse speed plays.
Step 402:According to the beginning speed reproduction time and the speed direction, determine to treat in the speed file Send GOP.
Wherein it is determined that GOP to be sent method illustrates in embodiment two, will not be repeated here.
Step 403:The GOP to be sent is sent to the client according to the sequencing of broadcasting, by the client With the speed direction of user request corresponding speed broadcast information of the end in the GOP to be sent received, is completed to receiving The GOP to be sent arrived broadcasting.
Wherein, then can be by speed text because client can parse speed file of the afterbody with reverse speed information Part is transmitted directly to client, and the speed direction required by client according to user parses and plays each to be sent of reception successively GOP.Specifically, when speed direction is positive speed, client can be broadcast according to the positive speed broadcast information in speed file Put GOP;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, realize to the function of parsing the reverse speed broadcast information in the speed file Client sends speed file, and completes the broadcasting to speed file by the client.
Example IV
Based on identical inventive concept, the embodiment of the present invention also provides a kind of generating means of Streaming Media speed file, such as Shown in Fig. 5, described device includes:
Initial speed file generating module 501, for for each Streaming Media, generating the default speed of the Streaming Media Under initial speed file;The initial speed file includes at least one GOP, and each GOP head includes positive times Fast broadcast information;
Speed file generating module 502, for each GOP for each initial speed file, in the tail of the GOP Add reverse speed broadcast information in portion.
Wherein, in one embodiment, the initial speed file generating module 501, for for each default times Speed, the image of predetermined number is extracted from the Streaming Media, form the initial speed file under the default speed.
As shown in fig. 6, the embodiment of the present invention also provides a kind of playing device of Streaming Media speed file, including:
Speed request receiving module 601, send for receiving client, streaming media carries out the speed of speed broadcasting Playing request, speed file identification is comprised at least in the speed playing request, starts speed reproduction time and speed side To;Wherein, speed file corresponding to the speed file identification includes at least one picture group GOP, and each GOP head Portion includes positive speed broadcast information, and afterbody includes reverse speed broadcast information;The DST PLAYER is without parsing institute State the function of the reverse speed broadcast information in speed file;
Determining module 602, for according to the speed file identification, it is determined that speed corresponding with the speed file identification File;And according to the beginning speed reproduction time and the speed direction, determine the GOP to be sent in the speed file;
First sending module 603, for when the speed direction is positive speed, deleting the tail of the GOP to be sent The reverse speed broadcast information in portion;And when the GOP to be sent for deleting reverse speed broadcast information is played according to positive speed Sequencing is sent to the client, is broadcast by the client according to the positive speed on the GOP to be sent received head Information is put, plays the GOP;
Second sending module 604, when the speed direction is reverse speed, for each GOP to be sent, treated with this The reverse speed broadcast information for sending GOP replaces positive speed broadcast information, and deletes reverse times of the afterbody of the GOP to be sent Fast broadcast information;And the GOP to be sent of the reverse speed broadcast information of afterbody, elder generation when being played according to reverse speed will be deleted The client is sequentially sent to afterwards, is played by the client according to the reverse speed on the GOP to be sent received head Information, play the GOP.
As shown in fig. 7, the embodiment of the present invention also provides a kind of playing device of Streaming Media speed file, including:
Speed request receiving module 701, send for receiving client, streaming media carries out the speed of speed broadcasting Playing request, speed file identification is comprised at least in the speed playing request, starts speed reproduction time and speed direction;Its In, speed file corresponding to the speed file identification includes at least one picture group GOP, and each GOP head bag Positive speed broadcast information is included, afterbody includes reverse speed broadcast information;The DST PLAYER, which has, parses the speed The function of reverse speed broadcast information in file;
Determining module 702, for according to the beginning speed reproduction time and the speed direction, determining the speed text GOP to be sent in part;
Sending module 703, for the GOP to be sent to be sent into the client according to the sequencing of broadcasting, by With the speed direction of user request corresponding speed broadcast information of the client in the GOP to be sent received, it is complete The GOP to be sent received in pairs broadcasting.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (11)

1. a kind of generation method of Streaming Media speed file, it is characterised in that methods described includes:
For each Streaming Media, the initial speed file under at least one default speed of the Streaming Media is generated;Wherein, one The individual corresponding initial speed file of default speed;The initial speed file includes at least one picture group GOP, each GOP head includes positive speed broadcast information;The positive speed broadcast information is for determining when positive speed plays When GOP is decoded and information that when each two field picture plays;
For each GOP of each initial speed file, reverse speed broadcast information is added in the afterbody of the GOP, it is described Reverse speed broadcast information is for determining when to decode GOP when reverse speed plays and when is each two field picture The information of broadcasting.
2. according to the method for claim 1, it is characterised in that the positive speed broadcast information includes:Positive speed is broadcast Program clock reference PCR, decoded time stamp DTS, the Presentation Time Stamp PTS of each two field picture when putting;
The reversely speed broadcast information includes:PCR, DTS, the PTS of each two field picture when reverse speed plays.
3. according to the method for claim 1, it is characterised in that the default speed of the Streaming Media is generated according to following methods Under initial speed file:
Speed is preset for each, the image of predetermined number is extracted from the Streaming Media, is formed first under the default speed Beginning speed file.
4. a kind of player method of Streaming Media speed file, it is characterised in that methods described includes:
Streaming media server receives what client was sent, the speed playing request of streaming media progress speed broadcasting, described times Speed file identification is comprised at least in fast playing request, starts speed reproduction time and speed direction;Wherein, the speed Speed file corresponding to file identification includes at least one picture group GOP, and each GOP head is broadcast including positive speed Information is put, afterbody includes reverse speed broadcast information;Wherein, the positive speed broadcast information is for determining in positive speed When GOP is decoded during broadcasting and information that when each two field picture plays, the reversely speed broadcast information is use In it is determined that when being decoded when reverse speed plays to GOP and information that when each two field picture plays;The stream matchmaker Body player is without the function of parsing the reverse speed broadcast information in the speed file;
According to the speed file identification, it is determined that speed file corresponding with the speed file identification;And according to the beginning Speed reproduction time and the speed direction, determine the GOP to be sent in the speed file;
When the speed direction is positive speed, the reverse speed broadcast information of the afterbody of the GOP to be sent is deleted;And The sequencing when GOP to be sent for deleting reverse speed broadcast information is played according to positive speed is sent to the client End, the positive speed broadcast information by the client according to the GOP to be sent received head, plays the GOP;
When the speed direction is reverse speed, for each GOP to be sent, broadcast with the reverse speed of the GOP to be sent Put information and replace positive speed broadcast information, and delete the reverse speed broadcast information of the afterbody of the GOP to be sent;And it will delete Except the GOP to be sent of the reverse speed broadcast information of afterbody, sequencing when being played according to reverse speed is sent to the visitor Family end, the reverse speed broadcast information by the client according to the GOP to be sent received head, plays the GOP.
5. according to the method for claim 4, it is characterised in that the positive speed broadcast information includes:Positive speed is broadcast Program clock reference PCR, decoded time stamp DTS, the Presentation Time Stamp PTS of each two field picture when putting;
The reversely speed broadcast information includes:PCR, DTS, the PTS of each two field picture when reverse speed plays.
6. a kind of player method of Streaming Media speed file, it is characterised in that methods described includes:
Streaming media server receives what client was sent, the speed playing request of streaming media progress speed broadcasting, described times Speed file identification is comprised at least in fast playing request, starts speed reproduction time and speed direction;Wherein, the speed file Speed file corresponding to mark includes at least one picture group GOP, and each GOP head includes positive speed and plays letter Breath, afterbody include reverse speed broadcast information;Wherein, the positive speed broadcast information is for determining to play in positive speed When GOP is decoded and information that when each two field picture plays, the reversely speed broadcast information are for true It is scheduled on and when GOP is decoded when reverse speed plays and information that when each two field picture plays;The Streaming Media is broadcast Putting utensil has the function of parsing the reverse speed broadcast information in the speed file;
According to the beginning speed reproduction time and the speed direction, the GOP to be sent in the speed file is determined;
The GOP to be sent is sent to the client according to the sequencing of broadcasting, by the client according to receiving GOP to be sent in the corresponding speed broadcast information in speed direction with user's request, complete the GOP to be sent to receiving Broadcasting.
7. according to the method for claim 6, it is characterised in that the positive speed broadcast information includes:Positive speed is broadcast Program clock reference PCR, decoded time stamp DTS, the Presentation Time Stamp PTS of each two field picture when putting;
The reversely speed broadcast information includes:PCR, DTS, the PTS of each two field picture when reverse speed plays.
8. a kind of generating means of Streaming Media speed file, it is characterised in that described device includes:
Initial speed file generating module, for for each Streaming Media, generating at least one of the Streaming Media and presetting again Initial speed file under speed;Wherein, the corresponding initial speed file of a default speed;Wrapped in the initial speed file At least one picture group GOP is included, each GOP head includes positive speed broadcast information;The positive speed broadcast information For for the information for determining when to decode GOP when positive speed plays and when each two field picture plays;
Speed file generating module, for each GOP for each initial speed file, added in the afterbody of the GOP Reverse speed broadcast information, the reversely speed broadcast information are for determining when GOP is carried out when reverse speed plays The information when decoding and each two field picture play.
9. device according to claim 8, it is characterised in that the initial speed file generating module, for for every One default speed, the image of predetermined number is extracted from the Streaming Media, form the initial speed file under the default speed.
10. a kind of playing device of Streaming Media speed file, it is characterised in that described device includes:
Speed request receiving module, send for receiving client, streaming media carries out the speed of speed broadcasting, and play please Ask, speed file identification is comprised at least in the speed playing request, starts speed reproduction time and speed direction;Wherein, Speed file corresponding to the speed file identification includes at least one picture group GOP, and each GOP head is included just To speed broadcast information, afterbody includes reverse speed broadcast information;Wherein, the positive speed broadcast information is for determining When positive speed is decoded when playing to GOP and when each two field picture plays information, the reversely speed play Information is the information for determining when to decode GOP when reverse speed plays and when each two field picture plays; The DST PLAYER is without the function of parsing the reverse speed broadcast information in the speed file;
Determining module, for according to the speed file identification, it is determined that speed file corresponding with the speed file identification;And According to the beginning speed reproduction time and the speed direction, the GOP to be sent in the speed file is determined;
First sending module, for when the speed direction is positive speed, delete the GOP to be sent afterbody it is reverse Speed broadcast information;And the sequencing when GOP to be sent for deleting reverse speed broadcast information is played according to positive speed The client is sent to, the positive speed broadcast information by the client according to the GOP to be sent received head, is broadcast Put the GOP;
Second sending module, when the speed direction is reverse speed, for each GOP to be sent, with the GOP to be sent Reverse speed broadcast information replace positive speed broadcast information, and the reverse speed for deleting the afterbody of the GOP to be sent plays Information;And the GOP to be sent of the reverse speed broadcast information of afterbody, sequencing when being played according to reverse speed will be deleted The client is sent to, the reverse speed broadcast information by the client according to the GOP to be sent received head, is broadcast Put the GOP.
11. a kind of playing device of Streaming Media speed file, it is characterised in that described device includes:
Speed request receiving module, send for receiving client, streaming media carries out the speed of speed broadcasting, and play please Ask, speed file identification is comprised at least in the speed playing request, starts speed reproduction time and speed direction;Wherein, institute Stating speed file corresponding to speed file identification includes at least one picture group GOP, and each GOP head includes forward direction Speed broadcast information, afterbody include reverse speed broadcast information;Wherein, the positive speed broadcast information is for determining just When GOP is decoded when being played to speed and information that when each two field picture plays, the reversely speed play letter Cease for for the information for determining when to decode GOP when reverse speed plays and when each two field picture plays;Institute Stating DST PLAYER has the function of parsing the reverse speed broadcast information in the speed file;
Determining module, for according to the beginning speed reproduction time and the speed direction, determining in the speed file GOP to be sent;
Sending module, for the GOP to be sent to be sent into the client according to the sequencing of broadcasting, by the client With the speed direction of user request corresponding speed broadcast information of the end in the GOP to be sent received, is completed to receiving The GOP to be sent arrived broadcasting.
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 CN104683882A (en) 2015-06-03
CN104683882B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (4)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CA2616440C (en) * 2006-12-29 2015-02-17 Broadband Royalty Corporation Source optimized dynamic trickplay

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN104683882A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
US7139470B2 (en) Navigation for MPEG streams
CN104394426B (en) Streaming Media speed playing method and device
CN109565620A (en) Low latency HTTP real-time streaming transport
CN103650526A (en) Playlists for real-time or near real-time streaming
CN111836076B (en) Video resolution switching method and device and electronic equipment
CN104683858B (en) A kind of method for previewing and device of the content of Streaming Media
CN104902145B (en) A kind of player method and device of live stream video
CN105791938A (en) Multimedia file splicing method and apparatus
CN104093084B (en) A kind of method and device for playing video
JP2003111048A (en) Server and program for contents reproduction
CN106791988A (en) Multi-medium data carousel method and terminal
CN112423140A (en) Video playing method and device, electronic equipment and storage medium
CN105872599A (en) Method and device for providing and downloading videos
CN105898551A (en) Network video playing method and device
CN107613365A (en) A kind of video broadcasting method and device
EP3258664A1 (en) Media data processing method and apparatus
JP2004140488A (en) Multimedia contents editing apparatus and multimedia contents reproducing apparatus
CN104683882B (en) A kind of generation of Streaming Media speed file and player method, device
CN102473088B (en) Media processing comparison system and techniques
CN104780389B (en) A kind of method for processing video frequency and device
CN106162380A (en) A kind of Online Video call method and system
CN104853224B (en) A kind of video data handling procedure and device
CN106792111A (en) A kind of use FFMPEG interfaces record the method and device of webcast website's video
JP2014093733A (en) Video distribution device, video reproduction device, video distribution program, and video reproduction program
CN106792219A (en) A kind of live method and device reviewed

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