CN108108268B - Method and device for processing quit restart of video recording application - Google Patents
Method and device for processing quit restart of video recording application Download PDFInfo
- Publication number
- CN108108268B CN108108268B CN201711219272.0A CN201711219272A CN108108268B CN 108108268 B CN108108268 B CN 108108268B CN 201711219272 A CN201711219272 A CN 201711219272A CN 108108268 B CN108108268 B CN 108108268B
- Authority
- CN
- China
- Prior art keywords
- video
- recording
- page
- exit
- last
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 78
- 230000002159 abnormal effect Effects 0.000 claims abstract description 96
- 230000008569 process Effects 0.000 claims abstract description 27
- 230000000694 effects Effects 0.000 claims description 28
- 238000011084 recovery Methods 0.000 claims description 20
- 238000003672 processing method Methods 0.000 claims description 4
- 230000009471 action Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 3
- 244000025254 Cannabis sativa Species 0.000 description 2
- GUBGYTABKSRVRQ-QKKXKWKRSA-N Lactose Chemical compound OC[C@H]1O[C@@H](O[C@H]2[C@H](O)[C@@H](O)C(O)O[C@@H]2CO)[C@H](O)[C@@H](O)[C@H]1O GUBGYTABKSRVRQ-QKKXKWKRSA-N 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000001454 recorded image Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1438—Restarting or rejuvenating
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a method and a device for processing quit restart of video recording application, electronic equipment and a computer readable storage medium. The method comprises the following steps: when abnormal exit or manual exit of the video recording application in the video recording process is monitored, storing the currently recorded video and related information of the currently recorded page as abnormal exit data in a database; and when the video recording application is restarted, reading abnormal exit data stored in the last exit from the database, and restoring the recording page in the last exit according to the read abnormal exit data. By the technical scheme, the video data and the page before exiting can be timely recovered when the recording process is abnormally exited or the user manually exits and then restarts, so that the video data is prevented from being lost, and the user experience is enhanced.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for processing quit restart of video recording application, electronic equipment and a computer readable storage medium.
Background
With the continuous improvement of the functions of the intelligent terminal, various application programs applied to the intelligent terminal are increasing, wherein some application programs can upload or download resources such as videos recorded by users so as to share the resources, for example, a express application program and a 360-degree milk sugar application program. When video sharing is performed, a user often records a video and uploads the video to share the video to other people. However, in the process of recording a video by using an application program, the situation of abnormal exit or closing caused by problems of a system and the like is easy to occur; or, the user manually quits the recording, which may cause the loss of the recorded video, and the user has to re-record, which reduces the user experience.
Therefore, there is a need for an exit restart handling mechanism for video recording applications.
Disclosure of Invention
In view of the above, the present invention has been made to provide an exit restart processing method, apparatus, electronic device and computer-readable storage medium for a video recording application that overcome or at least partially solve the above-mentioned problems.
According to an aspect of the present invention, there is provided a method for handling an exit restart of a video recording application, wherein the method includes:
when abnormal exit or manual exit of the video recording application in the video recording process is monitored, storing the currently recorded video and related information of the currently recorded page as abnormal exit data in a database;
and when the video recording application is restarted, reading abnormal exit data stored in the last exit from the database, and restoring the recording page in the last exit according to the read abnormal exit data.
Optionally, the method further comprises:
presetting the last frame image of the last video recorded at present to obtain a prompt image;
saving the prompt image into a database as part of abnormal exit data;
when the video recording application is restarted, after the recording page which is exited last time is recovered, the prompt image is superposed to the recording preview image in the recording page for presentation.
Optionally, the preset processing of the last frame image of the last video recorded at present to obtain the prompt image includes:
improving the transparency of the last frame image to a preset value to obtain a prompt image;
or,
and extracting the outline of the specified target in the last frame image to obtain a prompt image.
Optionally, the related information of the current recording page includes one or more of the following:
a storage path of the recorded video;
recording the music objects temporarily stored in the page;
recording the music time length temporarily stored in the page;
and recording special effect information temporarily stored in the page.
Optionally, when the video recording application is restarted, before reading abnormal exit data saved at the last exit from a database, the method further comprises:
prompting the user whether to recover the recording page in the last exit;
if the user selects recovery, executing the step of reading abnormal exit data saved in the last exit from the database;
and if the user chooses not to restore, deleting abnormal exit data saved in the last exit from the database.
Optionally, the method further comprises:
and after the user finishes video recording on the recovered recording page, deleting the abnormal exit data stored in the last exit from the database.
According to another aspect of the present invention, there is provided an exit restart processing apparatus for a video recording application, wherein the apparatus comprises:
the storage unit is used for storing the currently recorded video and the related information of the currently recorded page as abnormal exit data into a database when the abnormal exit or the manual exit of the video recording application in the video recording process is monitored;
and the recovery unit is used for reading the abnormal exit data stored in the last exit from the database when the video recording application is restarted, and recovering the recording page in the last exit according to the read abnormal exit data.
Optionally, the apparatus further comprises:
the processing unit is used for presetting the last frame image of the last video recorded at present to obtain a prompt image;
the storage unit is also used for storing the prompt image into a database as a part of abnormal exit data;
and the recovery unit is further used for overlaying the prompt image to a recording preview image in the recording page for presentation after recovering the recording page when the video recording application is exited last time when the video recording application is restarted.
Optionally, the processing unit is configured to increase the transparency of the last frame of image to a preset value, so as to obtain a prompt image; or extracting the outline of the specified target in the last frame image to obtain a prompt image.
Optionally, the related information of the current recording page includes one or more of the following:
a storage path of the recorded video;
recording the music objects temporarily stored in the page;
recording the music time length temporarily stored in the page;
and recording special effect information temporarily stored in the page.
Optionally, the apparatus further comprises:
the prompting unit is used for prompting a user whether to recover the recording page in the last quitting before reading the abnormal quitting data stored in the last quitting from the database when the video recording application is restarted;
the recovery unit is used for reading the abnormal exit data saved in the last exit from the database if the user selects recovery; and if the user chooses not to restore, deleting abnormal exit data saved in the last exit from the database.
Optionally, the apparatus further comprises:
and the deleting unit is used for deleting the abnormal quitting data stored in the last quitting from the database after the user finishes video recording on the recovered recording page.
In accordance with still another aspect of the present invention, there is provided an electronic apparatus, wherein the electronic apparatus includes:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method according to the foregoing.
According to yet another aspect of the present invention, there is provided a computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the aforementioned method.
According to the technical scheme of the invention, when abnormal exit or manual exit of the video recording application in the video recording process is monitored, the currently recorded video and the related information of the currently recorded page are stored in a database as abnormal exit data; and when the video recording application is restarted, reading abnormal exit data stored in the last exit from the database, and restoring the recording page in the last exit according to the read abnormal exit data. By the technical scheme, the video data and the page before exiting can be timely recovered when the recording process is abnormally exited or the user manually exits and then restarts, so that the video data is prevented from being lost, and the user experience is enhanced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating an exit restart handling method of a video recording application according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an exit restart processing apparatus of a video recording application according to an embodiment of the present invention;
FIG. 3 shows a schematic structural diagram of an electronic device according to one embodiment of the invention;
fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating an exit restart processing method of a video recording application according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S110, when it is monitored that the video recording application abnormally exits or manually exits in the video recording process, the currently recorded video and the related information of the currently recorded page are stored in a database as abnormal exit data.
The recorded video is a video in which the user has performed an operation of completing recording, for example, taking a short video as an example, the user is required to hold the recording key all the time when recording the short video, when the user releases the recording key, the recording of the video segment is ended, and here releasing the recording key is the operation of completing recording.
In this embodiment, the recorded video and the related information of the currently recorded page are stored in the database as abnormal exit data. For example, when a user records a video, the user wants to complete the recording of 3 video segments, and when a third video segment is recorded, the user exits abnormally, only the related information of the first two video segments and the current recording page which are recorded completely is taken as abnormal exiting data and stored in the database, but the third video segment cannot be taken as the abnormal exiting data because the recording is not completed (for example, the user releases the recording key).
And step S120, when the video recording application is restarted, reading abnormal exit data stored in the last exit from the database, and restoring the recording page in the last exit according to the read abnormal exit data.
Because the database has the relevant information of the recorded video and the current recording page, when the recorded video and the current recording page are recovered, the recorded video and the current recording page can be recovered simultaneously. For example, when a user records a video, the user wants to complete the recording of 3 segments of video, and when the user records a third segment of video, the user exits abnormally, after the third segment of video is recovered, the recorded first two segments of video are recovered, and meanwhile, the corresponding recording page is also recovered, and the user only needs to continuously press the recording key to record the third segment. For another example, the user has already finished recording three segments of videos, and when editing the videos, the videos are abnormally exited, and after recovery, the video editing page when the videos are abnormally exited will be performed.
Therefore, by the embodiment, when the recording process is abnormally quitted or the user manually quits and then restarts the recording process, the video data and the page before quitting can be timely recovered, the video data is prevented from being lost, and the user experience is enhanced.
In one embodiment of the present invention, the method shown in fig. 1 further comprises: presetting the last frame image of the last video recorded at present to obtain a prompt image; saving the prompt image into a database as a part of the abnormal exit data; when the video recording application is restarted, after the recording page which is exited last time is recovered, the prompt image is superposed to the recording preview image in the recording page for presentation.
In the process of recording by a user, in order to achieve some effects of a video or increase content in the video, the user may select different recording scenes in one video for recording, and in general, after recording a segment of video, the user stops or pauses and then records the next segment of video. However, in order to ensure the continuity of the videos with different recording scenes, good connection is required between two sections of videos, and if the connection is not good or too abrupt, the continuous display effect of the videos cannot be ensured, which affects the user experience.
According to the embodiment, the prompt image is also stored in the database as a part of the abnormal quitting data, after the recording page in the last quitting process is recovered, the prompt image is superposed to the recording preview image in the recording page to be presented, a user can continue recording the next video according to the prompt image, the next video is well connected with the previous video, discontinuity or salience in video display is avoided, continuity of video display effect is guaranteed, and user experience is enhanced.
In a specific example, the next video segment needs to be recorded continuously on the basis of the position of the person in the last frame image of the previous video segment, then, after the recording page is recovered, the position information of the person exists in the prompt image, and the user only needs to ensure that the person in the preview image is at the position of the person in the prompt image before the recording of the later video segment, and then starts to record.
In another specific example, recording a short video of a dancer's dance may be desirable to show the effect of a complete dance in different scenes, such as at the side of a road, in a classroom, or on grass, respectively. When recording a short video, when a place is changed from a road side to a classroom video recording, the user quits abnormally, in order to ensure the continuity of the video, after the recorded page is recovered, the user needs to know what actions a dancer in the video is in the previous section of road side dancing video and where the dancer is in the image picture when recording the short video in the classroom. By adopting the scheme of the embodiment, the prompt image is obtained according to the last frame of image of the road side dancing video, after the recorded page is recovered, the prompt image is displayed in an overlapping mode, and when a user records the dancing video in a classroom according to the position information and the dancing action information in the prompt image, the position where the dancer should be located and the connected dancing action can be known, so that the recorded video is displayed in the mode that the dancer jumps to a section of complete dancing, and the background environment is changed.
Specifically, the step of performing preset processing on the last frame image of the last video recorded at present to obtain the prompt image includes: improving the transparency of the last frame image to a preset value to obtain a prompt image; or extracting the outline of the specified target in the last frame image to obtain the prompt image.
In order to ensure that the user does not influence the viewing of the recorded image when the prompt image is presented, the preset processing needs to ensure that the obtained prompt image cannot excessively influence the viewing of the preview image when the obtained prompt image is superimposed on the preview image. In this embodiment, the transparency is increased to a preset value, and when the image is prompted to be presented, the image being recorded is not covered, or only the outline of the designated target is presented, and the image being recorded is not covered. For example, the specified target may be a person in the saved image.
The related information of the current recording page is information required in program implementation and information related to the video in the recording page. In an embodiment of the present invention, the related information of the currently recorded page in the method shown in fig. 1 includes one or more of the following:
(1) and storing the recorded video so as to recover according to the storing path of the recorded video.
(2) And recording the music objects temporarily stored in the page.
When a user records a video, the user can record the video with background music. In order to restore the background music together at the time of restoration, the music objects temporarily stored on the recording page are stored together at the time of storage.
(3) And recording the temporarily stored music time length of the page.
When a user records the background music, only a part of the background music is used in the recorded video, and in order to ensure that the continuously recorded video can be continuously recorded from the end position of the background music already used by the recorded video after the recorded page is recovered, the music duration temporarily stored in the recorded page also needs to be used as the related information of the recorded page. That is to say, it is necessary to ensure that the recorded video and the background music of the video recorded after the recorded page is restored are well linked, and the music duration temporarily stored in the recorded page is also used as the related information of the recorded page.
(4) And recording special effect information temporarily stored in the page.
In the process of recording a video, a user may design a special effect for the recorded video, and particularly when the video is edited after the video is recorded, if the special effect is abnormally promoted and the designed special effect cannot be recovered, the user needs to design again, so that the user experience is reduced. Therefore, in the present embodiment, special effect information temporarily stored in the recording page is used as related information of the recording page as well.
The special effect information may include tools used by the user to edit the video, filters, special effects, etc. of the video.
In one embodiment of the present invention, when the video recording application in step S120 is restarted, before reading the abnormal exit data saved at the last exit from the database, the method shown in fig. 1 further includes: prompting the user whether to recover the recording page in the last exit; if the user selects recovery, a step of reading abnormal exit data saved in the last exit from the database is executed; and if the user chooses not to restore, deleting abnormal exit data saved in the last exit from the database.
In this embodiment, the user is prompted, so that the user can select whether to record the recorded video according to the user's will, and the user experience is further enhanced. Particularly for manual exit by the user, the user's intent may be dissatisfaction with the recorded video, intending to retake. Therefore, the user is prompted whether to recover the recorded page in the last exit, and the user can choose not to recover.
And if the user chooses not to recover, deleting the abnormal exit data saved in the last exit from the database so as to save database resources.
In one embodiment of the present invention, the method shown in fig. 1 further comprises: and after the user finishes video recording on the recovered recording page, deleting the abnormal exit data stored in the last exit from the database.
Completing video recording in this embodiment means that the user has stored the video in the draft box or uploaded the video. After the user finishes recording the video on the recovered recording page, the abnormal exit data in the database is not needed any more if the user does not need to record the video again, and the abnormal exit data stored in the last exit can be deleted from the database.
It should be noted that the video applied in this embodiment may be a normal-length video or a short video.
Fig. 2 is a schematic structural diagram of an exit restart processing apparatus for a video recording application according to an embodiment of the present invention. As shown in fig. 2, the apparatus 200 for processing the exit restart of the video recording application includes:
the storing unit 210 is configured to, when it is monitored that the video recording application abnormally exits or manually exits in the video recording process, store the currently recorded video and the related information of the currently recorded page as abnormal exit data in a database.
The recorded video is a video in which the user has performed an operation of completing recording, for example, taking a short video as an example, the user is required to hold the recording key all the time when recording the short video, when the user releases the recording key, the recording of the video segment is ended, and here releasing the recording key is the operation of completing recording.
In this embodiment, the recorded video and the related information of the currently recorded page are stored in the database as abnormal exit data. For example, when a user records a video, the user wants to complete the recording of 3 video segments, and when a third video segment is recorded, the user exits abnormally, only the related information of the first two video segments and the current recording page which are recorded completely is taken as abnormal exiting data and stored in the database, but the third video segment cannot be taken as the abnormal exiting data because the recording is not completed (for example, the user releases the recording key).
And a restoring unit 220, configured to, when the video recording application is restarted, read abnormal exit data stored in the last exit from the database, and restore the recording page in the last exit according to the read abnormal exit data.
Because the database has the relevant information of the recorded video and the current recording page, when the recorded video and the current recording page are recovered, the recorded video and the current recording page can be recovered simultaneously. For example, when a user records a video, the user wants to complete the recording of 3 segments of video, and when the user records a third segment of video, the user exits abnormally, after the third segment of video is recovered, the recorded first two segments of video are recovered, and meanwhile, the corresponding recording page is also recovered, and the user only needs to continuously press the recording key to record the third segment. For another example, the user has already finished recording three segments of videos, and when editing the videos, the videos are abnormally exited, and after recovery, the video editing page when the videos are abnormally exited will be performed.
Therefore, by the embodiment, when the recording process is abnormally quitted or the user manually quits and then restarts the recording process, the video data and the page before quitting can be timely recovered, the video data is prevented from being lost, and the user experience is enhanced.
In one embodiment of the present invention, the apparatus shown in fig. 2 further comprises:
and the processing unit is used for presetting the last frame image of the last video recorded at present to obtain a prompt image.
The saving unit 210 is further configured to save the prompt image into the database as part of the abnormal exit data.
The restoring unit 220 is further configured to, when the video recording application is restarted, restore the recording page that was last exited, superimpose the prompt image onto the recording preview image in the recording page for presentation.
In the process of recording by a user, in order to achieve some effects of a video or increase content in the video, the user may select different recording scenes in one video for recording, and in general, after recording a segment of video, the user stops or pauses and then records the next segment of video. However, in order to ensure the continuity of the videos with different recording scenes, good connection is required between two sections of videos, and if the connection is not good or too abrupt, the continuous display effect of the videos cannot be ensured, which affects the user experience.
According to the embodiment, the prompt image is also stored in the database as a part of the abnormal quitting data, after the recording page in the last quitting process is recovered, the prompt image is superposed to the recording preview image in the recording page to be presented, a user can continue recording the next video according to the prompt image, the next video is well connected with the previous video, discontinuity or salience in video display is avoided, continuity of video display effect is guaranteed, and user experience is enhanced.
In a specific example, the next video segment needs to be recorded continuously on the basis of the position of the person in the last frame image of the previous video segment, then, after the recording page is recovered, the position information of the person exists in the prompt image, and the user only needs to ensure that the person in the preview image is at the position of the person in the prompt image before the recording of the later video segment, and then starts to record.
In another specific example, recording a short video of a dancer's dance may be desirable to show the effect of a complete dance in different scenes, such as at the side of a road, in a classroom, or on grass, respectively. When recording a short video, when a place is changed from a road side to a classroom short video recording, the user quits abnormally, and in order to ensure the continuity of the video, after the recorded page is recovered, the user needs to know what actions a dancer in the video is in the previous section of road side dancing video and where the dancer is in an image picture when recording the short video in the classroom. By adopting the scheme of the embodiment, the prompt image is obtained according to the last frame of image of the road side dancing video, after the recorded page is recovered, the prompt image is displayed in an overlapping mode, and a user can know the position where a dancer should be located and the connected dancing action when recording the video dancing in a classroom according to the position information and the dancing action information in the prompt image, so that the recorded short video is displayed in a mode that the dancer jumps a section of complete dancing, and the background environment is changed.
In an embodiment of the present invention, the processing unit is configured to increase the transparency of the last frame of image to a preset value, so as to obtain a prompt image; or extracting the outline of the specified target in the last frame image to obtain the prompt image.
In order to ensure that the user does not influence the viewing of the recorded image when the prompt image is presented, the preset processing needs to ensure that the obtained prompt image cannot excessively influence the viewing of the preview image when the obtained prompt image is superimposed on the preview image. In this embodiment, the transparency is increased to a preset value, and when the image is prompted to be presented, the image being recorded is not covered, or only the outline of the designated target is presented, and the image being recorded is not covered. For example, the specified target may be a person in the saved image.
The related information of the current recording page is information required in program implementation and information related to the video in the recording page. In an embodiment of the present invention, the related information of the current recording page includes one or more of the following:
(1) and storing the recorded video so as to recover according to the storing path of the recorded video.
(2) And recording the music objects temporarily stored in the page.
When a user records a video, the user can record the video with background music. In order to restore the background music together at the time of restoration, the music objects temporarily stored on the recording page are stored together at the time of storage.
(3) And recording the temporarily stored music time length of the page.
When a user records the background music, only a part of the background music is used in the recorded video, and in order to ensure that the continuously recorded video can be continuously recorded from the end position of the background music already used by the recorded video after the recorded page is recovered, the music duration temporarily stored in the recorded page also needs to be used as the related information of the recorded page. That is to say, it is necessary to ensure that the recorded video and the background music of the video recorded after the recorded page is restored are well linked, and the music duration temporarily stored in the recorded page is also used as the related information of the recorded page.
(4) And recording special effect information temporarily stored in the page.
In the process of recording a video, a user may design a special effect for the recorded video, and particularly when the video is edited after the video is recorded, if the special effect is abnormally promoted and the designed special effect cannot be recovered, the user needs to design again, so that the user experience is reduced. Therefore, in the present embodiment, special effect information temporarily stored in the recording page is used as related information of the recording page as well.
The special effect information may include tools used by the user to edit the video, filters, special effects, etc. of the video.
In one embodiment of the present invention, the apparatus shown in fig. 2 further comprises:
the prompting unit is used for prompting a user whether to recover the recording page in the last quitting before reading the abnormal quitting data stored in the last quitting from the database when the video recording application is restarted;
a recovery unit 220, configured to, if the user selects recovery, perform a step of reading abnormal exit data saved at the last exit from the database; and if the user chooses not to restore, deleting abnormal exit data saved in the last exit from the database.
In this embodiment, the user is prompted, so that the user can select whether to record the recorded video according to the user's will, and the user experience is further enhanced. Particularly for manual exit by the user, the user's intent may be dissatisfaction with the recorded video, intending to retake. Therefore, the user is prompted whether to recover the recorded page in the last exit, and the user can choose not to recover.
And if the user chooses not to recover, deleting the abnormal exit data saved in the last exit from the database so as to save database resources.
In one embodiment of the present invention, the apparatus shown in fig. 2 further comprises:
and the deleting unit is used for deleting the abnormal quitting data stored in the last quitting from the database after the user finishes video recording on the recovered recording page.
Completing video recording in this embodiment means that the user has stored the video in the draft box or uploaded the video. After the user finishes recording the video on the recovered recording page, the abnormal exit data in the database is not needed any more if the user does not need to record the video again, and the abnormal exit data stored in the last exit can be deleted from the database.
It should be noted that the video applied in this embodiment may be a normal-length video or a short video.
The present invention also provides an electronic device, wherein the electronic device includes:
a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method of exit restart handling for a video recording application according to that shown in figure 1 and its various embodiments.
Fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the invention. As shown in fig. 3, the electronic device 300 includes:
a processor 310; and a memory 320 arranged to store computer executable instructions (program code), in the memory 320 there being a storage space 330 storing the program code, in the storage space 330 a program code 340 for performing the steps of the method according to the invention is stored, which program code, when executed, causes the processor 310 to perform the exit-restart handling method of the video recording application according to the embodiment shown in fig. 1 and its embodiments.
Fig. 4 shows a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention. As shown in fig. 4, the computer readable storage medium 400 stores one or more programs (program code) 410, and the one or more programs (program code) 410, when executed by a processor, are for performing the method steps according to the present invention, namely the exit restart handling method of the video recording application shown in fig. 1 and its various embodiments.
It should be noted that the embodiments of the electronic device shown in fig. 3 and the computer-readable storage medium shown in fig. 4 are the same as the embodiments of the method shown in fig. 1, and the detailed description is given above and is not repeated here.
In summary, according to the technical scheme of the present invention, when it is monitored that the video recording application is abnormally exited or manually exited during the video recording process, the currently recorded video and the related information of the currently recorded page are stored in the database as abnormal exit data; and when the video recording application is restarted, reading abnormal exit data stored in the last exit from the database, and restoring the recording page in the last exit according to the read abnormal exit data. By the technical scheme, the video data and the page before exiting can be timely recovered when the recording process is abnormally exited or the user manually exits and then restarts, so that the video data is prevented from being lost, and the user experience is enhanced.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the exit restart processing apparatus, the electronic device and the computer readable storage medium of a video recording application according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses A1 and an exit restart processing method of video recording application, wherein the method comprises the following steps:
when abnormal exit or manual exit of the video recording application in the video recording process is monitored, storing the currently recorded video and related information of the currently recorded page as abnormal exit data in a database;
and when the video recording application is restarted, reading abnormal exit data stored in the last exit from the database, and restoring the recording page in the last exit according to the read abnormal exit data.
A2, the method of a1, wherein the method further comprises:
presetting the last frame image of the last video recorded at present to obtain a prompt image;
saving the prompt image into a database as part of abnormal exit data;
when the video recording application is restarted, after the recording page which is exited last time is recovered, the prompt image is superposed to the recording preview image in the recording page for presentation.
A3, the method as in a2, wherein the pre-setting the last frame image of the last video recorded currently to obtain the prompt image includes:
improving the transparency of the last frame image to a preset value to obtain a prompt image;
or,
and extracting the outline of the specified target in the last frame image to obtain a prompt image.
A4, the method of A1, wherein the related information of the current recording page includes one or more of the following:
a storage path of the recorded video;
recording the music objects temporarily stored in the page;
recording the music time length temporarily stored in the page;
and recording special effect information temporarily stored in the page.
A5, the method of a1, wherein when the video recording application is restarted, before reading the abnormal exit data saved at the last exit from the database, the method further comprises:
prompting the user whether to recover the recording page in the last exit;
if the user selects recovery, executing the step of reading abnormal exit data saved in the last exit from the database;
and if the user chooses not to restore, deleting abnormal exit data saved in the last exit from the database.
A6, the method of a1, wherein the method further comprises:
and after the user finishes video recording on the recovered recording page, deleting the abnormal exit data stored in the last exit from the database.
The invention also discloses B7, an exit restart processing device of video recording application, wherein the device comprises:
the storage unit is used for storing the currently recorded video and the related information of the currently recorded page as abnormal exit data into a database when the abnormal exit or the manual exit of the video recording application in the video recording process is monitored;
and the recovery unit is used for reading the abnormal exit data stored in the last exit from the database when the video recording application is restarted, and recovering the recording page in the last exit according to the read abnormal exit data.
B8, the method according to B7, wherein the device further comprises:
the processing unit is used for presetting the last frame image of the last video recorded at present to obtain a prompt image;
the storage unit is also used for storing the prompt image into a database as a part of abnormal exit data;
and the recovery unit is further used for overlaying the prompt image to a recording preview image in the recording page for presentation after recovering the recording page when the video recording application is exited last time when the video recording application is restarted.
The device of B9, as described in B8, wherein the processing unit is configured to increase transparency of the last frame image to a preset value, so as to obtain a prompt image; or extracting the outline of the specified target in the last frame image to obtain a prompt image.
B10, the apparatus according to B7, wherein the related information of the current recording page includes one or more of the following:
a storage path of the recorded video;
recording the music objects temporarily stored in the page;
recording the music time length temporarily stored in the page;
and recording special effect information temporarily stored in the page.
B11, the apparatus of B7, wherein the apparatus further comprises:
the prompting unit is used for prompting a user whether to recover the recording page in the last quitting before reading the abnormal quitting data stored in the last quitting from the database when the video recording application is restarted;
the recovery unit is used for reading the abnormal exit data saved in the last exit from the database if the user selects recovery; and if the user chooses not to restore, deleting abnormal exit data saved in the last exit from the database.
B12, the apparatus of B7, wherein the apparatus further comprises:
and the deleting unit is used for deleting the abnormal quitting data stored in the last quitting from the database after the user finishes video recording on the recovered recording page.
The invention also discloses C13 and an electronic device, wherein the electronic device comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method according to any one of a 1-a 6.
The invention also discloses D14, a computer readable storage medium, wherein the computer readable storage medium stores one or more programs that, when executed by a processor, implement the method of any one of a 1-a 6.
Claims (12)
1. An exit restart processing method for a video recording application, wherein the method comprises the following steps:
when abnormal exit or manual exit of the video recording application in the video recording process is monitored, storing the currently recorded video and related information of the currently recorded page as abnormal exit data in a database;
when the video recording application is restarted, reading abnormal exit data saved during the last exit from a database, and restoring a recording page during the last exit according to the read abnormal exit data;
the method further comprises the following steps:
presetting the last frame image of the last video recorded at present to obtain a prompt image;
saving the prompt image into a database as part of abnormal exit data;
when the video recording application is restarted, after the recording page which is exited last time is recovered, the prompt image is superposed to the recording preview image in the recording page for presentation.
2. The method of claim 1, wherein the pre-setting the last frame of image of the last video recorded at present to obtain the prompt image comprises:
improving the transparency of the last frame image to a preset value to obtain a prompt image;
or,
and extracting the outline of the specified target in the last frame image to obtain a prompt image.
3. The method of claim 1, wherein the information related to the currently recorded page includes one or more of:
a storage path of the recorded video;
recording the music objects temporarily stored in the page;
recording the music time length temporarily stored in the page;
and recording special effect information temporarily stored in the page.
4. The method of claim 1, wherein when the video recording application is restarted, prior to reading from the database the abnormal exit data saved at the last exit, the method further comprises:
prompting the user whether to recover the recording page in the last exit;
if the user selects recovery, executing the step of reading abnormal exit data saved in the last exit from the database;
and if the user chooses not to restore, deleting abnormal exit data saved in the last exit from the database.
5. The method of claim 1, wherein the method further comprises:
and after the user finishes video recording on the recovered recording page, deleting the abnormal exit data stored in the last exit from the database.
6. An exit restart processing apparatus for a video recording application, the apparatus comprising:
the storage unit is used for storing the currently recorded video and the related information of the currently recorded page as abnormal exit data into a database when the abnormal exit or the manual exit of the video recording application in the video recording process is monitored;
the recovery unit is used for reading abnormal exit data stored in the last exit from the database when the video recording application is restarted, and recovering the recording page in the last exit according to the read abnormal exit data;
the apparatus further comprises:
the processing unit is used for presetting the last frame image of the last video recorded at present to obtain a prompt image;
the storage unit is also used for storing the prompt image into a database as a part of abnormal exit data;
and the recovery unit is further used for overlaying the prompt image to a recording preview image in the recording page for presentation after recovering the recording page when the video recording application is exited last time when the video recording application is restarted.
7. The apparatus of claim 6, wherein the processing unit is configured to increase transparency of the last frame image to a preset value, so as to obtain a prompt image; or extracting the outline of the specified target in the last frame image to obtain a prompt image.
8. The apparatus of claim 6, wherein the information related to the currently recorded page comprises one or more of:
a storage path of the recorded video;
recording the music objects temporarily stored in the page;
recording the music time length temporarily stored in the page;
and recording special effect information temporarily stored in the page.
9. The apparatus of claim 6, wherein the apparatus further comprises:
the prompting unit is used for prompting a user whether to recover the recording page in the last quitting before reading the abnormal quitting data stored in the last quitting from the database when the video recording application is restarted;
the recovery unit is used for reading the abnormal exit data saved in the last exit from the database if the user selects recovery; and if the user chooses not to restore, deleting abnormal exit data saved in the last exit from the database.
10. The apparatus of claim 6, wherein the apparatus further comprises:
and the deleting unit is used for deleting the abnormal quitting data stored in the last quitting from the database after the user finishes video recording on the recovered recording page.
11. An electronic device, wherein the electronic device comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method according to any one of claims 1 to 5.
12. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711219272.0A CN108108268B (en) | 2017-11-28 | 2017-11-28 | Method and device for processing quit restart of video recording application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711219272.0A CN108108268B (en) | 2017-11-28 | 2017-11-28 | Method and device for processing quit restart of video recording application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108108268A CN108108268A (en) | 2018-06-01 |
CN108108268B true CN108108268B (en) | 2021-08-27 |
Family
ID=62208567
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711219272.0A Active CN108108268B (en) | 2017-11-28 | 2017-11-28 | Method and device for processing quit restart of video recording application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108108268B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600661B (en) * | 2018-08-01 | 2022-06-28 | 北京微播视界科技有限公司 | Method and apparatus for recording video |
CN111385508B (en) * | 2018-12-28 | 2021-08-20 | 广州市百果园信息技术有限公司 | Video processing method, device, equipment and storage medium |
CN110213524B (en) * | 2019-04-26 | 2022-10-18 | 视联动力信息技术股份有限公司 | Video networking conference exception handling method and device |
CN110213648B (en) * | 2019-06-05 | 2022-09-16 | 重庆菜鸽途讯科技有限公司 | Same-screen method, system, mobile terminal and computer readable storage medium |
CN111221671B (en) * | 2019-11-27 | 2024-03-22 | 中国银行股份有限公司 | Processing method and device for abnormal exit of application program |
CN111274503B (en) * | 2020-01-20 | 2024-02-20 | 北京有竹居网络技术有限公司 | Data processing method, device, electronic equipment and computer readable medium |
CN111277891B (en) * | 2020-03-05 | 2022-12-27 | 海信视像科技股份有限公司 | Program recording prompting method and display equipment |
CN111488244A (en) * | 2020-04-07 | 2020-08-04 | 广州虎牙科技有限公司 | Editing abnormity recovery method and device, electronic equipment and storage medium |
CN113229827A (en) * | 2021-04-30 | 2021-08-10 | 南京伟思医疗科技股份有限公司 | Data protection and recovery method for abnormal exit of electroencephalogram measuring instrument |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010287299A (en) * | 2009-06-15 | 2010-12-24 | Funai Electric Co Ltd | Moving image reproducing device |
CN104184934A (en) * | 2013-05-23 | 2014-12-03 | 北京千橡网景科技发展有限公司 | Method and apparatus for providing auxiliary reference for shooting |
CN103813121A (en) * | 2014-02-18 | 2014-05-21 | 厦门美图之家科技有限公司 | Method and apparatus for recording video |
CN104135609B (en) * | 2014-06-27 | 2018-02-23 | 小米科技有限责任公司 | Auxiliary photo-taking method, apparatus and terminal |
CN105460217B (en) * | 2015-12-03 | 2017-11-14 | 北京奇虎科技有限公司 | A kind of continuous shooting method and unmanned vehicle based on unmanned vehicle |
CN105516485B (en) * | 2015-12-04 | 2019-03-01 | 小米科技有限责任公司 | The way of recording and device |
CN105847554B (en) * | 2016-03-24 | 2019-05-17 | 维沃移动通信有限公司 | A kind of data processing method that mobile terminal shuts down extremely and mobile terminal |
CN105915673B (en) * | 2016-05-31 | 2019-04-02 | 努比亚技术有限公司 | A kind of method and mobile terminal of special video effect switching |
-
2017
- 2017-11-28 CN CN201711219272.0A patent/CN108108268B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108108268A (en) | 2018-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108268B (en) | Method and device for processing quit restart of video recording application | |
CN107613235B (en) | Video recording method and device | |
US9015590B2 (en) | Multimedia comment system and multimedia comment method | |
WO2020107297A1 (en) | Video clipping control method, terminal device, system | |
WO2017107441A1 (en) | Method and device for capturing continuous video pictures | |
TWI711304B (en) | Video processing method, client and server | |
CN106998494B (en) | Video recording method and related device | |
JP5371493B2 (en) | Apparatus and method | |
CN108090491B (en) | Video recording method, device and computer readable storage medium | |
CN105578255A (en) | Advertisement playing method and device | |
CN103927095A (en) | Method and device for achieving screen video recording | |
CN109379633B (en) | Video editing method and device, computer equipment and readable storage medium | |
WO2017140165A1 (en) | Method and apparatus for resource storage and electronic device | |
CN111556329B (en) | Method and device for inserting media content in live broadcast | |
US20160323631A1 (en) | Method for presenting digital media content and apparatus | |
CN106921883A (en) | A kind of method and device of video playback treatment | |
CN111654754A (en) | Video playing method and device, electronic equipment and readable storage medium | |
CN106470353B (en) | Multimedia data processing method and device and electronic equipment | |
US9910576B2 (en) | Automated multimedia content editing | |
CN112601127A (en) | Video display method and device, electronic equipment and computer readable storage medium | |
CN106980503B (en) | Page processing method, device and equipment | |
CN103546828A (en) | Method and device for generating program preview | |
CN105872608A (en) | Live broadcast page refreshing method and device | |
CN108712676B (en) | Method and device for automatically playing video based on React framework | |
CN112019858A (en) | Video playing method and device, computer equipment and storage medium |
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: 20180913 Address after: 100015, 15 floor, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing, 17 story 1701-48A Applicant after: Beijing environment and Wind Technology Co., Ltd. Address before: 100012 No. 28 building, No. 27 building, Lai Chun Yuan, Chaoyang District, Beijing, No. 28, 2, 201, No. 112, No. 28. Applicant before: Beijing Chuan Shang Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |