Video processing method and device, electronic equipment and medium

By automatically switching the audio application when the video playback progress reaches the target progress, the problem of cumbersome operation for users to change background music is solved, achieving the effect of simplifying operation and improving efficiency.

CN115914735BActive Publication Date: 2025-10-17NANJING VIVO SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211338566.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2025-10-17
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

Changing background music during video playback is cumbersome and time-consuming, requiring users to switch applications multiple times to obtain satisfactory audio.

Method used

When the video playback reaches the target progress, the electronic device automatically switches to the associated audio application to play the matching audio, simplifying the operation process.

Benefits of technology

This reduces the steps and time required for users to change audio during video playback, improving the convenience and efficiency of operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914735B_ABST
    Figure CN115914735B_ABST
Patent Text Reader

Abstract

The application discloses a video processing method and device, electronic equipment and medium, and belongs to the technical field of video processing. The method comprises the following steps: playing a first video in a playing interface of a first application; playing a video picture of the first video and playing a first audio in a second application in the case that the playing progress of the first video is a target playing progress; the target playing progress is associated with the second application; a second audio of the first video is associated with the first audio, and the playing progress corresponding to the second audio matches the target playing progress.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of video processing, and particularly relates to a video processing method and device, an electronic device and a medium. BACKGROUND

[0002] Generally, in the scenario that a user uses an electronic device to play a video in an application, if the user is not satisfied with a music version of a background music in the video, the user can first pause playing the video, then trigger the electronic device to open another application, and select another background music to play the background music that the user is satisfied with.

[0003] Since the user needs to perform multiple operations to enable the electronic device to switch the background music of different audio versions, in the process of playing the video, in order to obtain the audio that the user is satisfied with, the operation of the user is relatively cumbersome and time-consuming. SUMMARY

[0004] The embodiments of the present application aim to provide a video processing method and device and an electronic device, which can solve the problem that in the process of playing a video by an electronic device, in order to obtain the audio that the user is satisfied with, the operation of the user is cumbersome and time-consuming.

[0005] In a first aspect, the embodiments of the present application provide a video processing method, which comprises: playing a first video in a playing interface of a first application; in the case that a playing progress of the first video is a target playing progress, playing a video picture of the first video and playing a first audio in a second application; wherein the target playing progress is associated with the second application; a second audio of the first video is associated with the first audio, and a playing progress corresponding to the second audio matches the target playing progress.

[0006] In a second aspect, the embodiments of the present application provide a video processing device, which comprises: a playing module; wherein the playing module is configured to: play a first video in a playing interface of a first application; in the case that a playing progress of the first video is a target playing progress, play a video picture of the first video and play a first audio in a second application; wherein the target playing progress is associated with the second application; a second audio of the first video is associated with the first audio, and a playing progress corresponding to the second audio matches the target playing progress.

[0007] In a third aspect, the embodiments of the present application provide an electronic device, which comprises a processor and a memory, the memory stores programs or instructions that can be run on the processor, and the programs or instructions are executed by the processor to realize the steps of the method of the first aspect.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, the readable storage medium storing a program or instructions, the program or instructions being executed by a processor to implement steps of the method in the first aspect.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to run a program or instructions to implement steps of the method in the first aspect.

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

[0011] In the embodiment of the present application, the electronic device can play the first video in the playing interface of the first application, and play the video picture of the first video in the case where the playing progress of the first video is the target playing progress, so as to play the first audio in the second application, wherein the target playing progress is associated with the second application; the second audio of the first video is associated with the first audio, and the playing progress corresponding to the second audio matches the target playing progress. Since the electronic device can trigger the video picture of the first video to continue playing and play the first audio in the second application in the case where the playing progress of the first video played in the playing interface of the first application is the target playing progress, without the user performing multiple operations to switch audios in different applications, the operation steps of obtaining the audio satisfying the user in the process of the electronic device playing the video can be simplified, and the time consumption is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0012] Figure 1 is one of the schematic diagrams of the video processing method provided by the embodiment of the present application;

[0013] Figure 2 is one of the schematic diagrams of the interface of the mobile phone provided by the embodiment of the present application;

[0014] Figure 3 is the second of the schematic diagrams of the interface of the mobile phone provided by the embodiment of the present application;

[0015] Figure 4 is the structural schematic diagram of the video processing apparatus provided by the embodiment of the present application;

[0016] Figure 5 is the structural schematic diagram of the electronic device provided by the embodiment of the present application;

[0017] Figure 6 is the hardware structural schematic diagram of the electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION

[0018] With reference to the drawings, the technical solutions in the embodiments of the present application will be clearly and completely described below, obviously, the described embodiments are some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work belong to the protection scope of the present application.

[0019] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a category, not limited to the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in an "or" relationship.

[0020] The video processing method provided by the embodiments of the present application will be described in detail below in combination with the drawings and specific embodiments and application scenarios.

[0021] Generally, in the scenario where a user uses an electronic device to play a video in an application, if the user is not satisfied with a music version of a background music of the video, the user can first pause playing the video, then trigger the electronic device to open another application, and select another background music to play the background music that the user is satisfied with. However, the user needs to perform multiple operations to enable the electronic device to switch the background music of different audio versions, and therefore, in the process of playing the video, the operation of the user to obtain the audio that the user is satisfied with is relatively cumbersome and time-consuming.

[0022] The video processing method provided by the embodiments of the present application, the electronic device can play a first video in a playing interface of a first application, and play a video picture of the first video in a case where a playing progress of the first video is a target playing progress, so as to play a first audio in a second application, wherein the target playing progress is associated with the second application; a second audio of the first video is associated with the first audio, and a playing progress corresponding to the second audio matches the target playing progress. Since the electronic device can trigger to continue playing the video picture of the first video and play the first audio in the second application in the case where the playing progress of the first video played in the playing interface of the first application is the target playing progress, without the user performing multiple operations to switch the audio in different applications, the operation steps of the user to obtain the audio that the user is satisfied with in the process of the electronic device playing the video can be simplified, and the time consumption can be reduced.

