Video downloading method and electronic device

By dividing the video into multiple clips and setting different resolutions according to clip parameters, the problem of inflexible resolution settings in video downloads is solved, and traffic saving, speed improvement and user experience improvement are achieved.

CN114466220BActive Publication Date: 2025-01-03VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210111815.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-29
Publication Date
2025-01-03
Estimated Expiration
2042-01-29

AI Technical Summary

Technical Problem

The resolution settings in the existing video download method are not flexible enough, which makes it difficult for users to find a balance between saving traffic and shortening download speed, and is not conducive to secondary editing of videos.

Method used

By receiving video input, splitting the video into multiple clips, and setting different download resolutions according to the parameters of each clip (such as playback volume, recommendation degree), to achieve flexible resolution settings for different video clips.

Benefits of technology

While ensuring traffic saving and download speed, it improves the flexibility and user experience of video downloading to meet the needs of different video clips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114466220B_ABST
    Figure CN114466220B_ABST
Patent Text Reader

Abstract

The present application discloses a video downloading method and an electronic device, which belongs to the field of Internet technology. The video downloading method comprises: receiving a first input of a first video; downloading the first video in a target manner in response to the first input; wherein, in the downloaded first video, a first video segment of the first video is a first resolution, and a second video segment of the first video is a second resolution; and the first resolution is different from the second resolution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of multimedia technology, and specifically relates to a video downloading method and electronic equipment. Background Art

[0002] When users download or play videos on video websites, they usually choose to download or play a video version with a lower resolution in order to save traffic or shorten the download speed. However, setting a lower download resolution will result in a lower video definition, which will weaken the user's video viewing experience. In addition, if the user subsequently needs to use the downloaded video as material for secondary editing, too low definition will also be detrimental to the user's processing of the video. If a higher download resolution is set, traffic will be wasted and the download speed will increase. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a video downloading method and an electronic device, which can solve the problem of insufficient flexibility in resolution setting when downloading videos.

[0004] In a first aspect, an embodiment of the present application provides a video downloading method, the method comprising:

[0005] Receiving a first input of a first video;

[0006] In response to the first input, downloading the first video in a targeted manner;

[0007] Among them, in the downloaded first video, the first video segment of the first video is at the first resolution, and the second video segment of the first video is at the second resolution; the first resolution is different from the second resolution.

[0008] In a second aspect, an embodiment of the present application provides a video downloading device, the device comprising:

[0009] A first receiving unit, configured to receive a first input of a first video;

[0010] A downloading unit, configured to download the first video in a target manner in response to a first input;

[0011] Among them, in the downloaded first video, the first video segment of the first video is at the first resolution, and the second video segment of the first video is at the second resolution; the first resolution is different from the second resolution.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0016] In an embodiment of the present application, after receiving a first input of a first video, the first video is downloaded in a target manner in response to the first input, wherein in the downloaded first video, the first video segment of the first video is at a first resolution, the second video segment of the first video is at a second resolution, and the first resolution is different from the second resolution. In this way, when downloading a video, it is avoided that the entire video is downloaded at the same resolution, and different download resolutions can be set for different video segments, which solves the problem of insufficient flexibility in setting the resolution of the downloaded video in the related art, and can flexibly set the download resolution of different video segments as needed while saving the traffic used for downloading the video and improving the download speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flow chart of an optional embodiment of the video downloading method provided in the embodiment of the present application;

[0018] Figure 2 This is an interface diagram of an optional embodiment of the video download method provided in the embodiment of the present application. Figure 1 ;

[0019] Figure 3 This is an interface diagram of an optional embodiment of the video download method provided in the embodiment of the present application. Figure 2 ;

[0020] Figure 4 It is a structural block diagram of an optional embodiment of the video downloading device provided in the embodiment of the present application;

[0021] Figure 5 is a structural block diagram of an optional embodiment of an electronic device provided in an embodiment of the present application;

[0022] Figure 6 It is a structural block diagram of another optional embodiment of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first certain thing can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0025] The video downloading method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0026] Figure 1 FIG. 1 is a flow chart of an optional embodiment of the video downloading method provided in the embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0027] Step 101: Receive a first input of a first video.

