CN109361956A - Time-based video cutting method and Related product - Google Patents

Time-based video cutting method and Related product Download PDF

Info

Publication number
CN109361956A
CN109361956A CN201811400191.5A CN201811400191A CN109361956A CN 109361956 A CN109361956 A CN 109361956A CN 201811400191 A CN201811400191 A CN 201811400191A CN 109361956 A CN109361956 A CN 109361956A
Authority
CN
China
Prior art keywords
video
splicing
multiple periods
fluency
user
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.)
Granted
Application number
CN201811400191.5A
Other languages
Chinese (zh)
Other versions
CN109361956B (en
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.)
Guangxi Baduo Media Technology Co.,Ltd.
Original Assignee
Shenzhen Yida Culture Media 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 Shenzhen Yida Culture Media Co Ltd filed Critical Shenzhen Yida Culture Media Co Ltd
Priority to CN201811400191.5A priority Critical patent/CN109361956B/en
Publication of CN109361956A publication Critical patent/CN109361956A/en
Application granted granted Critical
Publication of CN109361956B publication Critical patent/CN109361956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/4402Processing 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 reformatting operations of video signals for household redistribution, storage or real-time display

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a kind of time-based video cutting method and Related product, and described method includes following steps: mobile terminal receives the short video capture request of user, executes short video capture and obtains the first video file;Mobile terminal receives the splicing request of user's selection, and splicing request includes multiple periods of splicing;Mobile terminal is in chronological sequence sequentially spliced the multistage video of multiple periods to obtain the second video.Technical solution provided by the present application has the advantages that user experience is high.

Description

Time-based video cutting method and Related product
Technical field
The present invention relates to cultural medium technical fields, and in particular to a kind of time-based video cutting method and related production Product.
Background technique
Short-sighted frequency, that is, short-movie video is a kind of internet content circulation way, usually propagates on internet new media Video transmission content of the duration within 1 minute.
Short-sighted frequency is merely capable of compressing the time after shooting, and the shearing of video can not be realized as film, The effect for affecting short-sighted frequency in this way affects the Experience Degree of user.
Summary of the invention
The embodiment of the invention provides a kind of time-based video cutting method and Related products, may be implemented to shooting Video realizes shearing, has the advantages that improve user experience.
In a first aspect, the embodiment of the present invention provides a kind of time-based video cutting method, the method includes as follows Step:
Mobile terminal receives the short video capture request of user, executes short video capture and obtains the first video file;
Mobile terminal receives the splicing request of user's selection, and splicing request includes multiple periods of splicing;
Mobile terminal is in chronological sequence sequentially spliced the multistage video of multiple periods to obtain the second video.
Optionally, the mobile terminal is in chronological sequence sequentially spliced the multistage video of multiple periods to obtain Two videos specifically include:
It determines multiple periods, the first video is subjected to shearing by multiple periods and forms multistage video, according to the time period Sequence caches after being numbered, and then by the multistage video of caching, splicing obtains the second video from small to large by number.
Optionally, the method also includes:
After second video is compressed into the corresponding third video of setting time by compression time set by user, third is uploaded Video.
Optionally, the method also includes:
Determine the second fluency of the second video and the first fluency of the first video, such as the first fluency is greater than second Fluency deletes the second video.
Second aspect, provides a kind of terminal, and the terminal includes: camera, processor and display screen,
The camera executes short video capture and obtains when the short video capture for collecting user in display screen is requested To the first video file;
The processor determines that identical paragraph is corresponding in background music for extracting the background music of the first video file First time period and second time period;
The display screen is also used to receive the splicing request of user's selection,
The processor is also used to multiple periods that splicing request includes splicing;The multistage of multiple periods is regarded Frequency is in chronological sequence sequentially spliced to obtain the second video.
Optionally, the processor is specifically used for determining multiple periods, the first video is cut by multiple periods Cut to form multistage video, sequence according to the time period caches after being numbered, then by the multistage video of caching by number from it is small to Big splicing obtains the second video.
Optionally, the processor is also used to the second video being compressed into setting time by compression time set by user After corresponding third video, third video is uploaded.
Optionally, the processor, be also used to determine the second video the second fluency and the first video it is first-class Smooth degree, such as the first fluency are greater than the second fluency, delete the second video.
Optionally, the terminal are as follows: tablet computer or smart mobile phone.
The third aspect provides a kind of computer readable storage medium, and storage is used for the program of electronic data interchange, In, described program makes terminal execute the method that first aspect provides.
The implementation of the embodiments of the present invention has the following beneficial effects:
As can be seen that receiving user to this after technical solution provided by the present application determines the first video file shot The splicing of first video is requested, and requests corresponding multiple periods that the first video is cut into multistage video according to splicing, then Multistage video is combined to obtain the second video, time-based video shearing is realized in this way, improves the experience of user Degree.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of structural schematic diagram of mobile terminal.
Fig. 2 is a kind of flow diagram of time-based video cutting method.
Fig. 3 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that the special characteristic, result or the characteristic that describe can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Refering to fig. 1, Fig. 1 provides a kind of mobile terminal, which is specifically as follows smart phone, the smart phone It can specifically include for the mobile terminal of the systems such as IOS, Android, above-mentioned mobile terminal: processor, memory, camera And display screen, above-mentioned component can be connected by bus, can also be connected by other means, the application is not intended to limit above-mentioned company The concrete mode connect.
Referring to Fig.2, Fig. 2 provides a kind of time-based video cutting method, this method is as shown in Fig. 2, by such as Fig. 1 institute The mobile terminal that shows executes, and this method comprises the following steps:
Step S201, mobile terminal receives the short video capture request of user, executes short video capture and obtains the first video File;
Step S202, mobile terminal receives the splicing request of user's selection, and splicing request includes multiple times of splicing Section;
Step S203, mobile terminal is in chronological sequence sequentially spliced the multistage video of multiple periods to obtain second Video.
After technical solution provided by the present application determines the first video file of shooting, user is received to first video Splicing request requests corresponding multiple periods that the first video is cut into multistage video, then by multistage video according to splicing It combines to obtain the second video, realizes time-based video shearing in this way, improve the Experience Degree of user.
The implementation method of above-mentioned steps S203 can specifically include:
It determines multiple periods, the first video is subjected to shearing by multiple periods and forms multistage video, according to the time period Sequence caches after being numbered, and then by the multistage video of caching, splicing obtains the second video from small to large by number.
Optionally, the above method can also include:
After second video is compressed into the corresponding third video of setting time by compression time set by user, third is uploaded Video.
Optionally, the above method can also include:
Determine the second fluency of the second video and the first fluency of the first video, such as the first fluency is greater than second Fluency deletes the second video.
The determination method of above-mentioned fluency is specifically as follows, the consecutive frame of the first video is compared determine whether it is adjacent Frame is the first quantity of consistent picture frame, is compared to the consecutive frame to the second video and determines whether that consecutive frame is consistent Second quantity of picture frame, such as the first quantity determine that the first fluency is greater than the second fluency less than the second quantity.
Its based on principle be, for video capture, act it is more coherent, then the consistent probability of consecutive frame is smaller, conversely, If having mistake, in malfunction, personage has certain pause, thus has the identical situation of consecutive frame and goes out Existing, such case is more, then its fluency is poorer.
Optionally, the above method can also include:
To in the second video there is jowled video frame to carry out smooth processing.
It is above-mentioned that there is the smooth processing of jowled video frame progress can specifically include:
The pth video frame of the second video is extracted, pth video frame lines line is obtained, by adjacent 2 lines lines and 2 lines The region that the distance of line is less than set distance is determined as region to be determined, and region to be determined is constructed to the equal space line of λ lines line, Extract the picture comparison between equal space line determines whether it is consistent, it is such as consistent (for example non-double chin region, picture be it is consistent, The mode that picture compares can be realized by existing alignments), determine that the region to be determined is non-double chin region, such as Inconsistent (double chin is unevenly distributed due to meat, the picture different from each region), determines the region to be determined For double chin region, the upper area in double chin region, which constructs, goes up equal space line, in extraction between equal space line and upper lines line γ picture, under extending downwardly λ -1 (i.e. each equal space line locals with γ picture replace) by the γ picture replacement is double afterwards Bar region complete smooth processing.
Above-mentioned acquisition pth video frame lines line can specifically include:
The rgb value of all pixels point of pth video frame is marked as different colours, determines the different colours in same color Line segment obtains the distance between different colours line segment if the different colours line segment quantity in same color is more than 2, such as should be away from From set distance threshold value is less than, determine that different colours line segment is lines line.
For lines line, skin is divided into multiple regions, the rgb value of multiple regions because being all skin, Rgb value is identical, then the color of skin is all identical color when with color mark, but for lines line, due to The reason of its folding and light, cause the lines line different from the rgb value of skin, due to marking different colors, the line The color of route and the color of skin area are inconsistent, and it is line segment, in addition, having double chin at least to have 2 Above lines line, therefore quantity is also 2 or more.Lines line can be distinguished by the method.
A kind of terminal is provided refering to Fig. 3, Fig. 3, the terminal includes: camera, processor and display screen,
The camera executes short video capture and obtains when the short video capture for collecting user in display screen is requested To the first video file;
The processor determines that identical paragraph is corresponding in background music for extracting the background music of the first video file First time period and second time period;
The display screen is also used to receive the splicing request of user's selection,
The processor is also used to multiple periods that splicing request includes splicing;The multistage of multiple periods is regarded Frequency is in chronological sequence sequentially spliced to obtain the second video.
The embodiment of the present invention also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer A kind of some or all of time-based video cutting method step.
The embodiment of the present invention also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side Some or all of the time-based video cutting method of any one recorded in method embodiment step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to alternative embodiment, and related actions and modules is not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the present invention Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention There is change place, in conclusion the contents of this specification are not to be construed as limiting the invention.