[0023] The embodiment of the present application provides a video processing method, Figure 1 A flow chart of a video processing method provided by the embodiment of the present application is shown, and the method can be applied to an electronic device. Figure 1 As shown in the figure, the video processing method provided by the embodiment of the present application can include the following steps 201 and 202.

[0024] Step 201, the electronic device plays a first video in a playing interface of a first application.

[0025] Optionally, in the embodiment of the present application, in the case of displaying the interface of the first application, the electronic device can play the first video in the playing interface of the first application according to the click input of the user on the identification (for example, an icon) of the first video in the interface of the first application.

[0026] Further optionally, in the embodiment of the present application, the first application can be any one of the following: an instant chat application, a web page application, a video application and the like.

[0027] Specifically, the first video can be determined by the user through the click input.

[0028] Optionally, in the embodiment of the present application, the first video can be any one of the videos in the first application.

[0029] Step 202, the electronic device plays a video picture of the first video and plays a first audio in a second application in the case that the playing progress of the first video is a target playing progress.

[0030] The target playing progress is associated with the second application; a second audio of the first video is associated with the first audio, and the playing progress corresponding to the second audio matches the target playing progress.

[0031] Optionally, in the embodiment of the present application, the target playing progress can be a current playing progress of the first video.

[0032] Optionally, in the embodiment of the present application, the target playing progress can be pre-stored by the electronic device or can be set in advance according to the user demand.

[0033] Exemplarily, the second application can be different from the first application.

[0034] Optionally, in the embodiment of the present application, the second application can be any one of audio applications.

[0035] Further optionally, in the embodiment of the present application, the first audio can be determined according to the user input or can be pre-stored by the electronic device.

[0036] It should be noted that, in a case where the playing progress of the first video is the target playing progress, the electronic device continues to play the video picture of the first video and plays the first audio in the second application associated with the target playing progress.

[0037] The video processing method provided in the embodiments of the present application can play a first video in a playing interface of a first application, and in a case where a playing progress of the first video is a target playing progress, play a video picture of the first video, so as to play a first audio in a second application, wherein the target playing progress is associated with the second application; a second audio of the first video is associated with the first audio, and a playing progress corresponding to the second audio matches the target playing progress. In a case where the playing progress of the first video played in the playing interface of the first application is the target playing progress, the electronic device can trigger the video picture of the first video to continue to be played and the first audio in the second application to be played, without the user needing to perform multiple operations to switch audios in different applications, so that the operation steps of obtaining a satisfactory audio for the user in the process of the electronic device playing a video can be simplified and time consumption can be reduced.

[0038] Optionally, before the step 202, the video processing method provided in the embodiments of the present application can further include the following steps 301 to 303.

[0039] In step 301, the electronic device receives a first input of a user to the playing interface.

[0040] In a case where the "system setting" interface is displayed, the electronic device can start the "background music replacement" function according to a click input of the user to a "background music replacement" control in the "system setting" interface.

[0041] Optionally, in the embodiments of the present application, the electronic device can display at least one image frame of the first video in the playing interface of the first video and play the audio of the first video to play the first video in the playing interface.

[0042] Optionally, in the embodiments of the present application, the first input can be any one of the following: a press input, a click input of a preset number of times, a sliding input, a voice input, etc., which can be set according to actual needs.

[0043] The first input can include one input or multiple inputs.

[0044] In a case where the first input includes multiple inputs, the input types of each of the multiple inputs can be the same or different, and the multiple inputs can be continuous inputs.

[0045] It should be noted that the above-mentioned “continuous input” can be understood as: input where the time interval between adjacent inputs is less than or equal to a preset threshold, or input where there is no other input between adjacent inputs.

[0046] Step 302: The electronic device obtains a first audio based on the second audio of the first video in response to the first input.

[0047] The second audio is determined based on input parameters of the first input, and the music version of the first audio is different from the music version of the second audio.

[0048] Optionally, in an embodiment of the present application, the input parameters of the first input may specifically include at least one of the following: input position, input time, input trajectory, etc.

[0049] Optionally, in an embodiment of the present application, the electronic device may first determine the first playback progress and the second playback progress based on the input parameters of the first input, and then determine the audio in the first video whose corresponding playback progress is between the first playback progress and the second playback progress as the second audio.

[0050] In one possible implementation, the first input includes an input, and the electronic device can first determine a first target playback progress based on the input parameters of the first input, and then determine the playback progress of a preset time before the first target playback progress as the first playback progress, and determine the playback progress of a preset time after the first target playback progress as the second playback progress.

[0051] In a possible implementation, the first input includes multiple inputs, and the electronic device can determine the first playback progress and the second playback progress according to input parameters of the multiple inputs.

[0052] Optionally, in an embodiment of the present application, the music version of the first audio is different from the music version of the second audio.

[0053] It should be noted that the above-mentioned “different music versions” can be understood as: the name of the singer of the audio is different, or part of the melody of the audio is different, or part of the lyrics of the audio is different, etc.

[0054] Optionally, in an embodiment of the present application, after the electronic device determines the second audio, the electronic device may search for the second audio through a specific application, and obtain the first audio based on the search results.

[0055] The specific application may be an application determined according to input parameters of the first input (eg, the second application in the following embodiment), or a preset application.

[0056] If at least one search audio is obtained after searching for the second audio, the electronic device can display an identifier (e.g., a name, a link, etc.) of the at least one search audio, and download the first audio according to a click input of a user on the identifier of the first audio in the identifier of the at least one search audio, to obtain the first audio. If at least one search audio is not obtained, the electronic device can display a collection playlist, and download the first audio according to a click input of a user on the identifier of the first audio in the collection playlist, to obtain the first audio.

[0057] In step 303, the electronic device replaces at least part of the second audio with the first audio according to the first audio.

[0058] It can be understood that the electronic device can replace all of the second audio with the first audio, or can replace part of the second audio with the first audio.

[0059] Optionally, in the embodiment of the present application, the electronic device can replace all of the second audio with the first audio, or can replace part of the second audio with the first audio according to an input parameter input by the user.

[0060] Optionally, in the embodiment of the present application, after the electronic device replaces at least part of the second audio, the electronic device can obtain a sixth audio, so that the electronic device can synthesize other audio (i.e., audio other than the second audio) of the second video and the sixth audio to obtain a target audio.

[0061] The video processing method provided in the embodiment of the present application can simplify the operation steps of obtaining the audio satisfying the user and reduce the time consumption in the process of playing the video on the electronic device, because in the case that the electronic device plays the first video, the electronic device can obtain the first audio different from the music version of the second audio based on the second audio in the first video according to the first input of the user, and directly replace at least part of the second audio of the first video without the user performing multiple operations to obtain the audio satisfying the user.

[0062] The following will illustrate the steps of obtaining the first audio by the electronic device.

[0063] Optionally, in the embodiment of the present application, the first input includes a first sub-input and a second sub-input. The step 302 can be implemented by the following steps 302a and 302b.

[0064] In step 302a, the electronic device determines the second audio corresponding to the playing progress between the first playing progress and the second playing progress from the first video in response to the first sub-input.

[0065] Optionally, in the embodiments of the present application, the first play progress and the second play progress are determined according to an input parameter of the first sub-input.

[0066] Further optionally, in the embodiments of the present application, the first sub-input specifically can be a sliding input of a user on a progress bar control of the first video in the playing interface.

[0067] It can be understood that the first play progress and the second play progress are determined according to an input position of the first sub-input on the progress bar control of the first video.

[0068] In the embodiments of the present application, the progress bar control of the first video includes at least one node, and each node corresponds to a play progress, so that the electronic device can determine a corresponding node according to an input start position of the first sub-input, and determine a play progress corresponding to the node as the first play progress; and determine another corresponding node according to an input end position of the first sub-input, and determine another play progress corresponding to the node as the second play progress.

[0069] It should be noted that the “input start position” can be understood as a position where a finger of the user contacts the display screen of the electronic device when the first sub-input is performed. The “input end position” can be understood as a last position where the finger leaves the display screen when the first sub-input is ended.

[0070] It can be understood that the first play progress can be a start time of the second audio, and the second play progress can be an end time of the second audio.

[0071] Step 302b, the electronic device responds to the second sub-input, and searches the second audio through the second application to obtain the first audio.

[0072] In the embodiments of the present application, the first play progress and the second play progress are determined according to an input parameter of the first sub-input; and the second application is determined according to an input parameter of the second sub-input.

[0073] Further optionally, in the embodiments of the present application, the second application specifically can be a music application.

[0074] Further optionally, in the embodiments of the present application, the input parameter of the second sub-input specifically can be any of the following: an input type, an input trajectory, an input time length, and the like.

[0075] Further optionally, in embodiments of the present application, at least one association relationship (for example, N association relationships in the following embodiments) is pre-set in the electronic device, each association relationship is an association relationship between an input parameter and an application, so that the electronic device can determine an application (i.e., a second application) corresponding to the input parameter of the second sub-input by using the at least one association relationship, and start the second application, and search the second audio through the second application.

[0076] The at least one association relationship can be pre-set by a user, or obtained by the electronic device identifying at least one application, or downloaded from a server by the electronic device.

[0077] Further optionally, in embodiments of the present application, the electronic device can search the second audio through the second application, and obtain the first audio based on a search result.

[0078] It should be noted that the description of obtaining the first audio by the electronic device can refer to the specific description in the above embodiments, and the embodiments of the present application will not be repeated here.

[0079] Therefore, it can be seen that, since the electronic device can search the first audio in the second application according to the second audio in the first video, the user does not need to exit the playing interface of the current first video to search the first audio different from the music version of the second audio in another application, so that the electronic device can quickly find the first audio, thereby simplifying the operation of the user in the video processing process and reducing the time consumption.

[0080] Optionally, before the step 302b of "searching the second audio through the second application to obtain the first audio", the video processing method provided by embodiments of the present application can further include the following step 401.

[0081] Step 401, the electronic device determines a second application corresponding to the input parameter of the second sub-input according to N association relationships in response to the second sub-input.

[0082] Each of the N association relationships is an association relationship between an input parameter and an application, and N is a positive integer.

[0083] Further optionally, in embodiments of the present application, the N association relationships can be pre-set by a user, or obtained by the electronic device identifying at least one first application.

[0084] In the case that the N association relationships are set by the user in advance, when the electronic device displays the desktop, the user can first trigger at least one application identifier (for example, an application icon) in the desktop to be in an editable state, and then perform N inputs on the N application identifiers, the N inputs and the N application identifiers being in one-to-one correspondence, so that the electronic device can establish an association relationship according to each input and the application indicated by the application identifier corresponding to the input, to obtain the N association relationships.

[0085] In the case that the N association relationships are set by the user in advance, when the electronic device displays the desktop, the user can first trigger at least one application identifier (for example, an application icon) in the desktop to be in an editable state, and then perform N inputs on the N application identifiers, the N inputs and the N application identifiers being in one-to-one correspondence, so that the electronic device can establish an association relationship according to each input and the application indicated by the application identifier corresponding to the input, to obtain the N association relationships.

[0086] In this way, after obtaining the N association relationships, the electronic device can display the N application icons and the N input parameters respectively, and store the N association relationships in the electronic device according to the confirmation input of the user.

[0087] For example, as shown in FIG. 3, after obtaining the N association relationships (for example, association relationship 1 and association relationship 2), the electronic device can display the N application icons (for example, the application icon 31 of "music 1" and the application icon 32 of "music 2") and the N input parameters (for example, the input trajectory 33 of "S" and the input trajectory 34 of "K") respectively, and store the association relationship 1 (that is, the association relationship between the "music 1" application and the input trajectory 33 of "S") and the association relationship 2 (that is, the association relationship between the "music 2" application and the input trajectory 34 of "K") in the electronic device according to the confirmation input of the user. Figure 3

[0088] Further optionally, in the embodiment of the present application, the electronic device can determine one input parameter from the N input parameters in the N association relationships, which matches (for example, is the same as) the input parameter of the second sub-input, and determine the application corresponding to the one input parameter as the second application.

[0089] The process of identifying the application identifier by the electronic device to obtain the input parameter will be described below.

[0090] Optionally, in the embodiment of the present application, the input parameter described above includes an input trajectory. Specifically, before the step 401, the video processing method provided by the embodiment of the present application can further include the following steps 501 to 503.​

[0091] Step 501, in a case where the electronic device displays N application identifiers of N applications, the electronic device determines N text contents according to the N application identifiers.

[0092] The N application identifiers and the N applications are in one-to-one correspondence, and the N text contents and the N application identifiers are in one-to-one correspondence.

[0093] Further optionally, in the embodiments of the present application, in a case where the electronic device displays a desktop, a user can first trigger at least one application identifier (for example, an application icon) in the desktop to be in an editable state, and then perform selection input on the N application identifiers, so that the electronic device can display N application identifiers of N applications.

[0094] The N applications can each be a music application, and the N applications include the second application.

[0095] Further optionally, in the embodiments of the present application, the electronic device can perform image recognition on the N application identifiers to obtain the N text contents.

[0096] It should be noted that the description of image recognition can refer to the specific description in the related art, and the embodiments of the present application will not be repeated here.

[0097] Step 502, the electronic device determines N input tracks according to the N text contents.

[0098] The N input tracks and the N text contents are in one-to-one correspondence.

[0099] Further optionally, in the embodiments of the present application, for each text content in the N text contents, the electronic device can first generate a first track according to the text content, and then determine a second track matched with the first track from a plurality of second tracks pre-stored by the electronic device, to determine the second track as an input track, so as to determine the N input tracks.

[0100] Step 503, the electronic device establishes an association relationship according to each input track and a corresponding application, respectively, to obtain N association relationships.

[0101] It can be understood that each input track corresponds to a text content, each text content corresponds to an application identifier, and each application identifier corresponds to an application, that is, each input track corresponds to an application.

[0102] Therefore, the electronic device can determine N input tracks according to N application identifiers, and directly obtain N association relationships according to the N input tracks and the N applications corresponding to the N input tracks, without the user performing multiple operations, thereby simplifying the operation steps of the user in establishing the association relationship between the input track and the application, and reducing the time consumption.

[0103] Of course, the electronic device can directly collect or download the first audio according to the input of the user, without the user performing multiple operations, which will be specifically illustrated below.

[0104] Optionally, in the embodiment of the present application, the first input further includes a third sub-input. Specifically, after the step 302b, the video processing method provided by the embodiment of the present application can further include the following step 601.

[0105] Step 601, the electronic device performs a target operation in response to the third sub-input.

[0106] Further optionally, in the embodiment of the present application, the third sub-input can include any one of the following: gesture input, single-click input, double-click input, sliding input, pressing input, long-pressing input, and the like.

[0107] Specifically, the third sub-input can be a gesture input, and the input parameter of the gesture input is an input track.

[0108] Optionally, in the embodiment of the present application, the target operation includes at least one of the following: collecting the first audio to a collection playlist of the second application, and storing the first audio to a storage space corresponding to the second application.

[0109] Further optionally, in the embodiment of the present application, the input track of the third sub-input is different, and the corresponding target operation is also different.

[0110] For example, during the user watching the video, if the user hears that the music currently played is very good and wants to collect it to the "music 1" application, the user needs to input the pre-set input parameter through a gesture, for example, first input "S" to determine the "music 1" application, and then input The music can be collected to the "music 1" application. If the user wants to download the music to the "music 2" application, the user needs to input the pre-set input parameter through a gesture, for example, first input "K" to determine the "music 2" application, and then input "↓", and the music can be downloaded to the "music 2" application.

[0111] Therefore, the electronic device can directly determine the corresponding second application to perform the corresponding operation according to different input tracks of the user, so that the user can operate the second audio without exiting the current playing interface, thereby simplifying the operation steps of obtaining the satisfactory audio in the process of playing the video by the electronic device and reducing the time consumption.

[0112] Optionally, after the step 302b, the video processing method provided in the embodiment of the present application can further include the following steps 701-702.

[0113] Step 701: The electronic device acquires a target image frame.

[0114] The target image frame is an image frame corresponding to the third playing progress in the image frames of the first video.

[0115] Optionally, in the embodiment of the present application, the third playing progress is determined according to the input parameter of the second sub-input.

[0116] Further optionally, in the embodiment of the present application, the second sub-input further includes a drag input on the first video progress bar. The second sub-input is specifically used to determine the third playing progress through the drag input on the first video progress bar control.

[0117] Optionally, in the embodiment of the present application, the electronic device acquires the target image frame corresponding to the third playing progress.

[0118] Step 702: The electronic device sets the target image frame as a target cover picture.

[0119] Optionally, in the embodiment of the present application, the target cover picture is a cover picture when the first audio is played.

[0120] The third playing progress is determined according to the input parameter of the second sub-input.

[0121] Therefore, the electronic device can determine the cover picture of the first audio according to the user input, thereby facilitating the user to quickly determine the content of the first audio, and further improving the efficiency of the electronic device in processing the video.

[0122] The following will illustrate how the electronic device replaces at least part of the audio of the first audio with the second audio.

[0123] Optionally, before the step 303, the video processing method provided in the embodiment of the present application can further include the following steps 801-803, and the step 303 can be implemented by the following step 303a.

[0124] In step 801, the electronic device displays a progress bar control of the second audio.

[0125] In this embodiment, the electronic device can first open the specific application in the background, and then display the target window.

[0126] Further, in this embodiment, the target window includes an interface of the specific application.

[0127] Further, in this embodiment, the electronic device can display the target window in a suspended manner on the playing interface of the first video.

[0128] In this embodiment, the electronic device can display the target window in a suspended manner on a specific area of the playing interface.

[0129] Here, the specific area can be a preset area or an adjacent area of the input position of the first input.

[0130] It should be noted that the adjacent area of the input position of the first input can be understood as an area within a preset range of the input position of the first input.

[0131] Optionally, in this embodiment, the target window includes a progress bar control of the second audio.

[0132] The progress bar control of the second audio is used to determine the audio in the second audio that is to be replaced.

[0133] Further, in this embodiment, the target window can also include a playing control of the first audio, so that the electronic device can play the first audio according to a click input of the user on the playing control.

