CN105898386A - Network video data obtaining method and device - Google Patents
Network video data obtaining method and device Download PDFInfo
- Publication number
- CN105898386A CN105898386A CN201510917423.4A CN201510917423A CN105898386A CN 105898386 A CN105898386 A CN 105898386A CN 201510917423 A CN201510917423 A CN 201510917423A CN 105898386 A CN105898386 A CN 105898386A
- Authority
- CN
- China
- Prior art keywords
- network
- document location
- media data
- download
- media
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/23805—Controlling the feeding rate to the network, e.g. by controlling the video pump
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
Abstract
The invention provides a network video data obtaining method and device. The method comprises that a first media data download request is obtained; first network connection with a network video server is established, and media data is downloaded from a file position, corresponding to the first media data download request, in a media file via the first network connection; a second media data download request is obtained; when both a first file position for present downloading in the first network connection and a second file position of media data requested by the second media data download request satisfy the download condition, second network connection with the network video server is established; and the media data is download from the second file position in the media file via the second network connection. According to the invention, the processing efficiency of media data is improved.
Description
Technical field
The present embodiments relate to video technique field, particularly relate to a kind of network video data acquisition methods
And device.
Background technology
The media data of Internet video is made up of voice data and video data (i.e. image data),
The operations such as the media data of Internet video is encoded, encapsulation, generate media file, with media file
Form is transmitted, and plays end by obtaining the media data in media file, and carry out demultiplexing,
After the operations such as decoding, i.e. can play Internet video.
When broadcasting end carries out Internet video broadcasting, by resolving media file, first obtain each frame sound
Frequency evidence or the index information of every one-frame video data, when demultiplexing, i.e. can be according to each frame
Audio frequency corresponding in the index information acquisition request media file of voice data or every one-frame video data
Data or video data.
And for voice data and the media file of video data hybrid package, in order to ensure that audio frequency and video are same
Step is play, when Internet video is play, the download of voice data and video data may needs intersect into
OK, therefore, during broadcasting end sets up network connection downloads of media data, it is possible to need
Interrupt the download of the media data of current location, recycle this network connecting request and download other positions
Media data, therefore may result in network connection and disconnects frequently and rebuild so that operate comparatively laborious,
Media data treatment effeciency will be affected.
Summary of the invention
The embodiment of the present invention provides a kind of Network Data Capture method and device, in order to solve in prior art
The technical problem that media data treatment effeciency is relatively low.
The embodiment of the present invention provides a kind of network video data acquisition methods, including:
Obtain the first media data and download request;
Set up and be connected with the first network of network video server, utilize described first network to connect from media
Described first media data of file is downloaded request respective file position and is started downloads of media data;
Obtain the second media data and download request;
Current the first document location downloaded is connected, and under described second media data at described first network
When load request asks the second document location of the media data downloaded to meet download condition, set up with described
Second network of network video server connects;
The second document location utilizing described second network to connect from described media file starts downloads of media number
According to.
The embodiment of the present invention provides a kind of network video data acquisition device, including:
First request module, downloads request for obtaining the first media data;
First link block, is connected with the first network of network video server for setting up;
First download module, for utilizing described first network to connect described first media from media file
Document location corresponding to data download request starts downloads of media data;
Second request module, downloads request for obtaining the second media data;
Second link block, for connecting current the first document location downloaded at described first network, with
Described second media data is downloaded and is asked the second document location of the media data downloaded to meet download in request
During condition, set up and be connected with the second network of described network video server;
Second download module, for utilizing described second network to connect the second file from described media file
Position starts downloads of media data.
The network video data acquisition methods of embodiment of the present invention offer and device, if according to the first media
Data download request, the first of the current download that the first network with network video server of foundation is connected
Document location, with the second document location that the second media data downloads the media data asking download in request
When meeting download condition, i.e. can set up the second network with described network video server and be connected;Utilize institute
State the second network connection and start downloads of media data from the second document location of described media file, profit simultaneously
The download that can proceed media data is connected with first network.Without interrupting in the embodiment of the present invention
One network connects, and re-establishes second network and connects the download carrying out other position media datas,
Thus both improve the treatment effeciency of media data, turn avoid the wasting of resources that frequent operation causes.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under,
Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art,
On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of inventive network one embodiment of video data acquisition methods;
Fig. 2 is another embodiment flow chart of inventive network video data acquisition methods;
Fig. 3 is one example structure schematic diagram of inventive network video data acquisition device;
Fig. 4 is another example structure schematic diagram of inventive network video data acquisition device.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this
Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention,
Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise
The every other embodiment obtained, broadly falls into the scope of protection of the invention.
In embodiments of the present invention, download request according to the first media data, set up and Web Video Service
The first network of device connects, and utilizes described first network to connect the media data in downloads of media file;Deposit
When the second media data downloads request, if first network connects current the first document location downloaded,
Download with the second media data and request is asked the second document location of the media data downloaded meet lower carrier strip
During part, i.e. can set up the second network with described network video server and be connected;Utilize described second network
Connect the second document location downloads of media data from described media file, utilize first network to connect simultaneously
The download of media data can be proceeded.Without interrupting first network connection in the embodiment of the present invention, and
It is to re-establish second network to connect, carries out the download of media data so that media data is downloaded can
Persistently to carry out, and then the treatment effeciency of media data can be improved.
Below in conjunction with the accompanying drawings technical solution of the present invention is described in detail.
The stream of a kind of one embodiment of network video data acquisition methods that Fig. 1 provides for the embodiment of the present invention
Cheng Tu, the method can include following step:
101: obtain the first media data and download request.
102: set up and be connected with the first network of network video server, under utilizing described first network to connect
Carry the media data in media file.
Network video server is to provide the equipment of the media data of Internet video.
Concrete, it is to download the media data asking to download request at media file from the first media data
In document location at, proceed by the download of media data.
According to asking the index information that the media data downloaded is corresponding to obtain during this document position.
103: obtain the second media data and download request.
Wherein, before downloads of media data, need first to resolve each frame audio frequency number obtained in media file
According to this and the index information of every one-frame video data, this index information can include frame position, size and
Temporal informations etc., the index information of each frame voice data and every one-frame video data is generally housed in matchmaker
In the file header of body file.
Play end according to the index letter resolving each frame voice data obtained and every one-frame video data
Breath, after acquisition media data carries out demultiplexing and decoding, i.e. can play out.
First media data downloads request and the download request of the second media data can be to play end according to solution
Each frame voice data of analysis acquisition and the index information of every one-frame video data generate.First media
Data download request and the second media data are downloaded and asked the media data downloaded in request can be a frame
Voice data or one-frame video data.
Due in the media file of voice data and video data hybrid package, in order to ensure audio frequency and video
Synchronizing to play, the download of voice data and video data may need intersection to carry out, the media that request is downloaded
The document location of data may not be continuous print.Therefore, in media data downloading process, can ask to download
The media data of different document locations.
Such as encapsulate according to AVI (Audio Video Interleaved, Audio Video Interleaved form) media
Form obtains in media file, voice data and video data be i.e. hybrid package together, and audio frequency
Data and video data are not interval encapsulation.
The request of downloading of first media data can be by the request sent during initial download, the first media number
Include the document location of the media data of request download according to the request of downloading, obtain from the frame position of index information
, the first network that broadcasting end initially sets up with network video server is connected, from the first media data
Carry the download carrying out media data in request at the document location of request.
During owing to carrying out media data download, it is that the media data correspondence that the request from media file is downloaded is civilian
Part position starts, continuous downloads of media data, therefore when setting up first network and connecting, it is also possible to set up
Data buffer area, in order to cache the media data of download.
When broadcasting end demultiplexes, reading media data from data buffer area, if data buffer area
In there is no the media data of request, i.e. can ask to download corresponding media data from network video server.
The request of downloading of this second media data can also be the media data that there is not request in data buffer area
Shi Faqi's.
104: connect current the first document location downloaded at described first network, with described second media number
When meeting download condition according to the request of downloading is asked the second document location of media data downloaded, set up with
Second network of described network video server connects.
105: the second document location utilizing described second network to connect from described media file starts to download matchmaker
Volume data.
Due to for voice data and the media file of video data hybrid package, voice data and video counts
According to download need intersection to carry out.Therefore the second media data asks the media data downloaded in downloading request
The second document location in media file, the first document location being connected current download with first network can
It can not be continuous print.
In prior art, need to disconnect first network and connect, re-establish this first network and connect, from the
Starting to download data at two document locations, so, first network connects and will repeatedly disconnect and rebuild, shadow
Ring data-handling efficiency.
And in the embodiment of the present invention, at the first document location, when meeting download condition with the second document location,
Then can re-establish one to be connected with the second network of described network video server.
Utilize this second network to connect at the second document location, start media data in downloads of media file.
And utilize first network to connect the download that can continue to carry out media data at the first document location.
In the embodiment of the present invention, if first network connects current the first document location downloaded, with second
Media data is downloaded when asking the second document location of the media data downloaded to meet download condition in request,
I.e. can set up the second network with described network video server to be connected;Utilize described second network connect from
Second document location downloads of media data of described media file, utilizing first network to connect can continue simultaneously
The continuous download carrying out media data.Without interrupting first network connection in the embodiment of the present invention, but again
Set up second network to connect, carry out the download of media data so that media data is downloaded and can be continued
Carry out, and then the treatment effeciency of media data can be improved.
Wherein, if described first document location, when being unsatisfactory for download condition with described second document location,
First network to be utilized then can be waited to connect from described media file, download described second document location correspondence
Media data.
Wherein, described download condition shows that the first document location and the second document location are not continuous print two
Position, and be not suitable for connecting the download carrying out media data with same network.
This download condition has multiple possible implementation, in a kind of possible implementation, can be first
Document location and the second document location differ farther out, between the i.e. first document location and the second document location
File size difference is more than certain numerical value.
In alternatively possible implementation, can be that the second document location is positioned in media file
Before one document location.
Namely it is described at current the first document location downloaded of described first network connection, with described second matchmaker
Volume data is downloaded when asking the second document location of the media data downloaded to meet download condition in request, builds
Vertical connection with the second network of described network video server may is that
If before described second document location is positioned at described first document location, set up and described network video
Frequently the second network of server connects.
Second document location, before the first document location, shows that the second media data is downloaded request and is probably
Play termination and receive generation when Internet video reviews request.
Due to after carrying out media data download, and carrying out demultiplexing, decode and playing, media number
According to being i.e. released.If before the second document location is positioned at the first document location, in data buffer area
Through there is not media data corresponding at the second document location.Therefore, the second network can the most i.e. be set up
Connect, with downloads of media data at the second document location of media file.
As the implementation that another is possible, this download condition can be described in the second document location is positioned at
After first document location, and the file size between the second document location and described first document location is poor
Value is more than data buffer storage section length.
Utilize first network to connect the media data downloaded, be buffered in data buffer area, if data are delayed
Deposit district's data to be filled with, when there is no remaining space, first network connect i.e. suspend media data download until
Data in data buffer area are read.
If the file size difference therefore between the second document location and the first document location is delayed more than data
Deposit section length, even if etc. first network to be utilized connect be downloaded, data buffer area download second literary composition
Before the media data of part position, data buffer area has been filled with data, therefore can suspend first network even
The download connect, if etc. first network to be utilized connect the media data downloaded at the second document location, will
Wait the long period, the most i.e. can set up the second network and connect, utilize described second network to connect from institute
State the second document location downloads of media data of media file.
And after if described second document location is positioned at described first document location, and described second file
When file size difference between position and described first document location is less than data buffer storage section length, described
Method can also include:
From described media file, described second document location pair is downloaded etc. described first network to be utilized connection
The media data answered.
Wherein, when utilizing first network connection and the connection of the second network to carry out media data download, permissible
May proceed to obtain media data and download request, it is assumed that be that the 3rd media data downloads request, the 3rd media number
According to the request of downloading is asked the media data the 3rd medium position in media file downloaded, may be with the
One network connects and the current document location downloaded of the second network connection is not the most continuous print, therefore, and this
Inventive embodiments provides again another embodiment of network video data acquisition methods, as in figure 2 it is shown, should
Method can include following step:
201: obtain the first media data and download request.
202: set up be connected with the first network of network video server, utilize described first network connection from
The document location that described first media data of media file downloads request corresponding starts downloads of media data.
203: obtain the second media data and download request.
204: connect current the first document location downloaded at described first network, with described second media number
When meeting download condition according to the request of downloading is asked the second document location of media data downloaded, set up with
Second network of described network video server connects.
205: the second document location utilizing described second network to connect from described media file starts to download matchmaker
Volume data.
The operation of step 201~step 205 can be with step 101 in embodiment illustrated in fig. 1~step 105
Operate identical, do not repeat them here.
206: obtain the 3rd media data and download request.
207: download the 3rd file position of the media data asking download in request at described 3rd media data
Putting, the document location and described second network that are connected current download with described first network connect when front lower
When the document location carried is satisfied by download condition, disconnects described first network and connect.
208: set up and be connected with the 3rd network of network video server, from described the of described media file
Three document locations start downloads of media data.
If the 3rd document location is connected document location and second network of current download with first network
Connect the current document location downloaded and be satisfied by download condition, then can select the first net that will relatively early set up
Network connects disconnection, and sets up the 3rd network connection, from described 3rd document location downloads of media file
Media data.
It can be that this first network re-established connects that 3rd network connects.
Described 3rd document location is connected the document location and described the of current download with described first network
When the two current document locations downloaded of networks connection are satisfied by download condition, this download condition is a kind of possible
Being achieved in that, the 3rd document location is positioned at first network and connects the current document location downloaded and described
Before second network connects the current document location downloaded.
Alternatively possible is achieved in that the 3rd document location is connected the file of current download with first network
The file size difference that position and described second network connect between the current document location downloaded is all higher than number
According to buffer area length.
In the present embodiment, if first network connects current the first document location downloaded, with the second media
When the second document location asking the media data downloaded in data download request meets download condition, i.e. can
Set up and be connected with the second network of described network video server;Described second network is utilized to connect from described
Second document location downloads of media data of media file, utilize simultaneously first network connect can continue into
The download of row media data.If the 3rd media data downloads the 3rd document location in request, with first
Network connects the current document location downloaded and the second network connects the current document location downloaded and is satisfied by
During download condition, then can disconnect the first network relatively early set up and connect, and re-establish the 3rd network even
Tap into row media data to download.By keeping two networks to connect, i.e. can reduce the wasting of resources, carry again
High data-handling efficiency.
Wherein, if first network connects the current document location downloaded and the second network connects when front lower
Any one network in the document location carried connects the current document location downloaded, with the 3rd document location not
When meeting download condition, then can wait the network company being unsatisfactory for download condition with the 3rd document location to be utilized
Connect the 3rd document location downloads of media data from media file.
The knot of a kind of one embodiment of network video data acquisition device that Fig. 3 provides for the embodiment of the present invention
Structure schematic diagram, described device may include that
First request module 301, downloads request for obtaining the first media data;
First link block 302, is connected with the first network of network video server for setting up;
First download module 303, for utilizing described first network to connect from described the first of media file
The document location that media data downloads request corresponding starts downloads of media data;
Second request module 304, downloads request for obtaining the second media data;
Second link block 305, for connecting current the first document location downloaded at described first network,
Download with described second media data under request being asked the second document location of the media data downloaded meet
During carrier strip part, set up and be connected with the second network of described network video server;
Second download module 306, for utilizing described second network to connect from the second of described media file
Document location starts downloads of media data.
Wherein, before downloads of media data, need first to resolve each frame audio frequency number obtained in media file
According to this and the index information of every one-frame video data, this index information can include frame position, size and
Temporal informations etc., the index information of each frame voice data and every one-frame video data is generally housed in matchmaker
In the file header of body file.
Play end according to the index letter resolving each frame voice data obtained and every one-frame video data
Breath, after acquisition media data carries out demultiplexing and decoding, i.e. can play out.
First media data downloads request and the download request of the second media data can be to play end according to solution
Each frame voice data of analysis acquisition and the index information of every one-frame video data generate.
Due in the media file of voice data and video data hybrid package, in order to ensure audio frequency and video
Synchronizing to play, the download of voice data and video data may need intersection to carry out, the media that request is downloaded
The document location of data may not be continuous print.Therefore, in media data downloading process, can ask to download
The media data of different document locations.
Such as encapsulate according to AVI (Audio Video Interleaved, Audio Video Interleaved form) media
Form obtains in media file, voice data and video data be i.e. hybrid package together, and audio frequency
Data and video data are not interval encapsulation.
The request of downloading of first media data can be by the request sent during initial download, the first media number
Include the document location of the media data of request download according to the request of downloading, obtain from the frame position of index information
, the first network that broadcasting end initially sets up with network video server is connected, from the first media data
Carry the download carrying out media data in request at the document location of request.
During owing to carrying out media data download, it is from the beginning of a certain position of media file, downloads matchmaker continuously
Volume data, therefore when setting up first network and connecting, it is also possible to set up data buffer area, in order to cache down
The media data carried.
When broadcasting end demultiplexes, reading media data from data buffer area, if data buffer area
In there is no the media data of request, i.e. can ask to download corresponding media data from network video server.
The request of downloading of this second media data can be i.e. the media data that there is not request in data buffer area
Shi Faqi's.
In the embodiment of the present invention, if first network connects current the first document location downloaded, with second
Media data is downloaded when asking the second document location of the media data downloaded to meet download condition in request,
I.e. can set up the second network with described network video server to be connected;Utilize described second network connect from
Second document location downloads of media data of described media file, utilizing first network to connect can continue simultaneously
The continuous download carrying out media data.Without interrupting first network connection in the embodiment of the present invention, but again
Set up second network to connect, carry out the download of media data so that media data is downloaded and can be continued
Carry out, and then the treatment effeciency of media data can be improved.
Wherein, if described first document location, when being unsatisfactory for download condition with described second document location,
First network to be utilized then can be waited to connect from described media file, download described second document location correspondence
Media data.
Wherein, described download condition shows that the first document location and the second document location are not continuous print two
Position, and be not suitable for connecting the download carrying out media data with same network.
This download condition has multiple possible implementation, can be the first literary composition in a kind of possible implementation
Part position differs farther out with the second document location, the literary composition between the i.e. first document location and the second document location
Part length difference is more than certain numerical value.
In alternatively possible implementation, can be that the second document location is positioned in media file
Before one document location.
Accordingly, as another embodiment, described second link block can be specifically for:
If before described second document location is positioned at described first document location, set up and described network video
Frequently the second network of server connects.
As the implementation that another is possible, this download condition can be described in the second document location is positioned at
After first document location, and the file size between the second document location and described first document location is poor
Value is more than data buffer storage section length.
Accordingly, as another embodiment, described second link block can be specifically for:
If after described second document location is positioned at described first document location, the second document location and institute
When stating the file size difference between the first document location more than data buffer storage section length, set up and described net
Second network of network video server connects.
And after if described second document location is positioned at described first document location, and described second file
When file size difference between position and described first document location is less than data buffer storage section length, then etc.
Described first network to be utilized connects downloads the matchmaker that described second document location is corresponding from described media file
Volume data.
Accordingly, as another embodiment, this device can also include:
Wait for downloads module, if after described second document location is positioned at described first document location,
And the file size difference between described second document location and described first document location is less than data buffer storage
During section length, wait described first network to be utilized to connect from described media file, download described second file
The media data that position is corresponding.
Wherein, when utilizing first network connection and the connection of the second network to carry out media data download, permissible
May proceed to obtain media data and download request, it is assumed that be that the 3rd media data downloads request, the 3rd media number
According to the request of downloading is asked the media data the 3rd medium position in media file downloaded, may be with the
One network connects and the current document location downloaded of the second network connection is not the most continuous print, therefore, makees
Being an embodiment, with embodiment illustrated in fig. 3 difference, this device can also include:
3rd request module 307, downloads request for obtaining the 3rd media data;
Connect and disconnect module 308, for downloading, at described 3rd media data, the matchmaker asking to download in request
3rd document location of volume data, is connected the document location of current download and described with described first network
When the second current document location downloaded of network connection is satisfied by download condition, disconnect described first network even
Connect;
3rd link block 309, is connected with the 3rd network of described network video server for setting up;
3rd download module 310, for utilizing described 3rd network to connect from the 3rd of described media file
Document location starts media data.
It can be that this first network re-established connects that 3rd network connects.
Described 3rd document location is connected the document location and described the of current download with described first network
When the two current document locations downloaded of networks connection are satisfied by download condition, this download condition is a kind of possible
Being achieved in that, the 3rd document location is positioned at first network and connects the current document location downloaded and described
Before second network connects the current document location downloaded.
Alternatively possible is achieved in that the 3rd document location is connected the file of current download with first network
The file size difference that position and described second network connect between the current document location downloaded is all higher than number
According to buffer area length.
In the present embodiment, if first network connects current the first document location downloaded, with the second media
When the second document location asking the media data downloaded in data download request meets download condition, i.e. can
Set up and be connected with the second network of described network video server;Described second network is utilized to connect from described
Second document location downloads of media data of media file, utilize simultaneously first network connect can continue into
The download of row media data.If the 3rd media data downloads the 3rd document location in request, with first
Network connects the current document location downloaded and the second network connects the current document location downloaded and is satisfied by
During download condition, then can disconnect the first network relatively early set up and connect, and re-establish the 3rd network even
Tap into row media data to download.By keeping two networks to connect, i.e. can reduce the wasting of resources, carry again
High data-handling efficiency.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible
Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality
The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly
Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words
Dividing and can embody with the form of software product, this computer software product can be stored in computer can
Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one
Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented
The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it
Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area
Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or
Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill
The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a network video data acquisition methods, it is characterised in that including:
Obtain the first media data and download request;
Set up and be connected with the first network of network video server, utilize described first network to connect from media
Described first media data of file is downloaded request respective file position and is started downloads of media data;
Obtain the second media data and download request;
Current the first document location downloaded is connected, and under described second media data at described first network
When load request asks the second document location of the media data downloaded to meet download condition, set up with described
Second network of network video server connects;
The second document location utilizing described second network to connect from described media file starts downloads of media number
According to.
Method the most according to claim 1, it is characterised in that described connect at described first network
Current the first document location downloaded, downloads, with described second media data, the media asking to download in request
When second document location of data meets download condition, set up the second net with described network video server
Network connects and includes:
If after described second document location is positioned at described first document location, the second document location and institute
When stating the file size difference between the first document location more than data buffer storage section length, set up and described net
Second network of network video server connects.
Method the most according to claim 1, it is characterised in that described connect at described first network
Current the first document location downloaded, downloads, with described second media data, the media asking to download in request
When second document location of data meets download condition, set up the second net with described network video server
Network connects and includes:
If before described second document location is positioned at described first document location, set up and described network video
Frequently the second network of server connects.
4. according to the method described in claim 1 or 2 or 3, it is characterised in that if described second literary composition
After part position is positioned at described first document location, and described second document location and described first file position
When file size difference between putting is less than data buffer storage section length, described method also includes:
From described media file, described second document location pair is downloaded etc. described first network to be utilized connection
The media data answered.
Method the most according to claim 1, it is characterised in that utilize described second network connect from
After media data in described second document location downloads of media file, described method also includes:
Obtain the 3rd media data and download request;
The 3rd document location of the media data asking download in request is downloaded at described 3rd media data,
The document location and described second network that are connected current download with described first network connect current download
When document location is satisfied by download condition, disconnects described first network and connect;
Set up be connected with the 3rd network of described network video server, utilize described 3rd network connection from
Described 3rd document location of described media file starts downloads of media data.
6. a network video data acquisition device, it is characterised in that including:
First request module, downloads request for obtaining the first media data;
First link block, is connected with the first network of network video server for setting up;
First download module, for utilizing described first network to connect described first media from media file
Document location corresponding to data download request starts downloads of media data;
Second request module, downloads request for obtaining the second media data;
Second link block, for connecting current the first document location downloaded at described first network, with
Described second media data is downloaded and is asked the second document location of the media data downloaded to meet download in request
During condition, set up and be connected with the second network of described network video server;
Second download module, for utilizing described second network to connect the second file from described media file
Position starts downloads of media data.
Device the most according to claim 6, it is characterised in that described second link block is specifically used
In:
If after described second document location is positioned at described first document location, the second document location and institute
When stating the file size difference between the first document location more than data buffer storage section length, set up and described net
Second network of network video server connects.
Device the most according to claim 6, it is characterised in that described second link block is specifically used
In:
If before described second document location is positioned at described first document location, set up and described network video
Frequently the second network of server connects.
9. according to the device described in claim 6 or 7 or 8, it is characterised in that also include:
Wait for downloads module, if after described second document location is positioned at described first document location,
And the file size difference between described second document location and described first document location is less than data buffer storage
During section length, wait described first network to be utilized to connect from described media file, download described second file
The media data that position is corresponding.
Device the most according to claim 6, it is characterised in that also include:
3rd request module, downloads request for obtaining the 3rd media data;
Connect and disconnect module, for downloading, at described 3rd media data, the media number asking to download in request
According to the 3rd document location, be connected the document location and described second of current download with described first network
When the current document location downloaded of network connection is satisfied by download condition, disconnects described first network and connect;
3rd link block, is connected with the 3rd network of described network video server for setting up;
3rd download module, for utilizing described 3rd network to connect the 3rd file from described media file
Position starts media data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510917423.4A CN105898386A (en) | 2015-12-10 | 2015-12-10 | Network video data obtaining method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510917423.4A CN105898386A (en) | 2015-12-10 | 2015-12-10 | Network video data obtaining method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105898386A true CN105898386A (en) | 2016-08-24 |
Family
ID=57002407
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510917423.4A Pending CN105898386A (en) | 2015-12-10 | 2015-12-10 | Network video data obtaining method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105898386A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1788787A1 (en) * | 2005-11-22 | 2007-05-23 | Samsung Electronics Co., Ltd. | Compatible progressive download method and system |
CN103458282A (en) * | 2012-06-05 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Video live broadcast method and live broadcast device |
CN104105004A (en) * | 2014-07-23 | 2014-10-15 | 上海天脉聚源文化传媒有限公司 | Method and device for processing live broadcast stream |
CN104581404A (en) * | 2013-10-21 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Method, device and system for processing multimedia data |
-
2015
- 2015-12-10 CN CN201510917423.4A patent/CN105898386A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1788787A1 (en) * | 2005-11-22 | 2007-05-23 | Samsung Electronics Co., Ltd. | Compatible progressive download method and system |
CN103458282A (en) * | 2012-06-05 | 2013-12-18 | 腾讯科技(深圳)有限公司 | Video live broadcast method and live broadcast device |
CN104581404A (en) * | 2013-10-21 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Method, device and system for processing multimedia data |
CN104105004A (en) * | 2014-07-23 | 2014-10-15 | 上海天脉聚源文化传媒有限公司 | Method and device for processing live broadcast stream |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105025351B (en) | The method and device of DST PLAYER buffering | |
WO2017148442A1 (en) | Audio and video processing method and apparatus, and computer storage medium | |
CN105898414A (en) | Video reviewing method and system | |
EP2151970A1 (en) | Processing and supplying video data | |
CN104902145B (en) | A kind of player method and device of live stream video | |
CN105872755A (en) | Video playing method and device | |
CN105898506A (en) | Method and system for multi-screen playing of media files | |
CN103491427A (en) | Method and device for processing video | |
CN104185037A (en) | Method, device and system for transmitting and playing video | |
CN103096131B (en) | A kind of live method for stream processing and device | |
CN103516856B (en) | Information merges method and apparatus | |
CN107071549A (en) | Many player fast switch over method, device and storage medium under single decoder | |
CN105898551A (en) | Network video playing method and device | |
CN108632667B (en) | A kind of coding/decoding method and terminal of multimedia file | |
CN105898392A (en) | Online live video player and method | |
CN102333280B (en) | A kind of method, system and the Service Process Server of business cipher key renewal | |
CN105872827A (en) | Live broadcast method and device of application interface in mobile terminal | |
CN106375319A (en) | Audio and video transcoding scheduling method, apparatus, device and system | |
CN106303754A (en) | A kind of audio data play method and device | |
CN105392028B (en) | A kind of transmission method and device of data | |
CN103916823B (en) | The creation method and device of mobile phone meeting | |
CN109660852A (en) | Video previewing method, storage medium, equipment and system before recorded video publication | |
CN104506920A (en) | Method and device for playing omnimedia data information | |
CN104333765B (en) | A kind of processing method and processing unit of net cast stream | |
CN105898386A (en) | Network video data obtaining method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160824 |
|
WD01 | Invention patent application deemed withdrawn after publication |