Claims (10)

1. a kind of time-based video cutting method, which is characterized in that described method includes following steps:
Mobile terminal receives the short video capture request of user, executes short video capture and obtains the first video file;
Mobile terminal receives the splicing request of user's selection, and splicing request includes multiple periods of splicing;
Mobile terminal is in chronological sequence sequentially spliced the multistage video of multiple periods to obtain the second video.
2. the method according to claim 1, wherein the mobile terminal presses the multistage video of multiple periods Chronological order, which is spliced to obtain the second video, to be specifically included:
Determine multiple periods, the first video, which is carried out shearing by multiple periods, forms multistage video, sequence according to the time period It is cached after being numbered, then by the multistage video of caching, splicing obtains the second video from small to large by number.
3. the method according to claim 1, wherein the method also includes:
After second video is compressed into the corresponding third video of setting time by compression time set by user, third view is uploaded Frequently.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Determine the second fluency of the second video and the first fluency of the first video, such as it is smooth to be greater than second for the first fluency Degree deletes the second video.
5. a kind of terminal, the terminal includes: camera, processor and display screen, which is characterized in that
The camera executes short video capture and obtains the when the short video capture for collecting user in display screen is requested One video file;
The processor determines identical paragraph corresponding in background music for extracting the background music of the first video file One period and second time period;
The display screen is also used to receive the splicing request of user's selection,
The processor is also used to multiple periods that splicing request includes splicing;The multistage video of multiple periods is pressed Chronological order is spliced to obtain the second video.
6. terminal according to claim 5, which is characterized in that
The processor is specifically used for determining multiple periods, and the first video is carried out shearing by multiple periods and forms multistage Video, sequence according to the time period cache after being numbered, and then by the multistage video of caching, splicing is obtained from small to large by number Second video.
7. terminal according to claim 5, which is characterized in that
The processor is also used to the second video being compressed into the corresponding third view of setting time by compression time set by user After frequency, third video is uploaded.
8. terminal according to claim 5, which is characterized in that
The processor is also used to determine the second fluency of the second video and the first fluency of the first video, such as first Fluency is greater than the second fluency, deletes the second video.
9. according to terminal described in claim 5-8 any one, which is characterized in that
The terminal are as follows: tablet computer or smart mobile phone.
10. a kind of computer readable storage medium, storage is used for the program of electronic data interchange, wherein described program makes Terminal executes the method provided such as claim 1-4 any one.
CN201811400191.5A 2018-11-22 2018-11-22 Time-based video cropping methods and related products Active CN109361956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811400191.5A CN109361956B (en) 2018-11-22 2018-11-22 Time-based video cropping methods and related products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811400191.5A CN109361956B (en) 2018-11-22 2018-11-22 Time-based video cropping methods and related products

