CN102790779B - A kind of live video resource downloading method and device - Google Patents

A kind of live video resource downloading method and device Download PDF

Info

Publication number
CN102790779B
CN102790779B CN201110125302.8A CN201110125302A CN102790779B CN 102790779 B CN102790779 B CN 102790779B CN 201110125302 A CN201110125302 A CN 201110125302A CN 102790779 B CN102790779 B CN 102790779B
Authority
CN
China
Prior art keywords
video
frequency band
client
band data
transmission rate
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
CN201110125302.8A
Other languages
Chinese (zh)
Other versions
CN102790779A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110125302.8A priority Critical patent/CN102790779B/en
Publication of CN102790779A publication Critical patent/CN102790779A/en
Application granted granted Critical
Publication of CN102790779B publication Critical patent/CN102790779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of live video resource downloading method and device.The method comprises: the video-frequency band information of current this video file that can provide, according to the video file download request of client, is carried in video file list by server, and this client is issued in this video file list; Server receiver, video segment data download request, the identification information of client is carried in this request, server is according to this identification information, determine which client is this video-frequency band data download request derive from, according to sending to this client the transmission rate information that video-frequency band data adopt in the past, determine that this sends the video-frequency band data of which kind of code check to this client, send the video-frequency band data of this kind of code check to this client.Application the present invention can make full use of the network bandwidth and carry out transmission of video resource.

Description