[0028] It is understandable that the first input may be an input received through a user input unit, for example, may include a touch screen, a mouse, a keyboard, a camera (gesture input), etc. The first input is used to indicate downloading the first video in a target manner. The first input may include at least one step of input operation, for example, clicking a control displayed on the touch screen for indicating downloading the video in a target manner, and further may include clicking a confirmation button, etc.

[0029] Step 102, in response to a first input, downloading a first video in a target manner.

[0030] Among them, in the downloaded first video, the first video segment of the first video is at the first resolution, and the second video segment of the first video is at the second resolution; and the first resolution is different from the second resolution.

[0031] That is, when the first video is downloaded in a targeted manner, different resolutions may be used for downloading different video segments in the first video.

[0032] For example, when downloading a first video, the first video may be divided into a plurality of video segments, and then each video segment is downloaded separately, wherein each video segment is downloaded at a corresponding resolution, and finally the plurality of video segments are spliced ​​in chronological order, or the entire first video may be downloaded in chronological order (i.e., the earlier part of the entire video is downloaded first), and when the time point at which the next video segment starts is reached, the resolution is switched from the resolution corresponding to the current video segment to the resolution corresponding to the next video segment, and then the video is downloaded. The embodiments of the present application are not limited to this.

[0033] Therefore, after the entire video is downloaded, there may be multiple resolutions in the entire video, and different video clips may have different resolutions. Of course, the resolutions in two video clips that are not adjacent in time may be the same. For example, the resolutions of the first video clip and the second video clip that are adjacent in time sequence are different, while the resolutions of the first video clip and the third video clip that are not adjacent may be the same. It is understandable that the first video includes a plurality of video clips, and these video clips can form a complete first video by arranging and playing them in a certain time sequence.

[0034] It is understandable that when downloading the first video in a target manner, the resolution corresponding to each video segment can be determined according to the segment parameters of each video segment. The segment parameters refer to the parameters of the video segment. For example, the segment parameters can be the length, size, playback volume, recommendation level, etc. of the video segment.

[0035] Specifically, the playback volume situation can be the number of times a video segment is played, or it can be the ratio of the number of times the video segment is played to the number of times the entire video is played, etc. In short, the playback volume situation is a parameter related to the playback volume.

[0036] The degree of recommendation can be obtained by statistics based on the operations of multiple users on the first video. For example, when watching the first video, the user can mark the video, like the video, etc. In this case, the time points corresponding to the marking, liking and other recommendation operations performed by multiple users are recorded, and the number of marking and liking (recommendation operations) corresponding to the time points where the users performed the recommendation operations are recorded, so as to obtain the recommendation status corresponding to different clips (different time points) in the entire first video.

[0037] In one example, each video segment in the first video may be automatically divided based on segment parameters by a preset algorithm. For example, multiple playback volume intervals may be pre-divided, and after determining the playback volume at each moment in the first video, segments whose playback volume is continuously within the same playback volume interval and whose continuous time exceeds a preset duration are divided into one video segment.

[0038] In another example, the video segments in the first video may be manually divided by the user after the segment parameters at different times are displayed on the video progress bar. For example, the user may click once at a position on the video progress bar to indicate marking a time division point at the corresponding time, and the time division point is used to divide the two video segments.

[0039] In combination with the above example, another example can be provided to recommend automatically divided video segments to the user, which can be confirmed or modified by the user, including adjusting the number of video segments, the start and end time of each video segment, etc.

[0040] After the first video is divided into M video segments, the resolution corresponding to each video segment may be manually set by a user or automatically set according to a preset algorithm.

[0041] For instance, taking the user setting the resolution as an example, before receiving the first input of the first video, the segment parameters of each video segment in the first video may be displayed, and then after receiving the user's second input of the first video segment among M video segments, the resolution of the first video segment may be set to the first resolution in response to the second input.

[0042] It can be understood that the segment parameters of each video segment in the first video can be displayed on the progress bar of the first video, and the user can directly observe and know the segment parameters of different video segments of the first video, so as to quickly determine the more important parts of the first video.

[0043] By providing an implementation method for users to independently set the resolution of each video clip, users can set the resolution according to their preferences. For example, users can set a higher resolution for video clips that they are interested in or need, and set lower resolutions for the rest, thereby improving the flexibility of resolution setting when downloading videos.

[0044] Furthermore, the step of receiving a second input from a user for a first video segment among the M video segments, and setting the resolution of the first video segment to the first resolution in response to the second input, may specifically include the following steps:

[0045] receiving a first sub-input from a user, where the first sub-input is used to select a first video segment;

[0046] In response to the first sub-input, N controls are displayed, where the N controls are used to indicate different resolutions;

[0047] Receive a second sub-input of a first control among the N controls by a user;

[0048] In response to the second sub-input, the resolution of the first video segment is set to a first resolution, and the first control is used to indicate the first resolution.

[0049] Among them, the second input includes a first sub-input and a second sub-input, that is, a second input used to indicate that the resolution of the first video clip is set to the first resolution, specifically including a first sub-input used to indicate the selection of the first video clip and a second sub-input for selecting the first control indicating the first resolution.

[0050] For example, the user can click on the time range of a certain video clip in the time progress bar of the first video (first sub-input), thereby indicating the selection of the video clip. Then, the user can click on the control provided on the page for representing different resolutions to select the resolution he or she wants (second sub-input), and then the resolution can be set to the resolution of the corresponding video clip.

[0051] In an embodiment of the present application, the resolution corresponding to each video segment in the first video is selected through the first sub-input and the second sub-input, so that each segment in the first video can be downloaded with different resolutions.

[0052] Optionally, the resolutions of the above-mentioned N controls may be optional resolutions determined according to the current network speed and / or segment parameters of the corresponding video segment.

[0053] In this optional implementation, several optional resolutions are determined according to the current network speed and / or the segment parameters of the corresponding video segment. After the first video segment is selected through the first sub-input, the N displayed controls can be determined according to the segment parameters of the first video segment or the current network speed. For example, for a video segment with a playback volume between 200,000 and 300,000, optional resolution controls of 720P and above are provided, for a video segment with a playback volume between 100,000 and 200,000, optional resolution controls of 720P and below are provided, and for a video segment with a playback volume less than 100,000, only a 480P resolution control is provided.

[0054] It can be understood that if the first video clip has a higher playback volume, that is, the first video clip is considered to be a more exciting clip in the first video, then the resolution indicated by the N displayed controls may be a higher resolution option; if the first video clip has a lower playback volume, that is, the first video clip is considered to be a more boring clip in the first video, then the resolution indicated by the N displayed controls may be a lower resolution option.

[0055] In addition, when the current network speed indicates that the network speed is poor, after the first video clip is selected through the first sub-input, the N controls displayed may be controls with lower resolutions, such as 360P and 480P controls, and when the current network speed indicates that the network speed is good, after the first video clip is selected through the first sub-input, the N controls displayed may be controls with higher resolutions, such as controls corresponding to 1080P and 4K.

[0056] Specifically, when providing different optional resolutions for different video clips, the user may first select a certain video clip, and then display the control for the optional resolutions provided for the video clip. The control may be marked with a resolution value. Then, the user may select a control from the provided controls to indicate that the resolution represented by the control is set to the resolution of the currently selected video clip. It should be noted that the specific resolution values ​​of the N optional resolutions provided for each video clip may be different, and the number N may also be different. The implementation method of providing optional resolutions based on the current network speed is similar to that of providing optional resolutions based on the playback volume, and will not be repeated here.

[0057] By providing optional resolutions through the segment parameters of the video segment and / or the current network speed, the user's selectable resolution can be limited to a resolution that is more suitable for the video segment and / or the current network speed. While increasing the user's flexibility in setting the resolution, it also takes into account the video segment and / or the current network speed.

[0058] In another example, the resolution of the video segment may not be set by the user, but may be automatically assigned, and may be set according to the segment parameters of the corresponding video segment. For example, a video segment with a higher playback volume may use a higher download resolution, and a video segment with a lower playback volume may use a lower download resolution. Alternatively, a larger video segment may use a lower download resolution, and a smaller video segment may use a higher download resolution, and so on.

[0059] In combination with the above example, another example may be provided to recommend the resolution of each video clip to the user, and the user may confirm or modify the resolution.

[0060] In an optional embodiment, the first video includes M video segments, and the M video segments include a first video segment and a second video segment. Accordingly, in response to the first input, step 102 of downloading the first video in a target manner may specifically include the following steps 1021 and 1022:

[0061] Step 1021, in response to the first input, obtaining segment parameters of M video segments;

[0062] Step 1022, downloading the first video in a target manner according to the segment parameters;