[0134] In step 802, the electronic device receives a second input of the user on the progress bar control of the second audio.

[0135] Further, in this embodiment, the second input can be a click input of the user on the progress bar control of the second audio. The second input can include one input or multiple inputs.

[0136] In step 803, the electronic device determines a third audio corresponding to a playing progress between a fourth playing progress and a fifth playing progress from the second audio in response to the second input.

[0137] The fourth playing progress and the fifth playing progress are determined according to the input position of the second input on the progress bar control of the second audio.

[0138] Further optionally, in an embodiment of the present application, the second input may specifically include a fourth sub-input and a fifth sub-input, so that the electronic device can determine the fourth playback progress based on the input position of the fourth sub-input, and determine the fifth playback progress based on the input position of the fifth sub-input.

[0139] Among them, the progress bar control of the second audio includes at least one node, each node corresponds to a playback progress, so that the electronic device can determine a corresponding node according to the input position of the fourth sub-input, and determine a playback progress corresponding to the node as the fourth playback progress; and determine another corresponding node according to the input position of the fifth sub-input, and determine another playback progress corresponding to the another node as the fifth playback progress.

[0140] It can be understood that the fourth playback progress may be the start time of the third audio, and the fifth playback progress may be the end time of the third audio.

[0141] Step 303a: The electronic device replaces the third audio according to the first audio.

[0142] For example, Figure 2 As shown, when the electronic device displays the first video 02 on the playback interface 01, based on the user's first input on the progress bar control 03 of the first video, it displays a target window 04, displays a progress bar control 05 for the first audio, and displays a progress bar control 06 for the second audio corresponding to the progress bar control 03 of the first video above the progress bar control 05 of the first audio. The electronic device can determine a fourth playback progress 07 based on the user's first click input on the progress bar control 06 of the second audio, then determine a fifth playback progress 08 based on the user's second click input on the progress bar control 06 of the second audio, then determine the audio between the fourth playback progress 07 and the fifth playback progress 08 as the third audio, and then replace the third audio with the first audio.

[0143] It can be seen that since the electronic device can determine the third audio from the second audio based on user input and replace the third audio based on the first audio, that is, the user can trigger the electronic device to replace the audio according to the user's needs, the convenience of the electronic device in processing videos can be improved.

[0144] Optionally, in an embodiment of the present application, before the above step 303, the video processing method provided in the embodiment of the present application may further include the following steps 901 to 903, and the above step 303 may be specifically implemented by the following step 303b.

[0145] Step 901: The electronic device displays a progress bar control of the first audio.

[0146] The progress bar control of the first audio is associated with the progress bar control of the first video.

[0147] It should be noted that the aforementioned "association of the progress bar control for the first audio with the progress bar control for the first video" can be understood as: the electronic device triggers adjustment of the playback progress of the first audio and the first video through user input into the progress bar control for the first audio. It can also be understood as the electronic device triggers adjustment of the playback progress of the first video and the first audio through user input into the progress bar control for the first video.

[0148] Optionally, in an embodiment of the present application, the progress bar control of the above-mentioned first audio can be displayed in the first application interface. For example, the progress bar control of the above-mentioned first audio can be displayed above the progress bar control of the first video in the first application interface.

[0149] Optionally, in an embodiment of the present application, the progress bar control of the first video can be displayed in the second application interface. Exemplarily, the progress bar control of the first video can be displayed above the first audio progress bar in the second application interface.

[0150] Step 902: The electronic device receives a third input from the user to the first progress bar control.

[0151] The first progress bar control includes any one of the following: a first audio progress bar control, a first video progress bar control.

[0152] Exemplarily, the electronic device may receive a third input from the user on the progress bar control of the first audio.

[0153] Exemplarily, the electronic device may also receive a third input from the user on the progress bar control of the first video.

[0154] Optionally, in an embodiment of the present application, the third input may be any one of the following: press input, a preset number of click inputs, sliding input, voice input, etc., and the specific input may be set according to actual needs.

[0155] The third input may include one input or multiple inputs.

[0156] In the case where the third input includes multiple inputs, the input type of each of the multiple inputs may be the same or different, and the multiple inputs may specifically be continuous inputs.

[0157] It should be noted that the above-mentioned “continuous input” can be understood as: input where the time interval between adjacent inputs is less than or equal to a preset threshold, or input where there is no other input between adjacent inputs.

[0158] Step 903, the electronic device determines, from the first audio, a fourth audio corresponding to a play progress located between the sixth play progress and the seventh play progress, and determines, from the second audio, a fifth audio corresponding to a play progress located between the eighth play progress and the ninth play progress, in response to the third input.

[0159] The sixth play progress, the seventh play progress, the eighth play progress, and the ninth play progress are determined according to the input position of the third input on the first progress bar control.

[0160] For example, the electronic device can determine, from the first audio, a fourth audio according to the third input of the user on the first audio progress bar control, and determine, from the second audio, a fifth audio according to the third input of the user on the first audio progress bar control.

[0161] For example, the electronic device can determine, from the second audio, a fifth audio according to the third input of the user on the first video progress bar control, and determine, from the first audio, a fourth audio according to the third input of the user on the first video progress bar control.

[0162] Optionally, in the embodiments of the present application, the electronic device can select a fourth audio from the first audio according to the third input of the user on the first progress bar control, and select a fifth audio from the second audio corresponding to the first video progress bar control. The length of the fourth audio corresponds to the length of the fifth audio.

[0163] Step 303b, the electronic device replaces the fifth audio with the fourth audio according to the fourth audio.

[0164] The eighth play progress matches the target play progress.

[0165] It should be noted that the electronic device can replace the fifth audio in the second audio with the fourth audio in the first audio, and the sixth play progress matches the target play progress.

[0166] Therefore, since the progress bar control of the first audio is associated with the progress bar control of the first video, according to the third input of the user on one of the first progress bar controls, the play progress of the first audio and the play progress of the second audio in the first video can be adjusted simultaneously, and the fourth audio in the first audio and the fifth audio in the second audio can be determined simultaneously. Therefore, the convenience of the electronic device in processing videos can be improved.

