Video recording and playing method and electronic equipment
By adding virtual audio during video recording and playback, the problem of microphones struggling to capture the sound of the subject in noisy environments is solved, resulting in a better user experience and improved audio response.
Patent Information
- Application Number
- CN202310315460.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
During video recording, the microphone has difficulty effectively capturing the sound of the subject, especially in noisy environments, which results in the video failing to accurately reflect the subject's state and leading to a poor user experience.
By adding virtual audio, the audio intensity or signal-to-noise ratio related to the target object is enhanced to supplement or replace the original audio, ensuring that the audio clearly reflects the state of the subject being filmed when played back.
It improves the immersive experience and user experience during video playback, ensures that the audio can effectively reflect the state of the subject being filmed, and enhances the user's immersion and satisfaction.
Smart Images

Figure CN118741218A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminals, and more specifically, to a method and electronic device for video recording and playback. Background Art
[0002] At present, electronic devices such as mobile phones have become necessities in people's daily lives, and the video shooting function of electronic devices is widely and frequently used by users. In the process of shooting videos, the microphone, as one of the key components on the electronic device, can collect the sound of the subject being shot to load it into the corresponding video. However, since the sound emitted by some subjects is small, it is easily interfered by the noise in the environment within a certain shooting distance, resulting in the microphone being unable to obtain the sound of the corresponding subject being shot. The video shot in this way cannot well reflect the state of the subject being shot, resulting in a poor user experience. Summary of the invention
[0003] The embodiment of the present application provides a method for recording and playing a video and an electronic device. The video can well reflect the state of the subject being photographed, which helps to improve the user experience.
[0004] In a first aspect, a method for video playback is provided, the method comprising: obtaining a first video and a first audio corresponding to the first video; playing the first video and a second audio matching the first video; wherein the first audio comprises a first target audio, the intensity of the first audio is less than a first threshold, the second audio comprises a virtual audio, the intensity of the virtual audio is greater than or equal to the first threshold, or the first audio comprises a first ambient audio and a first target audio, the signal-to-noise ratio of the first audio is less than a second threshold, the second audio comprises the first ambient audio and a virtual audio, the intensity of the virtual audio is greater than or equal to the second threshold, and the signal-to-noise ratio of the second audio is greater than the signal-to-noise ratio of the first audio; the first target audio and the virtual audio are both audio related to a target object, the first target audio is audio existing in the scene where the first video is recorded, and the virtual audio is audio not existing in the scene where the first video is recorded.
[0005] When the first audio corresponding to the first video includes the first target audio, and the intensity of the first audio is less than the first threshold, since the intensity of the first audio related to the target object is less than the first threshold, when the first video and the first audio corresponding to the first video are played, the user can hardly hear the first audio corresponding to the first video. In the technical solution of the present application, virtual audio related to the target object can be added, and the virtual audio can be used as the audio of the first video and played. Furthermore, when the intensity of the first audio corresponding to the first video is small, the first audio corresponding to the first video can be virtually rendered. At this time, since the intensity of the virtual audio is greater than or equal to the first threshold, when the first video and the virtual audio matching the first video are played, the user can hear the virtual audio related to the target object. In addition, the added virtual audio is also audio related to the target object, so the virtual audio can well reflect the state of the subject being photographed. As a result, the user has a stronger sense of immersion when watching the first video, which helps to improve the user experience.
[0006] When the first audio includes the first ambient audio and the first target audio, and the signal-to-noise ratio of the first audio is less than the second threshold value, since the signal-to-noise ratio of the first audio is less than the second threshold value, when playing the first video and the first audio corresponding to the first video, the user can hardly hear the first target audio in the first audio corresponding to the first video. In the technical solution of the present application, on the basis of the first ambient audio, virtual audio related to the target object can be added, and the ratio of the virtual audio to the first ambient audio can be increased, and then the first ambient audio and the virtual audio can be used as the audio of the first video and played. Furthermore, when the intensity of the first target audio in the first audio corresponding to the first video is small, the first target audio in the first audio corresponding to the first video can be virtually rendered. At this time, since the signal-to-noise ratio of the second audio is greater than the signal-to-noise ratio of the first audio, then when playing the first video and the second audio (virtual audio and first ambient audio) matching the first video, the user can hear the virtual audio related to the target object. In addition, the added virtual audio is also audio related to the target object, so the virtual audio can well reflect the state of the subject being photographed. As a result, the user has a stronger sense of immersion when watching the first video, which helps to improve the user experience.
[0007] In combination with the first aspect, in certain implementations of the first aspect, before playing the first video and the second audio matching the first video, the method also includes: determining, based on the content of the first video, that a first preset scene exists in the first video, and the target object is related to the first preset scene.
[0008] In the above technical solution, the first target audio and the virtual audio are both audio related to the target object, and the target object is related to the first preset scene, then the first target audio and the virtual audio are both audio of the target object related to the first preset scene, and when the first video has the first preset scene, the added virtual audio is more in line with the state of the target object in the first video, which helps to further improve the user experience.
[0009] In combination with the first aspect, in certain implementations of the first aspect, before determining that the first video exists a first preset scene based on the content of the first video, the method also includes: determining that the first video satisfies a first condition based on shooting parameters of the first video; wherein the shooting parameters include at least one of the following: shooting focal length, shooting range, and proportion of an object, and the object is any object in the first video; the first condition includes at least one of the following: the shooting focal length of the first video becomes smaller, the shooting range of the first video changes, and the proportion of the object is greater than or equal to a third threshold.
[0010] If there are multiple first preset scenes in the preset scene library, then for each first preset scene, the electronic device must determine whether the first video contains the first preset scene. In the above technical solution, if it is determined that the first video satisfies the first condition before determining whether the first video contains the first preset scene, the electronic device believes that the first video contains the first preset scene with a high probability. In this way, the electronic device can speed up the frequency of determining whether the first video contains the first preset scene, thereby reducing the power consumption of the electronic device.
[0011] In combination with the first aspect, in certain implementations of the first aspect, the first interface includes a first control, and the first interface is an interface for obtaining the first video. The method also includes: in response to a first operation acting on the first control, determining whether the first video includes the first preset scene according to the content of the first video.
[0012] In combination with the first aspect, in some implementations of the first aspect, before playing the virtual audio, the method further includes: determining that there is an object state change event for the target object in the first video.
[0013] In the above technical solution, the first video and the second audio are played only when it is determined that there is an object state change event of the target object in the first video, which can reduce the power consumption of the playback device.
[0014] In combination with the first aspect, in some implementations of the first aspect, before playing the first video and the virtual audio, the method further includes: synchronizing the audio and video of the virtual audio and the first video.
[0015] In the above technical solution, the first video and the second audio are played only after the virtual audio and the first video are synchronized. In this way, the matching degree between the first video and the second audio can be improved, which helps to further improve the user experience.
[0016] In combination with the first aspect, in certain implementations of the first aspect, the first video is a preview video or a video being recorded, and the audio and video synchronization of the virtual audio and the first video includes: predicting the state of the target object in the first video based on the first video, and obtaining the first state change time of the target object; and playing the virtual audio within the first state change time.
[0017] In combination with the first aspect, in certain implementations of the first aspect, the first video is a recorded video, and the audio and video synchronization of the virtual audio and the first video includes: determining the second state change time of the target object in the first video based on the first video; and playing the virtual audio within the second state change time.
[0018] In combination with the first aspect, in certain implementations of the first aspect, the intensity of the virtual audio is related to at least one of the following: the distance between the target object and the electronic device in the first video, the recording focal length of the first video, and the proportion of the target object in the first video, and the electronic device is a device for recording the first video.
[0019] In the above technical solution, the strength of the virtual audio is related to the distance between the target object in the first video and the electronic device, the recording focal length of the first video, and / or the proportion of the target object in the first video. In this way, the matching degree between the first video and the second audio can be improved, which helps to further improve the user experience.
[0020] In combination with the first aspect, in some implementations of the first aspect, the second interface includes a second control, and the second interface is an interface for playing the first video. After playing the virtual audio, the method also includes: in response to a second operation acting on the second control, displaying a third control, a fourth control, a fifth control, and a sixth control on the second interface; in response to a third operation acting on the third control, changing the virtual audio; and / or, in response to a fourth operation acting on the fourth control, synchronizing the virtual audio and the first video; and / or, in response to a fifth operation acting on the fifth control, adjusting the intensity of the virtual audio and / or the intensity of the second audio; and / or, in response to a sixth operation acting on the sixth control, not playing the virtual audio.
[0021] When the user is not satisfied with the rendering effect of the audio (virtual audio or second audio) corresponding to the first video, the user can adjust the rendering effect of the audio corresponding to the first video through the third control, fourth control, fifth control, or sixth control on the second interface, thereby helping to further improve the user experience.
[0022] In a second aspect, a method for video playback is provided, the method comprising: obtaining a second video and a third audio corresponding to the second video, the signal-to-noise ratio of the third audio being greater than or equal to a second threshold; playing the second video and a fourth audio corresponding to the second video, content of the fourth audio being the same as content of the third audio, and the signal-to-noise ratio of the fourth audio being greater than the signal-to-noise ratio of the third audio.
[0023] Through the above technical solution, when the signal-to-noise ratio of the third audio corresponding to the second video is greater than or equal to the second threshold, the signal-to-noise ratio of the third audio can be improved to obtain the fourth audio. Thus, when the effect of the sound related to the change in the state of the photographed subject is not good, the function of adaptively enhancing the sound related to the change in the state of the photographed subject is realized. At this time, since the signal-to-noise ratio of the fourth audio is greater than the signal-to-noise ratio of the third audio, the played fourth audio can well reflect the state of the photographed subject, and thus the user has a stronger sense of immersion when watching the second video, which helps to improve the user experience.
[0024] In combination with the second aspect, in certain implementations of the second aspect, before playing the second video and the fourth audio corresponding to the second video, it is determined that a second preset scene exists in the second video based on the content of the second video and / or the content of the third audio.
[0025] In combination with the second aspect, in certain implementations of the second aspect, determining that the second video exists a second preset scene based on the content of the third audio includes: when the third audio includes a second target audio, determining that the second video exists the second preset scene, wherein the second target audio is related to the second preset scene.
[0026] In combination with the second aspect, in certain implementations of the second aspect, before determining that the second video exists a second preset scene based on the content of the second video and / or the content of the third audio, the method also includes: determining that the second video satisfies a second condition based on the shooting parameters of the second video; wherein the shooting parameters include at least one of the following: shooting focal length, shooting range, and proportion of an object, and the object is any object in the second video; the second condition includes at least one of the following: the shooting focal length of the second video becomes smaller, the shooting range of the second video changes, and the proportion of the object is greater than or equal to a fourth threshold.
[0027] If there are multiple second preset scenes in the preset scene library, then for each second preset scene, the electronic device must determine whether the second video contains the second preset scene. In the above technical solution, if the second video is determined to satisfy the second condition before determining whether the second video contains the second preset scene, the electronic device believes that the second video contains the second preset scene with a high probability. In this way, the electronic device can speed up the frequency of determining whether the second video contains the second preset scene, thereby reducing the power consumption of the electronic device.
[0028] In combination with the second aspect, in certain implementations of the second aspect, the first interface includes a first control, and the first interface is an interface for obtaining the second video. The method also includes: in response to a first operation acting on the first control, determining whether the second video has the second preset scene according to the content of the second video and / or the content of the third audio.
[0029] In combination with the second aspect, in certain implementations of the second aspect, before playing the second video and the fourth audio corresponding to the second video, the method also includes: determining that there is an object state change event for a target object in the second video, and the target object is related to the second preset scene.
[0030] In the above technical solution, the second video and the fourth audio are played only when it is determined that there is an object state change event of the target object in the second video, which can reduce the power consumption of the playback device.
[0031] In combination with the second aspect, in certain implementations of the second aspect, the signal-to-noise ratio of the fourth audio is related to at least one of the following: the distance between the target object in the second video and the electronic device, the recording focal length of the second video, and the proportion of the target object in the second video, and the electronic device is a device for recording the second video.
[0032] In the above technical solution, the signal-to-noise ratio of the fourth audio is related to the distance between the target object and the electronic device in the second video, the recording focal length of the second video, and / or the proportion of the target object in the second video. In this way, the matching degree between the second video and the fourth audio can be improved, which helps to further improve the user experience.
[0033] In combination with the second aspect, in certain implementations of the second aspect, the second interface includes a second control, and the second interface is an interface for playing the second video. After playing the second video and the fourth audio corresponding to the second video, the method also includes: in response to a second operation acting on the second control, displaying a third control, a fourth control, a fifth control, and a sixth control on the second interface; in response to a third operation acting on the third control, changing the fourth audio; and / or, in response to a fourth operation acting on the fourth control, synchronizing the fourth audio and the second video; and / or, in response to a fifth operation acting on the fifth control, adjusting the intensity of the fourth audio and / or the intensity of a third target audio in the fourth audio, wherein the third target audio is related to the second preset scene; and / or, in response to a sixth operation acting on the sixth control, not playing the fourth audio.
[0034] When the user is not satisfied with the rendering effect of the audio (fourth audio) corresponding to the second video, the user can adjust the rendering effect of the audio corresponding to the second video through the third control, fourth control, fifth control, or sixth control on the second interface, thereby helping to further improve the user experience.
[0035] According to a third aspect, a method for video playback is provided, the method comprising: displaying an interface of a third video, and playing audio corresponding to the third video; wherein the recording mode of the third video is a slow motion recording mode or a fast motion recording mode; the interface comprises a first control, and the first control is used to adjust the pitch of the audio.
[0036] When the third video is shot in slow motion recording mode or fast motion recording mode, the tone of the audio corresponding to the third video is distorted, which often makes the user dissatisfied with the audio corresponding to the third video. Therefore, in an embodiment of the present application, the user can adjust the tone corresponding to the third video through the first control, which helps to improve the user experience.
[0037] In combination with the third aspect, in certain implementations of the third aspect, in response to a first operation acting on the first control, the pitch of the audio is adjusted to a target pitch value.
[0038] In combination with the third aspect, in certain implementations of the third aspect, the interface further includes a switch, and when the switch is in an on state, the audio corresponding to the third video is audio with variable speed but unchanged pitch.
[0039] In combination with the third aspect, in certain implementations of the third aspect, in a slow motion recording mode or a fast motion recording mode, the switch is in an off state by default.
[0040] In a fourth aspect, a method for video recording is provided, the method comprising: displaying a first recording interface of a video, the first recording interface comprising an audio control and a recording control, the first recording interface comprising a target object; in response to a first operation applied to the audio control, using virtual audio as audio for video recording, the virtual audio being audio related to the target object; in response to a second operation applied to the recording control, recording a first video; in response to a third operation applied to the recording control, saving the first video; displaying a first interface to be played, the first interface to be played comprising a first playback control; in response to a fourth operation applied to the first playback control, playing the first video, and when playing the first video, the audio of the first video includes the virtual audio.
[0041] Since the virtual audio is audio related to the target object in the first video, the virtual audio can well reflect the state of the subject being filmed. Thus, the user has a stronger sense of immersion when watching the first video, which helps to improve the user experience.
[0042] In combination with the fourth aspect, in certain implementations of the fourth aspect, the method includes: displaying a second recording interface of the video, the second recording interface including the audio control and the recording control, and the second recording interface including the target object; in response to a fifth operation acting on the recording control, recording a second video, wherein the audio control is not selected; in response to a sixth operation acting on the recording control, saving the second video; displaying a second to-be-played interface, the second to-be-played interface including a second playback control; in response to a seventh operation acting on the second playback control, playing the second video, and when playing the second video, the audio of the second video does not include the virtual audio, or the audio of the second video is inconsistent with the virtual audio.
[0043] In combination with the fourth aspect, in certain implementations of the fourth aspect, playing the first video includes: playing the virtual audio within a target time, and the target time is the time when the state of the target object changes.
[0044] In combination with the fourth aspect, in certain implementations of the fourth aspect, the first interface to be played also includes an editing control, and the method includes: in response to an operation acting on the editing control, displaying at least one of the following on the first interface to be played: a sound effect replacement control, a time alignment control, a sound effect rendering intensity control, and a sound effect deletion control; wherein the sound effect replacement control is used to change the virtual audio; the time alignment control is used to synchronize the virtual audio and the first video; the sound effect rendering intensity control is used to adjust the intensity of the virtual audio; and the sound effect deletion control is used to delete the virtual audio from the sound effects corresponding to the first video.
[0045] In combination with the fourth aspect, in certain implementations of the fourth aspect, the intensity of the virtual audio is related to at least one of the following: the distance between the target object and the electronic device in the first video, the recording focal length of the first video, and the proportion of the target object in the first video, and the electronic device is a device for recording the first video.
[0046] In the above technical solution, the strength of the virtual audio is related to the distance between the target object in the video and the electronic device, the recording focal length of the video, and / or the proportion of the target object in the video. In this way, the matching degree between the video and the virtual audio can be improved, which helps to further improve the user experience.
[0047] In combination with the fourth aspect, in certain implementations of the fourth aspect, before recording the first video, the method includes: displaying an icon on the first recording interface, the icon being used to indicate a video recording mode corresponding to a target preset scene, and the target preset scene is related to the virtual audio.
[0048] In a fifth aspect, a device for video playback is provided, the device comprising: a processing unit, for obtaining a first video and a first audio corresponding to the first video; a playback unit, for playing the first video and a second audio matching the first video; wherein the first audio comprises a first target audio, the intensity of the first audio is less than a first threshold, the second audio comprises a virtual audio, the intensity of the virtual audio is greater than or equal to the first threshold, or the first audio comprises a first ambient audio and a first target audio, the signal-to-noise ratio of the first audio is less than a second threshold, the second audio comprises the first ambient audio and a virtual audio, the intensity of the virtual audio is greater than or equal to the second threshold, and the signal-to-noise ratio of the second audio is greater than the signal-to-noise ratio of the first audio; the first target audio and the virtual audio are both audio related to a target object, the first target audio is audio existing in the scene where the first video is recorded, and the virtual audio is audio that does not exist in the scene where the first video is recorded.
[0049] In combination with the fifth aspect, in certain implementations of the fifth aspect, the processing unit is further used to: determine, based on content of the first video, that the first preset scene exists in the first video, and that the target object is related to the first preset scene.
[0050] In combination with the fifth aspect, in certain implementations of the fifth aspect, the processing unit is also used to: determine, based on the shooting parameters of the first video, whether the first video satisfies a first condition; wherein the shooting parameters include at least one of the following: shooting focal length, shooting range, and proportion of the object, and the object is any object in the first video; the first condition includes at least one of the following: the shooting focal length of the first video becomes smaller, the shooting range of the first video changes, and the proportion of the object is greater than or equal to a third threshold.
[0051] In combination with the fifth aspect, in certain implementations of the fifth aspect, the first interface includes a first control, and the first interface is an interface for obtaining the first video. The processing unit is also used to: in response to a first operation acting on the first control, determine whether the first video has the first preset scene according to the content of the first video.
[0052] In combination with the fifth aspect, in certain implementations of the fifth aspect, the processing unit is further used to: determine that there is an object state change event for the target object in the first video.
[0053] In combination with the fifth aspect, in some implementations of the fifth aspect, the processing unit is further used to: synchronize the virtual audio and the first video.
[0054] In combination with the fifth aspect, in certain implementations of the fifth aspect, the processing unit is also used to: predict the state of the target object in the first video based on the first video, and obtain the first state change time of the target object; the playback unit is also used to: play the virtual audio within the first state change time.
[0055] In combination with the fifth aspect, in certain implementations of the fifth aspect, the first video is a recorded video, and the processing unit is further used to: determine the second state change time of the target object in the first video based on the first video; the playback unit is also used to: play the virtual audio within the second state change time.
[0056] In combination with the fifth aspect, in certain implementations of the fifth aspect, the intensity of the virtual audio is related to at least one of the following: the distance between the target object and the electronic device in the first video, the recording focal length of the first video, and the proportion of the target object in the first video, and the electronic device is a device for recording the first video.
[0057] In combination with the fifth aspect, in some implementations of the fifth aspect, the second interface includes a second control, and the second interface is an interface for playing the first video. The device also includes a display unit, which is used to: display a third control, a fourth control, a fifth control, and a sixth control on the second interface in response to a second operation acting on the second control; the processing unit is also used to: change the virtual audio in response to a third operation acting on the third control; and / or, in response to a fourth operation acting on the fourth control, synchronize the virtual audio and the first video; and / or, in response to a fifth operation acting on the fifth control, adjust the intensity of the virtual audio and / or the intensity of the second audio; and / or, in response to a sixth operation acting on the sixth control, not play the virtual audio.
[0058] The technical effects of the fifth aspect and each possible implementation method can refer to the relevant description of the first aspect and will not be repeated here.
[0059] In a sixth aspect, a video playback device is provided, the device comprising: a processing unit, used to obtain a second video and a third audio corresponding to the second video, the signal-to-noise ratio of the third audio being greater than or equal to a second threshold; and a playback unit, used to play the second video and a fourth audio corresponding to the second video, the content of the fourth audio being the same as the content of the third audio, and the signal-to-noise ratio of the fourth audio being greater than the signal-to-noise ratio of the third audio.
[0060] In combination with the sixth aspect, in certain implementations of the sixth aspect, the processing unit is further used to: determine that the second preset scene exists in the second video based on the content of the second video and / or the content of the third audio.
[0061] In combination with the sixth aspect, in certain implementations of the sixth aspect, the processing unit is further specifically used to: when the third audio includes a second target audio, determine that the second video exists in the second preset scene, wherein the second target audio is related to the second preset scene.
[0062] In combination with the sixth aspect, in certain implementations of the sixth aspect, the processing unit is further used to: determine, based on the shooting parameters of the second video, whether the second video satisfies a second condition; wherein the shooting parameters include at least one of the following: shooting focal length, shooting range, and proportion of the object, and the object is any object in the second video; the second condition includes at least one of the following: the shooting focal length of the second video becomes smaller, the shooting range of the second video changes, and the proportion of the object is greater than or equal to a fourth threshold.
[0063] In combination with the sixth aspect, in certain implementations of the sixth aspect, the first interface includes a first control, and the first interface is an interface for obtaining the second video. The processing unit is also used to: in response to a first operation acting on the first control, determine whether the second video has the second preset scene according to the content of the second video and / or the content of the third audio.
[0064] In combination with the sixth aspect, in certain implementations of the sixth aspect, the processing unit is further used to: determine that there is an object state change event for a target object in the second video, and the target object is related to the second preset scene.
[0065] In combination with the sixth aspect, in certain implementations of the sixth aspect, the signal-to-noise ratio of the fourth audio is related to at least one of the following: the distance between the target object and the electronic device in the second video, the recording focal length of the second video, and the proportion of the target object in the second video, and the electronic device is a device for recording the second video.
[0066] In combination with the sixth aspect, in certain implementations of the sixth aspect, the second interface includes a second control, and the second interface is an interface for playing the second video. The device also includes a display unit, which is used to: display a third control, a fourth control, a fifth control, and a sixth control on the second interface in response to a second operation acting on the second control; the processing unit is also used to: change the fourth audio in response to a third operation acting on the third control; and / or, in response to a fourth operation acting on the fourth control, synchronize the fourth audio and the second video; and / or, in response to a fifth operation acting on the fifth control, adjust the intensity of the fourth audio and / or the intensity of the third target audio in the fourth audio, and the third target audio is related to the second preset scene; and / or, in response to the sixth operation acting on the sixth control, not play the fourth audio.
[0067] The technical effects of the sixth aspect and each possible implementation method can refer to the relevant description of the second aspect and will not be repeated here.
[0068] In the seventh aspect, a video playback device is provided, the device comprising: a display unit for displaying an interface of a third video; a playback unit for playing audio corresponding to the third video; wherein the recording mode of the third video is a slow motion recording mode or a fast motion recording mode; the interface comprises a first control, and the first control is used to adjust the pitch of the audio.
[0069] In combination with the seventh aspect, in some implementations of the seventh aspect, the device also includes a processing unit for adjusting the pitch of the audio to a target pitch value in response to a first operation acting on the first control.
[0070] In combination with the seventh aspect, in certain implementations of the seventh aspect, the interface further includes a switch, and when the switch is in an on state, the audio corresponding to the third video is audio with variable speed but unchanged pitch.
[0071] In combination with the seventh aspect, in certain implementations of the seventh aspect, in a slow motion recording mode or a fast motion recording mode, the switch is in an off state by default.
[0072] The technical effects of the seventh aspect and each possible implementation method can refer to the relevant description of the third aspect and will not be repeated here.
[0073] In an eighth aspect, a video recording device is provided, the device comprising: a display unit for displaying a first recording interface of a video, the first recording interface comprising an audio control and a recording control, the first recording interface comprising a target object; a processing unit for responding to a first operation on the audio control to use virtual audio as audio for video recording, the virtual audio being audio related to the target object; a recording unit for recording a first video in response to a second operation on the recording control; a storage unit for saving the first video in response to a third operation on the recording control; the display unit is also for displaying a first interface to be played, the first interface to be played comprising a first playback control; a playback unit for responding to a fourth operation on the first playback control to play the first video, and when the first video is played, the audio of the first video includes the virtual audio.
[0074] In combination with the eighth aspect, in certain implementations of the eighth aspect, the display unit is also used to display a second recording interface of the video, the second recording interface includes the audio control and the recording control, and the second recording interface includes the target object; the recording unit is also used to record a second video in response to a fifth operation acting on the recording control, wherein the audio control is not selected; the storage unit is also used to save the second video in response to a sixth operation acting on the recording control; the display unit is also used to display a second interface to be played, the second interface to be played includes a second playback control; the playback unit is used to play the second video in response to a seventh operation acting on the second playback control, and when playing the second video, the audio of the second video does not include the virtual audio, or the audio of the second video is inconsistent with the virtual audio.
[0075] In combination with the eighth aspect, in certain implementations of the eighth aspect, the playback unit is specifically used to: play the virtual audio within a target time, and the target time is the time when the state of the target object changes.
[0076] In combination with the eighth aspect, in certain implementations of the eighth aspect, the first to-be-played interface also includes an editing control, and the display unit is further used to display at least one of the following items on the first video to-be-played interface in response to an operation acting on the editing control: a sound effect replacement control, a time alignment control, a sound effect rendering intensity control, and a sound effect deletion control; wherein the sound effect replacement control is used to change the virtual audio; the time alignment control is used to synchronize the audio and video of the virtual audio and the first video; the sound effect rendering intensity control is used to adjust the intensity of the virtual audio; and the sound effect deletion control is used to delete the virtual audio from the sound effects corresponding to the first video.
[0077] In combination with the eighth aspect, in certain implementations of the eighth aspect, the intensity of the virtual audio is related to at least one of the following: the distance between the target object and the electronic device in the first video, the recording focal length of the first video, and the proportion of the target object in the first video, and the electronic device is a device for recording the first video.
[0078] In combination with the eighth aspect, in certain implementations of the eighth aspect, before recording the first video, the method includes: displaying an icon on the first recording interface, the icon being used to indicate a video recording mode corresponding to a target preset scene, the target preset scene being related to the virtual audio.
[0079] The technical effects of the eighth aspect and each possible implementation method can refer to the relevant description of the fourth aspect and will not be repeated here.
[0080] In the ninth aspect, an electronic device is provided, which is used to perform any of the methods in the first to fourth aspects and some possible implementations of the first to fourth aspects. The electronic device includes a module, unit, or means for implementing the above method, and the module, unit, or means can be implemented by hardware, software, or hardware executing the corresponding software implementation. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a processing module or unit, a playback module or unit, etc.
[0081] In the tenth aspect, an electronic device is provided, comprising: one or more processors, one or more memories, and one or more programs, wherein the one or more programs are stored in the memories, and when the instructions are executed by the one or more processors, the electronic device executes a method as described in any one of the first to fourth aspects above, and certain possible implementations of the first to fourth aspects above.
[0082] In the eleventh aspect, a readable storage medium is provided, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute a method as described in any one of the first to fourth aspects and certain possible implementations of the first to fourth aspects.
[0083] In a twelfth aspect, a program product is provided, the program product comprising a program code, and when the program code runs on a device, the method as described in any one of the first to fourth aspects and certain possible implementations of the first to fourth aspects is executed.
[0084] In the thirteenth aspect, a chip is provided, comprising at least one processor and an interface circuit, wherein the interface circuit is used to provide program instructions or data to the at least one processor, and the at least one processor is used to execute the program instructions to implement a method as described in any one of the first to fourth aspects and certain possible implementation methods of the first to fourth aspects above.
[0085] It can be understood that the electronic device, readable storage medium and program product provided above are all used to execute the corresponding methods provided above. Therefore, the technical effects that can be achieved can refer to the technical effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 It is a schematic diagram of the hardware structure of a device provided in an embodiment of the present application.
[0087] Figure 2 It is a software structure block diagram of a device provided in an embodiment of the present application.
[0088] Figures 3 to 9 It is the GUI of the mobile phone provided in the embodiment of the present application.
[0089] Figures 10 to 14 A schematic flowchart of a method for video playback provided in an embodiment of the present application.
[0090] Fig.15 A schematic diagram of the original audio and the audio corresponding to the third video in the time domain provided in an embodiment of the present application.
[0091] Fig.16 A schematic flowchart of a video recording method provided in an embodiment of the present application.
[0092] Fig.17 It is a schematic block diagram of an example of a device provided in an embodiment of the present application.
[0093] Fig.18 It is a schematic block diagram of another device provided in an embodiment of the present application.
[0094] Fig.19 This is a schematic block diagram of another device provided in an embodiment of the present application.
[0095] Fig. 20 This is a schematic block diagram of another device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0096] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0097] The electronic devices involved in the embodiments of the present application include user equipment, access terminals, user units, user stations, mobile stations, mobile stations, remote stations, remote terminals, mobile devices, terminals, wireless communication devices, user agents or user devices. Electronic devices may also include cellular phones, cordless phones, session initiation protocol phones, personal digital processing, handheld devices with wireless communication functions, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices (such as Bluetooth headsets or smart watches), devices in future 5G networks or devices in future evolved public land mobile communication networks, etc.
[0098] For example, Figure 1 A schematic diagram of the structure of an example of a device 100 provided in an embodiment of the present application is shown.
[0099] For example, Figure 1 As shown, the device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0100] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the device 100. In other embodiments of the present application, the device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0101] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0102] The controller may be the nerve center and command center of the device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0103] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0104] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0105] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the device 100. In other embodiments of the present application, the device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0106] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through the wireless charging coil of the device 100. While the charging management module 140 is charging the battery 142, it can also power the device through the power management module 141. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
[0107] The wireless communication function of the device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0108] The mobile communication module 150 can provide wireless communication solutions including 2G / 3G / 4G / 5G etc. applied on the device 100 .
[0109] In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
[0110] The wireless communication module 160 can provide wireless communication solutions applied to the device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0111] In some embodiments, antenna 1 of device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that device 100 can communicate with the network and other devices through wireless communication technology.
[0112] The device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0113] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0114] The device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0115] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the device 100. The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the device 100 by running the instructions stored in the internal memory 121.
[0116] The device 100 can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The speaker 170A, also known as a "speaker", is used to convert audio electrical signals into sound signals. The receiver 170B, also known as a "earpiece", is used to convert audio electrical signals into sound signals. The microphone 170C, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. The headphone interface 170D is used to connect wired headphones.
[0117] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. The gyroscope sensor 180B can be used to determine the motion posture of the device 100. The air pressure sensor 180C is used to measure the air pressure. The acceleration sensor 180E can detect the magnitude of the acceleration of the device 100 in various directions (generally three axes). The distance sensor 180F is used to measure the distance. The fingerprint sensor 180H is used to collect fingerprints. The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The bone conduction sensor 180M can obtain vibration signals.
[0118] The buttons 190 include a power button, a volume button, etc. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.
[0119] Figure 1 The software system of the device 100 shown may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
[0120] The present application embodiment does not limit the software system. For example, the software system can be system, System or System, etc.
[0121] Combine the following Figure 2 , with a layered architecture Taking the system as an example, the software structure of the device 100 is exemplified.
[0122] Figure 21 is a software structure diagram of the device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer and the system library, and the kernel layer. The application layer can include a series of application packages.
[0123] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0124] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0125] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0126] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, disable the screen, capture the screen, etc.
[0127] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0128] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0129] The phone manager is used to provide communication functions of the device 100, such as management of call status (including connection, disconnection, etc.).
[0130] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0131] The notification manager allows applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the device vibrates, the indicator light flashes, etc.
[0132] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0133] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0134] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0135] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, etc.
[0136] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.
[0137] A 2D graphics engine is a drawing engine for 2D drawings.
[0138] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0139] For example, Figure 3 A set of graphical user interfaces (GUIs) of a mobile phone provided in an embodiment of the present application is shown.
[0140] like Figure 3 As shown in (a) of FIG. 1 , the mobile phone displays a preview interface 200 of the recorded video, and the preview interface 200 may include a viewfinder 201. In the preview state, the preview video may be displayed in real time in the viewfinder 201. The preview video includes an object, such as Figure 3 As shown in (a) in FIG. 2 , the object is a cup 202 filled with cola. Optionally, the preview interface 200 may further include an (AI AUDIO) control 203 .
[0141] It is understandable that if Figure 3 As shown in (a) in FIG. 1 , the preview interface 200 also includes a photo mode, a professional mode and more modes.
[0142] If the intensity of the sound of the cola bubble bursting is less than the intensity value of the background noise that can be obtained by the mobile phone, the mobile phone generally cannot pick up the sound of the cola bubble bursting. Alternatively, in addition to picking up the sound of the cola bubble bursting, the mobile phone also picks up the sound of the surrounding environment, so that the signal-to-noise ratio of the overall sound picked up by the mobile phone (the sound of the cola bubble bursting and the sound of the surrounding environment) is less than the second threshold. In this way, the user cannot hear the sound of the cola bubble bursting in the preview video. If the user wants to hear the sound of the cola bubble bursting in the preview video at this time, the user can click on the control 203 to enter the artificial intelligence recording mode. For the description of the second threshold, please refer to the corresponding description in S710 below, which will not be repeated here.
[0143] In some embodiments, when the mobile phone detects that the user clicks on the control 203, the mobile phone identifies the scene of the preview video and determines that the scene of the preview video is a preset cola bubble bursting scene, and the mobile phone enters the recording mode corresponding to the cola bubble bursting scene. Figure 3 As shown in (b), the preset virtual sound of cola bubbles bursting is played in real time.
[0144] In other embodiments, when the mobile phone detects that the user clicks the control 203, multiple virtual sound effect recording scene controls may be displayed on the preview interface 200, so that the user can select the target virtual sound effect recording scene from the multiple virtual sound effect recording scene controls. In this way, after the mobile phone detects the target virtual sound effect recording scene control clicked by the user, the mobile phone enters the recording mode corresponding to the target virtual sound effect recording scene. Thereafter, the mobile phone plays the preset virtual sound corresponding to the target virtual sound effect recording scene in real time.
[0145] Optionally, at this time, a prompt message may also be displayed on the preview interface 200 of the mobile phone to prompt the mobile phone to enter the recording mode corresponding to the cola bubble bursting scene. Figure 3 As shown in (b) in FIG. 1 , the preview interface 200 may further include an icon 204 , which is used to instruct the mobile phone to enter a recording mode corresponding to the cola bubble bursting scene.
[0146] Optionally, the mobile phone can also automatically adjust the volume (sound) of the virtual cola bubble burst sound played in real time according to the distance between the target object and the mobile phone in the preview video, the focal length of the mobile phone, or the proportion of the target object in the preview video (relative to the screen of the mobile phone). The target object includes cola / bubbles.
[0147] For example, when the distance between the cola / bubbles and the phone is smaller, the sound of the virtual cola bubble bursting is louder. When the focal length of the phone is larger, the sound of the virtual cola bubble bursting is louder. When the proportion of cola / bubbles is larger, the sound of the virtual cola bubble bursting is louder.
[0148] When the mobile phone enters the recording mode corresponding to the cola bubble bursting scene, if the mobile phone recognizes the cola bubble bursting during the video recording process, it can also play the preset virtual cola bubble bursting sound in real time. In addition, the mobile phone can also automatically adjust the size (sound) of the real-time virtual cola bubble bursting sound according to the distance between the cola / bubbles and the mobile phone in the recorded video, the focal length of the mobile phone, or the proportion of the cola / bubbles in the recorded video (relative to the screen of the mobile phone). The specific adjustment scheme can be referred to the description above, which will not be repeated here.
[0149] When the user is not satisfied with the virtual sound of cola bubbles bursting added to the recorded video after completing the video recording, the user can also set the virtual sound of cola bubbles bursting added to the recorded video. Figure 4 Provide explanation.
[0150] For example, Figure 4 Another set of GUIs of a mobile phone provided in an embodiment of the present application is shown.
[0151] like Figure 4 As shown in (a) in FIG. 1 , the mobile phone displays an interface 205 for pausing video playback. The interface 205 includes a recorded video 206 . The interface 205 may also include an editing control 207 .
[0152] Alternatively, if Figure 4 As shown in (a) in FIG. 2 , the interface 205 may also include sharing controls, favorite controls, delete controls, and more controls.
[0153] When the user wants to edit the video 206, the user can click the edit control 207. In this way, after the mobile phone detects that the user clicks the edit control 207, Figure 4 As shown in (b) in FIG. 2 , the mobile phone will also display a sound effect replacement control 208 , a time alignment control 209 , a sound effect rendering intensity control 210 , a sound effect deletion control 211 , and a return to previous level control 212 on the interface 205 .
[0154] It should be noted that the sound effect replacement control 208, time alignment control 209, sound effect rendering intensity control 210, or sound effect deletion control 211 involved in this application are controls for editing specific sound effects corresponding to the video 206. For example, the specific sound effects may include virtual sound effects.
[0155] In addition, the sound effect replacement can be understood as the replacement of all sounds in the video 206. Alternatively, the sound effect replacement can be understood as the replacement of part of the sounds in the video 206, such as the replacement of the virtual sound effects in the video 206. Optionally, the replaced virtual sound effect and the virtual sound effect to be replaced can be virtual sound effects related to the same target object, such as the replaced virtual sound effect can be the sound of cola bubbles bursting, and the virtual sound effect to be replaced can be the sound of other cola bubbles bursting.
[0156] Sound effect deletion can be understood as deletion of all sounds in the video 206 ; or deletion of part of the sounds in the video 206 , such as deletion of virtual sound effects in the video 206 .
[0157] The time alignment control can be understood as the time alignment of all sounds in the video 206 and the video 206 ; or the time alignment of part of the sounds in the video 206 and the video 206 , such as the time alignment of the virtual sound effects in the video 206 and the video 206 .
[0158] When the user wants to delete the sound in the video 206, the user can click the sound effect deletion control 211. In this way, after the mobile phone detects that the user clicks the sound effect deletion control 211, the sound in the video 206 is deleted.
[0159] When the user is not satisfied with the sound effect of the video 206 and wants to replace the sound effect in the video 206, the user can click the sound effect replacement control 208. In this way, after the mobile phone detects that the user clicks the sound effect replacement control 208, the mobile phone will also display multiple sound effect controls and a control for returning to the previous level on the interface 205. Figure 4 As shown in (c) of FIG. 2 , the interface 205 may further include a sound effect 1 control 2081, a sound effect 2 control 2082, a sound effect 3 control 2083, a sound effect 4 control 2084, and a control 2085 for returning to the previous level. The user may select the sound effect of the video 206 according to his / her needs, such as Figure 4 The current sound effect of the video 206 shown in (c) is sound effect 1.
[0160] After setting the sound effect of video 206, the user can click control 2085. In this way, after the mobile phone detects that the user clicks control 2085, the following is displayed: Figure 4 The GUI shown in (d) in FIG. Figure 4 The GUI is the same as that shown in (b) in the figure and will not be described again here.
[0161] When the user is not satisfied with the synchronization of the audio and video of the video 206 and wants to time-align the video 206 and the audio of the video 206, the user can click the time alignment control 209. In this way, after the mobile phone detects that the user clicks the time alignment control 209, Figure 4 As shown in (e) in the figure, the mobile phone will also display a time graph 2091 of the video 206, a time graph 2092 of the sound, and a control 2093 for returning to the previous level on the interface 205. The user can set the audio and video synchronization for the video 206 through the time graph 2092 of the sound according to his own needs. Among them, audio and video synchronization can be understood as the synchronization of the time of the audio and video, and the coordination and consistency of the audio and video images. For example, the user can change the correspondence between the time of the sound and the time of the video by dragging the time graph 2092 of the sound left and right, and then set the audio and video synchronization for the video 206. Optionally, the user can also perform other operations such as splitting the sound of the video 206, changing the speed, or splitting and adjusting the playback order of the split audio through the time graph 2092 of the sound.
[0162] After the user sets the audio and video of the video 206 synchronously, the user can click the control 2093. In this way, after the mobile phone detects that the user clicks the control 2093, the following is displayed: Figure 4 The GUI shown in (f) in FIG. Figure 4 The GUI is the same as that shown in (b) in the figure and will not be described again here.
[0163] When the user is not satisfied with the volume of the sound of the video 206 and wants to adjust the volume of the sound of the video 206, the user can click the sound rendering intensity control 210. In this way, after the mobile phone detects that the user clicks the sound rendering intensity control 210, Figure 4 As shown in (j) in FIG. 2 , the mobile phone will also display an adjustment progress bar 2101 for the virtual sound effect intensity and a loudness adjustment progress bar 2102 for the overall sound effect intensity on the interface 205 .
[0164] The virtual sound effect can be understood as the effect of the audio of the virtual cola bubble bursting added in the video 206. The overall sound effect can be understood as the effect of all the audio corresponding to the video 206. In one example, all the audio corresponding to the video 206 may only include the audio of the virtual cola bubble bursting added. In another example, all the audio corresponding to the video 206 includes other audio such as the ambient audio obtained by the mobile phone in the process of obtaining the video 206 in addition to the audio of the virtual cola bubble bursting added.
[0165] The user can adjust the volume of the virtual sound of cola bubble bursting added in video 206 through the virtual sound effect intensity adjustment progress bar 2101 according to his / her needs, so that the mobile phone can adjust the intensity value of the virtual sound of cola bubble bursting added in video 206 to the intensity value in the adjustment progress bar 2101. The user can also adjust the volume of the overall sound of video 206 through the overall sound effect intensity loudness adjustment progress bar 2102 according to his / her needs, so that the mobile phone can adjust the intensity value of the overall sound of video 206 to the intensity value in the adjustment progress bar 2102.
[0166] Optionally, in some embodiments, the adjustment progress bar 2101 described above can also be replaced by a signal-to-noise ratio adjustment progress bar. In this way, the user can adjust the signal-to-noise ratio of the sound of the video 206 through the signal-to-noise ratio adjustment progress bar. The signal-to-noise ratio of the sound of the video 206 can be understood as the ratio of the intensity of the audio of the virtual cola bubble burst to the intensity of the audio of all the audio of the video 206 except the audio of the virtual cola bubble burst.
[0167] For example, Figure 5 Another set of GUIs of a mobile phone provided in an embodiment of the present application is shown.
[0168] like Figure 5 As shown in (a) of FIG. 1 , the mobile phone displays a video pause playback interface 310, the interface 310 includes a recorded video 311, the video 311 includes an object, in some embodiments, such as Figure 5 As shown in (a) of FIG. 3 , the object is a butterfly. Optionally, the interface 310 further includes a menu bar 312 .
[0169] If the intensity of the sound of the butterfly wings vibrating in the video 311 is less than the intensity value of the background noise that can be obtained by the target device (the device that obtains the video 311), or, in addition to the sound of the butterfly wings vibrating, the video 311 also has the sound of the surrounding environment, so that the signal-to-noise ratio of the overall sound of the video 311 (the sound of the butterfly wings vibrating and the sound of the surrounding environment) is less than the second threshold. In this way, the user cannot hear the sound of the butterfly wings vibrating in the video 311. If the user wants to hear the sound of the butterfly wings vibrating in the video 311 at this time, the user can click the more menu bar 312.
[0170] For the description of the second threshold, please refer to the corresponding description in S710 below, which will not be repeated here. When the mobile phone detects that the user clicks on the more menu bar 312, the interface 310 of the mobile phone will display menu options, which include at least one option. Figure 5 As shown in (b) , the interface 310 of the mobile phone also includes a menu option 313 , and the menu option 313 includes an AIAUDIO option 3131 .
[0171] In some embodiments, when the mobile phone detects that the user clicks the AI AUDIO option 3131, the mobile phone identifies the scene of the video 311 played on the interface 310, and determines that the scene of the video is a preset butterfly flapping wing scene. The mobile phone enters the video editing mode corresponding to the butterfly flapping wing scene, and at the same time, when the vibration of the butterfly wings is recognized, a virtual sound of the butterfly flapping wings is added to the video 311.
[0172] In other embodiments, when the mobile phone detects that the user clicks the AI AUDIO option 3131, multiple sound effect processing scene controls may be displayed on the interface 310, so that the user can select the target sound effect processing scene from the multiple sound effect processing controls. In this way, after the mobile phone detects the target sound effect processing scene control clicked by the user, the mobile phone enters the video editing mode corresponding to the target sound effect processing scene. Thereafter, the mobile phone plays the preset virtual sound corresponding to the target sound effect processing scene in real time.
[0173] Optionally, after the mobile phone adds the virtual sound of the butterfly flapping its wings to the video 311, the mobile phone may also display a prompt message so that the user knows that the virtual sound of the butterfly flapping its wings has been added to the video. Figure 5 As shown in (c) in the figure, the prompt information may be a text message of "the sound of a virtual butterfly flapping its wings has been added to the video".
[0174] Optionally, the mobile phone can also automatically adjust the volume (audio) of the sound of the virtual butterfly flapping wings added to the video according to the distance between the butterfly in video 311 and the mobile phone, the focal length of the mobile phone, or the proportion of the butterfly in video 311 (relative to the screen of the mobile phone).
[0175] For example, when the distance between the butterfly in video 311 and the mobile phone is smaller, the sound of the virtual butterfly flapping its wings is louder. When the focal length of the mobile phone is larger, the sound of the virtual butterfly flapping its wings is louder. When the proportion of the butterfly in video 311 is larger, the sound of the virtual butterfly flapping its wings is louder.
[0176] When the user wants to see the sound of a virtual butterfly flapping its wings added to the video, the user can click Figure 5 In this way, when the mobile phone detects that the play control 314 is clicked, Figure 5 As shown in (d) in FIG. 3 , the mobile phone plays the video 311 and the virtual sound of a butterfly flapping its wings that matches the video 311 .
[0177] When the user Figure 5 If the user is not satisfied with the sound effects of the video 311 shown in (d) in FIG. Figure 5The sound effect of the video 311 shown in (d) is set. The specific setting process can be referred to above. Figure 4 The process of setting the sound effects for the recorded video will not be described here.
[0178] For example, Figure 6 Another set of GUIs of a mobile phone provided in an embodiment of the present application is shown.
[0179] like Figure 6 As shown in (a) of FIG. 1 , the mobile phone displays a preview interface 400 of the recorded video, and the preview interface 400 may include a viewfinder 401. In the preview state, the preview video may be displayed in real time in the viewfinder 401. The preview video includes an object, such as Figure 6 As shown in (a) of FIG. 4 , the object is a blooming firework 402. Optionally, the preview interface 400 may further include an (AI AUDIO) control 403.
[0180] It is understandable that the preview interface 400 also includes a photo mode, a professional mode, and more modes.
[0181] When the environment around the mobile phone is noisy, the user feels that the sound effect corresponding to the video recorded in this environment is not good, and the user is not satisfied with the sound corresponding to the video recorded in this environment, the user can click control 403 to enter the artificial intelligence recording mode.
[0182] In some embodiments, when the mobile phone detects that the user clicks on the control 403, the mobile phone identifies the scene of the preview video, determines that the scene of the preview video is a preset fireworks blooming scene, and enters a recording mode corresponding to the fireworks blooming scene. Thereafter, when the mobile phone identifies fireworks blooming, the signal-to-noise ratio of the sound in the preview video is increased and played in real time.
[0183] In other embodiments, when the mobile phone detects that the user clicks the control 403, the interface 310 may also display multiple sound effect recording scene controls, so that the user can select the target sound effect recording scene they need from the multiple sound effect recording controls. In this way, after the mobile phone detects the target sound effect recording scene control clicked by the user, the mobile phone enters the recording mode corresponding to the target sound effect recording scene. Thereafter, the mobile phone increases the signal-to-noise ratio of the sound in the preview video and plays it in real time.
[0184] Optionally, at this time, a prompt message may also be displayed on the preview interface 400 of the mobile phone to prompt the mobile phone to enter the recording mode corresponding to the fireworks blooming scene. Figure 6 As shown in (b) in FIG. 4 , the preview interface 401 may further include an icon 404 , which is used to instruct the mobile phone to enter a recording mode corresponding to a fireworks scene.
[0185] Optionally, in some embodiments, the mobile phone can also automatically adjust the signal-to-noise ratio of the sound in the real-time preview video according to the distance between the fireworks and the mobile phone, the focal length of the mobile phone, or the proportion of the fireworks (relative to the screen of the mobile phone).
[0186] For example, when the distance between the fireworks and the phone is smaller, the signal-to-noise ratio of the sound in the preview video is greater. When the focal length of the phone is larger, the signal-to-noise ratio of the sound in the preview video is greater. When the proportion of fireworks is larger, the signal-to-noise ratio of the sound in the preview video is greater.
[0187] When the phone enters the recording mode corresponding to the fireworks scene, the phone can also adjust the signal-to-noise ratio of the sound in the recorded video in real time during the video recording process. In addition, the phone can also automatically adjust the signal-to-noise ratio of the sound in the real-time recorded video based on the distance between the fireworks and the phone in the recorded video, the focal length of the phone, or the proportion of the fireworks in the recorded video (relative to the phone's screen). The specific adjustment plan can be found in the description above and will not be repeated here. If the user is not satisfied with the sound of the fireworks in the recorded video, the user can also set the sound of the fireworks in the recorded video. The following is combined with Figure 7 Provide explanation.
[0188] For example, Figure 7 Another set of GUIs of a mobile phone provided in an embodiment of the present application is shown.
[0189] like Figure 7 As shown in (a) in FIG. 8 , the mobile phone displays an interface 405 for pausing video playback, and the interface 405 includes a recorded video 406 . The interface 405 may also include an editing control 407 .
[0190] Alternatively, if Figure 7 As shown in (a) in FIG. 4 , the interface 405 may also include sharing controls, favorite controls, delete controls, and more controls.
[0191] When the user wants to edit the video 406, the user can click the edit control 407. In this way, after the mobile phone detects that the user clicks the edit control 407, Figure 7 As shown in (b) in the figure, the mobile phone will also display a sound effect replacement control 408, a time alignment control 409, a sound effect rendering intensity control 410, a sound effect deletion control 411, and a return to the previous level control 412 on the interface 405.
[0192] It should be noted that the sound effect replacement control 408, time alignment control 409, sound effect rendering intensity control 410, and sound effect deletion control 411 involved in this application are controls for editing specific sound effects corresponding to the video 406. For example, the specific sound effects may include target sound effects.
[0193] In addition, the sound effect replacement can be understood as the replacement of all sounds in the video 406. Or the sound effect replacement can be understood as the replacement of part of the sounds in the video 406, such as the replacement of the target sound effect in the video 406. Optionally, the replaced target sound effect and the target sound effect to be replaced can be sound effects related to the same target object, such as the replaced target sound effect can be the sound of fireworks, and the virtual sound effect to be replaced can be the sound of other fireworks.
[0194] Sound effect deletion can be understood as deletion of all sounds in video 406 ; or deletion of part of the sounds in video 406 , such as deletion of target sound effects in video 406 .
[0195] The time alignment control can be understood as the time alignment of all sounds in video 406 and video 406 ; or the time alignment of part of the sounds in video 406 and video 406 , such as the time alignment of the target sound effect in video 406 and video 406 .
[0196] When the user wants to delete the sound in the video 406, the user can click the sound effect deletion control 411. In this way, when the mobile phone detects that the user clicks the sound effect deletion control 411, the sound in the video 406 is deleted.
[0197] When the user is not satisfied with the volume of the sound of the video 406 and wants to adjust the volume of the sound of the video 406, the user can click the sound rendering intensity control 410. In this way, after the mobile phone detects that the user clicks the sound rendering intensity control 410, Figure 7 As shown in (c) in FIG. 4 , the mobile phone will also display an adjustment progress bar 4101 for the target sound effect intensity and an adjustment progress bar 4102 for the overall sound effect intensity on the interface 405 .
[0198] The target sound effect can be understood as the effect of the audio of fireworks in the video 406. The overall sound effect can be understood as the effect of all audio corresponding to the video 406. For example, all audio corresponding to the video 406 includes not only the target audio (the audio of fireworks), but also other audio such as the ambient audio obtained by the mobile phone in the process of obtaining the video 406.
[0199] The user can adjust the audio of the fireworks in video 406 according to his / her needs through the target sound effect intensity adjustment progress bar 4101. In this way, the mobile phone can adjust the audio of the fireworks in video 406 to the intensity value in the adjustment progress bar 4101. The user can also adjust the overall sound of video 406 according to his / her needs through the overall sound effect intensity loudness adjustment progress bar 4102. In this way, the mobile phone can adjust the intensity value of the overall sound of video 406 to the intensity value in the adjustment progress bar 4102.
[0200] Optionally, in some embodiments, the adjustment progress bar 4101 described above can also be replaced by a signal-to-noise ratio adjustment progress bar. In this way, the user can adjust the signal-to-noise ratio of the sound of the video 406 through the signal-to-noise ratio adjustment progress bar. The signal-to-noise ratio of the sound of the video 406 can be understood as the ratio of the intensity of the audio of the fireworks to the intensity of the audio of all the audio of the video 406 except the audio of the fireworks.
[0201] For the solution of sound effect replacement and time alignment of video 406, please refer to the above Figure 4 The process of replacing the sound effects and aligning the time of video 206 will not be described in detail here.
[0202] For example, Figure 8 An example of a mobile phone GUI provided in an embodiment of the present application is shown.
[0203] like Figure 8 As shown in (a) of FIG. 1 , the mobile phone displays a preview interface 500 in a slow motion recording mode, and the preview interface 500 may include a viewfinder 501. In the preview state, the viewfinder 501 may display a preview video in real time. Figure 8 As shown in (a) in FIG. 8 , the preview video includes fireworks 502 blooming.
[0204] Alternatively, if Figure 8 As shown in (a) of FIG. 5 , the preview interface 500 may also display a slowing rate (or slowing multiple) icon 503 in the slow motion recording mode at this time. At this time, the slowing rate in the slow motion recording mode is 2×.
[0205] It should be understood that the slowing down rate can be understood as a multiple of the playback rate of the video recorded in the slow motion recording mode relative to the playback rate of the original video. The original video is the video recorded in the normal recording mode. For example, if the slowing down rate in the slow motion recording mode is 2×, then the playback rate of the video recorded in the slow motion recording mode is twice the playback rate of the original video.
[0206] Optionally, the user can also adjust the slow-down rate in the slow-motion recording mode. For example, the user can slide icon 503 left and right in the preview interface 500 to adjust the slow-down rate value to adjust the slow-down rate in the slow-motion recording mode.
[0207] At this time, the mobile phone can also display a prompt message to prompt the user of the processing method of the audio corresponding to the video in the slow motion recording mode at this time. For example, the audio processing method may include variable speed without changing the pitch, variable speed without changing the pitch, and variable pitch without changing the speed.
[0208] For example, Figure 8As shown in (a) in the figure, the prompt information may be a switch 504, which is used to indicate whether the processing method for the audio in the slow-motion recording mode is variable speed without changing the pitch. For example, when the switch 504 is in the on state (or the lighted state), the mobile phone processes the audio in the slow-motion recording mode in a variable speed without changing the pitch. When the switch 504 is in the off state (or the extinguished state), the mobile phone processes the audio in a normal processing method (such as a variable speed without changing the pitch) in the slow-motion recording mode.
[0209] It should be understood that the above-mentioned audio processing methods of the switch 504 in the on state and the off state are only examples and should not be construed as limiting the present application. Figure 8 (a) is an example in which the switch 504 is in the closed state, which should not constitute a limitation to the present application.
[0210] When the user wants to process the audio in a variable speed but unchanged pitch mode, the user can click switch 504. In this way, when the mobile phone detects that the switch 504 is clicked, the audio can be processed in a variable speed but unchanged pitch mode in the slow motion recording mode.
[0211] Optionally, in some embodiments, the user can also set a separate processing method for the audio tone in the slow-motion recording mode.
[0212] For example, when the mobile phone detects that the user has long pressed the switch 504, Figure 8 As shown in (b) of FIG. 5 , the mobile phone may also display a tone adjustment bar 505 on the preview interface 500. The user may adjust the tone of the audio in the video recorded in the slow motion recording mode according to his / her needs through the tone adjustment bar 505. In this way, the mobile phone records the video in the slow motion recording mode according to the adjustment multiple in the tone adjustment bar 505.
[0213] It should be understood that what is displayed in the tone adjustment bar 505 is the adjustment multiple of the tone, that is, the adjustment multiple of the tone of the video recorded in the slow motion recording mode relative to the tone of the original audio. The original audio is the audio corresponding to the original video recorded in the normal recording mode. Figure 8 As shown in (b), the adjustment multiple of the pitch in the slow-motion recording mode is 2×, so the pitch of the video recorded in the slow-motion recording mode is twice the pitch of the original audio.
[0214] It should be noted that the adjustment factor of the pitch can be understood as the adjustment factor of the pitch of all audio corresponding to the video. When all audio includes real audio (real sound produced by an object), the adjustment factor of the pitch of the real audio is the adjustment factor relative to the pitch of the real audio in the original audio. When all audio includes virtual audio, the adjustment factor of the pitch of the virtual audio is the adjustment factor relative to the pitch of the original virtual audio. Among them, the pitch of the original virtual audio is not the pitch of the virtual audio in the original audio, but the audio that matches the movement law of the target object in the original video.
[0215] For example, Fig. 9 An example of a mobile phone GUI provided in an embodiment of the present application is shown.
[0216] like Fig. 9 As shown in (a) of FIG. 1 , the mobile phone displays a video pause playback interface 601, and the interface 601 includes a recorded video 602. The interface 601 may also include an editing control 603. The video 602 is a video recorded in a slow motion recording mode / fast motion recording mode.
[0217] Alternatively, if Fig. 9 As shown in (a) in FIG. 6 , the interface 601 may also include sharing controls, favorite controls, delete controls, and more controls.
[0218] When the user wants to edit the video 602, the user can click the edit control 603. In this way, after the mobile phone detects that the user clicks the edit control 603, Fig. 9 As shown in (b) in FIG. 6 , the mobile phone will also display a tone control 6031 , a rate control 6032 , and a return to previous level control 6033 on the interface 601 .
[0219] When the user wants to process the tone of the video 602, the user can click the tone control 6031. In this way, when the mobile phone detects that the tone control 6031 is clicked, Fig. 9 As shown in (c) in FIG. 6 , a tone adjustment bar 60311 is displayed on the interface 601 .
[0220] Optionally, in some embodiments, the pitch adjustment bar 60311 displays the adjustment multiple of the pitch, that is, the adjustment multiple of the pitch relative to the original audio. Fig. 9 As shown in (c) in FIG. 6 , the adjustment multiple corresponding to the pitch adjustment bar 60311 is 2.0, that is, the pitch of the audio of the video 602 is twice the pitch of the original audio.
[0221] The user can adjust the pitch of the sound in the video 602 according to his / her needs through the pitch adjustment bar 60311. In this way, the mobile phone adjusts the pitch of the audio corresponding to the video 602 according to the adjustment multiple in the pitch adjustment bar 60311.
[0222] When the user wants to process the playback rate of the video 602 and the audio corresponding to the video 602, the user can click the rate control 6032. In this way, when the mobile phone detects that the rate control 6032 is clicked, a rate adjustment bar is displayed on the interface 601. The user can adjust the playback rate of the video 602 and the audio corresponding to the video 602 through the rate adjustment bar according to his own needs. In this way, the mobile phone adjusts the playback rate of the video 602 and the audio corresponding to the video 602 according to the adjustment multiple in the rate adjustment bar. It will not be described in detail here with reference to the accompanying drawings.
[0223] Next, combine Figures 10 to 14 , the video playback method provided in the embodiment of the present application is described.
[0224] The method can be applied to an electronic device. The electronic device can be Figure 1 or Figure 2 The electronic device shown, or the electronic device may be Figures 3 to 9 The phone shown.
[0225] Fig.10 A schematic flowchart of a method 700 for video playback provided in an embodiment of the present application.
[0226] like Fig.10 As shown, the method 700 includes S710 and S720, and S710 and S720 are described in detail below.
[0227] S710: The electronic device obtains a first video and a first audio corresponding to the first video.
[0228] The first audio may be understood as the original audio of the first video.
[0229] In one example, the first audio includes a first target audio, and the intensity of the first audio is less than a first threshold. At this time, it can be understood that the audio corresponding to the first video only includes the first target audio and no ambient audio.
[0230] It is understandable that when the target device (which may be the execution subject of method 700 or other device) acquires the first video, the object in the first video itself emits a sound, but because the intensity of the sound emitted by the object is less than the first threshold, or because the distance between the object and the electronic device is greater than the target distance, the sound of the object picked up by the device within the shooting distance is relatively small (such as less than the first threshold), so that the user can hardly hear the sound of the object when playing the first video and the audio corresponding to the first video. In other words, the first target audio is the audio that exists in the scene of recording the first video.
[0231] Exemplarily, the first threshold may be equal to or close to the intensity value of the background noise that can be obtained by the target device. For example, if the intensity value of the background noise that can be obtained by the target device is -100dBV, the first threshold may be equal to or close to -100dBV.
[0232] It should be noted that the intensity values of the background noise that can be obtained by different devices may be the same or different, and this application does not limit this.
[0233] In another example, the first audio includes the first ambient audio and the first target audio, wherein the signal-to-noise ratio of the first audio is less than the second threshold. At this time, it can be understood that the audio corresponding to the first video contains the ambient audio, but the signal-to-noise ratio of the first audio is relatively small.
[0234] It should be noted that, in this example, the signal-to-noise ratio of the first audio is less than the second threshold, that is, the ratio of the intensity of the first target audio to the intensity of the first ambient audio is less than the second threshold. There is no limitation on the respective magnitudes of the intensity of the first ambient audio and the intensity of the first target audio. In addition, when the signal-to-noise ratio is expressed in decibels (dB), the signal-to-noise ratio of the first audio can be expressed as 10log(A / B) or 20log(A / B), where A is the intensity of the first target audio and B is the intensity of the first ambient audio.
[0235] Exemplarily, the second threshold value may be obtained based on a large amount of data. For example, the data may include: the signal-to-noise ratio of the audio in the video recorded when the user actively turns on the artificial intelligence recording function during the video recording process. Optionally, the recorded video may be a recorded video under a first preset scene, and / or, the recorded video may be a recorded video under a second preset scene. Among them, the description of the second preset scene can refer to the relevant description in method 800, which will not be repeated here.
[0236] For example, when the signal-to-noise ratio is expressed in decibels, the second threshold value generally ranges from -10 dB to 5 dB. Further, the second threshold value preferably ranges from -5 dB to 0 dB. Furthermore, the second threshold value may be -3 dB.
[0237] It should be noted that the value of the second threshold may be the same or different for different devices, and this application does not limit this.
[0238] The first target audio and the virtual audio described below are both audio related to the target object.
[0239] The target object generally refers to any object that can produce sound. In one example, the target object can be a visible object. For example, the target object can be a bubble, an insect, a glacier, a pet, a fish, a snake, a worm, a flower, a grass, etc. as described in Table 1. In another example, the target object can also be an object in nature that can produce a certain phenomenon. For example, wind that produces wind sound, rain that produces rain sound, etc.
[0240] The first target audio is the real audio generated by the collected target object.
[0241] Virtual audio can also be called virtual sound effect, which can be the audio produced by emulating / simulating / rendering the target object. In other words, the virtual audio is the audio that does not exist in the scene of recording the first video.
[0242] The virtual audio and the first target audio may be the same or different, and this application does not limit this.
[0243] In one example, the virtual audio can be obtained based on a large amount of real audio generated by the target object collected. In another example, the virtual audio can be the audio generated by the target object established by a person based on his or her own cognition.
[0244] A target object may correspond to one or more virtual audios, which is not limited in this application.
[0245] The first ambient audio may be understood as the sound generated by other objects in the external environment except the object generating the first target audio during the process of recording the first video.
[0246] The embodiment of the present application does not limit the triggering condition for obtaining the first video in S710.
[0247] In one example, when the electronic device detects an operation of entering a video recording interface, the electronic device acquires a first video. At this time, the trigger condition for acquiring the first video is that the electronic device detects an operation of entering a video recording interface, and the first video may be a preview video.
[0248] For example, Figure 3 As shown in (a), when the mobile phone enters the video recording interface 200, the electronic device obtains a preview video (an example of a first video) including a cup 202 filled with cola.
[0249] In another example, when the electronic device detects an operation of viewing the first video, the electronic device acquires the first video. At this time, the trigger condition for acquiring the first video is that the electronic device detects an operation of viewing the first video, and the first video may be a recorded video.
[0250] For example, Figure 5 As shown in (a) in FIG. 1 , when the mobile phone detects that the user views the recorded video 311 , the electronic device obtains the video 311 (an example of the first video) including the butterfly.
[0251] Optionally, in some embodiments, Fig.11 As shown, between S710 and S720, method 700 may further include S730, which will be described in detail below.
[0252] S730: The electronic device determines whether a first preset scene exists in the first video.
[0253] Specifically, when it is determined that the first preset scene exists in the first video, the electronic device executes S720; when it is determined that the first preset scene does not exist in the first video, the electronic device does not execute S720.
[0254] Exemplarily, the user can set the first preset scene according to his / her needs. For example, the user can set the scene where objects (including animals) with low sound intensity (actively or passively) generated in nature are located as the first preset scene.
[0255] In some embodiments, the first preset scene includes, but is not limited to, a scene of bubbles bursting, a scene of insects flapping their wings, a scene of glaciers melting, a scene of pets (such as hamsters) eating, a scene of fish swimming in water, a scene of snakes crawling, a scene of worms wriggling, a scene of flowers / grass fluttering, etc. At this time, the first preset scene is a dynamic preset scene.
[0256] Exemplarily, the scene of bubble bursting can be further subdivided into the scene of bubble bursting of carbonated beverages, the scene of bubble bursting of foam, the scene of bubble bursting produced by effervescent tablets soaked in water, and the like.
[0257] In other embodiments, the first preset scene includes but is not limited to: bubble scene, insect scene, glacier scene, pet (such as hamster) scene, fish scene, snake scene, worm scene, flower / grass scene, etc. At this time, the first preset scene is a static preset scene.
[0258] When the first preset scene exists in the first video, the target object is related to the first preset scene.
[0259] Since the first target audio / virtual audio are both audio related to the target object, and the target object is related to the first preset scene, the first target audio can be understood as the real audio generated by the collected target object in the first preset scene. The virtual audio can be understood as the audio generated by the simulated / simulated / rendered target object in the first preset scene.
[0260] A target object in a first preset scene may correspond to a virtual audio.
[0261] Exemplarily, the trigger condition of S730 may be: the electronic device responds to a first operation on a first control on a first interface. That is, after detecting a first operation of a user on a first control on the first interface, it is determined whether the first video has a first preset scene. The first interface is an interface for obtaining the first video.
[0262] For example, Figure 3 As shown in (a), the first interface is the preview interface 200, the first control is the AI AUDIO control 203, and the first operation is a click operation.
[0263] For example, Figure 5 As shown in (c), the first interface is interface 310, the first control is AI AUDIO option 3131, and the first operation is a click operation.
[0264] Exemplarily, S730 specifically includes: determining, according to the content of the first video, whether a first preset scene exists in the first video.
[0265] Exemplarily, the electronic device may include a first preset scene judgment model, and the electronic device inputs the first video into the first preset scene judgment model. If the first preset scene exists in the first video, the first preset scene judgment model outputs a result that the first preset scene exists in the first video, and if the first preset scene does not exist in the first video, the first preset scene judgment model outputs a result that the first preset scene does not exist in the first video. The first preset scene judgment model is a model established based on the first preset scene.
[0266] Optionally, after S730, if the first video is a preview video or a video being recorded, the electronic device may also enter a shooting mode corresponding to the first preset scene.
[0267] Optionally, the electronic device may also display first prompt information on the interface displaying the first video, where the first prompt information is used to prompt entering into a recording mode corresponding to the first preset scene.
[0268] For example, Figure 3 As shown in (b) in FIG. 8 , the first prompt information may be icon 204 .
[0269] Alternatively, if Fig.11 As shown, between S710 and S730, method 700 may further include S740, which will be described in detail below.
[0270] S740: The electronic device determines whether the first video satisfies a first condition according to shooting parameters of the first video.
[0271] Specifically, when it is determined that the first video satisfies the first condition, execute S730 and steps after S730; when it is determined that the first video does not satisfy the first condition, terminate execution of S730 and steps after S730.
[0272] If there are multiple first preset scenes in the preset scene library, then the electronic device must execute S730 for each first preset scene. At this time, if S740 is executed before S730, and it is determined in S740 that the first video meets the first condition, the electronic device believes that there is a high probability that the first preset scene exists in the first video, so that the electronic device can speed up the frequency of executing S730, thereby reducing the power consumption of the electronic device. If S740 is executed before S730, and it is determined in S740 that the first video does not meet the first condition, the electronic device believes that there is a high probability that the first preset scene does not exist in the first video, so that the electronic device still executes S730 at a normal frequency.
[0273] For example, if the electronic device does not execute S740 before executing S730, in order to determine the detection accuracy of S730, the electronic device executes S730 at a slower frequency, such as executing S730 5 times per second. If the electronic device executes S740 before executing S730, and determines in S740 that the first video meets the first condition, the electronic device believes that there is a high probability that the first preset scene exists in the first video. At this time, the electronic device can speed up the execution of S730 from executing S730 5 times per second to executing S730 10 times per second. If the electronic device executes S740 before executing S730, and determines in S740 that the first video does not meet the first condition, the electronic device believes that there is a high probability that the first preset scene does not exist in the first video. At this time, the electronic device still executes S730 at a normal frequency, that is, executes S730 5 times per second.
[0274] Exemplarily, the shooting parameters may include shooting focal length, shooting range, object proportion, etc.
[0275] The object may be understood as any object in the first video, for example, a cup, bubbles, cola, insects, glaciers, pets, fish, snakes, worms, flowers, grass, blue sky, white clouds, buildings, etc.
[0276] When the shooting parameter includes the recording focal length, the first condition includes that the recording focal length of the first video becomes smaller. Thus, S740 includes: when it is determined that the recording focal length of the first video becomes smaller, determining that the first video satisfies the first condition. At this time, it can be considered that in the process of acquiring the first video, in order to shoot distant objects more clearly, there is a situation where the shooting picture is zoomed in.
[0277] Exemplarily, if the device for acquiring the first video is the executor of method 700, i.e., an electronic device, and the first video is a preview video or a video being recorded, at this time, the focal length change of the camera on the electronic device can be used to determine whether the recording focal length of the first video has become smaller.
[0278] When the shooting parameter includes a shooting range, the first condition includes that the shooting range of the first video changes. Thus, S740 includes: when it is determined that the shooting range of the first video changes, determining that the first video satisfies the first condition. At this time, it can be considered that in the process of acquiring the first video, in order to be able to capture a desired scene, there is a situation where the shooting range is adjusted.
[0279] Exemplarily, if the device for acquiring the first video is the executor of method 700, i.e., an electronic device, and the first video is a preview video or a video being recorded, at this time, a sensor on the electronic device (such as a gyroscope sensor) can be used to determine whether the posture of the electronic device (such as whether there is a rotation or pitch posture) has changed, thereby determining whether the shooting range of the first video has changed.
[0280] When the shooting parameter includes the proportion of the object, the first condition includes that the proportion of the object is greater than or equal to the third threshold. Thus, S740 includes: when the proportion of the object is greater than or equal to the third threshold, determining that the first video meets the first condition.
[0281] The embodiment of the present application does not limit the specific value of the third threshold. For example, the third threshold may be greater than or equal to 10%.
[0282] Alternatively, if Fig.11 As shown, after S710, the method 700 may further include S750, and the execution order between S750 and S730 is not limited in this application. S750 is described in detail below.
[0283] S750, the electronic device determines whether there is an object state change event for the target object in the first video.
[0284] Specifically, when it is determined that the target object in the first video has an object state change event, the steps after S750 are executed; when it is determined that the target object in the first video does not have an object state change event, the steps after S750 are terminated.
[0285] Exemplarily, the states of the same object in multiple frames of images in the first video may be compared to determine whether there is an object state change event for the target object in the first video.
[0286] For example, if the first preset scene is a scene of bubble bursting, then when comparing the same bubble in multiple frames of images in the first video and finding that the bubble has burst, it can be considered that an object state change event exists in the bubble in the first video.
[0287] For another example, if the first preset scene is an insect scene, then when comparing multiple frames of images in the first video to show that the insect has wings vibrating, it can be considered that an object state change event occurs for the insect in the first video.
[0288] The target object is related to the first preset scene.
[0289] For example, examples between the first preset scene and the target object are shown in Table 1.
[0290] Table 1
[0291]
[0292]
[0293] Optionally, in some embodiments, Fig.11 As shown, after S750, the method 700 further includes: S760, the electronic device synchronizes the virtual audio and the first video.
[0294] For example, synchronizing the virtual audio with the first video can be understood as: when the state of the target object in the first video changes during the playing of the first video, the virtual audio is played synchronously. For example, the playing frequency of the virtual audio is the same as the number of times the state of the target object in the first video changes.
[0295] In one example, if the first video is a preview video or a video being recorded, S760 includes: the electronic device predicts the state of the target object in the first video based on the first video, and obtains the first state change time of the target object; and plays virtual audio within the first state change time.
[0296] For example, if the first preset scene is a bubble bursting scene or a bubble scene, then the state of the bubble can be predicted, and the virtual audio corresponding to the bubble bursting can be played at the predicted bubble bursting time. In this way, the virtual audio corresponding to the bubble bursting can be played every time the bubble bursts.
[0297] For another example, if the first preset scene is a scene of an insect flapping its wings or an insect scene, then the state of the insect can be predicted, and the virtual audio corresponding to the insect flapping its wings can be played during the predicted time of the insect flapping its wings. In this way, the virtual audio corresponding to the insect flapping its wings can be played once the insect's wings vibrate once.
[0298] In another example, if the first video is a recorded video, S760 includes: the electronic device determines the second state change time of the target object in the first video according to the first video; and plays the virtual audio within the second state change time.
[0299] For example, if the first preset scene is a bubble bursting scene or a bubble scene, then the virtual audio corresponding to the bubble bursting can be played during the bubble bursting time. In this way, the virtual audio corresponding to the bubble bursting is played once each time the bubble bursts.
[0300] For another example, if the first preset scene is a scene of an insect flapping its wings or an insect scene, then the virtual audio corresponding to the insect flapping its wings can be played during the time when the insect flaps its wings. In this way, the virtual audio corresponding to the insect flapping its wings is played once the insect's wings vibrate once.
[0301] It should be noted that the first state change time or the second state change time can be one segment or multiple segments, and this application does not limit this.
[0302] S720: The electronic device plays the first video and the second audio matching the first video.
[0303] When the first audio includes the first target audio, the second audio includes the virtual audio. At this time, the strength of the virtual audio is greater than or equal to the first threshold.
[0304] Optionally, in some embodiments, in addition to the virtual audio, the second audio may also include a first target audio, where the intensity of the first target audio is less than a first threshold.
[0305] When the second audio includes virtual audio, the virtual audio related to the first preset scene can be added, and the virtual audio related to the first preset scene, that is, the second audio, is used as the audio of the first video and played.
[0306] When the second audio includes virtual audio and first target audio, virtual audio related to the first preset scene can be added on the basis of the first target audio, and the first target audio and the virtual audio related to the first preset scene, i.e., the second audio, can be used as the audio of the first video and played.
[0307] When the first audio includes the first ambient audio and the first target audio, the second audio includes the first ambient audio and the virtual audio. At this time, the loudness of the virtual audio is greater than or equal to the second threshold.
[0308] Optionally, in some embodiments, in addition to the first ambient audio and the virtual audio, the second audio may also include the first target audio.
[0309] When the second audio includes the first ambient audio and the virtual audio, the virtual audio related to the first preset scene can be added on the basis of the first ambient audio, and the first ambient audio and the virtual audio related to the first preset scene, i.e. the second audio, can be used as the audio of the first video and played.
[0310] When the second audio includes the first ambient audio, the virtual audio and the first target audio, the virtual audio related to the first preset scene can be added on the basis of the first ambient audio and the first target audio, and the first ambient audio, the first target audio and the virtual audio related to the first preset scene, i.e., the second audio, can be used as the audio of the first video and played.
[0311] It should be noted that, since the virtual audio is audio that does not exist in the scene of recording the first video, the virtual audio is audio that is added to the audio of the first video.
[0312] For example, an example between the first preset scene and the first target audio / virtual audio is shown in Table 2.
[0313] Table 2
[0314]
[0315] Exemplarily, the strength of the virtual audio is related to at least one of the following: the distance between the target object in the first video and the electronic device, the recording focal length of the first video, and the proportion of the target object in the first video, where the electronic device is a device for recording the first video.
[0316] For example, when the distance between the target object in the first video and the electronic device is closer, or the recording focal length of the first video is larger, or the proportion of the target object in the first video is larger, the strength of the virtual audio is stronger.
[0317] Exemplarily, there is a corresponding relationship between the distance between the target object and the electronic device, or the recording focal length, or the proportion of the target object, and the intensity of the virtual audio. The intensity of the virtual audio can be determined based on the distance between the target object and the electronic device in the first video, or the recording focal length of the first video, or the proportion of the target object in the first video, and the corresponding relationship.
[0318] The corresponding relationship may be one-to-one or many-to-one, and this application does not limit this.
[0319] Optionally, after S720, method 700 may further include: S770, the electronic device displays at least one of the following items on the second interface in response to a second operation of the second control on the second interface: a third control, a fourth control, a fifth control, and a sixth control.
[0320] The second interface is an interface for playing the first video. The third control is used to replace the virtual audio. The fourth control is used to synchronize the virtual audio and the first video. The fifth control is used to adjust the strength of the virtual audio and / or the strength of the second audio. The sixth control is used to not play the virtual audio, that is, to delete the virtual audio from the first video.
[0321] For example, Figure 4 As shown in (a) of FIG. 1 , the second interface is interface 205, and the second control is editing control 207. Figure 4 As shown in (b), the third control is the sound effect replacement control 208, the fourth control is the time alignment control 209, the fifth control is the sound effect rendering intensity control 210, and the sixth control is the sound effect deletion control 211.
[0322] For specific examples of how to replace the virtual audio through the third control, how to synchronize the virtual audio and the first video through the fourth control, how to adjust the strength of the virtual audio and / or the strength of the second audio through the fifth control, and how to delete the virtual audio from the first video through the sixth control, please refer to the above. Figure 4 The relevant description in will not be repeated here.
[0323] Through method 700, when the first audio corresponding to the first video only includes the first target audio, the intensity of the first audio is less than the first threshold, and the first preset scene exists in the first video, the virtual audio related to the first preset scene can be added, and the virtual audio related to the first preset scene, that is, the second audio, can be used as the audio of the first video and played. Alternatively, when the first audio includes the first ambient audio and the first target audio, the signal-to-noise ratio of the first audio is less than the second threshold, and the first preset scene exists in the first video, the virtual audio related to the first preset scene can be added on the basis of the first ambient audio, and the first ambient audio and the virtual audio related to the first preset scene, that is, the second audio, can be used as the audio of the first video and played, and the signal-to-noise ratio of the second audio is greater than the signal-to-noise ratio of the first audio. Furthermore, when the sound related to the change of the state of the photographed subject is small, the function of virtually rendering the sound related to the change of the state of the photographed subject is realized. At this time, since the intensity of the virtual audio is greater than or equal to the first threshold or the signal-to-noise ratio of the second audio is greater than the signal-to-noise ratio of the first audio, the played first video and the second audio corresponding to the first video can well reflect the state of the photographed subject. As a result, users will feel more immersed when watching the first video, which helps to improve the user experience.
[0324] Fig.12 A schematic flowchart of another example of a method 800 for video playback provided in an embodiment of the present application.
[0325] like Fig.12 As shown, the method 800 includes S810 and S820, and S810 and S820 are described in detail below.
[0326] S810, obtaining a second video and a third audio corresponding to the second video.
[0327] The signal-to-noise ratio of the third audio is greater than or equal to the second threshold. For the description of the second threshold, please refer to the relevant description in the above method 700, which will not be repeated here.
[0328] For example, the third audio includes the second ambient audio and the second target audio, and the signal-to-noise ratio of the third audio is greater than or equal to the second threshold, that is, the ratio of the intensity of the second target audio to the intensity of the second ambient audio is greater than or equal to the second threshold. There is no limitation on the respective magnitudes of the intensity of the second ambient audio and the intensity of the second target audio.
[0329] It should be noted that when the signal-to-noise ratio is expressed in decibels, the signal-to-noise ratio of the third audio can be expressed as 10log(C / D) or 20log(C / D), where C is the intensity of the second target audio and D is the intensity of the second ambient audio.
[0330] Optionally, in some embodiments, the signal-to-noise ratio of the third audio is not only greater than or equal to the second threshold, but also less than or equal to a fifth threshold, and the fifth threshold is greater than the second threshold. In this case, it can be considered that S820 is performed only when the signal-to-noise ratio of the third audio is between the second threshold (including the second threshold) and the fifth threshold (including the fifth threshold).
[0331] The third audio can be understood as the original audio of the second video.
[0332] The second ambient audio can be understood as the sound produced by other objects in the external environment except the object producing the second target audio during the recording of the second video. For the description of the target object, please refer to the relevant description below, which will not be repeated here.
[0333] The embodiment of the present application does not limit the triggering conditions for obtaining the second video and the third audio in S810.
[0334] In one example, when the electronic device detects an operation of entering a video recording interface, the electronic device acquires the second video and the third audio. At this time, the trigger condition for acquiring the second video and the third audio is that the electronic device detects an operation of entering a video recording interface, and the second video may be a preview video.
[0335] For example, Figure 6 As shown in (a) in FIG. 1 , when the mobile phone enters the preview interface 400 of the recorded video, the electronic device obtains a preview video including blooming fireworks 402 (an example of the second video) and audio corresponding to the blooming fireworks 402 (an example of the third audio).
[0336] In another example, when the electronic device detects the operation of viewing the second video, the electronic device obtains the second video and the third audio. At this time, the trigger condition for obtaining the second video and the third audio is that the electronic device detects the operation of viewing the second video, and the second video can be a recorded video.
[0337] Optionally, in some embodiments, Fig.13 As shown, between S810 and S820, method 800 may further include S830, which will be described in detail below.
[0338] S830: The electronic device determines whether a second preset scene exists in the second video.
[0339] Specifically, when it is determined that the second preset scene exists in the second video, the electronic device executes S820; when it is determined that the second preset scene does not exist in the second video, the electronic device does not execute S820.
[0340] Exemplarily, the user can set the second preset scene according to his or her needs. For example, the user can set the scene where objects (including animals) whose sound intensity (actively or passively) is easily affected by the surrounding environment are located in nature as the second preset scene.
[0341] In some embodiments, the second preset scene includes, but is not limited to, a fireworks blooming scene, a firecracker setting off scene, etc. At this time, the second preset scene is a dynamic preset scene.
[0342] In other embodiments, the second preset scene includes, but is not limited to, a fireworks scene, a firecracker scene, etc. At this time, the second preset scene is a static preset scene.
[0343] When the second preset scene exists in the second video, the second target audio is related to the second preset scene.
[0344] Exemplarily, the second target audio is real audio related to the second preset scene. In other words, it is real audio generated by the target object in the real scene corresponding to the second preset scene. For the description of the target object, please refer to the relevant description below, which will not be repeated here.
[0345] Exemplarily, the trigger condition of S830 may be: responding to a first operation of a first control on a first interface. That is, after detecting a first operation of a user on a first control on the first interface, determining whether the second video has a second preset scene. The first interface is an interface for acquiring the second video.
[0346] For example, Figure 6 As shown in (a), the first interface is a preview interface 400, the first control is an AI AUDIO control 403, and the first operation is a click operation.
[0347] Below, S830 is described in detail by taking method A, method B and method C as examples.
[0348] Method A, determining whether a second preset scene exists in the second video according to the content of the second video.
[0349] Exemplarily, the electronic device may include a second preset scene judgment model, and the electronic device inputs the second video into the second preset scene judgment model. If the second preset scene exists in the second video, the second preset scene judgment model outputs a result that the second preset scene exists in the second video. If the second preset scene does not exist in the second video, the second preset scene judgment model outputs a result that the second preset scene does not exist in the second video. The second preset scene judgment model is a model established based on the second preset scene.
[0350] Method B, judging whether the second preset scene exists in the second video according to the content of the third audio.
[0351] Exemplarily, the electronic device can determine whether the third audio is audio of a target type based on the content of the third audio. If the third audio is audio of the target type, then the second preset scene exists in the second video; if the third audio is not audio of the target type, then the second preset scene does not exist in the second video.
[0352] For example, the electronic device includes an audio recognition model, and the electronic device inputs the third audio into the audio recognition model, and the audio recognition model outputs what types of audio the third audio includes. Furthermore, if the third audio includes noise-type audio or target-type audio, it is considered that the second preset scene exists in the second video. Among them, the audio recognition model is a model established based on multiple types of audio. The target type of audio is related to the second preset scene. For example, the second preset scene is a fireworks scene, and the target type of audio includes audio of fireworks. For another example, the second preset scene is a firecracker scene or firecrackers, and the target type of audio includes audio of firecrackers.
[0353] Method C, based on the content of the second video and the content of the third audio, determines whether the second preset scene exists in the second video. At this time, method C is a combination of method A and method B, and when both method A and method B determine that the second preset scene exists in the second video, it is determined that the second preset scene exists in the second video; otherwise, it is determined that the second preset scene does not exist in the second video. For the specific process, please refer to the corresponding description of method A and method B, which will not be described in detail here. Optionally, after S830, if the second video is a preview video or a video being recorded, the electronic device can also enter the shooting mode corresponding to the second preset scene.
[0354] Optionally, the electronic device may further display a second prompt message on the interface displaying the second video, where the second prompt message is used to prompt the user to enter a shooting mode corresponding to a second preset scene.
[0355] For example, Figure 6 As shown in (b) in FIG. 8 , the first prompt information may be icon 404 .
[0356] Alternatively, if Fig.11 As shown, between S810 and S830, method 800 may further include S840, which will be described in detail below.
[0357] S840: Determine whether the second video satisfies a second condition according to shooting parameters of the second video.
[0358] Specifically, when it is determined that the second video satisfies the second condition, execute S830 and steps after S830; when it is determined that the second video does not satisfy the second condition, terminate execution of S830 and steps after S830.
[0359] If there are multiple second preset scenes in the preset scene library, then the electronic device must execute S830 for each second preset scene. At this time, if S840 is executed before S830, and it is determined in S840 that the second video meets the second condition, the electronic device believes that there is a high probability that the second preset scene exists in the second video, so that the electronic device can speed up the frequency of executing S830, thereby reducing the power consumption of the electronic device. If S840 is executed before S830, and it is determined in S840 that the second video does not meet the second condition, the electronic device believes that there is a high probability that the second preset scene does not exist in the second video, so that the electronic device still executes S830 at a normal frequency.
[0360] Exemplarily, the shooting parameters may include shooting focal length, shooting range, proportion of the object, etc. The second condition includes: the recording focal length of the second video becomes smaller, the shooting range of the second video changes, the proportion of the object is greater than or equal to the fourth threshold, etc.
[0361] The object can be understood as any object in the second video, for example, fireworks, firecrackers, blue sky, white clouds, buildings, etc.
[0362] When the shooting parameter includes the recording focal length, the second condition includes that the recording focal length of the second video becomes smaller. Thus, S840 includes: when it is determined that the recording focal length of the second video becomes smaller, determining that the second video has a second preset scene. At this time, it can be considered that in the process of acquiring the second video, in order to shoot distant objects more clearly, there is a situation where the shooting picture is zoomed in.
[0363] Exemplarily, if the device for acquiring the second video is the executor of method 800, i.e., an electronic device, and the second video is a preview video or a video being recorded, at this time, the focal length change of the camera on the electronic device can be used to determine whether the recording focal length of the second video becomes smaller.
[0364] When the shooting parameter includes a shooting range, the second condition includes that the shooting range of the second video changes. Thus, S840 includes: When it is determined that the shooting range of the second video changes, it is determined that the second video has a second preset scene. At this time, it can be considered that in the process of acquiring the second video, in order to be able to capture a desired scene, there is a situation where the shooting range is adjusted.
[0365] Exemplarily, if the device for acquiring the second video is the executor of method 800, i.e., an electronic device, and the second video is a preview video or a video being recorded, at this time, a sensor on the electronic device (such as a gyroscope sensor) can be used to determine whether the posture of the electronic device (such as whether there is a rotation or pitch posture) has changed, thereby determining whether the shooting range of the second video has changed.
[0366] When the shooting parameter includes the proportion of the object, the second condition includes that the proportion of the object is greater than or equal to the fourth threshold, etc. Thus, S840 includes: when the proportion of the object is greater than or equal to the fourth threshold, determining that the second video meets the second condition.
[0367] The embodiment of the present application does not limit the specific value of the fourth threshold. For example, the fourth threshold may be greater than or equal to 10%.
[0368] Alternatively, if Fig.13 As shown, after S810, the method 800 may further include S850, and the execution order between S850 and S830 is not limited in this application. S850 is described in detail below.
[0369] S850: Determine whether there is an object state change event for the target object in the second video.
[0370] Specifically, when it is determined that there is an object state change event for the target object in the second video, the steps after S850 are executed; when it is determined whether there is no object state change event for the target object in the second video, the steps after S850 are terminated.
[0371] Exemplarily, the states of the same object in multiple frames of images in the second video may be compared to determine whether there is an object state change event in the second video.
[0372] For example, if the second preset scene is a scene of fireworks blooming, then when fireworks are blooming in multiple frames of images in the second video, it can be considered that there is an object state change event in the second video.
[0373] For another example, if the first preset scene is a firecracker setting scene, then when comparing multiple frames of images in the second video to show that firecrackers are being set off, it can be considered that an object state change event exists in the second video.
[0374] The target object is related to the second preset scene.
[0375] For example, examples between the second preset scene and the target object are shown in Table 3.
[0376] Table 3
[0377] Second preset scene Target Fireworks fireworks Fireworks Firecrackers
[0378] The embodiment of the present application does not limit the specific value of the third threshold. For example, the third threshold may be 50%.
[0379] Optionally, in some embodiments, Fig.13 As shown, after S830, method 800 further includes S860 and S870, which are described in detail below.
[0380] S860: Acquire a second ambient audio and a second target audio from the third audio according to a second preset scenario.
[0381] Specifically, the third audio may be divided into tracks according to the second preset scene to obtain the second ambient audio and the second target audio.
[0382] The embodiment of the present application does not limit the method of dividing the third audio track.
[0383] In one example, the third audio may be divided into tracks by a neural network model, wherein the neural network model may be obtained by training the audio corresponding to the second preset scene based on the principle of deep learning.
[0384] For example, if the second preset scene is a fireworks scene or a fireworks scene, the third audio can be split into fireworks audio and other audio tracks through the first neural network model. The first neural network model is trained based on the differences (such as features in the time domain, frequency domain, and spatial domain) between the sound of fireworks and other audio in a large number of fireworks scenes or fireworks scenes. Here, the fireworks audio can be understood as the second target audio, and the other audio can be understood as the second ambient audio.
[0385] For another example, if the second preset scene is a firecracker setting scene or a firecracker scene, the third audio can be divided into firecracker setting audio and other audio through the second neural network model. The second neural network model is trained based on the difference (such as features in the time domain, frequency domain, and spatial domain) between the sound of firecracker setting and other audio in the firecracker setting scene or the firecracker scene. Here, the firecracker setting audio can be understood as the second target audio, and the other audio can be understood as the second environmental audio.
[0386] In another example, the third audio can be divided into tracks by a conventional algorithm such as a probability model. For example, a person can establish a probability model based on the features of multiple audios and his / her own experience. In this way, the third audio can be divided into multiple audios according to the probability model.
[0387] S870: Obtain fourth audio according to the second ambient audio and the second target audio.
[0388] The content of the fourth audio is the same as that of the third audio, and the signal-to-noise ratio of the fourth audio is greater than the signal-to-noise ratio of the third audio.
[0389] Exemplarily, the fourth audio may be obtained by adjusting the gain between the second ambient audio and the second target audio to increase the signal-to-noise ratio of the third audio.
[0390] The embodiment of the present application does not limit the manner of adjusting the gain between the second ambient audio and the second target audio.
[0391] In one example, the intensity of the second target audio may be increased while the intensity of the second ambient audio remains unchanged. Alternatively, the intensity of the second target audio may be maintained unchanged while the intensity of the second ambient audio is reduced. Alternatively, the intensity of the second target audio may be increased while the intensity of the second ambient audio is reduced.
[0392] Thus, in this example, the fourth audio includes the third ambient audio and the third target audio, the third ambient audio and the second ambient audio have the same content, the third target audio and the second target audio have the same content, and the ratio of the intensity of the third target audio to the intensity of the third ambient audio is greater than the ratio of the intensity of the second target audio to the intensity of the second ambient audio. That is, the signal-to-noise ratio of the fourth audio is greater than the signal-to-noise ratio of the third audio, and the fourth audio and the third audio have the same content except for the different signal-to-noise ratios.
[0393] When two audios with the same audio content are played, the same sound from the same object can be heard. For example, when the third audio is played, the sound of fireworks can be vaguely heard. When the fourth audio is played, the sound of fireworks can be clearly heard. In another example, the second ambient audio is removed from the third audio to obtain the fourth audio.
[0394] Thus, in this example, the fourth audio includes only the second target audio but does not include the second ambient audio.
[0395] Optionally, in some embodiments, the adaptive adjustment model may also obtain the fourth audio based on at least one of the following: the distance between the target object in the second video and the electronic device, the recording focal length of the second video, and the proportion of the target object in the second video. The electronic device is a device that records the second video.
[0396] For example, when the distance between the target object in the second video and the electronic device is closer, or the recording focal length of the second video is larger, or the proportion of the target object in the second video is larger, the signal-to-noise ratio of the fourth audio is larger.
[0397] S820, play the second video and the fourth audio corresponding to the second video.
[0398] Optionally, after S820, method 800 may further include: S880, in response to a second operation of a second control on the second interface, displaying at least one of the following on the second interface: a third control, a fourth control, a fifth control, and a sixth control.
[0399] The second interface is an interface for playing the second video. The third control is used to replace the fourth audio. The fourth control is used to synchronize the fourth audio with the second video. The fifth control is used to adjust the intensity of the fourth audio and / or the intensity of the third target audio in the fourth audio. The sixth control is used to not play the fourth audio, that is, to delete the fourth audio from the second video.
[0400] For example, Figure 7 As shown in (a) of FIG. 4 , the second interface is interface 405, and the second control is edit control 407. Figure 7 As shown in (b), the third control is the sound effect replacement control 408, the fourth control is the time alignment control 409, the fifth control is the sound effect rendering intensity control 410, and the sixth control is the sound effect deletion control 411.
[0401] For specific examples of how to replace the fourth audio through the third control, how to synchronize the fourth audio with the second video through the fourth control, how to adjust the intensity of the fourth audio and / or the intensity of the third target audio in the fourth audio through the fifth control, and how to delete the fourth audio from the second video through the sixth control, please refer to the above. Figure 7 The relevant description in will not be repeated here.
[0402] Through method 800, when the signal-to-noise ratio of the third audio corresponding to the second video is greater than or equal to the second threshold value and there is a second preset scene in the second video, the signal-to-noise ratio of the third audio can be improved to obtain the fourth audio and play it as the audio of the second video. Thus, when the effect of the sound related to the change of the state of the photographed subject is not good, the function of adaptively enhancing the sound related to the change of the state of the photographed subject is realized. At this time, since the signal-to-noise ratio of the fourth audio is greater than the signal-to-noise ratio of the third audio, the played fourth audio can well reflect the state of the photographed subject, so that the user has a stronger sense of immersion when watching the second video, which helps to improve the user experience.
[0403] According to method 700 and method 800, the electronic device obtains a video and the audio corresponding to the video, processes the audio corresponding to the video in different ways according to the situation of the audio corresponding to the video, and plays the processed audio and video.
[0404] For example, if the audio corresponding to the video only includes the first target audio related to the target object in the first preset scene, the intensity of the first audio is less than the first threshold, and the first preset scene exists in the video, the virtual audio related to the target object in the first preset scene can be added, and the virtual audio related to the target object in the first preset scene can be used as the audio of the video and played. At this time, it can be considered that the function of virtual sound effect rendering is realized.
[0405] For example, if the audio corresponding to the video includes the first ambient audio and the first target audio related to the target object in the first preset scene, the signal-to-noise ratio of the first audio is less than the second threshold, and the first preset scene exists in the video, virtual audio related to the target object in the first preset scene can be added on the basis of the first ambient audio, and the first ambient audio and the virtual audio related to the target object in the first preset scene can be used as the audio of the video and played, and the signal-to-noise ratio of the second audio is greater than the signal-to-noise ratio of the first audio. At this time, it can be considered that the function of virtual sound effect rendering is realized.
[0406] For example, if the signal-to-noise ratio of the audio corresponding to the video is greater than or equal to the second threshold and there is a second preset scene in the video, the signal-to-noise ratio of the audio can be increased, and the audio with the enhanced signal-to-noise ratio is used as the audio of the video and played. In this case, it can be considered that the function of enhancing sound is achieved.
[0407] Fig.14 A schematic flowchart of another example of a method 900 for video playback provided in an embodiment of the present application.
[0408] like Fig.14 As shown, the method 900 includes:
[0409] S910, the electronic device displays the interface of the third video, and plays the audio corresponding to the third video.
[0410] The recording mode of the third video is a slow motion recording mode or a fast motion recording mode.
[0411] For example, when recording a video in the normal recording mode, images are collected at a rate of P images per second, and the video is played at a rate of P images per second. At this time, if the slow-down rate in the slow-motion recording mode is D, then when recording the third video in the slow-motion recording mode, images need to be collected at a rate of D×P images per second, and the third video is played at a rate of P images per second. In this way, the playback time of the video recorded in the slow-motion recording mode is D times the playback time of the video recorded in the normal recording mode.
[0412] For example, when recording a video in normal recording mode, images are collected at a rate of P images per second, and the video is also played at a rate of P images per second. At this time, if the zoom rate in fast motion recording mode is F, then when recording a video in fast motion recording mode, images need to be collected at a rate of P images per second, and (F-1) images need to be discarded every other image (a total of P(1-1 / F) images are discarded), and the remaining P / F images are played at a rate of P images per second. In this way, the playback time of the video recorded in fast motion recording mode is 1 / F times the playback time of the video recorded in normal recording mode.
[0413] In one example, in the slow motion recording mode or the fast motion recording mode, the audio of the third video is obtained based on the speed-changing but not-invariant-pitch processing method. At this time, the audio of the third video is the speed-changing but not-invariant-pitch audio.
[0414] In another example, in the slow motion recording mode or the fast motion recording mode, the audio of the third video is obtained based on the speed-changing and pitch-changing processing method. At this time, the audio of the third video is the speed-changing and pitch-changing audio.
[0415] Optionally, a switch may also be displayed on the interface of the electronic device displaying the third video.
[0416] In some embodiments, when the switch is in the on state, the switch is used to process the audio of the third video using a variable speed but not constant pitch processing method; when the switch is in the off state, the switch is used to process the audio of the third video using a variable speed but not constant pitch processing method.
[0417] In one example, when recording the third video, the switch is in the off state by default. Thus, if the user wants to process the audio of the third video in a speed-changing but pitch-invariant processing mode, the user can turn the switch on. Figure 8 As shown in (a) in FIG. 1 , the switch may be switch 504. At this time, switch 504 is in a closed state.
[0418] In another example, when recording the third video, the switch is in the on state by default. Thus, if the user wants to process the audio of the third video in a variable speed and variable pitch processing manner, the user can turn the switch off.
[0419] In other embodiments, when the switch is in the on state, the switch is used to process the audio of the third video using a variable speed and variable pitch processing method; when the switch is in the off state, the switch is used to process the audio of the third video using a variable speed and non-variable pitch processing method.
[0420] In one example, when recording the third video, the switch is in the off state by default. Thus, if the user wants to process the audio of the third video in a variable speed and variable pitch processing manner, the user can turn the switch on.
[0421] In another example, when recording the third video, the switch is turned on by default. Thus, if the user wants to process the audio of the third video in a speed-changing but pitch-invariant processing mode, the user can turn the switch off.
[0422] It should be understood that if the recording mode of the third video is a slow-motion recording mode, then the speed change described above refers to slowing down the playback rate, and the pitch change described above refers to lowering the pitch.
[0423] If the recording mode of the third video is the fast motion recording mode, then the speed change mentioned above is to increase the playback rate, and the pitch change mentioned above is to increase the pitch.
[0424] The following is an explanation of the processing procedures of speed change without changing pitch, speed change without changing pitch, and changing pitch without changing speed for the audio corresponding to the third video involved in method 900.
[0425] It should be noted that the speed-changing and pitch-changing processing, speed-changing and pitch-changing processing, and pitch-changing and speed-changing processing methods can be used not only for processing real audio, but also for processing virtual audio. In addition, when the speed-changing and pitch-changing processing, speed-changing and pitch-changing processing, and pitch-changing and speed-changing processing methods are used for processing virtual audio, the adjustment multiple of the pitch of the virtual audio is the adjustment multiple relative to the pitch of the original virtual audio. Among them, the pitch of the original virtual audio is not the pitch of the virtual audio in the original audio, but the audio that matches the motion law of the target object in the original video.
[0426] (1) Speed-changing but not pitch-changing processing: This can be achieved through the speed-changing but not pitch-changing algorithm.
[0427] Exemplarily, the speed-changing but not pitch-changing algorithm may include a time domain method, a frequency domain method, a parametric method, etc. For example, the time domain method may be a cut-and-paste method, a synchronous waveform superposition method, a fixed synchronous waveform superposition method, a time domain pitch synchronization superposition method, a waveform similarity superposition method, etc. The frequency domain method may be a least-square error estimation method based on the modified short-time Fourier transform magnitude (LSEE-MSTFTM). The parametric method may be a phase vocoder, a sine model method, etc.
[0428] When the third video is recorded in the slow motion recording mode, and the speed-changing pitch-invariant algorithm realizes the speed-down without pitch-invariant function, the principle of the algorithm is: the audio signal is divided into a number of continuous non-overlapping frames, and then some of the voice frames are repeatedly played to achieve the slow-down playback of the audio signal. Exemplarily, the number of times the voice frame is repeatedly played can be the slow-down multiple in the slow motion recording mode. For example, if the slow-down multiple is m times, and the original audio includes n voice frames, then each voice frame is repeatedly played m times, so that the duration of the final audio signal is m times the duration of the audio signal corresponding to the video recorded in the normal recording mode, and the tone of the final audio signal is the same as the tone of the audio signal corresponding to the video recorded in the normal recording mode. In this way, the playback duration of the audio corresponding to the third video recorded in the slow motion recording mode is m times the playback duration of the audio signal corresponding to the video recorded in the normal recording mode, and the tone of the audio corresponding to the third video recorded in the slow motion recording mode is the same as the tone of the audio corresponding to the video recorded in the normal recording mode.
[0429] like Fig.15 The audio shown in (a) is the audio signal corresponding to the video recorded in the normal recording mode, and the audio signal includes four voice frames (the first frame to the fourth frame). If the user uses the slow motion mode (slowing down by 2×) to shoot the third video, then Fig.15 Each of the four speech frames in the audio signal shown in (a) is repeated twice, and the following is obtained: Fig.15 The audio signal shown in (b) in FIG. Fig.15 The playing time of the audio signal shown in (b) is as follows Fig.15 The playback time of the audio signal shown in (a) is twice as long as that of Fig.15 The pitch of the audio signal shown in (b) and Fig.15 The pitch of the audio signal shown in (a) is the same.
[0430] When the third video is recorded in the fast-motion recording mode, the speed-changing pitch-invariant algorithm realizes the acceleration-invariant pitch function. The principle of the algorithm is: the audio signal is divided into a number of continuous non-overlapping frames, and then some of the voice frames are discarded and the remaining voice frames are played to achieve the fast-playing of the audio signal. Exemplarily, the number of times the voice frame is repeatedly played can be the slow-down multiple in the slow-motion recording mode. For example, if the speed-up multiple is p times, and the original audio includes q voice frames, then (p-1) voice frames can be discarded every other voice frame (a total of q (1-1 / p) images are discarded), and the remaining q / p voice frames are played at a uniform playback rate of q voice frames per second, so that the playback time of the remaining q / p voice frames is 1 / p times the playback time of the audio signal corresponding to the video recorded in the normal recording mode, and the pitch of the audio signal finally obtained is the same as the pitch of the audio signal corresponding to the video recorded in the normal recording mode. In this way, the playback duration of the audio corresponding to the third video recorded in the fast motion recording mode is 1 / p times the duration of the audio signal corresponding to the video recorded in the normal recording mode, and the tone of the audio corresponding to the third video recorded in the fast motion recording mode is the same as the tone of the audio corresponding to the video recorded in the normal recording mode.
[0431] If the user uses the fast motion mode (speed-up factor is 2×) to shoot the third video, then Fig.15 The second and fourth frames of the four speech frames in the original audio shown in (a) are discarded, and the first and third frames are played, and the following is obtained: Fig.15 The audio signal shown in (c) in FIG. Fig.15 The playing time of the audio signal shown in (c) is as follows: Fig.15 1 / 2 times the playback time of the audio signal shown in (a) in FIG. Fig.15 The pitch of the audio signal shown in (c) and Fig.15 The pitch of the audio signal shown in (a) is the same.
[0432] (2) Speed-changing and pitch-changing processing: This can be achieved through speed-changing and pitch-changing algorithms.
[0433] Exemplarily, the speed change and modulation algorithm may include a time domain method, a frequency domain method, a parameter method, etc. For example, the time domain method may be a resampling method, the frequency domain method may be based on LSEE-MSTFTM, the parameter method may be a sine model method, etc.
[0434] For example, when the speed-changing pitch-changing algorithm is a time domain method, the speed-changing pitch-changing algorithm can be divided into a speed-down pitch-changing algorithm and an acceleration pitch-up algorithm. Among them, the speed-down pitch-changing algorithm is mainly used in the slow motion recording mode, and the acceleration pitch-up algorithm is mainly used in the fast motion recording mode.
[0435] (a) Speed reduction and downscaling algorithm
[0436] Assume that the resampling factor is the upsampling factor P, and the upsampling process is: interpolate (P-1) sampling points between two adjacent points of the original audio signal (the audio signal of the video recorded in normal recording mode). Because in the digital signal processing, the interpolation in the time domain is equivalent to stretching in the time domain, which corresponds to compression in the frequency domain. In this way, the period of the audio signal becomes P times the period of the original audio signal, the spectrum of the audio signal is compressed to 1 / P times the spectrum of the original audio signal, and the duration of the audio signal becomes P times the original audio signal. Furthermore, the final playback duration of the audio signal is P times the playback duration of the original audio signal, and the final pitch of the audio signal is 1 / P times the pitch of the original audio signal. This achieves the reduction in speed and pitch of the audio signal.
[0437] (b) Accelerated upscaling algorithm
[0438] Assume that the resampling factor is downsampling Q, and the downsampling process is: extract every (Q-1) points from the original audio signal (the audio signal of the video recorded in the normal recording mode). Since in the digital signal processing, the extraction in the time domain is equivalent to the compression in the time domain, which corresponds to the extension in the frequency domain, the period of the audio signal becomes 1 / Q times the period of the original audio signal, the spectrum of the audio signal is extended to the original Q times, and the duration of the audio signal becomes 1 / Q times the original audio signal. Then, the playback duration of the final audio signal is 1 / Q times the playback duration of the original audio signal, and the pitch of the final audio signal is Q times the pitch of the original audio signal. Then, the accelerated up-pitch of the audio signal is achieved.
[0439] (3) Pitch-changing without speed-changing processing: This can be achieved by combining speed-changing pitch-changing processing with speed-changing without pitch-changing processing.
[0440] For example, first, in the process of processing the original audio signal (the audio signal of the video recorded in the normal recording mode) with variable speed and variable pitch, the pitch of the original audio signal is reduced to 1 / P times of the original, and the playback rate of the original audio signal is changed to 1 / P times of the original, to obtain a first processed audio signal. Then, in the process of processing the first processed audio signal with variable speed and constant pitch, the playback rate of the first processed audio signal is changed to P times of the original, and the pitch of the first processed audio signal is kept unchanged, to obtain a second processed audio signal. In this way, the pitch of the second processed audio signal is 1 / P times of the pitch of the original audio signal, and the playback rate of the second processed audio signal is the playback rate of the original audio signal.
[0441] Exemplarily, the interface also includes a first control, and the first control is used to adjust the pitch of the audio corresponding to the third video.
[0442] For example, Figure 8As shown in (b) of FIG. 5 , the interface is a preview interface 500, and the first control is a tone adjustment bar 505. For another example, Fig. 9 As shown in (c), the interface is interface 601, and the first control is the tone adjustment bar 60311.
[0443] Optionally, in some embodiments, the interface further includes a second control. The method 900 further includes: S920, in response to the first operation acting on the second control, displaying the first control; S930, in response to the second operation acting on the first control, adjusting the pitch of the audio corresponding to the third video to a target pitch value.
[0444] For example, Figure 8 As shown in (a) of FIG. 5 , the second control is a switch 504. For another example, Fig. 9 As shown in (b) in FIG. 6 , the second control is the tone control 6031.
[0445] For example, the first operation is to long press Figure 8 The operation of the switch 504 shown in (a) is as follows: the second operation is sliding Figure 8 The operation of the pitch adjustment multiple in the pitch adjustment bar 505 shown in (b).
[0446] For another example, the first operation is clicking Fig. 9 The operation of the tone control 6031 shown in (b) is as follows: the second operation is sliding Fig. 9 The operation of the pitch adjustment multiple in the pitch adjustment bar 60311 shown in (c).
[0447] The target tone value is related to the second operation. For example, the target tone value is Figure 8 The pitch adjustment multiple in the pitch adjustment bar 505 shown in (b) in FIG. Fig. 9 As shown in (c) in FIG. 1 , the target pitch value is as follows after the second operation: Fig. 9 The pitch adjustment multiple in the pitch adjustment bar 60311 shown in (c).
[0448] Optionally, in some embodiments, the interface further includes a third control, and the third control is used to adjust the playback speed of the audio corresponding to the third video.
[0449] For example, the third control is as follows Figure 8 Control 503 shown in (a) in FIG.
[0450] Through method 900, in the slow motion recording mode or the fast motion recording mode, the pitch of the audio corresponding to the captured third video can be adjusted according to the user's needs, which helps to improve the user experience.
[0451] It should be noted that the video involved in the above methods 700, 800 and 900 includes frame-by-frame image data but does not include audio data. In this way, when playing the video, the user can only see frame-by-frame images but cannot hear the sound. In addition, the audio involved in the embodiments of the present application includes audio data but does not include image data. In this way, when the audio is played, the user can only hear the sound but cannot see the image.
[0452] Fig.16 A schematic flowchart of a video recording method 1300 provided in an embodiment of the present application.
[0453] The method 1300 may be applied to an electronic device. The electronic device may be Figure 1 or Figure 2 The electronic device shown, or the electronic device may be Figure 3 or Figure 4 The phone shown.
[0454] like Fig.16 As shown, the method 1300 includes S1310 to S1340, and S1310 to S1340 are described in detail below.
[0455] S1310, displaying a first recording interface of a video.
[0456] The first recording interface includes an audio control and a recording control. The audio control is used to turn on or off the video recording mode with virtual audio added. The recording control is used to start or end the recording of the video.
[0457] The first recording interface also includes a target object. For a description of the target object, reference may be made to the relevant description in S710 above, which will not be repeated here.
[0458] For example, the first recording interface can be as follows Figure 3 The preview interface 200 shown in (a) of FIG. The audio control may be as follows Figure 3 The control 203 shown in (a) in FIG. The recording control can be Figure 3 The black controls below the video shown in (a).
[0459] During the video recording process, because the real sound produced by the target object is small or the distance between the electronic device and the target object is large, the electronic device cannot pick up the sound of the target object within the shooting distance or the sound of the target object picked up by the electronic device is relatively small, so that when the user plays the first video, the sound of the object can hardly be heard in the audio corresponding to the first video. In this way, the user can turn on the smart audio recording function, add additional virtual audio during the video recording process, and use the virtual audio as the audio recorded by the video. That is, the electronic device executes S1320.
[0460] It should be noted that the virtual audio can also be called a virtual sound effect, which can be the audio generated by the simulated / simulated / rendered target object. In other words, the virtual audio is the audio that does not exist in the scene of the recorded video. The virtual audio and the real audio generated by the target object in the first recording interface can be the same or different, and this application does not limit this.
[0461] S1320: In response to a first operation on the audio control, use the virtual audio as audio for video recording.
[0462] The virtual audio is audio related to the target object in the first video. For example, examples of the virtual audio are shown in Table 2, and examples of the target object are shown in Table 1.
[0463] In one example, in response to the operation on the audio control, the electronic device can determine, based on the content of the recorded video, that the recorded video has a first preset scene, and use the virtual audio corresponding to the first preset scene as the audio of the video. For a solution on how to determine whether the recorded video has the first preset scene, reference can be made to the relevant description of S730 above, which will not be repeated here.
[0464] In another example, in response to an operation on an audio control, the electronic device may also display multiple virtual sound effect recording scene controls on the recording interface, so that the user can select a desired target virtual sound effect recording scene from the multiple virtual sound effect recording scene controls. In this way, after the electronic device detects the target virtual sound effect recording scene control clicked by the user, it uses the virtual sound effect corresponding to the target virtual sound effect recording scene control as the audio for the video recording.
[0465] Here, the virtual sound effect recording scene may be the first preset scene described above.
[0466] Exemplarily, the operation acting on the audio control may be an operation of clicking the audio control.
[0467] It should be noted that if the audio control is in the state of turning off the video recording mode with added virtual audio in S1310, when the user wants to turn on the intelligent audio recording function, the electronic device needs to execute S1320. If the audio control is in the state of turning on the video recording mode with added virtual audio in S1310, the virtual audio is directly used as the audio of the first video in S1320, and there is no need to detect whether there is an operation acting on the audio control.
[0468] S1330: In response to a second operation on the recording control, record the first video.
[0469] Exemplarily, the second operation may be an operation of clicking a recording control.
[0470] In some embodiments, during the process of recording the video, the virtual audio described in S1320 can also be played in real time.
[0471] Exemplarily, the intensity of the played virtual audio is related to at least one of the following: the distance between the target object in the first video and the electronic device, the recording focal length of the first video, and the proportion of the target object in the first video, where the electronic device is a device for recording the first video.
[0472] For example, when the distance between the target object and the electronic device is smaller, the intensity of the virtual audio played is greater. When the recording focal length of the first video is larger, the intensity of the virtual audio played is greater. When the proportion of the target object is larger, the intensity of the virtual audio played is greater.
[0473] Exemplarily, the virtual audio may also be played within a target time, wherein the target time is the time when the state of the target object changes.
[0474] For example, if the recorded video is about a scene of a bubble bursting, the virtual audio may be the audio of the bubble bursting. Then, the virtual audio corresponding to the bubble bursting may be played during the time of the bubble bursting. In this way, the virtual audio corresponding to the bubble bursting is played once each time the bubble bursts.
[0475] For another example, if the recorded video is about a scene of an insect flapping its wings, the virtual audio may be the audio of the insect flapping its wings. Then, the virtual audio corresponding to the insect flapping its wings may be played during the time when the insect flaps its wings. In this way, the virtual audio corresponding to the insect flapping its wings is played once the insect's wings vibrate once.
[0476] Optionally, in some embodiments, between S1320 and S1330, method 1300 further includes: S1370, displaying an icon on the first recording interface, the icon being used to indicate that the video recording mode is in the target preset scene. The target preset scene is related to the virtual audio. For example, the icon may be as follows: Figure 3 The target preset scene here can be understood as the first preset scene described in S1320.
[0477] S1340: In response to a third operation on the recording control, save the first video.
[0478] It should be understood that saving the first video can be understood as not only saving the first video and the virtual audio corresponding to the first video, but also saving the first video and the virtual audio corresponding to the first video as a corresponding relationship. In this way, when playing the first video, the virtual audio corresponding to the first video can be played synchronously.
[0479] S1350: Display a first interface to be played of the video, wherein the first interface to be played includes a play control.
[0480] For example, the video to be played interface can be as follows Figure 4 In the interface 205 shown in (a), the playback control may be as follows: Figure 4 Playback controls on the cup shown in (a).
[0481] S1360: In response to a fourth operation applied to the play control, play the first video.
[0482] When playing the first video, the audio of the first video is played at the same time. The audio of the first video includes virtual audio. For the relevant content of playing the virtual audio, please refer to the relevant description in S1330 above, which will not be repeated here.
[0483] Optionally, in some embodiments, the first interface to be played also includes an editing control. After S1350, method 1300 also includes: S1380, in response to an operation acting on the editing control, displaying at least one of the following on the first interface to be played: a sound effect replacement control, a time alignment control, a sound effect rendering intensity control, and a sound effect deletion control.
[0484] The sound effect replacement control is used to change the virtual audio. The time alignment control is used to synchronize the virtual audio and the first video. The sound effect rendering intensity control is used to adjust the intensity of the virtual audio. The sound effect deletion control is used to delete the virtual audio from the sound effect corresponding to the first video.
[0485] For example, an edit control could be Figure 4 The editing control 207 shown in (a) in FIG. The sound effect replacement control can be as follows Figure 4 The sound effect replacement control 208 shown in (b) in FIG. The time alignment control can be as follows Figure 4 The time alignment control 209 shown in (b) of FIG. 10 is shown in FIG. 11 . The sound effect rendering intensity control time can be as follows: Figure 4 The sound effect rendering intensity control 210 shown in (b) of FIG. The sound effect removal control can be as follows: Figure 4 The sound effect deletion control 211 shown in (b) in FIG.
[0486] For information on how to adjust virtual audio through sound effect replacement controls, time alignment controls, sound effect rendering intensity controls, and sound effect deletion controls, please refer to the above article. Figure 4 The relevant description in will not be repeated here.
[0487] Optionally, in some embodiments, if the user does not want to turn on the smart audio recording function, the method 1300 further includes S1390 to S1430. S1390 to S1430 are described in detail below.
[0488] S1390, displaying a second recording interface of the video, the second recording interface including an audio control and a recording control, and the second recording interface including a target object.
[0489] For the relevant descriptions about audio controls, recording controls, and target objects, please refer to the relevant descriptions in S1310 above, which will not be repeated here.
[0490] S1400, in response to a fifth operation applied to the recording control, recording a second video.
[0491] The audio control is not selected, that is, the audio control is in a state of turning off the video recording mode for adding virtual audio.
[0492] S1410, in response to a sixth operation on the recording control, saving the second video.
[0493] S1420, displaying a second interface to be played, where the second interface to be played includes a second play control.
[0494] S1430: In response to a seventh operation on the second playback control, play the second video.
[0495] When playing the second video, the audio of the second video does not include the virtual audio, or the audio of the second video is inconsistent with the virtual audio.
[0496] In one example, the audio of the second video may include: real audio, such as ambient audio, picked up by the electronic device during recording of the second video. In another example, the audio of the second video may not include any audio.
[0497] In method 1300, during the process of recording a video, because the real sound generated by the target object is small or the distance between the electronic device and the target object is large, the electronic device cannot pick up the sound of the target object within the shooting distance or the sound of the target object picked up by the electronic device is relatively small, so that when the user plays the video, the sound of the target object can hardly be heard in the audio corresponding to the video. In this way, when the user turns on the intelligent audio recording function, during the video recording process, virtual audio related to the target object can be added to the video. Furthermore, when the video is played, the virtual audio can be played synchronously as the audio of the video. When the user still does not want to turn on the intelligent audio recording function, during the video recording process, there is no need to add additional virtual audio related to the target object to the video. Furthermore, when the video is played, the audio of the video played synchronously is no longer virtual audio, or the audio of the video played synchronously is no longer consistent with the virtual audio.
[0498] It should be noted that the video involved in the above method 1300 includes not only frame-by-frame image data but also audio data. In this way, when playing the video, the user can not only see frame-by-frame images but also hear the sound.
[0499] Next, combine Figures 17 to 20 , describe the device provided in the embodiments of the present application.
[0500] Fig.17 It is a schematic block diagram of the device provided in the embodiment of the present application.
[0501] For example, Fig.17 As shown, the device 1000 includes a processing unit 1010 and a playing unit 1020. The processing unit 1010 is used to perform data processing, such as obtaining a first video and a first audio corresponding to the first video. The playing unit 1020 is used to play the video and / or audio.
[0502] Specifically, the device 1000 can be used to execute the actions performed by the electronic device in the above method 700 or method 800. In this case, the device 1000 can be an electronic device or a component that can be configured in an electronic device, the processing unit 1010 is used to execute the processing-related operations of the electronic device in the above method 700 or method 800, and the playback unit 1020 is used to execute the playback-related operations of the electronic device in the above method 700 or method 800.
[0503] Optionally, in some embodiments, the device 1000 may further include a display unit 1030 for executing display-related operations of the electronic device in the above method 700 or method 800.
[0504] Optionally, in some embodiments, the device 1000 may further include a transceiver unit, which may communicate with the outside, and the transceiver unit may also be referred to as a communication interface or a communication unit.
[0505] Optionally, in some embodiments, the device 1000 may further include a storage unit, which may be used to store instructions and / or data, and the processing unit 1010 may read the instructions and / or data in the storage unit.
[0506] Fig.18 It is a schematic block diagram of another device provided in an embodiment of the present application.
[0507] For example, Fig.18 As shown, the device 1100 includes a display unit 1110 and a playback unit 1120 , wherein the display unit 1110 is used for video display, and the playback unit 1120 is used for audio playback.
[0508] Specifically, the device 1100 can be used to execute the actions performed by the electronic device in the above method 900. In this case, the device 1100 can be an electronic device or a component that can be configured in an electronic device. The display unit 1110 is used to execute display-related operations of the electronic device in the above method 900, and the playback unit 1120 is used to execute playback-related operations of the electronic device in the above method 900.
[0509] Optionally, in some embodiments, the device 1100 may further include a processing unit for executing operations related to the processing of the electronic device in the above method 900.
[0510] Optionally, in some embodiments, the device 1100 may further include a transceiver unit, which may communicate with the outside, and the transceiver unit may also be referred to as a communication interface or a communication unit.
[0511] Optionally, in some embodiments, the device 1100 may further include a storage unit, which may be used to store instructions and / or data, and the processing unit 1110 may read the instructions and / or data in the storage unit.
[0512] Fig.19 It is a schematic block diagram of another device provided in an embodiment of the present application.
[0513] For example, Fig.19 As shown, the device 1500 includes a display unit 1510, a processing unit 1520, a recording unit 1530, a storage unit 1540 and a playback unit 1550. The display unit 1510 is used for video display. The processing unit 1520 is used for data processing, such as using virtual audio as the audio of the first video. The recording unit 1530 is used to record the video. The storage unit 1540 is used to save the video. The playback unit 1550 is used to play the video.
[0514] Specifically, the device 1500 can be used to execute the actions performed by the electronic device in the above method 1300. In this case, the device 1500 can be an electronic device or a component that can be configured in an electronic device. The display unit 1510 is used to execute display-related operations of the electronic device in the above method 1300. The processing unit 1520 is used to execute processing-related operations of the electronic device in the above method 1300. The recording unit 1530 is used to execute recording-related operations of the electronic device in the above method 1300. The storage unit 1540 is used to execute storage-related operations of the electronic device in the above method 1300. The playback unit 1550 is used to execute playback-related operations of the electronic device in the above method 1300.
[0515] Optionally, in some embodiments, the device 1500 may further include a transceiver unit, which may communicate with the outside and may also be referred to as a communication interface or a communication unit.
[0516] Fig. 20 A schematic structural diagram of a device 1200 provided in an embodiment of the present application is shown.
[0517] like Fig. 20 As shown, the device 1200 includes: one or more processors 1210, one or more memories 1220, and the one or more memories 1220 store one or more programs, and the one or more programs include instructions. When the instructions are executed by the one or more processors 1210, the device 1200 executes the technical solutions executed by the electronic device in the above 700, method 800, method 900, and method 1300.
[0518] The embodiment of the present application provides a program product, when the program product is run on an electronic device, the electronic device executes the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.
[0519] The embodiment of the present application provides a readable storage medium, which contains instructions. When the instructions are executed in an electronic device, the electronic device executes the technical solution of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0520] The embodiment of the present application provides a chip, which is used to execute instructions. When the chip is running, the technical solution in the above embodiment is executed. The implementation principle and technical effect are similar and will not be repeated here.
[0521] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0522] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0523] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0524] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0525] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0526] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0527] In the embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of an electronic device (such as a mobile phone) as an execution subject. In order to implement the functions in the method provided by the embodiments of the present application, the electronic device may include a hardware structure and / or a software module, and the functions are implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
[0528] As used in the above embodiments, the term "when..." or "after..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrase "when determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "when (the stated condition or event) is detected" or "in response to detecting (the stated condition or event)", depending on the context. In addition, in the above embodiments, relational terms such as first and second are used to distinguish one entity from another, without limiting any actual relationship and order between the entities.
[0529] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0530] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)). In the absence of conflict, the solutions of the above embodiments may be used in combination.
[0531] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for video recording, It is characterized in that The method comprises: Display a first recording interface of the video, the first recording interface including an audio control and a recording control, and the first recording interface including a target object; In response to a first operation on the audio control, using virtual audio as audio recorded in the video, wherein the virtual audio is audio related to the target object; In response to a second operation on the recording control, recording the first video; In response to a third operation on the recording control, saving the first video; Displaying a first interface to be played, wherein the first interface to be played includes a first play control; In response to a fourth operation applied to the first playback control, the first video is played, and when the first video is played, the audio of the first video includes the virtual audio.
2. The method according to claim 1, It is characterized in that The method comprises: Displaying a second recording interface of the video, the second recording interface including the audio control and the recording control, and the second recording interface including the target object; In response to a fifth operation on the recording control, recording a second video, wherein the audio control is not selected; In response to a sixth operation on the recording control, saving the second video; Displaying a second interface to be played, wherein the second interface to be played includes a second play control; In response to a seventh operation applied to the second playback control, the second video is played. When the second video is played, the audio of the second video does not include the virtual audio, or the audio of the second video is inconsistent with the virtual audio.
3. The method according to claim 1 or 2, It is characterized in that Playing the first video includes: The virtual audio is played within a target time, where the target time is the time when the state of the target object changes.
4. The method according to any one of claims 1 to 3, It is characterized in that The first to-be-played interface also includes an editing control, and the method includes: In response to an operation on the editing control, displaying at least one of the following on the first to-be-played interface: a sound effect replacement control, a time alignment control, a sound effect rendering intensity control, and a sound effect deletion control; Wherein, the sound effect replacement control is used to change the virtual audio; The time alignment control is used to synchronize the virtual audio and the first video; The sound effect rendering intensity control is used to adjust the intensity of the virtual audio; The sound effect deletion control is used to delete the virtual audio from the sound effects corresponding to the first video.
5. The method according to any one of claims 1 to 4, It is characterized in that The intensity of the virtual audio is related to at least one of the following: the distance between the target object and the electronic device in the first video, the recording focal length of the first video, and the proportion of the target object in the first video, and the electronic device is the device for recording the first video.
6. The method according to any one of claims 1 to 5, It is characterized in that Before recording the first video, the method includes: An icon is displayed on the first recording interface, where the icon is used to indicate a video recording mode corresponding to a target preset scene, where the target preset scene is related to the virtual audio.
7. A method for playing a video, It is characterized in that The method comprises: Obtain a first video and a first audio corresponding to the first video; Play the first video and a second audio that matches the first video; The first audio includes a first target audio, the intensity of the first audio is less than a first threshold, the second audio includes a virtual audio, the intensity of the virtual audio is greater than or equal to the first threshold; or, The first audio includes a first ambient audio and a first target audio, a signal-to-noise ratio of the first audio is less than a second threshold, the second audio includes the first ambient audio and a virtual audio, and a signal-to-noise ratio of the second audio is greater than a signal-to-noise ratio of the first audio; Both the first target audio and the virtual audio are audio related to a target object. The first target audio is audio existing in a scene where the first video is recorded, and the virtual audio is audio not existing in a scene where the first video is recorded.
8. The method according to claim 7, It is characterized in that Before playing the first video and the second audio matching the first video, the method further includes: According to the content of the first video, it is determined that the first video has a first preset scene, and the target object is related to the first preset scene.
9. The method according to claim 8, It is characterized in that Before determining, according to the content of the first video, that the first video has a first preset scene, the method further includes: Determining, according to shooting parameters of the first video, that the first video satisfies a first condition; The shooting parameters include at least one of the following: shooting focal length, shooting range, and object proportion, and the object is any object in the first video; The first condition includes at least one of the following: the shooting focal length of the first video becomes smaller, the shooting range of the first video changes, and the proportion of the object is greater than or equal to a third threshold.
10. The method according to claim 8 or 9, It is characterized in that The first interface includes a first control, the first interface is an interface for obtaining the first video, and the method further includes: In response to a first operation on the first control, it is determined whether the first video includes the first preset scene according to content of the first video.
11. The method according to any one of claims 7 to 10, It is characterized in that Before playing the virtual audio, the method further includes: Determine that an object state change event exists for the target object in the first video.
12. The method according to any one of claims 7 to 11, It is characterized in that Before playing the first video and the virtual audio, the method further includes: The virtual audio and the first video are synchronized.
13. The method according to claim 12, It is characterized in that The first video is a preview video or a video being recorded, and the synchronizing the virtual audio with the first video includes: Predicting the state of the target object in the first video according to the first video, and obtaining a first state change time of the target object; During the first state change time, the virtual audio is played.
14. The method according to claim 12, It is characterized in that The first video is a recorded video, and the synchronizing the virtual audio with the first video includes: Determine, based on the first video, a second state change time of the target object in the first video; During the second state change time, the virtual audio is played.
15. The method according to any one of claims 7 to 14, It is characterized in that The intensity of the virtual audio is related to at least one of the following: the distance between the target object and the electronic device in the first video, the recording focal length of the first video, and the proportion of the target object in the first video, and the electronic device is the device for recording the first video.
16. The method according to any one of claims 7 to 15, It is characterized in that The second interface includes a second control, and the second interface is an interface for playing the first video. After playing the virtual audio, the method further includes: In response to a second operation on the second control, displaying a third control, a fourth control, a fifth control, and a sixth control on the second interface; In response to a third operation acting on the third control, changing the virtual audio; and / or, In response to a fourth operation on the fourth control, synchronizing the virtual audio with the first video; and / or, In response to a fifth operation on the fifth control, adjusting the intensity of the virtual audio and / or the intensity of the second audio; and / or, In response to a sixth operation acting on the sixth control, the virtual audio is not played.
17. A method for playing a video, It is characterized in that The method comprises: Acquire a second video and a third audio corresponding to the second video, where a signal-to-noise ratio of the third audio is greater than or equal to a second threshold; The second video and a fourth audio corresponding to the second video are played, wherein content of the fourth audio is the same as content of the third audio, and a signal-to-noise ratio of the fourth audio is greater than a signal-to-noise ratio of the third audio.
18. The method according to claim 17, It is characterized in that Before playing the second video and the fourth audio corresponding to the second video, the method further includes: According to the content of the second video and / or the content of the third audio, it is determined that the second video has a second preset scene.
19. The method according to claim 18, It is characterized in that The determining, according to the content of the third audio, that the second video has a second preset scene includes: When the third audio includes a second target audio, it is determined that the second video exists in the second preset scene, wherein the second target audio is related to the second preset scene.
20. The method according to claim 18 or 19, It is characterized in that Before determining, according to the content of the second video and / or the content of the third audio, that the second video has a second preset scene, the method further includes: Determining, according to shooting parameters of the second video, that the second video satisfies a second condition; The shooting parameters include at least one of the following: shooting focal length, shooting range, and object proportion, and the object is any object in the second video; The second condition includes at least one of the following: the shooting focal length of the second video becomes smaller, the shooting range of the second video changes, and the proportion of the object is greater than or equal to a fourth threshold.
21. The method according to any one of claims 18 to 20, It is characterized in that The first interface includes a first control, the first interface is an interface for obtaining the second video, and the method further includes: In response to a first operation on the first control, it is determined whether the second video includes the second preset scene according to content of the second video and / or content of the third audio.
22. The method according to any one of claims 17 to 21, It is characterized in that Before playing the second video and the fourth audio corresponding to the second video, the method further includes: It is determined that an object state change event exists for a target object in the second video, and the target object is related to a second preset scene.
23. The method according to any one of claims 17 to 22, It is characterized in that The signal-to-noise ratio of the fourth audio is related to at least one of the following: the distance between the target object in the second video and the electronic device, the recording focal length of the second video, and the proportion of the target object in the second video, and the electronic device is a device for recording the second video.
24. The method according to any one of claims 17 to 23, It is characterized in that The second interface includes a second control, and the second interface is an interface for playing the second video. After playing the second video and the fourth audio corresponding to the second video, the method further includes: In response to a second operation on the second control, displaying a third control, a fourth control, a fifth control, and a sixth control on the second interface; In response to a third operation on the third control, changing the fourth audio; and / or, In response to a fourth operation on the fourth control, synchronizing the fourth audio with the second video; and / or, In response to a fifth operation acting on the fifth control, adjusting the intensity of the fourth audio and / or the intensity of a third target audio in the fourth audio, wherein the third target audio is associated with a second preset scene; and / or, In response to a sixth operation on the sixth control, the fourth audio is not played.
25. A method for playing a video, It is characterized in that The method comprises: Displaying an interface of a third video, and playing audio corresponding to the third video; Wherein, the recording mode of the third video is a slow motion recording mode or a fast motion recording mode; The interface includes a first control for adjusting the pitch of the audio.
26. The method according to claim 25, It is characterized in that The method further comprises: In response to a first operation on the first control, the pitch of the audio is adjusted to a target pitch value.
27. The method according to claim 25 or 26, It is characterized in that The interface also includes a switch. When the switch is in an on state, the audio corresponding to the third video is audio with variable speed but unchanged pitch.
28. The method according to claim 27, It is characterized in that In the slow motion recording mode or the fast motion recording mode, the switch is turned off by default.
29. An electronic device, It is characterized in that Comprising means for performing the method as claimed in any one of claims 1 to 28.
30. An electronic device, It is characterized in that include: one or more processors; one or more memories; and one or more programs, wherein the one or more programs are stored in the one or more memories, and the one or more programs include instructions, which, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1 to 28.
31. A readable storage medium, It is characterized in that The method comprises instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 28.
32. A chip, It is characterized in that The system comprises at least one processor and an interface circuit, wherein the interface circuit is used to provide program instructions or data to the at least one processor, and the at least one processor is used to execute the program instructions to implement the method according to any one of claims 1 to 28.
33. A program product, It is characterized in that The program product comprises instructions for executing the method of any one of claims 1 to 28.
Citation Information
Cited By
Video recording method, video playback method, and electronic device
EP4664900A1
Video recording method, video playback method, and electronic device
WO2024198881A1