Publications (2)

Publication Number Publication Date
CN109361956A true CN109361956A (en) 2019-02-19
CN109361956B CN109361956B (en) 2021-04-30

Family

ID=65338339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811400191.5A Active CN109361956B (en) 2018-11-22 2018-11-22 Time-based video cropping methods and related products

Country Status (1)

Country Link
CN (1) CN109361956B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883607A (en) * 2015-06-05 2015-09-02 广东欧珀移动通信有限公司 Video screenshot or clipping method, video screenshot or clipping device and mobile device
US20160104508A1 (en) * 2014-10-10 2016-04-14 Samsung Electronics Co., Ltd. Video editing using contextual data and content discovery using clusters
CN106791933A (en) * 2017-01-20 2017-05-31 杭州当虹科技有限公司 The method and system of the online quick editor's video based on web terminal
CN107256117A (en) * 2017-04-19 2017-10-17 上海卓易电子科技有限公司 The method and its mobile terminal of a kind of video editing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160104508A1 (en) * 2014-10-10 2016-04-14 Samsung Electronics Co., Ltd. Video editing using contextual data and content discovery using clusters
CN104883607A (en) * 2015-06-05 2015-09-02 广东欧珀移动通信有限公司 Video screenshot or clipping method, video screenshot or clipping device and mobile device
CN106791933A (en) * 2017-01-20 2017-05-31 杭州当虹科技有限公司 The method and system of the online quick editor's video based on web terminal
CN107256117A (en) * 2017-04-19 2017-10-17 上海卓易电子科技有限公司 The method and its mobile terminal of a kind of video editing

Also Published As

Publication number Publication date
CN109361956B (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN105549936B (en) Data table display method and device
CN106095923A (en) A kind of method and system adding data of being on the list in orderly list
CN105354231A (en) Image selection method and apparatus, and image processing method and apparatus
CN110876078B (en) Animation picture processing method and device, storage medium and processor
CN105407148B (en) A kind of method, apparatus and system of client-based network data synchronizing
CN111221861A (en) Method and device for synchronizing local cache and database data
CN109361956A (en) Time-based video cutting method and Related product
CN110554992A (en) Distributed metadata path management method, system, terminal and storage medium
CN109688433A (en) Shearing video method and Related product based on picture
CN109413355A (en) A kind of method and terminal device for quickly transferring monitoring video
CN110134867A (en) Corporation information query method and Related product
CN109740431A (en) From the eyebrow processing method and Related product of the head portrait picture to shoot the video
CN109697746A (en) Self-timer video cartoon head portrait stacking method and Related product
CN105898399A (en) Video resource loading method and device and smart television
CN109089159A (en) The splicing method for previewing and Related product of promotion video
CN109547850A (en) Video capture error correction method and Related product
CN109640170B (en) Speed processing method of self-shooting video, terminal and storage medium
CN109525499A (en) The flow managing method and Related product of short Video Applications
CN109688452A (en) Pagination Display stage property stacking method and Related product
CN110147462A (en) The verification method and Related product of the short-sighted frequency of religion
CN109712103A (en) From the eyes processing method and Related product of the Thunder God picture that shoots the video
CN109618211A (en) Short-sighted channel tool edit methods and Related product
CN109697246A (en) The concern people video recommendation method and Related product of short-sighted frequency
CN109671014A (en) From the plait stacking method and Related product to shoot the video
CN109712066A (en) From animal head ear adding method and the Related product of shooting the video

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210402

Address after: 3075, 3rd floor, building 5, plot 4, Tianyu garden, No.16 Qinglin Road, Nanning District, Nanning City, Guangxi Zhuang Autonomous Region

Applicant after: Guangxi Baduo Media Technology Co.,Ltd.

Address before: 518003 4K, building B, jinshanghua, No.45, Jinlian Road, Huangbei street, Luohu District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN YIDA CULTURE MEDIA Co.,Ltd.

GR01 Patent grant
GR01 Patent grant