CN106817621A - Mobile terminal and its video backup and playing method and device - Google Patents

Mobile terminal and its video backup and playing method and device Download PDF

Info

Publication number
CN106817621A
CN106817621A CN201611192999.XA CN201611192999A CN106817621A CN 106817621 A CN106817621 A CN 106817621A CN 201611192999 A CN201611192999 A CN 201611192999A CN 106817621 A CN106817621 A CN 106817621A
Authority
CN
China
Prior art keywords
packet
video
clouds
mobile terminal
local
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
Application number
CN201611192999.XA
Other languages
Chinese (zh)
Other versions
CN106817621B (en
Inventor
张衡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Qihoo Technology 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611192999.XA priority Critical patent/CN106817621B/en
Publication of CN106817621A publication Critical patent/CN106817621A/en
Application granted granted Critical
Publication of CN106817621B publication Critical patent/CN106817621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • 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/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations

Abstract

Present invention is disclosed a kind of mobile terminal and its video backup and playing method and device, wherein video backup and player method, including:When mobile terminal deletes video data bag, the video data bag is at least divided into the first packet and the second packet according to preset rules, wherein storing the beginning data of the video data bag in the first packet;First packet is stored in the local of the mobile terminal, the second packet is backuped into high in the clouds, and set up associating for the first packet and second packet in the high in the clouds;When playing the video of first packet, second packet is downloaded to local from the high in the clouds, and splice with first packet.It sees that video is identical with prior art when downloading, but the first packet is equivalent to the video data of advance caching, the time that the corresponding video of the first packet will be watched downloads the second packet, viewing video that can also be smooth when network speed is poor, improves the experience of the viewing video of user.

Description

Mobile terminal and its video backup and playing method and device
Technical field
Field is played the present invention relates to video backup, a kind of mobile terminal and its video backup is especially related to and is broadcast Put method and apparatus.
Background technology
In the prior art, the memory space of the mobile terminal such as mobile phone is fixed, and takes the main of mobile terminal memory space Content is picture or video.In order to leave enough memory space routine uses, user can delete the picture being of little use meeting video Except or backup to high in the clouds.When checking picture, the packet by picture is relatively small, directly can download viewing to high in the clouds, but If it is desired to when checking the video in high in the clouds, if downloaded again from high in the clouds, compare and lose time, if seen when downloading, if The resolution ratio of video is too high, and network data transmission speed is slower, then the situation of video cardton occurs, influence user normally makes With.
The content of the invention
The main object of the present invention is a kind of mobile terminal of offer and its video backup and playing method and device, it is intended to carried Foradownloaded video data in one side high while play video when, video playback fluency.
In order to realize foregoing invention purpose, the present invention proposes a kind of video backup and player method, including:
When mobile terminal deletes video data bag, the video data bag is at least divided into the first data according to preset rules Bag and the second packet, wherein storing the beginning data of the video data bag in the first packet;
First packet is stored in the local of the mobile terminal, the second packet high in the clouds is backuped into, and set up One packet is associated with second packet in the high in the clouds;
When playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with institute State the splicing of the first packet.
Further, the step of the association of the second packet for setting up the first packet and the high in the clouds, including:
First packet is recorded in the first local storage address, and second packet beyond the clouds second Storage address;
First storage address and the second storage address are associated.
Further, it is described that first packet is stored in the local of the mobile terminal, by second data Wrap and backup to high in the clouds, and set up the step of association of the second packet of the first packet and the high in the clouds, including:
Second packet is replicated by the high in the clouds, and the second packet of the duplication is ordered according to default compression Order carries out resolution compression, forms the first compressed data packets;
Second packet and the first compressed data packets are set up respectively at first packet and is associated.
Further, during the video of broadcasting first packet, second packet is downloaded from the high in the clouds To local, and the step of splice with first packet, including:
Whether judge the mobile terminal is in free nets;
If being in free nets, when playing the video of first packet, described second is downloaded from the high in the clouds Packet splices to local with first packet;
If in charge network, when playing the video of first packet, described first is downloaded from the high in the clouds Compressed data packets are spliced to local with first packet.
Further, during the video of broadcasting first packet, second packet is downloaded from the high in the clouds To local, and the step of splice with first packet, including:
Obtain the current data speed of download of the mobile terminal;
According to the data speed of download, judge to download the time span for completing the second packet;
If downloading the time span for completing the second packet more than the time span for playing the video, download described First compressed data packets, and splice with first packet.
Further, it is described that first packet is stored in the local of the mobile terminal, by second data Wrap and backup to high in the clouds, and set up the step of association of the second packet of the first packet and the high in the clouds, including:
Mobile terminal replicates second packet and is stored in locally, by the second packet of the duplication according to default Compress order carries out resolution compression, forms the second compressed data packets;
Second packet is set up with the second packet of compression respectively at first packet and is associated.
Further, during the video of broadcasting first packet, second packet is downloaded from the high in the clouds To local, and the step of splice with first packet, including:
Whether judge the mobile terminal is in free nets;
If being in free nets, when playing the video of first packet, described second is downloaded from the high in the clouds Packet splices to local with first packet;
If in charge network, when playing the video of first packet, calling second compressed data packets, And splice with first packet.
Further, during the video of broadcasting first packet, second packet is downloaded from the high in the clouds To local, and the step of splice with first packet, including:
Obtain the current data speed of download of the mobile terminal;
According to the data speed of download, judge to download the time span for completing the second packet;
If downloading the time span for completing the second packet more than the time span for playing the video, call described Second compressed data packets, and splice with first packet.
Further, the preset rules, including:
Obtain the video data bag and play the time span needed during video, divided according to default reproduction time length The video data bag is divided into the first packet and the second packet by ratio.
Further, the preset rules, including:
The capacity of the video data bag is obtained, the video data bag is divided into according to default capacity division proportion One packet and the second packet.
Further, the preset rules, including:
Obtain the video data bag and play the time span needed during video, if video data bag is needed when playing video The time span wanted is more than default time span threshold value, then be divided into the video data bag according to the time span threshold value First packet and the second packet, wherein the time span that the first packet is played is equal to the time span threshold value.
Further, during the video of broadcasting first packet, second packet is downloaded from the high in the clouds To local, and the step of splice with first packet after, including:
After video playback is finished, second packet downloaded from the high in the clouds is automatically deleted.
The present invention also provides a kind of video backup and playing device, including:
Split cells, for mobile terminal delete video data bag when, by the video data bag according to preset rules extremely It is divided into the first packet and the second packet less, wherein storing the beginning data of the video data bag in the first packet;
Backup associative cell, it is for the first packet to be stored in into the local of the mobile terminal, the second packet is standby Part to high in the clouds, and set up associating for the first packet and second packet in the high in the clouds;
Download unit is played, during for the video for playing first packet, second number is downloaded from the high in the clouds According to bag to local, and splice with first packet.
Further, the backup associative cell, including:
Logging modle, for recording first packet in the first local storage address, and second data Bag the second storage address beyond the clouds;
First relating module, for first storage address and the second storage address to be associated.
Further, the backup associative cell, including:
First replicates compression module, for replicating second packet by the high in the clouds, and by the of the duplication Two packets carry out resolution compression according to default compress order, form the first compressed data packets;
Second relating module, for by second packet and the first compressed data packets respectively at first packet Set up association.
Further, the broadcasting download unit, including:
First judge module, for judge the mobile terminal whether in free nets;If being in free nets, When then playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with described first Packet splices;If in charge network, when playing the video of first packet, described the is downloaded from the high in the clouds One compressed data packets are spliced to local with first packet.
Further, the broadcasting download unit, including:
First acquisition module, the data speed of download current for obtaining the mobile terminal;
Second judge module, for according to the data speed of download, judging that the time for downloading the second packet of completion is long Degree;If downloading the time span for completing the second packet more than the time span for playing the video, described first is downloaded Compressed data packets, and splice with first packet.
Further, the backup associative cell, including:
Second replicates compression module, replicates second packet for mobile terminal and is stored in locally, will be described multiple Second packet of system carries out resolution compression according to default compress order, forms the second compressed data packets;
3rd relating module, for by second packet and the second compressed data packets respectively at first packet Set up association.
Further, the broadcasting download unit, including:
3rd judge module, for judge the mobile terminal whether in free nets;If being in free nets, When then playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with described first Packet splices;If in charge network, when playing the video of first packet, calling second compressed data Bag, and splice with first packet.
Further, the broadcasting download unit, including:
Second acquisition module, the data speed of download current for obtaining the mobile terminal;
4th judge module, for according to the data speed of download, judging that the time for downloading the second packet of completion is long Degree;If downloading the time span for completing the second packet more than the time span for playing the video, described second is called Compressed data packets, and splice with first packet.
Further, the split cells, including:
First splits module, for obtaining the time span needed when the video data bag plays video, according to default Reproduction time length division proportion the video data bag is divided into the first packet and the second packet.
Further, the split cells, including:
Second splits module, the capacity for obtaining the video data bag, according to default capacity division proportion by institute State video data bag and be divided into the first packet and the second packet.
Further, the split cells, including:
3rd splits module, for obtaining the time span needed when the video data bag plays video, if video Packet plays the time span needed during video more than default time span threshold value, then will according to the time span threshold value The video data bag is divided into the first packet and the second packet, wherein the time span that the first packet is played is equal to described Time span threshold value.
Further, the video backup and playing device also include:
Unit is deleted, after being finished for video playback, second packet downloaded from the high in the clouds is automatically deleted.
The present invention also provides a kind of mobile terminal, including processor and memory;
The memory is used to store supports that video backup and playing device perform the video backup described in any of the above-described And the program of player method;
The processor is configurable for performing the program stored in the memory.
Mobile terminal of the invention and its video backup and playing method and device, when video data bag is deleted, Video data bag is split, the one piece of data that video is started forms the first packet, by formation below one or more the Two packets simultaneously upload to high in the clouds, when user watches video, the content of the first packet can be played first, meanwhile, can be from cloud The second packet is downloaded at end, and video can be normally watched when the second packet is downloaded.Under its side with prior art Carry side and see that video is identical, but the first packet is equivalent to the video data of advance caching, the first packet of viewing is corresponding Time of video downloads the second packet, viewing video that can also be smooth when network speed is poor, improves the viewing of user The experience of video.
Brief description of the drawings
Fig. 1 is the video backup of one embodiment of the invention and the schematic flow sheet of player method;
Fig. 2 is the video backup of one embodiment of the invention and the schematic flow sheet of player method;
Fig. 3 is the video backup of one embodiment of the invention and the structural schematic block diagram of playing device;
Fig. 4 is the structural schematic block diagram of the backup associative cell of one embodiment of the invention;
Fig. 5 A are the structural schematic block diagram of the backup associative cell of one embodiment of the invention;
Fig. 5 B are the structural schematic block diagram of the backup associative cell of another embodiment of the present invention;
Fig. 6 A are the structural schematic block diagram of the broadcasting download unit of one embodiment of the invention;
Fig. 6 B are the structural schematic block diagram of the broadcasting download unit of another embodiment of the present invention;
Fig. 7 A are the structural schematic block diagram of the broadcasting download unit of another embodiment of the present invention;
Fig. 7 B are the structural schematic block diagram of the broadcasting download unit of another embodiment of the present invention
Fig. 8 is the video backup of one embodiment of the invention and the structural schematic block diagram of playing device;
Fig. 9 is the structural schematic block diagram of the mobile terminal of one embodiment of the invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " " used herein, " one It is individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that what is used in specification of the invention arranges Diction " including " refer to the presence of the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition One or more other features, integer, step, operation, element, component and/or their group.Wording used herein " and/ Or " include one or more associated wholes or any cell of listing item and all combine.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also Understand, those terms defined in such as general dictionary, it should be understood that with the context with prior art The consistent meaning of meaning, and unless by specific definitions as here, will not otherwise use idealization or excessively formal implication To explain.
Those skilled in the art of the present technique are appreciated that mobile terminal here refers to the electronics such as smart mobile phone, panel computer Equipment.
Reference picture 1, the embodiment of the present invention provides a kind of video backup method, including step:
When S1, mobile terminal delete video data bag, the video data bag is at least divided into first according to preset rules Packet and the second packet, wherein storing the beginning data of the video data bag in the first packet;
S2, the first packet is stored in the local of the mobile terminal, the second packet is backuped into high in the clouds, and set up First packet is associated with second packet in the high in the clouds;
S3, when playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with The first packet splicing.
As described in above-mentioned step S1, above-mentioned video data bag is the data acquisition system containing video data resource.Above-mentioned When one packet is playing video data bag corresponding video, contain a video data set for most starting video data, i.e. When playing video, it is necessary to first use the data in the first packet.Above-mentioned second packet is after being combined with the first packet Form an above-mentioned video data bag for completion.Above-mentioned second packet can according to specific circumstances be divided into multiple, play During video, multiple second packets download successively with the first data packet group into a complete video data bag so that user can To watch complete video.In general, second packet is only set.
As described in above-mentioned step S2 and S3, above-mentioned high in the clouds is in fact to refer to network, and it can be with many meters of network communication The operation of calculation machine, or service provided by distance host etc. is provided through network on-line.First packet is stored in Locally, the second packet is then uploaded into high in the clouds, will video data bag to split, as a result, only leaving the first data Bag is in the local of mobile terminal, and the memory space that it takes mobile terminal is smaller, and the storage for effectively having saved mobile terminal is empty Between.Second packet is uploaded into high in the clouds, facilitates download to be directly downloaded when using.And when video is watched, the first packet phase When in the video data of advance caching, the time that will watch the corresponding video of the first packet downloads the second packet, in network speed Still the experience of the viewing video of user with smooth viewing video, can be improved when poor.It is above-mentioned to set up the first packet With associating for second packet in the high in the clouds, be in order to watch the first packet in video when, conveniently inform high in the clouds, and Corresponding second packet is found beyond the clouds to be downloaded.
In the present embodiment, above-mentioned the step of association of the second packet for setting up the first packet and the high in the clouds, including:
S21, first packet is recorded in the first local storage address, and second packet is beyond the clouds Second storage address;
S22, first storage address and the second storage address are associated.
As described in above-mentioned step S21 and S22, the second of the first storage address of the first packet and the second packet is deposited Storage address is associated, and when the first packet video is played, directly can find the second storage by the first storage address Location, and then be quickly found the second packet and be downloaded.
It is described that first packet is stored in the local of the mobile terminal in the present embodiment, by the described second number High in the clouds is backuped to according to bag, and set up S2 the step of association of the first packet and second packet in the high in the clouds, including:
S23, second packet is replicated by the high in the clouds, and by the second packet of the duplication according to default pressure Contracting order carries out resolution compression, forms the first compressed data packets;
S24, second packet and the first compressed data packets are set up respectively at first packet associate.
As described in above-mentioned step S23 and S24, the packet of above-mentioned duplication second, and compress the mistake of the second packet of duplication Journey is carried out beyond the clouds, saves the resource overhead of mobile terminal, when such as backing up, only the second packet need to be uploaded, without above-mentioned pressure Contract the process of the second packet.Video content in above-mentioned first compressed data packets is identical with the video content of the second packet, But its resolution ratio is lower, so its data volume is less than the data volume of the second packet, such as, the second packet is corresponding to be regarded Frequency is HD video, and its data volume is 1G, and the data volume of its corresponding first compressed data packets may only have 100M.It is above-mentioned default Compress order, generally specified compression ratio, such as according to 10:1 ratio is compressed, then second packet of 1G is pressed First compressed data packets of 100M are formed after contracting.Above-mentioned default compress order, can the according to second packet resolution ratio The compression factor of adjust automatically resolution ratio, such as, the resolution ratio of the video of the second packet is natively very low, then can carry out The compression of small scale, such as the second packet are the SD video of 200M, then its compression factor can be 2:1, obtained after compression The video of the more low resolution of 100M.Above-mentioned second packet and the first compressed data packets have different storage address, so First packet is associated with the second packet and the first compressed data packets respectively, selects different packets to enter according to service condition Row is downloaded.
In the present embodiment, during the video of above-mentioned broadcasting first packet, second data are downloaded from the high in the clouds Bag is to local, and S3 the step of splice with first packet, including:
S31, judge the mobile terminal whether in free nets;
If S32, being in free nets, when playing the video of first packet, downloaded from the high in the clouds described Second packet splices to local with first packet;
If S33, in charge network, when playing the video of first packet, downloaded from the high in the clouds described First compressed data packets are spliced to local with first packet.
As described in above-mentioned step S31, S32 and S33, the data volume of video is generally large, if entered using the network of charge Row downloads the second packet viewing video, although can watch resolution ratio video higher, but will certainly spend compared with high cost, If downloading the first compressed data packets, less expense can be spent.Above-mentioned free nets generally refers to mobile terminal and is connected to In free WiFi network, and if the data network such as 3G/4G that the operators such as movement, UNICOM provide it is charge network.
In another embodiment, during the video of above-mentioned broadcasting first packet, described second is downloaded from the high in the clouds Packet is to local, and S3 the step of splice with first packet, including:
The current data speed of download of S34, the acquisition mobile terminal;
S35, according to the data speed of download, judge to download the time span for completing the second packet;
If S36, time span of the time span more than the broadcasting video for downloading the second packet of completion, download First compressed data packets, and splice with first packet.
As described in above-mentioned step S34, S35 and S36, because the corresponding video resolution of the second packet is higher, the number It is larger according to measuring, if data speed of download is slower during viewing video, then if having watched the corresponding video of the first packet, And after the partial data of the second packet downloaded immediately, the phenomenons such as interim card occur during user's viewing video, influence user Experience.So, current data speed of download is first obtained, the time span downloaded and complete the second packet is calculated, if More than the first packet and the spliced length of the video time of the second packet is played, then video is watched in explanation to the time span When, it is impossible to whole smooth viewings, Caton phenomenon necessarily occurs.So, now select the first compression number that data volume is smaller More suitable according to bag, its time span for downloading completion from high in the clouds may be less than and play the first packet and the second packet Spliced length of the video time, broadcasting is not in Caton phenomenon.May even if it downloads the time span for completing from high in the clouds Can be more than the first packet and the spliced length of the video time of the first compressed data packets be played, there is the phenomenon of interim card in it Caton phenomenon than downloading the second packet viewing video is slighter.
In another embodiment, it is above-mentioned that first packet is stored in the local of the mobile terminal, by described Two packets backup to high in the clouds, and set up S2 the step of association of the first packet and second packet in the high in the clouds, including:
S25, mobile terminal replicate second packet and be stored in it is local, by the second packet of the duplication according to Default compress order carries out resolution compression, forms the second compressed data packets;
S26, second packet and the second compressed data packets are set up respectively at first packet associate.
As described in above-mentioned step S25 and S26, the packet of above-mentioned duplication second, and compress the mistake of the second packet of duplication Journey is carried out in mobile terminal, during backup, only the second packet need to be uploaded, without uploading the second compressed data packets.Although the Two compressed data packets are stored in the local of mobile terminal, but it is compressed, so saving mobile terminal still can be played depositing Store up the purpose in space.Video content in above-mentioned second compressed data packets is identical with the video content of the second packet, but its Resolution ratio is lower, so its data volume is less than the data volume of the second packet, such as, the corresponding video of the second packet is height Clear video, its data volume is 1G, and the data volume of its corresponding second compressed data packets may only have 100M.Above-mentioned default compression life Order, generally specified compression ratio, such as according to 10:1 ratio is compressed, then second packet of 1G compressed after shape Into second compressed data packets of 100M.Above-mentioned default compress order, can the resolution ratio of the according to second packet adjust automatically The compression factor of whole resolution ratio, such as, the resolution ratio of the video of the second packet is natively very low, then can carry out small scale Compression, such as the second packet for 200M SD video, then its compression factor can be 2:1, obtain 100M's after compression The video of more low resolution.Above-mentioned second packet and the second compressed data packets have different storage address, so the first number Associated with the second packet and the second compressed data packets respectively according to bag, different packets are selected according to service condition.And During using the second compressed data packets, without downloading, Internet resources are saved.
In the present embodiment, during the video of above-mentioned broadcasting first packet, second data are downloaded from the high in the clouds Bag is to local, and S3 the step of splice with first packet, including:
S301, judge the mobile terminal whether in free nets;
If S302, being in free nets, when playing the video of first packet, downloaded from the high in the clouds described Second packet splices to local with first packet;
If S303, in charge network, when playing the video of first packet, call it is described second compression number According to bag, and splice with first packet.
As described in above-mentioned step S301, S302 and S303, the data volume of video is generally large, if using the network of charge It is downloaded the second packet viewing video, although resolution ratio video higher can be watched, but expense higher will certainly be spent With, if downloading the second compressed data packets, any expense need not be spent, directly called locally.Above-mentioned freenet Network generally refers to mobile terminal and is connected in free WiFi network, and the number such as 3G/4G that such as mobile, operator of UNICOM provides It is then charge network according to network.
In another embodiment, during the video of above-mentioned broadcasting first packet, described second is downloaded from the high in the clouds Packet is to local, and S3 the step of splice with first packet, including:
The current data speed of download of S304, the acquisition mobile terminal;
S305, according to the data speed of download, judge to download the time span for completing the second packet;
If S306, time span of the time span more than the broadcasting video for downloading the second packet of completion, adjust With second compressed data packets, and splice with first packet.
It is described because the corresponding video resolution of the second packet is higher as described in above-mentioned step S304, S305 and S306 Data volume is larger, if data speed of download is slower during viewing video, then if the first packet is corresponding to be regarded having watched After the partial data of the second packet frequently, and immediately downloaded, the phenomenons such as interim card occur during the viewing video of user, influence The experience of user.So, current data speed of download is first obtained, the time span downloaded and complete the second packet is calculated, If the time span is more than the first packet and the spliced length of the video time of the second packet is played, viewing is illustrated During video, it is impossible to whole smooth viewings, Caton phenomenon necessarily occurs.And call local the second compressed data packets and first Packet splices, and without downloading, during viewing video, simply video definition is affected, but viewing video is smooth, will not go out The phenomenon of existing interim card.
In the present embodiment, above-mentioned preset rules as split the rule of video data bag, including:Obtain the video counts The time span needed when playing video according to bag, divides the video data bag according to default reproduction time length division proportion Into the first packet and the second packet.Namely the time span that video playback is completed is split according to specified ratio Video data bag.Such as, the ratio of fractionation is 1:9, then after the film of 100 minutes is split, can obtain 10 minutes First packet, second packet of 90 minutes.In viewing, video resource used is in mobile terminal sheet in first 10 minutes Ground, this can be downloaded second packet etc. in 10 minutes, greatly improve the fluency of viewing film.
In another embodiment, above-mentioned preset rules, as split the rule of video data bag, including:Regarded described in obtaining The capacity of frequency packet, the first packet and the second data are divided into according to default capacity division proportion by the video data bag Bag.Namely the capacity of above-mentioned video data bag is split according to specified ratio.Such as, the ratio of fractionation is 1:9, that After the film of one 1000M is split, first packet of 100M, second packet of 900M can be obtained.It is preceding in viewing Video resource used by 100M is local in mobile terminal, and the second packet can be downloaded in the video time for watching this 100M Deng, greatly improve viewing film fluency.
In another embodiment, above-mentioned preset rules, as split the rule of video data bag, including:Regarded described in obtaining Frequency packet plays the time span needed during video, if video data bag plays the time span needed during video more than pre- If time span threshold value, then according to the time span threshold value by the video data bag be divided into the first packet and second number According to bag, wherein the time span that the first packet is played is equal to the time span threshold value.Above-mentioned time span threshold value is one Whether individual specified time span, mobile terminal weighs the standard for carrying out splitting video data bag, if the broadcasting of video data bag Time span, more than time span threshold value, then the corresponding time span of preceding time span threshold value played video data bag Partial resolution is into the first packet, the packet of formation second below.If the reproduction time length of video data bag, less than or Equal to time span threshold value, then the preset rules of the fractionation cannot be used.In one embodiment, video data bag is corresponding Video playback time length is 100 minutes, and time product degree threshold value is 10 minutes, then video data bag will can be played first 10 minutes , used as the first packet, 90 minutes corresponding data below are used as the second packet for corresponding data.
Reference picture 2, in the present embodiment, during the video of above-mentioned broadcasting first packet, downloads described from the high in the clouds Second packet to local, and the step of splice with first packet after S3, including:
After S4, video playback are finished, second packet downloaded from the high in the clouds is automatically deleted.
As described in above-mentioned step S4, above-mentioned video data bag is split into the first packet and the second packet, its explanation User had watched this video, was then deleted, to save the memory space of mobile terminal.So, when being seen again When seeing, from the second packet that high in the clouds is downloaded, deleted after viewing, met use habit and the demand of user, reduced and use The operating procedure at family, improves the experience of user.Certainly, when the second packet downloaded from high in the clouds is deleted, it may appear that carry Awake select button, if user is not desired to delete, can select buttons such as " preservations " to be retained on mobile terminal.
In one embodiment, the mobile terminal of user is mobile phone, and mobile phone EMS memory contains a height for 2000M data volumes Clear film, in daily life, occupancy phone memory is larger, and storage of the influence user to mobile phone is used, so user is intended to It is deleted.When deleting, mobile phone is split, by it according to the 1 of data volume:99 ratio split obtaining 20M The first packet and 1980M the second packet, the second packet is then uploaded into high in the clouds, beyond the clouds, can also be to second Packet is replicated, and the second packet for replicating then is carried out into 10:1 resolution compression, obtains first compression of 198M Packet.When above-mentioned high-definition movie is watched again, current data speed of download is first determined whether, if watching above-mentioned high definition electricity The duration of shadow can then select the first compressed data packets of download to be spelled with the first packet less than the duration for downloading the second packet Connect, above-mentioned high-definition movie is watched glibly in the case where definition is sacrificed.After the completion of viewing, mobile phone can automatically by download First compressed data packets are deleted, to save the memory space of mobile phone.
The video backup and player method of the present embodiment, when video data bag is deleted, video data bag are split, The one piece of data that video is started forms the first packet, by one or more second packets of formation below and uploads to cloud End, when user watches video, can play the content of the first packet first, meanwhile, the second packet can be downloaded from high in the clouds, Video can be normally watched when downloading the second packet.It sees that video is identical with prior art when downloading, but First packet downloads the second number equivalent to the video data of advance caching, the time that will watch the corresponding video of the first packet According to bag, viewing video that can also be smooth when network speed is poor improves the experience of the viewing video of user.
Reference picture 3, also provides a kind of video backup device in the present embodiment, including:
Split cells 10, when deleting video data bag for mobile terminal, by the video data bag according to preset rules At least it is divided into the first packet and the second packet, wherein storing the beginning data of the video data bag in the first packet;
Backup associative cell 20, for the first packet to be stored in into the local of the mobile terminal, by the second packet Backup to high in the clouds, and set up associating for the first packet and second packet in the high in the clouds;
Download unit 30 is played, during for the video for playing first packet, described second is downloaded from the high in the clouds Packet splices to local with first packet.
Such as above-mentioned split cells 10, above-mentioned video data bag is the data acquisition system containing video data resource.Above-mentioned When one packet is playing video data bag corresponding video, contain a video data set for most starting video data, i.e. When playing video, it is necessary to first use the data in the first packet.Above-mentioned second packet is after being combined with the first packet Form an above-mentioned video data bag for completion.Above-mentioned second packet can according to specific circumstances be divided into multiple, play During video, multiple second packets download successively with the first data packet group into a complete video data bag so that user can To watch complete video.In general, second packet is only set.
As described above backup associative cell 20 and play download unit 30, above-mentioned high in the clouds is in fact to refer to network, and it can be transported Service by distance host offer etc. is obtained with the operation of network communication multiple stage computers, or transmission network on-line.Will First packet is stored in locally, and the second packet then is uploaded into high in the clouds, will video data bag to split, its result It is only to leave the first packet in the local of mobile terminal, the memory space that it takes mobile terminal is smaller, effectively saves The memory space of mobile terminal.Second packet is uploaded into high in the clouds, facilitates download to be directly downloaded when using.And in viewing video When, equivalent to the video data of advance caching, the time that will watch the corresponding video of the first packet downloads the to the first packet Two packets, still with smooth viewing video, can improve the experience of the viewing video of user when network speed is poor.It is above-mentioned Set up associating for the first packet and second packet in the high in the clouds, be in order in the video in watching the first packet, High in the clouds is conveniently informed, and finds corresponding second packet beyond the clouds and be downloaded.
Reference picture 4, in the present embodiment, above-mentioned backup associative cell 20, including:
Logging modle 21, for recording first packet in the first local storage address, and second number According to bag the second storage address beyond the clouds;
First relating module 22, for first storage address and the second storage address to be associated.
Such as the relating module 22 of above-mentioned logging modle 21 and first, by first storage address and the second data of the first packet Second storage address of bag is associated, and when the first packet video is played, directly can be found by the first storage address Second storage address, and then be quickly found the second packet and be downloaded.
Reference picture 5A, in the present embodiment, above-mentioned backup associative cell 20, including:
First replicates compression module 23, for replicating second packet by the high in the clouds, and by the duplication Second packet carries out resolution compression according to default compress order, forms the first compressed data packets;
Second relating module 24, for by second packet and the first compressed data packets respectively at first data Bag sets up association.
First the relating module 24 of compression module 23 and second, the packet of above-mentioned duplication second are replicated as described above, and compress multiple The process of the second packet of system is carried out beyond the clouds, saves the resource overhead of mobile terminal, when such as backing up, only need to upload the second number According to bag, the process without the packet of above-mentioned compression second.Video content and the second data in above-mentioned first compressed data packets The video content of bag is identical, but its resolution ratio is lower, so its data volume is less than the data volume of the second packet, such as, The corresponding video of second packet is HD video, and its data volume is 1G, and the data volume of its corresponding first compressed data packets can Can there was only 100M.Above-mentioned default compress order, generally specified compression ratio, such as according to 10:1 ratio is compressed, that Second packet of 1G forms first compressed data packets of 100M after being compressed.Above-mentioned default compress order, can also be root According to the compression factor of the resolution ratio adjust automatically resolution ratio of the second packet, such as, the resolution ratio sheet of the video of the second packet Come just very low, then the compression of small scale can be carried out, such as the second packet is the SD video of 200M, then its compression factor Can be 2:1, the video of the more low resolution of 100M is obtained after compression.Above-mentioned second packet and the first compressed data packets have Different storage address, so the first packet is associated with the second packet and the first compressed data packets respectively, according to using feelings Condition selects different packets to be downloaded.
Reference picture 5B, in another embodiment, above-mentioned backup associative cell 20, including:
Second replicates compression module 25, replicates second packet for mobile terminal and is stored in locally, will be described The second packet for replicating carries out resolution compression according to default compress order, forms the second compressed data packets;
3rd relating module 26, for by second packet and the second compressed data packets respectively at first data Bag sets up association.
Second the relating module 26 of compression module 25 and the 3rd, the packet of above-mentioned duplication second are replicated as described above, and compress multiple The process of the second packet of system is carried out in mobile terminal, during backup, only the second packet need to be uploaded, without uploading second Compressed data packets.Although the second compressed data packets are stored in the local of mobile terminal, it is compressed, so still can rise To the purpose for saving mobile terminal memory space.The video of video content and the second packet in above-mentioned second compressed data packets Content is identical, but its resolution ratio is lower, so its data volume is less than the data volume of the second packet, such as, and the second data Corresponding video is wrapped for HD video, its data volume is 1G, and the data volume of its corresponding second compressed data packets may be only 100M.Above-mentioned default compress order, generally specified compression ratio, such as according to 10:1 ratio is compressed, then 1G's Second packet forms second compressed data packets of 100M after being compressed.Above-mentioned default compress order, can according to second The compression factor of the resolution ratio adjust automatically resolution ratio of packet, such as, the resolution ratio of the video of the second packet is natively very Low, then can to carry out the compression of small scale, such as the second packet is the SD video of 200M, then its compression factor can be 2:1, the video of the more low resolution of 100M is obtained after compression.Above-mentioned second packet and the second compressed data packets have different Storage address, so the first packet is associated with the second packet and the second compressed data packets respectively, selects according to service condition Different packets.And when using the second compressed data packets, without downloading, save Internet resources.
Reference picture 6A, in the present embodiment, the broadcasting download unit 30, including:
First judge module 31, for judge the mobile terminal whether in free nets;If being in freenet Network, then when playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with described the One packet splices;If in charge network, when playing the video of first packet, downloaded from the high in the clouds described First compressed data packets are spliced to local with first packet.
First judge module 31 as described above, the data volume of video is generally large, if be downloaded using the network of charge Second packet watches video, although can watch resolution ratio video higher, but will certainly spend compared with high cost, if under The first compressed data packets are carried, then can spend less expense.Above-mentioned free nets generally refer to mobile terminal be connected to it is free In WiFi network, and if the data network such as 3G/4G that the operators such as movement, UNICOM provide it is charge network.
Reference picture 6B, in another embodiment, above-mentioned broadcasting download unit 30, including:
First acquisition module 32, the data speed of download current for obtaining the mobile terminal;
Second judge module 33, for according to the data speed of download, judging to download the time for completing the second packet Length;If downloading the time span for completing the second packet more than the time span for playing the video, described the is downloaded One compressed data packets, and splice with first packet.
First acquisition module 32 and the second judge module 33 as described above, due to the corresponding video resolution of the second packet compared with Height, the data volume is larger, if data speed of download is slower during viewing video, then if watching the first packet pair After the video answered, and the partial data of the second packet downloaded immediately, the phenomenons such as interim card occur during user's viewing video, Influence the experience of user.So, current data speed of download is first obtained, the time for calculating download the second packet of completion is long Degree, if the time span is illustrated more than the first packet and the spliced length of the video time of the second packet is played During viewing video, it is impossible to whole smooth viewings, Caton phenomenon necessarily occurs.So, now select that data volume is smaller the One compressed data packets are more suitable, and it downloads time span for completing from high in the clouds may be less than playing the first packet and the The spliced length of the video time of two packets, broadcasting is not in Caton phenomenon.Even if it downloads the time for completing from high in the clouds Length may be more than the first packet and the spliced length of the video time of the first compressed data packets be played, and it interim card occurs Phenomenon also than download the second packet viewing video Caton phenomenon it is slighter.
Reference picture 7A, in the present embodiment, above-mentioned broadcasting download unit 30, including:
3rd judge module 301, for judge the mobile terminal whether in free nets;If being in freenet Network, then when playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with described the One packet splices;If in charge network, when playing the video of first packet, calling the second compression number According to bag, and splice with first packet.
3rd judge module 301 as described above, the data volume of video is generally large, if be downloaded using the network of charge Second packet watches video, although can watch resolution ratio video higher, but will certainly spend compared with high cost, if under The second compressed data packets are carried, then need not spend any expense, directly called locally.Above-mentioned free nets is generally referred to Mobile terminal is connected in free WiFi network, and is if the data network such as 3G/4G that the operators such as movement, UNICOM provide Charge network.
Reference picture 7B, in another embodiment, above-mentioned broadcasting download unit 30, including:
Second acquisition module 302, the data speed of download current for obtaining the mobile terminal;
4th judge module 303, for according to the data speed of download, judging to download the time for completing the second packet Length;If downloading the time span for completing the second packet more than the time span for playing the video, described the is called Two compressed data packets, and splice with first packet.
Second acquisition module 302 and the 4th judge module 303 as described above, due to the corresponding video resolution of the second packet Higher, the data volume is larger, if data speed of download is slower during viewing video, then if watching the first packet After corresponding video, and the partial data of the second packet downloaded immediately, interim card etc. occurs during the viewing video of user Phenomenon, influences the experience of user.So, current data speed of download is first obtained, calculate and download the second packet of completion Time span, if the time span is more than plays the first packet and the spliced length of the video time of the second packet, Then during explanation viewing video, it is impossible to whole smooth viewings, Caton phenomenon necessarily occurs.And call local second to compress number Splice with the first packet according to bag, without downloading, during viewing video, simply video definition is affected, but viewing video Smoothness, is not in the phenomenon of interim card.
In the present embodiment, above-mentioned split cells 10, including:First splits module, is broadcast for obtaining the video data bag The time span needed during video is put, the video data bag is divided into first according to default reproduction time length division proportion Packet and the second packet.The time span that video playback is completed namely is carried out into fractionation video counts according to specified ratio According to bag.Such as, the ratio of fractionation is 1:9, then after the film of 100 minutes is split, first number of 10 minutes can be obtained According to bag, second packet of 90 minutes.In viewing, video resource used is local in mobile terminal in first 10 minutes, and this 10 Minute can be downloaded second packet etc., greatly improve the fluency of viewing film.
In another embodiment, above-mentioned split cells 10, including:Second splits module, for obtaining the video data The capacity of bag, the first packet and the second packet are divided into according to default capacity division proportion by the video data bag. Exactly the capacity of above-mentioned video data bag is split according to specified ratio.Such as, the ratio of fractionation is 1:9, then one After the film of portion 1000M is split, first packet of 100M, second packet of 900M can be obtained.In viewing, preceding 100M Video resource used is local in mobile terminal, can be downloaded second packet etc. in the video time for watching this 100M, greatly The earth improves the fluency of viewing film.
In another embodiment, above-mentioned split cells 10, including:3rd splits module, for obtaining the video data Bag plays the time span needed during video, if the time span needed during video data bag broadcasting video is more than default Between length threshold, then the video data bag is divided into by the first packet and the second packet according to the time span threshold value, The time span that wherein the first packet is played is equal to the time span threshold value.Above-mentioned time span threshold value is one and specifies Whether time span, mobile terminal weighs the standard for carrying out splitting video data bag, if the reproduction time of video data bag is long Degree, more than time span threshold value, then the part of the corresponding time span of preceding time span threshold value played video data bag is torn open It is divided into the first packet, the packet of formation second below.If the reproduction time length of video data bag, less than or equal to when Between length threshold, then cannot using the fractionation preset rules.In one embodiment, the corresponding video of video data bag is broadcast Time span is put for 100 minutes, time products degree threshold value is 10 minutes, then video data bag can first 10 minutes of broadcasting it is corresponding , used as the first packet, 90 minutes corresponding data below are used as the second packet for data.
Reference picture 8, in the present embodiment, above-mentioned video backup and playing device also include:
Unit 40 is deleted, after being finished for video playback, second packet downloaded from the high in the clouds is automatically deleted.
Unit 40 is deleted as described above, and above-mentioned video data bag is split into the first packet and the second packet, its explanation User had watched this video, was then deleted, to save the memory space of mobile terminal.So, when being seen again When seeing, from the second packet that high in the clouds is downloaded, deleted after viewing, met use habit and the demand of user, reduced and use The operating procedure at family, improves the experience of user.Certainly, when the second packet downloaded from high in the clouds is deleted, it may appear that carry Awake select button, if user is not desired to delete, can select buttons such as " preservations " to be retained on mobile terminal.
In one embodiment, the mobile terminal of user is mobile phone, and mobile phone EMS memory contains a height for 2000M data volumes Clear film, in daily life, occupancy phone memory is larger, and storage of the influence user to mobile phone is used, so user is intended to It is deleted.When deleting, mobile phone is split, by it according to the 1 of data volume:99 ratio split obtaining 20M The first packet and 1980M the second packet, the second packet is then uploaded into high in the clouds, beyond the clouds, can also be to second Packet is replicated, and the second packet for replicating then is carried out into 10:1 resolution compression, obtains first compression of 198M Packet.When above-mentioned high-definition movie is watched again, current data speed of download is first determined whether, if watching above-mentioned high definition electricity The duration of shadow can then select the first compressed data packets of download to be spelled with the first packet less than the duration for downloading the second packet Connect, above-mentioned high-definition movie is watched glibly in the case where definition is sacrificed.After the completion of viewing, mobile phone can automatically by download First compressed data packets are deleted, to save the memory space of mobile phone.
The video backup and playing device of the present embodiment, when video data bag is deleted, video data bag are split, The one piece of data that video is started forms the first packet, by one or more second packets of formation below and uploads to cloud End, when user watches video, can play the content of the first packet first, meanwhile, the second packet can be downloaded from high in the clouds, Video can be normally watched when downloading the second packet.It sees that video is identical with prior art when downloading, but First packet downloads the second number equivalent to the video data of advance caching, the time that will watch the corresponding video of the first packet According to bag, viewing video that can also be smooth when network speed is poor improves the experience of the viewing video of user.
Reference picture 9, also provides a kind of mobile terminal, including processor 1180 and memory 1120 in the embodiment of the present invention; The memory 1120 is used to store the journey for supporting video backup and the above-mentioned video backup of playing device execution and player method Sequence;The processor 1180 is configurable for performing the program stored in the memory.
For convenience of description, the part related to the embodiment of the present invention is illustrate only, particular technique details is not disclosed, please With reference to present invention method part.The mobile terminal can be to include mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer etc. it is any eventually End equipment, so that mobile terminal is as mobile phone as an example:
Fig. 9 is illustrated that the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.Ginseng Fig. 9 is examined, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1110, memory 1120, input block 1130, display Unit 1140, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity (wireless fidelity, WiFi) module 1170, place The reason part such as device 1180 and power supply 1190.It will be understood by those skilled in the art that the handset structure shown in Fig. 9 not structure The restriction of paired mobile phone, can include part more more or less than diagram, or combine some parts, or different parts Arrangement.
Each component parts of mobile phone is specifically introduced with reference to Fig. 9:
RF circuits 1110 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, processed to processor 1180;In addition, up data is activation will be designed to base station.Generally, RF circuits 1110 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuits 1110 can also be led to by radio communication and network and other equipment Letter.Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 1120 can be used to store software program and module, and processor 1180 is by running storage in memory 1120 software program and module, so as to perform various function application and the data processing of mobile phone.Memory 1120 can be led To include storing program area and storage data field, wherein, storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data field can store the use institute according to mobile phone Data (such as voice data, phone directory etc.) of establishment etc..Additionally, memory 1120 can be stored including high random access Device, can also include nonvolatile memory, and for example, at least one disk memory, flush memory device or other volatibility are consolidated State memory device.
Input block 1130 can be used to receive the numeral or character information of input, and produce with the user of mobile phone set with And the relevant key signals input of function control.Specifically, input block 1130 may include contact panel 1131 and other inputs Equipment 1132.Contact panel 1131, also referred to as touch-screen, can collect user thereon or neighbouring touch operation (such as user Use the behaviour of any suitable object such as finger, stylus or annex on contact panel 1131 or near contact panel 1131 Make), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 1131 may include touch detection Two parts of device and touch controller.Wherein, touch detecting apparatus detect the touch orientation of user, and detect touch operation band The signal for coming, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 1180, and the order sent of receiving processor 1180 and can be performed.Additionally, Contact panel 1131 can be realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except touch surface Plate 1131, input block 1130 can also include other input equipments 1132.Specifically, other input equipments 1132 can include But it is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more.
Display unit 1140 can be used for show by user input information or be supplied to user information and mobile phone it is each Plant menu.Display unit 1140 may include display panel 1141, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 1141.Further, contact panel 1131 can cover display panel 1141, when contact panel 1131 is detected Arrive thereon or after neighbouring touch operation, processor 1180 is sent to determine the type of touch event, with preprocessor 1180 provide corresponding visual output according to the type of touch event on display panel 1141.Although in fig .9, contact panel 1131 is input and the input function that mobile phone is realized as two independent parts with display panel 1141, but in some realities In applying example, can by contact panel 1131 and display panel 1141 be integrated input that realize mobile phone and output function.
Mobile phone may also include at least one sensor 1150, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1141, proximity transducer can close display panel when mobile phone is moved in one's ear 1141 and/or backlight.Used as one kind of motion sensor, (generally three axles) add in the detectable all directions of accelerometer sensor The size of speed, can detect that size and the direction of gravity when static, can be used to recognize application (the such as horizontal/vertical screen of mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 1160, loudspeaker 1161, microphone 1162 can provide the COBBAIF between user and mobile phone.Audio Electric signal after the voice data conversion that circuit 1160 will can be received, is transferred to loudspeaker 1161, is changed by loudspeaker 1161 For voice signal is exported;On the other hand, the voice signal of collection is converted to electric signal by microphone 1162, by voicefrequency circuit 1160 Voice data is converted to after reception, then after voice data output processor 1180 is processed, through RF circuits 1110 being sent to ratio Such as another mobile phone, or voice data is exported to memory 1120 so as to further treatment.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 1170 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 9 shows WiFi module 1170, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Become in the essential scope of invention and omit.
Processor 1180 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, By running or performing software program and/or module of the storage in memory 1120, and storage is called in memory 1120 Interior data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 1180 may include one or more processing units;Preferably, processor 1180 can integrated application processor and modulation /demodulation treatment Device, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor is mainly located Reason radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1180.
Mobile phone also includes the power supply 1190 (such as battery) powered to all parts, it is preferred that power supply can be by power supply Management system is logically contiguous with processor 1180, so as to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although not shown, mobile phone can also will not be repeated here including camera, bluetooth module etc..
Reference picture 9, in embodiments of the present invention, the processor 1180 included by the mobile terminal also has following functions:
When mobile terminal deletes video data bag, the video data bag is at least divided into the first data according to preset rules Bag and the second packet, wherein storing the beginning data of the video data bag in the first packet;
First packet is stored in the local of the mobile terminal, the second packet high in the clouds is backuped into, and set up One packet is associated with second packet in the high in the clouds;
When playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with institute State the splicing of the first packet.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces Close or communicate to connect, can be electrical, mechanical or other forms.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
Complete power will be attached to here.
One of ordinary skill in the art will appreciate that all or part of step in realizing above-described embodiment method can be The hardware of correlation is instructed to complete by program, described program can be stored in a kind of computer-readable recording medium, on It can be read-only storage, disk or CD etc. to state the storage medium mentioned.
The preferred embodiments of the present invention are the foregoing is only, the scope of the claims of the invention, every utilization is not thereby limited Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations Technical field, be included within the scope of the present invention.
The embodiment of the present invention is also provided:
A1, a kind of video backup and player method, including:
When mobile terminal deletes video data bag, the video data bag is at least divided into the first data according to preset rules Bag and the second packet, wherein storing the beginning data of the video data bag in the first packet;
First packet is stored in the local of the mobile terminal, the second packet high in the clouds is backuped into, and set up One packet is associated with second packet in the high in the clouds;
When playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with institute State the splicing of the first packet.
A2, video backup and player method according to A1, it is described to set up the second of the first packet and the high in the clouds The step of association of packet, including:
First packet is recorded in the first local storage address, and second packet beyond the clouds second Storage address;
First storage address and the second storage address are associated.
A3, video backup and player method according to A1, it is described that first packet is stored in the movement Terminal it is local, second packet is backuped into high in the clouds, and set up the second packet of the first packet and the high in the clouds Association the step of, including:
Second packet is replicated by the high in the clouds, and the second packet of the duplication is ordered according to default compression Order carries out resolution compression, forms the first compressed data packets;
Second packet and the first compressed data packets are set up respectively at first packet and is associated.
A4, video backup and player method according to A3, during the video of broadcasting first packet, from institute The step of stating high in the clouds and download second packet to local, and splice with first packet, including:
Whether judge the mobile terminal is in free nets;
If being in free nets, when playing the video of first packet, described second is downloaded from the high in the clouds Packet splices to local with first packet;
If in charge network, when playing the video of first packet, described first is downloaded from the high in the clouds Compressed data packets are spliced to local with first packet.
A5, video backup and player method according to A3, during the video of broadcasting first packet, from institute The step of stating high in the clouds and download second packet to local, and splice with first packet, including:
Obtain the current data speed of download of the mobile terminal;
According to the data speed of download, judge to download the time span for completing the second packet;
If downloading the time span for completing the second packet more than the time span for playing the video, download described First compressed data packets, and splice with first packet.
A6, video backup and player method according to A1, it is described that first packet is stored in the movement Terminal it is local, second packet is backuped into high in the clouds, and set up the second packet of the first packet and the high in the clouds Association the step of, including:
Mobile terminal replicates second packet and is stored in locally, by the second packet of the duplication according to default Compress order carries out resolution compression, forms the second compressed data packets;
Second packet is set up with the second packet of compression respectively at first packet and is associated.
A7, video backup and player method according to A6, during the video of broadcasting first packet, from institute The step of stating high in the clouds and download second packet to local, and splice with first packet, including:
Whether judge the mobile terminal is in free nets;
If being in free nets, when playing the video of first packet, described second is downloaded from the high in the clouds Packet splices to local with first packet;
If in charge network, when playing the video of first packet, calling second compressed data packets, And splice with first packet.
A8, video backup and player method according to A6, during the video of broadcasting first packet, from institute The step of stating high in the clouds and download second packet to local, and splice with first packet, including:
Obtain the current data speed of download of the mobile terminal;
According to the data speed of download, judge to download the time span for completing the second packet;
If downloading the time span for completing the second packet more than the time span for playing the video, call described Second compressed data packets, and splice with first packet.
A9, video backup and player method according to A1, the preset rules, including:
Obtain the video data bag and play the time span needed during video, divided according to default reproduction time length The video data bag is divided into the first packet and the second packet by ratio.
A10, video backup and player method according to A1, the preset rules, including:
The capacity of the video data bag is obtained, the video data bag is divided into according to default capacity division proportion One packet and the second packet.
A11, video backup and player method according to A1, the preset rules, including:
Obtain the video data bag and play the time span needed during video, if video data bag is needed when playing video The time span wanted is more than default time span threshold value, then be divided into the video data bag according to the time span threshold value First packet and the second packet, wherein the time span that the first packet is played is equal to the time span threshold value.
A12, video backup and player method according to A1, during the video of broadcasting first packet, from Second packet is downloaded to local in the high in the clouds, and the step of splice with first packet after, including:
After video playback is finished, second packet downloaded from the high in the clouds is automatically deleted.
B1, a kind of video backup and playing device, including:
Split cells, for mobile terminal delete video data bag when, by the video data bag according to preset rules extremely It is divided into the first packet and the second packet less, wherein storing the beginning data of the video data bag in the first packet;
Backup associative cell, it is for the first packet to be stored in into the local of the mobile terminal, the second packet is standby Part to high in the clouds, and set up associating for the first packet and second packet in the high in the clouds;
Download unit is played, during for the video for playing first packet, second number is downloaded from the high in the clouds According to bag to local, and splice with first packet.
B2, video backup and playing device according to B1, the backup associative cell, including:
Logging modle, for recording first packet in the first local storage address, and second data Bag the second storage address beyond the clouds;
First relating module, for first storage address and the second storage address to be associated.
B3, video backup and playing device according to B1, the backup associative cell, including:
First replicates compression module, for replicating second packet by the high in the clouds, and by the of the duplication Two packets carry out resolution compression according to default compress order, form the first compressed data packets;
Second relating module, for by second packet and the first compressed data packets respectively at first packet Set up association.
B4, video backup and playing device according to B3, the broadcasting download unit, including:
First judge module, for judge the mobile terminal whether in free nets;If being in free nets, When then playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with described first Packet splices;If in charge network, when playing the video of first packet, described the is downloaded from the high in the clouds One compressed data packets are spliced to local with first packet.
B5, video backup and playing device according to B3, the broadcasting download unit, including:
First acquisition module, the data speed of download current for obtaining the mobile terminal;
Second judge module, for according to the data speed of download, judging that the time for downloading the second packet of completion is long Degree;If downloading the time span for completing the second packet more than the time span for playing the video, described first is downloaded Compressed data packets, and splice with first packet.
B6, video backup and playing device according to B1, the backup associative cell, including:
Second replicates compression module, replicates second packet for mobile terminal and is stored in locally, will be described multiple Second packet of system carries out resolution compression according to default compress order, forms the second compressed data packets;
3rd relating module, for by second packet and the second compressed data packets respectively at first packet Set up association.
B7, video backup and playing device according to B6, the broadcasting download unit, including:
3rd judge module, for judge the mobile terminal whether in free nets;If being in free nets, When then playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with described first Packet splices;If in charge network, when playing the video of first packet, calling second compressed data Bag, and splice with first packet.
B8, video backup and playing device according to B6, the broadcasting download unit, including:
Second acquisition module, the data speed of download current for obtaining the mobile terminal;
4th judge module, for according to the data speed of download, judging that the time for downloading the second packet of completion is long Degree;If downloading the time span for completing the second packet more than the time span for playing the video, described second is called Compressed data packets, and splice with first packet.
B9, video backup and playing device according to B1, the split cells, including:
First splits module, for obtaining the time span needed when the video data bag plays video, according to default Reproduction time length division proportion the video data bag is divided into the first packet and the second packet.
B10, video backup and playing device according to B1, the split cells, including:
Second splits module, the capacity for obtaining the video data bag, according to default capacity division proportion by institute State video data bag and be divided into the first packet and the second packet.
B11, video backup and playing device according to B1, the split cells, including:
3rd splits module, for obtaining the time span needed when the video data bag plays video, if video Packet plays the time span needed during video more than default time span threshold value, then will according to the time span threshold value The video data bag is divided into the first packet and the second packet, wherein the time span that the first packet is played is equal to described Time span threshold value.
B12, video backup and playing device according to B1, also include:
Unit is deleted, after being finished for video playback, second packet downloaded from the high in the clouds is automatically deleted.
C1, a kind of mobile terminal, including processor and memory;
The memory is used to store supports that video backup and playing device are performed any one of above-mentioned A1-A12 The program of video backup and player method;
The processor is configurable for performing the program stored in the memory.

Claims (10)

1. a kind of video backup and player method, it is characterised in that including:
When mobile terminal deletes video data bag, the video data bag is at least divided into according to preset rules the first packet and Second packet, wherein storing the beginning data of the video data bag in the first packet;
First packet is stored in the local of the mobile terminal, the second packet high in the clouds is backuped into, and set up the first number Associated with second packet in the high in the clouds according to bag;
When playing the video of first packet, second packet is downloaded to local from the high in the clouds, and with described the One packet splices.
2. video backup according to claim 1 and player method, it is characterised in that described to set up the first packet and institute The step of stating the association of the second packet in high in the clouds, including:
First packet is recorded in the first local storage address, and second packet the second storage beyond the clouds Address;
First storage address and the second storage address are associated.
3. video backup according to claim 1 and player method, it is characterised in that described to protect first packet There is the local of the mobile terminal, second packet is backuped into high in the clouds, and set up the first packet with the high in the clouds The second packet association the step of, including:
Second packet is replicated by the high in the clouds, and the second packet of the duplication is entered according to default compress order Row resolution compression, forms the first compressed data packets;
Second packet and the first compressed data packets are set up respectively at first packet and is associated.
4. video backup according to claim 3 and player method, it is characterised in that broadcasting first packet Video when, the step of downloading second packet to local from the high in the clouds, and splice with first packet, bag Include:
Whether judge the mobile terminal is in free nets;
If being in free nets, when playing the video of first packet, second data are downloaded from the high in the clouds Bag splices to local with first packet;
If in charge network, when playing the video of first packet, first compression is downloaded from the high in the clouds Packet splices to local with first packet.
5. video backup according to claim 3 and player method, it is characterised in that broadcasting first packet Video when, the step of downloading second packet to local from the high in the clouds, and splice with first packet, bag Include:
Obtain the current data speed of download of the mobile terminal;
According to the data speed of download, judge to download the time span for completing the second packet;
If downloading the time span for completing the second packet more than the time span for playing the video, described first is downloaded Compressed data packets, and splice with first packet.
6. video backup according to claim 1 and player method, it is characterised in that described to protect first packet There is the local of the mobile terminal, second packet is backuped into high in the clouds, and set up the first packet with the high in the clouds The second packet association the step of, including:
Mobile terminal replicates second packet and is stored in locally, by the second packet of the duplication according to default compression Order carries out resolution compression, forms the second compressed data packets;
Second packet is set up with the second packet of compression respectively at first packet and is associated.
7. video backup according to claim 6 and player method, it is characterised in that broadcasting first packet Video when, the step of downloading second packet to local from the high in the clouds, and splice with first packet, bag Include:
Whether judge the mobile terminal is in free nets;
If being in free nets, when playing the video of first packet, second data are downloaded from the high in the clouds Bag splices to local with first packet;
If in charge network, when playing the video of first packet, call second compressed data packets, and with The first packet splicing.
8. video backup according to claim 6 and player method, it is characterised in that broadcasting first packet Video when, the step of downloading second packet to local from the high in the clouds, and splice with first packet, bag Include:
Obtain the current data speed of download of the mobile terminal;
According to the data speed of download, judge to download the time span for completing the second packet;
If downloading the time span for completing the second packet more than the time span for playing the video, described second is called Compressed data packets, and splice with first packet.
9. a kind of video backup and playing device, it is characterised in that including:
Split cells, when deleting video data bag for mobile terminal, the video data bag is at least divided according to preset rules Into the first packet and the second packet, wherein storing the beginning data of the video data bag in the first packet;
Backup associative cell, for the first packet to be stored in into the local of the mobile terminal, the second packet is backuped to High in the clouds, and set up associating for the first packet and second packet in the high in the clouds;
Download unit is played, during for the video for playing first packet, second packet is downloaded from the high in the clouds To local, and splice with first packet.
10. a kind of mobile terminal, it is characterised in that including processor and memory;
The memory is used to store supports that video backup and playing device perform claim require the video any one of 1-8 Backup and the program of player method;
The processor is configurable for performing the program stored in the memory.
CN201611192999.XA 2016-12-21 2016-12-21 Mobile terminal and video backup and play method and device thereof Active CN106817621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611192999.XA CN106817621B (en) 2016-12-21 2016-12-21 Mobile terminal and video backup and play method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611192999.XA CN106817621B (en) 2016-12-21 2016-12-21 Mobile terminal and video backup and play method and device thereof

Publications (2)

Publication Number Publication Date
CN106817621A true CN106817621A (en) 2017-06-09
CN106817621B CN106817621B (en) 2020-10-02

Family

ID=59109361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611192999.XA Active CN106817621B (en) 2016-12-21 2016-12-21 Mobile terminal and video backup and play method and device thereof

Country Status (1)

Country Link
CN (1) CN106817621B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110022482A (en) * 2019-03-05 2019-07-16 咪咕视讯科技有限公司 Video plays broadcasting method, video service system and storage medium
CN113741814A (en) * 2021-08-24 2021-12-03 深圳Tcl新技术有限公司 Data processing method, data processing device, computer readable storage medium and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957717A (en) * 2011-08-23 2013-03-06 崔春明 Local cache equipment for cloud backup services
CN103716227A (en) * 2013-12-12 2014-04-09 北京京东尚科信息技术有限公司 Method and device for performing information interaction in instant messenger
US20150135229A1 (en) * 2012-07-26 2015-05-14 Tencent Technology (Shenzhen) Company Limited Digital television terminal, video file playing method and video file playing system
CN105760490A (en) * 2016-02-17 2016-07-13 北京金山安全软件有限公司 Resource storage method and device and electronic equipment
CN105843814A (en) * 2015-01-14 2016-08-10 阿里巴巴集团控股有限公司 Method, device, and system for generating page
CN106203154A (en) * 2016-06-27 2016-12-07 联想(北京)有限公司 A kind of file memory method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957717A (en) * 2011-08-23 2013-03-06 崔春明 Local cache equipment for cloud backup services
US20150135229A1 (en) * 2012-07-26 2015-05-14 Tencent Technology (Shenzhen) Company Limited Digital television terminal, video file playing method and video file playing system
CN103716227A (en) * 2013-12-12 2014-04-09 北京京东尚科信息技术有限公司 Method and device for performing information interaction in instant messenger
CN105843814A (en) * 2015-01-14 2016-08-10 阿里巴巴集团控股有限公司 Method, device, and system for generating page
CN105760490A (en) * 2016-02-17 2016-07-13 北京金山安全软件有限公司 Resource storage method and device and electronic equipment
CN106203154A (en) * 2016-06-27 2016-12-07 联想(北京)有限公司 A kind of file memory method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110022482A (en) * 2019-03-05 2019-07-16 咪咕视讯科技有限公司 Video plays broadcasting method, video service system and storage medium
CN113741814A (en) * 2021-08-24 2021-12-03 深圳Tcl新技术有限公司 Data processing method, data processing device, computer readable storage medium and computer equipment

Also Published As

Publication number Publication date
CN106817621B (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN104243671A (en) Volume adjustment method and device and electronic device
CN106911848B (en) Method for outputting prompt message and terminal equipment
CN104796743A (en) Content item display system, method and device
CN105094809A (en) Combined picture layout modification method and device and terminal equipment
CN103390034A (en) Image display method, device, terminal and server
CN105516784A (en) Virtual good display method and device
CN104238893A (en) Video preview image displaying method and device
CN106791916B (en) Method, device and system for recommending audio data
CN104869465A (en) Video playing control method and device
CN106797336A (en) The method and apparatus of history chat record displaying
CN105447124A (en) Virtual article sharing method and device
CN108388451A (en) Method for starting up mobile terminal, device and mobile terminal
CN103458286A (en) Television channel switching method and device
CN105185401A (en) Method and device for synchronizing multi-media file list
CN103581762A (en) Method, device and terminal equipment for playing network videos
CN107371064B (en) Mobile terminal and audio and video playing method and device thereof
CN105550316A (en) Pushing method and device of audio list
CN109144537A (en) The method, apparatus that mobile terminal and wearable device upgrade automatically
CN107977261A (en) Method, equipment, mobile terminal and the computer-readable storage medium of limiting process
CN104408051A (en) Song recommendation method and device
CN108628534B (en) Character display method and mobile terminal
CN103336677B (en) A kind of methods, devices and systems to display device output image
CN106817621A (en) Mobile terminal and its video backup and playing method and device
CN104244448B (en) Reduce the method and system of data transmission delay

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170804

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant