Method and apparatus for generating effect configuration file, device and medium
Abstract
The present disclosure relate to a method and apparatus for generating an effect configuration file, a device, and a medium. The method includes: in response to an editing trigger operation on background music, displaying a track list in an editing interface for background music, wherein the track list includes a first track of the background music and a second track of a music-associated material; in response to an editing operation on the first track, adjusting a playback time period of the background music, and/or, in response to an editing operation on the second track, adjusting an associated time period corresponding to the music-associated material in the background music; and in response to an instruction for generating an effect configuration file, according to the first track and the second track, generating an effect configuration file including the background music and the music-related material.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for generating an effect configuration file, comprising:
displaying a track list in an editing interface for background music in response to an editing trigger operation on the background music, wherein the track list comprises a first track of the background music and a second track of a music-associated material; adjusting a playback time period of the background music in response to an editing operation on the first track in the editing interface for the background music, and/or adjusting an associated time period corresponding to the music-associated material in the background music in response to an editing operation on the second track in the editing interface for the background music; and generating the effect configuration file according to the first track and the second track in response to a generation instruction for the effect configuration file, wherein the effect configuration file comprises the background music and the music-associated material, the effect configuration file is applied to configure an effect on a video during a video shooting process, to apply the background music and the music-associated material to the video to generate a target video as a shooting output; and in a display process of the target video, the background music is played according to the playback time period, and the music-associated material is rendered and displayed when the background music is played up to the associated time period of the music-associated material.
2 . The method according to claim 1 , wherein a length of the first track in the track list corresponds to the playback time period of the background music, a length of the second track corresponds to the associated time period of the music-associated material, and a number of the music-associated material is one or more.
3 . The method according to claim 2 , wherein the adjusting of the playback time period of the background music in response to the editing operation on the first track in the editing interface for the background music comprises:
in response to a first dragging operation on a track adjustment block of the first track in the editing interface for the background music, adjusting the length of the first track according to a dragging position of the first dragging operation, wherein an adjusted length of the first track is a length corresponding to a position to which the track adjustment block is dragged by the first dragging operation; and adjusting the playback time period of the background music according to the adjusted length of the first track.
4 . The method according to claim 2 , wherein the adjusting of the associated time period corresponding to the music-associated material in the background music in response to the editing operation on the second track in the editing interface for the background music comprises:
in response to a second dragging operation on a track adjustment block of the second track in the editing interface for the background music, adjusting the length of the second track according to a dragging position of the second dragging operation, wherein an adjusted length of the second track is a length corresponding to a position to which the track adjustment block is dragged by the second dragging operation; and adjusting the associated time period corresponding to the music-associated material in the background music according to the adjusted length of the second track.
5 . The method according to claim 1 , further comprising:
displaying an effect identifier of the music-associated material at a position corresponding to the associated time period of the music-associated material on the first track of the background music in the editing interface for the background music.
6 . The method according to claim 1 , wherein the music-associated material is an effect material with a specified number of playback times, the associated time period of an initial state of the music-associated material is a time period corresponding to the playback times, and the length of the second track of the music-associated material only supports shortening.
7 . The method according to claim 1 , wherein the music-associated material is an effect material for which a trigger event is not set in an effect material other than the background music, the trigger event being one of display states corresponding to the effect material.
8 . The method according to claim 1 , wherein the editing trigger operation on the background music comprises:
an adding operation on the background music or a selecting operation on a music layer corresponding to the background music in a layer list.
9 . The method according to claim 8 , wherein different layers in the layer list indicate different effect materials, and a rendering hierarchical order of effect materials of layers in the layer list is the same as an order of the layers in the layer list, an order position of the music layer in the layer list being a first position.
10 . The method according to claim 1 , further comprising:
displaying a music editing component in the editing interface for the background music in response to a trigger operation on a music-associated button in an editing interface for any effect material other than the background music; and performing an editing operation corresponding to the music editing component on the background music in response to a trigger operation on the music editing component, the editing operation on the background music comprising at least one of a volume adjustment, a fade effect setting, a deletion operation or a replacement operation.
11 . The method according to claim 1 , further comprising:
performing a playback control operation on the background music in response to a trigger operation on a playback control button for the background music, the playback control operation being a play operation or a pause operation.
12 . An electronic device, comprising:
a processor; and a memory configured store executable instructions for the processor; wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to: display a track list in an editing interface for background music in response to an editing trigger operation on the background music, wherein the track list comprises a first track of the background music and a second track of a music-associated material; adjust a playback time period of the background music in response to an editing operation on the first track in the editing interface for the background music, and/or adjust an associated time period corresponding to the music-associated material in the background music in response to an editing operation on the second track in the editing interface for the background music; and generate the effect configuration file according to the first track and the second track in response to a generation instruction for the effect configuration file, music and the music-associated material, the effect configuration file is applied to configure an effect on a video during a video shooting process, to apply the background music and the music-associated material to the video to generate a target video as a shooting output; and in a display process of the target video, the background music is played according to the playback time period, and the music-associated material is rendered and displayed when the background music is played up to the associated time period of the music-associated material.
13 . A non-transitory computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, cause the processor to:
display a track list in an editing interface for background music in response to an editing trigger operation on the background music, wherein the track list comprises a first track of the background music and a second track of a music-associated material; adjust a playback time period of the background music in response to an editing operation on the first track in the editing interface for the background music, and/or adjust an associated time period corresponding to the music-associated material in the background music in response to an editing operation on the second track in the editing interface for the background music; and generate the effect configuration file according to the first track and the second track in response to a generation instruction for the effect configuration file, music and the music-associated material, the effect configuration file is applied to configure an effect on a video during a video shooting process, to apply the background music and the music-associated material to the video to generate a target video as a shooting output; and in a display process of the target video, the background music is played according to the playback time period, and the music-associated material is rendered and displayed when the background music is played up to the associated time period of the music-associated material.
14 . The electronic device according to claim 12 , wherein a length of the first track in the track list corresponds to the playback time period of the background music, a length of the second track corresponds to the associated time period of the music-associated material, and a number of the music-associated material is one or more.
15 . The electronic device according to claim 14 , wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to:
in response to a first dragging operation on a track adjustment block of the first track in the editing interface for the background music, adjust the length of the first track according to a dragging position of the first dragging operation, wherein an adjusted length of the first track is a length corresponding to a position to which the track adjustment block is dragged by the first dragging operation; and adjust the playback time period of the background music according to the adjusted length of the first track.
16 . The electronic device according to claim 14 , wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to:
in response to a second dragging operation on a track adjustment block of the second track in the editing interface for the background music, adjust the length of the second track according to a dragging position of the second dragging operation, wherein an adjusted length of the second track is a length corresponding to a position to which the track adjustment block is dragged by the second dragging operation; and adjust the associated time period corresponding to the music-associated material in the background music according to the adjusted length of the second track.
17 . The electronic device according to claim 12 , wherein the processor is further configured to read the executable instructions from the memory and execute the executable instructions to display an effect identifier of the music-associated material at a position corresponding to the associated time period of the music-associated material on the first track of the background music in the editing interface for the background music.
18 . The non-transitory computer-readable storage medium according to claim 13 , wherein a length of the first track in the track list corresponds to the playback time period of the background music, a length of the second track corresponds to the associated time period of the music-associated material, and a number of the music-associated material is one or more.
19 . The non-transitory computer-readable storage medium according to claim 18 , wherein the computer program, when executed by the processor, cause the processor to:
in response to a first dragging operation on a track adjustment block of the first track in the editing interface for the background music, adjust the length of the first track according to a dragging position of the first dragging operation, wherein an adjusted length of the first track is a length corresponding to a position to which the track adjustment block is dragged by the first dragging operation; and adjust the playback time period of the background music according to the adjusted length of the first track.
20 . The non-transitory computer-readable storage medium according to claim 18 , wherein the computer program, when executed by the processor, cause the processor to:
in response to a second dragging operation on a track adjustment block of the second track in the editing interface for the background music, adjust the length of the second track according to a dragging position of the second dragging operation, wherein an adjusted length of the second track is a length corresponding to a position to which the track adjustment block is dragged by the second dragging operation; and adjust the associated time period corresponding to the music-associated material in the background music according to the adjusted length of the second track.Join the waitlist — get patent alerts
Track US2024103711A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.