CN105516828A - Method and device for downloading video - Google Patents

Method and device for downloading video Download PDF

Info

Publication number
CN105516828A
CN105516828A CN201510927385.0A CN201510927385A CN105516828A CN 105516828 A CN105516828 A CN 105516828A CN 201510927385 A CN201510927385 A CN 201510927385A CN 105516828 A CN105516828 A CN 105516828A
Authority
CN
China
Prior art keywords
video
duration
download
downloading
play lists
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
Application number
CN201510927385.0A
Other languages
Chinese (zh)
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.)
Chengdu Visionertech Co Ltd
Original Assignee
Chengdu Visionertech 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 Chengdu Visionertech Co Ltd filed Critical Chengdu Visionertech Co Ltd
Priority to CN201510927385.0A priority Critical patent/CN105516828A/en
Publication of CN105516828A publication Critical patent/CN105516828A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and a device for downloading a video. Through setting a downloading duration, determining a downloading reference moment t and a backtracking Tback duration, sending a video clip file to the server and downloading the video clip file, a video target can be quickly positioned. The invention also provides a downloading device for realizing the method. The device comprises a configuration module, a command generation module, a video playlist parsing module, a downloading module and a local video playlist generation module. According to the method, the videos before and after a period of time of the current moment for a user to see the key information are automatically downloaded, and the convenience and the integrity for downloading are guaranteed; the interactive mode of the method is simple and convenient; the method is applied to touch or mouse operating modes of a mobile phone end, a panel end, a PC (Personnel Computer) end and a webpage end, and the conventional complicated downloading method is not needed. The repetition interval can be automatically removed for the downloading operation at the repetition interval, the traffic resource is saved and the waste of the storage resource is reduced.

Description