A kind of live video resource downloading method and device
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of live video resource downloading method and device.
Background technology
At present, at internet arena, the demand of viewing live video resource downloading is more and more extensive, is introduced below to the method that it downloads live video resource.
Fig. 1 is that current client downloads the method flow diagram of live video resource from server.
As shown in Figure 1, the method comprises:
Step 101, user end to server request live video resource.
Step 102, server returns the playlist of live video resource to client.
The live video resource information of the live video resource information under different bandwidth environment, i.e. different code check is contained in this playlist.
This playlist is the file that a suffix is called .m3u8, and the live video resource information of often kind of wherein comprising code check is also a suffix is the listed files of .m3u8, is the video-frequency band information that several suffix are called .ts inside this listed files.
Step 103, the network bandwidth environments of client residing for self, selects live video resource to carry out downloading and playing from described playlist.
In this step, first client judges network environment residing for self, from described playlist, select the listed files that network bandwidth environments residing for himself is corresponding, send download request to server, for downloading video data corresponding to each video-frequency band information in this listed files from server.
When the network bandwidth environments change of client terminal to discover residing for himself, client can select File list from playlist again, namely the listed files that the network bandwidth environments after change is corresponding is selected, then again download request is sent to server, for downloading video data corresponding to each video-frequency band information in listed files corresponding to the network bandwidth environments after this change.
From such scheme, there is following defect in existing live video resource downloading method:
Network bandwidth environments judgement is carried out by client, video data corresponding to corresponding document list is downloaded to server request according to judged result, due to client network bandwidth environments judged result at a time, the network bandwidth environments of client entirety can not be represented, therefore the network bandwidth environments judged result according to its a certain moment carries out video resource download, also cannot make full use of network bandwidth transmission video resource.And client judges that the accuracy of network bandwidth environments is also poor, is also unfavorable for making full use of network bandwidth transmission video resource.
In addition, when network bandwidth environments changes, client sends download request to server again, the video data of the network bandwidth environments respective file list after change is downloaded in request, because client has downloaded a part of video data from server, therefore, client will cause to server transmission download request again, the video-frequency band data that client repeats from server request, and then cause the waste of transfer resource.
Such as, client is from the video data of server download file list 1 correspondence, successfully downloaded the video data of video-frequency band 1 correspondence listed files 1 from server in client after, the network bandwidth environments of client terminal to discover residing for himself sends change, need the video data from server request download file list 2 correspondence, therefore to the video data of server request download file list 2 correspondence, the video data of listed files 2 correspondence is issued client by server, the video data of listed files 2 correspondence comprises the video data of described video-frequency band 1 correspondence, visible, client is the video data of video-frequency band 1 correspondence from server repeated downloads, cause the waste of transfer resource.
Summary of the invention
In view of this, the invention provides a kind of live video resource downloading method and device, to make full use of the network bandwidth carrying out transmission of video resource.
Technical scheme of the present invention is specifically achieved in that
A kind of live video resource downloading method, the method comprises:
The video-frequency band information of current this video file that can provide, according to the video file download request of client, is carried in video file list by server, and this client is issued in this video file list;
Server receiver, video segment data download request, the identification information of client is carried in this video-frequency band data download request, server is according to this identification information, determine which client is this video-frequency band data download request derive from, transmission rate information according to adopting to this client transmission video-frequency band data in the past calculates average transmission rate, determine that this sends the video-frequency band data of which kind of code check to this client, wherein, the code check of these video-frequency band data sent to this client is not more than described average transmission rate;
The video-frequency band data of this kind of code check are sent to this client.
A kind of video resource download apparatus, this device comprises receiver module, determination module and sending module;
Described receiver module, for receiving video file download request and the video-frequency band data download request of client, carries the identification information of client in described video-frequency band data download request;
Described determination module, for according to the client identification information carried in video-frequency band data download request, determine which client is this video-frequency band data download request derive from, transmission rate information according to adopting to this client transmission video-frequency band data in the past calculates average transmission rate, determine that this sends the video-frequency band data of which kind of code check to this client, wherein, the code check of these video-frequency band data sent to this client is not more than described average transmission rate;
Described sending module, for sending video file list according to video file download request to client, the video-frequency band information of current this video file that can provide of server is provided in this video file list, according to the code check that described determination module is determined, send the video-frequency band data of this kind of code check to described client.
As seen from the above technical solution, after server receiver, video section download request, determine which client it derives from according to the identification information carried in this download request, then the code check of these video-frequency band data sent to this client is determined according to the speed adopted to this client transmission video-frequency band data in the past, and the video-frequency band data of this kind of code check are sent to this server, owing to being the transmission rate being determined this by server end according to transmission rate in the past, compared with client network bandwidth environments judged result at a time, reduce client network environment Short Term Anomalous to fluctuate the impact caused, determine that the accuracy of video-frequency band data bit rate is higher, network bandwidth transmission video resource can be made full use of.
In addition, owing to being the speed being judged to send to client video-frequency band data by server end, and send video-frequency band data according to judged result, client self is not needed to judge network bandwidth environments, when network bandwidth environments changes, client again to server request video-frequency band data, therefore, it is possible to avoid same video-frequency band Data duplication to be handed down to client, can not can save transfer resource.
Accompanying drawing explanation
Fig. 1 is that current client downloads the method flow diagram of live video resource from server.
Fig. 2 is video resource method for down loading flow chart provided by the invention.
Fig. 3 is video resource download apparatus structure chart provided by the invention.
Embodiment
Fig. 2 is video resource method for down loading flow chart provided by the invention.
As shown in Figure 2, the method comprises:
Step 201, user end to server sends video file download request.
Step 202, the video-frequency band information of current this video file that can provide, according to the video file download request of client, is carried in video file list by server, and this client is issued in this video file list.
Step 203, client, according to the video-frequency band information in described video file list, downloads video-frequency band data corresponding to each video-frequency band information to server request successively.
In this step, client can according to the sequence number of video-frequency band in video file list, and corresponding video-frequency band data are downloaded in request successively.
After client sends video-frequency band data download request each time, enter step 204.
Step 204, server receiver, video segment data download request, carries the identification information of client in this request, server, according to this identification information, determines which client is this video-frequency band data download request derive from.
In this step, the identification information carried in video-frequency band data download request can be the unique digital signature of client, also can be the IP address of client.
Wherein, client can pass through page javascript technology, a unique digital signature uin on mark in the url of the video-frequency band data download request sent to server.Such as, the url of video-frequency band data download request can be: http://cc.qq.com/123_uin.m3u8, and wherein, uin is the unique digital signature of client.
By the source of unique digital signature identification video-frequency band data download request, source title accuracy is higher.
During source by IP Address Recognition video-frequency band data download request, do not need client in the URL of video-frequency band download request, mark unique digital signature, can simplify the operation of client, but the accuracy of its source title is also not as adopting the source title accuracy of unique digital signature.
Step 205, server, according in the past to the transmission rate information that this client transmission video-frequency band data adopt, determines that this sends the video-frequency band data of which kind of code check to this client.
In this step, server can calculate average transmission rate according to the transmission rate adopted to this client transmission video-frequency band data in predetermined amount of time, and the transmission rate that also can adopt to this client transmission video-frequency band data according to several times calculates average transmission rate; Server, according to the average transmission rate calculated, determines that this sends the video-frequency band data of which kind of code check to this client.Particularly, the code check of these video-frequency band data sent to this client is not more than described average transmission speed, such as, the video-frequency band data TS1 that code check is 128k/s is previously stored with at server side, and code check is the video-frequency band data TS2 of 256k/s, so when average transmission rate is less than 256k/s, send video-frequency band data TS1 to corresponding client, when average transmission rate is more than or equal to 256k/s, send video-frequency band data TS2 to corresponding client.
Average transmission rate wherein, it can be the arithmetic mean of each transmission rate, be about to each time in the past transmission rate be added after divided by number of times, also can be the mean value obtained after adding up according to weights, the transmission rate being about to each time is in the past multiplied by respective weighted value respectively, using the transmission rate of the result of each product addition gained as this.
Step 206, server sends the video-frequency band data of this kind of code check to this client.
In method shown in Fig. 2, server can for each video-frequency band, generate the video-frequency band data of various code check in advance, server is after determining that this to send the video-frequency band data of which kind of code check to client, directly from the video-frequency band data generated in advance, select the video-frequency band data of phase code rate, the video-frequency band data selected are issued client.Wherein, the video-frequency band data generated in advance are generally ts file data section.
Below for the process adopting client to watch programme televised live 123.m3u8 file, carry out exemplary illustration to the method for downloading video files of the present invention, given example is not limited to the present invention.
The process of client viewing programme televised live 123.m3u8 file is adopted to comprise:
Inside the video request url that user end to server sends, by page javascript technology, give the url of request mark a upper unique digital signature uin.The url such as asked is:
http://cc.qq.com/123_uin.m3u8
After server receives this request, record this digital signature, and be reduced to raw requests:
http://cc.qq.com/123.m3u8
Server is by some (supposing 3) video-frequency band of current broadcasting, and be assembled into listed files and return, form can be:
http://cc.qq.com/123_567_uin.ts
http://cc.qq.com/123_568_uin.ts
http://cc.qq.com/123_569_uin.ts
After client gets listed files, the download request of data segment can be sent successively to server, as:
http://cc.qq.com/123_567_uin.ts
After server receives the download request of data segment, record the digital signature of this request, and be reduced to raw requests:
http://cc.qq.com/123_567.ts
Now, server according to the digital signature of request, can be inquired about the file of this request source in front several times request and sends situation.The average speed of download of then originating according to this request selects the ts file data section that send which kind of code check to it.
According to above-mentioned video resource method for down loading provided by the invention, present invention also offers corresponding video resource download apparatus, specifically refer to Fig. 3.
Fig. 3 is video resource download apparatus structure chart provided by the invention.
As shown in Figure 3, this device comprises receiver module 301, determination module 302 and sending module 303.
Receiver module 301, for receiving video file download request and the video-frequency band data download request of client, carries the identification information of client in described video-frequency band data download request.
Determination module 302, for according to the client identification information carried in video-frequency band data download request, determine which client is this video-frequency band data download request derive from, according in the past to the transmission rate information that this client transmission video-frequency band data adopt, determine that this sends the video-frequency band data of which kind of code check to this client.
Sending module 303, for sending video file list according to video file download request to client, the video-frequency band information of current this video file that can provide of server is provided in this video file list, according to the code check that described determination module is determined, send the video-frequency band data of this code check to described client.
Wherein, described identification information comprises unique digital signature or the IP address of client.
Determination module 302, may be used for sending to this client the transmission rate that video-frequency band data adopt according in predetermined amount of time, calculate average transmission rate, or, according to the transmission rate that several times adopt to this client transmission video-frequency band data, calculate average transmission rate, the average transmission rate calculated is determined that this sends the video-frequency band data of which kind of code check to this client.
Fig. 3 shown device can also comprise generation module and memory module.
Described generation module, for for each video-frequency band, generates the video-frequency band data of various code rate.
Described memory module, for storing the video-frequency band data of the various code rate of each video-frequency band.
The video-frequency band data of reading, for reading the video-frequency band data corresponding to code check that determination module determines from described memory module, are issued client by sending module 303.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. a video resource method for down loading, is characterized in that, the method comprises:
The video-frequency band information of current this video file that can provide, according to the video file download request of client, is carried in video file list by server, and this client is issued in this video file list;
Server receiver, video segment data download request, the identification information of client is carried in this video-frequency band data download request, server is according to this identification information, determine which client is this video-frequency band data download request derive from, transmission rate information according to adopting to this client transmission video-frequency band data in the past calculates average transmission rate, determine that this sends the video-frequency band data of which kind of code check to this client, wherein, the code check of these video-frequency band data sent to this client is not more than described average transmission rate;
The video-frequency band data of this kind of code check are sent to this client.
2. method according to claim 1, is characterized in that, described identification information comprises: the unique digital signature of client.
3. method according to claim 1, is characterized in that, described identification information comprises: the IP address of client.
4. method according to claim 1, is characterized in that, calculates average transmission rate comprise according to the transmission rate information adopted to this client transmission video-frequency band data in the past:
Send to this client the transmission rate that video-frequency band data adopt according in predetermined amount of time, calculate described average transmission rate, or, send to this client the transmission rate that video-frequency band data adopt according to several times, calculate described average transmission rate.
5. method according to claim 1, is characterized in that, the method also comprises:
Server, for each video-frequency band, generates the video-frequency band data of various code rate in advance;
Server, after determining that this to send the video-frequency band data of which kind of code check to client, directly from the video-frequency band data generated in advance, reads the video-frequency band data of phase code rate, the video-frequency band data of reading is issued client.
6. method according to claim 1, is characterized in that, the method also comprises:
Client, according to the video-frequency band information in described video file list, downloads video-frequency band data corresponding to each video-frequency band information to server request successively.
7. a video resource download apparatus, is characterized in that, this device comprises receiver module, determination module and sending module;
Described receiver module, for receiving video file download request and the video-frequency band data download request of client, carries the identification information of client in described video-frequency band data download request;
Described determination module, for according to the client identification information carried in video-frequency band data download request, determine which client is this video-frequency band data download request derive from, transmission rate information according to adopting to this client transmission video-frequency band data in the past calculates average transmission rate, determine that this sends the video-frequency band data of which kind of code check to this client, wherein, the code check of these video-frequency band data sent to this client is not more than described average transmission rate;
Described sending module, for sending video file list according to video file download request to client, the video-frequency band information of current this video file that can provide of server is provided in this video file list, according to the code check that described determination module is determined, send the video-frequency band data of this code check to described client.
8. device according to claim 7, is characterized in that, described identification information comprises unique digital signature or the IP address of client.
9. device according to claim 7, is characterized in that,
Described determination module, for sending to this client the transmission rate that video-frequency band data adopt according in predetermined amount of time, calculate described average transmission rate, or, according to the transmission rate that several times adopt to this client transmission video-frequency band data, calculate described average transmission rate.
10. device according to claim 7, is characterized in that, this device also comprises generation module and memory module;
Described generation module, for for each video-frequency band, generates the video-frequency band data of various code rate;
Described memory module, for storing the video-frequency band data of the various code rate of each video-frequency band;
The video-frequency band data of reading, for reading the video-frequency band data corresponding to code check that determination module determines from described memory module, are issued client by described sending module.
CN201110125302.8A 2011-05-16 2011-05-16 A kind of live video resource downloading method and device Active CN102790779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110125302.8A CN102790779B (en) 2011-05-16 2011-05-16 A kind of live video resource downloading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110125302.8A CN102790779B (en) 2011-05-16 2011-05-16 A kind of live video resource downloading method and device

