Video splitting method and electronic device
AssigneePetal Cloud Technology Co., Ltd.
InventorsWenbo WEI, Zhigang GUO, Youjun WANG
Life of this patent
Estimating the term…
Abstract
This application provides a video splitting method and an electronic device. When the method is performed by a server, the server processes a long video into a plurality of short videos, and then a terminal obtains the short video from the server and plays the short video; or when the method is performed by a terminal, the terminal obtains a long video from a server, then processes the long video into a plurality of short videos, and plays the plurality of short videos.
Claims19
A video splitting method, wherein the method is applicable to an electronic device, and the method comprises:
- determining a video start time point and a video end time point of each scene from a long video;
- determining a subtitle start time point and a subtitle end time point of each subtitle segment from a subtitle file corresponding to the long video;
- for any scene in the long video, determining, based on a video start time point and a video end time point of the scene, at least one subtitle segment corresponding to the scene, wherein the at least one subtitle segment corresponding to the scene comprises at least one dialog in the subtitle file;
- adjusting the video start time point and the video end time point of the scene based on the subtitle start time point and the subtitle end time point of the at least one subtitle segment, to obtain an adjusted video start time point and an adjusted video end time point of the scene;
- and
- splitting the long video based on the adjusted video start time point and the adjusted video end time point of each scene, to generate a plurality of short videos.
An electronic device, comprising one or more processors, one or more memories, and a display, wherein
- the one or more memories are coupled to the one or more processors, and the memory is configured to store data and an instruction for the processor to invoke;
- the processor is configured to:
- determine a video start time point and a video end time point of each scene from a long video;
- determine a subtitle start time point and a subtitle end time point of each subtitle segment from a subtitle file corresponding to the long video;
- for any scene in the long video, determine, based on a video start time point and a video end time point of the scene, at least one subtitle segment corresponding to the scene, wherein the at least one subtitle segment corresponding to the scene comprises at least one dialog in the subtitle file;
- adjust the video start time point and the video end time point of the scene based on the subtitle start time point and the subtitle end time point of the at least one subtitle segment, to obtain an adjusted video start time point and an adjusted video end time point of the scene;
- and split the long video based on the adjusted video start time point and the adjusted video end time point of each scene, to generate a plurality of short videos;
- and
- the display is configured to display the short video based on an indication of the processor.
Dependencies are inferred from the claim text.