A kind of method for downloading video and device thereof
Technical field
The invention belongs to Internet technical field, particularly a kind of method for downloading video and device thereof
Background technology
Conventional video downloads the time started and the end time that need to be confirmed download by user, and this just can download after just needing user to input these two conditions.This mode of operation wastes time and energy, and on the singlehanded application terminal that current people are accustomed to, realizes video-frequency band download function as the touch apparatus such as mobile phone, flat board is inconvenient to.
Simultaneously at monitoring safety-security area, often can occur that in the monitor video of a section very long important video-frequency band needs preserve, traditional loaded down with trivial details downloading mode has been difficult to the demand of protection and monitor field.
The video that user needs the video downloaded to play often, and be video (videos before tens seconds to a few minutes) not long ago, the download scenarios that traditional limit is broadcast below, can only download the video from the current broadcasting moment.The demand of the download short-term history video of user cannot be met.
In addition, current video download scenarios does not have the function of intelligence merging to the foradownloaded video with overlapping period, often causes video repeated downloads, the network bandwidth of repeated storage and the situation of waste of storage space downloaded.
Summary of the invention
The present invention discloses a kind of method for downloading video and device thereof according to the deficiencies in the prior art.The problem to be solved in the present invention is in conjunction with HLS video push scheme, provides an a kind of key to download method for downloading video and the device thereof of history video segment.
The present invention is achieved through the following technical solutions:
First the present invention provides a kind of method for downloading video, comprising:
Setting downloading duration duration, and backtracking duration Tback;
Determine to download reference moment t, when video playback, determining to download with reference to moment t by clicking download button, is also the current broadcasting moment;
Client is according to the downloading duration duration of setting, and with current time t for the reference moment, backtracking Tback duration, obtains downloading start time startTime, and backtracking Tback duration default value is 1/2 × duration;
Download start time startTime and downloading duration duration is sent download request as parameter to server, and server returns to the web download address pointing to video play lists;
Client is by this this video play lists of network address download parsing, and the video clip files in foradownloaded video playlist; Generate simultaneously and can be used for the local video play lists play.
When determining to download start time startTime by repeatedly clicking download button, repeatedly click download button and comprise the identical period, then in follow-up down operation, the identical period is rejected, will not download, difference be clicked the local video playlist downloading generation simultaneously and merge with the local video play lists comprising this period video stored.
Downloading duration duration selectes default value (as 30s, 1min, 5min or User Defined) setting by the downloading duration configuration item clicked in the configuration page of player.
Downloading with reference to moment t is moment when user unclamps progress bar pointed by intermediate time index line, the broadcasting moment that also namely user is current.
Download start time startTime and deduct backtracking time Tback by current time, and by inquiry local data base, weed out repetition interval time and obtain.
Present invention also offers a kind of video download apparatus, comprising:
Configuration module, for arranging the duration duration of foradownloaded video, and the backtracking duration Tback of foradownloaded video;
Directive generation module, according to clicking the download reference moment t determined, video downloading duration duration and backtracking duration Tback, generating video downloads start time initial value t-Tback and video downloading duration duration, read local data base, reject the local period stored, obtain download start time startTime and the downloading duration duration of actual needs foradownloaded video, and these two parameters are sent to server end;
Video play lists parsing module, according to the download address of the video play lists that server returns, downloads corresponding video play lists; Resolve this video play lists, obtain the web download address of each video segment and corresponding period; Call download module and download this video segment file;
Download module, according to the web download address of the video segment that video play lists parsing module parses, foradownloaded video section file, and name management and local storage administration are carried out to this video segment file;
Local video playlist generation module, when total duration of all video segments that user downloads meets the downloading duration duration of client setting, calls the video play lists of this CMOS macro cell this locality.
Have with the period of the local video downloaded the down operation overlapped for the period of downloading, the local video played file list that this download generates by local video playlist generation module and foradownloaded video playlist merge into a video play lists.
Helpfulness of the present invention:
For the download of safety monitoring video, often user just can determine whether download after seeing key message, and in time judging that this video should be downloaded, likely event does not also terminate completely, this video download scenarios is downloaded the period and is comprised user and see a period of time before the current time of key message, also be extended to a period of time after user sees key message simultaneously, ensure the convenience and integrality downloaded.
This programme devises a kind of simple and convenient interactive mode, can be applied in mobile phone terminal, the dull and stereotyped touch such as end, PC end, page end or mouse action mode flexibly, without the need to traditional loaded down with trivial details method for down loading.Touch screen one-handed performance can be realized, improve operating efficiency.
For repeatedly download package is containing the operation of repetition interval, repetition interval is rejected by this download scenarios automatically, has deducted the floating resources of repeated downloads and the waste of storage resources.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of method for downloading video of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the another kind of method for downloading video of the embodiment of the present invention;
Fig. 3 is the structure composition schematic diagram of a kind of video download apparatus of the embodiment of the present invention;
Fig. 4 is the structure composition schematic diagram of a kind of video download apparatus of the embodiment of the present invention;
Fig. 5 is the concrete structure schematic diagram of configuration module in Fig. 4;
Fig. 6 is a kind of concrete structural representation of directive generation module in Fig. 3;
Fig. 7 is a kind of concrete structural representation of video play lists parsing module in Fig. 3;
Fig. 8 is a kind of concrete structural representation of video play lists generation module in Fig. 3.
Embodiment
Below by embodiment, the present invention is specifically described; embodiment is only for being further detailed the present invention; can not be interpreted as limiting the scope of the invention, some nonessential improvement that those skilled in the art's content according to the present invention is made and adjustment also belong to the scope of protection of the invention.
Composition graphs 1 to Fig. 8.
In conjunction with HLS video push scheme, the invention provides the scheme that an a kind of key downloads short-term history video segment:
For different sight demands, the downloading duration (duration) of user is divided into the duration (duration) of different time length, as: ultrashort duration (15s), grow (30s) in short-term, medium duration (1min) and long duration (5min) four gears.For different application scenarioss, four above time span numerical value have different definition.Simultaneously for the individual demand of user, be also provided with self-defined duration option, user can the lasting duration of self-defined foradownloaded video fragment.
User according to oneself interested video length, can also arrange the preference duration of download.
User is when watching video, if find oneself interested video, even if this video was play, also download button can be clicked, the downloading duration (duration) that client sets according to user, download with current time t as the reference moment, backtracking Tback duration, backtracking duration setting default value is 1/2 × duration, equally, this parameter can according to different users and application scenarios, have different values, simultaneously can User Defined, judge whether the video time interval whether this moment store with this locality exists common factor, if existed, then recalculate it and download the period, the period of part of occuring simultaneously is rejected, recalculate and download start time startTime and download Period Length duration, parameter is it can be used as to send download request to server, server returns to the web download address pointing to video play lists, as m3u8 file.Client is by this this video play lists of network address download parsing, and the video clip files in foradownloaded video playlist, as the section of ts file.Download time, length was the history video of duration.Generate simultaneously and can be used for the local video play lists play.
If user repeatedly clicks " download ", button comprises identical video sequence, then merge downloading generation local video playlist with the local video play lists comprising this period video stored.
Accordingly, present invention also offers a kind of video download apparatus, comprising:
Configuration module, for arranging the duration duration of foradownloaded video, and the backtracking duration Tback of foradownloaded video;
Directive generation module, according to current broadcasting moment t, video downloading duration duration and backtracking duration Tback, generating video downloads time started t-Tback and video downloading duration duration, read local data base, obtain the download time started startTime and downloading duration duration of the video that actual needs is downloaded and these two parameters are sent to server end.
Video play lists parsing module, according to the download address of the video play lists that server returns.Download corresponding video play lists.Resolve this video play lists, obtain the web download address of each video segment and corresponding period.Call download module and download this video segment file.
Download module, according to the web download address of the video segment that video play lists parsing module parses, foradownloaded video section file.And name management and local storage administration are carried out to this video segment file.
Local video playlist generation module, when total duration of all video segments that user downloads meets the downloading duration duration of client setting, calls the video play lists of this CMOS macro cell this locality.The period of downloading and the period of the local video downloaded are had to the down operation of coincidence, this module can perform union operation, and the video play lists (period of the video that the video time interval of this video play lists and this user download exists common factor) this being downloaded the local video played file list generated and appointment this locality merges into a video play lists.If the period of the period of downloading and the local video downloaded does not exist common factor, then generate local video play lists according to the essential information (duration and filename) of the video segment downloaded.
Be described below in conjunction with accompanying drawing:
See Fig. 1, it is the schematic flow sheet of a kind of method for downloading video of the embodiment of the present invention, the described method of the embodiment of the present invention can be applicable to all kinds of can parsing in the video playing terminal playing the order video (as m3u8 program request) using playlist, and concrete described method comprises:
S101: user can pre-set the relevant parameter that video is downloaded, comprises duration (duration) and the backtracking duration (Tback) in video download start time and current broadcasting moment of video download.If user is not arranged, then parameter herein adopts default parameters.
S102: user, while displaying video, if find that there is interested video segment, can click download button, downloads with reference to the moment (t) as user clicks the current broadcasting moment of downloading button.
S103: read configuration file, obtain the downloading duration (duration) and backtracking time (Tback) of specifying, download reference moment (t) obtained according to S102 and backtracking time Tback calculate and download start time (startTime=t – Tback)
S104: the download period [t-Tback calculating this video, t-Tback+duration], read local database (period information that this data-base recording has been downloaded), judge this period whether and the period of having downloaded exist and occur simultaneously, if existed, then in the download period of this video, this is occured simultaneously and rejects, recalculate and download start time (startTime) and download lasting duration (duration).
The local video stored may be dispersed as the discrete period current download time slot request, for this situation, needs, according to the discrete period, to send repeatedly downloading request.
S105: send video download request, comprise download start time (startTime) and the video duration (duration) of S104 acquisition in request, server returns the download address that comprises the video file list of all video segments downloading the period
S106: the download address obtained by S105, foradownloaded video playlist (as m3u8 listed files).And resolve the download address of the video segment comprised in list and video continues duration.
S107: according to the download address of the video segment that S106 parses, sends the download request of video segment, downloads this video segment.
S108: if judged result is that this video downloads the period and the local period stored exists common factor in S105, the video play lists that the information updating this locality then utilizing S105 to download video segment in the video play lists obtained has stored, if in S104 for there is not common factor in judged result, the video play lists then downloaded according to S106 creates and stores local video play list file, more new database
Again see Fig. 2, it is the schematic flow sheet of another kind of method for downloading video of the present invention, the embodiment of the present invention tell method and can be applied in can tire out to play and use the playback terminal of live video (as m3u8 video) of play list file (as smart mobile phone, PC, pad etc.).
S201: user can pre-set the relevant parameter that video is downloaded, comprises duration (duration) and the backtracking duration (Tback) in video download start time and current broadcasting moment of video download.If user is not arranged, then parameter herein adopts default parameters.
S202: user broadcasting live video while, if find that there is interested video segment, download button can be clicked, download with reference to the moment (t) for user click download button time the current live moment.
S203: read configuration file, obtain the downloading duration (duration) and backtracking duration (Tback) of specifying, download reference moment (t) obtained according to S102 and backtracking time Tback calculate and download start time (startTime=t – Tback)
S204: the download period [t-Tback calculating this video, t-Tback+duration], read local database (period information that this data-base recording has been downloaded), judge this period whether and the period of having downloaded exist and occur simultaneously, if existed, then in the download period of this video, this is occured simultaneously and rejects, recalculate and download start time (startTime) and download lasting duration (duration).
The local video stored may be dispersed as the discrete period current download time slot request, for this situation, needs, according to the discrete period, to send repeatedly downloading request.
S205: send video download request, download start time (startTime) and the video duration (duration) of S204 acquisition is comprised in request, because video source is live video source, current download period [startTime, startTime+duration] exceed the current live period, also be (startTime+duration>t), then can not generate broadcasting side's list of complete foradownloaded video, can only by live scheme, continuous refreshing video playlist.
S206: the download address obtained by S205, foradownloaded video playlist (as m3u8 listed files).And resolve the download address of the video segment comprised in list and video continues duration.
S207: according to the download address of the video segment that S206 parses, sends the download request of video segment, downloads this video segment.
S208: according to the time span of the video segment that S206 parses, adds up and obtains current foradownloaded video duration (Ttotal)
S209: if the video segment parsed in m3u8 has all been downloaded, but the duration of foradownloaded video not yet meets the video duration that S204 obtains to be required (only have and can stop downloading as Ttotal>=duration).Again foradownloaded video playlist, judges the video segment be not downloaded in download list.If had, then carry out jumping to S206 step.
S210: if judged result is that this video downloads the period and the local period stored exists common factor in S205, the video play lists that the information updating this locality then utilizing S105 to download video segment in the video play lists obtained has stored, if in S104 for there is not common factor in judged result, the video play lists then downloaded according to S207 creates and stores local video play list file, more new database
Below the video download apparatus of the embodiment of the present invention is described in detail:
Refer to Fig. 3, it is mechanism's composition schematic diagram of a kind of video download apparatus of the embodiment of the present invention, device described in the embodiment of the present invention is applicable on the various playback terminal can playing the order video (as m3u8 video) using this list of videos file of broadcasting, concrete, described device comprises:
Configuration module S11, for configuring duration (duration) and backtracking duration (Tback) parameter of video download.Support parameter stores and reads simultaneously.
Directive generation module S12, resolves the click download event of user, generates time started and the downloading duration of foradownloaded video, according to the database of this locality, can be rejected the period of repeated downloads simultaneously.Video download request is sent to server.
Video play lists parsing module S13, this module primary responsibility is resolved the download address of the video segment in video play lists and is play the period.For m3u8 file:
The form of M3U8 file is as follows:
Wherein:
#EXT-X-TARGETDURATION field represents the maximum length Tmax of video segment in this list;
#EXT-X-MEDIA-SEQUENCE field represents the numbering of live middle m3u8 list
Seq, from 1;
#EXTINF is the duration Ti of video segment;
Urlprefix-x.ts is the download address of video segment file ts.
Video segment arranges according to time sequencing.The period of the video segment in also namely showing is [startTime, startTime+10s].By [startTime, startTime+3s] urlprefix-1.ts, [startTime+3s, startTime+6] urlprefix-2.ts, [startTime+6s, startTime+9s] urlprefix-3.ts, [startTime+9s, startTime+10s] urlprefix-4.ts composition;
Download module S14, for the video segment address parsed according to video play lists parsing module, foradownloaded video is cut into slices, and stores
Local video playlist generation module S15, for the information according to the video segment downloaded, creates or upgrades local video play lists.
Concrete, see Fig. 4, it is the structure composition schematic diagram of the another kind of video download apparatus of the embodiment of the present invention, the described device of the embodiment of the present invention comprises the configuration module S11 in an embodiment, directive generation module S12, video play lists parsing module S13, download module S14 and local video playlist generation module S15, further, in embodiments of the present invention, described device can also comprise:
Video play lists update module S16, for sending video play lists download request to server under live scene, refreshes the video play lists that S13 obtains.The live mechanism of video flowing realizes mainly through the slip renewal of video play lists and the progressive download of video segment.Live for HLS:
Certain moment video play lists content is as follows:
The content refreshing rear video play list file is as follows:
Many video segment urlprefix-5.ts newly in video play lists file after refreshing.The value of its sequence number sequqnce increases progressively simultaneously.Client, by resolving new video play lists, obtains download address and the duration of new video segment (urlprefix-5.ts).
Downloading duration statistical module S17, for when live download, total duration of the video segment that statistics is downloaded, judges when terminate to download.
Further alternative, refer to Fig. 5, the configuration module of described device can comprise:
Parameter read-in unit, for parameter read-in that user is arranged to configuration module;
Parameter storage unit, is stored in this locality of client for parameter user arranged according to the form of xml, stores the configuration parameter of acquiescence under default situations;
Parameter reading unit, for reading user configured parameter from local xml file;
Above-mentioned parameter mainly comprises downloading duration (duration) and backtracking duration (Tback);
Further alternative, refer to Fig. 6, the directive generation module of described device can comprise:
Download period generation unit S121, download when clicking download according to user calculates with reference to moment (t) and downloading duration (duration) and backtracking duration (Tback) video time interval [t-Tback, t-Tback+duration] that user wants download;
Download period verification unit S122, read local database, obtain the period information of the local video stored, download period [the t-Tback that inspection S121 generates, t-Tback+duration] whether there is common factor with the duration of this locality storage, occur simultaneously if existed, then this common factor is rejected from the download period, recalculate start time (startTime) and the downloading duration (duration) of download, the then new download period [startTime, startTime+duration].
Instruction request cell S 123, the download start time (startTime) generated according to S123 and downloading duration (duration), generate download request, send this request to server, obtains the download address of video play lists.
Further alternative, refer to Fig. 7, the video play lists parsing module of described device can comprise:
Video play lists type judging unit S131, for judging the type (as live or program request) of this video play lists
Video segment information analysis cell S 132, for obtaining download address and the time span of video segment, meanwhile, if this video play lists is live type, also need to judge further video segment, obtain the information of the new video segment that this refreshing video playlist obtains.
Further alternative, refer to Fig. 8, the local video playlist generation module of described device can comprise:
Merge cells S151, if directive generation module S12 judged result downloads the period for this and local storing time intervals exists common factor, then call this element, the information (local store path and duration) of the video segment downloaded by download module S14 is written in the video play lists of existing this locality.
Generation unit S152, if directive generation module S12 judged result is that this time download period and local storing time intervals do not exist common factor, then the information (local store path and market) calling the video segment that download module S14 downloads by sub-cell is written in new local video playlist.
The present invention, by arranging the duration (duration) of foradownloaded video and downloading a kind of method that backtracking duration (Tback) achieves a key download recent history period video, has great convenience for the user the operation of foradownloaded video on mobile terminal.The front and back period of interest frame, after seeing interest frame, all can downloading by a key, farthest simplifying user when watching video interested by user, downloads the operation of complete period video interested.By carrying out record statistics to the video segment information of video play lists, be written in local database, be all judge each download, reject the repeated downloads period, efficiently solve user and repeatedly download the storage resources wasting phenomenon causing repetition interval repeatedly to be downloaded.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned method.Wherein, described storage medium can be disk, CD, system store-memory body (read-onlymemory, rom) or random store-memory body (randomaccessmemory, ram) etc.