Publications (2)

Publication Number Publication Date
CN102790779A CN102790779A (en) 2012-11-21
CN102790779B true CN102790779B (en) 2016-04-13

Family

ID=47156079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110125302.8A Active CN102790779B (en) 2011-05-16 2011-05-16 A kind of live video resource downloading method and device

Country Status (1)

Country Link
CN (1) CN102790779B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9537917B2 (en) * 2012-11-20 2017-01-03 Google Technology Holdings LLC Method and apparatus for streaming media content to client devices
CN103108166B (en) * 2013-02-06 2015-11-25 杭州华三通信技术有限公司 Video frequency monitoring method and video monitoring center router
CN105430434A (en) * 2015-11-17 2016-03-23 北京奇虎科技有限公司 Method and device for downloading video
CA3024782A1 (en) * 2016-05-17 2017-11-23 Bitlume Inc. System and method for an interactive live streaming media platform to limited subscribers
CN106254548A (en) * 2016-09-29 2016-12-21 天脉聚源(北京)科技有限公司 A kind of method and device downloading stream medium data
CN107135416B (en) * 2017-03-27 2019-01-08 腾讯科技(深圳)有限公司 Method for downloading video and device
CN109428784B (en) * 2017-08-31 2021-10-15 腾讯科技(深圳)有限公司 Network detection method and device, computer storage medium and equipment
CN109729385A (en) * 2018-12-25 2019-05-07 广州市百果园信息技术有限公司 Method for downloading video, device, computer equipment, storage medium and terminal
CN111092929B (en) * 2019-11-08 2022-11-18 北京字节跳动网络技术有限公司 File issuing method and device and electronic equipment
CN112312162B (en) * 2020-10-16 2022-11-08 安擎(天津)计算机有限公司 Video server for transmitting video stream

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2056598A1 (en) * 2007-11-01 2009-05-06 Sling Media, Inc. Personal video recorder functionality for placeshifting systems
CN101588391A (en) * 2009-07-15 2009-11-25 中国联合网络通信集团有限公司 Method and apparatus for acquiring earliest playing time
CN101795264A (en) * 2009-12-30 2010-08-04 北京新岸线网络技术有限公司 Video data transmission method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2056598A1 (en) * 2007-11-01 2009-05-06 Sling Media, Inc. Personal video recorder functionality for placeshifting systems
CN101588391A (en) * 2009-07-15 2009-11-25 中国联合网络通信集团有限公司 Method and apparatus for acquiring earliest playing time
CN101795264A (en) * 2009-12-30 2010-08-04 北京新岸线网络技术有限公司 Video data transmission method and system