[0063] Among them, when the segment parameter of the first video segment is greater than the segment parameter of the second video segment, the first resolution is greater than the second resolution; when the segment parameter of the first video segment is less than or equal to the segment parameter of the second video segment, the first resolution is less than or equal to the second resolution.

[0064] It is understandable that the M video segments in the first video may be automatically divided according to the viewing records of the first video by a large number of users. For example, the first video may be divided into M video segments according to the number of times the first video is viewed at each time point when a large number of users view the first video.

[0065] Further, step 1021 may be executed to respectively obtain segment parameters corresponding to the M video segments, and the segment parameters indicate, to a certain extent, the playback status or excitement of each video segment in the first video.

[0066] It can be understood that if the segment parameter of one video segment among the M video segments is greater than the segment parameter of another video segment, it can be considered that the video segment is more exciting or has been played more times than the other video segment, that is, the user has a higher viewing demand for the video segment.

[0067] Therefore, when the segment parameter of the first video segment is greater than the segment parameter of the second video segment, it can be considered that the first video segment is more exciting or has been played more often than the second video segment, and the user will have a higher demand for watching the first video segment, so the first resolution can be set to be greater than the second resolution, that is, the first resolution with a larger resolution is used to download the first video segment, and the second resolution with a smaller resolution is used to download the second video segment. When the segment parameter of the first video segment is less than the segment parameter of the second video segment, it can be considered that the first video segment is less exciting or has been played less often than the second video segment, and the user will have a higher demand for watching the second video segment, so the first resolution can be set to be less than the second resolution, that is, the second resolution with a larger resolution is used to download the second video segment, and the first resolution with a smaller resolution is used to download the first video segment.

[0068] For example, in the case that the first video is a 4-minute video, according to the viewing records of a large number of users, it is found that the first video has been played 200,000 times from 1:30 to 2:00, and 100,000 times from 2:40 to 3:00, and the number of plays in other time periods is less than 100,000 times. Then the first video can be divided into three video segments, and the three video segments are downloaded at different resolutions. In the downloaded video, the resolution of the video segment from 1:30 to 2:00 is 1080P, the resolution of the video segment from 2:40 to 3:00 is 720P, and the resolution of the video segments in other time periods is 480P.

[0069] In this embodiment, the excitement or playback times of different video clips are represented by segment parameters, and then the resolution of the corresponding video clip is set according to the segment parameters. A higher resolution is set for video clips with higher segment parameters, and a lower resolution is set for video clips with lower segment parameters. This can improve the user's experience of watching videos. The viewing effect is clearer for video clips with more playbacks or more excitement, while a lower resolution is used for video clips with less playbacks or less excitement. This can save traffic used for downloading videos and reduce the time used for downloading videos without affecting the user's viewing experience.

[0070] Combine the following Figure 2 and Figure 3 An exemplary description of a specific implementation is given as follows.

[0071] refer to Figure 2 This is an optional interface diagram. In the playback page of the first video, a "segmented download" control 201 can be provided. After the user clicks the control 201, the playback volume 205 can be prompted above the progress bar 202 of the first video. The playback volume 205 indicates the number of playbacks at the corresponding moment of the progress bar 202 through the height of the wavy line.

[0072] Depend on Figure 2 It can be seen that the left time period 206 of the first video is a "highlight" segment with a relatively high playback volume, while the right time period 207 is a common segment with a relatively low playback volume. It should be noted that Figure 2 The left time period 206 and the right time period 207 are provided for explanation and are not necessarily displayed on the interface. The user can set the video clip and select the download resolution based on the playback volume 205. For this video, optional 1080P controls 203 and 720P controls 204 are provided.

[0073] Furthermore, after displaying the playback volume of the first video at different times, a third input may be received, the third input is used to set the video segment, and in response to the third input, the first video may be segmented to determine a plurality of video segments. Furthermore, a second input may be received, the second input is used to set the download resolution of each video segment, and in response to the third input, the download resolution of each video segment may be set. In this way, when downloading the first video, the first video is downloaded based on the download resolution set for each video segment.

[0074] The second input and the third input are similar to the first input and can be received by the user input unit, which will not be described in detail here. The second input and the third input can be set directly by the user, for example, Figure 2 A segment point is inserted on the progress bar 202 shown to set the segment, and after clicking the progress bar 202 of each segment to select the corresponding segment, a download resolution is selected from the provided optional download resolutions.

[0075] By displaying the playback volume of the first video at different times, it is convenient for the user to set the video segment and the download resolution of each video segment based on the playback volume. Alternatively, the second input and the third input can also be confirmed or adjusted based on the automatic recommendation.

[0076] For example, before receiving the second input, segmented recommendations of the first video may also be displayed, where the segmented recommendations are segments of the first video recommended based on the amount of playback of the first video at different times. For example, Figure 3 As shown, two recommended video segment identifiers are provided: video segment identifier 302 and video segment identifier 304. These two video segment identifiers can divide the first video into three video segments. Video segment identifier 302 and video segment identifier 304 are provided with deletion identifier 301 and deletion identifier 303 respectively.

[0077] In this way, receiving the second input may include receiving a second input for selecting a segment recommendation or adjusting the segment based on the segment recommendation. That is, the user may not adjust the segment recommendation, and after clicking the start download control 306, the video segment is set according to the recommended segment; or the user may also adjust the video segment, for example, by deleting the time segment point of the corresponding video segment by deleting the mark 301 and the mark 303, by adjusting the position of the video segment mark 302 and the video segment mark 304 to adjust the start / end time of the corresponding video segment, or by clicking a position on the progress bar to insert a time segment point, and so on.

[0078] Through the above segmentation setting method, it is convenient for users to adjust settings based on the recommended segmentation method, reducing user operations.

[0079] Similarly, before receiving the second input, the recommended resolution of the corresponding video segment can also be displayed for at least part of the video segment of the first video. Figure 3 As shown, for the three video clips, each video clip is displayed with a recommended download resolution. For example, for the first video clip on the left, due to the high number of views, a 1080P download resolution logo 305 is displayed in the clip area, indicating that it is recommended that users use the higher 1080P download resolution to download the clip.

[0080] Thus, receiving the second input may include receiving an input for selecting a recommended resolution for at least part of the video clip or selecting an optional resolution other than the recommended resolution. Here, the optional resolution may include a recommended resolution that is optional when the first video is downloaded. For example, Figure 3 As shown, you can click the progress bar of the first video clip on the left to select the corresponding video clip, and then click the two optional download resolutions provided on the right to set the download resolution of the corresponding video clip to the download resolution selected by the user, thereby achieving the purpose of adjusting the download resolution of the video clip.

[0081] Through the above-mentioned download resolution setting method, it is convenient for users to adjust and set based on the recommended download resolution, thereby reducing user operations.

[0082] If the first video is downloaded in segments, after the first video is downloaded, the downloaded files may be multiple compressed packages, each of which contains a video segment of the first video, and each video segment is downloaded at a corresponding download resolution. The compressed package may also include a configuration file of the video segment corresponding to the first video, so that the player can play it according to the configuration file. The above is only used as an example to illustrate the file type obtained after downloading the first video, and is not used to constitute a limitation on the file type obtained by downloading in the embodiments of the present application.

[0083] Then, after downloading multiple video clips of the first video, a fourth input for instructing to play the first video can be received, so that in response to the fourth input, the first video is spliced ​​and played based on the time sequence of each video clip. For example, when each video clip exists in the form of a compressed file, each compressed package can be decompressed, and the video clips decompressed from the multiple compressed packages can be spliced ​​together and played according to the time sequence provided in the configuration file of each compressed package. In one example, the fourth input can be clicking the play control in the playback page of the first video, and accordingly, the download can be equivalent to caching the first video locally from the server of the video playback platform. By splicing and playing the videos in time sequence, correct playback after the first video is downloaded in segments can be achieved.

[0084] The video download method provided in the embodiment of the present application can be executed by a video download device. In the embodiment of the present application, the video download device executing the video download method is taken as an example to illustrate the video download device provided in the embodiment of the present application.

[0085] The video downloading device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0086] The video downloading device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0087] The video downloading device provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0088] Figure 4 is a structural block diagram of an optional embodiment of the video downloading device provided in the embodiment of the present application, such as Figure 4 As shown, the video downloading device provided in the embodiment of the present application includes a first receiving unit 11 and a downloading unit 12.

[0089] The first receiving unit 11 is used to receive a first input of a first video;