Claims (4)

1. a method for downloading video, is characterized in that comprising:
Setting downloading duration duration, and backtracking duration Tback;
Determine to download reference moment t, when video playback, determining to download with reference to moment t by clicking download button, is also the current broadcasting moment;
Client is according to the downloading duration duration of setting, and with current time t for the reference moment, backtracking Tback duration, obtains downloading start time startTime, and backtracking Tback duration default value is 1/2 × duration;
Download start time startTime and downloading duration duration is sent download request as parameter to server, and server returns to the web download address pointing to video play lists;
Client is by this this video play lists of network address download parsing, and the video clip files in foradownloaded video playlist; Generate simultaneously and can be used for the local video play lists play.
2. method for downloading video according to claim 1, it is characterized in that: when determining to download start time startTime by repeatedly clicking download button, repeatedly click download button and comprise the identical period, then in follow-up down operation, the identical period is rejected, will not download, difference be clicked the local video playlist downloading generation simultaneously and merge with the local video play lists comprising this period video stored.
3. a video download apparatus, is characterized in that comprising:
Configuration module, for arranging the duration duration of foradownloaded video, and the backtracking duration Tback of foradownloaded video;
Directive generation module, according to clicking the download reference moment t determined, video downloading duration duration and backtracking duration Tback, generating video downloads start time initial value t-Tback and video downloading duration duration, read local data base, reject the local period stored, obtain download start time startTime and the downloading duration duration of actual needs foradownloaded video, and these two parameters are sent to server end;
Video play lists parsing module, according to the download address of the video play lists that server returns, downloads corresponding video play lists; Resolve this video play lists, obtain the web download address of each video segment and corresponding period; Call download module and download this video segment file;
Download module, according to the web download address of the video segment that video play lists parsing module parses, foradownloaded video section file, and name management and local storage administration are carried out to this video segment file;
Local video playlist generation module, when total duration of all video segments that user downloads meets the downloading duration duration of client setting, calls the video play lists of this CMOS macro cell this locality.
4. video download apparatus according to claim 3, it is characterized in that: have with the period of the local video downloaded the down operation overlapped for the period of downloading, the local video played file list that this download generates by local video playlist generation module and foradownloaded video playlist merge into a video play lists.
CN201510927385.0A 2015-12-14 2015-12-14 Method and device for downloading video Pending CN105516828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510927385.0A CN105516828A (en) 2015-12-14 2015-12-14 Method and device for downloading video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510927385.0A CN105516828A (en) 2015-12-14 2015-12-14 Method and device for downloading video

Publications (1)

Publication Number Publication Date
CN105516828A true CN105516828A (en) 2016-04-20

Family

ID=55724412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510927385.0A Pending CN105516828A (en) 2015-12-14 2015-12-14 Method and device for downloading video

Country Status (1)

Country Link
CN (1) CN105516828A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231439A (en) * 2016-07-21 2016-12-14 乐视控股(北京)有限公司 A kind of video segment intercept method and device
CN108471550A (en) * 2018-03-16 2018-08-31 维沃移动通信有限公司 A kind of video intercepting method and terminal
CN112911402A (en) * 2021-01-19 2021-06-04 惠州Tcl移动通信有限公司 Video playing method, device, terminal and computer readable storage medium
CN113810780A (en) * 2021-11-17 2021-12-17 三节课信息咨询(北京)有限公司 Video transmission method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217638A (en) * 2007-12-28 2008-07-09 深圳市迅雷网络技术有限公司 A downloading method, system and device of video file fragmentation
CN103258398A (en) * 2013-04-26 2013-08-21 安科智慧城市技术(中国)有限公司 Network alarm system and alarm method thereof based on video review
CN103648019A (en) * 2013-11-29 2014-03-19 乐视致新电子科技(天津)有限公司 Video downloading method and device based on HLS protocol
CN103702176A (en) * 2013-12-09 2014-04-02 乐视致新电子科技(天津)有限公司 HLS (http live streaming) protocol-based video downloading method and device
CN104244079A (en) * 2013-06-07 2014-12-24 腾讯科技(深圳)有限公司 Video download method and device
CN104601535A (en) * 2014-05-08 2015-05-06 腾讯科技(深圳)有限公司 Video processing method and system
CN105100912A (en) * 2014-05-12 2015-11-25 联想(北京)有限公司 Streaming media processing method and streaming media processing apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217638A (en) * 2007-12-28 2008-07-09 深圳市迅雷网络技术有限公司 A downloading method, system and device of video file fragmentation
CN103258398A (en) * 2013-04-26 2013-08-21 安科智慧城市技术(中国)有限公司 Network alarm system and alarm method thereof based on video review
CN104244079A (en) * 2013-06-07 2014-12-24 腾讯科技(深圳)有限公司 Video download method and device
CN103648019A (en) * 2013-11-29 2014-03-19 乐视致新电子科技(天津)有限公司 Video downloading method and device based on HLS protocol
CN103702176A (en) * 2013-12-09 2014-04-02 乐视致新电子科技(天津)有限公司 HLS (http live streaming) protocol-based video downloading method and device
CN104601535A (en) * 2014-05-08 2015-05-06 腾讯科技(深圳)有限公司 Video processing method and system
CN105100912A (en) * 2014-05-12 2015-11-25 联想(北京)有限公司 Streaming media processing method and streaming media processing apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231439A (en) * 2016-07-21 2016-12-14 乐视控股(北京)有限公司 A kind of video segment intercept method and device
CN108471550A (en) * 2018-03-16 2018-08-31 维沃移动通信有限公司 A kind of video intercepting method and terminal
CN112911402A (en) * 2021-01-19 2021-06-04 惠州Tcl移动通信有限公司 Video playing method, device, terminal and computer readable storage medium
CN113810780A (en) * 2021-11-17 2021-12-17 三节课信息咨询(北京)有限公司 Video transmission method, device and storage medium
CN113810780B (en) * 2021-11-17 2022-04-26 三节课信息咨询(北京)有限公司 Video transmission method, device and storage medium

