CN102143121A - Video downloading method and device - Google Patents
Video downloading method and device Download PDFInfo
- Publication number
- CN102143121A CN102143121A CN201010103797XA CN201010103797A CN102143121A CN 102143121 A CN102143121 A CN 102143121A CN 201010103797X A CN201010103797X A CN 201010103797XA CN 201010103797 A CN201010103797 A CN 201010103797A CN 102143121 A CN102143121 A CN 102143121A
- Authority
- CN
- China
- Prior art keywords
- video
- server
- segments
- brother
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000011218 segmentation Effects 0.000 claims description 11
- 238000005192 partition Methods 0.000 claims 2
- 238000005516 engineering process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 239000012634 fragment Substances 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a video downloading method and a video downloading device. The method comprises the following steps of: acquiring at least two brother video segments; combining the header information of the at least two brother video segments to obtain a complete video file; and storing the complete video file to a user terminal. By the method and the device, the downloading of a plurality of brother videos can be realized, thereby improving the Internet experiences of a user.
Description
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method and an apparatus for downloading a video.
Background
When a user views a web video using a browser, the user often chooses to download and save favorite videos, and the download and save may not be complete because some websites may, for bandwidth and performance saving reasons, have a very long video file composed of a plurality of sibling video segments (a sibling video segment means that each sibling video segment is a subfile of a large video file and all sibling video segments constitute a complete video). for example, each episode of a series is a sibling video segment and each video segment of a video file is a sibling video segment), this results in the user downloading only the currently playing video segment, a typical example of which is that the user can only download the current episode when viewing the series, and if the user wants to download other episodes of the series, they must download separately to different web page diversity, time and labor are wasted, and the user experience is poor.
Disclosure of Invention
The invention provides a video downloading method and device, which can realize the concentrated downloading of a plurality of brother video segments at one time.
Therefore, the embodiment of the invention adopts the following technical scheme:
a method of video downloading, comprising: acquiring at least two brother video segments; merging the header information of the at least two brother video segments to obtain a complete video file; and saving the complete video file to a user terminal.
The video segments of the brothers are video segments divided by a large video file, and one of the at least two brothers is a video segment played by a video webpage.
The obtaining of the at least two sibling video segments comprises: searching a server preset with a large amount of video information to obtain the at least two brother video segments; or, respectively intercepting each brother video segment returned to the player by the server in the process that the player of the webpage requests the server to download each brother video segment; or, preferentially searching a server preset with a large amount of video information, if the server is searched, obtaining the at least two brother video segments from the server, and if the server is not searched, respectively intercepting each brother video segment returned to the player by the server when the player of the webpage requests the server to download each brother video segment.
Or, the respective sibling video segments are episodes of a series, and one of the at least two sibling video segments is a video segment played by a video web page.
The obtaining of the at least two sibling video segments comprises: and searching a server preset with a large amount of video information to obtain the at least two sibling video segments.
Wherein, the server for searching the preset large amount of video information comprises: and searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword.
Wherein the header information of the video segment includes metadata information, the metadata information including total playing time and key frame information; the merging the header information of the at least two sibling video segments comprises: accumulating the total time of the video segments, and adding the key frame information of the nth video segment at the end of the key frame information of the (n-1) th video segment.
An apparatus for video downloading, comprising: the video segmentation acquisition unit is used for acquiring at least two brother video segments by a user; the video segmentation and combination unit is used for combining the header information of at least two video segments acquired by the video segmentation acquisition unit to obtain a complete video file; and the downloading unit is used for storing the complete video file obtained by the video segmentation and combination unit to the user terminal.
Each brother video segment acquired by the video segment acquisition unit is each video segment divided by one large video file, and one of the at least two brother video segments is a video segment played by a video webpage.
The video segment acquisition unit includes: the query subunit is used for searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword; a receiving subunit configured to obtain the at least sibling video segment from a server.
The video segment acquisition unit includes: and the request packet intercepting subunit is used for intercepting a video resource request response packet returned to the player by the server in the process that the player requests the server to download the brother video segments, so as to acquire the brother video segments.
A method of video downloading, comprising: acquiring at least two brother video segments; storing the at least two sibling video segments to a user terminal; and merging the header information of the at least two brother video segments to obtain a complete video file.
Each brother video segment is a video segment divided by one large video file, and one of the at least two brother video segments is a video segment played by a video webpage.
The obtaining of the at least two sibling video segments comprises: searching a server preset with a large amount of video information to obtain the at least two brother video segments; or, respectively intercepting each brother video segment returned to the player by the server in the process that the player of the webpage requests the server to download each brother video segment; or, preferentially searching a server preset with a large amount of video information, if the server is searched, obtaining the at least two brother video segments from the server, and if the server is not searched, respectively intercepting each brother video segment returned to the player by the server when the player of the webpage requests the server to download each brother video segment.
Alternatively, each sibling video segment is an episode of a series, and one of the at least two sibling video segments is a video segment played by the video web page.
Wherein the obtaining at least two sibling video segments comprises: and searching a server preset with a large amount of video information to obtain the at least two sibling video segments.
Wherein, the server for searching the preset large amount of video information comprises: and searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword.
Wherein the header information of the video segment includes metadata information, the metadata information including total playing time and key frame information; the merging the header information of the at least two sibling video segments comprises: accumulating the total time of the video segments, and adding the key frame information of the nth video segment at the end of the key frame information of the (n-1) th video segment.
An apparatus for video downloading, comprising: the video segmentation acquisition unit is used for acquiring at least two brother video segments by a user; a downloading unit, configured to store the at least two sibling video segments obtained by the video segment obtaining unit to a user terminal; and the video segment merging unit is used for merging the header information of at least two brother video segments stored in the user terminal by the downloading unit to obtain a complete video file.
The video segment acquisition unit acquires at least two sibling video segments, wherein each sibling video segment acquired by the video segment acquisition unit is each video segment divided by one large video file, and one of the at least two sibling video segments is a video segment played by a video webpage.
Wherein the video segment acquisition unit includes: the query subunit is used for searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword; a receiving subunit configured to obtain the at least sibling video segment from a server.
Wherein the video segment acquisition unit includes: and the request packet intercepting subunit is used for intercepting a video resource request response packet returned to the player by the server in the process that the player requests the server to download the brother video segments, so as to acquire the brother video segments.
A method of video downloading, comprising: obtaining brother video segments in a video webpage and at least one brother video segment which is not contained in the video webpage; at least two sibling video segments are saved to the user terminal.
Wherein the sibling video segment is an episode of a series.
The obtaining of the sibling video segments in the video webpage and the at least one sibling video segment not included in the video webpage comprises: and searching a server preset with a large amount of video information, and obtaining brother video segments in the video webpage and at least one brother video segment not contained in the video webpage.
Wherein, the server for searching the preset large amount of video information comprises: and searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword.
An apparatus for video downloading, comprising: the video segment acquisition unit is used for acquiring brother video segments in a video webpage and at least one brother video segment which is not contained in the video webpage; and the downloading unit is used for storing the at least two sibling video segments acquired by the video segment acquisition unit to the user terminal.
Wherein the video segment acquisition unit includes: the query subunit is used for searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword; the video processing device comprises a receiving subunit, a processing unit and a display unit, wherein the receiving subunit is used for obtaining brother video segments in a video webpage and at least one brother video segment which is not contained in the video webpage from a server.
The video downloading method and the video downloading device provided by the invention can acquire a plurality of brother video segments, and realize the merging and downloading of the plurality of brother video segments by combining the video merging technology, thereby solving the problems that the prior art can only download the video contained in the current page and the downloaded video segments are stored dispersedly.
Further, if especially the situation that the server is adopted to store the series or video segment information, the speed of downloading the whole video file can be accelerated, the flv videos of the segments of one video playing page can be merged and downloaded, one video file containing a plurality of segments can be downloaded at the same time, and the videos of one series page can be downloaded at the same time in a complete set. By adopting a mode of intercepting resource response packets of the player, the scattered brother videos on the webpage can be segmented and combined into a complete video file.
In addition, in another scheme, after downloading each brother video segment, the video segments downloaded to the local can be merged according to the merging requirement of the user, and the requirement that the user merges a plurality of brother videos can be met.
In a word, the downloading of a plurality of brother video segments can be realized through the method and the device, so that the user online experience is improved.
Drawings
FIG. 1 is a flowchart illustrating a method for downloading video according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a video webpage according to an embodiment of the present invention;
FIG. 3 is a flowchart of a video downloading method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a video downloading method according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a video downloading apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic view of an apparatus for downloading video according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a video downloading apparatus according to another embodiment of the present invention.
Detailed Description
In the present invention, a video segment may be broadly understood and may be broadly referred to as various video files, and typical examples of the video segment include a series episode and video slices, wherein a video slice is each sub-video file divided from one large video file.
Referring to fig. 1, a flow chart of a video downloading method of the present invention includes:
s101: acquiring at least two brother video segments;
for example, at least two sibling video segments means that one of the sibling video segments is the playing video of the video webpage and the rest are the sibling video segments of the playing video.
S102: merging the header information of the at least two video segments to obtain a complete video file;
s103: and saving the complete video file to a user terminal. For example, to a local computer, etc. where the user is located.
Generally, when a video webpage is loaded, a request packet for downloading a Resource needs to be sent to a server, where the request packet may include Uniform Resource Locator information of the video webpage, and in practical applications, the Uniform Resource Locator information may be a Uniform Resource Identifier (URI), and the URI may specifically be a Uniform Resource Locator (URL) or a Uniform Resource Name (URL), and for convenience of description, in this embodiment of the present invention, the URL is used as an example for introduction.
In the present invention, the video webpage means a webpage in which one of the sibling video segments can be played and executed, but is not limited to a webpage currently browsed by the user, and may be a playing page of a certain video on a video homepage of a sohu website, for example. Please refer to fig. 2, which is a schematic view of a video webpage, where a webpage a in fig. 2 is a video website page, videos 1, 2, 3, and the like are listed, and after a user clicks on video 1, a webpage B of video 1 is popped up, and the webpage B is a video webpage of the present invention, that is, a webpage capable of playing a brother video segment and being clicked for operation, but it is not limited whether the user browses currently, for example, after the user opens webpage B, the user browses other news webpages.
The above-mentioned S103 can be realized by adopting a mature downloading technology, and the present invention will not be described in detail, and the implementation processes of S101 and S102 will be described with emphasis.
As mentioned above, there are at least two types of implementations of the present invention for obtaining at least two sibling video segments, which are described below:
implementation by inquiring background server preset with a large amount of video information
And searching a server preset with a large amount of video information by taking the URL of the video webpage as a keyword to obtain all video segments related to the video webpage.
For example, after the server receives the URL of the video web page, if the video web page is determined to be a series page and the video web page can know which series page is, then the server searches a large amount of preset video information and returns video URLs of episodes of the series that can be found, and further, specific video segments can be obtained according to the video URLs, at this time, the server returns all found series episodes to the client, and preferably, links of the series episodes can also be returned together; and if the video webpage contains the video fragments according to the URL, returning all relevant video segments (one or more) of the video fragments by inquiring a large amount of preset video information.
Among them, for a large amount of video information preset by the server, a typical example is: for a series, the video information stored by the server includes at least a series episode and may further include a title of the series, a lead actor, a director, a series, and a link to the series episode; for the video segments, the video information stored by the server at least comprises part or all of the video segments, and can also comprise the names of the videos, a director, a screenplay and links of the video segments; in addition to the above information, the server may also store recommended video information related to a series or video clips.
Second, it is realized by intercepting the resource response packet of the player
In some cases, the browser itself cannot play the video, and the request packet for downloading the video is sent by the player embedded in the web page, that is, the browser first downloads the player to the server according to the URL of the player, and then the player downloads the video to the corresponding server according to the URL of the video to be loaded. Therefore, the video can be intercepted to the client in the process of downloading the video from the player to the server. Specifically, the monitoring player at the client sends a request packet requesting for downloading the video to the server, and when the server returns a response packet requesting for downloading the video to the player, the video data stream is intercepted from the response packet. For each sibling video segment, it is respectively captured when the player requests to download each sibling video segment.
After the plurality of brother video segments are obtained, combining the video merging technology to realize merging of the plurality of video segments. Generally, video segments are mostly in flv (flash video) format, and the file header of a video file in flv format has header information, i.e. metadata information. The metadata information includes important information of the current flv file, such as the total playing time of the flv file, and key frame information, and may also include the video size. The key frame information includes the position information of the key frame and the time information of the key frame. When merging, merging a plurality of flv segments into one flv file can be realized by merging metadata information of the flv file, and key operations comprise: and accumulating the total time of the flv segments, and adding the key frame information of the nth flv segment at the end of the key frame information of the (n-1) th flv segment.
It should be noted that the method for acquiring sibling video segments according to the present invention may use the aforementioned one (query server) or two (intercepting resource response packet) alone or in combination, and the following example of fig. 3 is a scheme combining the two.
Referring to fig. 3, a flowchart of a preferred embodiment of video downloading is shown, in this embodiment, it is preferentially queried in the server whether sibling video segments of a video webpage playing video are stored, and if so, all sibling video segments preset by the server are returned; if not, acquiring the video segment played by the video webpage in a mode of intercepting the player response packet.
For the typical situation that the user watches the television series, the server query mode can greatly meet the user requirements.
S301: when a user browses a webpage by using a browser, a server is inquired by using a URL (uniform resource locator) of a video webpage;
s302: judging a query result, and executing S303 if the video webpage is queried to be a series webpage through the server; if the video webpage is inquired to be the webpage containing the video fragments, S304 is executed; if the result is not found in the server, S305 is performed;
s303: returning the video segment(s) of the series, preferably also the links of the video segments;
whether a page is a series page or not may not be obtained from technical means due to the independence of the pages, but whether a page is a series page or not may be queried through a database provided by the server, for example, video information of ten video websites may be maintained at the server, wherein the provided series information is sufficient to complete the query service. By means of the query, it is known whether a page is a series page and all page links of the current series and video segment(s) contained in the corresponding page.
S304: returning all sibling video segments (one or more) of the video slice;
a plurality of sibling video segments of the video segments may be preset in the server, that is, the remaining video segments, for example, because the file is too large, one video file is divided into 5 video segments, and the 5 video segments are stored in the server, and if the video of the video webpage is any one of the video segments, all the video segments may be obtained by querying the server.
S305: acquiring all brother video segments played by a player of a video webpage by using a resource response packet of the intercepted player;
after executing S303, S304, or S305, executing S306: merging the obtained brother video segments;
after executing S303, a merge function of several episode dramas may be provided through S306, that is, a video file of a multi-episode drama is merged into one large episode file, and a large episode flv file is merged by merging the metadata information of the individual episode flv files in a manner similar to the flv video merging described above.
S307: and storing the integrated whole video file to the local of the user.
In addition, the present invention further provides a video downloading method, referring to fig. 4, including:
s401: acquiring at least two brother video segments;
s402: storing the at least two sibling video segments to a user terminal;
s403: and merging the header information of the at least two brother video segments to obtain a complete video file.
Reference is made to the foregoing for related implementations, which are not described herein in detail.
Therefore, the video downloading method is mainly different from the method in the prior art in that the acquired video segments are stored in the user terminal and then are combined, so that the video segments which are downloaded to the local area respectively or simultaneously can be combined into a large video file according to the requirements of the user.
Wherein, the step S402 of saving the at least two sibling video segments to the user terminal may further include two cases: one is to store the respective sibling video segments to the user terminal using a common download technique, and the other is to store the respective sibling video segments to the user terminal using multithreading or other download acceleration techniques, thereby accelerating the download process.
S403 may be omitted and may be executed only when the user needs to merge the video segments, for example, after all pages of the series are acquired, the user may be prompted whether to download the whole series or several series, and if the user selects to download the series of multiple series, the user may be provided with the series of multiple series for downloading. The important point is that the downloading experience of the user is improved, and various entries can be provided for prompting the user to use the function, such as a floating toolbar, a menu bar, a toolbar and a status bar, and all the entries can be provided for the user to download. Preferably, one of the at least two video segments obtained in step S401 is not included in the video webpage, at this time, the respective sibling video segments are respective episodes of a series, and another one of the at least two obtained video segments is the video webpage playing video. By the scheme, the method and the device, the series episodes not contained in the video webpage can be downloaded to the local. In this case, when the video segment is saved, the sibling video segment on the video web page and the sibling video segment not included in the video web page may be saved, or only the sibling video segment not included in the video web page may be saved.
Video web page as one of ordinary skill in the art can appreciate, the process of implementing the method of the above embodiment can be implemented by hardware associated with program instructions, and the program can be stored in a readable storage medium, and when executed, the program performs the corresponding steps of the above method. The storage medium may be as follows: ROM/RAM, magnetic disk, optical disk, etc.
Corresponding to the method, the invention also provides a video downloading device. Referring to fig. 5, the apparatus includes:
the video segment acquiring unit 501 acquires at least two brother video segments of a video webpage;
a video segment merging unit 502, configured to merge header information of at least two video segments acquired by the video segment acquiring unit 501 to obtain a complete video file;
a downloading unit 503, configured to save the complete video file obtained by the video segmentation and merging unit 502 to the user terminal.
Each brother video segment is a video segment divided by one large video file, and one brother video segment is a video segment played by a video webpage.
Further, the video segment acquisition unit 501 includes:
the query subunit 5011 is configured to search a server with a large amount of preset video information by using url of a video webpage as a keyword; the receiving subunit 5012 is configured to obtain the at least two sibling video segments from the server.
Among them, for a large amount of video information preset by the server, a typical example is: for a series, the video information stored by the server includes at least a series episode and may further include a title of the series, a lead actor, a director, a series, and a link to the series episode; for a video segment, the video information stored by the server at least comprises the sibling video segments of the video segment, and can also comprise the name of the video, the director, the screenplay and the links of the sibling video segments of the video segment; in addition to the above information, the server may also store recommended video information related to a series or video clips.
Alternatively, the video segment acquisition unit 501 includes:
the request packet intercepting subunit 5013 is configured to intercept a video resource request response packet returned by the server to the player to obtain each sibling video segment in the process that the player requests the server to download each sibling video segment.
In one embodiment, the above two methods may be combined, for example, the querying sub-unit 5011 and the receiving sub-unit 5012 may query the server, and if not, the requesting packet may be intercepted by the sub-unit 5013. The specific implementation process of the two modes can be seen in the method embodiment. Preferably, for the video segments, the video segments can be obtained by server query or by intercepting the resource response packets, and for the series, the video segments can be obtained by server query.
The header information of the video segments refers to metadata information, which includes flv total playing time, video size, key frame position information, and time information, and the specific operation of the video segment merging unit 502 merging the header information of a plurality of video segments is as follows: accumulating the total time of the video segments, and adding the key frame information of the nth video segment at the end of the (n-1) th video segment.
In addition, the present invention also provides a video downloading apparatus, referring to fig. 6, the apparatus including:
a video segment obtaining unit 601, configured to obtain at least two sibling video segments;
a downloading unit 602, configured to store at least two sibling video segments to a user terminal;
the video segment merging unit 603 is configured to merge header information of at least two sibling video segments to obtain a complete video file.
The downloading unit 602 may store the plurality of video segments in the local computer where the user is located in two ways, one is to store each video segment in the local computer where the user is located by using a common downloading technique, and the other is to store the plurality of video segments in the local computer where the user is located by using a multithreading technique or other accelerated downloading techniques, so as to increase the downloading speed.
Further, the video segment acquisition unit 601 includes:
query subunit 6011, configured to search, using url of the video webpage as a keyword, a server in which a large amount of video information is preset; receiving subunit 6012, configured to obtain the at least two sibling video segments from the server.
Among them, for a large amount of video information preset by the server, a typical example is: for a series, the video information stored by the server includes at least a series episode and may further include a title of the series, a lead actor, a director, a series, and a link to the series episode; for a video segment, the video information stored by the server at least comprises the sibling video segments of the video segment, and can also comprise the name of the video, the director, the screenplay and the links of the sibling video segments of the video segment; in addition to the above information, the server may also store recommended video information related to a series or video clips.
Alternatively, the video segment acquisition unit 601 includes:
a request packet intercepting subunit 6013, configured to intercept, in a process that the player requests the server to download each sibling video segment, a video resource request response packet returned by the server to the player, to obtain each sibling video segment. In one embodiment, the above two methods may be combined, for example, the querying sub-unit 5011 and the receiving sub-unit 5012 may query the server, and if not, the requesting packet may be intercepted by the sub-unit 5013. The specific implementation process of the two modes can be seen in the method embodiment.
The header information of the video segments refers to metadata information, which includes flv total playing time, video size, key frame position information, and time information, and the specific operation of merging the header information of the video segments by the video segment merging unit 503 is as follows: accumulating the total time of the video segments, and adding the key frame information of the nth video segment at the end of the key frame information of the (n-1) th video segment.
In addition, the present invention also provides a video downloading apparatus, referring to fig. 7, the apparatus including:
a video segment obtaining unit 701, configured to obtain a sibling video segment in a video webpage and at least one sibling video segment that is not included in the video webpage;
a downloading unit 702, configured to store the at least two sibling video segments obtained by the video segment obtaining unit to the user terminal.
Wherein,
the video segment acquisition unit 701 includes: the query subunit 7011 is configured to search, using the uniform resource location information of the video webpage as a keyword, a server in which a large amount of video information is preset; receiving subunit 7012 is configured to obtain, from the server, the sibling video segments in the video webpage and at least one sibling video segment that is not included in the video webpage.
Among them, for a large amount of video information preset by the server, a typical example is: for a series, the video information stored by the server includes at least a series episode and may further include a title of the series, a lead actor, a director, a series, and a link to the series episode; for a video segment, the video information stored by the server at least comprises the sibling video segments of the video segment, and can also comprise the name of the video, the director, the screenplay and the links of the sibling video segments of the video segment; in addition to the above information, the server may also store recommended video information related to a series or video clips.
The video downloading method and the device can acquire a plurality of brother video segments by inquiring the server or utilizing the intercepted resource response packet, and then combine the video merging technology to realize the merging and downloading of the brother video segments, thereby solving the problem that the prior art can only download videos contained in the current page and/or the downloaded video segments are dispersed, particularly, the speed of downloading the whole video file can be accelerated by adopting the condition that the server stores series or video segment information, the speed of merging and downloading the flv videos of the segments of one video playing page can be accelerated, one video file containing a plurality of segments can be downloaded at the same time, the videos of one series page can be downloaded at the same time, and the dispersed brother video segments on the web page can be merged into a complete video file.
In addition, in another scheme, after downloading each brother video segment, the video segments downloaded to the local can be merged according to the merging requirement of the user, so that the requirement of merging a plurality of brother video segments by the user can be met. For example, the user can be prompted whether to merge after the segments of one playing video page are merged and downloaded or downloaded separately, or whether to merge after all the segments of one playing video page are downloaded separately. One typical application of this is to determine whether a page is a series video page, and prompt the user whether all series need to be downloaded and whether multiple series need to be merged into one file, or after all series have been downloaded, let the user select whether to merge and how to merge, etc. Preferably, downloading the series dramas in a multithreading manner can be accelerated, for example, flv videos of other dramas are downloaded in advance through multithreading or other downloading acceleration technologies when a first episode is watched, or a certain episode can be watched while the episode is downloaded, and a user can be prompted to use other playing tools to watch the episodes after the episode is downloaded, so that the user does not depend on watching of a page, because the flv files need to be buffered when the page is watched, and the flv files downloaded to the local can enable the episodes to be played more smoothly.
In a word, the downloading of a plurality of brother video segments can be realized through the method and the device, so that the user online experience is improved.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (28)
1. A method of video downloading, comprising:
acquiring at least two brother video segments;
merging the header information of the at least two brother video segments to obtain a complete video file;
and saving the complete video file to a user terminal.
2. The method of claim 1,
the brother video segments are video segments divided by a large video file, and one of the at least two brother video segments is a video segment played by a video webpage.
3. The method of claim 2, wherein obtaining at least two sibling video segments comprises:
searching a server preset with a large amount of video information to obtain the at least two brother video segments; or,
respectively intercepting all brother video segments returned to the player by the server in the process that the player of the webpage requests the server to download all brother video segments; or,
and preferentially searching a server preset with a large amount of video information, if the server is searched, obtaining the at least two brother video segments from the server, and if the server is not searched, respectively intercepting each brother video segment returned to the player by the server when the player of the webpage requests the server to download each brother video segment.
4. The method of claim 1,
the respective sibling video segments are episodes of a series, and one of the at least two sibling video segments is a video segment played by a video web page.
5. The method of claim 4, wherein obtaining at least two sibling video segments comprises:
and searching a server preset with a large amount of video information to obtain the at least two sibling video segments.
6. The method according to claim 3 or 5, wherein the searching for the server with the preset amount of video information comprises:
and searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword.
7. The method according to any one of claims 1 to 5, wherein the header information of the video segment includes metadata information, the metadata information including total playing time and key frame information; the merging the header information of the at least two sibling video segments comprises: accumulating the total time of the video segments, and adding the key frame information of the nth video segment at the end of the key frame information of the (n-1) th video segment.
8. An apparatus for video downloading, comprising:
the video segmentation acquisition unit is used for acquiring at least two brother video segments by a user;
the video segmentation and combination unit is used for combining the header information of at least two video segments acquired by the video segmentation acquisition unit to obtain a complete video file;
and the downloading unit is used for storing the complete video file obtained by the video segmentation and combination unit to the user terminal.
9. The apparatus according to claim 8, wherein each sibling video segment acquired by the video segment acquiring unit is a video segment divided from a large video file, and wherein one of the at least two sibling video segments is a video segment played by a video webpage.
10. The apparatus of claim 9, wherein the video segment obtaining unit comprises:
the query subunit is used for searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword;
a receiving subunit configured to obtain the at least sibling video segment from a server.
11. The apparatus of claim 9, wherein the video segment obtaining unit comprises:
and the request packet intercepting subunit is used for intercepting a video resource request response packet returned to the player by the server in the process that the player requests the server to download the brother video segments, so as to acquire the brother video segments.
12. A method of video downloading, comprising:
acquiring at least two brother video segments;
storing the at least two sibling video segments to a user terminal;
and merging the header information of the at least two brother video segments to obtain a complete video file.
13. The method of claim 12,
each sibling video segment is a video segment of a large video file partition, and one of the at least two sibling video segments is a video segment played by the video webpage.
14. The method of claim 13, wherein obtaining at least two sibling video segments comprises:
searching a server preset with a large amount of video information to obtain the at least two brother video segments; or,
respectively intercepting all brother video segments returned to the player by the server in the process that the player of the webpage requests the server to download all brother video segments; or,
and preferentially searching a server preset with a large amount of video information, if the server is searched, obtaining the at least two brother video segments from the server, and if the server is not searched, respectively intercepting each brother video segment returned to the player by the server when the player of the webpage requests the server to download each brother video segment.
15. The method of claim 11,
each sibling video segment is an episode of a series, and one of the at least two sibling video segments is a video segment played by the video web page.
16. The method of claim 15, wherein obtaining at least two sibling video segments comprises:
and searching a server preset with a large amount of video information to obtain the at least two sibling video segments.
17. The method according to claim 14 or 16, wherein the searching for the server with the preset amount of video information comprises:
and searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword.
18. The method according to any one of claims 11 to 16, wherein the header information of the video segment includes metadata information, the metadata information including total playing time and key frame information; the merging the header information of the at least two sibling video segments comprises: accumulating the total time of the video segments, and adding the key frame information of the nth video segment at the end of the key frame information of the (n-1) th video segment.
19. An apparatus for video downloading, comprising:
the video segmentation acquisition unit is used for acquiring at least two brother video segments by a user;
a downloading unit, configured to store the at least two sibling video segments obtained by the video segment obtaining unit to a user terminal;
and the video segment merging unit is used for merging the header information of at least two brother video segments stored in the user terminal by the downloading unit to obtain a complete video file.
20. The apparatus according to claim 19, wherein each sibling video segment obtained by the video segment obtaining unit is a video segment of a large video file partition, and wherein one of the at least two sibling video segments is a video segment played by a video webpage.
21. The apparatus of claim 20, wherein the video segment obtaining unit comprises:
the query subunit is used for searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword;
a receiving subunit configured to obtain the at least sibling video segment from a server.
22. The apparatus of claim 20, wherein the video segment obtaining unit comprises:
and the request packet intercepting subunit is used for intercepting a video resource request response packet returned to the player by the server in the process that the player requests the server to download the brother video segments, so as to acquire the brother video segments.
23. A method of video downloading, comprising:
obtaining brother video segments in a video webpage and at least one brother video segment which is not contained in the video webpage;
at least two sibling video segments are saved to the user terminal.
24. The method of claim 23, wherein the respective sibling video segments are respective episodes of a series.
25. The method of claim 24, wherein obtaining sibling video segments in the video web page and at least one sibling video segment not included in the video web page comprises:
and searching a server preset with a large amount of video information, and obtaining brother video segments in the video webpage and at least one brother video segment not contained in the video webpage.
26. The method of claim 25, wherein the searching for the server with the preset amount of video information comprises:
and searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword.
27. An apparatus for video downloading, comprising:
the video segment acquisition unit is used for acquiring brother video segments in a video webpage and at least one brother video segment which is not contained in the video webpage;
and the downloading unit is used for storing the at least two sibling video segments acquired by the video segment acquisition unit to the user terminal.
28. The apparatus of claim 27, wherein the video segment obtaining unit comprises:
the query subunit is used for searching a server preset with a large amount of video information by taking the uniform resource positioning information of the video webpage as a keyword;
the video processing device comprises a receiving subunit, a processing unit and a display unit, wherein the receiving subunit is used for obtaining brother video segments in a video webpage and at least one brother video segment which is not contained in the video webpage from a server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010103797.XA CN102143121B (en) | 2010-01-29 | 2010-01-29 | The method that video is downloaded and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010103797.XA CN102143121B (en) | 2010-01-29 | 2010-01-29 | The method that video is downloaded and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102143121A true CN102143121A (en) | 2011-08-03 |
CN102143121B CN102143121B (en) | 2016-04-06 |
Family
ID=44410349
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010103797.XA Active CN102143121B (en) | 2010-01-29 | 2010-01-29 | The method that video is downloaded and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102143121B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103517131A (en) * | 2012-08-14 | 2014-01-15 | Tcl集团股份有限公司 | Method for playing segmental videos in gapless mode in television set and television set |
CN103607638A (en) * | 2013-11-20 | 2014-02-26 | 深圳Tcl新技术有限公司 | Network media playing method, intelligent display terminal and intelligent display system |
CN104185036A (en) * | 2014-09-10 | 2014-12-03 | 北京奇艺世纪科技有限公司 | Video file source returning method and device |
CN104581207A (en) * | 2014-12-23 | 2015-04-29 | 乐视致新电子科技(天津)有限公司 | Online video playing method and system as well as play application proxy equipment |
CN104917731A (en) * | 2014-03-12 | 2015-09-16 | 深圳中兴网信科技有限公司 | Method and system for improving data display speed, server and browser |
CN105335242A (en) * | 2015-11-02 | 2016-02-17 | 传线网络科技(上海)有限公司 | Method and system for downloading video file at background in IOS system |
CN105471871A (en) * | 2015-11-26 | 2016-04-06 | 传线网络科技(上海)有限公司 | Method and apparatus for providing video clip set |
CN106060679A (en) * | 2016-06-27 | 2016-10-26 | 无锡天脉聚源传媒科技有限公司 | Video transmission method and device |
CN106658097A (en) * | 2016-12-30 | 2017-05-10 | 合网络技术(北京)有限公司 | Play request method and device |
CN108268327A (en) * | 2016-12-30 | 2018-07-10 | 亿度慧达教育科技(北京)有限公司 | The processing method of big data, apparatus and system in remote online |
CN109451000A (en) * | 2018-10-26 | 2019-03-08 | 西安科锐盛创新科技有限公司 | Video data management method and its equipment based on cloud storage |
WO2019227748A1 (en) * | 2018-05-29 | 2019-12-05 | 北京字节跳动网络技术有限公司 | Method and apparatus for playing non-streaming media file in webpage, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080109863A1 (en) * | 2006-11-08 | 2008-05-08 | Quanta Computer Inc. | Video apparatus and signal processing method thereof |
CN101179474A (en) * | 2007-12-21 | 2008-05-14 | 深圳市迅雷网络技术有限公司 | Download method, system and device |
CN101217638A (en) * | 2007-12-28 | 2008-07-09 | 深圳市迅雷网络技术有限公司 | A downloading method, system and device of video file fragmentation |
CN101594241A (en) * | 2009-06-26 | 2009-12-02 | 北京大学 | A kind of method for down loading of Internet video and system |
-
2010
- 2010-01-29 CN CN201010103797.XA patent/CN102143121B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080109863A1 (en) * | 2006-11-08 | 2008-05-08 | Quanta Computer Inc. | Video apparatus and signal processing method thereof |
CN101179474A (en) * | 2007-12-21 | 2008-05-14 | 深圳市迅雷网络技术有限公司 | Download method, system and device |
CN101217638A (en) * | 2007-12-28 | 2008-07-09 | 深圳市迅雷网络技术有限公司 | A downloading method, system and device of video file fragmentation |
CN101594241A (en) * | 2009-06-26 | 2009-12-02 | 北京大学 | A kind of method for down loading of Internet video and system |
Non-Patent Citations (1)
Title |
---|
孟秀芹等: "《FLV在线视频的下载方法》", 《信息技术教育》 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103517131A (en) * | 2012-08-14 | 2014-01-15 | Tcl集团股份有限公司 | Method for playing segmental videos in gapless mode in television set and television set |
CN103607638A (en) * | 2013-11-20 | 2014-02-26 | 深圳Tcl新技术有限公司 | Network media playing method, intelligent display terminal and intelligent display system |
CN104917731A (en) * | 2014-03-12 | 2015-09-16 | 深圳中兴网信科技有限公司 | Method and system for improving data display speed, server and browser |
CN104185036B (en) * | 2014-09-10 | 2018-08-07 | 北京奇艺世纪科技有限公司 | A kind of video file time source method and device |
CN104185036A (en) * | 2014-09-10 | 2014-12-03 | 北京奇艺世纪科技有限公司 | Video file source returning method and device |
CN104581207A (en) * | 2014-12-23 | 2015-04-29 | 乐视致新电子科技(天津)有限公司 | Online video playing method and system as well as play application proxy equipment |
CN105335242B (en) * | 2015-11-02 | 2019-03-26 | 传线网络科技(上海)有限公司 | The method and system of backstage to download video files in IOS system |
CN105335242A (en) * | 2015-11-02 | 2016-02-17 | 传线网络科技(上海)有限公司 | Method and system for downloading video file at background in IOS system |
CN105471871A (en) * | 2015-11-26 | 2016-04-06 | 传线网络科技(上海)有限公司 | Method and apparatus for providing video clip set |
CN105471871B (en) * | 2015-11-26 | 2020-07-14 | 阿里巴巴(中国)有限公司 | Method and apparatus for providing a set of video segments |
CN106060679A (en) * | 2016-06-27 | 2016-10-26 | 无锡天脉聚源传媒科技有限公司 | Video transmission method and device |
CN106658097A (en) * | 2016-12-30 | 2017-05-10 | 合网络技术(北京)有限公司 | Play request method and device |
CN108268327A (en) * | 2016-12-30 | 2018-07-10 | 亿度慧达教育科技(北京)有限公司 | The processing method of big data, apparatus and system in remote online |
CN106658097B (en) * | 2016-12-30 | 2019-09-17 | 合一网络技术(北京)有限公司 | Playing request method and device |
WO2019227748A1 (en) * | 2018-05-29 | 2019-12-05 | 北京字节跳动网络技术有限公司 | Method and apparatus for playing non-streaming media file in webpage, and storage medium |
JP2021510991A (en) * | 2018-05-29 | 2021-04-30 | 北京字節跳動網絡技術有限公司Beijing Bytedance Network Technology Co., Ltd. | Web page playback methods, devices and storage media for non-stream media files |
US11025991B2 (en) | 2018-05-29 | 2021-06-01 | Beijing Bytedance Network Technology Co., Ltd. | Webpage playing method and device and storage medium for non-streaming media file |
CN109451000A (en) * | 2018-10-26 | 2019-03-08 | 西安科锐盛创新科技有限公司 | Video data management method and its equipment based on cloud storage |
Also Published As
Publication number | Publication date |
---|---|
CN102143121B (en) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102143121B (en) | The method that video is downloaded and device | |
US8301596B2 (en) | Method and apparatus for providing supplemental video content for third party websites | |
US8244707B2 (en) | Method and apparatus for providing supplemental video content for third party websites | |
US10089402B1 (en) | Display of videos based on referrers | |
KR102313471B1 (en) | Methods, systems, and media for presenting supplemental information corresponding to on-demand media content | |
US9407974B2 (en) | Segmenting video based on timestamps in comments | |
US8566867B1 (en) | Pre-fetch ads while serving ads in live stream | |
US8819035B2 (en) | Providing search results based on keyword detection in media content | |
US8713005B2 (en) | Assisted hybrid mobile browser | |
JP2013520869A (en) | Enhanced electronic program guide | |
US9317471B2 (en) | Bookmarking prospective media content on computer network | |
KR100862354B1 (en) | Method for asynchronous multimedia retrieval | |
WO2017192184A1 (en) | Annotation of videos using aggregated user session data | |
CN104809120B (en) | Information processing method and device | |
US8914409B2 (en) | Method and apparatus for callback supplementation of media program metadata | |
JP2010146332A (en) | Information processing apparatus, system, method and program for providing information and recording medium | |
US20140136526A1 (en) | Discovery of live and on-demand content using metadata | |
US8935725B1 (en) | Visually browsing videos |
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 |