CN106817621B - Mobile terminal and video backup and play method and device thereof - Google Patents

Mobile terminal and video backup and play method and device thereof Download PDF

Info

Publication number
CN106817621B
CN106817621B CN201611192999.XA CN201611192999A CN106817621B CN 106817621 B CN106817621 B CN 106817621B CN 201611192999 A CN201611192999 A CN 201611192999A CN 106817621 B CN106817621 B CN 106817621B
Authority
CN
China
Prior art keywords
data packet
video
data
downloading
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611192999.XA
Other languages
Chinese (zh)
Other versions
CN106817621A (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 Anyun Century 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 Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century 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

Images

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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a mobile terminal and a video backup and play method and a device thereof, wherein the video backup and play method comprises the following steps: when the mobile terminal deletes a video data packet, dividing the video data packet into at least a first data packet and a second data packet according to a preset rule, wherein the first data packet stores the starting data of the video data packet; storing a first data packet in the local of the mobile terminal, backing up a second data packet to a cloud terminal, and establishing association between the first data packet and the second data packet of the cloud terminal; and when the video of the first data packet is played, downloading the second data packet from the cloud to the local, and splicing the second data packet with the first data packet. The method is the same as the method for downloading and watching the video in the prior art, but the first data packet is equivalent to the video data cached in advance, the second data packet is downloaded at the time of watching the video corresponding to the first data packet, the video can be watched smoothly when the network speed is poor, and the video watching experience of a user is improved.

Description

Mobile terminal and video backup and play method and device thereof
Technical Field
The invention relates to the field of video backup and play, in particular to a mobile terminal and a video backup and play method and device thereof.
Background
In the prior art, the storage space of mobile terminals such as mobile phones is fixed, and the main content occupying the storage space of the mobile terminals is pictures or videos. In order to reserve enough storage space for daily use, a user can delete or backup the videos of the pictures which are not commonly used to the cloud. When checking the picture, the data packet of the picture is relatively small, and the picture can be directly downloaded to the cloud end for watching, but if the video of the cloud end is wanted to be checked, if the video is downloaded from the cloud end and then watched, the time is wasted, if the video is downloaded and watched at the same time, if the resolution ratio of the video is too high, and the network data transmission speed is slow, the situation that the video is blocked can occur, and the normal use of a user is influenced.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal, a video backup and playing method and a video backup and playing device thereof, aiming at improving the video playing fluency when video data is downloaded and video is played.
In order to achieve the above object, the present invention provides a video backup and playing method, including:
when the mobile terminal deletes a video data packet, dividing the video data packet into at least a first data packet and a second data packet according to a preset rule, wherein the first data packet stores the starting data of the video data packet;
storing a first data packet in the local of the mobile terminal, backing up a second data packet to a cloud terminal, and establishing association between the first data packet and the second data packet of the cloud terminal;
and when the video of the first data packet is played, downloading the second data packet from the cloud to the local, and splicing the second data packet with the first data packet.
Further, the step of establishing an association between the first data packet and the second data packet in the cloud includes:
recording a first storage address of the first data packet in the local and a second storage address of the second data packet in the cloud;
and associating the first storage address with the second storage address.
Further, the step of saving the first data packet in the local of the mobile terminal, backing up the second data packet to the cloud, and establishing the association between the first data packet and the second data packet in the cloud includes:
copying the second data packet through the cloud end, and performing resolution compression on the copied second data packet according to a preset compression command to form a first compressed data packet;
and establishing association between the second data packet and the first compressed data packet and the first data packet respectively.
Further, when playing the video of the first data packet, the step of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet includes:
judging whether the mobile terminal is in a free network or not;
if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played;
and if the mobile terminal is in a charging network, downloading the first compressed data packet from the cloud to the local and splicing the first compressed data packet with the first data packet when the video of the first data packet is played.
Further, when playing the video of the first data packet, the step of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet includes:
acquiring the current data downloading speed of the mobile terminal;
judging the time length of the second data packet after downloading according to the data downloading speed;
and if the time length of the second data packet after downloading is longer than the time length of playing the video, downloading the first compressed data packet and splicing with the first data packet.
Further, the step of saving the first data packet in the local of the mobile terminal, backing up the second data packet to the cloud, and establishing the association between the first data packet and the second data packet in the cloud includes:
the mobile terminal copies the second data packet and stores the second data packet locally, and the copied second data packet is subjected to resolution compression according to a preset compression command to form a second compressed data packet;
and establishing association between the second data packet and the compressed second data packet respectively in the first data packet.
Further, when playing the video of the first data packet, the step of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet includes:
judging whether the mobile terminal is in a free network or not;
if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played;
and if the mobile terminal is in the charging network, calling the second compressed data packet and splicing with the first data packet when the video of the first data packet is played.
Further, when playing the video of the first data packet, the step of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet includes:
acquiring the current data downloading speed of the mobile terminal;
judging the time length of the second data packet after downloading according to the data downloading speed;
and if the time length of the second data packet after downloading is longer than the time length of playing the video, calling the second compressed data packet and splicing with the first data packet.
Further, the preset rule includes:
and acquiring the time length required by the video data packet when playing the video, and dividing the video data packet into a first data packet and a second data packet according to a preset playing time length division ratio.
Further, the preset rule includes:
and acquiring the capacity of the video data packet, and dividing the video data packet into a first data packet and a second data packet according to a preset capacity division ratio.
Further, the preset rule includes:
and acquiring the time length required by the video data packet when playing the video, and if the time length required by the video data packet when playing the video is greater than a preset time length threshold, dividing the video data packet into a first data packet and a second data packet according to the time length threshold, wherein the time length for playing the first data packet is equal to the time length threshold.
Further, after the step of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet while playing the video of the first data packet, the method includes:
and after the video playing is finished, automatically deleting the second data packet downloaded from the cloud.
The invention also provides a video backup and play device, comprising:
the mobile terminal comprises a splitting unit and a sending unit, wherein the splitting unit is used for splitting a video data packet into at least a first data packet and a second data packet according to a preset rule when the mobile terminal deletes the video data packet, and the first data packet stores the start data of the video data packet;
the backup association unit is used for storing the first data packet in the local of the mobile terminal, backing up the second data packet to the cloud terminal and establishing the association between the first data packet and the second data packet of the cloud terminal;
and the playing and downloading unit is used for downloading the second data packet from the cloud end to the local and splicing the second data packet with the first data packet when the video of the first data packet is played.
Further, the backup association unit includes:
the recording module is used for recording a first storage address of the first data packet at the local and a second storage address of the second data packet at the cloud;
and the first association module is used for associating the first storage address with the second storage address.
Further, the backup association unit includes:
the first replication compression module is used for replicating the second data packet through the cloud end and performing resolution compression on the replicated second data packet according to a preset compression command to form a first compressed data packet;
and the second association module is used for establishing association between the second data packet and the first compressed data packet and the first data packet respectively.
Further, the play downloading unit includes:
the first judgment module is used for judging whether the mobile terminal is in a free network or not; if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played; and if the mobile terminal is in a charging network, downloading the first compressed data packet from the cloud to the local and splicing the first compressed data packet with the first data packet when the video of the first data packet is played.
Further, the play downloading unit includes:
the first acquisition module is used for acquiring the current data downloading speed of the mobile terminal;
the second judging module is used for judging the time length of the second data packet after downloading according to the data downloading speed; and if the time length of the second data packet after downloading is longer than the time length of playing the video, downloading the first compressed data packet and splicing with the first data packet.
Further, the backup association unit includes:
the second replication compression module is used for the mobile terminal to replicate the second data packet and store the second data packet locally, and the replicated second data packet is subjected to resolution compression according to a preset compression command to form a second compressed data packet;
and the third association module is used for establishing association between the second data packet and the second compressed data packet in the first data packet respectively.
Further, the play downloading unit includes:
the third judging module is used for judging whether the mobile terminal is in a free network or not; if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played; and if the mobile terminal is in the charging network, calling the second compressed data packet and splicing with the first data packet when the video of the first data packet is played.
Further, the play downloading unit includes:
the second acquisition module is used for acquiring the current data downloading speed of the mobile terminal;
the fourth judging module is used for judging the time length of the second data packet after downloading according to the data downloading speed; and if the time length of the second data packet after downloading is longer than the time length of playing the video, calling the second compressed data packet and splicing with the first data packet.
Further, the splitting unit includes:
the first splitting module is used for obtaining the time length required by the video data packet when playing a video, and dividing the video data packet into a first data packet and a second data packet according to a preset playing time length division ratio.
Further, the splitting unit includes:
and the second splitting module is used for acquiring the capacity of the video data packet and splitting the video data packet into a first data packet and a second data packet according to a preset capacity division ratio.
Further, the splitting unit includes:
and the third splitting module is used for acquiring the time length required by the video data packet when the video data packet plays the video, and if the time length required by the video data packet when the video data packet plays the video is greater than a preset time length threshold, dividing the video data packet into a first data packet and a second data packet according to the time length threshold, wherein the time length for playing the first data packet is equal to the time length threshold.
Further, the video backup and playback device further includes:
and the deleting unit is used for automatically deleting the second data packet downloaded from the cloud after the video playing is finished.
The invention also provides a mobile terminal, which comprises a processor and a memory;
the memory is used for storing a program supporting the video backup and playing device to execute the video backup and playing method;
the processor is configured to execute programs stored in the memory.
According to the mobile terminal and the video backup and playing method and device thereof, when the video data packet is deleted, the video data packet is split, a first section of data at the beginning of the video is formed into the first data packet, one or more second data packets are formed at the later section of the video and are uploaded to the cloud end, when a user watches the video, the content of the first data packet is firstly played, meanwhile, the second data packet is downloaded from the cloud end, and the video can be normally watched when the second data packet is downloaded. The method is the same as the method for downloading and watching the video in the prior art, but the first data packet is equivalent to the video data cached in advance, the second data packet is downloaded at the time of watching the video corresponding to the first data packet, the video can be watched smoothly when the network speed is poor, and the video watching experience of a user is improved.
Drawings
Fig. 1 is a schematic flowchart of a video backup and playing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a video backup and playing method according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating a video backup and playback device according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating a structure of a backup association unit according to an embodiment of the present invention;
FIG. 5A is a block diagram illustrating a backup association unit according to an embodiment of the present invention;
FIG. 5B is a block diagram illustrating a backup association unit according to another embodiment of the present invention;
FIG. 6A is a block diagram of a broadcast download unit according to an embodiment of the present invention;
FIG. 6B is a block diagram of a broadcast download unit according to another embodiment of the present invention;
FIG. 7A is a block diagram of a broadcast download unit according to another embodiment of the present invention;
FIG. 7B is a block diagram of a broadcast download unit according to another embodiment of the present invention
FIG. 8 is a block diagram illustrating a video backup and playback device according to an embodiment of the present invention;
fig. 9 is a block diagram illustrating a structure of a mobile terminal according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be understood by those skilled in the art, the mobile terminal herein refers to an electronic device such as a smart phone or a tablet computer.
Referring to fig. 1, an embodiment of the present invention provides a video backup method, including:
s1, when the mobile terminal deletes the video data packet, dividing the video data packet into at least a first data packet and a second data packet according to a preset rule, wherein the first data packet stores the start data of the video data packet;
s2, storing the first data packet in the local of the mobile terminal, backing up the second data packet to the cloud, and establishing the association between the first data packet and the second data packet in the cloud;
and S3, when the video of the first data packet is played, downloading the second data packet from the cloud to the local, and splicing the second data packet with the first data packet.
As described in step S1, the video data packet is a data set containing video data resources. When the first data packet is a video corresponding to the video data packet, a video data set containing the first video data is used, that is, when the video is played, the data in the first data packet must be used first. The second data packet is the video data packet which is formed after being combined with the first data packet. The second data packets can be divided into a plurality of second data packets according to specific conditions, and when the video is played, the plurality of second data packets are sequentially downloaded to form a complete video data packet with the first data packet, so that a user can watch the complete video. In general, only one second packet is set.
As described in steps S2 and S3, the cloud is a general network that can communicate with computers or obtain services provided by a remote host through a network. The first data packet is stored locally, the second data packet is uploaded to the cloud, the video data packet is split, and as a result, only the first data packet is left locally at the mobile terminal, the occupied storage space of the mobile terminal is small, and the storage space of the mobile terminal is effectively saved. And uploading the second data packet to the cloud end, so that the second data packet can be directly downloaded conveniently during downloading and use. When the video is watched, the first data packet is equivalent to the video data cached in advance, the second data packet is downloaded at the time of watching the video corresponding to the first data packet, the video can be watched smoothly when the network speed is poor, and the video watching experience of a user is improved. The association between the first data packet and the second data packet of the cloud terminal is established so as to conveniently inform the cloud terminal when the video in the first data packet is watched, and find the corresponding second data packet at the cloud terminal for downloading.
In this embodiment, the step of establishing the association between the first data packet and the second data packet in the cloud includes:
s21, recording a first local storage address of the first data packet and a second local storage address of the second data packet in the cloud;
and S22, associating the first storage address with the second storage address.
As described in the above steps S21 and S22, the first storage address of the first data packet and the second storage address of the second data packet are associated, so that when the video of the first data packet is played, the second storage address can be directly found from the first storage address, and the second data packet can be quickly found for downloading.
In this embodiment, the step S2 of saving the first data package in the local of the mobile terminal, backing up the second data package to the cloud, and establishing an association between the first data package and the second data package in the cloud includes:
s23, copying the second data packet through the cloud end, and performing resolution compression on the copied second data packet according to a preset compression command to form a first compressed data packet;
and S24, establishing association between the second data packet and the first compressed data packet respectively in the first data packet.
As described in the foregoing steps S23 and S24, the process of copying the second data packet and compressing the copied second data packet is performed at the cloud, so that the resource overhead of the mobile terminal is saved. The video content in the first compressed packet is the same as the video content in the second packet, but the resolution is lower, so the data size is smaller than that of the second packet, for example, the video corresponding to the second packet is high definition video, the data size is 1G, and the data size of the corresponding first compressed packet may only be 100M. The preset compression command is generally a specified compression ratio, for example, compression is performed according to a ratio of 10:1, and then the second data packet of 1G is compressed to form a first compressed data packet of 100M. The preset compression command may also be a compression ratio for automatically adjusting the resolution according to the resolution of the second data packet, for example, if the resolution of the video of the second data packet is originally low, a small ratio of compression may be performed, for example, if the second data packet is a standard definition video of 200M, the compression ratio may be 2:1, and a video with a lower resolution of 100M is obtained after compression. The second data packet and the first compressed data packet have different storage addresses, so that the first data packet is respectively associated with the second data packet and the first compressed data packet, and different data packets are selected for downloading according to the use condition.
In this embodiment, the step S3 of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when playing the video of the first data packet includes:
s31, judging whether the mobile terminal is in a free network or not;
s32, if the network is a free network, when the video of the first data packet is played, downloading the second data packet from the cloud to the local, and splicing the second data packet with the first data packet;
and S33, if the mobile terminal is in the charging network, downloading the first compressed data packet from the cloud to the local terminal and splicing the first compressed data packet with the first data packet when playing the video of the first data packet.
As described in the above steps S31, S32, and S33, the data amount of the video is generally large, and if the second packet is downloaded to view the video using the charged network, although the video with higher resolution can be viewed, it will be necessary to spend a higher cost, and if the first compressed packet is downloaded, it will cost a lower cost. The free network generally means that the mobile terminal is connected to a free WiFi network, and the data network such as 3G/4G provided by the mobile, unicom and other operators is a charging network.
In another embodiment, the step S3 of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played includes:
s34, acquiring the current data downloading speed of the mobile terminal;
s35, judging the time length of the second data packet after downloading according to the data downloading speed;
and S36, if the time length of the second data packet after downloading is longer than the time length of playing the video, downloading the first compressed data packet and splicing with the first data packet.
As described in the above steps S34, S35, and S36, since the resolution of the video corresponding to the second data packet is higher, the data size is larger, and if the data downloading speed is slower when the video is watched, after the video corresponding to the first data packet is watched and part of the data of the second data packet is downloaded instantly, a user may be stuck when watching the video, which affects the user experience. Therefore, the current data downloading speed is obtained first, the time length of finishing downloading the second data packet is calculated, and if the time length is longer than the time length of playing the video spliced by the first data packet and the second data packet, it indicates that the video cannot be watched smoothly and the pause phenomenon is inevitably generated. Therefore, it is more suitable to select the first compressed data packet with smaller data size, and the time length of the download from the cloud end may be shorter than the time length of the video after the splicing of the first data packet and the second data packet is played, so that the pause phenomenon does not occur in the playing. Even though the time length of the downloading from the cloud end is possibly longer than the time length of the video after the splicing of the first data packet and the first compressed data packet is played, the phenomenon of pause is slightly more slight than the phenomenon of pause when the second data packet is downloaded to watch the video.
In another embodiment, the step S2 of saving the first data package in the local of the mobile terminal, backing up the second data package to the cloud, and establishing an association between the first data package and the second data package in the cloud includes:
s25, the mobile terminal copies the second data packet and stores the second data packet locally, and the copied second data packet is subjected to resolution compression according to a preset compression command to form a second compressed data packet;
and S26, establishing the association between the second data packet and the second compressed data packet with the first data packet respectively.
As described in the foregoing steps S25 and S26, the process of copying the second data packet and compressing the copied second data packet is performed at the mobile terminal, and only the second data packet needs to be uploaded during backup, without uploading the second compressed data packet. Although the second compressed data packet is stored locally at the mobile terminal, it is compressed, so that the purpose of saving the storage space of the mobile terminal can still be achieved. The video content in the second compressed data packet is the same as the video content of the second data packet, but the resolution is lower, so the data size is smaller than that of the second data packet, for example, the video corresponding to the second data packet is high definition video, the data size is 1G, and the data size of the corresponding second compressed data packet may only be 100M. The preset compression command is generally a specified compression ratio, for example, compression is performed according to a ratio of 10:1, and then the second data packet of 1G is compressed to form a second compressed data packet of 100M. The preset compression command may also be a compression ratio for automatically adjusting the resolution according to the resolution of the second data packet, for example, if the resolution of the video of the second data packet is originally low, a small ratio of compression may be performed, for example, if the second data packet is a standard definition video of 200M, the compression ratio may be 2:1, and a video with a lower resolution of 100M is obtained after compression. The second data packet and the second compressed data packet have different storage addresses, so that the first data packet is respectively associated with the second data packet and the second compressed data packet, and different data packets are selected according to the use condition. And when the second compressed data packet is used, downloading is not needed, and network resources are saved.
In this embodiment, the step S3 of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when playing the video of the first data packet includes:
s301, judging whether the mobile terminal is in a free network or not;
s302, if the mobile terminal is in a free network, when the video of the first data packet is played, downloading the second data packet from the cloud to the local, and splicing the second data packet with the first data packet;
s303, if the mobile terminal is in the charging network, the second compressed data packet is called and spliced with the first data packet when the video of the first data packet is played.
As described in the above steps S301, S302 and S303, the data amount of the video is generally large, if the second packet is downloaded to view the video using the charged network, although the video with higher resolution can be viewed, it will be necessary to spend higher cost, and if the second compressed packet is downloaded, it is only necessary to directly call the video locally without spending any cost. The free network generally means that the mobile terminal is connected to a free WiFi network, and the data network such as 3G/4G provided by the mobile, unicom and other operators is a charging network.
In another embodiment, the step S3 of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played includes:
s304, acquiring the current data downloading speed of the mobile terminal;
s305, judging the time length of the second data packet after downloading according to the data downloading speed;
s306, if the time length of the second data packet after downloading is longer than the time length of playing the video, calling the second compressed data packet and splicing with the first data packet.
As described in the above steps S304, S305, and S306, since the resolution of the video corresponding to the second data packet is higher, the data size is larger, and if the data downloading speed is slower when the video is watched, if the video corresponding to the first data packet is watched and after part of the data of the second data packet is downloaded instantly, the user may be stuck when watching the video, which affects the user experience. Therefore, the current data downloading speed is obtained first, the time length of finishing downloading the second data packet is calculated, and if the time length is longer than the time length of playing the video spliced by the first data packet and the second data packet, it indicates that the video cannot be watched smoothly and the pause phenomenon is inevitably generated. And the local second compressed data packet is called to be spliced with the first data packet, downloading is not needed, and when the video is watched, only the video definition is influenced, but the video is watched smoothly, and the phenomenon of blocking cannot occur.
In this embodiment, the preset rule, that is, the rule for splitting the video data packet, includes: and acquiring the time length required by the video data packet when playing the video, and dividing the video data packet into a first data packet and a second data packet according to a preset playing time length division ratio. Namely, the video data packet is split according to the specified proportion of the time length of the video playing completion. For example, the split ratio is 1:9, and then a 100-minute movie is split to obtain a 10-minute first packet and a 90-minute second packet. During watching, the video resources used in the first 10 minutes are local to the mobile terminal, and the second data packet and the like are downloaded in the 10 minutes, so that the smoothness of watching the film is greatly improved.
In another embodiment, the preset rule, that is, the rule for splitting the video data packet, includes: and acquiring the capacity of the video data packet, and dividing the video data packet into a first data packet and a second data packet according to a preset capacity division ratio. Namely, the capacity of the video data packet is divided according to the designated proportion. For example, the split ratio is 1:9, then a 1000M movie is split to obtain 100M first packets and 900M second packets. When watching, the video resource used by the first 100M is local to the mobile terminal, and the second data packet and the like are downloaded during the video watching time of the first 100M, so that the fluency of watching the movie is greatly improved.
In another embodiment, the preset rule, that is, the rule for splitting the video data packet, includes: and acquiring the time length required by the video data packet when playing the video, and if the time length required by the video data packet when playing the video is greater than a preset time length threshold, dividing the video data packet into a first data packet and a second data packet according to the time length threshold, wherein the time length for playing the first data packet is equal to the time length threshold. The time length threshold is a designated time length, the mobile terminal measures the standard whether to split the video data packet, if the playing time length of the video data packet is greater than the time length threshold, the part of the time length corresponding to the time length threshold before the video data packet is played is split into a first data packet, and a second data packet is formed later. If the playing time length of the video data packet is less than or equal to the time length threshold, the split preset rule cannot be used. In a specific embodiment, the video playing time length corresponding to the video data packet is 100 minutes, and the time yield threshold is 10 minutes, so that the video data packet will use the data corresponding to the first 10 minutes of playing as the first data packet, and the data corresponding to the subsequent 90 minutes as the second data packet.
Referring to fig. 2, in this embodiment, after the step S3 of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played, the method includes:
and S4, automatically deleting the second data packet downloaded from the cloud after the video playing is finished.
As described in the above step S4, the video data packet is split into a first data packet and a second data packet, which indicate that the user has viewed the video, and then deleted, so as to save the storage space of the mobile terminal. Therefore, when the user watches the second data packet again, the second data packet downloaded from the cloud end is deleted after the user watches the second data packet, the use habit and the appeal of the user are met, the operation steps of the user are reduced, and the use experience of the user is improved. Certainly, when the second data packet downloaded from the cloud is deleted, a prompt selection button appears, and if the user does not want to delete the second data packet, the user can select a button such as "save" and the like to keep the second data packet in the mobile terminal.
In a specific embodiment, the mobile terminal of the user is a mobile phone, and a high-definition film with a data volume of 2000M is stored in the mobile phone, so that in daily life, the occupied storage space of the mobile phone is large, and the storage and use of the mobile phone by the user are influenced, so that the user wants to delete the high-definition film. When deleting, the mobile phone splits the data, and the data volume is divided into 1: and (3) splitting the ratio of 99 to obtain a first data packet of 20M and a second data packet of 1980M, uploading the second data packet to the cloud, copying the second data packet at the cloud, and performing 10:1 resolution compression on the copied second data packet to obtain a first compressed data packet of 198M. When the high-definition film is watched again, the current data downloading speed is judged firstly, if the duration of watching the high-definition film is shorter than the duration of downloading the second data packet, the first compressed data packet and the first data packet are selected to be downloaded and spliced, and the high-definition film is watched smoothly under the condition of sacrificing definition. After the mobile phone finishes watching, the mobile phone can automatically delete the downloaded first compressed data packet so as to save the storage space of the mobile phone.
According to the video backup and playing method, when the video data packet is deleted, the video data packet is split, a first section of data at the beginning of the video is formed into the first data packet, one or more second data packets are formed at the back and uploaded to the cloud, when a user watches the video, the content of the first data packet can be played at first, meanwhile, the second data packet can be downloaded from the cloud, and the video can be watched normally when the second data packet is downloaded. The method is the same as the method for downloading and watching the video in the prior art, but the first data packet is equivalent to the video data cached in advance, the second data packet is downloaded at the time of watching the video corresponding to the first data packet, the video can be watched smoothly when the network speed is poor, and the video watching experience of a user is improved.
Referring to fig. 3, the present embodiment further provides a video backup apparatus, including:
the splitting unit 10 is configured to, when the mobile terminal deletes a video data packet, split the video data packet into at least a first data packet and a second data packet according to a preset rule, where the first data packet stores start data of the video data packet;
the backup association unit 20 is configured to store the first data packet in the local of the mobile terminal, backup the second data packet to the cloud, and establish an association between the first data packet and the second data packet in the cloud;
and the playing and downloading unit 30 is configured to download the second data packet from the cloud to the local and splice the second data packet with the first data packet when playing the video of the first data packet.
As for the splitting unit 10, the video data packet is a data set containing video data resources. When the first data packet is a video corresponding to the video data packet, a video data set containing the first video data is used, that is, when the video is played, the data in the first data packet must be used first. The second data packet is the video data packet which is formed after being combined with the first data packet. The second data packets can be divided into a plurality of second data packets according to specific conditions, and when the video is played, the plurality of second data packets are sequentially downloaded to form a complete video data packet with the first data packet, so that a user can watch the complete video. In general, only one second packet is set.
As the backup association unit 20 and the broadcast downloading unit 30 are described above, the cloud is actually a general network, which can communicate computing tasks of multiple computers through a network or obtain services provided by a remote host through a network connection. The first data packet is stored locally, the second data packet is uploaded to the cloud, the video data packet is split, and as a result, only the first data packet is left locally at the mobile terminal, the occupied storage space of the mobile terminal is small, and the storage space of the mobile terminal is effectively saved. And uploading the second data packet to the cloud end, so that the second data packet can be directly downloaded conveniently during downloading and use. When the video is watched, the first data packet is equivalent to the video data cached in advance, the second data packet is downloaded at the time of watching the video corresponding to the first data packet, the video can be watched smoothly when the network speed is poor, and the video watching experience of a user is improved. The association between the first data packet and the second data packet of the cloud terminal is established so as to conveniently inform the cloud terminal when the video in the first data packet is watched, and find the corresponding second data packet at the cloud terminal for downloading.
Referring to fig. 4, in this embodiment, the backup association unit 20 includes:
the recording module 21 is configured to record a local first storage address of the first data packet and a cloud second storage address of the second data packet;
a first associating module 22, configured to associate the first storage address with the second storage address.
As mentioned above, the recording module 21 and the first associating module 22 associate the first storage address of the first data packet with the second storage address of the second data packet, and when playing the video of the first data packet, the second storage address can be directly found through the first storage address, so as to quickly find the second data packet for downloading.
Referring to fig. 5A, in this embodiment, the backup association unit 20 includes:
the first replication compression module 23 is configured to replicate the second data packet through the cloud, and perform resolution compression on the replicated second data packet according to a preset compression command to form a first compressed data packet;
a second associating module 24, configured to associate the second data packet and the first compressed data packet with the first data packet, respectively.
As the above first replication compression module 23 and the second association module 24, the process of replicating the second data packet and compressing the replicated second data packet is performed at the cloud, so that the resource overhead of the mobile terminal is saved. The video content in the first compressed packet is the same as the video content in the second packet, but the resolution is lower, so the data size is smaller than that of the second packet, for example, the video corresponding to the second packet is high definition video, the data size is 1G, and the data size of the corresponding first compressed packet may only be 100M. The preset compression command is generally a specified compression ratio, for example, compression is performed according to a ratio of 10:1, and then the second data packet of 1G is compressed to form a first compressed data packet of 100M. The preset compression command may also be a compression ratio for automatically adjusting the resolution according to the resolution of the second data packet, for example, if the resolution of the video of the second data packet is originally low, a small ratio of compression may be performed, for example, if the second data packet is a standard definition video of 200M, the compression ratio may be 2:1, and a video with a lower resolution of 100M is obtained after compression. The second data packet and the first compressed data packet have different storage addresses, so that the first data packet is respectively associated with the second data packet and the first compressed data packet, and different data packets are selected for downloading according to the use condition.
Referring to fig. 5B, in another embodiment, the backup association unit 20 includes:
the second replication compression module 25 is configured to replicate the second data packet and store the second data packet locally, and perform resolution compression on the replicated second data packet according to a preset compression command to form a second compressed data packet;
a third association module 26, configured to associate the second data packet and the second compressed data packet with the first data packet, respectively.
As mentioned above, the second replication compression module 25 and the third association module 26 replicate the second data packet and compress the replicated second data packet at the mobile terminal, and only the second data packet needs to be uploaded during backup, and the second compressed data packet does not need to be uploaded. Although the second compressed data packet is stored locally at the mobile terminal, it is compressed, so that the purpose of saving the storage space of the mobile terminal can still be achieved. The video content in the second compressed data packet is the same as the video content of the second data packet, but the resolution is lower, so the data size is smaller than that of the second data packet, for example, the video corresponding to the second data packet is high definition video, the data size is 1G, and the data size of the corresponding second compressed data packet may only be 100M. The preset compression command is generally a specified compression ratio, for example, compression is performed according to a ratio of 10:1, and then the second data packet of 1G is compressed to form a second compressed data packet of 100M. The preset compression command may also be a compression ratio for automatically adjusting the resolution according to the resolution of the second data packet, for example, if the resolution of the video of the second data packet is originally low, a small ratio of compression may be performed, for example, if the second data packet is a standard definition video of 200M, the compression ratio may be 2:1, and a video with a lower resolution of 100M is obtained after compression. The second data packet and the second compressed data packet have different storage addresses, so that the first data packet is respectively associated with the second data packet and the second compressed data packet, and different data packets are selected according to the use condition. And when the second compressed data packet is used, downloading is not needed, and network resources are saved.
Referring to fig. 6A, in this embodiment, the play downloading unit 30 includes:
a first judging module 31, configured to judge whether the mobile terminal is in a free network; if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played; and if the mobile terminal is in a charging network, downloading the first compressed data packet from the cloud to the local and splicing the first compressed data packet with the first data packet when the video of the first data packet is played.
As the first determining module 31, the data amount of the video is generally large, and if the second data packet is downloaded to watch the video using the charged network, although the video with higher resolution can be watched, it will probably cost higher, and if the first compressed data packet is downloaded, it will cost less. The free network generally means that the mobile terminal is connected to a free WiFi network, and the data network such as 3G/4G provided by the mobile, unicom and other operators is a charging network.
Referring to fig. 6B, in another embodiment, the play downloading unit 30 includes:
a first obtaining module 32, configured to obtain a current data downloading speed of the mobile terminal;
the second judging module 33 is configured to judge a time length of completing downloading the second data packet according to the data downloading speed; and if the time length of the second data packet after downloading is longer than the time length of playing the video, downloading the first compressed data packet and splicing with the first data packet.
As mentioned above, the first obtaining module 32 and the second determining module 33, because the resolution of the video corresponding to the second data packet is higher, the data size is larger, if the data downloading speed is slower when the video is watched, then if the video corresponding to the first data packet is watched and after part of the data of the second data packet is downloaded instantly, the user may be stuck when watching the video, which affects the user experience. Therefore, the current data downloading speed is obtained first, the time length of finishing downloading the second data packet is calculated, and if the time length is longer than the time length of playing the video spliced by the first data packet and the second data packet, it indicates that the video cannot be watched smoothly and the pause phenomenon is inevitably generated. Therefore, it is more suitable to select the first compressed data packet with smaller data size, and the time length of the download from the cloud end may be shorter than the time length of the video after the splicing of the first data packet and the second data packet is played, so that the pause phenomenon does not occur in the playing. Even though the time length of the downloading from the cloud end is possibly longer than the time length of the video after the splicing of the first data packet and the first compressed data packet is played, the phenomenon of pause is slightly more slight than the phenomenon of pause when the second data packet is downloaded to watch the video.
Referring to fig. 7A, in this embodiment, the play downloading unit 30 includes:
a third determining module 301, configured to determine whether the mobile terminal is in a free network; if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played; and if the mobile terminal is in the charging network, calling the second compressed data packet and splicing with the first data packet when the video of the first data packet is played.
As the third determining module 301, the data size of the video is generally large, if the second data packet is downloaded to watch the video through a charged network, although the video with higher resolution can be watched, the video will inevitably cost higher, and if the second compressed data packet is downloaded, the video can be directly called locally without spending any cost. The free network generally means that the mobile terminal is connected to a free WiFi network, and the data network such as 3G/4G provided by the mobile, unicom and other operators is a charging network.
Referring to fig. 7B, in another embodiment, the play downloading unit 30 includes:
a second obtaining module 302, configured to obtain a current data downloading speed of the mobile terminal;
a fourth judging module 303, configured to judge, according to the data downloading speed, a time length for completing downloading of the second data packet; and if the time length of the second data packet after downloading is longer than the time length of playing the video, calling the second compressed data packet and splicing with the first data packet.
As mentioned above, the second obtaining module 302 and the fourth determining module 303 have a higher resolution of the video corresponding to the second data packet, and the data size is larger, if the data downloading speed is slower when the video is watched, then if the video corresponding to the first data packet and part of the data of the second data packet are watched completely, the user may be stuck when watching the video, and the user experience is affected. Therefore, the current data downloading speed is obtained first, the time length of finishing downloading the second data packet is calculated, and if the time length is longer than the time length of playing the video spliced by the first data packet and the second data packet, it indicates that the video cannot be watched smoothly and the pause phenomenon is inevitably generated. And the local second compressed data packet is called to be spliced with the first data packet, downloading is not needed, and when the video is watched, only the video definition is influenced, but the video is watched smoothly, and the phenomenon of blocking cannot occur.
In this embodiment, the splitting unit 10 includes: the first splitting module is used for obtaining the time length required by the video data packet when playing a video, and dividing the video data packet into a first data packet and a second data packet according to a preset playing time length division ratio. Namely, the video data packet is split according to the specified proportion of the time length of the video playing completion. For example, the split ratio is 1:9, and then a 100-minute movie is split to obtain a 10-minute first packet and a 90-minute second packet. During watching, the video resources used in the first 10 minutes are local to the mobile terminal, and the second data packet and the like are downloaded in the 10 minutes, so that the smoothness of watching the film is greatly improved.
In another embodiment, the splitting unit 10 includes: and the second splitting module is used for acquiring the capacity of the video data packet and splitting the video data packet into a first data packet and a second data packet according to a preset capacity division ratio. Namely, the capacity of the video data packet is divided according to the designated proportion. For example, the split ratio is 1:9, then a 1000M movie is split to obtain 100M first packets and 900M second packets. When watching, the video resource used by the first 100M is local to the mobile terminal, and the second data packet and the like are downloaded during the video watching time of the first 100M, so that the fluency of watching the movie is greatly improved.
In another embodiment, the splitting unit 10 includes: and the third splitting module is used for acquiring the time length required by the video data packet when the video data packet plays the video, and if the time length required by the video data packet when the video data packet plays the video is greater than a preset time length threshold, dividing the video data packet into a first data packet and a second data packet according to the time length threshold, wherein the time length for playing the first data packet is equal to the time length threshold. The time length threshold is a designated time length, the mobile terminal measures the standard whether to split the video data packet, if the playing time length of the video data packet is greater than the time length threshold, the part of the time length corresponding to the time length threshold before the video data packet is played is split into a first data packet, and a second data packet is formed later. If the playing time length of the video data packet is less than or equal to the time length threshold, the split preset rule cannot be used. In a specific embodiment, the video playing time length corresponding to the video data packet is 100 minutes, and the time yield threshold is 10 minutes, so that the video data packet will use the data corresponding to the first 10 minutes of playing as the first data packet, and the data corresponding to the subsequent 90 minutes as the second data packet.
Referring to fig. 8, in this embodiment, the video backup and playing device further includes:
and the deleting unit 40 is configured to automatically delete the second data packet downloaded from the cloud after the video playing is finished.
The video data packet is split into a first data packet and a second data packet, which indicate that the user has viewed the video, and then deleted by the deleting unit 40, so as to save the storage space of the mobile terminal. Therefore, when the user watches the second data packet again, the second data packet downloaded from the cloud end is deleted after the user watches the second data packet, the use habit and the appeal of the user are met, the operation steps of the user are reduced, and the use experience of the user is improved. Certainly, when the second data packet downloaded from the cloud is deleted, a prompt selection button appears, and if the user does not want to delete the second data packet, the user can select a button such as "save" and the like to keep the second data packet in the mobile terminal.
In a specific embodiment, the mobile terminal of the user is a mobile phone, and a high-definition film with a data volume of 2000M is stored in the mobile phone, so that in daily life, the occupied storage space of the mobile phone is large, and the storage and use of the mobile phone by the user are influenced, so that the user wants to delete the high-definition film. When deleting, the mobile phone splits the data, and the data volume is divided into 1: and (3) splitting the ratio of 99 to obtain a first data packet of 20M and a second data packet of 1980M, uploading the second data packet to the cloud, copying the second data packet at the cloud, and performing 10:1 resolution compression on the copied second data packet to obtain a first compressed data packet of 198M. When the high-definition film is watched again, the current data downloading speed is judged firstly, if the duration of watching the high-definition film is shorter than the duration of downloading the second data packet, the first compressed data packet and the first data packet are selected to be downloaded and spliced, and the high-definition film is watched smoothly under the condition of sacrificing definition. After the mobile phone finishes watching, the mobile phone can automatically delete the downloaded first compressed data packet so as to save the storage space of the mobile phone.
The video backup and play device of this embodiment, when deleting the video data package, with the video data package split, with a section data formation first data package of video beginning, with the following one or more second data packages of formation and upload to the high in the clouds, when the user watched the video, at first can play the content of first data package, simultaneously, can follow the second data package of high in the clouds download, can be normal when downloading the second data package watch the video. The method is the same as the method for downloading and watching the video in the prior art, but the first data packet is equivalent to the video data cached in advance, the second data packet is downloaded at the time of watching the video corresponding to the first data packet, the video can be watched smoothly when the network speed is poor, and the video watching experience of a user is improved.
Referring to fig. 9, an embodiment of the present invention further provides a mobile terminal, including a processor 1180 and a memory 1120; the memory 1120 is used for storing a program supporting the video backup and playback device to execute the video backup and playback method; the processor 1180 is configured to execute programs stored in the memory.
For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and details of the specific techniques are not disclosed. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 9 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 9, the handset includes: radio Frequency (RF) circuitry 1110, memory 1120, input unit 1130, display unit 1140, sensors 1150, audio circuitry 1160, wireless fidelity (WiFi) module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the handset configuration shown in fig. 9 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 9:
RF circuit 1110 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages to processor 1180; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. Touch panel 1131, also referred to as a touch screen, can collect touch operations of a user on or near the touch panel 1131 (for example, operations of the user on or near touch panel 1131 by using any suitable object or accessory such as a finger or a stylus pen), and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1131 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented by using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1130 may include other input devices 1132 in addition to the touch panel 1131. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1140 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 1140 may include a Display panel 1141, and optionally, the Display panel 1141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1131 can cover the display panel 1141, and when the touch panel 1131 detects a touch operation on or near the touch panel, the touch panel is transmitted to the processor 1180 to determine the type of the touch event, and then the processor 1180 provides a corresponding visual output on the display panel 1141 according to the type of the touch event. Although in fig. 9, the touch panel 1131 and the display panel 1141 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1141 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1160, speakers 1161, and microphone 1162 may provide an audio interface between a user and a cell phone. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signals into electrical signals, which are received by the audio circuit 1160 and converted into audio data, which are then processed by the audio data output processor 1180, and then transmitted to, for example, another cellular phone via the RF circuit 1110, or output to the memory 1120 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the cell phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1170, and provides wireless broadband internet access for the user. Although fig. 9 shows the WiFi module 1170, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1180 is a control center of the mobile phone, and is connected to various parts of the whole mobile phone through various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the mobile phone. Optionally, processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
The phone also includes a power supply 1190 (e.g., a battery) for powering the various components, and preferably, the power supply may be logically connected to the processor 1180 via a power management system, so that the power management system may manage charging, discharging, and power consumption management functions.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
Referring to fig. 9, in the embodiment of the present invention, the processor 1180 included in the mobile terminal further has the following functions:
when the mobile terminal deletes a video data packet, dividing the video data packet into at least a first data packet and a second data packet according to a preset rule, wherein the first data packet stores the starting data of the video data packet;
storing a first data packet in the local of the mobile terminal, backing up a second data packet to a cloud terminal, and establishing association between the first data packet and the second data packet of the cloud terminal;
and when the video of the first data packet is played, downloading the second data packet from the cloud to the local, and splicing the second data packet with the first data packet.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The full rights are attached here.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
The embodiment of the invention also provides:
a1, a video backup and play method, comprising:
when the mobile terminal deletes a video data packet, dividing the video data packet into at least a first data packet and a second data packet according to a preset rule, wherein the first data packet stores the starting data of the video data packet;
storing a first data packet in the local of the mobile terminal, backing up a second data packet to a cloud terminal, and establishing association between the first data packet and the second data packet of the cloud terminal;
and when the video of the first data packet is played, downloading the second data packet from the cloud to the local, and splicing the second data packet with the first data packet.
A2, according to the video backup and playback method of a1, the step of establishing the association between the first data package and the second data package in the cloud includes:
recording a first storage address of the first data packet in the local and a second storage address of the second data packet in the cloud;
and associating the first storage address with the second storage address.
A3, according to the video backup and playback method in a1, the step of storing the first data package in the local of the mobile terminal, backing up the second data package to the cloud, and establishing the association between the first data package and the second data package in the cloud includes:
copying the second data packet through the cloud end, and performing resolution compression on the copied second data packet according to a preset compression command to form a first compressed data packet;
and establishing association between the second data packet and the first compressed data packet and the first data packet respectively.
A4, according to the video backup and playback method of A3, when playing back the video of the first data package, downloading the second data package from the cloud to the local, and splicing the second data package with the first data package, including:
judging whether the mobile terminal is in a free network or not;
if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played;
and if the mobile terminal is in a charging network, downloading the first compressed data packet from the cloud to the local and splicing the first compressed data packet with the first data packet when the video of the first data packet is played.
A5, according to the video backup and playback method of A3, when playing back the video of the first data package, downloading the second data package from the cloud to the local, and splicing the second data package with the first data package, including:
acquiring the current data downloading speed of the mobile terminal;
judging the time length of the second data packet after downloading according to the data downloading speed;
and if the time length of the second data packet after downloading is longer than the time length of playing the video, downloading the first compressed data packet and splicing with the first data packet.
A6, according to the video backup and playback method in a1, the step of storing the first data package in the local of the mobile terminal, backing up the second data package to the cloud, and establishing the association between the first data package and the second data package in the cloud includes:
the mobile terminal copies the second data packet and stores the second data packet locally, and the copied second data packet is subjected to resolution compression according to a preset compression command to form a second compressed data packet;
and establishing association between the second data packet and the compressed second data packet respectively in the first data packet.
A7, according to the video backup and playback method of a6, when playing back the video of the first data package, downloading the second data package from the cloud to the local, and splicing the second data package with the first data package, including:
judging whether the mobile terminal is in a free network or not;
if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played;
and if the mobile terminal is in the charging network, calling the second compressed data packet and splicing with the first data packet when the video of the first data packet is played.
A8, according to the video backup and playback method of a6, when playing back the video of the first data package, downloading the second data package from the cloud to the local, and splicing the second data package with the first data package, including:
acquiring the current data downloading speed of the mobile terminal;
judging the time length of the second data packet after downloading according to the data downloading speed;
and if the time length of the second data packet after downloading is longer than the time length of playing the video, calling the second compressed data packet and splicing with the first data packet.
A9, the video backup and playback method according to A1, wherein the preset rules include:
and acquiring the time length required by the video data packet when playing the video, and dividing the video data packet into a first data packet and a second data packet according to a preset playing time length division ratio.
A10, the video backup and playback method according to A1, wherein the preset rules include:
and acquiring the capacity of the video data packet, and dividing the video data packet into a first data packet and a second data packet according to a preset capacity division ratio.
A11, the video backup and playback method according to A1, wherein the preset rules include:
and acquiring the time length required by the video data packet when playing the video, and if the time length required by the video data packet when playing the video is greater than a preset time length threshold, dividing the video data packet into a first data packet and a second data packet according to the time length threshold, wherein the time length for playing the first data packet is equal to the time length threshold.
A12, according to the video backup and playback method of a1, after the step of downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when playing back the video of the first data packet, the method includes:
and after the video playing is finished, automatically deleting the second data packet downloaded from the cloud.
B1, a video backup and playback device, comprising:
the mobile terminal comprises a splitting unit and a sending unit, wherein the splitting unit is used for splitting a video data packet into at least a first data packet and a second data packet according to a preset rule when the mobile terminal deletes the video data packet, and the first data packet stores the start data of the video data packet;
the backup association unit is used for storing the first data packet in the local of the mobile terminal, backing up the second data packet to the cloud terminal and establishing the association between the first data packet and the second data packet of the cloud terminal;
and the playing and downloading unit is used for downloading the second data packet from the cloud end to the local and splicing the second data packet with the first data packet when the video of the first data packet is played.
B2, the video backup and playback device according to B1, the backup association unit comprising:
the recording module is used for recording a first storage address of the first data packet at the local and a second storage address of the second data packet at the cloud;
and the first association module is used for associating the first storage address with the second storage address.
B3, the video backup and playback device according to B1, the backup association unit comprising:
the first replication compression module is used for replicating the second data packet through the cloud end and performing resolution compression on the replicated second data packet according to a preset compression command to form a first compressed data packet;
and the second association module is used for establishing association between the second data packet and the first compressed data packet and the first data packet respectively.
B4, the video backup and playback device of B3, the playback download unit comprising:
the first judgment module is used for judging whether the mobile terminal is in a free network or not; if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played; and if the mobile terminal is in a charging network, downloading the first compressed data packet from the cloud to the local and splicing the first compressed data packet with the first data packet when the video of the first data packet is played.
B5, the video backup and playback device of B3, the playback download unit comprising:
the first acquisition module is used for acquiring the current data downloading speed of the mobile terminal;
the second judging module is used for judging the time length of the second data packet after downloading according to the data downloading speed; and if the time length of the second data packet after downloading is longer than the time length of playing the video, downloading the first compressed data packet and splicing with the first data packet.
B6, the video backup and playback device according to B1, the backup association unit comprising:
the second replication compression module is used for the mobile terminal to replicate the second data packet and store the second data packet locally, and the replicated second data packet is subjected to resolution compression according to a preset compression command to form a second compressed data packet;
and the third association module is used for establishing association between the second data packet and the second compressed data packet in the first data packet respectively.
B7, the video backup and playback device of B6, the playback download unit comprising:
the third judging module is used for judging whether the mobile terminal is in a free network or not; if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played; and if the mobile terminal is in the charging network, calling the second compressed data packet and splicing with the first data packet when the video of the first data packet is played.
B8, the video backup and playback device of B6, the playback download unit comprising:
the second acquisition module is used for acquiring the current data downloading speed of the mobile terminal;
the fourth judging module is used for judging the time length of the second data packet after downloading according to the data downloading speed; and if the time length of the second data packet after downloading is longer than the time length of playing the video, calling the second compressed data packet and splicing with the first data packet.
B9, the video backup and playback device according to B1, the splitting unit includes:
the first splitting module is used for obtaining the time length required by the video data packet when playing a video, and dividing the video data packet into a first data packet and a second data packet according to a preset playing time length division ratio.
B10, the video backup and playback device according to B1, the splitting unit includes:
and the second splitting module is used for acquiring the capacity of the video data packet and splitting the video data packet into a first data packet and a second data packet according to a preset capacity division ratio.
B11, the video backup and playback device according to B1, the splitting unit includes:
and the third splitting module is used for acquiring the time length required by the video data packet when the video data packet plays the video, and if the time length required by the video data packet when the video data packet plays the video is greater than a preset time length threshold, dividing the video data packet into a first data packet and a second data packet according to the time length threshold, wherein the time length for playing the first data packet is equal to the time length threshold.
B12, the video backup and playback device according to B1, further comprising:
and the deleting unit is used for automatically deleting the second data packet downloaded from the cloud after the video playing is finished.
C1, a mobile terminal comprising a processor and a memory;
the memory is used for storing a program supporting the video backup and playback device to execute the video backup and playback method described in any one of the above-mentioned a1-a 12;
the processor is configured to execute programs stored in the memory.

Claims (10)

1. A video backup and play method is characterized by comprising the following steps:
when a mobile terminal deletes a video data packet, dividing the video data packet into at least a first data packet and a second data packet according to a preset rule, wherein the first data packet stores the start data of the video data packet, and when the video data is played, the data in the first data packet is used firstly;
storing a first data packet in the local of the mobile terminal, backing up a second data packet to a cloud terminal, and establishing association between the first data packet and the second data packet of the cloud terminal;
when the video of the first data packet is played, downloading the second data packet from the cloud to the local, and splicing the second data packet with the first data packet;
and the data volume of the second data packet is larger than that of the first data packet.
2. The video backup and playback method according to claim 1, wherein the step of associating the first data packet with the second data packet in the cloud comprises:
recording a first storage address of the first data packet in the local and a second storage address of the second data packet in the cloud;
and associating the first storage address with the second storage address.
3. The video backup and playback method according to claim 1, wherein the step of storing the first data packet locally in the mobile terminal, backing up the second data packet to a cloud, and establishing an association between the first data packet and the second data packet in the cloud comprises:
copying the second data packet through the cloud end, and performing resolution compression on the copied second data packet according to a preset compression command to form a first compressed data packet;
and establishing association between the second data packet and the first compressed data packet and the first data packet respectively.
4. The video backup and playback method according to claim 3, wherein the step of downloading the second packet from the cloud to the local and splicing the second packet with the first packet while playing back the video of the first packet comprises:
judging whether the mobile terminal is in a free network or not;
if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played;
and if the mobile terminal is in a charging network, downloading the first compressed data packet from the cloud to the local and splicing the first compressed data packet with the first data packet when the video of the first data packet is played.
5. The video backup and playback method according to claim 3, wherein the step of downloading the second packet from the cloud to the local and splicing the second packet with the first packet while playing back the video of the first packet comprises:
acquiring the current data downloading speed of the mobile terminal;
judging the time length of the second data packet after downloading according to the data downloading speed;
and if the time length of the second data packet after downloading is longer than the time length of playing the video, downloading the first compressed data packet and splicing with the first data packet.
6. The video backup and playback method according to claim 1, wherein the step of storing the first data packet locally in the mobile terminal, backing up the second data packet to a cloud, and establishing an association between the first data packet and the second data packet in the cloud comprises:
the mobile terminal copies the second data packet and stores the second data packet locally, and the copied second data packet is subjected to resolution compression according to a preset compression command to form a second compressed data packet;
and establishing association between the second data packet and the compressed second data packet respectively in the first data packet.
7. The video backup and playback method according to claim 6, wherein the step of downloading the second packet from the cloud to the local and splicing the second packet with the first packet while playing back the video of the first packet comprises:
judging whether the mobile terminal is in a free network or not;
if the mobile terminal is in a free network, downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played;
and if the mobile terminal is in the charging network, calling the second compressed data packet and splicing with the first data packet when the video of the first data packet is played.
8. The video backup and playback method according to claim 6, wherein the step of downloading the second packet from the cloud to the local and splicing the second packet with the first packet while playing back the video of the first packet comprises:
acquiring the current data downloading speed of the mobile terminal;
judging the time length of the second data packet after downloading according to the data downloading speed;
and if the time length of the second data packet after downloading is longer than the time length of playing the video, calling the second compressed data packet and splicing with the first data packet.
9. A video backup and playback apparatus, comprising:
the mobile terminal comprises a splitting unit and a sending unit, wherein the splitting unit is used for splitting a video data packet into at least a first data packet and a second data packet according to a preset rule when the mobile terminal deletes the video data packet, the first data packet stores the start data of the video data packet, and the data in the first data packet is used firstly when the video data is played;
the backup association unit is used for storing the first data packet in the local of the mobile terminal, backing up the second data packet to the cloud terminal and establishing the association between the first data packet and the second data packet of the cloud terminal;
the playing and downloading unit is used for downloading the second data packet from the cloud to the local and splicing the second data packet with the first data packet when the video of the first data packet is played;
and the data volume of the second data packet is larger than that of the first data packet.
10. A mobile terminal comprising a processor and a memory;
the memory is used for storing a program supporting the video backup and playing device to execute the video backup and playing method of any one of claims 1 to 8;
the processor is configured to execute programs 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 CN106817621A (en) 2017-06-09
CN106817621B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110022482B (en) * 2019-03-05 2021-07-27 咪咕视讯科技有限公司 Video playing starting 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 (5)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581736A (en) * 2012-07-26 2014-02-12 腾讯科技(深圳)有限公司 Digital television terminal, video file playing method and video file playing system

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
CN106817621A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
US10165309B2 (en) Method and apparatus for live broadcast of streaming media
US10643666B2 (en) Video play method and device, and computer storage medium
CN110636375B (en) Video stream processing method and device, terminal equipment and computer readable storage medium
CN106792120B (en) Video picture display method and device and terminal
CN107360458B (en) Play control method, device, storage medium and terminal
CN109597556B (en) Screen capturing method and terminal
CN106803993B (en) Method and device for realizing video branch selection playing
US11202066B2 (en) Video data encoding and decoding method, device, and system, and storage medium
US9760998B2 (en) Video processing method and apparatus
WO2015131768A1 (en) Video processing method, apparatus and system
CN107562539B (en) Application program processing method and device, computer equipment and storage medium
CN111147779B (en) Video production method, electronic device, and medium
CN103390034A (en) Image display method, device, terminal and server
CN110719319B (en) Resource sharing method, device, terminal equipment and storage medium
CN112019929A (en) Volume adjusting method and device
CN103458286A (en) Television channel switching method and device
CN111124207A (en) Multimedia file playing method and electronic equipment
CN107371064B (en) Mobile terminal and audio and video playing method and device thereof
US10136115B2 (en) Video shooting method and apparatus
CN106817621B (en) Mobile terminal and video backup and play method and device thereof
CN109429076B (en) Playing card pause processing method and device for multimedia data
CN108874591B (en) Document processing method and related product
CN109840153B (en) Terminal resource optimization method, device, system, terminal and medium
CN103336677A (en) Method, device and system for outputting images to display equipment
CN113039518A (en) Play control method and device, computer readable storage medium and electronic equipment

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