Similar Documents

Publication Publication Date Title
CN111050205B (en) Video clip acquisition method, device, equipment and storage medium
CN104244079B (en) A kind of method for downloading video and device
US20180315098A1 (en) Information processing method, server, and computer storage medium
JP5265365B2 (en) Apparatus and method for providing and presenting customized channel information
US20140040026A1 (en) Systems and methods for including advertisements in streaming content
US20140324978A1 (en) Broadcast Notifications Using Social Networking Systems
TW201246837A (en) Methods and apparatus for providing service notifications in a network environment
CN104516892B (en) It is associated with dissemination method, system and the terminal of the user-generated content of rich media information
CN105516828A (en) Method and device for downloading video
CN108848393B (en) Method, device and equipment for showing entrance and storage medium
CN103686255A (en) Video advertisement putting method and device based on HLS protocol
CN102364956A (en) Method for realizing advertising in starting of Internet protocol television (IPTV) system
CN105657443A (en) Live broadcast and time shifting playing method and system
CN112468839B (en) Playback method, system, device and readable storage medium of live content
CN102970281A (en) Method for processing multimedia playing records, user terminal and server
US20170318338A1 (en) Downloading of media based on user profile
CN102550021B (en) Method and system for providing preview video, media server and playing terminal
MX2014012335A (en) Method and system for uniformly marking and identifying placement opportunity locations for facilitating accelerated decision resolution.
US9853711B2 (en) Method and apparatus for providing content and method and apparatus for displaying content
KR20080093316A (en) Apparatus and method for displaying data
CN104038842B (en) A kind of method and apparatus prefetching request program information in CDN network
CN109657164B (en) Method, device and storage medium for publishing message
CN113630618A (en) Video processing method, device and system
CN104581337A (en) Play control method and device for videos
CN102339571A (en) Electronic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420

RJ01 Rejection of invention patent application after publication