CN102082774B - Stream media data playing method and system - Google Patents

Stream media data playing method and system Download PDF

Info

Publication number
CN102082774B
CN102082774B CN200910241408.7A CN200910241408A CN102082774B CN 102082774 B CN102082774 B CN 102082774B CN 200910241408 A CN200910241408 A CN 200910241408A CN 102082774 B CN102082774 B CN 102082774B
Authority
CN
China
Prior art keywords
stream media
files
frame
play
frame number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN200910241408.7A
Other languages
Chinese (zh)
Other versions
CN102082774A (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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN200910241408.7A priority Critical patent/CN102082774B/en
Publication of CN102082774A publication Critical patent/CN102082774A/en
Application granted granted Critical
Publication of CN102082774B publication Critical patent/CN102082774B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a stream media data playing method and system for solving the problem of repeated making of a stream media file. The method comprises the following steps of: configuring the playing time length of the stream media file; detecting whether the configured playing time length is in a preset range; if so, regulating the frame rate of the stream media file to play; otherwise, regulating the frame number of the stream media file to play. The method and the system realize playing of different time lengths of the same file, avoid repeatedly making the stream media file, greatly improve the making efficiency, and meanwhile, save manpower and making resources. Moreover, picture shake in the stream media playing process can be avoided by regulating the frame number.

Description

A kind of stream medium data player method and Play System
Technical field
The present invention relates to stream media technology field, particularly relate to a kind of stream medium data player method and Play System.
Background technology
Universal and the multimedia technology application on the internet of the Internet, an urgent demand can solve the technology transmitting the media files such as video, audio frequency, computer animation in real time, under this background, creates streaming technology and Streaming Media.Popular says, when the media files such as sound, image or animation transmit from server to client real-time continuous by video and audio service device on the internet, user need not wait for that total medium file download is complete, and only need postpone several seconds or tens seconds, just can play on the computer of user, the remainder of file is then continued to receive, until finish or hang up user on backstage by subscriber computer.This technology makes user become the minimizing of hundred times in the stand-by period of playing the media such as video and audio or animation, and does not need too many buffer memory.
Streaming Media refers to the continuous time-base media using streaming technology in internet/intranet, as: audio frequency, video or multimedia file.At present, Streaming Media just defines the Normal Play Time length (hereinafter referred playing duration) of files in stream media in the process made, and the such as playing duration of files in stream media A is 50 seconds, the playing duration of files in stream media B be 1 point 10 seconds.
Such as, but the demand of user is in continuous change, and, certain user wishes that files in stream media A is 50 seconds in the playing duration in the morning, and playing duration in the afternoon change into 1 point 10 seconds; Or user's first wishes that the playing duration of files in stream media A is 50 seconds, user's second then wish the playing duration of files in stream media A be 1 point 10 seconds, simultaneously user third requires that again the playing duration of files in stream media A is 30 seconds.
For the different demands of different user, current solution is: the animation file making separately corresponding playing duration for each demand.Like this, just bring following problem: same files in stream media may only repeat due to the difference of playing duration to make repeatedly, cause a large amount of wastes of Production Time and making resource, have impact on the operating efficiency of producer.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of stream medium data player method and Play System, to solve the problem that files in stream media repeats to make.
In order to solve the problem, the invention discloses a kind of stream medium data player method, comprising:
The playing duration of configuration flow media file;
Detect the playing duration that configures whether in presetting range;
If in presetting range, then the frame per second adjusting files in stream media is play;
If not in presetting range, then the frame number adjusting files in stream media is play.
Preferably, the frame number of described adjustment files in stream media carries out broadcasting and comprises:
If the playing duration configured is greater than the maximum of presetting range, then the frame number increasing files in stream media is play;
If the playing duration configured is less than the minimum value of presetting range, then the frame number reducing files in stream media is play.
Preferably, the frame number of described increase files in stream media comprises: the odd-numbered line of the pixel of adjacent two frames and even number line are added, between described adjacent two frames, synthesize new frame.
Preferably, the frame number of described minimizing files in stream media comprises: reduce frame number by extracting frame from files in stream media.
Preferably, the frame per second of described adjustment files in stream media is carried out broadcasting and is comprised:
If the playing duration configured is greater than the standard value in presetting range, then the play frame rate reducing files in stream media is play;
If the playing duration configured is less than the standard value in presetting range, then the play frame rate increasing files in stream media is play.
Present invention also offers a kind of stream medium data Play System, comprising:
Parameter configuration module, for the playing duration of configuration flow media file;
Detection module, for detecting configured playing duration whether in presetting range;
Frame per second adjusting module, for when in presetting range, the play frame rate of adjustment files in stream media, and trigger playing module;
Frame number adjusting module, for when not in presetting range, the broadcasting frame number of adjustment files in stream media, and trigger playing module;
Playing module, for playing stream media file.
Preferably, described frame number adjusting module comprises:
Frame number increases unit, for work as configured playing duration be greater than the maximum of presetting range time, increase the broadcasting frame number of files in stream media;
Frame number reduces unit, for work as configured playing duration be less than the minimum value of presetting range time, reduce the broadcasting frame number of files in stream media.
Preferably, described frame number increases unit by the odd-numbered line of the pixel of adjacent two frames and even number line being added, between described adjacent two frames, synthesize new frame.
Preferably, described frame number reduces unit and reduces frame number by extracting frame from files in stream media.
Preferably, described frame per second adjusting module comprises:
Frame per second reduces unit, during for working as standard value that configured playing duration is greater than in presetting range, reduces the play frame rate of files in stream media;
Frame per second increases unit, during for working as standard value that configured playing duration is less than in presetting range, increases the play frame rate of files in stream media.
Compared with prior art, the present invention has the following advantages:
First, the playing duration of files in stream media is set to configurable parameter by the present invention, like this, the playing duration of same files in stream media just can be set to different duration according to different demand, when broadcasting, by adjusting frame per second or the frame number of this files in stream media, realize the broadcasting of the different duration of identical file.Present invention, avoiding and repeat to make files in stream media, substantially increase make efficiency, save can manpower and making resource simultaneously.
Secondly, the configuration of the present invention to playing duration defines certain limit, if the playing duration configured is not within the scope of this, then met the playing duration of setting by adjustment frame number (namely increase frame or reduce frame), thus the float in streaming media playing process can be avoided.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of stream medium data player method described in the embodiment of the present invention one;
Fig. 2 is the structure chart of a kind of stream medium data Play System described in the embodiment of the present invention three.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Embodiment one:
With reference to Fig. 1, it is the flow chart of a kind of stream medium data player method described in the embodiment of the present invention one.
Step 101, the playing duration of configuration flow media file;
The playing duration of files in stream media freely can be configured by user as a kind of parameter, and namely the playing duration of a file is no longer a fixed value, but a variable value.Such as, same files in stream media, user A can arrange its playing duration t=30 second, and user B can arrange its playing duration t=35 second.
Step 102, detects the playing duration that configures whether in presetting range;
Described presetting range sets the playing duration scope of a files in stream media, comprises the standard duration that this files in stream media is play within the scope of this.After described standard duration refers to that a files in stream media completes, the time span can play according to normal broadcasting speed.The deviation of the playing duration configured within the scope of this and standard duration is less, and exceed the playing duration of this scope configuration and the deviation of standard duration too large.For both of these case, the present embodiment each provides different play handling method.
When carrying out the broadcasting of files in stream media, first need to determine playing duration that this files in stream media configures whether within presetting range, if, then perform step 103; If not, then perform step 104.
Step 103, if in presetting range, then the frame per second adjusting files in stream media is play;
When configured playing duration is in presetting range, if this playing duration is just in time equal with standard duration, then can play according to normal broadcasting speed.But according to the configuration of different application scene, can there is certain deviation with this standard duration in the playing duration that usual user is arranged, in this step, described deviation is within presetting range.
There are two kinds of adjustment direction:
If the playing duration configured is greater than the standard duration in presetting range, and is less than the maximum of presetting range, then the play frame rate reducing files in stream media is play;
If the playing duration configured is less than the standard duration in presetting range, and is greater than the minimum value of presetting range, then the play frame rate increasing files in stream media is play.
Frame per second refers to broadcasting how many frame data per second, reduces play frame rate, namely reduces broadcasting speed, just can extend the reproduction time of a file; And increase play frame rate, namely increase broadcasting speed, just can extend the reproduction time of a file.
Step 104, if not in presetting range, then the frame number adjusting files in stream media is play.
If the playing duration configured is not in presetting range, then shows that the deviation ratio of this playing duration and standard duration is comparatively large, if at this moment continue the method for adjustment in use frame per second, the incoherent phenomenon of picture can be produced, affect the viewing impression of user.
Therefore, present embodiments provide another kind of adjustment mode, namely play by adjustment frame number, specific as follows:
If the playing duration configured is greater than the maximum of presetting range, then the frame number increasing files in stream media is play;
If the playing duration configured is less than the minimum value of presetting range, then the frame number reducing files in stream media is play.
Namely add the frame number of a file, just can extend the reproduction time of this file; And decrease the frame number of a file, just can reduce the reproduction time of this file.
Wherein, the method for described increase frame has many algorithms, and the present embodiment have employed a kind of simple fusion treatment technology to increase frame, and concrete process is: the odd-numbered line of the pixel of adjacent two frames and even number line are added, between described adjacent two frames, synthesize new frame.
Illustrate, a files in stream media, its every two field picture comprises 10 row pixels.When utilizing adjacent two frame A and B to generate a new frame AB, using the odd-numbered line of the odd-numbered line 1,3,5,7,9 of frame A as frame AB, using the even number line of the even number line 2,4,6,8,10 of frame B as frame AB, between frame A and frame B, so just generate a new frame AB.
This amalgamation mode is simple, can not have an impact to broadcasting speed and result of broadcast.
The method of described minimizing frame also has many algorithms, and total thinking is according to the frame in certain rule extraction file, the frame be extracted is not broadcasted, but play frame rate is constant.Wherein, described rule can adjust according to the result of broadcast of reality, and such as, every 3 frames extract 1 frame, or every 5 frames extract 1 frame etc.The frame number of such file decreases, and the time of broadcasting is also corresponding to be shortened.
In sum, the situation that the present embodiment is more or less the same for playing duration and standard duration, can by increasing or reducing the playing duration that play frame rate meets setting; And with standard duration, too large situation is differed for playing duration, different playing duration can be adapted to by the method increasing frame or minimizing frame, avoid the float in streaming media playing process.In a word, this embodiment avoids and repeat to make files in stream media, substantially increase make efficiency, manpower can be saved simultaneously and make resource.
It should be noted that, in actual applications, the method of adjustment play frame rate, increased by integration technology frame method and take out the method for frame, can be used for the playing duration of control flow check media file, user can carry out according to situations such as the environment configurations of oneself selections and allocate.
Embodiment two:
Files in stream media comprises the file of the stream transmissions such as various audio frequency, video, animation, multimedia, and the present embodiment is described for the broadcasting of animation.
For the broadcasting of award party, usually before party is really started broadcasting, some stunt animations are first play in its opening, occur the printed words of " ×× award party ", then really pull open the prelude of match after this animation plays.Like this, just require the playing duration specifying this animation, because the printed words of " whole world beauty contest of ×× year " regularly will be broadcasted after specifying duration.
Suppose that the playing duration scope of this section of animation is th1-th2, th1 < th2, normal play duration t is between th1 and th2, and channel A requires that the playing duration of configuration is t1, channel B requires that the playing duration of configuration is t2, and t1 is within the scope of this, and t2 is not within the scope of this.Channel A broadcasts live, and channel B relayed at second day, and therefore the reproduction time of channel A is early than channel B.
When first channel A broadcasts live, reading configuration information, to obtain playing duration be t1, detects t1 whether within the scope of th1-th2.Testing result be t1 within the scope of th1-th2, and t1 ≠ t, then play by adjustment frame per second.If t1 > is t, then reduces play frame rate, thus extend reproduction time; If t1 < is t, then increases play frame rate, thus decrease reproduction time.
When channel B relays, read configuration information obtain playing duration be t2, testing result be t2 not within the scope of th1-th2, then by adjustment frame number play.If t2 > is th2, i.e. t2 > t, then increase frame by adjacent two frames are carried out fusion, thus extend reproduction time; If t2 < is th2, i.e. t2 < t, then reduce frame by taking out frame, thus decrease reproduction time.
Embodiment three:
With reference to Fig. 2, it is the structure chart of a kind of stream medium data Play System described in the embodiment of the present invention three.
Described system mainly comprises:
Parameter configuration module 21, for the playing duration of configuration flow media file;
Detection module 22, for detecting configured playing duration whether in presetting range;
Frame per second adjusting module 23, for when in presetting range, the play frame rate of adjustment files in stream media, and trigger playing module;
Frame number adjusting module 24, for when not in presetting range, the broadcasting frame number of adjustment files in stream media, and trigger playing module;
Playing module 25, for playing stream media file.
Wherein, described parameter configuration module 21 can configure different playing duration for same files in stream media.
Described frame per second adjusting module 23 can comprise further:
Frame per second reduces unit 231, during for working as standard value that configured playing duration is greater than in presetting range, reduces the play frame rate of files in stream media;
Frame per second increases unit 232, during for working as standard value that configured playing duration is less than in presetting range, increases the play frame rate of files in stream media.
Described frame number adjusting module 24 can comprise further:
Frame number increases unit 241, for work as configured playing duration be greater than the maximum of presetting range time, increase the broadcasting frame number of files in stream media;
Frame number reduces unit 242, for work as configured playing duration be less than the minimum value of presetting range time, reduce the broadcasting frame number of files in stream media.
Preferably, described frame number increases unit 241 by the odd-numbered line of the pixel of adjacent two frames and even number line being added, between described adjacent two frames, synthesize new frame.
Preferably, described frame number reduces unit 242 and reduces frame number by extracting frame from files in stream media.
In sum, playing duration is set to configurable parameter by this stream medium data Play System, by adjusting play frame rate or the frame number of files in stream media, realize the broadcasting of the different duration of identical file, thus avoid repeat make files in stream media, substantially increase make efficiency, save can manpower and making resource simultaneously.And, described system also defines certain limit to the configuration of playing duration, if the playing duration configured is not within the scope of this, then met the playing duration of setting by adjustment frame number (namely increase frame or reduce frame), thus the float in animation playing process can be avoided.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For system embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Above to a kind of stream medium data player method provided by the present invention and Play System, be described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a stream medium data player method, is characterized in that, comprising:
The playing duration of configuration flow media file;
Detect the playing duration that configures whether in presetting range;
If in presetting range, then the frame per second adjusting files in stream media is play;
If not in presetting range, then the frame number adjusting files in stream media is play.
2. method according to claim 1, is characterized in that, the frame number of described adjustment files in stream media carries out broadcasting and comprises:
If the playing duration configured is greater than the maximum of presetting range, then the frame number increasing files in stream media is play;
If the playing duration configured is less than the minimum value of presetting range, then the frame number reducing files in stream media is play.
3. method according to claim 2, is characterized in that, the frame number of described increase files in stream media comprises:
The odd-numbered line of the pixel of adjacent two frames and even number line are added, between described adjacent two frames, synthesize new frame.
4. method according to claim 2, is characterized in that, the frame number of described minimizing files in stream media comprises:
Frame number is reduced by extracting frame from files in stream media.
5. method according to claim 1, is characterized in that, the frame per second of described adjustment files in stream media is carried out broadcasting and comprised:
If the playing duration configured is greater than the standard value in presetting range, then the play frame rate reducing files in stream media is play;
If the playing duration configured is less than the standard value in presetting range, then the play frame rate increasing files in stream media is play.
6. a stream medium data Play System, is characterized in that, comprising:
Parameter configuration module, for the playing duration of configuration flow media file;
Detection module, for detecting configured playing duration whether in presetting range;
Frame per second adjusting module, for when in presetting range, the play frame rate of adjustment files in stream media, and trigger playing module;
Frame number adjusting module, for when not in presetting range, the broadcasting frame number of adjustment files in stream media, and trigger playing module;
Playing module, for playing stream media file.
7. system according to claim 6, is characterized in that, described frame number adjusting module comprises:
Frame number increases unit, for work as configured playing duration be greater than the maximum of presetting range time, increase the broadcasting frame number of files in stream media;
Frame number reduces unit, for work as configured playing duration be less than the minimum value of presetting range time, reduce the broadcasting frame number of files in stream media.
8. system according to claim 7, is characterized in that:
Described frame number increases unit by the odd-numbered line of the pixel of adjacent two frames and even number line being added, between described adjacent two frames, synthesize new frame.
9. system according to claim 7, is characterized in that:
Described frame number reduces unit and reduces frame number by extracting frame from files in stream media.
10. system according to claim 6, is characterized in that, described frame per second adjusting module comprises:
Frame per second reduces unit, during for working as standard value that configured playing duration is greater than in presetting range, reduces the play frame rate of files in stream media;
Frame per second increases unit, during for working as standard value that configured playing duration is less than in presetting range, increases the play frame rate of files in stream media.
CN200910241408.7A 2009-12-01 2009-12-01 Stream media data playing method and system Expired - Fee Related CN102082774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910241408.7A CN102082774B (en) 2009-12-01 2009-12-01 Stream media data playing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910241408.7A CN102082774B (en) 2009-12-01 2009-12-01 Stream media data playing method and system

Publications (2)

Publication Number Publication Date
CN102082774A CN102082774A (en) 2011-06-01
CN102082774B true CN102082774B (en) 2015-02-18

Family

ID=44088527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910241408.7A Expired - Fee Related CN102082774B (en) 2009-12-01 2009-12-01 Stream media data playing method and system

Country Status (1)

Country Link
CN (1) CN102082774B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177465B (en) * 2011-12-26 2016-04-13 腾讯科技(深圳)有限公司 Animation control methods and system
CN103607650B (en) * 2013-11-29 2018-08-03 乐视网信息技术(北京)股份有限公司 A kind of advertisement cut-in method and player
CN107291468B (en) * 2017-06-21 2021-03-19 深圳Tcl新技术有限公司 Method for playing power-on/power-off animation, terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558665A (en) * 2004-01-20 2004-12-29 大唐微电子技术有限公司 A method of quick network multimedia information playing and corresponding set-top box equipment
CN101119461A (en) * 2006-08-02 2008-02-06 广达电脑股份有限公司 System and method for maintaining video frame and audio frame synchronous broadcasting
CN101466034A (en) * 2008-12-25 2009-06-24 华为技术有限公司 Method and device for sending and playing stream medium data and stream medium program request system
CN101583025A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Streaming media playing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8170396B2 (en) * 2007-04-16 2012-05-01 Adobe Systems Incorporated Changing video playback rate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558665A (en) * 2004-01-20 2004-12-29 大唐微电子技术有限公司 A method of quick network multimedia information playing and corresponding set-top box equipment
CN101119461A (en) * 2006-08-02 2008-02-06 广达电脑股份有限公司 System and method for maintaining video frame and audio frame synchronous broadcasting
CN101466034A (en) * 2008-12-25 2009-06-24 华为技术有限公司 Method and device for sending and playing stream medium data and stream medium program request system
CN101583025A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Streaming media playing method and device

Also Published As

Publication number Publication date
CN102082774A (en) 2011-06-01

Similar Documents

Publication Publication Date Title
CN101917389B (en) Network television direct broadcasting system
KR100929073B1 (en) Apparatus and method for receiving multiple streams in portable broadcasting system
CN101917391B (en) Method for playing network video and system for playing network video
CN103475927B (en) Online-video real-time speed change play method and system thereof
WO2016095369A1 (en) Screen recording method and device
CN102882829A (en) Transcoding method and system
CN102752669B (en) The transfer processing method of multichannel real time flow medium file and system, receiving system
CN103200461A (en) Multiple-player-terminal synchronized playing system and playing method
WO2010020183A1 (en) Method and device of transmission and play of advertisement programs
CN101917613A (en) Acquiring and coding service system of streaming media
CN102802075A (en) Online play buffering system and method
CN102378001A (en) Mobile terminal supporting picture live broadcast mode, video live broadcast method thereof and system thereof
CN111447455A (en) Live video stream playback processing method and device and computing equipment
CN104080014B (en) A kind of real time video processing method and apparatus
CN101848367B (en) File-based video live webcasting method
CN113661692B (en) Method, apparatus and non-volatile computer-readable storage medium for receiving media data
CN104053026A (en) Method and system for receiving and playing boot video advertisements of digital television set-top boxes
WO2014144641A1 (en) System and method for replicating a media stream
CN103763588A (en) Stream forwarding method, device, server and system for video advertising insertion
CN101909046A (en) Multimedia transcoding server and multimedia transcoding system
CN102082774B (en) Stream media data playing method and system
CN110602522A (en) Multi-path real-time live webRTC stream synthesis method
CN112218128B (en) Advertisement video playing method, playing client and readable storage medium
TWI788722B (en) Method for use in connection with a content-presentation device, non-transitory computer-readable storage medium and computing system
KR20100131365A (en) Server and terminal for reducing zapping delay and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150218

Termination date: 20161201

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