[0090] The downloading unit 12 is used to download the first video in a target manner in response to the first input;

[0091] Among them, in the downloaded first video, the first video segment of the first video is at the first resolution, and the second video segment of the first video is at the second resolution; the first resolution is different from the second resolution.

[0092] Optionally, the first video may include M video clips, and the apparatus may further include:

[0093] A display unit, configured to display a segment parameter of each video segment in the first video before receiving a first input of the first video;

[0094] A second receiving unit, configured to receive a second input from a user regarding a first video segment among the M video segments;

[0095] A setting unit is configured to set the resolution of the first video segment to a first resolution in response to a second input.

[0096] Optionally, the second receiving unit may include:

[0097] A first receiving subunit, configured to receive a first sub-input from a user, where the first sub-input is used to select a first video segment;

[0098] A display subunit, configured to display N controls in response to a first sub-input, wherein the N controls are configured to indicate different resolutions;

[0099] A second receiving sub-unit, used to receive a second sub-input of a user to a first control among the N controls;

[0100] The setting unit is further used to set the resolution of the first video segment to a first resolution in response to the second sub-input, and the first control is used to indicate the first resolution;

[0101] The second input includes a first sub-input and a second sub-input.

[0102] Optionally, the resolutions corresponding to the N controls may be optional resolutions determined according to the current network speed and / or segment parameters of the corresponding video segments.

[0103] Optionally, the first video may include M video segments, and the M video segments may include a first video segment and a second video segment. Accordingly, the downloading unit 12 may include:

[0104] an acquisition subunit, configured to acquire segment parameters of M video segments in response to a first input;

[0105] A downloading subunit, configured to download the first video in a targeted manner according to the segment parameters;

[0106] Among them, when the segment parameter of the first video segment is greater than the segment parameter of the second video segment, the first resolution is greater than the second resolution; when the segment parameter of the first video segment is less than or equal to the segment parameter of the second video segment, the first resolution is less than or equal to the second resolution.

[0107] In an embodiment of the present application, when downloading a video, different resolutions can be used for downloading different video clips, which solves the problem of insufficient flexibility in setting the resolution of downloaded videos in the related art and can reduce the traffic used for downloading.

[0108] Alternatively, if Figure 5 As shown, an embodiment of the present application further provides an electronic device 900, including a processor 901 and a memory 902, wherein the memory 902 stores programs or instructions that can be executed on the processor 901, and when the program or instructions are executed by the processor 901, the various steps of the above-mentioned video downloading method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0109] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0110] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0111] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0112] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0113] The processor 1010 is used to perform the following steps:

[0114] Receiving a first input of a first video;

[0115] In response to the first input, downloading the first video in a targeted manner;

[0116] Among them, in the downloaded first video, the first video segment of the first video is at the first resolution, and the second video segment of the first video is at the second resolution; the first resolution is different from the second resolution.

[0117] Optionally, the first video may include M video segments. Before the processor 1010 receives a first input of the first video, it may further perform the following steps:

[0118] Displaying segment parameters of each video segment in the first video;

[0119] receiving a second input from a user regarding a first video segment among the M video segments;

[0120] In response to the second input, a resolution of the first video segment is set to a first resolution.

[0121] In an optional implementation manner, when the processor 1010 receives a second input from a user regarding a first video segment among the M video segments and sets the resolution of the first video segment to the first resolution in response to the second input, the following steps may be included:

[0122] receiving a first sub-input from a user, where the first sub-input is used to select a first video segment;

[0123] In response to the first sub-input, N controls are displayed, where the N controls are used to indicate different resolutions;

[0124] Receive a second sub-input of a first control among the N controls by a user;

[0125] In response to the second sub-input, the resolution of the first video segment is set to a first resolution, and the first control is used to indicate the first resolution;

[0126] The second input includes a first sub-input and a second sub-input.

[0127] Optionally, the resolutions corresponding to the N controls are optional resolutions determined according to the current network speed and / or segment parameters of the corresponding video segments.

[0128] In an optional implementation, the first video may include M video segments, and the M video segments include a first video segment and a second video segment. Accordingly, when the processor 1010 executes the downloading of the first video in a target manner in response to the first input, the processor 1010 includes executing the following steps:

[0129] In response to the first input, obtaining segment parameters of M video segments;

