WO2022048504A1 - 视频处理方法、终端设备及存储介质 - Google Patents

视频处理方法、终端设备及存储介质 Download PDF

Info

Publication number
WO2022048504A1
WO2022048504A1 PCT/CN2021/115083 CN2021115083W WO2022048504A1 WO 2022048504 A1 WO2022048504 A1 WO 2022048504A1 CN 2021115083 W CN2021115083 W CN 2021115083W WO 2022048504 A1 WO2022048504 A1 WO 2022048504A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
window
frame
shooting
target
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.)
Ceased
Application number
PCT/CN2021/115083
Other languages
English (en)
French (fr)
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to KR1020237008200A priority Critical patent/KR102894550B1/ko
Priority to EP21863569.6A priority patent/EP4210320A4/en
Priority to JP2023514966A priority patent/JP7646814B2/ja
Publication of WO2022048504A1 publication Critical patent/WO2022048504A1/zh
Priority to US17/888,302 priority patent/US11849211B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/34Indicating arrangements 
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/4223Cameras
    • 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/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
    • H04N21/4316Generation 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 for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/633Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
    • H04N23/635Region indicators; Field of view indicators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2624Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects for obtaining an image which is composed of whole input images, e.g. splitscreen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Definitions

  • the embodiments of the present disclosure relate to the technical field of terminal devices, and in particular, to a video processing method, a terminal device, a storage medium, a computer program product, and a computer program.
  • a camera function is usually configured on the terminal device, which is convenient for users to shoot videos anytime, anywhere.
  • the video application software (Application, App for short) installed on the terminal is usually directly used for video capture and video capture. deal with.
  • the video images shot by the existing video apps are single and fixed, unable to render emotions, create atmosphere, highlight the subject, and have poor user experience.
  • Embodiments of the present disclosure provide a video processing method, a terminal device, a storage medium, a computer program product, and a computer program, so as to overcome the single and fixed video images shot by the existing video App, which cannot render emotions, create an atmosphere, and highlight the subject.
  • the problem of poor user experience is a problem of poor user experience.
  • an embodiment of the present disclosure provides a video processing method, including: in response to a first user operation, adding a first video shooting window on a video shooting interface and adjusting the frame of the first video shooting window; shooting a first original video; crop the first original video according to the frame of the first video shooting window to obtain a first target video corresponding to the first video shooting window.
  • an embodiment of the present disclosure provides a terminal device, including: a response unit, configured to, in response to a first user operation, add a first video capture window on a video capture interface and adjust the frame of the first video capture window; a shooting unit for shooting a first original video; a processing unit for cropping the first original video according to the frame of the first video shooting window to obtain a first target video corresponding to the first video shooting window.
  • an embodiment of the present disclosure provides a terminal, including: at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor A processor performs the video processing method described above in the first aspect and various possible designs of the first aspect.
  • embodiments of the present disclosure provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the first aspect and the first Aspects various possible designs of the video processing method described.
  • embodiments of the present disclosure provide a computer program product, including computer-executable instructions, when a processor executes the computer-executable instructions, the video processing described in the first aspect and various possible designs of the first aspect is implemented. method.
  • embodiments of the present disclosure provide a computer program, when a processor executes the computer program, the video processing method described in the first aspect and various possible designs of the first aspect is implemented.
  • the video processing method, the terminal device, and the storage medium provided in this embodiment are applied to the terminal device.
  • a first video capture window is added to the video capture interface and the size of the first video capture window is adjusted. frame; shoot the first original video; crop the first original video according to the frame of the first video shooting window to obtain the first target video corresponding to the first video shooting window; It is necessary to freely adjust the frame of the video shooting window, which is conducive to the video rendering mood, creating an atmosphere, highlighting the subject, and improving the user experience.
  • FIG. 1 is a schematic diagram of a video shooting interface of a terminal device in the prior art
  • FIG. 2 is a schematic flowchart 1 of a video processing method provided by an embodiment of the present disclosure
  • FIG. 3a is an example diagram of a frame provided by an embodiment of the present disclosure.
  • FIG. 3b is another example diagram of a frame provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of a target video acquisition process according to an embodiment of the present disclosure.
  • FIG. 5 is a second schematic flowchart of a video processing method provided by an embodiment of the present disclosure.
  • FIG. 6a is an example diagram of a template provided by an embodiment of the present disclosure.
  • FIG. 6b is another example diagram of a template provided by an embodiment of the present disclosure.
  • FIG. 7 is a structural block diagram of a terminal device provided by an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
  • a camera function is usually configured on the terminal device, which is convenient for users to shoot videos anytime, anywhere.
  • FIG. 1 is a schematic diagram of a video shooting interface of a terminal device in the prior art.
  • the frame corresponding to the existing video App usually covers the video shooting interface of the entire terminal device, that is, the video shooting window.
  • the frame is single and fixed, and this single and fixed frame is not conducive to rendering emotions, creating atmosphere, highlighting the subject, and causing poor user experience.
  • the technical idea of the present disclosure is that the frame of the video shooting window can be freely adjusted according to the user's needs, so as to facilitate the video to render emotions, create an atmosphere, highlight the subject, and improve the user experience.
  • FIG. 2 is a first schematic flowchart of a video processing method provided by an embodiment of the present disclosure.
  • the method of this embodiment can be applied to a terminal device, where the terminal device has a camera function, and the video processing method includes:
  • S101 In response to a first user operation, add a first video capture window on a video capture interface and adjust the frame size of the first video capture window.
  • the user can open the camera icon or the video App icon on the terminal device to enter the video shooting interface.
  • the user can add a video shooting window on the video shooting interface by clicking the add function on the video shooting interface.
  • the frame of the video shooting window can be adjusted according to the user's operation.
  • the frame of the first video capture window is used to indicate the position, shape and size of the first video capture window. Specifically, the position, shape and size of the video capture window on the video capture interface can be adjusted according to the user's operation.
  • adding a first video shooting window on the video shooting interface and adjusting the frame of the first video shooting window includes: displaying multiple selectable frame sizes; In response to a user selection operation, the frame of the first video capture window is determined from the plurality of selectable frames.
  • multiple frames are pre-configured in the terminal device, and each frame has different frame attributes. These multiple frames are displayed on the video shooting interface as options, and then the terminal device responds to the user's selection operation. Determines the frame of the video capture window among the optional frames.
  • the preconfigured frame is usually in a regular shape, such as a rectangle, a circle, and the like.
  • FIG. 3a is an example diagram of a frame provided by an embodiment of the present disclosure. Referring to FIG. 3a, it can be seen that a plurality of optional frames are arranged and displayed at the bottom of the video shooting interface, such as rectangles, circles, etc. of different size ratios. , when the user selects a circle, the frame of the video capture window is a circle.
  • step S101 in response to a first user operation, adding a first video capture window on the video capture interface and adjusting the frame size of the first video capture window includes: in response to the user's adding operation, in A first video window with a preset frame is added to the video shooting interface; in response to a user drawing operation, the frame of the first video window is adjusted.
  • the user can customize the frame of the video shooting window. Specifically, the user first adds a video shooting window with a preset frame in the video shooting interface, and then adjusts the preset frame to the frame desired by the user according to the user's drawing operation.
  • the user-defined frame is usually irregular in shape. For example, if the preset frame is square, the frame of the video capture window initially added by the user is a square. At this time, the user's drawing operation can be received, and the frame of the video capture window can be adjusted from a square to an irregular shape, as shown in Figure 3b The irregular frame shown.
  • Step 102 shooting a first original video.
  • the video is captured by the camera of the terminal device, which is called the original video.
  • Step 103 Crop the first original video according to the frame of the first video shooting window to obtain a first target video corresponding to the first video shooting window.
  • the original video can be cropped according to the frame of the video capture window, that is, the position, size, and shape of the frame on the video capture interface, to obtain the target video corresponding to the video capture window.
  • the target video can be played in the video capture window by clicking the play function button on the video capture interface.
  • step 103 crop the first original video according to the frame of the first video capture window to obtain a first target video corresponding to the first video capture window, including: determining a first video capture window.
  • An external graphic corresponding to the frame of a video shooting window, and the first original video is scaled into the external graphic, wherein the external graphic is the same as the screen shape of the first original video; according to the frame of the first video shooting window , and crop the video picture in the external graphics to obtain the first target video corresponding to the first video shooting window.
  • the original video image shot by the terminal device usually covers the entire video shooting interface.
  • an external image that is different from the original video image can be attached outside the frame of the video shooting window.
  • External graphics with the same shape for example, when the picture of the original video is a rectangle, the external graphic is a proportionally reduced rectangle, and when the picture of the original video is a circle, the external graphic is a circle; then the original video is scaled to the external graphic Then, according to the shape of the frame of the video shooting window, the video picture zoomed into the external graphics is cropped, so as to obtain the target video.
  • FIG. 4 is a schematic diagram of a target video acquisition process provided by an embodiment of the present disclosure.
  • the user can select on the video shooting interface 1.
  • customize the frame 3 of the video shooting window and then determine the circumscribed rectangle 2 of the frame 3, where the circumscribed rectangle 2 has the same shape as the original video; then scale the original video to the circumscribed rectangle 2, and then according to the shape of the frame 3
  • the redundant part of the video frame of the circumscribed rectangle 2 is cropped, and finally the target video corresponding to the frame 3 of the video playback window is obtained.
  • the video processing method provided in this embodiment is applied to a terminal device.
  • the method adds a first video capture window on a video capture interface and adjusts the frame size of the first video capture window; captures the first original video ; Crop the first original video according to the frame of the first video shooting window to obtain the first target video corresponding to the first video shooting window;
  • This embodiment can freely adjust the frame of the video shooting window according to the user's needs , which is conducive to video rendering emotions, creating atmosphere, highlighting the subject, and improving the user experience.
  • FIG. 5 is a second schematic flowchart of a video processing method provided by an embodiment of the present disclosure. As shown in FIG. 5 , the video processing method includes:
  • S201 In response to a first user operation, add a first video capture window on a video capture interface and adjust the frame size of the first video capture window.
  • the first video shooting window and the second video shooting window are located in different areas of the video shooting interface.
  • steps S201 , S202 and S203 are respectively consistent with steps S101 , S102 and S103 in the above-mentioned embodiment.
  • steps S101 , S102 and S103 please refer to the discussion of steps S101 , S102 and S103 , which will not be repeated here.
  • the difference from the previous embodiment is that, in order to further improve the user's video viewing experience, in this embodiment, after obtaining the first target video corresponding to the first video shooting window, in response to the second user operation, adding a second video shooting window to the video shooting interface and adjusting the frame of the second video shooting window; shooting a second original video; cropping the second original video according to the frame of the second video shooting window, and obtaining the same The second target video corresponding to the second video capture window; wherein the first video capture window and the second video capture window are located in different areas of the video capture interface.
  • the user can add multiple video shooting windows in different regions of the video shooting interface, and can adjust the frame of each video shooting window. For example, in response to the first user operation, add a first video capture window in a certain area of the video capture interface, adjust the frame size of the first video capture window, and then crop the captured first original video to obtain the first target video; then in another area on the video capture interface, add a second video capture window, adjust the frame size of the second video capture window, and then crop the captured second original video to obtain a second target video ; and so on, you can continue to add a third video shooting window on different areas of the video shooting interface to obtain the third target video; continue to add a fourth video shooting window to obtain the fourth target video, etc., until the user's stop command.
  • the stop instruction can be generated in the following but not limited to the following ways: firstly, receiving the stop instruction sent by the user; secondly, detecting that the video shooting window has been filled with video, and then generating the stop instruction; thirdly, detecting There is no area on the video capture interface of the terminal device, and a new video capture window can be placed to generate a stop command.
  • the above method can be used, that is, adding a video shooting window on the video shooting interface, shooting a video, adding a video shooting window, and shooting a video, to achieve the same video shooting interface.
  • Video capture window you can also add multiple video capture windows on the video capture interface, and then select one of the video capture windows in turn to capture video.
  • the method further includes: generating a composite video according to the first target video and the second target video; wherein, the The image area of the composite video includes a first area and a second area, the first area is used to present the image of the first target video, and the second area is used to present the image of the second target video; the The image area of the composite video is determined based on the video capture interface, the first area matches the frame of the first video capture window, and the second area matches the frame of the second video capture window.
  • the first target video is played in the first area until the first target video is played, and then the first target video is played in the second area. Play the second target video.
  • the target videos can be synthesized, and when the synthesized videos are played, they can be played in sequence according to the shooting sequence of the target videos.
  • the user adds and adjusts the frame of the first video capture window on the video capture interface, and cuts the first original video according to the frame of the first video capture window to obtain the first target video; Add and adjust the frame of the second video capture window on the video capture interface, and crop the second original video according to the frame of the second video capture window to obtain the second target video; then add a third video capture window on the video capture interface, and according to The frame of the third video shooting window is cut from the third original video to obtain the third target video; then the first target video, the second target video and the third target video are synthesized to generate a composite video, wherein the first target video in the image area of the composite video is An area matches the frame of the first video capture window, used to present the image of the first target video, a second area matches the frame of the
  • the playback order of the target videos may also be adjusted in response to a user's sorting operation.
  • the playback order of the target video can be changed according to user requirements, which further improves the user experience.
  • the method further includes: displaying a plurality of optional templates, wherein the template is composed of a plurality of frames; and determining from the plurality of optional templates in response to a user's trigger operation first template.
  • each template may be composed of different numbers or different shapes of frames, as shown in FIG.
  • One of the templates provided by the embodiment is composed of four irregular frames;
  • FIG. 6b is another example diagram of the template provided by the embodiment of the present disclosure.
  • the other template provided by the embodiment of the present disclosure is composed of: Five irregular frame composition.
  • a plurality of optional templates are displayed on the video shooting interface. In response to the user's trigger operation, one template can be selected from the plurality of optional templates; after the template is selected, the first user can respond to the selected template Operation, in turn indicate that the position corresponding to a certain frame in the template is the frame of the video shooting window, and then shoot the video.
  • the first user operation can be received, and the frame with the label 1 is selected as the frame of the first video shooting window, the first target video is shot, and then the second user operation is received, and the selection label is 2.
  • the frame is the frame of the second video shooting window, shoots the second target video, then receives the third user operation, selects the frame marked with 3 as the frame of the third video shooting window, shoots the third target video, and finally receives the user's first frame.
  • a plurality of optional frames can be displayed; in response to a user selection operation, from the plurality of optional frames Determine the frame of the first video shooting window; or adjust the frame of the video window in response to the user's drawing operation, that is, after determining the template, the terminal device can also change the shape, size, position, etc. of each frame in the template.
  • the method in response to a first user operation, adds a first video capture window on a video capture interface and adjusts the frame of the first video capture window; captures the first original video; Cropping the first original video from the frame of the first video shooting window to obtain a first target video corresponding to the first video shooting window; adding a second video shooting window in the video shooting interface in response to a second user operation and adjusting the frame of the second video shooting window; shooting a second original video; cropping the second original video according to the frame of the second video shooting window to obtain a second target corresponding to the second video shooting window video; wherein, the first video shooting window and the second video shooting window are located in different areas of the video shooting interface; in this embodiment, multiple video shooting windows can be added to the video shooting interface according to user requirements, and can be adjusted freely
  • the frame of each video shooting window, and the video corresponding to the frame is played on each video shooting window, which is beneficial to the video rendering emotions, creating an atmosphere, highlighting the subject, and improving the user experience.
  • FIG. 7 is a structural block diagram of a terminal device provided by an embodiment of the present disclosure.
  • the terminal device includes: a response unit 10 , a photographing unit 20 and a processing unit 30 .
  • the response unit 10 is used for adding a first video shooting window in the video shooting interface and adjusting the frame size of the first video shooting window in response to the first user operation;
  • the shooting unit 20 is used for shooting the first original video;
  • processing The unit 30 is configured to crop the first original video according to the frame of the first video shooting window to obtain a first target video corresponding to the first video shooting window.
  • the response unit 10 is further configured to add a first target video to the video shooting interface in response to a second user operation Two video shooting windows and adjusting the frame of the second video shooting window; the shooting unit 20 is also used for shooting the second original video; the processing unit 30 is also used for cropping according to the frame of the second video shooting window From the second original video, a second target video corresponding to the second video capture window is obtained; wherein the first video capture window and the second video capture window are located in different areas of the video capture interface.
  • the processing unit 30 is further configured to, after obtaining the second target video corresponding to the second video shooting window, generate the target video according to the first target video and the second target video A composite video; wherein, the image area of the composite video includes a first area and a second area, the first area is used to present the image of the first target video, and the second area is used to present the second area
  • the image of the target video; the image area of the composite video is determined based on the video capture interface, the first area matches the frame of the first video capture window, and the second area matches the second video capture match the frame of the window.
  • the terminal device further includes a playing unit 40, the playing unit is configured to play the first target video in the first area during the playing process of the composite video, Until the first target video is played, the second target video is played in the second area.
  • the processing unit 30 is specifically configured to determine an external graphic corresponding to the frame of the first video shooting window, and zoom the first original video into the external graphic, wherein the The shape of the external graphics is the same as that of the first original video; according to the frame of the first video shooting window, the video screen in the external graphics is cropped to obtain the first target video corresponding to the first video shooting window.
  • the response unit 10 is specifically configured to display multiple selectable frames; in response to a user selection operation, determine the frame of the first video shooting window from the multiple selectable frames.
  • the response unit 10 is specifically configured to add a first video capture window with a preset frame in the video capture interface in response to an adding operation by a user; The frame of the first video shooting window is adjusted.
  • the frame of the first video capture window is used to indicate the position, shape and size of the first video capture window.
  • the terminal device provided in this embodiment can be used to execute the technical solutions of the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again in this embodiment.
  • the electronic device 800 may be a terminal device.
  • the terminal equipment may include, but is not limited to, such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, referred to as PDA), tablet computers (Portable Android Device, referred to as PAD), portable multimedia players (Portable Media Player, PMP for short), mobile terminals such as in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, and the like.
  • PDA Personal Digital Assistant
  • PAD Portable Android Device
  • PMP Portable Multimedia Player
  • mobile terminals such as in-vehicle terminals (such as in-vehicle navigation terminals), etc.
  • fixed terminals such as digital TVs, desktop computers, and the like.
  • the electronic device shown in FIG. 8 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 800 may include a processing device (such as a central processing unit, a graphics processor, etc.) 801, which may be stored in a read-only memory (Read Only Memory, ROM for short) 802 according to a program or from a storage device 808 loads a program into a random access memory (Random Access Memory, RAM for short) 803 to perform various appropriate actions and processes.
  • a processing device such as a central processing unit, a graphics processor, etc.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • the processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804.
  • An input/output (I/O) interface 805 is also connected to bus 804 .
  • an input device 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD for short) ), speaker, vibrator, etc. output device 807; storage device 808 including, eg, magnetic tape, hard disk, etc.; and communication device 809.
  • Communication means 809 may allow electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While FIG. 8 shows an electronic device 800 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication device 809, or from the storage device 808, or from the ROM 802.
  • the processing device 801 When the computer program is executed by the processing device 801, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
  • Embodiments of the present disclosure also include a computer program that, when executed on an electronic device, performs the above-mentioned functions defined in the methods of the embodiments of the present disclosure.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
  • the aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by the electronic device, causes the electronic device to execute the methods shown in the foregoing embodiments.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional Procedural programming language - such as the "C" language or similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or, can be connected to An external computer (eg using an Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner.
  • the name of the unit does not constitute a limitation of the unit itself under certain circumstances, for example, the first obtaining unit may also be described as "a unit that obtains at least two Internet Protocol addresses".
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLDs Complex Programmable Logical Devices
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • a video processing method is provided, the method is applied to a terminal device, and the method includes: in response to a first user operation, adding a first Video shooting window and adjusting the frame of the first video shooting window; shooting the first original video; cropping the first original video according to the frame of the first video shooting window, and obtaining the corresponding first video shooting window.
  • First target video in response to a first user operation, adding a first Video shooting window and adjusting the frame of the first video shooting window; shooting the first original video; cropping the first original video according to the frame of the first video shooting window, and obtaining the corresponding first video shooting window.
  • the method further includes: adding a second video to the video shooting interface in response to a second user operation Shooting a window and adjusting the frame of the second video shooting window; shooting a second original video; cropping the second original video according to the frame of the second video shooting window to obtain the first video corresponding to the second video shooting window Two target videos; wherein, the first video capture window and the second video capture window are located in different areas of the video capture interface.
  • the method further includes: generating a composite video according to the first target video and the second target video;
  • the image area of the composite video includes a first area and a second area, the first area is used to present the image of the first target video, and the second area is used to present the image of the second target video image;
  • the image area of the composite video is determined based on the video capture interface, the first area matches the frame of the first video capture window, and the second area matches the frame of the second video capture window match.
  • the first target video is played in the first area until the playback of the first target video is completed, and then the first target video is played in the first region.
  • the second area plays the second target video.
  • the cropping the first original video according to the frame of the first video shooting window to obtain the first target video corresponding to the first video shooting window includes: determining The external graphics corresponding to the frame of the first video shooting window, and the first original video is zoomed into the external graphics, wherein the external graphics is the same as the screen shape of the first original video; The frame is used to crop the video picture in the external graphics to obtain the first target video corresponding to the first video shooting window.
  • the adding a first video capturing window on the video capturing interface and adjusting the frame of the first video capturing window in response to the first user operation includes: displaying multiple optional frame sizes ; In response to the user selection operation, determine the frame of the first video shooting window from the plurality of selectable frames.
  • the adding a first video shooting window on the video shooting interface and adjusting the frame of the first video shooting window in response to a first user operation includes: in response to the user adding operation, A first video shooting window with a preset frame is added on the video shooting interface; in response to a user drawing operation, the frame of the first video shooting window is adjusted.
  • the frame of the first video capture window is used to indicate the position, shape and size of the first video capture window.
  • a terminal device including: a response unit, configured to add a first video capture window in a video capture interface and adjust the The frame of the first video shooting window; the shooting unit is used for shooting the first original video; the processing unit is used for cropping the first original video according to the frame of the first video shooting window, to obtain the same image as the first video shooting The first target video corresponding to the window.
  • the response unit is further configured to, in response to a second user operation, add an image to the video shooting interface
  • the second video shooting window and adjusting the frame of the second video shooting window the shooting unit is further used for shooting the second original video
  • the processing unit is further used for cropping all images according to the frame of the second video shooting window
  • the second original video is obtained to obtain a second target video corresponding to the second video capture window; wherein the first video capture window and the second video capture window are located in different areas of the video capture interface.
  • the processing unit is further configured to, after obtaining the second target video corresponding to the second video shooting window, according to the first target video and the second target video , to generate a composite video; wherein, the image area of the composite video includes a first area and a second area, the first area is used to present the image of the first target video, and the second area is used to present the image of the first target video.
  • the image of the second target video; the image area of the composite video is determined based on the video capture interface, the first area matches the frame of the first video capture window, and the second area matches the second area Match the frame of the video capture window.
  • the terminal device further includes a playing unit configured to play the first target video in the first area during the playing process of the composite video , until the first target video is played, and then play the second target video in the second area.
  • the processing unit is specifically configured to determine an external graphic corresponding to the frame of the first video shooting window, and zoom the first original video into the external graphic, wherein the The external graphics is the same as the picture shape of the first original video; according to the frame of the first video shooting window, the video picture in the external graphics is trimmed to obtain the first target video corresponding to the first video shooting window.
  • the response unit is specifically configured to display multiple selectable frames; and in response to a user selection operation, determine a frame of the first video shooting window from the multiple selectable frames.
  • the response unit is specifically configured to add a first video capture window with a preset frame in the video capture interface in response to a user adding operation; Adjust the frame of the first video shooting window.
  • the frame of the first video capture window is used to indicate the position, shape and size of the first video capture window.
  • a terminal device comprising: at least one processor and a memory; the memory stores computer execution instructions; the at least one processor executes the memory storage The computer executes instructions to cause the at least one processor to perform the video processing method described in the first aspect and various possible designs of the first aspect above.
  • a computer-readable storage medium where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, The video processing methods described above in the first aspect and various possible designs of the first aspect are implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

提供一种视频处理方法、终端设备及存储介质,视频处理方法包括响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整第一视频拍摄窗口的画幅(S101);拍摄第一原始视频(S102);根据第一视频拍摄窗口的画幅裁剪第一原始视频,得到与第一视频拍摄窗口对应的第一目标视频(S103)。能够根据用户的需求自由调整视频拍摄窗口的画幅,有利于视频渲染情绪,营造氛围,突出主体,提高了用户体验。

Description

视频处理方法、终端设备及存储介质
本申请要求于2020年9月4日提交的申请号为202010922803.8、名称为“视频处理方法、终端设备及存储介质”的中国专利申请的优先权,此申请的内容通过引用并入本文。
技术领域
本公开实施例涉及终端设备技术领域,尤其涉及一种视频处理方法、终端设备、存储介质、计算机程序产品及计算机程序。
背景技术
随着终端设备技术的发展,通常在终端设备上配置了摄像功能,便于用户随时随地的拍摄视频。
现有技术中,为了方便用户将所拍摄的视频分享给其他人,或者对所拍摄的视频进行特效处理,通常会直接利用终端上所安装的视频应用软件(Application,简称App)进行视频拍摄和处理。
但是,现有的视频App所拍摄的视频画面单一、固定,无法渲染情绪,营造氛围,突出主体,用户体验较差。
发明内容
本公开实施例提供一种视频处理方法、终端设备、存储介质、计算机程序产品及计算机程序,以克服现有的视频App所拍摄的视频画面单一、固定,无法渲染情绪,营造氛围,突出主体,用户体验较差的问题。
第一方面,本公开实施例提供一种视频处理方法,包括:响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;拍摄第一原始视频;根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频。
第二方面,本公开实施例提供一种终端设备,包括:响应单元,用于响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;拍摄单元,用于拍摄第一原始视频;处理单元,用于根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频。
第三方面,本公开实施例提供一种终端,包括:至少一个处理器和存储器;所述存储器存储计算机执行指令;所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面以及第一方面各种可能的设计所述的视频处理方法。
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的视频处理方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的视频处理方法。
第六方面,本公开实施例提供一种计算机程序,当处理器执行所述计算机程序时,实现如上第一方面以及第一方面各种可能的设计所述的视频处理方法。
本实施例提供的视频处理方法、终端设备及存储介质,该方法应用于终端设备,通过响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;拍摄第一原始视频;根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频;即本实施例能够根据用户的需求自由调整视频拍摄窗口的画幅,有利于视频渲染情绪,营造氛围,突出主体,提高了用户体验。
附图说明
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为现有技术中一种终端设备的视频拍摄界面示意图;
图2为本公开实施例提供的视频处理方法流程示意图一;
图3a为本公开实施例提供的画幅的一个示例图;
图3b为本公开实施例提供的画幅的另一个示例图;
图4为本公开实施例提供的一种目标视频获取过程示意图;
图5为本公开实施例提供的视频处理方法流程示意图二;
图6a为本公开实施例提供的模板的一个示例图;
图6b为本公开实施例提供的模板的另一个示例图;
图7为本公开实施例提供的终端设备的结构框图;
图8为本公开实施例提供的电子设备的硬件结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
随着终端设备技术的发展,通常在终端设备上配置了摄像功能,便于用户随时随地的拍摄视频。
现有技术中,为了方便用户将所拍摄的视频分享给其他人,或者对所拍摄的视频进行特效处理,通常会直接利用终端上所安装的视频App进行视频拍摄和处理,例如抖音App。图1为现有技术中一种终端设备的视频拍摄界面示意图,参考图1所示,可见现有 的视频App对应的画幅通常是铺满整个终端设备的视频拍摄界面的,即视频拍摄窗口的画幅是单一、固定的,而这种单一、固定的画幅不利于渲染情绪,营造氛围,突出主体,造成用户体验较差。
针对该问题,本公开的技术构思在于,可以根据用户的需求自由调整视频拍摄窗口的画幅,便于视频进行渲染情绪,营造氛围,突出主体,提高用户体验。
参考图2,图2为本公开实施例提供的视频处理方法流程示意图一。本实施例的方法可以应用在终端设备中,其中,所述终端设备具备摄像功能,该视频处理方法包括:
S101:响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅。
具体地,用户可以打开终端设备上的相机图标或视频App图标,进入视频拍摄界面,在该视频拍摄界面上,用户可以通过点击视频拍摄界面上的添加功能在视频拍摄界面上添加视频拍摄窗口,并可以根据用户的操作调整视频拍摄窗口的画幅。
在本公开的一个实施例中,所述第一视频拍摄窗口的画幅用于指示所述第一视频拍摄窗口的位置、形状和尺寸。具体地,可以根据用户的操作调整视频拍摄窗口在视频拍摄界面上的位置、形状以及尺寸。
在本公开的一个实施例中,步骤S101的响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅,包括:显示多个可选画幅;响应于用户选择操作,从所述多个可选画幅中确定第一视频拍摄窗口的画幅。
具体地,在终端设备中预先配置了多个画幅,每个画幅具有不同的画幅属性,这多个画幅作为可选项在视频拍摄界面上进行显示,然后终端设备响应于用户的选择操作,从多个可选画幅中确定视频拍摄窗口的画幅。可选的,这预先配置的画幅通常为规则形状,如长方形、圆形等。举例来说,图3a为本公开实施例提供的画幅的一个示例图,参考图3a可知,在视频拍摄界面的下方排列显示了多个可选画幅,如:不同尺寸比例的长方形、圆形等,当用户选择圆形时,视频拍摄窗口的画幅为圆形。
在本公开的一个实施例中,步骤S101的响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅,包括:响应于用户添加操作,在所述视频拍摄界面添加预设画幅的第一视频窗口;响应于用户绘制操作,对所述第一视频窗口的画幅进行调整。
在本实施例中,用户可以自定义设置视频拍摄窗口的画幅。具体地说,用户首先在视频拍摄界面添加一个具有预设画幅的视频拍摄窗口,然后根据用户的绘制操作调整预设画幅为用户想要的画幅。可选的,用户自定义的画幅通常为不规则形状。例如,预设画幅为正方形,则用户初始添加的视频拍摄窗口的画幅为正方形,此时可以接收用户的绘制操作,将该视频拍摄窗口的画幅由正方形调整为一个不规则形状,如图3b所示的不规则画幅。
步骤102、拍摄第一原始视频。
具体地,通过终端设备的摄像头拍摄视频,称之为原始视频。
步骤103、根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频。
具体地,可以根据视频拍摄窗口的画幅,即画幅在视频拍摄界面的位置、尺寸以及形状等信息,裁剪原始视频,得到与视频拍摄窗口对应的目标视频。可选的,在得到目标视频后,还可以通过点击视频拍摄界面上的播放功能按钮,在视频拍摄窗口内播放目标视频。
在本公开的一个实施例中,步骤103的根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频,包括:确定第一视频拍摄窗口的画幅所对应的外接图形,并将所述第一原始视频缩放至外接图形中,其中,所述外接图形与第一原始视频的画面形状相同;根据第一视频拍摄窗口的画幅,对外接图形中的视频画面进行裁剪,得到与第一视频拍摄窗口对应的第一目标视频。
具体地,终端设备所拍摄的原始视频画面通常是铺满整个视频拍摄界面的,为了获取更清晰的目标视频,在本实施例中,可以在视频拍摄窗口的画幅外,外接一个与原始视频画面形状相同的外接图形,例如,当原始视频的画面为长方形时,外接图形为成比例缩小的长方形,当原始视频的画面为圆形时,外接图形为圆形;然后将原始视频缩放到该外接图形中,然后按照视频拍摄窗口的画幅的形状对缩放到外接图形中的视频画面进行裁剪,从而得到目标视频。
举例来说,图4为本公开实施例提供的一种目标视频获取过程示意图,以原始视频的画面为铺满整个视频拍摄界面1的长方形为例,首先用户可在视频拍摄界面1上选定或者自定义视频拍摄窗口的画幅3,然后确定画幅3的外接长方形2,其中,外接长方形2与原始视频的画面形状相同;然后将原始视频缩放到外接长方形2中,再根据画幅3的形状将外接长方形2多余部分的视频画面裁剪掉,最后获得与视频播放窗口的画幅3对应的目标视频。
本实施例提供的视频处理方法,应用于终端设备,该方法响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;拍摄第一原始视频;根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频;本实施例能够根据用户的需求自由调整视频拍摄窗口的画幅,有利于视频渲染情绪,营造氛围,突出主体,提高了用户体验。
在前述实施例的基础上,图5为本公开实施例提供的视频处理方法流程示意图二,如图5所示,该视频处理方法包括:
S201:响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅。
S202、拍摄第一原始视频。
S203、根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频。
S204、响应于第二用户操作,在所述视频拍摄界面添加第二视频拍摄窗口并调整所述第二视频拍摄窗口的画幅。
S205、拍摄第二原始视频。
S206、根据所述第二视频拍摄窗口的画幅裁剪所述第二原始视频,得到与所述第二视频拍摄窗口对应的第二目标视频。
其中,所述第一视频拍摄窗口与第二视频拍摄窗口位于所述视频拍摄界面的不同区域。
在本实施例中,步骤S201、S202以及S203分别与上述实施例中步骤S101、S102以及S103一致,详细论述请参考步骤S101、S102以及S103的论述,这里不再赘述。
与前述实施例的区别在于,为了进一步提高用户观看视频体验,在本实施例中,在得到与所述第一视频拍摄窗口对应的第一目标视频之后,还响应于第二用户操作,在所述视频拍摄界面添加第二视频拍摄窗口并调整所述第二视频拍摄窗口的画幅;拍摄第二原始视频;根据所述第二视频拍摄窗口的画幅裁剪所述第二原始视频,得到与所述第二视频拍摄窗口对应的第二目标视频;其中,所述第一视频拍摄窗口与第二视频拍摄窗口位于所述视频拍摄界面的不同区域。
具体地,用户可以在视频拍摄界面的不同区域中添加多个视频拍摄窗口,并可以对每个视频拍摄窗口的画幅进行调整。举例来说,首先响应于第一用户操作,在视频拍摄界面的某一区域内添加第一视频拍摄窗口,并调整第一视频拍摄窗口的画幅,然后对拍摄的第一原始视频进行裁剪,得到第一目标视频;然后在该视频拍摄界面上另一区域内,添加第二视频拍摄窗口,并调整第二视频拍摄窗口的画幅,然后对拍摄的第二原始视频进行裁剪,得到第二目标视频;依次类推,可以在该视频拍摄界面的不同区域上,继续添加第三视频拍摄窗口,获得第三目标视频;继续添加第四视频拍摄窗口,获得第四目标视频等等,直至接收到用户的停止指令。
其中,停止指令可以通过以下但并不限于以下方式生成,其一,接收到用户发送的停止指令;其二,检测到视频拍摄窗口已经全部被填充了视频,进而生成停止指令;其三,检测到终端设备的视频拍摄界面已经没有区域,可以去放置新的视频拍摄窗口,进而生成停止指令。
需要说明的是,可以通过上述方式,即在视频拍摄界面上添加一个视频拍摄窗口,拍摄一段视频,再添加一个视频拍摄窗口,再拍摄一段视频,来实现在同一个视频拍摄界面上包括多个视频拍摄窗口;也可以在视频拍摄界面上首先添加多个视频拍摄窗口,然后依次选定其中一个视频拍摄窗口,进行视频拍摄。
在本公开的一个实施例中,得到与所述第二视频拍摄窗口对应的第二目标视频之后,还包括:根据所述第一目标视频和第二目标视频,生成合成视频;其中,所述合成视频的图像区域包括第一区域和第二区域,所述第一区域用于呈现所述第一目标视频的图像,所述第二区域用于呈现所述第二目标视频的图像;所述合成视频的图像区域基于所述视频拍摄界面确定,所述第一区域与所述第一视频拍摄窗口的画幅相匹配,所述第二区域与所述第二视频拍摄窗口的画幅相匹配。
在本公开的一个实施例中,在所述合成视频的播放过程中,在所述第一区域播放所述第一目标视频,直至所述第一目标视频播放完成,再在所述第二区域播放所述第二目标视频。
具体地,当获取到多个目标视频后,可以对目标视频进行合成,在对合成的视频进行播放时,可以按照目标视频的拍摄顺序依次播放。以对三个目标视频为例进行说明,首先用户在视频拍摄界面上添加并调整第一视频拍摄窗口画幅,并根据第一视频拍摄窗口的画幅裁剪第一原始视频得到第一目标视频;然后在视频拍摄界面上添加并调整第二 视频拍摄窗口的画幅,并根据第二视频拍摄窗口的画幅裁剪第二原始视频得到第二目标视频;然后在视频拍摄界面上添加第三视频拍摄窗口,并根据第三视频拍摄窗口的画幅裁剪第三原始视频得到第三目标视频;然后将第一目标视频、第二目标视频以及第三目标视频进行合成,生成合成视频,其中,合成视频的图像区域的第一区域与第一视频拍摄窗口的画幅匹配,用于呈现第一目标视频的图像,第二区域与第二视频拍摄窗口的画幅匹配,用于呈现所述第二目标视频的图像,第三区域与第三视频拍摄窗口的画幅匹配,用于呈现第三目标视频的图像;在合成视频进行播放时,首先在第一区域播放第一目标视频,直至第一目标视频播放完成,再在第二区域播放第二目标视频,直至第二目标视频播放完成,再在第三区域播放第三目标视频。可见,本实施例通过依次在与各视频播放窗口的画幅相匹配的区域内播放目标视频,有利于用户了解事件发展的前后顺序,提高用户观看视频的体验。
可选的,在合成视频播放过程中,还可以响应于用户的排序操作,调整目标视频的播放顺序。
举例来说,假设原本的合成视频按照第一目标视频、第二目标视频、第三目标视频的次序依次播放,如果用户想要变更目标视频的播放顺序,例如想要按照第二目标视频、第一目标视频以及第三目标视频的顺序播放,则可以接收到用户的排序操作,调整合成视频按照第二目标视频、第一目标视频、第三目标视频的次序依次播放;可见,本实施例,在视频播放过程中,可以根据用户需求变更目标视频的播放顺序,进一步提高了用户体验。
可选的,在步骤S201之前,所述方法还包括:显示多个可选模板,其中,所述模板由多个画幅构成;响应于用户的触发操作,从所述多个可选模板中确定第一模板。
具体地,终端设备上预先配置多个模板,每个模板可以由不同数量或者不同形状的画幅构成,如图6a为本公开实施例提供的模板的一个示例图,如图6a所示,本公开实施例提供的其中一种模板由四个不规则画幅构成;图6b为本公开实施例提供的模板的另一个示例图,如图6b所示,本公开实施例提供的其中另一种模板由五个不规则画幅构成。本实施例中,在视频拍摄界面上,显示了多个可选模板,响应于用户的触发操作,可以从这多个可模板中选择其中一个模板;当选定模板后,可以响应第一用户操作,依次指示出模板中的某一画幅对应的位置为视频拍摄窗口的画幅,然后拍摄视频。以图6a为选定的模板为例,可以接收第一用户操作,选择标号为①的画幅为第一视频拍摄窗口的画幅,拍摄第一目标视频,然后接收第二用户操作,选择标号为②的画幅为第二视频拍摄窗口的画幅,拍摄第二目标视频,然后接收第三用户操作,选择标号为③的画幅为第三视频拍摄窗口的画幅,拍摄第三目标视频,最后接收用户的第四用户操作,选择标号为④的画幅为第四视频拍摄窗口的画幅,拍摄第四目标视频;拍摄完成后进行视频合成;最后所合成的视频在播放时,按照拍摄顺序,依次在标号为①、②、③、④画幅中播放对应的目标视频。可见,本实施例可以通过选择多个画幅构成的模板,避免了用户需要多次调整视频拍摄窗口的画幅,提高了视频的处理效率。
可选的,在确定第一模板后,进入该模板画面后,对应于模板中的每个画幅区域,可以显示多个可选画幅;响应于用户选择操作,从所述多个可选画幅中确定第一视频拍 摄窗口的画幅;或者响应于用户绘制操作,对视频窗口的画幅进行调整,也就是,确定模板后,终端设备还可以更改模板中每个画幅的形状、尺寸、位置等。
本实施例提供的视频处理方法,该方法通过响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;拍摄第一原始视频;根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频;响应于第二用户操作,在所述视频拍摄界面添加第二视频拍摄窗口并调整所述第二视频拍摄窗口的画幅;拍摄第二原始视频;根据所述第二视频拍摄窗口的画幅裁剪所述第二原始视频,得到与所述第二视频拍摄窗口对应的第二目标视频;其中,所述第一视频拍摄窗口与第二视频拍摄窗口位于所述视频拍摄界面的不同区域;本实施例能够根据用户的需求在视频拍摄界面添加多个视频拍摄窗口,并可自由调整每个视频拍摄窗口的画幅,并在每个视频拍摄窗口上播放与画幅对应的视频,有利于视频渲染情绪,营造氛围,突出主体,提高了用户体验。
对应于上文实施例的视频处理方法,图7为本公开实施例提供的终端设备的结构框图。为了便于说明,仅示出了与本公开实施例相关的部分。参照图7,所述终端设备包括:响应单元10、拍摄单元20以及处理单元30。
其中,响应单元10,用于响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;拍摄单元20,用于拍摄第一原始视频;处理单元30,用于根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频。
在本公开的一个实施例中,得到与所述第一视频拍摄窗口对应的第一目标视频之后,所述响应单元10,还用于响应于第二用户操作,在所述视频拍摄界面添加第二视频拍摄窗口并调整所述第二视频拍摄窗口的画幅;所述拍摄单元20还用于拍摄第二原始视频;所述处理单元30,还用于根据所述第二视频拍摄窗口的画幅裁剪所述第二原始视频,得到与所述第二视频拍摄窗口对应的第二目标视频;其中,所述第一视频拍摄窗口与第二视频拍摄窗口位于所述视频拍摄界面的不同区域。
本公开的一个实施例中,所述处理单元30,还用于,在得到与所述第二视频拍摄窗口对应的第二目标视频之后,根据所述第一目标视频和第二目标视频,生成合成视频;其中,所述合成视频的图像区域包括第一区域和第二区域,所述第一区域用于呈现所述第一目标视频的图像,所述第二区域用于呈现所述第二目标视频的图像;所述合成视频的图像区域基于所述视频拍摄界面确定,所述第一区域与所述第一视频拍摄窗口的画幅相匹配,所述第二区域与所述第二视频拍摄窗口的画幅相匹配。
在本公开的一个实施例中,所述终端设备还包括播放单元40,所述播放单元,用于在所述合成视频的播放过程中,在所述第一区域播放所述第一目标视频,直至所述第一目标视频播放完成,再在所述第二区域播放所述第二目标视频。
在本公开的一个实施例中,所述处理单元30,具体用于确定第一视频拍摄窗口的画幅所对应的外接图形,并将所述第一原始视频缩放至外接图形中,其中,所述外接图形与第一原始视频的画面形状相同;根据第一视频拍摄窗口的画幅,对外接图形中的视频画面进行裁剪,得到与第一视频拍摄窗口对应的第一目标视频。
在本公开的一个实施例中,所述响应单元10,具体用于显示多个可选画幅;响应于用户选择操作,从所述多个可选画幅中确定第一视频拍摄窗口的画幅。
在本公开的一个实施例中,所述响应单元10,具体用于响应于用户添加操作,在所述视频拍摄界面添加预设画幅的第一视频拍摄窗口;响应于用户绘制操作,对所述第一视频拍摄窗口的画幅进行调整。
在本公开的一个实施例中,所述第一视频拍摄窗口的画幅用于指示所述第一视频拍摄窗口的位置、形状和尺寸。
本实施例提供的终端设备,可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,本实施例此处不再赘述。
参考图8,其示出了适于用来实现本公开实施例的电子设备800的结构示意图,该电子设备800可以为终端设备。其中,终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,简称PDA)、平板电脑(Portable Android Device,简称PAD)、便携式多媒体播放器(Portable Media Player,简称PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图8示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图8所示,电子设备800可以包括处理装置(例如中央处理器、图形处理器等)801,其可以根据存储在只读存储器(Read Only Memory,简称ROM)802中的程序或者从存储装置808加载到随机访问存储器(Random Access Memory,简称RAM)803中的程序而执行各种适当的动作和处理。在RAM 803中,还存储有电子设备800操作所需的各种程序和数据。处理装置801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。
通常,以下装置可以连接至I/O接口805:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置806;包括例如液晶显示器(Liquid Crystal Display,简称LCD)、扬声器、振动器等的输出装置807;包括例如磁带、硬盘等的存储装置808;以及通信装置809。通信装置809可以允许电子设备800与其他设备进行无线或有线通信以交换数据。虽然图8示出了具有各种装置的电子设备800,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置809从网络上被下载和安装,或者从存储装置808被安装,或者从ROM 802被安装。在该计算机程序被处理装置801执行时,执行本公开实施例的方法中限定的上述功能。本公开的实施例还包括一种计算机程序,当其在电子设备上运行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的 电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,简称LAN)或广域网(Wide Area Network,简称WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、 专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
第一方面,根据本公开的一个或多个实施例,提供了一种视频处理方法,所述方法应用于终端设备,所述方法包括:响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;拍摄第一原始视频;根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频。
根据本公开的一个或多个实施例,所述得到与所述第一视频拍摄窗口对应的第一目标视频之后,还包括:响应于第二用户操作,在所述视频拍摄界面添加第二视频拍摄窗口并调整所述第二视频拍摄窗口的画幅;拍摄第二原始视频;根据所述第二视频拍摄窗口的画幅裁剪所述第二原始视频,得到与所述第二视频拍摄窗口对应的第二目标视频;其中,所述第一视频拍摄窗口与第二视频拍摄窗口位于所述视频拍摄界面的不同区域。
根据本公开的一个或多个实施例,所述得到与所述第二视频拍摄窗口对应的第二目标视频之后,还包括:根据所述第一目标视频和第二目标视频,生成合成视频;其中,所述合成视频的图像区域包括第一区域和第二区域,所述第一区域用于呈现所述第一目标视频的图像,所述第二区域用于呈现所述第二目标视频的图像;所述合成视频的图像区域基于所述视频拍摄界面确定,所述第一区域与所述第一视频拍摄窗口的画幅相匹配,所述第二区域与所述第二视频拍摄窗口的画幅相匹配。
根据本公开的一个或多个实施例,在所述合成视频的播放过程中,在所述第一区域播放所述第一目标视频,直至所述第一目标视频播放完成,再在所述第二区域播放所述第二目标视频。
根据本公开的一个或多个实施例,所述根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频,包括:确定第一视频拍摄窗口的画幅所对应的外接图形,并将所述第一原始视频缩放至外接图形中,其中,所述外接图形与第一原始视频的画面形状相同;根据第一视频拍摄窗口的画幅,对外接图形中的视频画面进行裁剪,得到与第一视频拍摄窗口对应的第一目标视频。
根据本公开的一个或多个实施例,所述响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅,包括:显示多个可选画幅;响应于用户选择操作,从所述多个可选画幅中确定第一视频拍摄窗口的画幅。
根据本公开的一个或多个实施例,所述响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅,包括:响应于用户添加操作, 在所述视频拍摄界面添加预设画幅的第一视频拍摄窗口;响应于用户绘制操作,对所述第一视频拍摄窗口的画幅进行调整。
根据本公开的一个或多个实施例,所述第一视频拍摄窗口的画幅用于指示所述第一视频拍摄窗口的位置、形状和尺寸。
第二方面,根据本公开的一个或多个实施例,提供了一种终端设备,包括:响应单元,用于响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;拍摄单元,用于拍摄第一原始视频;处理单元,用于根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频。
根据本公开的一个或多个实施例,得到与所述第一视频拍摄窗口对应的第一目标视频之后,所述响应单元,还用于响应于第二用户操作,在所述视频拍摄界面添加第二视频拍摄窗口并调整所述第二视频拍摄窗口的画幅;所述拍摄单元还用于拍摄第二原始视频;所述处理单元,还用于根据所述第二视频拍摄窗口的画幅裁剪所述第二原始视频,得到与所述第二视频拍摄窗口对应的第二目标视频;其中,所述第一视频拍摄窗口与第二视频拍摄窗口位于所述视频拍摄界面的不同区域。
根据本公开的一个或多个实施例,所述处理单元,还用于,在得到与所述第二视频拍摄窗口对应的第二目标视频之后,根据所述第一目标视频和第二目标视频,生成合成视频;其中,所述合成视频的图像区域包括第一区域和第二区域,所述第一区域用于呈现所述第一目标视频的图像,所述第二区域用于呈现所述第二目标视频的图像;所述合成视频的图像区域基于所述视频拍摄界面确定,所述第一区域与所述第一视频拍摄窗口的画幅相匹配,所述第二区域与所述第二视频拍摄窗口的画幅相匹配。
根据本公开的一个或多个实施例,所述终端设备还包括播放单元,所述播放单元,用于在所述合成视频的播放过程中,在所述第一区域播放所述第一目标视频,直至所述第一目标视频播放完成,再在所述第二区域播放所述第二目标视频。
根据本公开的一个或多个实施例,所述处理单元,具体用于确定第一视频拍摄窗口的画幅所对应的外接图形,并将所述第一原始视频缩放至外接图形中,其中,所述外接图形与第一原始视频的画面形状相同;根据第一视频拍摄窗口的画幅,对外接图形中的视频画面进行裁剪,得到与第一视频拍摄窗口对应的第一目标视频。
根据本公开的一个或多个实施例,所述响应单元,具体用于显示多个可选画幅;响应于用户选择操作,从所述多个可选画幅中确定第一视频拍摄窗口的画幅。
根据本公开的一个或多个实施例,所述响应单元,具体用于响应于用户添加操作,在所述视频拍摄界面添加预设画幅的第一视频拍摄窗口;响应于用户绘制操作,对所述第一视频拍摄窗口的画幅进行调整。
根据本公开的一个或多个实施例,所述第一视频拍摄窗口的画幅用于指示所述第一视频拍摄窗口的位置、形状和尺寸。
第三方面,根据本公开的一个或多个实施例,提供了一种终端设备,包括:至少一个处理器和存储器;所述存储器存储计算机执行指令;所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面以及第一方面各种可能的设计所述的视频处理方法。
第四方面,根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的视频处理方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (13)

  1. 一种视频处理方法,其特征在于,所述方法应用于终端设备,所述方法包括:
    响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;
    拍摄第一原始视频;
    根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频。
  2. 根据权利要求1所述的方法,其特征在于,所述得到与所述第一视频拍摄窗口对应的第一目标视频之后,还包括:
    响应于第二用户操作,在所述视频拍摄界面添加第二视频拍摄窗口并调整所述第二视频拍摄窗口的画幅;
    拍摄第二原始视频;
    根据所述第二视频拍摄窗口的画幅裁剪所述第二原始视频,得到与所述第二视频拍摄窗口对应的第二目标视频;
    其中,所述第一视频拍摄窗口与第二视频拍摄窗口位于所述视频拍摄界面的不同区域。
  3. 根据权利要求2所述的方法,其特征在于,所述得到与所述第二视频拍摄窗口对应的第二目标视频之后,还包括:
    根据所述第一目标视频和第二目标视频,生成合成视频;
    其中,所述合成视频的图像区域包括第一区域和第二区域,所述第一区域用于呈现所述第一目标视频的图像,所述第二区域用于呈现所述第二目标视频的图像;所述合成视频的图像区域基于所述视频拍摄界面确定,所述第一区域与所述第一视频拍摄窗口的画幅相匹配,所述第二区域与所述第二视频拍摄窗口的画幅相匹配。
  4. 根据权利要求3所述的方法,其特征在于,在所述合成视频的播放过程中,在所述第一区域播放所述第一目标视频,直至所述第一目标视频播放完成,再在所述第二区域播放所述第二目标视频。
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频,包括:
    确定第一视频拍摄窗口的画幅所对应的外接图形,并将所述第一原始视频缩放至外接图形中,其中,所述外接图形与第一原始视频的画面形状相同;
    根据第一视频拍摄窗口的画幅,对外接图形中的视频画面进行裁剪,得到与第一视频拍摄窗口对应的第一目标视频。
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅,包括:
    显示多个可选画幅;
    响应于用户选择操作,从所述多个可选画幅中确定第一视频拍摄窗口的画幅。
  7. 根据权利要求1至5任一项所述的方法,其特征在于,所述响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅,包括:
    响应于用户添加操作,在所述视频拍摄界面添加预设画幅的第一视频拍摄窗口;
    响应于用户绘制操作,对所述第一视频拍摄窗口的画幅进行调整。
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述第一视频拍摄窗口的画幅用于指示所述第一视频拍摄窗口的位置、形状和尺寸。
  9. 一种终端设备,其特征在于,包括:
    响应单元,用于响应于第一用户操作,在视频拍摄界面添加第一视频拍摄窗口并调整所述第一视频拍摄窗口的画幅;
    拍摄单元,用于拍摄第一原始视频;
    处理单元,用于根据所述第一视频拍摄窗口的画幅裁剪所述第一原始视频,得到与所述第一视频拍摄窗口对应的第一目标视频。
  10. 一种终端设备,其特征在于,包括:至少一个处理器和存储器;
    所述存储器存储计算机执行指令;
    所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求1至8任一项所述的视频处理方法。
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至8任一项所述的视频处理方法。
  12. 一种计算机程序产品,包括计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至8任一项所述的视频处理方法。
  13. 一种计算机程序,当处理器执行所述计算机程序时,实现如权利要求1至8任一项所述的视频处理方法。
PCT/CN2021/115083 2020-09-04 2021-08-27 视频处理方法、终端设备及存储介质 Ceased WO2022048504A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020237008200A KR102894550B1 (ko) 2020-09-04 2021-08-27 비디오 처리 방법, 단말기 및 저장매체
EP21863569.6A EP4210320A4 (en) 2020-09-04 2021-08-27 Video processing method, terminal device and storage medium
JP2023514966A JP7646814B2 (ja) 2020-09-04 2021-08-27 ビデオ処理方法、端末機器及び記憶媒体
US17/888,302 US11849211B2 (en) 2020-09-04 2022-08-15 Video processing method, terminal device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010922803.8 2020-09-04
CN202010922803.8A CN112004032B (zh) 2020-09-04 2020-09-04 视频处理方法、终端设备及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/888,302 Continuation US11849211B2 (en) 2020-09-04 2022-08-15 Video processing method, terminal device and storage medium

Publications (1)

Publication Number Publication Date
WO2022048504A1 true WO2022048504A1 (zh) 2022-03-10

Family

ID=73470066

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/115083 Ceased WO2022048504A1 (zh) 2020-09-04 2021-08-27 视频处理方法、终端设备及存储介质

Country Status (6)

Country Link
US (1) US11849211B2 (zh)
EP (1) EP4210320A4 (zh)
JP (1) JP7646814B2 (zh)
KR (1) KR102894550B1 (zh)
CN (1) CN112004032B (zh)
WO (1) WO2022048504A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115757871A (zh) * 2022-11-15 2023-03-07 北京字跳网络技术有限公司 视频标注方法、装置、设备、介质及产品
WO2023226694A1 (zh) * 2022-05-25 2023-11-30 荣耀终端有限公司 录像方法、装置及存储介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021083146A1 (zh) 2019-10-30 2021-05-06 北京字节跳动网络技术有限公司 视频处理方法、装置、终端及存储介质
CN110784674B (zh) 2019-10-30 2022-03-15 北京字节跳动网络技术有限公司 视频处理的方法、装置、终端及存储介质
CN112004032B (zh) * 2020-09-04 2022-02-18 北京字节跳动网络技术有限公司 视频处理方法、终端设备及存储介质
CN117425057A (zh) * 2022-07-07 2024-01-19 抖音视界(北京)有限公司 用于影像拍摄的方法、装置、设备和存储介质
CN117407596A (zh) 2022-07-07 2024-01-16 抖音视界(北京)有限公司 用于内容呈现的方法、装置、设备和存储介质
CN115334246B (zh) 2022-09-06 2025-07-01 抖音视界有限公司 用于影像拍摄的方法、装置、设备和存储介质
WO2024229140A1 (en) * 2023-05-03 2024-11-07 Mixcord, Inc. Systems and methods for providing interactivity with pre‑recorded media
JP2026020951A (ja) * 2024-07-29 2026-02-10 富士フイルム株式会社 画像処理装置、端末装置、編集方法、画像処理方法、及びプログラム

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110292242A1 (en) * 2010-05-27 2011-12-01 Canon Kabushiki Kaisha User interface and method for exposure adjustment in an image capturing device
CN103491298A (zh) * 2013-09-13 2014-01-01 惠州Tcl移动通信有限公司 多区域实时合成拍照方法及触控终端
CN104333699A (zh) * 2014-11-25 2015-02-04 广州视源电子科技股份有限公司 自定义拍照区域合成方法及装置
US20150116542A1 (en) * 2013-10-29 2015-04-30 Samsung Electronics Co., Ltd. Electronic apparatus for making bokeh image and method thereof
CN104836956A (zh) * 2015-05-09 2015-08-12 陈包容 一种手机拍摄视频的处理方法及装置
CN105162978A (zh) * 2015-08-26 2015-12-16 努比亚技术有限公司 拍照处理方法及装置
EP3125524A1 (en) * 2015-07-28 2017-02-01 LG Electronics Inc. Mobile terminal and method for controlling the same
CN107087137A (zh) * 2017-06-01 2017-08-22 腾讯科技(深圳)有限公司 呈现视频的方法和装置及终端设备
CN107872623A (zh) * 2017-12-22 2018-04-03 维沃移动通信有限公司 一种拍摄方法、移动终端及计算机可读存储介质
CN108769511A (zh) * 2018-05-07 2018-11-06 北京金山安全软件有限公司 一种图像拍摄方法、装置、电子设备及存储介质
CN110336968A (zh) * 2019-07-17 2019-10-15 广州酷狗计算机科技有限公司 视频录制方法、装置、终端设备及存储介质
CN112004032A (zh) * 2020-09-04 2020-11-27 北京字节跳动网络技术有限公司 视频处理方法、终端设备及存储介质

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3450498B2 (ja) * 1995-03-23 2003-09-22 キヤノン株式会社 画像編集方法及びその装置
CA2443286A1 (en) * 2003-10-01 2005-04-01 Aryan Saed Digital composition of a mosaic motion picture
US20090003712A1 (en) * 2007-06-28 2009-01-01 Microsoft Corporation Video Collage Presentation
US9275479B2 (en) * 2009-10-22 2016-03-01 Collage.Com, Llc Method, system and computer program product for creating collages that visually resemble a particular shape or group of shapes
JP2012004739A (ja) 2010-06-15 2012-01-05 Sony Corp 情報処理装置、情報処理方法、及びプログラム
WO2012079614A1 (en) 2010-12-17 2012-06-21 Sony Ericsson Mobile Communications Ab Method for creating merged media data with a mobile device
US8930811B2 (en) * 2011-06-20 2015-01-06 Kodak Alaris Inc. Method for making multi-element image templates
KR20140098009A (ko) 2013-01-30 2014-08-07 삼성전자주식회사 컨텍스트 기반 카메라 콜라주를 생성하는 방법 및 시스템
CA2911553C (en) * 2013-05-06 2021-06-08 Noo Inc. Audio-video compositing and effects
CN105263049B (zh) * 2015-10-28 2019-10-29 努比亚技术有限公司 一种基于帧坐标的视频裁剪装置、方法及移动终端
JP6808497B2 (ja) * 2017-01-05 2021-01-06 キヤノン株式会社 画像処理装置、画像処理装置の制御方法及びプログラム
KR102384054B1 (ko) * 2017-08-01 2022-04-07 엘지전자 주식회사 이동 단말기 및 그 제어 방법
CN111356000A (zh) * 2018-08-17 2020-06-30 北京达佳互联信息技术有限公司 视频合成方法、装置、设备及存储介质
CN109348155A (zh) * 2018-11-08 2019-02-15 北京微播视界科技有限公司 视频录制方法、装置、计算机设备和存储介质
CN109862412B (zh) * 2019-03-14 2021-08-13 广州酷狗计算机科技有限公司 合拍视频的方法、装置及存储介质
CN110086998B (zh) * 2019-05-27 2021-04-06 维沃移动通信有限公司 一种拍摄方法及终端
CN110121094A (zh) * 2019-06-20 2019-08-13 广州酷狗计算机科技有限公司 视频合拍模板的显示方法、装置、设备及存储介质
CN111050070B (zh) * 2019-12-19 2021-11-09 维沃移动通信有限公司 视频拍摄方法、装置、电子设备及介质
CN111147955B (zh) * 2019-12-31 2022-10-18 咪咕视讯科技有限公司 视频播放方法、服务器和计算机可读存储介质

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110292242A1 (en) * 2010-05-27 2011-12-01 Canon Kabushiki Kaisha User interface and method for exposure adjustment in an image capturing device
CN103491298A (zh) * 2013-09-13 2014-01-01 惠州Tcl移动通信有限公司 多区域实时合成拍照方法及触控终端
US20150116542A1 (en) * 2013-10-29 2015-04-30 Samsung Electronics Co., Ltd. Electronic apparatus for making bokeh image and method thereof
CN104333699A (zh) * 2014-11-25 2015-02-04 广州视源电子科技股份有限公司 自定义拍照区域合成方法及装置
CN104836956A (zh) * 2015-05-09 2015-08-12 陈包容 一种手机拍摄视频的处理方法及装置
EP3125524A1 (en) * 2015-07-28 2017-02-01 LG Electronics Inc. Mobile terminal and method for controlling the same
CN105162978A (zh) * 2015-08-26 2015-12-16 努比亚技术有限公司 拍照处理方法及装置
CN107087137A (zh) * 2017-06-01 2017-08-22 腾讯科技(深圳)有限公司 呈现视频的方法和装置及终端设备
CN107872623A (zh) * 2017-12-22 2018-04-03 维沃移动通信有限公司 一种拍摄方法、移动终端及计算机可读存储介质
CN108769511A (zh) * 2018-05-07 2018-11-06 北京金山安全软件有限公司 一种图像拍摄方法、装置、电子设备及存储介质
CN110336968A (zh) * 2019-07-17 2019-10-15 广州酷狗计算机科技有限公司 视频录制方法、装置、终端设备及存储介质
CN112004032A (zh) * 2020-09-04 2020-11-27 北京字节跳动网络技术有限公司 视频处理方法、终端设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4210320A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023226694A1 (zh) * 2022-05-25 2023-11-30 荣耀终端有限公司 录像方法、装置及存储介质
CN115757871A (zh) * 2022-11-15 2023-03-07 北京字跳网络技术有限公司 视频标注方法、装置、设备、介质及产品

Also Published As

Publication number Publication date
US20220394192A1 (en) 2022-12-08
CN112004032A (zh) 2020-11-27
KR102894550B1 (ko) 2025-12-04
JP2023540753A (ja) 2023-09-26
JP7646814B2 (ja) 2025-03-17
US11849211B2 (en) 2023-12-19
CN112004032B (zh) 2022-02-18
EP4210320A1 (en) 2023-07-12
EP4210320A4 (en) 2024-02-14
KR20230049691A (ko) 2023-04-13

Similar Documents

Publication Publication Date Title
US11849211B2 (en) Video processing method, terminal device and storage medium
US12271578B2 (en) Audio sharing method and apparatus, device and medium
US12177512B2 (en) Video processing method and apparatus, electronic device, and storage medium
US12019669B2 (en) Method, apparatus, device, readable storage medium and product for media content processing
US12112772B2 (en) Method and apparatus for video production, device and storage medium
WO2020077914A1 (zh) 图像处理方法、装置、硬件装置
WO2024125329A9 (zh) 直播特效渲染方法、装置、设备、可读存储介质及产品
US20220159197A1 (en) Image special effect processing method and apparatus, and electronic device and computer readable storage medium
WO2022007724A1 (zh) 视频处理方法、装置、设备及存储介质
CN112738634A (zh) 视频文件的生成方法、装置、终端及存储介质
US12243562B2 (en) Method and apparatus for multimedia resource clipping scenario, device and storage medium
WO2022100735A1 (zh) 视频处理方法、装置、电子设备及存储介质
CN115981769A (zh) 页面显示方法、装置、设备、计算机可读存储介质及产品
US12277689B2 (en) Video processing method, electronic device, and storage medium
US20260032318A1 (en) Video processing method, electronic device and medium
WO2024046360A1 (zh) 媒体内容处理方法、装置、设备、可读存储介质及产品
WO2022227909A1 (zh) 视频的动画添加方法、装置、设备及介质
WO2023040749A1 (zh) 图像处理方法、装置、电子设备及存储介质
US12022162B2 (en) Voice processing method and apparatus, electronic device, and computer readable storage medium
EP4730821A1 (en) Media content processing method and apparatus, device, readable storage medium, and product
US12041379B2 (en) Image special effect processing method, apparatus, and electronic device, and computer-readable storage medium
EP4170588B1 (en) Video photographing method and apparatus, and device and storage medium
CN114501041B (zh) 特效显示方法、装置、设备及存储介质
US20240163548A1 (en) Method for displaying capturing interface, electronic device, and non-transitory computer-readable storage medium
WO2023185968A1 (zh) 相机功能页面切换方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21863569

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2023514966

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20237008200

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 202327016673

Country of ref document: IN

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112023004062

Country of ref document: BR

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021863569

Country of ref document: EP

Effective date: 20230404

ENP Entry into the national phase

Ref document number: 112023004062

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20230303

WWG Wipo information: grant in national office

Ref document number: 202327016673

Country of ref document: IN