CN109151537A - Method for processing video frequency, device, electronic equipment and storage medium - Google Patents

Method for processing video frequency, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109151537A
CN109151537A CN201810997460.4A CN201810997460A CN109151537A CN 109151537 A CN109151537 A CN 109151537A CN 201810997460 A CN201810997460 A CN 201810997460A CN 109151537 A CN109151537 A CN 109151537A
Authority
CN
China
Prior art keywords
video
clipped
main view
view frequency
instruction
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
CN201810997460.4A
Other languages
Chinese (zh)
Other versions
CN109151537B (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201810997460.4A priority Critical patent/CN109151537B/en
Publication of CN109151537A publication Critical patent/CN109151537A/en
Application granted granted Critical
Publication of CN109151537B publication Critical patent/CN109151537B/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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The disclosure is directed to a kind of method for processing video frequency, device, electronic equipment and storage mediums, and wherein this method includes obtaining at least two selected videos to be clipped;All videos to be clipped are played simultaneously at video preview interface, all videos to be clipped include identical audio track;Successively according to the selected instruction of main view frequency in the triggering of video preview interface, it is playd in order and the selected associated video to be clipped of instruction of main view frequency in main view frequency broadcast interface, the video information for being used to synthesize target video that synchronous recording video to be clipped plays on main view frequency broadcast interface, the selected instruction of main view frequency is for being selected in the video to be clipped of main view frequency broadcast interface broadcasting;Video Composition instruction is obtained, editing is carried out to video to be clipped based on audio track, video information and Video Composition instruction, synthesizes target video.Realization once imports video multiple and being played simultaneously, improves the efficiency of video clipping, facilitates target video synthesis, and the video after synthesis is more smooth.

Description

Method for processing video frequency, device, electronic equipment and storage medium
Technical field
This disclosure relates to technical field of video processing, specifically, this disclosure relates to a kind of method for processing video frequency, device, Electronic equipment and storage medium.
Background technique
Video clipping, which refers to, shears the video clip in video, and the video clip then obtained to shearing is spelled It connects, to obtain the process of the desired video of user.In the related art, mainly video is carried out by the way of manually to cut Volume, during needing editing multiple videos, user needs constantly to import the video of video and replacement viewing, in the same video When needing the multiple segments of editing, in order to enable the segment of editing can preferably agree with other segments, user needs multiple It imports video watch and require to watch since the start frame of video every time, reduces the efficiency of video clipping, increase The burden of staff imports different or identical video due to needing to repeat during this, affects synthetic video Compatible degree and viewing quality.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provide a kind of method for processing video frequency, device, electronic equipment and Storage medium.
According to the first aspect of the embodiments of the present disclosure, a kind of method for processing video frequency is provided, comprising:
Obtain at least two selected videos to be clipped;
All videos to be clipped are played simultaneously at video preview interface, all videos to be clipped include phase Same audio track;
Successively according to the selected instruction of main view frequency in video preview interface triggering, successively broadcast in main view frequency broadcast interface Put with the selected associated video to be clipped of instruction of main view frequency, video to be clipped described in synchronous recording is in the main view frequency What is played on broadcast interface is used to synthesize the video information of target video, and the selected instruction of main view frequency is for being selected in the master The video to be clipped that video playing interface plays;
Obtain Video Composition instruction, the Video Composition based on the audio track, the video information and user triggering Instruction carries out editing to the video to be clipped, synthesizes target video.
Optionally, the method realizes this method based on the AVfoundation frame of iOS system.
Optionally, described successively according to the selected instruction of main view frequency in video preview interface triggering, it is broadcast in main view frequency Interface is put to play in order and the selected associated video to be clipped of instruction of the main view frequency, comprising:
Instruction is selected according to the main view frequency currently in video preview interface triggering, by main video playing circle The currently playing video to be clipped in face is switched to and the selected associated video to be clipped of instruction of the main view frequency;
The broadcasting starting point of the video to be clipped of synchronous recording current selected and the main view frequency broadcast interface are worked as The video clip length of the video to be clipped of preceding broadcasting;
At the video preview interface, the video to be clipped of broadcasting plays current with the main view frequency broadcast interface The selected audio video synchronization to be clipped plays.
Optionally, the video information includes: the starting point of the video playing to be clipped, the video clip to be clipped Length, the video identifier to be clipped, the video clip order to be clipped.
Optionally, the Video Composition instruction pair based on the audio track, the video information and user triggering The video to be clipped carries out editing, synthesizes target video, comprising:
Starting point, the video clip length to be clipped, the video to be clipped according to the video playing to be clipped Mark carries out editing to the video to be clipped;
Obtain the audio track of any video to be clipped;
The video clip to be clipped is obtained according to the audio track and the video clip order to be clipped, synthesizes institute State target video.
Optionally, it is instructed based on the audio track, the video information and the Video Composition to described described After the step of video to be clipped carries out editing, synthesizes target video, comprising:
Set the target video storage information;
The target video is exported in database according to target video storage information and is stored.
Optionally, the storage information includes: store path, video format.
Optionally, it is carried out in described export to the target video in database according to target video storage information After the step of storage, comprising:
The target video is obtained from the database plays the target video in preview interface.
According to the second aspect of an embodiment of the present disclosure, a kind of video processing side device is provided, comprising:
Video acquiring module to be clipped is configured as obtaining at least two selected videos to be clipped;
Video preview module to be clipped is configured as that all views to be clipped are played simultaneously at video preview interface Frequently, all videos to be clipped include identical audio track;
Video playback module to be clipped is configured as successively selected according to the main view frequency in video preview interface triggering Instruction plays in order and the selected associated video to be clipped of instruction of the main view frequency, synchronous note in main view frequency broadcast interface Record the video information for being used to synthesize target video that the video to be clipped plays on the main view frequency broadcast interface, the master The video to be clipped that the selected instruction of video is played for being selected in the main view frequency broadcast interface;
Target video synthesis module is configured as obtaining Video Composition instruction, be believed based on the audio track, the video Breath and Video Composition instruction carry out editing to the video to be clipped, synthesize target video.
Optionally, the AVfoundation frame based on iOS system realizes the function that each module of the present apparatus is configured.
Optionally, in the video playback module to be clipped, comprising:
Video switch unit to be clipped is configured as according to the selected instruction of main view frequency currently triggered, by the master The currently playing video to be clipped in video playing interface is switched to associated described wait cut with the selected instruction of main view frequency Collect video;
Recording unit is configured as the broadcasting starting point of the video to be clipped of synchronous recording current selected and described The video clip length of the currently playing video to be clipped of main view frequency broadcast interface;
Video playback module unit to be clipped is configured as the video to be clipped played at the video preview interface The audio video synchronization to be clipped of the current selected played with the main view frequency broadcast interface plays.
Optionally, the video information includes: the starting point of the video playing to be clipped, the video clip to be clipped Length, the video identifier to be clipped, the video clip order to be clipped.
Optionally, in the video playback module unit to be clipped, comprising:
Editing unit is configured as the starting point according to the video playing to be clipped, the piece of video segment length to be clipped Degree, the video identifier to be clipped carry out editing to the video to be clipped;
Audio track acquiring unit is configured as obtaining the audio track of any video to be clipped;
Target video synthesis unit is configured as obtaining according to the audio track and the video clip order to be clipped The video clip to be clipped, synthesizes the target video.
Optionally, further includes:
Information setting module is stored, is configured as setting the target video storage information;
Memory module is configured as exporting to the target video in database according to target video storage information It is stored.
Optionally, the storage information includes: store path, video format.
Optionally, further includes:
Target video previewing module is configured as obtaining the target video from the database in preview interface broadcasting The target video.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to: execute according to above-mentioned method for processing video frequency the step of.
According to a fourth aspect of embodiments of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described When instruction in storage medium is executed by the processor of electronic equipment, so that electronic equipment is able to carry out above-mentioned method for processing video frequency The step of.
According to a fifth aspect of the embodiments of the present disclosure, a kind of computer program product, including computer program code are provided, The computer program includes program instruction, when described program instruction is executed by electronic equipment, executes the electronic equipment The step of above-mentioned method for processing video frequency.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Embodiment of the disclosure is by obtaining at least two selected videos to be clipped;It is played simultaneously at video preview interface All videos to be clipped, all videos to be clipped include identical audio track;Successively according in the view The selected instruction of main view frequency of frequency preview interface triggering is playd in order in main view frequency broadcast interface and is closed with the selected instruction of main view frequency The video to be clipped of connection, video to be clipped described in synchronous recording played on the main view frequency broadcast interface for synthesizing The video information of target video, the selected instruction of main view frequency is for being selected in the to be clipped of the main view frequency broadcast interface broadcasting Video;Video Composition instruction is obtained, based on the audio track, the video information and Video Composition instruction to described Video to be clipped carries out editing, synthesizes target video.The purpose for once importing multiple videos to be clipped is realized, so that user is not It needs to repeat to import multiple videos, multiple videos to be clipped are played simultaneously at video preview interface, and user can preferably really Fixed multiple videos agree with segment, so that the video that editing comes out is more smooth, beautiful, it is selected at video preview interface in user When one video to be clipped, then play the video to be clipped selected of user in main view frequency broadcast interface, so avoid repeatedly or Repetition imports video to be clipped, improves the efficiency of video clipping, and in main video playing video to be clipped, synchronous recording should be to The video information for editing and composite video of editing video playing, and then convenient for synthesizing target video according to the video information.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The disclosure is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow chart of method for processing video frequency shown according to an exemplary embodiment;
Fig. 2 is that a kind of user of method for processing video frequency shown according to an exemplary embodiment operates selection in terminal interface The schematic diagram that video 1 is played in main view frequency broadcast interface;
Fig. 3 is that a kind of user of method for processing video frequency shown according to an exemplary embodiment operates main view in terminal interface Frequency broadcast interface starts to play the schematic diagram of video 1;
Fig. 4 is that a kind of user of method for processing video frequency shown according to an exemplary embodiment records video in terminal interface 1 plays the schematic diagram of starting point and playout length;
Fig. 5 is that a kind of user of method for processing video frequency shown according to an exemplary embodiment operates selection in terminal interface The schematic diagram that video 2 is played in main view frequency broadcast interface;
Fig. 6 is that a kind of user of method for processing video frequency shown according to an exemplary embodiment operates selection in terminal interface The schematic diagram that video 4 is played in main view frequency broadcast interface;
Fig. 7 is a kind of being used for of being recorded of the video to be clipped of method for processing video frequency shown according to an exemplary embodiment Synthesize the schematic diagram of the TimeRange of the video clip of target video;
Fig. 8 is that a kind of video clip of method for processing video frequency shown according to an exemplary embodiment is inserted into Schematic diagram after AVMutableComposition track;
Fig. 9 is a kind of block diagram of video processing side device shown according to an exemplary embodiment;
Figure 10 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of video processing shown according to an exemplary embodiment, as shown in Figure 1, video is handled It can be used in electronic equipment, electronic equipment includes: the mobile terminals such as mobile phone, plate, notebook, is included the following steps.
In step s 110, the video to be clipped of selected at least two is obtained;
In the step s 120, be played simultaneously all videos to be clipped at video preview interface, it is all it is described to Editing video includes identical audio track;
In step s 130, successively according to the selected instruction of main view frequency in video preview interface triggering, in main view frequency Broadcast interface, which is playd in order, selectes the associated video to be clipped of instruction, view to be clipped described in synchronous recording with the main view frequency The video information for being used to synthesize target video that frequency plays on the main view frequency broadcast interface, the selected instruction of main view frequency are used In the video to be clipped for being selected in the main view frequency broadcast interface broadcasting;
In step S140, Video Composition instruction is obtained, the audio track, the video information and the view are based on Frequency synthetic instruction carries out editing to the video to be clipped, synthesizes target video.
Optionally, the method for the embodiment of the present disclosure is that the AVfoundation frame based on iOS system is realized.
Embodiment of the disclosure is mainly used in mobile terminal, is expanded the application range and scene of video clipping, is made It obtains more users and is able to carry out video clipping, while user also being facilitated to carry out video clipping in mobile terminal.In the disclosure In embodiment, mobile terminal includes: the device that mobile phone, notebook, tablet computer, vehicle-mounted computer etc. can be carried out video playing.This Disclosed method for processing video frequency relies on iOS client, and broadcasting for video is realized based on the AVFoundation frame of iOS system It puts, cut and synthesizes.
In embodiment of the disclosure, user is in the video of the same audio of more scene recordings or user is in same field Scape multi-angle records the video of same audio, in order to enable to be capable of being presented on for multi-angle same for the video recorded under same audio In a video.In the embodiments of the present disclosure, the video to be clipped of aforementioned recording is imported in mobile terminal, due to AVPlayer in AVFoundation frame can load local video, which can be the video of mobile terminal shooting, The video for being also possible to the shooting of other terminals imported into video on the move, and AVFoundation frame further includes AVPlayerLayer is mainly used for rendering display in video clip.Therefore on the basis of above-mentioned, pass through The video of AVPlayer load local in AVFoundation frame, is realized by AVPlayerLayer in mobile terminal Rendering of the video on video display interface is shown, realizes the broadcasting preview function of video, specifically, due to being the multiple of importing Video (includes at least two videos), can be played simultaneously in video clip by AVPlayerLayer in multiple videos, such as Fig. 2, is the video display interface of mobile terminal, including video track, main view frequency broadcast interface, video preview interface, virtually broadcasts Put control.Certainly it can also include other entries, if audio track pulls item, when including audio track pulling, due to Audio and video are synchronous, and then when can facilitate first video playing, can pull first frame of the video from video Start to play.Specifically, the video to be clipped of user includes four videos (respectively video 1, video 2, video 3, video 4), Four videos to be clipped are shown simultaneously on video preview interface on mobile terminals, since four videos to be clipped have phase Same audio track, under same audio track, four videos to be clipped can be played simultaneously on video preview interface.User exists The selected instruction of main view frequency is triggered by finger or other devices in video preview interface, i.e. triggering is shown in main video clip Video to be clipped then plays the video to be clipped that user selectes in main view frequency broadcast interface, in currently playing video to be clipped After main view frequency broadcast interface plays partial frame, user is when video preview interface has selected another video to be clipped, i.e., The selected instruction of main view frequency is triggered again at video preview interface, then plays user in main view frequency broadcast interface and select in addition One video to be clipped then plays user in the main view frequency broadcast interface when realizing user and selecting current video to be clipped Selected video to be clipped, realizes in mobile terminal while playing the purpose of multiple videos to be clipped, and then facilitates user Switch video to be clipped.
In conjunction with aforementioned process, when video to be clipped is when main view frequency broadcast interface plays out, synchronous recording view to be clipped The video information for being used to synthesize target video that frequency plays on the main view frequency broadcast interface, the video information includes: institute State the starting point of video playing to be clipped, the video clip length to be clipped, the video identifier to be clipped, described to be clipped Video clip order.When with audio track pulling, starting point is the broadcast point for the video to be clipped that user selectes.As incited somebody to action After the video to be clipped of main view frequency broadcast interface switches to another video to be clipped, another video switching to be clipped The state played when on to main view frequency broadcast interface for pause, user pull audio track to pull item, which are drawn to The audio track that one video playing terminates to corresponding time point, at this point, user it is selected play on main view frequency broadcast interface to Editing video, the video information of video playing to be clipped on synchronous recording main view frequency broadcast interface.Since video to be clipped has Identical audio track, when the video to be clipped played on main view frequency broadcast interface is switched to another video, Ke Yiti Whether awake user, which is switched to upper one video to be clipped for the broadcasting start frame of the video to be clipped of switching, terminates the end frame played Time point on corresponding audio track, the process can also be the process automatically switched based on user setting, while further The efficiency for improving user video editing avoids user from finding meeting point manually in video playing, improves the same sound of different video Precision under frequency when multiple video clippings.
On the basis of above-mentioned, it is based on identical audio track, the video information, is triggered on mobile terminals as user Video Composition instruction, mobile terminal realize the editing of video to be clipped by the AVURLAsset in AVFoundation frame, And the video clip after editing is synthesized together acquisition target video by AVMutableComposition, details are referring to rear Text.
Optionally, described successively according to the selected instruction of main view frequency in video preview interface triggering, in main view frequency Broadcast interface is playd in order to be selected in the step of instructing the associated video to be clipped with the main view frequency, may include as follows Step.
Instruction is selected according to the main view frequency currently in video preview interface triggering, by main video playing circle The currently playing video to be clipped in face, which is switched to, is associated with the video to be clipped with the selected instruction of main view frequency;
The broadcasting starting point of the video to be clipped of synchronous recording current selected and the main view frequency broadcast interface are worked as The video clip length of the video to be clipped of preceding broadcasting;
At the video preview interface, the video to be clipped of broadcasting plays current with the main view frequency broadcast interface The selected audio video synchronization to be clipped plays.
In conjunction with explanation above, according to user currently in the selected finger of main view frequency of video preview interface triggering It enables, the currently playing video to be clipped of the main view frequency broadcast interface is switched to the described to be clipped of user's current selected Video;Such as Fig. 2 to Fig. 6, when user is after video 1 is selected at video preview interface, after user's click play, then in main video playing Interface broadcasting video 1, the starting point that video track synchronous recording video 1 plays, when the user clicks when video 2, main video playing circle Video 1 is switched to video 2 by face, and video clip length, video clip of the broadcasting of video track synchronous recording video 1 identify (i.e. Its affiliated video, such as video 1), (it is corresponding also to could alternatively be the section audio for the order played for this section of video clip order Its real point of the video clip of video 1 and length), video 2 play starting point;When the user clicks when video 4, main video playing Video 2 is switched to video 4, video clip length, the video clip mark of the broadcasting of video track synchronous recording video 2 by interface (i.e. its affiliated video, such as video 2), (order played also could alternatively be the section audio pair to this section of video clip order Its real point of the video clip for the video 2 answered and length), video 4 play starting point.The synchronous record in track of video is such as Shown in Fig. 7, main is corresponding video track, and video1, video2, video3, video4 are video 1, video 2, video 3, view Frequently 4 respective video track, timerange1, timerange2, timerange4 record are video 1, video 2, video 4 in master The video information played on video.It is corresponding, it, then can the corresponding video track note of the video after user repeatedly selects the same video Record has multiple video informations, and such as in Fig. 7, leading to a video track has multistage timerange.While main video playing, The audio video synchronization to be clipped of video to be clipped and main video playing that video preview broadcast interface plays plays, and then facilitates use Family is selected customer satisfaction system video to be clipped at corresponding time point and is played out, and the satisfaction of user is improved.It is played simultaneously So that the video point and audio point of video clipping to be clipped more agree with, so that the target video after synthesis is more smooth.
In order to enable user can watch the video on main view frequency broadcast interface and video preview interface simultaneously, facilitate user The switching between each video to be clipped is selected, so that user does not need to drag view to be clipped again after each video switching to be clipped The starting point that frequency plays, the video to be clipped that plays on the video and video preview to be clipped interface that main view frequency broadcast interface plays It is played simultaneously, guarantees that the node of each video playing under the same audio track is consistent.And then when carrying out video switching, it will lead When the video to be clipped played on video playing interface is switched to other videos on video preview interface, there is consistent sound Frequently, that is, the video to be clipped being switched on main view frequency broadcast interface is only the transformation of image, and its corresponding audio is constant and not It switches over, persistently carries out the playing process of audio.Illustratively, in AVFoundation frame, by multiple AVPlayer example realization main view frequency is played simultaneously with following preview video, when user selects some following video to be clipped When, above main player can be switched to this video source, and play preview with following audio video synchronization.Each user selects after playing The CMTimeRange of this video source can be recorded, simultaneously for indicating video clip that user actively selects in this video source Starting point and video clip length.It might have multistage TimeRange in different video sources to need to record, details such as Fig. 7.
Optionally, it is instructed based on the audio track, the video information and the Video Composition to described described In the step of video to be clipped carries out editing, synthesizes target video, it may include steps of.
Starting point, the video clip length to be clipped, the video to be clipped according to the video playing to be clipped Mark carries out editing to the video to be clipped;
Obtain the audio track of any video to be clipped;
The video clip to be clipped is obtained according to the audio track and the video clip order to be clipped, synthesizes institute State target video.
After the completion of video preview or video is after main view frequency broadcast interface finishes playing, in conjunction with it is above-mentioned it is described to The starting point of editing video playing, the video clip length to be clipped, the video identifier to be clipped are to the view to be clipped Frequency carry out editing, i.e., found under corresponding video according to video identifier to be clipped the video playing to be clipped starting point and to Editing video clip length, and the video is subjected to editing to video to be clipped by AVURLAsset above-mentioned, due to wait cut The audio for collecting video is identical, therefore before carrying out Video Composition, obtains the audio track of any video, based on above-mentioned to be clipped Corresponding video clip is inserted into corresponding track of video by video clip order (or the corresponding video clip of audio section), Video clip synthesis and audio are synthesized together by AVMutableComposition, the target including audio is obtained and regards Frequently.The sequence of video clip is realized while user watches video, and then in synthetic video, according to piece of video to be clipped The video clip is inserted into corresponding audio track by the mark of section, so avoid user carry out again it is manually to be clipped Video sequence, improves the rate of video clipping.
Embodiment of the disclosure, during concrete implementation, inside AVFoundation frame AVMutableComposition realizes the multistage synthetic work of video.It include video inside AVMutableComposition Track and audio track can obtain corresponding track pair by AVMediaTypeVideo or AVMediaTypeAudio As, wherein AVMediaTypeVideo obtains track of video object, and AVMediaTypeAudio obtains corresponding audio track pair As.AVURLAsset can load mobile terminal local video source and get the video of video length information, video to be clipped Track, audio track information, i.e., video information above-mentioned similarly and need to obtain video track by AVMediaTypeVideo Road information or AVMediaTypeAudio obtain corresponding audio track information, such as Fig. 8.What is got is each to be clipped After the AVAssetTrack (orbit information) of video, so that it may according to the TimeRange of user's selection by corresponding video track Road segment, which is inserted into the track of video AVMutableCompositionTrack of AVMutableComposition, to be gone and then obtains To final target video.Wherein, since the audio of each video to be clipped is the same, and then corresponding audio track is same, Therefore, audio track can choose at random some video source audio track can, each video source audio track one Sample can be selected the audio track of first video as the audio track of final video, can also select the audio of other videos Track is as final audio track.
Optionally, it is instructed based on the audio track, the video information and the Video Composition to described described After the step of video to be clipped carries out editing, synthesizes target video, comprising:
Set the target video storage information;
The target video is exported in database according to target video storage information and is stored.
Optionally, it is carried out in described export to the target video in database according to target video storage information After the step of storage, comprising:
The target video is obtained from the database plays the target video in preview interface.
In embodiment of the disclosure, after target video has synthesized, made for the ease of the video by other application programs With, or facilitate the subsequent viewing target video of user, target video is exported in database, which can be movement The database of the database of terminal local or other terminals connected with mobile terminal, such as cloud database.In export mesh When mark is video, the information such as format and the store path of target video need to be determined, facilitate the target video can be corresponding Broadcasting wherein plays, while can also store the target video into corresponding database.In embodiment of the disclosure, exist In specific embodiment, after the completion of video-splicing can by the AVAssetExportSession in AVFoundation come Carry out the export of video.The information such as store path, the video format of export video can be set in AVAssetExportSession, The video of splicing can be exported to after being provided with using in sandbox or mobile terminal system photograph album, need preview in user When the video, user obtains target video into corresponding database by store path and carries out preview, as target video stores When in local photograph album, user enters in the photograph album of mobile terminal local, finds corresponding target video and carries out preview broadcasting.
It should be noted that in embodiment of the disclosure, Fig. 2 to Fig. 6, which is only exemplary, shows view to be clipped Frequency mobile terminal video interface play process, therefore, video to be clipped cannot include 4, also may include 2 or The video to be clipped of the other quantities such as 6.
Fig. 9 is a kind of block diagram of video process apparatus shown according to an exemplary embodiment, referring to shown in Fig. 9, the dress Set includes: video acquiring module 910 to be clipped, video preview module 920 to be clipped, video playback module to be clipped 930, target Video Composition module 940.
Video acquiring module 910 to be clipped is configured as obtaining at least two selected videos to be clipped;
Video preview module 920 to be clipped is configured as being played simultaneously at video preview interface all described to be clipped Video, all videos to be clipped include identical audio track;
Video playback module 930 to be clipped is configured to successively trigger according at the video preview interface The selected instruction of main view frequency, playd in order in main view frequency broadcast interface associated described to be clipped with the selected instruction of main view frequency Video, video to be clipped described in synchronous recording played on the main view frequency broadcast interface for synthesizing the video of target video Information, the video to be clipped that the selected instruction of main view frequency is played for being selected in the main view frequency broadcast interface;
Target video synthesis module 940 is configured as obtaining Video Composition instruction, is based on the audio track, the view Frequency information and Video Composition instruction carry out editing to the video to be clipped, synthesize target video.
Optionally, the AVfoundation frame based on iOS system realizes the function that each module of the present apparatus is configured.
Embodiment of the disclosure is mainly used in mobile terminal, is expanded the application range and scene of video clipping, is made It obtains more users and is able to carry out video clipping, while user also being facilitated to carry out video clipping in mobile terminal.In the disclosure In embodiment, mobile terminal includes: the device that mobile phone, notebook, tablet computer, vehicle-mounted computer etc. can be carried out video playing.This Disclosed method for processing video frequency relies on iOS client, and broadcasting for video is realized based on the AVFoundation frame of iOS system It puts, cut and synthesizes.
In embodiment of the disclosure, user is in the video of the same audio of more scene recordings or user is in same field Scape multi-angle records the video of same audio, in order to enable to be capable of being presented on for multi-angle same for the video recorded under same audio In a video.In the embodiments of the present disclosure, the video to be clipped of aforementioned recording is imported in mobile terminal, due to AVPlayer in AVFoundation frame can load local video, which can be the video of mobile terminal shooting, The video for being also possible to the shooting of other terminals imported into video on the move, and AVFoundation frame further includes AVPlayerLayer is mainly used for rendering display in video clip.Therefore on the basis of above-mentioned, pass through The video of AVPlayer load local in AVFoundation frame, is realized by AVPlayerLayer in mobile terminal Rendering of the video on video display interface is shown, realizes the broadcasting preview function of video, specifically, due to being the multiple of importing Video (include at least two), can be played simultaneously in video clip in multiple videos by AVPlayerLayer, such as Fig. 2, It is the video display interface of mobile terminal, including video track, main view frequency broadcast interface, video preview interface, virtual broadcasting control Part.Certainly it can also include other entries, if audio track pulls item, when including audio track pulling, due to audio It is synchronous with video, and then when can facilitate first video playing, can pulls the video since the first frame of video It plays.Specifically, the video to be clipped of user includes four videos (respectively video 1, video 2, video 3, video 4), moving Four videos to be clipped are shown simultaneously on video preview interface in dynamic terminal, since four videos to be clipped are having the same Audio track, under same audio track, four videos to be clipped can be played simultaneously on video preview interface.User is in video Preview interface triggers the selected instruction of main view frequency by finger or other devices, i.e., triggering shown in main video clip wait cut Video is collected, then the video to be clipped that user selectes is played in main view frequency broadcast interface, in currently playing video to be clipped in master After video playing interface plays partial frame, user is regarding when video preview interface has selected another video to be clipped Frequency preview interface triggers the selected instruction of main view frequency again, then plays another that user selectes in main view frequency broadcast interface It is selected then to play user in the main view frequency broadcast interface when realizing user and selecting current video to be clipped for video to be clipped Video to be clipped, realize in mobile terminal while playing the purpose of multiple videos to be clipped, so facilitate user switching Video to be clipped.
In conjunction with aforementioned process, when video to be clipped is when main view frequency broadcast interface plays out, synchronous recording view to be clipped The video information for being used to synthesize target video that frequency plays on the main view frequency broadcast interface, the video information includes: institute State the starting point of video playing to be clipped, the video clip length to be clipped, the video identifier to be clipped, described to be clipped Video clip order.When with audio track pulling, starting point is the broadcast point for the video to be clipped that user selectes.As incited somebody to action After the video to be clipped of main view frequency broadcast interface switches to another video to be clipped, another video switching to be clipped The state played when on to main view frequency broadcast interface for pause, user pull audio track to pull item, which are drawn to The audio track that one video playing terminates to corresponding time point, at this point, user it is selected play on main view frequency broadcast interface to Editing video, the video information of video playing to be clipped on synchronous recording main view frequency broadcast interface.Since video to be clipped has Identical audio track, when the video to be clipped played on main view frequency broadcast interface is switched to another video, Ke Yiti Whether awake user, which is switched to upper one video to be clipped for the broadcasting start frame of the video to be clipped of switching, terminates the end frame played Time point on corresponding audio track, the process can also be the process automatically switched based on user setting, while further The efficiency for improving user video editing avoids user from finding meeting point manually in video playing, improves the same sound of different video Precision under frequency when multiple video clippings.
On the basis of above-mentioned, it is based on identical audio track, the video information, is triggered on mobile terminals as user Video Composition instruction, mobile terminal realize the editing of video to be clipped by the AVURLAsset in AVFoundation frame, And the video clip after editing is synthesized together acquisition target video by AVMutableComposition, details are referring to rear Text.
Optionally, in the video playback module to be clipped of the device, comprising:
Video switch unit to be clipped is configured as according to the selected instruction of main view frequency currently triggered, by the master The currently playing video to be clipped in video playing interface is switched to associated described wait cut with the selected instruction of main view frequency Collect video;
Recording unit is configured as the broadcasting starting point of the video to be clipped of synchronous recording current selected and described The video clip length of the currently playing video to be clipped of main view frequency broadcast interface;
Video playback module unit to be clipped is configured as the video to be clipped played at the video preview interface The audio video synchronization to be clipped of the current selected played with the main view frequency broadcast interface plays.
Optionally, the video information includes: the starting point of the video playing to be clipped, the video clip to be clipped Length, the video identifier to be clipped, the video clip order to be clipped.
In conjunction with explanation above, according to user currently in the selected finger of main view frequency of video preview interface triggering It enables, the currently playing video to be clipped of the main view frequency broadcast interface is switched to the described to be clipped of user's current selected Video;Such as Fig. 2 to Fig. 6, when user is after video 1 is selected at video preview interface, after user's click play, then in main video playing Interface broadcasting video 1, the starting point that video track synchronous recording video 1 plays, when the user clicks when video 2, main video playing circle Video 1 is switched to video 2 by face, and video clip length, video clip of the broadcasting of video track synchronous recording video 1 identify (i.e. Its affiliated video, such as video 1), (it is corresponding also to could alternatively be the section audio for the order played for this section of video clip order Its real point of the video clip of video 1 and length), video 2 play starting point;When the user clicks when video 4, main video playing Video 2 is switched to video 4, video clip length, the video clip mark of the broadcasting of video track synchronous recording video 2 by interface (i.e. its affiliated video, such as video 2), (order played also could alternatively be the section audio pair to this section of video clip order Its real point of the video clip for the video 2 answered and length), video 4 play starting point.The synchronous record in track of video is such as Shown in Fig. 7, main is corresponding video track, and video1, video2, video3, video4 are video 1, video 2, video 3, view Frequently 4 respective video track, timerange1, timerange2, timerange4 record are video 1, video 2, video 4 in master The video information played on video.It is corresponding, it, then can the corresponding video track note of the video after user repeatedly selects the same video Record has multiple video informations, and such as in Fig. 7, leading to a video track has multistage timerange.While main video playing, The audio video synchronization to be clipped of video to be clipped and main video playing that video preview broadcast interface plays plays, and then facilitates use Family is selected customer satisfaction system video to be clipped at corresponding time point and is played out, and the satisfaction of user is improved.It is played simultaneously So that the video point and audio point of video clipping to be clipped more agree with, so that the target video after synthesis is more smooth.
In order to enable user can watch the video on main view frequency broadcast interface and video preview interface simultaneously, facilitate user The switching between each video to be clipped is selected, so that user does not need to drag view to be clipped again after each video switching to be clipped The starting point that frequency plays, the video to be clipped that plays on the video and video preview to be clipped interface that main view frequency broadcast interface plays It is played simultaneously, guarantees that the node of each video playing under the same audio track is consistent.And then when carrying out video switching, it will lead When the video to be clipped played on video playing interface is switched to other videos on video preview interface, there is consistent sound Frequently, that is, the video to be clipped being switched on main view frequency broadcast interface is only the transformation of image, and its corresponding audio is constant and not It switches over, persistently carries out the playing process of audio.Illustratively, in AVFoundation frame, by multiple AVPlayer example realization main view frequency is played simultaneously with following preview video, when user selects some following video to be clipped When, above main player can be switched to this video source, and play preview with following audio video synchronization.Each user selects after playing The CMTimeRange of this video source can be recorded, simultaneously for indicating video clip that user actively selects in this video source Starting point and video clip length.It might have multistage TimeRange in different video sources to need to record, details such as Fig. 7.
Optionally, in the video playback module unit to be clipped of the device, comprising:
Editing unit is configured as the starting point according to the video playing to be clipped, the piece of video segment length to be clipped Degree, the video identifier to be clipped carry out editing to the video to be clipped;
Audio track acquiring unit is configured as obtaining the audio track of any video to be clipped;
Target video synthesis unit is configured as obtaining according to the audio track and the video clip order to be clipped The video clip to be clipped, synthesizes the target video.
After the completion of video preview or video is after main view frequency broadcast interface finishes playing, in conjunction with it is above-mentioned it is described to The starting point of editing video playing, the video clip length to be clipped, the video identifier to be clipped are to the view to be clipped Frequency carry out editing, i.e., found under corresponding video according to video identifier to be clipped the video playing to be clipped starting point and to Editing video clip length, and the video is subjected to editing to video to be clipped by AVURLAsset above-mentioned, due to wait cut The audio for collecting video is identical, therefore before carrying out Video Composition, obtains the audio track of any video, based on above-mentioned to be clipped Corresponding video clip is inserted into corresponding track of video by video clip order (or the corresponding video clip of audio section), Video clip synthesis and audio are synthesized together by AVMutableComposition, the target including audio is obtained and regards Frequently.The sequence of video clip is realized while user watches video, and then in synthetic video, according to piece of video to be clipped The video clip is inserted into corresponding audio track by the mark of section, so avoid user carry out again it is manually to be clipped Video sequence, improves the rate of video clipping.
Embodiment of the disclosure, during concrete implementation, inside AVFoundation frame AVMutableComposition realizes the multistage synthetic work of video.It include video inside AVMutableComposition Track and audio track can obtain corresponding track pair by AVMediaTypeVideo or AVMediaTypeAudio As, wherein AVMediaTypeVideo obtains track of video object, and AVMediaTypeAudio obtains corresponding audio track pair As.AVURLAsset can load mobile terminal local video source and get the video of video length information, video to be clipped Track, audio track information, i.e., video information above-mentioned similarly and need to obtain video track by AVMediaTypeVideo Road information or AVMediaTypeAudio obtain corresponding audio track information, such as Fig. 8.What is got is each to be clipped After the AVAssetTrack (orbit information) of video, so that it may according to the TimeRange of user's selection by corresponding video track Road segment, which is inserted into the track of video AVMutableCompositionTrack of AVMutableComposition, to be gone and then obtains To final target video.Wherein, since the audio of each video to be clipped is the same, and then corresponding audio track is same, Therefore, audio track can choose at random some video source audio track can, each video source audio track one Sample can be selected the audio track of first video as the audio track of final video, can also select the audio of other videos Track is as final audio track.
Optionally, the device further include:
Information setting module is stored, is configured as setting the target video storage information;
Memory module is configured as exporting to the target video in database according to target video storage information It is stored.
Optionally, the storage information includes: store path, video format.
Optionally, the device further include:
Target video previewing module is configured as obtaining the target video from the database in preview interface broadcasting The target video.
In embodiment of the disclosure, after target video has synthesized, made for the ease of the video by other application programs With, or facilitate the subsequent viewing target video of user, target video is exported in database, which can be movement The database of the database of terminal local or other terminals connected with mobile terminal, such as cloud database.In export mesh When mark is video, the information such as format and the store path of target video need to be determined, facilitate the target video can be corresponding Broadcasting wherein plays, while can also store the target video into corresponding database.In embodiment of the disclosure, exist In specific embodiment, after the completion of video-splicing can by the AVAssetExportSession in AVFoundation come Carry out the export of video.The information such as store path, the video format of export video can be set in AVAssetExportSession, The video of splicing can be exported to after being provided with using in sandbox or mobile terminal system photograph album, need preview in user When the video, user obtains target video into corresponding database by store path and carries out preview, as target video stores When in local photograph album, user enters in the photograph album of mobile terminal local, finds corresponding target video and carries out preview broadcasting.
It should be noted that in embodiment of the disclosure, Fig. 2 to Fig. 6, which is only exemplary, shows view to be clipped Frequency mobile terminal video interface play process, therefore, video to be clipped not only may include 4, also may include 2 or The video to be clipped of the other quantities such as person 6.
Figure 10 is a kind of block diagram for electronic equipment 1000 shown according to an exemplary embodiment.For example, electronics is set It is standby to can also be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig.1 0, electronic equipment 1000 may include following one or more components: processing component 1002, memory 1004, electric power assembly 1006, multimedia component 1008, audio component 1010, the interface 1012 of input/output (I/O), sensor Component 1014 and communication component 1016.
The integrated operation of the usual controlling electronic devices 1000 of processing component 1002, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 1002 may include one or more processors 1020 It executes instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1002 may include one or more Module, convenient for the interaction between processing component 1002 and other assemblies.For example, processing component 1002 may include multimedia mould Block, to facilitate the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the operation in electronic equipment 1000.These numbers According to example include any application or method for being operated on electronic equipment 1000 instruction, contact data, electricity Talk about book data, message, picture, video etc..Memory 1004 can be by any kind of volatibility or non-volatile memory device Or their combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of electronic equipment 1000.Power supply module 1006 may include power supply Management system, one or more power supplys and other with for electronic equipment 1000 generate, manage, and distribute associated group of electric power Part.
Multimedia component 1008 includes the screen of one output interface of offer between the electronic equipment 1000 and user Curtain.In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touching Panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touchings Sensor is touched to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or cunning The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments In, multimedia component 1008 includes a front camera and/or rear camera.When electronic equipment 1000 is in operation mould Formula, such as in a shooting mode or a video mode, front camera and/or rear camera can receive external multi-medium data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom energy Power.
Audio component 1010 is configured as output and/or input audio signal.For example, audio component 1010 includes a wheat Gram wind (MIC), when electronic equipment 1000 is in operation mode, when such as call mode, recording mode, and voice recognition mode, Mike Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 1004 or via Communication component 1016 is sent.In some embodiments, audio component 1010 further includes a loudspeaker, for exporting audio letter Number.
I/O interface 1012 provides interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1014 includes one or more sensors, for providing the shape of various aspects for electronic equipment 1000 State assessment.For example, sensor module 1014 can detecte the state that opens/closes of electronic equipment 1000, component it is relatively fixed Position, such as the component are the display and keypad of electronic equipment 1000, and sensor module 1014 can also detect electronics and set The position change of standby 1,000 1 components, the existence or non-existence that user contacts with electronic equipment 1000,1000 side of electronic equipment The temperature change of position or acceleration/deceleration and electronic equipment 1000.Sensor module 1014 may include proximity sensor, be configured For detecting the presence of nearby objects without any physical contact.Sensor module 1014 can also include light sensing Device, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, the sensor module 1014 It can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate the logical of wired or wireless way between electronic equipment 1000 and other equipment Letter.Electronic equipment 1000 can access the wireless network based on communication standard, such as Wi-Fi, carrier network (such as 2G, 3G, 4G or 5G) or their combination.In one exemplary embodiment, communication component 1016 is received via broadcast channel from external wide The broadcast singal or broadcast related information of broadcast management system.In one exemplary embodiment, the communication component 1016 also wraps Near-field communication (NFC) module is included, to promote short range communication.For example, it can be based on radio frequency identification (RFID) technology in NFC module, it is red Outer data association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 1000 can by one or more application specific integrated circuit (ASIC), Digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field-programmable gate array It arranges (FPGA), controller, microcontroller, microprocessor or other electronic components to realize, the video for executing the disclosure is handled The step of method, which comprises obtain the video to be clipped of selected at least two;Institute is played simultaneously at video preview interface The video to be clipped having, all videos to be clipped include identical audio track;Successively according in the video The selected instruction of main view frequency of preview interface triggering is playd in order in main view frequency broadcast interface and is associated with the selected instruction of main view frequency The video to be clipped, video to be clipped described in synchronous recording played on the main view frequency broadcast interface for synthesizing mesh Mark the video information of video, the view to be clipped that the selected instruction of main view frequency is played for being selected in the main view frequency broadcast interface Frequently;Obtain Video Composition instruction, based on the audio track, the video information and the Video Composition instruction to it is described to Editing video carries out editing, synthesizes target video.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1004 of instruction, above-metioned instruction can be executed by the processor 1020 of electronic equipment 1000 to complete above-mentioned side Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium that the disclosure provides, when the instruction in the storage medium is by electricity When the processor of sub- equipment executes, so that the step of electronic equipment is able to carry out a kind of method for processing video frequency, the video processing Method includes: to obtain at least two selected videos to be clipped;It is played simultaneously at video preview interface all described to be clipped Video, all videos to be clipped include identical audio track;Successively according in video preview interface triggering The selected instruction of main view frequency plays in order and the selected associated view to be clipped of instruction of the main view frequency in main view frequency broadcast interface Frequently, the video letter for synthesizing target video that video to be clipped described in synchronous recording plays on the main view frequency broadcast interface Breath, the video to be clipped that the selected instruction of main view frequency is played for being selected in the main view frequency broadcast interface;Video is obtained to close At instruction, the video to be clipped is carried out based on the audio track, the video information and Video Composition instruction Editing synthesizes target video.Processor is able to achieve the view to be clipped of one of embodiment as shown in Figure 9 video process apparatus Frequency obtains module, the function of video playback module to be clipped, target video synthesis module.
In the exemplary embodiment, a kind of computer program product, including computer program code, the computer are provided Program includes program instruction, when described program instruction is executed by electronic equipment, executes the electronic equipment at the video Reason method, the method for processing video frequency includes obtaining at least two selected videos to be clipped;It is synchronous at video preview interface All videos to be clipped are played, all videos to be clipped include identical audio track;Successively according in institute The main view selected instruction frequently for stating the triggering of video preview interface plays in order and the selected finger of main view frequency in main view frequency broadcast interface Enable the associated video to be clipped, what video to be clipped described in synchronous recording played on the main view frequency broadcast interface is used for Synthesize the video information of target video, the selected instruction of main view frequency for be selected in that the main view frequency broadcast interface plays to Editing video;Video Composition instruction is obtained, based on the audio track, the video information and Video Composition instruction pair The video to be clipped carries out editing, synthesizes target video.Processor is able to achieve one of embodiment as shown in Figure 9 video The video acquiring module to be clipped of processing unit, video preview module to be clipped, video playback module to be clipped, target video close At the function of module.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of method for processing video frequency characterized by comprising
Obtain at least two selected videos to be clipped;
All videos to be clipped are played simultaneously at video preview interface, all videos to be clipped include identical Audio track;
Successively according to the selected instruction of main view frequency in video preview interface triggering, main view frequency broadcast interface play in order with The selected associated video to be clipped of instruction of main view frequency, video to be clipped described in synchronous recording is in the main video playing What is played on interface is used to synthesize the video information of target video, and the selected instruction of main view frequency is for being selected in the main view frequency The video to be clipped that broadcast interface plays;
Video Composition instruction is obtained, based on the audio track, the video information and Video Composition instruction to described Video to be clipped carries out editing, synthesizes target video.
2. method for processing video frequency according to claim 1, which is characterized in that the method is based on iOS system AVfoundation frame is realized.
3. method for processing video frequency according to claim 1, which is characterized in that described successively according in video preview circle The selected instruction of main view frequency of face triggering plays in order associated described with the selected instruction of main view frequency in main view frequency broadcast interface Video to be clipped, comprising:
Instruction is selected according to the main view frequency currently in video preview interface triggering, the main view frequency broadcast interface is worked as The video to be clipped of preceding broadcasting is switched to and the selected associated video to be clipped of instruction of the main view frequency;
The broadcasting starting point of the video to be clipped of synchronous recording current selected and the main view frequency broadcast interface are currently broadcast The video clip length for the video to be clipped put;
In the current selected of the video preview interface video to be clipped played and main view frequency broadcast interface broadcasting The audio video synchronization to be clipped play.
4. method for processing video frequency according to any one of claims 1 to 3, which is characterized in that be based on the audio described Track, the video information and Video Composition instruction carry out editing to the video to be clipped, synthesize target video After step, comprising:
Set the target video storage information;
The target video is exported in database according to target video storage information and is stored.
5. a kind of video process apparatus characterized by comprising
Video acquiring module to be clipped is configured as obtaining at least two selected videos to be clipped;
Video preview module to be clipped is configured as that all videos to be clipped, institute are played simultaneously at video preview interface The video to be clipped having includes identical audio track;
Video playback module to be clipped is configured as successively according to the selected finger of main view frequency in video preview interface triggering It enables, is playd in order and the selected associated video to be clipped of instruction of the main view frequency, synchronous recording in main view frequency broadcast interface The video information for being used to synthesize target video that the video to be clipped plays on the main view frequency broadcast interface, the main view The video to be clipped that the selected instruction of frequency is played for being selected in the main view frequency broadcast interface;
Target video synthesis module, be configured as obtain Video Composition instruction, based on the audio track, the video information with And the Video Composition instruction carries out editing to the video to be clipped, synthesizes target video.
6. video process apparatus according to claim 9, which is characterized in that the AVfoundation frame based on iOS system Frame realizes the function that each module of the present apparatus is configured.
7. video process apparatus according to claim 9, which is characterized in that in the video playback module to be clipped, Include:
Video switch unit to be clipped is configured as according to the selected instruction of main view frequency currently triggered, by the main view frequency The currently playing video to be clipped of broadcast interface is switched to and the selected associated view to be clipped of instruction of the main view frequency Frequently;
Recording unit is configured as the broadcasting starting point and the main view of the video to be clipped of synchronous recording current selected The video clip length of the currently playing video to be clipped of frequency broadcast interface;
Video playback module unit to be clipped is configured as the video to be clipped played at the video preview interface and institute The audio video synchronization to be clipped for stating the current selected of main view frequency broadcast interface broadcasting plays.
8. according to the described in any item video process apparatus of claim 5 to 7, which is characterized in that further include:
Information setting module is stored, is configured as setting the target video storage information;
Memory module, is configured as storing information according to the target video and exports in database the target video and carry out Storage.
9. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to: execute the step of method for processing video frequency according to any one of claims 1 to 4 Suddenly.
10. a kind of non-transitorycomputer readable storage medium, which is characterized in that when the instruction in the storage medium is by electronics When the processor of equipment executes, so that electronic equipment is able to carry out the described in any item method for processing video frequency of Claims 1-4 Step.
CN201810997460.4A 2018-08-29 2018-08-29 Video processing method and device, electronic equipment and storage medium Active CN109151537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810997460.4A CN109151537B (en) 2018-08-29 2018-08-29 Video processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810997460.4A CN109151537B (en) 2018-08-29 2018-08-29 Video processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109151537A true CN109151537A (en) 2019-01-04
CN109151537B CN109151537B (en) 2020-05-01

Family

ID=64829208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810997460.4A Active CN109151537B (en) 2018-08-29 2018-08-29 Video processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109151537B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110691276A (en) * 2019-11-06 2020-01-14 北京字节跳动网络技术有限公司 Method and device for splicing multimedia segments, mobile terminal and storage medium
CN110740261A (en) * 2019-10-30 2020-01-31 北京字节跳动网络技术有限公司 Video recording method, device, terminal and storage medium
CN110784674A (en) * 2019-10-30 2020-02-11 北京字节跳动网络技术有限公司 Video processing method, device, terminal and storage medium
CN111049829A (en) * 2019-12-13 2020-04-21 南方科技大学 Video streaming transmission method and device, computer equipment and storage medium
CN111836100A (en) * 2019-04-16 2020-10-27 阿里巴巴集团控股有限公司 Method, apparatus, device and storage medium for creating clip track data
CN112188117A (en) * 2020-08-29 2021-01-05 上海量明科技发展有限公司 Video synthesis method, client and system
CN112449231A (en) * 2019-08-30 2021-03-05 腾讯科技(深圳)有限公司 Multimedia file material processing method and device, electronic equipment and storage medium
CN113014999A (en) * 2021-03-04 2021-06-22 广东图友软件科技有限公司 Audio and video segmentation clipping method based on HTML5Canvas
CN113473225A (en) * 2021-07-06 2021-10-01 北京市商汤科技开发有限公司 Video generation method and device, electronic equipment and storage medium
CN114286179A (en) * 2021-12-28 2022-04-05 北京快来文化传播集团有限公司 Video editing method, apparatus and computer-readable storage medium
CN115278306A (en) * 2022-06-20 2022-11-01 阿里巴巴(中国)有限公司 Video editing method and device
CN116033221A (en) * 2022-12-22 2023-04-28 北京新唐思创教育科技有限公司 Video processing method, device, equipment and medium
US11997409B2 (en) 2019-10-30 2024-05-28 Beijing Bytedance Network Technology Co., Ltd. Video processing method and apparatus, and terminal and storage medium
US12015841B2 (en) 2022-07-07 2024-06-18 Douyin Vision (Beijing) Co., Ltd. Method, apparatus, device and storage medium for image shooting
US12120424B2 (en) 2022-09-06 2024-10-15 Douyin Vision Co., Ltd. Method, apparatus, device and storage medium for image shooting

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130124998A1 (en) * 2011-11-14 2013-05-16 Colleen Pendergast Preview display for multi-camera media clips
CN105307028A (en) * 2015-10-26 2016-02-03 新奥特(北京)视频技术有限公司 Video editing method and device specific to video materials of plurality of lenses
CN107438839A (en) * 2016-10-25 2017-12-05 深圳市大疆创新科技有限公司 A kind of multimedia editing method, device and intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130124998A1 (en) * 2011-11-14 2013-05-16 Colleen Pendergast Preview display for multi-camera media clips
CN103931199A (en) * 2011-11-14 2014-07-16 苹果公司 Generation of multi -views media clips
CN105307028A (en) * 2015-10-26 2016-02-03 新奥特(北京)视频技术有限公司 Video editing method and device specific to video materials of plurality of lenses
CN107438839A (en) * 2016-10-25 2017-12-05 深圳市大疆创新科技有限公司 A kind of multimedia editing method, device and intelligent terminal

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836100A (en) * 2019-04-16 2020-10-27 阿里巴巴集团控股有限公司 Method, apparatus, device and storage medium for creating clip track data
CN112449231B (en) * 2019-08-30 2023-02-03 腾讯科技(深圳)有限公司 Multimedia file material processing method and device, electronic equipment and storage medium
CN112449231A (en) * 2019-08-30 2021-03-05 腾讯科技(深圳)有限公司 Multimedia file material processing method and device, electronic equipment and storage medium
US11997409B2 (en) 2019-10-30 2024-05-28 Beijing Bytedance Network Technology Co., Ltd. Video processing method and apparatus, and terminal and storage medium
US12088957B2 (en) 2019-10-30 2024-09-10 Beijing Bytedance Network Technology Co., Ltd. Video processing method and device, terminal, and storage medium
CN110784674A (en) * 2019-10-30 2020-02-11 北京字节跳动网络技术有限公司 Video processing method, device, terminal and storage medium
WO2021083145A1 (en) * 2019-10-30 2021-05-06 北京字节跳动网络技术有限公司 Video processing method and device, terminal, and storage medium
CN110740261A (en) * 2019-10-30 2020-01-31 北京字节跳动网络技术有限公司 Video recording method, device, terminal and storage medium
CN110691276B (en) * 2019-11-06 2022-03-18 北京字节跳动网络技术有限公司 Method and device for splicing multimedia segments, mobile terminal and storage medium
CN110691276A (en) * 2019-11-06 2020-01-14 北京字节跳动网络技术有限公司 Method and device for splicing multimedia segments, mobile terminal and storage medium
CN111049829A (en) * 2019-12-13 2020-04-21 南方科技大学 Video streaming transmission method and device, computer equipment and storage medium
CN111049829B (en) * 2019-12-13 2021-12-03 南方科技大学 Video streaming transmission method and device, computer equipment and storage medium
CN112188117B (en) * 2020-08-29 2021-11-16 上海量明科技发展有限公司 Video synthesis method, client and system
CN112188117A (en) * 2020-08-29 2021-01-05 上海量明科技发展有限公司 Video synthesis method, client and system
CN113014999A (en) * 2021-03-04 2021-06-22 广东图友软件科技有限公司 Audio and video segmentation clipping method based on HTML5Canvas
CN113473225A (en) * 2021-07-06 2021-10-01 北京市商汤科技开发有限公司 Video generation method and device, electronic equipment and storage medium
CN114286179A (en) * 2021-12-28 2022-04-05 北京快来文化传播集团有限公司 Video editing method, apparatus and computer-readable storage medium
CN114286179B (en) * 2021-12-28 2023-10-24 北京快来文化传播集团有限公司 Video editing method, apparatus, and computer-readable storage medium
CN115278306A (en) * 2022-06-20 2022-11-01 阿里巴巴(中国)有限公司 Video editing method and device
CN115278306B (en) * 2022-06-20 2024-05-31 阿里巴巴(中国)有限公司 Video editing method and device
US12015841B2 (en) 2022-07-07 2024-06-18 Douyin Vision (Beijing) Co., Ltd. Method, apparatus, device and storage medium for image shooting
US12035034B2 (en) 2022-07-07 2024-07-09 Douyin Vision (Beijing) Co., Ltd. Method, apparatus, device and storage medium for image shooting
US12120424B2 (en) 2022-09-06 2024-10-15 Douyin Vision Co., Ltd. Method, apparatus, device and storage medium for image shooting
CN116033221A (en) * 2022-12-22 2023-04-28 北京新唐思创教育科技有限公司 Video processing method, device, equipment and medium

Also Published As

Publication number Publication date
CN109151537B (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN109151537A (en) Method for processing video frequency, device, electronic equipment and storage medium
CN106791893B (en) Video live broadcasting method and device
CN105845124B (en) Audio processing method and device
CN106165430A (en) Net cast method and device
CN105447150B (en) Method for playing music, device and terminal device based on face photograph album
CN105744133B (en) Video light compensation method and device
CN105306752B (en) The method and device that generation event is reminded
US20210258619A1 (en) Method for processing live streaming clips and apparatus, electronic device and computer storage medium
CN105407273B (en) Image pickup method, device and the terminal of image
CN105955579A (en) Music playing control method and device
CN109151356A (en) video recording method and device
CN109309843A (en) Video distribution method, terminal and server
CN109413478A (en) Video editing method, device, electronic equipment and storage medium
CN113179418A (en) Live video processing method and device, electronic equipment and storage medium
CN109327733A (en) Video broadcasting method, video play device, electronic equipment and storage medium
CN109963168A (en) Video previewing method and device
CN109039872A (en) Exchange method, device, electronic equipment and the storage medium of Instant audio messages
CN110719530A (en) Video playing method and device, electronic equipment and storage medium
CN103997686B (en) Playing management method and device based on smart television
CN113111220A (en) Video processing method, device, equipment, server and storage medium
CN113411516A (en) Video processing method and device, electronic equipment and storage medium
CN106572397B (en) Interactive approach and device in net cast application
CN106375846B (en) The processing method and processing device of live audio
CN109783171A (en) Desktop plug-ins switching method, device and storage medium
CN104486489A (en) Method and device for outputting call background voice

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
GR01 Patent grant
GR01 Patent grant