CN113542870A - Video segmentation clipping processing method and device based on mobile terminal and terminal - Google Patents

Video segmentation clipping processing method and device based on mobile terminal and terminal Download PDF

Info

Publication number
CN113542870A
CN113542870A CN202110711046.4A CN202110711046A CN113542870A CN 113542870 A CN113542870 A CN 113542870A CN 202110711046 A CN202110711046 A CN 202110711046A CN 113542870 A CN113542870 A CN 113542870A
Authority
CN
China
Prior art keywords
segment
video
clipping
video file
segments
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110711046.4A
Other languages
Chinese (zh)
Inventor
蒋锐
杨晰
何研
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Cloud Internet Corp Technology Co Ltd
Original Assignee
Huizhou TCL Cloud Internet Corp Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Cloud Internet Corp Technology Co Ltd filed Critical Huizhou TCL Cloud Internet Corp Technology Co Ltd
Priority to CN202110711046.4A priority Critical patent/CN113542870A/en
Publication of CN113542870A publication Critical patent/CN113542870A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video segmentation clipping processing method, a device and a terminal based on a mobile terminal, wherein the method comprises the following steps: acquiring a video file to be edited and previewing the video file; acquiring a clipping instruction of the video file to be clipped, and judging whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment; when the clipping instruction is a preset segmentation according to the number of segments, controlling to clip the video file needing to be clipped according to the specified number of segments on average; when the clipping instruction is a preset segmentation according to the size of each segment, controlling to clip the video file needing to be clipped according to the specified segmentation size of each segment; and saving the segmented and clipped video file. The method aims to solve the technical problems that the mobile phone video editing in the prior art is time-consuming and labor-consuming, the flexibility of mobile phone compression is low by direct utilization, and the resolution of a compressed video file is reduced to influence the video quality. The video editing method is simple and convenient to operate and high in video editing efficiency.

Description

Video segmentation clipping processing method and device based on mobile terminal and terminal
Technical Field
The invention relates to the technical field of video clips of mobile terminals, in particular to a video segmentation clip processing method and device based on a mobile terminal, the mobile terminal and a storage medium.
Background
With the development of science and technology and the continuous improvement of the living standard of people, various mobile terminals such as mobile phones are more and more popular, and the mobile phones become indispensable communication tools in the life of people.
Mobile terminal handset functions are increasing in the prior art, for example video clips are one of them. Under the background of short videos, the platform limits the size of a clipped video for various reasons, and a user needs to modify a video file shot or clipped before clipping into a specification meeting platform conditions (a part of the platform limits the duration, and a part of the platform video file is small), otherwise, the video clipping fails. The current solutions on the market have the following problems:
1) the time limit can be solved by editing the video manually, but at present, the method mainly appears as two methods: [ Foundation ] low learning threshold and easy operation: directly discarding the time points before and after the time point when the user manually positions the new video head and tail frames is a reserved selected part; the user manually marks each key frame that needs to be edited into a segment, and then edits the video file into multiple segments of video that are connected end to end. The common difficulty of the two methods is that the manual operation easily causes errors, a user needs to consume a great deal of time and energy in the operation process, the accuracy cannot be guaranteed under the condition of guaranteeing the speed, the method is easy to achieve the purpose of abandoning the method, and the method is very unfriendly.
2) The solution adopted in the market at present for the file size is compression, the flexibility is low by directly utilizing mobile phone compression, the editing condition is not easily and directly met, and the resolution of the compressed video file is reduced to influence the video quality. The user needs to directly cut the video by means of perception in order to guarantee the video quality, the failure rate is high, and frustration is easy to generate when the user is attacked.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The present invention provides a method, an apparatus, a mobile terminal and a storage medium for processing a video segmented clip based on a mobile terminal, aiming at solving the technical problems that the mobile phone video clip in the prior art is time-consuming and labor-consuming, the mobile phone compression flexibility is low by directly using the mobile phone, and the resolution of the compressed video file is reduced to affect the video quality. The video editing method is simple and convenient to operate and high in video editing efficiency.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a video segment clipping processing method based on a mobile terminal, wherein the method comprises:
acquiring a video file needing to be edited;
previewing the video file needing to be edited;
acquiring a clipping instruction of the video file to be clipped, and judging whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment;
when the clipping instruction is a preset segmentation according to the number of segments, controlling to clip the video file needing to be clipped according to the specified number of segments on average;
when the clipping instruction is a preset segmentation according to the size of each segment, controlling to clip the video file needing to be clipped according to the specified segmentation size of each segment;
and saving the segmented and clipped video file.
The video segment clipping processing method based on the mobile terminal, wherein the step of acquiring the video file to be clipped comprises the following steps:
a video fast segmentation operation menu interface is arranged on a mobile terminal in advance:
the video fast segmentation operation menu interface comprises: a video preview area, a frame-by-frame preview area, a value selection area, a segment entry by number of segments and by size of each segment, and an available value cue after the segment.
The video segment clipping processing method based on the mobile terminal, wherein the step of obtaining the video file to be clipped further comprises:
the method for setting the video fast segmentation mode on the mobile terminal in advance comprises the following steps: segmenting according to the number of segments and segmenting according to the size of each segment;
wherein the segmenting by the number of segments is to equally divide the video clip into X segments;
and the segmentation according to the size of each segment is to sequentially segment the video according to the specified size Y of each segment.
The video segment clipping processing method based on the mobile terminal, wherein the step of obtaining the video file to be clipped further comprises:
a specific default value of the number of segments of the segmented clip by the number of segments is set in advance, and a specific default value of the size of each segment of the segmented clip by the size of each segment is set.
The video segmentation clipping processing method based on the mobile terminal, wherein the steps of acquiring the clipping instruction of the video file needing to be clipped and judging whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment comprise:
acquiring a clipping instruction of the video file to be clipped, and judging whether the clipping instruction is a preset clipping instruction segmented according to the number of segments;
and when the clipping instruction is not the preset clipping instruction segmented according to the number of the segments, judging whether the clipping instruction is the preset clipping instruction segmented according to the size of each segment.
The video segmentation clipping processing method based on the mobile terminal, wherein when the clipping instruction is a preset segmentation by the number of segments, the step of controlling the video file to be clipped to be segmented averagely by the number of segments comprises the following steps:
receiving a clipping instruction for rapidly segmenting the video file needing clipping;
when the clipping instruction is a preset clipping instruction segmented according to the number of the segments, acquiring a numerical value X needing to be segmented; controlling to evenly divide the video file clip to be clipped into X sections, wherein the total length of the video file is ZMB, and each section is Z/X MB;
and synchronously displaying the segmentation effect on the sub-video files of the segmented clips in the frame-by-frame preview area, and controlling dragging to view the duration of each segment.
The video segmentation clipping processing method based on the mobile terminal, wherein when the clipping instruction is a preset segmentation according to each segment size, the step of controlling the video file to be clipped according to the appointed segmentation size comprises the following steps:
receiving a clipping instruction for rapidly segmenting the video file needing clipping;
when the clipping instruction is a preset clipping instruction segmented according to the size of each segment, acquiring the size value Y of each segment to be segmented; controlling the video file clips needing to be clipped to be sequentially segmented and clipped according to the specified size of each section of YMB;
and synchronously displaying the segmentation effect on the sub-video files of the segmented clips in the frame-by-frame preview area, and controlling dragging to view the duration of each segment.
A mobile terminal-based video segment clip processing apparatus, wherein the apparatus comprises:
the acquisition module is used for acquiring a video file needing to be edited;
the previewing module is used for previewing the video file needing to be edited;
the clipping instruction judging module is used for acquiring a clipping instruction of the video file to be clipped, and judging whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment;
the segmentation and clipping module according to the number of segments is used for controlling the video file to be clipped to be segmented and clipped averagely according to the specified number of segments when the clipping instruction is a preset segmentation according to the number of segments;
a segment-by-segment size cutting module, configured to control to cut the video file to be cut into segments according to each segment size when the cutting instruction is a preset segment-by-segment size;
and the storage module is used for storing the segmented and clipped video file.
A mobile terminal, wherein the mobile terminal comprises a memory, a processor and a mobile terminal-based video segment clipping processing program stored in the memory and operable on the processor, and the processor implements any of the steps of the mobile terminal-based video segment clipping processing method when executing the mobile terminal-based video segment clipping processing program.
A computer readable storage medium having a mobile terminal based video segment clipping processing program stored thereon, which when executed by a processor, implements the steps of any of the mobile terminal based video segment clipping processing methods.
Has the advantages that: the invention provides a video segmentation and clipping processing method based on a mobile terminal, and provides an interactive mode for rapidly and accurately dividing a video into segments connected end to end, so as to provide a good, simple and rapid mode for a user by judging video occupation ratio and video duration in advance and intelligently dividing a video file stored in a mobile phone album (or a folder and the like). The user can be informed of the byte size of the current original file during previewing any splitting mode, and the size and number of videos of the single video after the splitting is clipped in this mode. The auxiliary user can quickly meet the video sharing condition of the social platform based on the optimal video quality, and convenience is provided for the user.
The invention also has the following advantages:
1) the method can flexibly clip according to different conditions, is quick, efficient and accurate, and is simple to operate and low in learning cost.
2) Videos that exceed the limit are edited on each platform can easily reach the standard by using the function, and user experience is improved.
3) The user can leave the computer and rely on the video clips of various sizes to be operated at the mobile phone end directly, and the mobile terminal meets the requirements of multiple scenes and has wider applicability.
Drawings
Fig. 1 is a flowchart of a specific implementation of a video segment clipping processing method based on a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a specific application of the method for processing a video segment clip based on a mobile terminal according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a selection change process of a video segment-by-segment processing according to a specific application embodiment of the method for processing a video segment by a mobile terminal.
Fig. 4 is a schematic diagram of a segmentation processing selection change process according to each segment size in a specific application embodiment of the video segmentation clipping processing method based on the mobile terminal.
Fig. 5 is a schematic structural diagram of a video segment-by-segment segmentation processing method based on a mobile terminal according to a specific application embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a video segment clipping processing method based on a mobile terminal after segmentation processing according to the size of each segment according to a specific application embodiment of the present invention.
Fig. 7 is a schematic block diagram of a mobile terminal-based video segment clipping processing apparatus according to an embodiment of the present invention.
Fig. 8 is a schematic diagram of an internal structure of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
With the development of science and technology and the continuous improvement of the living standard of people, various mobile terminals such as mobile phones are more and more popular, and the mobile phones become indispensable communication tools in the life of people.
Mobile terminal handset functions are increasing in the prior art, for example video clips are one of them. In the function of the app with video editing (including but not limited to the self-contained gallery-video editing, video-video editing and three-way editing software of the mobile phone) on the mobile phone platform, a user can adjust the video length by dragging the front end and the back end of a clip frame or manually clip a video file into separate multiple video files by using a method of manually inserting a segment node.
With the rapid development of mobile networks, short video media platforms are gradually created in recent years, and the authored content based on the short video platforms is more abundant and mature, and becomes a popular mainstream social form. Users are willing to shoot, record and share the life news, and the users can mutually popularize knowledge, teach skills, show self talent and skill and the like in a video form. The short video utilizes the concentrated knowledge point, the fragmentation time and the like, and is different from the long video, so that the market highland is seized more quickly, and the user is more easy to rely on and resonate.
Under the background of short videos, the platform limits the size of a clipped video for various reasons, and a user needs to modify a video file shot or clipped before clipping into a specification meeting platform conditions (a part of the platform limits the duration, and a part of the platform video file is small), otherwise, the video clipping fails. The current solutions on the market have the following problems:
1) the time limit can be solved by editing the video manually, but at present, the method mainly appears as two methods: [ Foundation ] low learning threshold and easy operation: directly discarding the time points before and after the time point when the user manually positions the new video head and tail frames is a reserved selected part; the user manually marks each key frame that needs to be edited into a segment, and then edits the video file into multiple segments of video that are connected end to end. The common difficulty of the two methods is that the manual operation easily causes errors, a user needs to consume a great deal of time and energy in the operation process, the accuracy cannot be guaranteed under the condition of guaranteeing the speed, the method is easy to achieve the purpose of abandoning the method, and the method is very unfriendly.
2) The solution adopted in the market at present for the file size is compression, the flexibility is low by directly utilizing mobile phone compression, the editing condition is not easily and directly met, and the resolution of the compressed video file is reduced to influence the video quality. The user needs to directly cut the video by means of perception in order to guarantee the video quality, the failure rate is high, and frustration is easy to generate when the user is attacked.
The difficulty superposition cannot be avoided in use at present, the cost of a user using the platform is increased, and the use and learning threshold is improved. There is a need to better address this problem to make it easier, and faster for the user to avoid difficulties before uploading. User experience is improved, users with learning ability in each stage can join the platform to display themselves, and communication promotes multivariate development.
In order to solve the above problems, embodiments of the present invention provide a method for processing a video segment clip based on a mobile terminal, and the present invention provides an interactive mode for rapidly and accurately dividing a video into segments connected end to end, so as to provide a simple and fast way for a user to intelligently split a video file stored in a mobile phone album (or a folder, etc.) by pre-determining a video occupation ratio and a video duration. The user can be informed of the byte size of the current original file during previewing any splitting mode, and the size and number of videos of the single video after the splitting is clipped in this mode. And the auxiliary user can quickly meet the video sharing condition of the social platform based on the optimal video quality.
Exemplary method
First embodiment
As shown in fig. 1, an embodiment of the present invention provides a video segment clipping processing method based on a mobile terminal, where the video segment clipping processing method based on a mobile terminal can be used in mobile devices such as mobile phones and tablet computers. The method in the embodiment of the invention comprises the following steps:
s100, acquiring a video file needing to be edited;
in the embodiment of the invention, when the video file shot by the user needs to be shared to the uploading platform, the video file needs to be uploaded, and the size of the video file is larger than the uploading limit, the video file needs to be edited. A video file to be clipped is selected and the mobile terminal acquires the video file to be clipped.
In order to realize the fast segmentation of the video clip, the embodiment of the invention needs to set a video fast segmentation operation menu interface on the mobile terminal in advance before the implementation of the invention: for example, setting the video fast segmentation operation menu interface includes: a video preview area, a frame-by-frame preview area, a value selection area, a segment entry by number of segments and by size of each segment, and an available value cue after the segment.
And setting an operation function corresponding to the menu interface: the video preview area is used for previewing a video file needing to be edited; the frame-by-frame preview area can realize the frame-by-frame preview of the video file needing to be clipped; the numerical value selection area is used for selecting a specified segmentation number value or selecting a specified segmentation length value of each segment for a video file to be clipped, and the segmentation according to the number of segments and the segmentation according to the size of each segment are used for respectively entering a clipping menu function according to the number of segments and the size of each segment; and the segmented available numerical prompt words are used for segmented prompting.
Specifically, the method for setting a video fast segmentation mode on the mobile terminal in advance comprises the following steps: segmenting according to the number of segments and segmenting according to the size of each segment; wherein the segmenting by the number of segments is to equally divide the video clip into X segments; for example, if the video file is divided into X segments on average, the total length of the video file is ZMB, and each segment is Z/X MB.
The segmenting according to the size of each segment is to sequentially segment the video according to the specified size Y of each segment, for example, each segment of YMB after segmentation is shared by OMB; expected to be divided into O/Y sections.
The present invention also sets in advance a specific segment number default value, for example, 6 segments, for the number of segments to segment clips, and a specific per-segment size default value, for example, 10MB per segment, for the size of each segment to segment clips, before the specific embodiment.
Step S200, previewing the video file needing to be clipped;
in the embodiment of the invention, when the video file needs to be edited, the video file needing to be edited can be previewed. The user can conveniently check whether the video file needing to be edited is correct.
Step S300, a clipping instruction of the video file to be clipped is obtained, and whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment is judged;
in this embodiment, after previewing a video file to be edited before editing, a user may select a corresponding editing command through a preset menu. The mobile terminal of the present invention obtains the clipping instruction for the video file to be clipped, and determines whether the clipping instruction is a preset number of segments or a segment with a size of each segment.
For example, after a user clicks the fast segmentation to enter a video clip, the function selects a clip instruction, a clip instruction for the video file to be clipped is obtained, and whether the clip instruction is a preset clip instruction segmented according to the number of segments is judged; and when the clipping instruction is not the preset clipping instruction segmented according to the number of the segments, judging whether the clipping instruction is the preset clipping instruction segmented according to the size of each segment.
Step S400, when the clipping instruction is a preset segmentation according to the number of segments, controlling to clip the video file needing to be clipped according to the specified number of segments on average;
in the embodiment of the invention, when the clipping instruction is a preset segmentation according to the number of segments, the video file needing to be clipped is controlled to be segmented and clipped according to the specified number of segments on average.
Specifically, for example, the mobile terminal receives a clipping instruction for rapidly segmenting the video file needing to be clipped; when the clipping instruction is a preset clipping instruction segmented according to the number of the segments, acquiring a numerical value X needing to be segmented; controlling to evenly divide the video file clip to be clipped into X sections, wherein the total length of the video file is ZMB, and each section is Z/X MB; that is, in the embodiment of the present invention, if the total length of the video file to be clipped is 110MB and the number of required segments set by the user is 10 segments, the video file with the total length of 110MB is averagely divided into 10 segments, each segment being 11 MB.
In the embodiment of the invention, the segmentation effect can be synchronously displayed in the frame-by-frame preview area for the sub-video files which are segmented and clipped, and the length of each segment of time can be checked by controlling dragging.
In the embodiment of the present invention, the number of segments: the video clipping is performed on the condition of the number of video files obtained after average segmentation clipping. The average division is X sections: the number of the video files obtained after the clipping is finished is determined according to the average number of the video files obtained after the segmentation clipping (X is a value selected by a user in real time).
In the invention, the video file clip is averagely divided into X segments, the total length of the video file is ZMB, each segment is Z/X MB, X is a real-time numerical value, and MB is megabyte. The method refers to the condition of the number of video files obtained after average segmentation clipping, and the sum of the expected byte size of a single file of the video files obtained after clipping and the byte size of all the files is the original file size.
Step S500, when the clipping instruction is a preset segmentation according to the size of each segment, controlling to clip the video file needing to be clipped according to the specified segmentation size of each segment;
in the embodiment of the invention, when the clipping instruction is preset to be segmented according to the size of each segment, the video file needing clipping is controlled to be clipped according to the specified size of each segment.
In the invention, the size of each section: means that video clipping is performed on the condition of the byte size of a single video obtained after segmented clipping.
Specifically, for example, when the mobile terminal receives a clipping instruction for rapidly segmenting the video file to be clipped; when the clipping instruction is a preset clipping instruction segmented according to the size of each segment, acquiring the size value Y of each segment to be segmented; controlling the video file clips needing to be clipped to be sequentially segmented and clipped according to the specified size of each section of YMB; for example, when the total length of a video file to be clipped is 120MB, and a platform that a user needs to upload a video can only receive 12M video files per segment, in this embodiment, the user can set a clip by segment according to the size of each segment, and then the video file with the total size of 120MB is rapidly clipped according to the size of each segment of 12M, so that the clip 120M/12M is 10 sub-video files.
In the embodiment of the invention, the segmentation effect can be synchronously displayed in the frame-by-frame preview area for the sub-video files which are segmented and clipped, and the length of each segment of time can be checked by controlling dragging.
And step S600, storing the segmented and clipped video file.
In the invention, the video file after the fast segmentation and clipping can be saved by receiving the user operation instruction.
The following further describes a video segment clipping processing method based on a mobile terminal according to a specific application embodiment;
as shown in fig. 2, the method for processing a video segment clip based on a mobile terminal according to this embodiment includes the following steps:
step S10, start;
step S11, uploading platform operation;
step S12, judging whether the current video file needing to be uploaded exceeds the maximum uploading byte or duration limit of the video, and if not, entering the step S13; if yes, the flow proceeds to step S14;
s13, uploading is successful;
step S14, entering a gallery, and entering step S15;
step S15, previewing a video file to be uploaded; proceeding to S16;
step S16, clicking and editing; proceeding to S17;
step S17, clicking to enter a quick segmentation function; proceeding to S17;
step S18, judging whether average segmented clip is needed, if yes, going to step S20, if no, going to step S30;
step S20, selecting clips according to the number of paragraphs, and entering step S21;
step S21, judging whether the default value needs to be modified, if yes, going to step S22, and if no, going to step S23;
step S22, dragging the selection bar to a corresponding numerical value, and entering step S23;
step S23, click to save, and go to step S40;
step S30, clipping according to the size of each segment after segmentation, and entering step S31;
step S31, judging whether the default value needs to be modified, if yes, going to step S32, and if no, going to step S33;
step S32, dragging the selection bar to adjust to a corresponding numerical value, and entering step S33;
step S33, click to save, and go to step S40;
and step S40, finishing the segmentation clipping and ending the flow.
In the embodiment of the invention, when the user needs to upload the video file, the user clicks the album to view the video to be uploaded and clicks and edits on the interface. As shown in fig. 3 and 4, fig. 3 is a schematic diagram of a segmentation process selection change process by segment number in an embodiment of a specific application of the method of the present invention, and fig. 4 is a schematic diagram of a segmentation process selection change process by segment size in an embodiment of a specific application of the method of the present invention. Clicking quick segmentation to enter the function, wherein the interface is divided into a video preview area, a frame-by-frame preview area, a numerical value selection area, a segment entry according to the number of segments and the size of the segment, and an available numerical value prompt language after the segment
If the user needs to average clip the segmented video, click "number of segments" to enter the function interface, as shown in fig. 3 and 5. In principle, the function is a default option, and a user directly drags a numerical value in a range to select the required byte size of the segmented single-segment video. When a certain numerical value is selected, the algorithm real-time prompts that the length of each segment is Z/X MB, for example, the average division is X segments, the total length of a video file is ZMB, and each segment is Z/X MB, for example, as shown in FIG. 3, the video is 500MB, the average division is 3 segments, each segment is about 167MB, and the frame-by-frame preview area synchronous display segmentation effect dragging can view the length of each segment.
As shown in fig. 4 and 6, if the user needs to control the size of the single-segment video after the editing, the user clicks "size per segment" to enter the function interface, and drags the numerical value within the range to select the numerical value of the number of the segments after the editing. When a certain numerical value is selected, prompting in real time according to an algorithm, for example, each segmented YMB and OMB are shared; expected to be divided into O/Y sections. ", for example, as shown in fig. 4, the total video length is 160MB, the clip is sliced by 50MB per segment, and can be divided into about 4 segments, the end is only 10MB, and then the frame-by-frame preview area synchronously displays the slicing effect dragging each viewable length.
In the embodiment of the invention, when the clipping is finished, the upper right storage button is clicked, and the segmented and clipped video file is stored in the album.
Therefore, the embodiment of the invention can be flexibly edited according to different conditions, is rapid, efficient and accurate, and is simple to operate and low in learning cost. The video which is uploaded on each platform and exceeds the limit can easily reach the standard by using the function, and the user experience is improved. The user can leave the computer and rely on the video clips of direct operation various volumes at the cell-phone end, and the removal end satisfies the scene many, and the application is wider.
Exemplary device
As shown in fig. 7, an embodiment of the present invention provides a mobile terminal-based video segment clip processing apparatus, including:
an obtaining module 810, configured to obtain a video file to be edited;
a preview module 820, configured to preview the video file to be clipped;
a clipping instruction determining module 830, configured to obtain a clipping instruction for the video file to be clipped, and determine whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment;
a segmentation quantity-based segmentation clipping module 840, configured to control to average segment the video file to be clipped according to a specified number of segments when the clipping instruction is a preset segmentation quantity-based segmentation;
a segment-by-segment size cutting module 850, configured to control to cut the video file to be cut into segments according to each segment size when the cutting instruction is a preset segment-by-segment size;
a saving module 860, configured to save the segmented and clipped video file, as described above.
Based on the above embodiments, the present invention further provides a terminal device, and a schematic block diagram thereof may be as shown in fig. 8. The terminal equipment comprises a processor, a memory, a network interface, a display screen and a camera which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a mobile terminal based video segment clipping process. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen.
It will be understood by those skilled in the art that the block diagram in fig. 8 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the terminal device to which the solution of the present invention is applied, and a specific terminal device may include more or less components than those in the figure, or combine some components, or have different component arrangements.
In one embodiment, there is provided a terminal device comprising a memory, a processor, and a mobile terminal-based video segment clipping processing program stored on and executable on the processor, the processing performing the steps of:
acquiring a video file needing to be edited;
previewing the video file needing to be edited;
acquiring a clipping instruction of the video file to be clipped, and judging whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment;
when the clipping instruction is a preset segmentation according to the number of segments, controlling to clip the video file needing to be clipped according to the specified number of segments on average;
when the clipping instruction is a preset segmentation according to the size of each segment, controlling to clip the video file needing to be clipped according to the specified segmentation size of each segment;
and saving the segmented and clipped video file.
Wherein the step of obtaining the video file to be edited comprises the following steps:
a video fast segmentation operation menu interface is arranged on a mobile terminal in advance:
the video fast segmentation operation menu interface comprises: a video preview area, a frame-by-frame preview area, a value selection area, a segment entry by number of segments and by size of each segment, and an available value cue after the segment.
Wherein, the step of obtaining the video file needing to be clipped further comprises the following steps:
the method for setting the video fast segmentation mode on the mobile terminal in advance comprises the following steps: segmenting according to the number of segments and segmenting according to the size of each segment;
wherein the segmenting by the number of segments is to equally divide the video clip into X segments;
and the segmentation according to the size of each segment is to sequentially segment the video according to the specified size Y of each segment.
Wherein, the step of obtaining the video file needing to be clipped further comprises the following steps:
a specific default value of the number of segments of the segmented clip by the number of segments is set in advance, and a specific default value of the size of each segment of the segmented clip by the size of each segment is set.
The step of acquiring a clipping instruction for the video file to be clipped, and judging whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment, comprises:
acquiring a clipping instruction of the video file to be clipped, and judging whether the clipping instruction is a preset clipping instruction segmented according to the number of segments;
and when the clipping instruction is not the preset clipping instruction segmented according to the number of the segments, judging whether the clipping instruction is the preset clipping instruction segmented according to the size of each segment.
Wherein, when the clipping instruction is a preset segmentation by the number of segments, the step of controlling the video file to be clipped to be segmented averagely by the designated number of segments comprises the following steps:
receiving a clipping instruction for rapidly segmenting the video file needing clipping;
when the clipping instruction is a preset clipping instruction segmented according to the number of the segments, acquiring a numerical value X needing to be segmented; controlling to evenly divide the video file clip to be clipped into X sections, wherein the total length of the video file is ZMB, and each section is Z/X MB;
and synchronously displaying the segmentation effect on the sub-video files of the segmented clips in the frame-by-frame preview area, and controlling dragging to view the duration of each segment.
Wherein, when the clipping instruction is a preset per-segment size segment, the step of controlling the video file to be clipped in a specified per-segment size segment comprises:
receiving a clipping instruction for rapidly segmenting the video file needing clipping;
when the clipping instruction is a preset clipping instruction segmented according to the size of each segment, acquiring the size value Y of each segment to be segmented; controlling the video file clips needing to be clipped to be sequentially segmented and clipped according to the specified size of each section of YMB;
and synchronously displaying the segmentation effect on the sub-video files of the segmented clips in the frame-by-frame preview area, and controlling dragging to view the duration of each segment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synch Lnk DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
In summary, the invention provides a video segmentation and clipping processing method based on a mobile terminal, and provides an interactive mode for rapidly and accurately dividing a video into segments connected end to end, so as to provide a good, simple and rapid mode for a user by judging video occupation ratio and video duration in advance and intelligently splitting video files stored in a mobile phone album (or a folder and the like). The user can be informed of the byte size of the current original file during previewing any splitting mode, and the size and number of videos of the single video after the splitting is clipped in this mode. The auxiliary user can quickly meet the video sharing condition of the social platform based on the optimal video quality, and convenience is provided for the user.
The invention also has the following advantages:
1) the method can flexibly clip according to different conditions, is quick, efficient and accurate, and is simple to operate and low in learning cost.
2) Videos that exceed the limit are edited on each platform can easily reach the standard by using the function, and user experience is improved.
3) The user can leave the computer and rely on the video clips of various sizes to be operated at the mobile phone end directly, and the mobile terminal meets the requirements of multiple scenes and has wider applicability.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A video segment clipping processing method based on a mobile terminal is characterized by comprising the following steps:
acquiring a video file needing to be edited;
previewing the video file needing to be edited;
acquiring a clipping instruction of the video file to be clipped, and judging whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment;
when the clipping instruction is a preset segmentation according to the number of segments, controlling to clip the video file needing to be clipped according to the specified number of segments on average;
when the clipping instruction is a preset segmentation according to the size of each segment, controlling to clip the video file needing to be clipped according to the specified segmentation size of each segment;
and saving the segmented and clipped video file.
2. The mobile terminal-based video segment clipping processing method according to claim 1, wherein the step of obtaining the video file to be clipped is preceded by:
a video fast segmentation operation menu interface is arranged on a mobile terminal in advance:
the video fast segmentation operation menu interface comprises: a video preview area, a frame-by-frame preview area, a value selection area, a segment entry by number of segments and by size of each segment, and an available value cue after the segment.
3. The mobile terminal-based video segment clipping processing method according to claim 1, wherein the step of obtaining the video file to be clipped further comprises:
the method for setting the video fast segmentation mode on the mobile terminal in advance comprises the following steps: segmenting according to the number of segments and segmenting according to the size of each segment;
wherein the segmenting by the number of segments is to equally divide the video clip into X segments;
and the segmentation according to the size of each segment is to sequentially segment the video according to the specified size Y of each segment.
4. The mobile terminal-based video segment clipping processing method according to claim 1, wherein the step of obtaining the video file to be clipped further comprises:
a specific default value of the number of segments of the segmented clip by the number of segments is set in advance, and a specific default value of the size of each segment of the segmented clip by the size of each segment is set.
5. The method according to claim 1, wherein the step of obtaining a clipping instruction for the video file to be clipped, and determining whether the clipping instruction is a preset number of segments or a preset size segment comprises:
acquiring a clipping instruction of the video file to be clipped, and judging whether the clipping instruction is a preset clipping instruction segmented according to the number of segments;
and when the clipping instruction is not the preset clipping instruction segmented according to the number of the segments, judging whether the clipping instruction is the preset clipping instruction segmented according to the size of each segment.
6. The mobile terminal-based video segment clipping processing method according to claim 1, wherein the step of controlling the video file to be clipped to be segmented averagely by a specified number of segments when the clipping instruction is a preset number of segments comprises:
receiving a clipping instruction for rapidly segmenting the video file needing clipping;
when the clipping instruction is a preset clipping instruction segmented according to the number of the segments, acquiring a numerical value X needing to be segmented; controlling to evenly divide the video file clip to be clipped into X sections, wherein the total length of the video file is ZMB, and each section is Z/X MB;
and synchronously displaying the segmentation effect on the sub-video files of the segmented clips in the frame-by-frame preview area, and controlling dragging to view the duration of each segment.
7. The method according to claim 1, wherein when the clipping instruction is a preset per-segment size segment, the step of controlling the clipping of the video file to be clipped in a specified per-segment size segment comprises:
receiving a clipping instruction for rapidly segmenting the video file needing clipping;
when the clipping instruction is a preset clipping instruction segmented according to the size of each segment, acquiring the size value Y of each segment to be segmented; controlling the video file clips needing to be clipped to be sequentially segmented and clipped according to the specified size of each section of YMB;
and synchronously displaying the segmentation effect on the sub-video files of the segmented clips in the frame-by-frame preview area, and controlling dragging to view the duration of each segment.
8. A mobile terminal-based video segment clip processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring a video file needing to be edited;
the previewing module is used for previewing the video file needing to be edited;
the clipping instruction judging module is used for acquiring a clipping instruction of the video file to be clipped, and judging whether the clipping instruction is a preset segmentation according to the number of segments or a segmentation according to the size of each segment;
the segmentation and clipping module according to the number of segments is used for controlling the video file to be clipped to be segmented and clipped averagely according to the specified number of segments when the clipping instruction is a preset segmentation according to the number of segments;
a segment-by-segment size cutting module, configured to control to cut the video file to be cut into segments according to each segment size when the cutting instruction is a preset segment-by-segment size;
and the storage module is used for storing the segmented and clipped video file.
9. A mobile terminal, characterized in that the mobile terminal comprises a memory, a processor and a mobile terminal-based video segment clipping processing program stored in the memory and executable on the processor, and the processor implements the steps of the mobile terminal-based video segment clipping processing method according to any one of claims 1 to 7 when executing the mobile terminal-based video segment clipping processing program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a mobile terminal based video segment clipping processing program, which when executed by a processor, carries out the steps of the mobile terminal based video segment clipping processing method according to any one of claims 1 to 7.
CN202110711046.4A 2021-06-25 2021-06-25 Video segmentation clipping processing method and device based on mobile terminal and terminal Pending CN113542870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110711046.4A CN113542870A (en) 2021-06-25 2021-06-25 Video segmentation clipping processing method and device based on mobile terminal and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110711046.4A CN113542870A (en) 2021-06-25 2021-06-25 Video segmentation clipping processing method and device based on mobile terminal and terminal

Publications (1)

Publication Number Publication Date
CN113542870A true CN113542870A (en) 2021-10-22

Family

ID=78096757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110711046.4A Pending CN113542870A (en) 2021-06-25 2021-06-25 Video segmentation clipping processing method and device based on mobile terminal and terminal

Country Status (1)

Country Link
CN (1) CN113542870A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115633194A (en) * 2022-12-21 2023-01-20 易方信息科技股份有限公司 Live broadcast playback method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184960A (en) * 2014-08-19 2014-12-03 厦门美图之家科技有限公司 Method for carrying out special effect processing on video file
CN104301805A (en) * 2014-09-26 2015-01-21 北京奇艺世纪科技有限公司 Method and device for estimating time span of video
CN106170786A (en) * 2013-03-08 2016-11-30 汤姆逊许可公司 Method and apparatus for automatic video partition
CN107888988A (en) * 2017-11-17 2018-04-06 广东小天才科技有限公司 Video editing method and electronic equipment
CN108769549A (en) * 2018-06-29 2018-11-06 咪咕动漫有限公司 A kind of image processing method, device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106170786A (en) * 2013-03-08 2016-11-30 汤姆逊许可公司 Method and apparatus for automatic video partition
CN104184960A (en) * 2014-08-19 2014-12-03 厦门美图之家科技有限公司 Method for carrying out special effect processing on video file
CN104301805A (en) * 2014-09-26 2015-01-21 北京奇艺世纪科技有限公司 Method and device for estimating time span of video
CN107888988A (en) * 2017-11-17 2018-04-06 广东小天才科技有限公司 Video editing method and electronic equipment
CN108769549A (en) * 2018-06-29 2018-11-06 咪咕动漫有限公司 A kind of image processing method, device and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115633194A (en) * 2022-12-21 2023-01-20 易方信息科技股份有限公司 Live broadcast playback method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10304231B2 (en) Image processing method and image processing device to create a moving image based on a trajectory of user input
CN112422831A (en) Video generation method and device, computer equipment and storage medium
US20160173789A1 (en) Image generation method and apparatus, and mobile terminal
CN112070775B (en) Remote sensing image optimization processing method and device, electronic equipment and storage medium
CN112860944A (en) Video rendering method, device, equipment, storage medium and computer program product
CN108846878A (en) Face textures generation method, device, readable storage medium storing program for executing and mobile terminal
CN110830716B (en) Image generation method and device, computer equipment and storage medium
CN113542870A (en) Video segmentation clipping processing method and device based on mobile terminal and terminal
WO2022116886A1 (en) Screenshot method and screenshot apparatus
CN105279778A (en) Method and terminal for picture color filling
CN112836086A (en) Video processing method and device and electronic equipment
CN112381907A (en) Multimedia track drawing method and system
CN104333699A (en) Method and device for synthesizing user-defined photographing region
CN107092428A (en) A kind of picture amending method and device
CN111833234A (en) Image display method, image processing apparatus, and computer-readable storage medium
CN114430460A (en) Shooting method and device and electronic equipment
CN113891127A (en) Video editing method and device and electronic equipment
CN115278051B (en) Method, apparatus, device and storage medium for content shooting
WO2022267609A1 (en) Mobile terminal-based multi-mode video compression processing method and apparatus, and terminal
CN112422846B (en) Video recording method and electronic equipment
CN114915851A (en) Video recording and playing method and device
US20140016914A1 (en) Editing apparatus, editing method, program and storage medium
US20200413002A1 (en) Method, apparatus, device and storage medium for controlling video playback speed
CN113592983A (en) Image processing method and device and computer readable storage medium
CN115225929B (en) Live broadcast page configuration method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20211022