[0130] The first video is downloaded in a targeted manner according to the segment parameters.

[0131] Among them, when the segment parameter of the first video segment is greater than the segment parameter of the second video segment, the first resolution is greater than the second resolution; when the segment parameter of the first video segment is less than or equal to the segment parameter of the second video segment, the first resolution is less than or equal to the second resolution.

[0132] In an embodiment of the present application, when downloading a video, different resolutions can be used for downloading different video clips, which solves the problem of insufficient flexibility in setting the resolution of downloaded videos in the related art and can reduce the traffic used for downloading.

[0133] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0134] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0135] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0136] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned video downloading method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0137] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0138] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned video downloading method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0139] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0140] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned video downloading method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0141] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0143] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A video downloading method, characterized in that: include: Receiving a first input of a first video; In response to the first input, downloading the first video in a targeted manner; Wherein, in the downloaded first video, the first video segment of the first video is at a first resolution, and the second video segment of the first video is at a second resolution; the first resolution is different from the second resolution; The first video includes M video segments. Before receiving a first input of the first video, the method further includes: Displaying segment parameters of each video segment in the first video; receiving a second input from a user regarding a first video segment among the M video segments; In response to the second input, setting the resolution of the first video segment to the first resolution; The receiving a second input of a user for a first video segment among the M video segments, and setting the resolution of the first video segment to the first resolution in response to the second input, comprises: receiving a first sub-input from a user, where the first sub-input is used to select the first video segment; In response to the first sub-input, displaying N controls, wherein the N controls are used to indicate different resolutions; Receiving a second sub-input of a user on a first control among the N controls; In response to the second sub-input, setting the resolution of the first video clip to the first resolution, the first control being used to indicate the first resolution; The second input includes the first sub-input and the second sub-input.

2. The method according to claim 1, characterized in that The resolutions corresponding to the N controls are optional resolutions determined according to the current network speed and / or the segment parameters of the corresponding video segment.

3. The method according to claim 1, characterized in that: The first video includes M video segments, and the M video segments include a first video segment and a second video segment. The step of downloading the first video in a target manner in response to the first input comprises: In response to the first input, obtaining segment parameters of the M video segments; Downloading the first video in the target mode according to the segment parameters; Among them, when the segment parameter of the first video segment is greater than the segment parameter of the second video segment, the first resolution is greater than the second resolution; when the segment parameter of the first video segment is less than or equal to the segment parameter of the second video segment, the first resolution is less than or equal to the second resolution.

4. A video downloading device, characterized in that: include: A first receiving unit, configured to receive a first input of a first video; A downloading unit, configured to download the first video in a target manner in response to the first input; Wherein, in the downloaded first video, the first video segment of the first video is at a first resolution, and the second video segment of the first video is at a second resolution; the first resolution is different from the second resolution; The first video includes M video clips, and the device further includes: A display unit, configured to display a segment parameter of each video segment in the first video before receiving a first input of the first video; A second receiving unit, configured to receive a second input from a user regarding a first video segment among the M video segments; A setting unit, configured to set the resolution of the first video segment to the first resolution in response to the second input; The second receiving unit comprises: A first receiving subunit, configured to receive a first sub-input from a user, where the first sub-input is used to select the first video segment; A display subunit, configured to display N controls in response to the first sub-input, wherein the N controls are configured to indicate different resolutions; A second receiving sub-unit, configured to receive a second sub-input of a user to a first control among the N controls; The setting unit is further used to set the resolution of the first video segment to the first resolution in response to the second sub-input, and the first control is used to indicate the first resolution; The second input includes the first sub-input and the second sub-input.

5. The device according to claim 4, characterized in that The resolutions corresponding to the N controls are optional resolutions determined according to the current network speed and / or the segment parameters of the corresponding video segment.

6. The device according to claim 4, characterized in that The first video includes M video segments, and the M video segments include a first video segment and a second video segment. The downloading unit comprises: an acquisition subunit, configured to acquire segment parameters of the M video segments in response to the first input; A downloading subunit, configured to download the first video in the target mode according to the segment parameters; Among them, when the segment parameter of the first video segment is greater than the segment parameter of the second video segment, the first resolution is greater than the second resolution; when the segment parameter of the first video segment is less than or equal to the segment parameter of the second video segment, the first resolution is less than or equal to the second resolution.