[0167] It should be noted that the video processing method provided in the embodiments of the present application can be executed by a video processing device. The video processing device is taken as an example to illustrate the video processing device provided in the embodiments of the present application.

[0168] Figure 4 A possible structural schematic diagram of the video processing device involved in the embodiments of the present application is shown. As shown in the figure, the video processing device 70 can include a playing module 71. Figure 4

[0169] The playing module 71 is configured to play the first video in the playing interface of the first application, and play the video picture of the first video and the first audio in the second application when the playing progress of the first video is the target playing progress. The target playing progress is associated with the second application. The second audio of the first video is associated with the first audio, and the playing progress corresponding to the second audio matches the target playing progress.

[0170] In a possible implementation, the video processing device further includes a receiving module 72 and a processing module 73. The receiving module 72 is configured to receive a first input of a user in the playing interface. The processing module 73 is configured to obtain the first audio based on the second audio of the first video in response to the first input received by the receiving module 72. The second audio is determined according to the input parameter of the first input, and the music version of the first audio and the music version of the second audio are different. The processing module 73 is further configured to replace at least part of the audio of the second audio with the first audio.

[0171] In a possible implementation, the first input includes a first sub-input and a second sub-input. The processing module 73 is specifically configured to determine the second audio corresponding to the playing progress between the first playing progress and the second playing progress from the first video in response to the first sub-input, and search for the second audio through the second application in response to the second sub-input to obtain the first audio. The first playing progress and the second playing progress are determined according to the input parameter of the first sub-input, and the second application is determined according to the input parameter of the second sub-input.

[0172] In a possible implementation, the processing module 73 is further configured to determine the second application corresponding to the input parameter of the second sub-input according to N association relationships. Each of the N association relationships is an association relationship between an input parameter and an application, and N is a positive integer.

[0173] ​In a possible implementation, the input parameter includes an input track. The processing module 73 is further configured to, in a case where N application identifiers of N applications are displayed, determine N text contents according to the N application identifiers, the N application identifiers and the N applications being in one-to-one correspondence, and the N text contents and the N application identifiers being in one-to-one correspondence; determine N input tracks according to the N text contents, the N input tracks and the N text contents being in one-to-one correspondence; and establish an association relationship according to each input track and a corresponding application, to obtain N association relationships.

[0174] In a possible implementation, the video processing apparatus 70 provided by the embodiment of the present application can further include an obtaining module 74. The obtaining module 74 is configured to obtain a target image frame, the target image frame being an image frame corresponding to a third playing progress in image frames of the first video. The processing module 73 is further configured to set the target image frame obtained by the obtaining module as a target cover picture, the target cover picture being a cover picture when the first audio is played. The third playing progress is determined according to the input parameter input by the second sub-module.

[0175] In a possible implementation, the video processing apparatus 70 provided by the embodiment of the present application can further include a display module 75. The display module 75 is configured to display a progress bar control of the second audio. The receiving module 72 is further configured to receive a second input of a user on the progress bar control of the second audio displayed by the display module. The processing module 73 is further configured to, in response to the second input received by the receiving module 72, determine a third audio corresponding to a playing progress located between a fourth playing progress and a fifth playing progress from the second audio. The processing module 73 is specifically configured to perform replacement processing on the third audio according to the first audio. The fourth playing progress and the fifth playing progress are determined according to an input position of the second input on the progress bar control.

[0176] In a possible implementation, the display module 75 is further configured to display a progress bar control of the first audio, the progress bar control of the first audio being associated with the progress bar control of the first video; the receiving module 72 is further configured to receive a third input of a user on the first progress bar control, the first progress bar control including any one of the following: the progress bar control of the first audio, the progress bar control of the first video; the processing module 73 is further configured to, in response to the third input, determine, from the first audio, a fourth audio corresponding to a playing progress located between a sixth playing progress and a seventh playing progress, and determine, from the second audio, a fifth audio corresponding to a playing progress located between an eighth playing progress and a ninth playing progress; and the processing module 73 is specifically configured to perform replacement processing on the fifth audio according to the fourth audio. The sixth playing progress, the seventh playing progress, the eighth playing progress, and the ninth playing progress are all determined according to an input position of the third input on the first progress bar control; and the eighth playing progress matches the target playing progress.

[0177] The embodiment of the present application provides a video processing apparatus, the video processing apparatus can play a first video in a playing interface of a first application, and play a video picture of the first video in a case where a playing progress of the first video is a target playing progress, so as to play a first audio in a second application, wherein the target playing progress is associated with the second application; a second audio of the first video is associated with the first audio, and a playing progress corresponding to the second audio matches the target playing progress. Since the video processing apparatus can trigger the video picture of the first video to continue to be played and the first audio in the second application to be played in the case where the playing progress of the first video played in the playing interface of the first application is the target playing progress, without the user needing to perform multiple operations to switch audios in different applications, the operation steps of obtaining a satisfactory audio by the user in a process in which the video processing apparatus plays a video can be simplified, and time consumption is reduced.

[0178] The video processing apparatus in the embodiments of the present application can be an apparatus, or a component, an integrated circuit, or a chip in an electronic device. The apparatus can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The apparatus can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application are not limited in this regard.

[0179] The video processing apparatus in the embodiments of the present application can be an apparatus with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiments of the present application are not limited in this regard.

[0180] The video processing apparatus provided in the embodiments of the present application can implement the method embodiments of the present application. Figures 1 to 3 The processes implemented by the method embodiments are not repeated here to avoid repetition.

[0181] Optionally, as shown in Figure 5 the embodiments of the present application also provide an electronic device 90, which includes a processor 91 and a memory 92. The memory 92 has a program or instructions stored thereon, which can be run on the processor 91. When the program or instructions are executed by the processor 91, each step of the above-mentioned video processing method embodiments is implemented, and the same technical effects are achieved. To avoid repetition, the details are not repeated here.

[0182] It should be noted that the electronic device in the embodiments of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0183] Figure 6 To implement the hardware structure of an electronic device according to an embodiment of the present application.

[0184] The electronic device 100 includes, but is not limited to, a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc.

