Method, electronic device and storage medium for shooting video
View Patent ↗A method, electronic device and computer readable storage medium for shooting a video are disclosed. The method can include: shooting a first video based on a first duration; receiving a first instruction, where the first instruction is used for shooting for extra time; shooting a second video based on the first instruction, in response to that the first duration ends; and generating a target video file based on the first video and the second video.
1. A method of shooting a video, comprising:
shooting a first video based on a first duration in response to a shooting button at a first position on an operation interface being long-pressed;
causing presentation of an extra time button for extra time shooting at a second position on the operation interface, wherein the second position is different from the first position;
receiving a first instruction in response to the shooting button at the first position being dragged to the second position during the first duration, wherein the first instruction is used for shooting for extra time;
shooting a second video based on the first instruction, in response to the first duration ending; and
generating a target video file based on the first video and the second video.
2. The method of claim 1 , wherein the second video comprises a plurality of successive sub-second videos.
3. The method of claim 2 , said that shooting a second video comprises:
generating a sub-second video in response to a shooting duration reaching a second duration; and
retiming the shooting duration for shooting a successive sub-second video.
4. The method of claim 2 , further comprising:
generating a first thumbnail corresponding to the first video;
generating each second thumbnail corresponding to respective one of sub-second videos;
joining the first thumbnail and each second thumbnail.
5. The method of claim 2 , further comprising:
generating a sub-second video, in response to a second instruction being received, wherein the second instruction is used for pausing shooting;
generating the second video in response to a third instruction being received, wherein third instruction is used for terminating shooting; or
deleting a latest sub-second video and adjusting a total shooting duration, in response to a fourth instruction being received, wherein the fourth instruction is used for deleting a video.
6. The method of claim 2 , further comprising:
terminating shooting the second video, in response to:
a quantity of the second videos reaching a preset quantity threshold value; or
an instruction for terminating shooting being received.
7. The method of claim 2 ,
said generating the target video file comprising:
determining an edited first video by editing the first video;
determining an edited second video by editing each sub-second video, and
generating the target video file by merging the edited first video with the edited second video;
or
determining a merged video file by merging the first video with the second video, and
generating the target video file by editing the merged video file.
8. The method of claim 7 , further comprising:
in response to determining that a total duration of the first video and the second video exceeds a preset duration threshold value, performing any one of following operations:
clipping the first video and the second video respectively based on the preset duration threshold value;
clipping the merged video file based on the preset duration threshold value; and
cutting the target video file based on the preset duration threshold value.
9. An electronic device for shooting a video, comprising:
a memory;
a processor; and
a program that is stored on the memory and runs on the processor;
wherein the program, when executed by the processor, implements steps of:
shooting a first video based on a first duration in response to a shooting button at a first position on an operation interface being long-pressed;
causing presentation of an extra time button for extra time shooting at a second position on the operation interface, wherein the second position is different from the first position;
receiving a first instruction in response to the shooting button at the first position being dragged to the second position during the first duration, wherein the first instruction is used for shooting for extra time;
shooting a second video based on the first instruction, in response to the first duration ending; and
generating a target video file based on the first video and the second video.
10. The electronic device of claim 9 , wherein the second video comprises a plurality of successive sub-second videos.
11. The electronic device of claim 10 , said shooting a second video comprising:
generating a sub-second video in response to a shooting duration reaching a second duration; and
retiming the shooting duration for shooting a successive sub-second video.
12. The electronic device of claim 10 , wherein the program, when executed by the processor, further implements steps of:
generating a first thumbnail corresponding to the first video;
generating each second thumbnail corresponding to respective one of sub-second videos;
joining the first thumbnail and each second thumbnail.
13. The electronic device of claim 10 , wherein the program, when executed by the processor, further implements steps of:
generating a sub-second video, in response to a second instruction being received, wherein the second instruction is used for pausing shooting;
generating the second video in response to a third instruction being received, wherein third instruction is used for terminating shooting; or
deleting a latest sub-second video and adjusting a total shooting duration, in response to a fourth instruction being received, wherein the fourth instruction is used for deleting a video.
14. The electronic device of claim 10 , wherein the program, when executed by the processor, further implements steps of:
terminating shooting the second video, in response to:
a quantity of the second videos reaching a preset quantity threshold value; or
an instruction for terminating shooting being received.
15. The electronic device of claim 10 ,
said generating the target video file comprising:
determining an edited first video by editing the first video;
determining an edited second video by editing each sub-second video, and
generating the target video file by merging the edited first video with the edited second video;
or
determining a merged video file by merging the first video with the second video, and
generating the target video file by editing the merged video file.
16. The electronic device of claim 15 , wherein the program, when executed by the processor, further implements steps of:
in response to determining that a total duration of the first video and the second video exceeds a preset duration threshold value, performing any one of following operations:
clipping the first video and the second video respectively based on the preset duration threshold value;
clipping the merged video file based on the preset duration threshold value; and
cutting the target video file based on the preset duration threshold value.
17. A non-transitory computer readable storage medium for shooting a video, wherein, the computer readable storage medium stores a program, wherein the program, when executed by a processor, implements steps of:
shooting a first video based on a first duration in response to a shooting button at a first position on an operation interface being long-pressed;
causing presentation of an extra time button for extra time shooting at a second position on the operation interface, wherein the second position is different from the first position;
receiving a first instruction in response to the shooting button at the first position being dragged to the second position during the first duration, wherein the first instruction is used for shooting for extra time;
shooting a second video based on the first instruction, in response to that the first duration ends; and
generating a target video file based on the first video and the second video.
18. The non-transitory computer readable storage medium of claim 17 , wherein the second video comprises a plurality of successive sub-second videos.