Video material editing method and apparatus
A video material editing method and apparatus are provided. The method includes: acquiring a plurality of video materials; and determining a video split-screen template. By exhibiting a plurality of video track clips formed based on the plurality of video materials on a video editing track, and displaying a video editing image formed from video images of the plurality of video track clips according to a video split-screen template, video images of the plurality of video track clips are exhibited through a plurality of split regions in the video editing image in a split-screen manner; timeline intervals corresponding to the plurality of video track clips on the video editing track at least partially overlap with each other, to render that the finally obtained video has a video split-screen splice effect.
1 . A video material editing method, comprising:
acquiring video materials, a number of the acquired video materials being a particular number;
displaying a user interface in response to receiving user input on a control element, wherein the user interface is configured to preview and implement a video split-screen splice effect on the acquired video materials;
determining a set of split-screen templates based on the particular number, wherein each of the set of split-screen templates comprises split regions a number of which is equal to the particular number;
generating a first video editing image based on the acquired video materials and a default split-screen template, wherein the default split-screen template is among the set of the split-screen templates;
displaying the first video editing image in a first area of the user interface;
displaying at least a subset of the split-screen templates in a second area of the user interface, wherein each of the displayed split-screen templates is selectable, and each of the displayed split-screen templates is configured to visually exhibit the particular number of split regions in a different layout;
exhibiting the acquired video materials on a plurality of video editing tracks, respectively, wherein the plurality of video editing tracks are arranged in an order of the acquiring the video materials;
receiving a selection of one of the displayed split-screen templates, wherein the selected split-screen template is different from the default split-screen template;
generating a second video editing image based on the acquired video materials and the selected split-screen template; and
switching to displaying the second video editing image from the first video image in the first area of the user interface, wherein each of the first video editing image and the second video editing image has the particular number of split regions, wherein a split region in each video editing image is configured to exhibit one of the acquired video materials, and wherein different split regions in each video editing image are configured to exhibit different video materials among the acquired video materials.
2 . The method according to claim 1 , further comprising:
entering a video clip page, based on one of the set of video split-screen templates adopted for the acquired video materials, and displaying the video editing image formed from video images of the acquired video materials according to the one of the set of video split-screen templates on the video clip page.
3 . The method according to claim 2 , wherein after entering the video clip page, in a corresponding clip draft file, setting one of the acquired video materials as a video material on a main track, while setting all other the acquired video materials as video materials on picture-in-picture tracks.
4 . The method according to claim 3 , wherein the setting one of the acquired video materials as the video track clip on the main track, while setting all other the acquired video materials as the video materials on the picture-in-picture tracks, comprises:
based on an order of acquiring the video materials, setting a first acquired video material on the main track, and setting video materials respectively formed from other acquired video materials as video materials on the picture-in-picture tracks.
5 . The method according to claim 1 , wherein the method further comprises:
acquiring a size of a canvas corresponding to a video editing operation;
determining sizes and positions of the video images of the acquired video materials respectively in the canvas, based on a video editing track information of the acquired video materials, a mapping relationship between the split regions indicated by the video split-screen template and the video editing tracks, and the size of the canvas;
filling the video images of the acquired video materials in the canvas, based on the sizes and the positions of the video images of the acquired video materials respectively in the canvas, and displaying the canvas to exhibit the video editing images formed from the video images of the acquired video materials according to the video split-screen template.
6 . The method according to claim 1 , wherein at least one video material is processed by adopting one or more of video processing modes of video speed varying, inserting or splicing a video clip with specified content, to acquire a video track clip whose time length is consistent with a length of a timeline.
7 . The method according to claim 6 , further comprising:
playing, in response to a preview playing instruction, video editing images formed from the video images of the acquired video materials according to the video split-screen template based on the timeline,
wherein, during the playing process, when a preview playing position is located within the timeline interval covered by the video track clip on the timeline, the video image of the video track clip is displayed through the corresponding split region in the video editing image; if the preview playing position is located outside the timeline interval covered by the video track clip on the timeline, a preset background is displayed in the split region corresponding to the video track clip in the video editing image.
8 . The method according to claim 6 , further comprising:
in response to an adjustment instruction for the video track clip, adjusting a position, a direction or a size of the video image of the video track clip in the corresponding split region; or, exchanging split regions corresponding to video images of different the video track clips; or, replacing the video track clip in the split region; or, displaying the video image of the video track clip in a mirrored manner in the corresponding split region.
9 . A non-transitory computer readable storage medium, comprising: computer program instructions, wherein the computer program instructions, upon execution by an electronic device, cause the electronic device to implement operations comprising
acquiring video materials, a number of the acquired video materials being a particular number;
displaying a user interface in response to receiving user input on a control element, wherein the user interface is configured to preview and implement a video split-screen splice effect on the acquired video materials;
determining a set of split-screen templates based on the particular number, wherein each of the set of split-screen templates comprises split regions a number of which is equal to the particular number;
generating a first video editing image based on the acquired video materials and a default split-screen template, wherein the default split-screen template is among the set of the split-screen templates;
displaying the first video editing image in a first area of the user interface;
displaying at least a subset of the split-screen templates in a second area of the user interface, wherein each of the displayed split-screen templates is selectable, and each of the displayed split-screen templates is configured to visually exhibit the particular number of split regions in a different layout;
exhibiting the acquired video materials on a plurality of video editing tracks, respectively, wherein the plurality of video editing tracks are arranged in an order of the acquiring the video materials;
receiving a selection of one of the displayed split-screen templates, wherein the selected split-screen template is different from the default split-screen template;
generating a second video editing image based on the acquired video materials and the selected split-screen template; and
switching to displaying the second video editing image from the first video image in the first area of the user interface, wherein each of the first video editing image and the second video editing image has the particular number of split regions, wherein a split region in each video editing image is configured to exhibit one of the acquired video materials, and wherein different split regions in each video editing image are configured to exhibit different video materials among the acquired video materials.
10 . The non-transitory computer readable storage medium according to claim 9 , the operations further comprising:
acquiring a size of a canvas corresponding to a video editing operation;
determining sizes and positions of video images of the acquired video materials respectively in the canvas based on a video editing track information of the acquired video materials, a mapping relationship between the split regions indicated by one of the set of video split-screen templates and the video editing tracks, and the size of the canvas;
filling the video images of the acquired video materials in the canvas, based on the sizes and the positions of the video images of the acquired video materials respectively in the canvas; and
displaying the canvas to exhibit the video editing images formed from the video images of the acquired video materials according to one of the set of video split-screen templates.
11 . The non-transitory computer readable storage medium according to claim 9 , wherein at least one video material is processed by adopting one or more of video processing modes of video speed varying, inserting or splicing a video clip with specified content, to acquire a video track clip whose time length is consistent with a length of a timeline.
12 . An electronic device, comprising: at least one memory and at least one processor, wherein the at least one memory is configured to store computer program instructions; the at least one processor is configured to execute the computer program instructions, and the computer program instructions, upon execution by the at least one processor, cause the at least one processor to implements operations comprising:
acquiring video materials, a number of the acquired video materials being a particular number;
displaying a user interface in response to receiving user input on a control element, wherein the user interface is configured to preview and implement a video split-screen splice effect on the acquired video materials;
determining a set of split-screen templates based on the particular number, wherein each of the set of split-screen templates comprises split regions a number of which is equal to the particular number;
generating a first video editing image based on the acquired video materials and a default split-screen template, wherein the default split-screen template is among the set of the split-screen templates;
displaying the first video editing image in a first area of the user interface;
displaying at least a subset of the split-screen templates in a second area of the user interface, wherein each of the displayed split-screen templates is selectable, and each of the displayed split-screen templates is configured to visually exhibit the particular number of split regions in a different layout;
exhibiting the acquired video materials on a plurality of video editing tracks, respectively, wherein the plurality of video editing tracks are arranged in an order of the acquiring the video materials;
receiving a selection of one of the displayed split-screen templates, wherein the selected split-screen template is different from the default split-screen template;
generating a second video editing image based on the acquired video materials and the selected split-screen template; and
switching to displaying the second video editing image from the first video image in the first area of the user interface, wherein each of the first video editing image and the second video editing image has the particular number of split regions, wherein a split region in each video editing image is configured to exhibit one of the acquired video materials, and wherein different split regions in each video editing image are configured to exhibit different video materials among the acquired video materials.
13 . The electronic device according to claim 12 , the operations further comprising:
acquiring a size of a canvas corresponding to a video editing operation;
determining sizes and positions of video images of the acquired video materials respectively in the canvas based on a video editing track information of the acquired video materials, a mapping relationship between the split regions indicated by one of the set of video split-screen templates and the video editing tracks, and the size of the canvas;
filling the video images of the acquired video materials in the canvas, based on the sizes and the positions of the video images of the acquired video materials respectively in the canvas; and
displaying the canvas to exhibit the video editing images formed from the video images of the acquired video materials according to one of the set of video split-screen templates.
14 . The electronic device according to claim 12 , wherein at least one video material is processed by adopting one or more of video processing modes of video speed varying, inserting or splicing a video clip with specified content, to acquire a video track clip whose time length is consistent with a length of a timeline.