[0185] As can be appreciated by those skilled in the art, the electronic device 100 can further include a power supply (such as a battery) that supplies power to each of the components, and the power supply can be logically connected to the processor 110 through a power management system, so that the power management system can realize functions such as management of charging, discharging, and power consumption management. Figure 6 The electronic device structure shown in the figure is not a limitation on the electronic device, and the electronic device can include more or fewer components than shown, or combine certain components, or different component arrangements, which are not described here.

[0186] The processor 110 is configured to play a first video in a play interface of a first application, and play a video picture of the first video and play a first audio in a second application when a play progress of the first video is a target play progress, wherein the target play progress is associated with the second application, a second audio of the first video is associated with the first audio, and a play progress corresponding to the second audio matches the target play progress.

[0187] Optionally, in the embodiment of the present application, the user input unit 107 is configured to receive a first input of a user in the play interface, and the processor 110 is configured to obtain the first audio based on the second audio of the first video in response to the first input, the second audio being determined according to an input parameter of the first input, the music version of the first audio being different from that of the second audio, and at least part of the audio of the second audio being replaced according to the first audio.

[0188] Optionally, in the embodiment of the present application, the first input includes a first sub-input and a second sub-input, and the processor 110 is specifically configured to determine the second audio corresponding to a play progress between a first play progress and a second play progress from the first video in response to the first sub-input, and search for the first audio through the second application in response to the second sub-input, wherein the first play progress and the second play progress are determined according to an input parameter of the first sub-input, and the second application is determined according to an input parameter of the second sub-input.

[0189] As can be appreciated, since the electronic device can search for the first audio in the second application according to the second audio in the first video, the user can search for the first audio with a music version different from that of the second audio in another application without exiting the play interface of the current first video, so that the electronic device can quickly find the second audio, thereby simplifying the user's operation in the video processing process and reducing the time-consuming.

[0190] Optionally, in some embodiments of the present application, the processor 110 is further configured to determine a second application corresponding to the input parameter of the second sub-input according to N association relationships, wherein each of the N association relationships is an association relationship between an input parameter and an application, and N is a positive integer.

[0191] As can be seen, the electronic device can determine the second application according to the input parameter of the user, without the need for the user to exit the current playing interface to determine the second application, so that the electronic device can quickly determine the second application, thereby simplifying the operation steps of the user in the video processing process and reducing the time consumption.

[0192] Optionally, in some embodiments of the present application, the input parameter includes an input track. The processor 110 is further configured to, in a case where N application identifiers of N applications are displayed, determine N text contents according to the N application identifiers, wherein the N application identifiers and the N applications are in one-to-one correspondence, and the N text contents and the N application identifiers are in one-to-one correspondence; determine N input tracks according to the N text contents, wherein the N input tracks and the N text contents are in one-to-one correspondence; and establish an association relationship according to each input track and the corresponding application, to obtain N association relationships.

[0193] As can be seen, since the electronic device can determine the N input tracks according to the N application identifiers, and directly obtain the N association relationships according to the N input tracks and the N applications corresponding to the N input tracks, without the need for the user to perform multiple operations, the operation steps of the user in the process of establishing the association relationship between the input track and the application can be simplified, and the time consumption can be reduced.

[0194] Optionally, in some embodiments of the present application, the processor 110 is further configured to obtain a target image frame, wherein the target image frame is an image frame corresponding to a third playing progress in the image frames of the first video; and set the target image frame as a target cover picture, wherein the target cover picture is a cover picture when the first audio is played. The third playing progress is determined according to the input parameter of the second sub-input.

[0195] As can be seen, since the electronic device can determine the cover picture of the first audio according to the input of the user, thereby facilitating the user to quickly determine the content of the first audio, and further improving the efficiency of the electronic device in processing the video.

[0196] Optionally, in the embodiment of the present application, the display unit 106 is configured to display a progress bar control of the second audio. The user input unit 107 is further configured to receive a second input of the user on the progress bar control of the second audio. The processor 110 is further configured to determine, from the second audio, a third audio corresponding to a playing progress located between a fourth playing progress and a fifth playing progress, in response to the second input. The processor 110 is specifically configured to perform replacement processing on the third audio according to the first audio; wherein the fourth playing progress and the fifth playing progress are determined according to an input position of the second input on the progress bar control.

[0197] Therefore, the electronic device can determine the third audio from the second audio according to the user input and perform replacement processing on the third audio based on the first audio, i.e., the user can trigger the electronic device to replace the audio according to the user's demand, so that the convenience of the electronic device in processing the video can be improved.

[0198] Optionally, in the embodiment of the present application, the display unit 106 is configured to display a progress bar control of the first audio, and the progress bar control of the first audio is associated with the progress bar control of the first video. The user input unit 107 is further configured to receive a third input of the user on the first progress bar control, and the first progress bar control includes any one of the following: the progress bar control of the first audio, and the progress bar control of the first video. The processor 110 is further configured to determine, from the first audio, a fourth audio corresponding to a playing progress located between a sixth playing progress and a seventh playing progress, and determine, from the second audio, a fifth audio corresponding to a playing progress located between an eighth playing progress and a ninth playing progress, in response to the third input. The processor 110 is specifically configured to perform replacement processing on the fifth audio according to the fourth audio; wherein the sixth playing progress, the seventh playing progress, the eighth playing progress, and the ninth playing progress are determined according to an input position of the third input on the first progress bar control; and the eighth playing progress matches the target playing progress.

[0199] The embodiment of the present application provides an electronic device. The electronic device can play a first video in a playing interface of a first application, and play a video picture of the first video in a case where a playing progress of the first video is a target playing progress, so as to play a first audio in a second application, wherein the target playing progress is associated with the second application; a second audio of the first video is associated with the first audio, and a playing progress corresponding to the second audio matches the target playing progress. Since the electronic device can trigger the video picture of the first video to continue to be played and the first audio in the second application to be played in the case where the playing progress of the first video played in the playing interface of the first application is the target playing progress, without the user needing to perform multiple operations to switch audios in different applications, the operation steps of obtaining a satisfactory audio by the user in the process of the electronic device playing the video can be simplified, and the time consumption can be reduced.