Also Published As

Publication number Publication date
CN102790779A (en) 2012-11-21

Similar Documents

Publication Publication Date Title
CN102790779B (en) A kind of live video resource downloading method and device
CN105052107B (en) Media content Adaptive Transmission is carried out using quality information
CN101146110B (en) A method for playing stream media
US9432431B2 (en) Manifest re-assembler for a streaming video channel
CN102238419B (en) Method and apparatus for playing live content
US8887215B2 (en) Targeted high-value content in HTTP streaming video on demand
US20220174355A1 (en) Determining a quality of experience metric based on uniform resource locator data
US20160134900A1 (en) Streaming media processing method, apparatus, and system
CN108810657B (en) Method and system for setting video cover
JP6514217B2 (en) Method of acquiring network information by a client terminal configured to receive multimedia content divided into segments
CN107040615B (en) Downloading method of media fragment, terminal and computer readable storage medium
CN110087141A (en) Method of transmitting video data, device, client and server
US11451879B2 (en) Controlling playout of advertisement content during video-on-demand video streaming on an end-user terminal
US20190124376A1 (en) Graphic Overlay Insertion
US10045053B1 (en) Fragment insertion for live media streams
WO2015131390A1 (en) Communication method, user device, content server and controller
CN111182331A (en) Media data slicing method, system and storage medium
CN110691280A (en) Video advertisement processing method, client, video server and readable storage medium
CN108366097B (en) Resource access control method and system
CN104936042A (en) Video clip downloading method and device
CN101448136B (en) Method for realizing video on-demand function and system thereof
WO2023219832A1 (en) Video streaming systems and methods
CN111417031B (en) File transmission method and device and electronic equipment
JP6378631B2 (en) Video distribution system and video distribution method
US10601888B2 (en) Start-over in adaptive streaming

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