[0200] The electronic device provided in the embodiments of the present application can implement each process of the video processing method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0201] The beneficial effects of various implementation manners in the embodiments of the present application can refer to the beneficial effects of the corresponding implementation manners in the video processing method embodiments, which are not described herein to avoid repetition.

[0202] It should be understood that in the embodiments of the present application, the input unit 104 can include a graphics processing unit (GPU) 1041 and a microphone 1042. The graphics processing unit 1041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 can include a display panel 1061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 can include a touch detection device and a touch controller. The other input devices 1072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, an operating lever, and the like, which are not described herein.

[0203] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 109 can include a volatile memory or a non-volatile memory, or the memory 109 can include both a volatile memory and a non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 109 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0204] The processor 110 can include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 110.

[0205] The embodiments of the present application also provide a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned video processing method embodiments, and the same technical effects can be achieved. To avoid repetition, details are not described here.

[0206] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0207] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, realizes various processes of the above method embodiments, and can achieve the same technical effects. To avoid repetition, details are not described here.

[0208] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system or a system on chip, etc.

[0209] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and is executed by at least one processor to realize various processes of the above video processing method embodiments, and can achieve the same technical effects. To avoid repetition, details are not described here.

[0210] It should be noted that in this paper, the term "includes", "contains" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "includes a" does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of the functions shown or discussed, but can also include the functions performed in a substantially simultaneous manner or in the opposite order according to the functions involved, for example, the described method can be performed in an order different from the described order, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.

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

[0212] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. A video processing method, characterized in that: The method comprises: Playing the first video in the playback interface of the first application; When the playback progress of the first video is at the target playback progress, playing the video image of the first video and playing the first audio in the second application; Among them, the target playback progress is associated with the second application; the second audio of the first video is associated with the first audio, and the playback progress corresponding to the second audio matches the target playback progress.

2. The method according to claim 1, characterized in that When the playback progress of the first video is at the target playback progress, before playing the video image of the first video and playing the first audio in the second application, the method further includes: receiving a first input from a user on the playback interface; In response to the first input, the first audio is obtained based on the second audio of the first video, where the second audio is determined according to input parameters of the first input, and a music version of the first audio is different from a music version of the second audio; Based on the first audio, at least part of the second audio is replaced.

3. The method according to claim 2, characterized in that The first input includes a first sub-input and a second sub-input; In response to the first input, obtaining the first audio based on the second audio of the first video includes: In response to the first sub-input, determining, from the first video, the second audio whose corresponding playback progress is between the first playback progress and the second playback progress; In response to the second sub-input, searching the second audio through the second application to obtain the first audio; The first playback progress and the second playback progress are determined according to input parameters of the first sub-input; and the second application is determined according to input parameters of the second sub-input.

4. The method according to claim 3, characterized in that Before searching the second audio through the second application to obtain the first audio, the method further includes: Determining, based on the N association relationships, the second application corresponding to the input parameter of the second sub-input; Each of the N association relationships is an association relationship between an input parameter and an application, and N is a positive integer.

5. The method according to claim 4, characterized in that The input parameters include input trajectory; Before determining the second application corresponding to the input parameter of the second sub-input according to the N association relationships, the method further includes: In the case of displaying N application identifiers of N applications, determining N text contents according to the N application identifiers, wherein the N application identifiers correspond one-to-one to the N applications, and the N text contents correspond one-to-one to the N application identifiers; Determining N input trajectories according to the N text contents, wherein the N input trajectories correspond one-to-one to the N text contents; An association relationship is established according to each input trajectory and the corresponding application, thereby obtaining the N association relationships.

6. The method according to claim 3, characterized in that After searching the second audio through the second application to obtain the first audio, the method further includes: Acquire a target image frame, where the target image frame is: an image frame corresponding to the third playback progress among the image frames of the first video; Setting the target image frame as a target cover picture, wherein the target cover picture is the cover picture when the first audio is played; The third playback progress is determined according to the input parameters of the second sub-input.

7. The method according to claim 2, characterized in that Before replacing at least part of the second audio according to the first audio, the method further includes: Display a progress bar control of the second audio; receiving a second input from the user on the progress bar control of the second audio; In response to the second input, determining, from the second audio, a third audio whose corresponding playback progress is between the fourth playback progress and the fifth playback progress; The replacing at least part of the second audio according to the first audio includes: performing replacement processing on the third audio according to the first audio; The fourth play progress and the fifth play progress are determined according to an input position of the second input on the progress bar control.

8. The method according to claim 2, characterized in that Before replacing at least part of the second audio according to the first audio, the method further includes: Displaying a progress bar control of the first audio, where the progress bar control of the first audio is associated with the progress bar control of the first video; receiving a third input from the user to a first progress bar control, where the first progress bar control includes any one of the following: a progress bar control for the first audio, or a progress bar control for the first video; In response to the third input, determining, from the first audio, a fourth audio whose corresponding playback progress is between the sixth playback progress and the seventh playback progress, and determining, from the second audio, a fifth audio whose corresponding playback progress is between the eighth playback progress and the ninth playback progress; The replacing at least part of the second audio according to the first audio includes: performing replacement processing on the fifth audio according to the fourth audio; The sixth play progress, the seventh play progress, the eighth play progress and the ninth play progress are all determined according to the input position of the third input on the first progress bar control; and the eighth play progress matches the target play progress.

9. A video processing device, characterized in that: The video processing device includes: a playback module; The playback module is used to: Playing the first video in the playback interface of the first application; When the playback progress of the first video is at the target playback progress, playing the video image of the first video and playing the first audio in the second application; Among them, the target playback progress is associated with the second application; the second audio of the first video is associated with the first audio, and the playback progress corresponding to the second audio matches the target playback progress.

10. An electronic device, characterized in that: The method comprises a processor, a memory and a computer executable program stored in the memory and runnable on the processor, wherein the computer executable program implements the steps of the video processing method according to any one of claims 1 to 8 when executed by the processor.

11. A readable storage medium, characterized in that: The readable storage medium stores a computer executable program, and when the computer executable program is executed by a processor, the steps of the video processing method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Audio playing method and device, electronic equipment and storage medium

    CN112347273A

  • Content output method and apparatus and electronic equipment

    CN112637409A