CN114143487A - Video recording method and device - Google Patents

Video recording method and device Download PDF

Info

Publication number
CN114143487A
CN114143487A CN202111529004.5A CN202111529004A CN114143487A CN 114143487 A CN114143487 A CN 114143487A CN 202111529004 A CN202111529004 A CN 202111529004A CN 114143487 A CN114143487 A CN 114143487A
Authority
CN
China
Prior art keywords
video
path
layer
picture
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111529004.5A
Other languages
Chinese (zh)
Inventor
魏博
邵猛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qianhai Hand Painted Technology and Culture Co Ltd
Original Assignee
Shenzhen Qianhai Hand Painted Technology and Culture Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qianhai Hand Painted Technology and Culture Co Ltd filed Critical Shenzhen Qianhai Hand Painted Technology and Culture Co Ltd
Priority to CN202111529004.5A priority Critical patent/CN114143487A/en
Publication of CN114143487A publication Critical patent/CN114143487A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Circuits (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a video recording method and a video recording device, wherein the method comprises the following steps: s10: acquiring a first path of video pictures shot by a front camera and a second path of video pictures shot by a rear camera; s20: synthesizing the first path of video image and the second path of video image; s30: and outputting the synthesized video picture. The method of the embodiment of the invention can simultaneously acquire the video pictures of the front camera and the rear camera and synthesize the video pictures of the front camera and the rear camera, thereby simultaneously displaying the video pictures of the front camera and the rear camera and simultaneously displaying the video pictures with different visual angles.

Description

Video recording method and device
Technical Field
The invention relates to the technical field of short videos, in particular to a video recording method and device.
Background
More and more people now like to show and record things with mobile phone recorded videos. Generally, the recording and the explanation of the demonstration contents are completed by recording videos and recording explanation sounds through a rear camera. Or the front camera records the portrait + the content and the explanation. The two modes have own defects, the first mode is that a real person cannot go out of a mirror, the video expression is not vivid enough, and the second mode is that the real person occupies an overlarge picture and the content display is not sufficient.
Disclosure of Invention
In order to solve the above technical problem, the present invention provides a video recording method, including:
s10: acquiring a first path of video pictures shot by a front camera and a second path of video pictures shot by a rear camera;
s20: synthesizing the first path of video image and the second path of video image;
s30: and outputting the synthesized video picture.
Preferably, the method for synthesizing the first path of video picture and the second path of video picture includes:
s201: judging a current picture output mode;
s202: acquiring images of a first path of video image and a second path of video image with different resolutions according to a current image output mode;
s203: the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures are placed in a first layer, and the video pictures with low acquisition resolution are placed in a second layer;
s204: combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
Preferably, the picture output mode includes a content mode and a portrait mode.
Preferably, in the content mode, a second path of video picture of the rear camera is acquired at a relatively high resolution, and the second path of video picture of the rear camera is placed in the first image layer;
and acquiring a first path of video picture of the front camera at a relatively low resolution, and placing the first path of video picture of the front camera in a second image layer.
Preferably, in the content mode, step S203 is preceded by step S202-1: and cutting the first path of video image to obtain a portrait area of the first path of video image.
Preferably, in the portrait mode, the first path of video picture of the front camera is acquired at a relatively high resolution, the first path of video picture of the front camera is placed in the first map layer, the second path of video picture of the rear camera is acquired at a relatively low resolution, and the second path of video picture of the rear camera is placed in the second map layer.
A video recording apparatus, the apparatus comprising:
the front camera and the rear camera are respectively used for acquiring a first path of video image and a second path of video image;
the synthesis module is used for synthesizing the first path of video image and the second path of video image; and
and the output module outputs the synthesized video picture.
Preferably, the synthesis module comprises:
a judging unit for judging the current picture output mode;
the acquisition unit is used for acquiring images of the first path of video image and the second path of video image at different resolutions according to the current image output mode;
the distribution unit is used for placing the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures in the first layer, and placing the video pictures with low acquisition resolution in the second layer;
the layer processing unit is used for combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
Preferably, the composition module further includes a screen output mode selection unit for selecting a content mode and a portrait mode.
Preferably, the combining module further includes a cropping unit, which crops the video picture with lower resolution in the first path of video picture and the second path of video picture.
The invention has the advantages and positive effects that: the method of the embodiment of the invention can simultaneously acquire the video pictures of the front camera and the rear camera and synthesize the video pictures of the front camera and the rear camera, thereby simultaneously displaying the video pictures of the front camera and the rear camera and simultaneously displaying the video pictures with different visual angles.
According to the embodiment of the invention, when the rear camera is used for recording the demonstration content, the portrait can be recorded in real time through the front camera and added into the demonstration content picture through arrangement, so that the recording of the demonstration content is more vivid and the content is more prominent. Meanwhile, different working modes can be set according to needs to meet different requirements.
Drawings
Fig. 1 shows a flow chart of a video recording method of an embodiment of the invention;
FIG. 2 is a flowchart illustrating a method for synthesizing a first path of video pictures and a second path of video pictures according to an embodiment of the present invention;
FIG. 3 shows a schematic diagram of a content schema;
FIG. 4 shows a schematic view of a portrait mode;
fig. 5 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention;
fig. 6 shows a schematic structural diagram of a synthesis module of an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that in the description of the present invention, unless otherwise explicitly specified or limited, the term "storage medium" may be various media that can store a computer program, such as ROM, RAM, a magnetic or optical disk, or the like. The term "processor" may be a chip or a circuit having a data Processing function, such as a CPLD (Complex Programmable Logic Device), an FPGA (Field-Programmable Gate Array), an MCU (micro Controller Unit), a PLC (Programmable Logic Controller), and a CPU (Central Processing Unit). The term "electronic device" may be any device having data processing and storage functions and may generally include fixed and mobile terminals. Fixed terminals such as desktop computers and the like. Mobile terminals such as mobile phones, PADs, and mobile robots, etc. Furthermore, the technical features mentioned in the different embodiments of the invention described later can be combined with each other as long as they do not conflict with each other.
For a better understanding of the present invention, reference is made to the following detailed description and accompanying drawings that illustrate the invention.
Fig. 1 shows a flowchart of a video recording method according to an embodiment of the present invention, as shown in fig. 1: the method comprises the following steps:
s10: acquiring a first path of video pictures shot by a front camera and a second path of video pictures shot by a rear camera;
s20: synthesizing the first path of video image and the second path of video image;
s30: and outputting the synthesized video picture.
The method of the embodiment of the invention can simultaneously acquire the video pictures of the front camera and the rear camera and synthesize the video pictures of the front camera and the rear camera, thereby simultaneously displaying the video pictures of the front camera and the rear camera and simultaneously displaying the video pictures with different visual angles.
In a specific embodiment, in step S10, the video frames of the front camera and the rear camera are acquired at a uniform frame rate (e.g., 30 frames). In step S30, the video picture is output at a constant speed at the determined frame rate.
Fig. 2 is a flowchart illustrating a method for synthesizing a first path of video image and a second path of video image according to an embodiment of the present invention, and as shown in fig. 2, the method for synthesizing the first path of video image and the second path of video image includes:
s201: judging a current picture output mode;
s202: acquiring images of a first path of video image and a second path of video image with different resolutions according to a current image output mode;
s203: the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures are placed in a first layer, and the video pictures with low acquisition resolution are placed in a second layer;
s204: combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
In the embodiment of the invention, the first layer is a background layer, and the display picture of the first layer is a display screen which is paved with the whole display screen; the second layer is located on the first layer, and the display picture is smaller than that of the first layer.
The screen output mode includes a content mode and a portrait mode.
Fig. 3 shows a schematic diagram of a content mode, and as shown in fig. 3, in the content mode, the second path of video picture of the rear camera is acquired at a relatively high resolution, the second path of video picture of the rear camera is placed in the first layer, the first path of video picture of the front camera is acquired at a relatively low resolution, and the first path of video picture of the front camera is placed in the second layer.
In the content mode, step S203 is preceded by step S202-1: and cutting a first path of video image with low acquisition resolution in the first path of video image and the second path of video image to obtain a human image area of the first path of video image, and placing the cut first path of video image in a second image layer. So as to ensure that the portrait in the first path of video picture is displayed in the second area with smaller display picture.
Further, when the angle and the size of the first path of video image of the front camera are changed, the portrait area of the first path of video image is recalculated.
Further, when the portrait area of the first video image is obtained, the portrait area of the first video image may be built in different shapes, such as a circle, a square, a polygon, an irregular shape, and the like, and the specific shape may be selected according to needs.
Fig. 4 shows a schematic diagram of a portrait mode, and as shown in fig. 4, in the portrait mode, a first path of video picture of the front camera is acquired at a relatively high resolution, the first path of video picture of the front camera is placed in a first image layer, a second path of video picture of the rear camera is acquired at a relatively low resolution, and the second path of video picture of the rear camera is placed in a second image layer.
And in the portrait mode, when the angle and the size of the second path of video pictures of the rear camera are changed, the content area of the second path of video pictures is recalculated.
According to the embodiment of the invention, when the rear camera is used for recording the demonstration content, the portrait can be recorded in real time through the front camera and added into the demonstration content picture through arrangement, so that the recording of the demonstration content is more vivid and the content is more prominent. Meanwhile, different working modes can be set according to needs to meet different requirements.
Fig. 5 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention; as shown in fig. 5, the video recording apparatus includes:
the front camera and the rear camera are respectively used for acquiring a first path of video image and a second path of video image;
the synthesis module is used for synthesizing the first path of video image and the second path of video image; and
and the output module outputs the synthesized video picture.
FIG. 6 shows a schematic structural diagram of a synthesis module of an embodiment of the invention; as shown in fig. 6, the synthesis module includes:
a judging unit for judging the current picture output mode;
the acquisition unit is used for acquiring images of the first path of video image and the second path of video image at different resolutions according to the current image output mode;
the distribution unit is used for placing the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures in the first layer, and placing the video pictures with low acquisition resolution in the second layer;
the layer processing unit is used for combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
Further, the synthesis module further comprises a picture output mode selection unit for selecting a content mode and a portrait mode.
Furthermore, the synthesis module further comprises a clipping unit for clipping the video picture with lower resolution in the first path of video picture and the second path of video picture.
The embodiments of the present invention have been described in detail, but the description is only for the preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. All equivalent changes and modifications made within the scope of the present invention should be covered by the present patent.

Claims (10)

1. A video recording method, characterized by: the method comprises the following steps:
s10: acquiring a first path of video pictures shot by a front camera and a second path of video pictures shot by a rear camera;
s20: synthesizing the first path of video image and the second path of video image;
s30: and outputting the synthesized video picture.
2. The video recording method of claim 1, wherein: the method for synthesizing the first path of video image and the second path of video image comprises the following steps:
s201: judging a current picture output mode;
s202: acquiring images of a first path of video image and a second path of video image with different resolutions according to a current image output mode;
s203: the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures are placed in a first layer, and the video pictures with low acquisition resolution are placed in a second layer;
s204: combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
3. The video recording method of claim 2, wherein: the screen output mode includes a content mode and a portrait mode.
4. The video recording method of claim 3, wherein: in the content mode, acquiring a second path of video pictures of the rear camera at a relatively high resolution, and placing the second path of video pictures of the rear camera in a first layer;
and acquiring a first path of video picture of the front camera at a relatively low resolution, and placing the first path of video picture of the front camera in a second image layer.
5. The video recording method of claim 3, wherein: in the content mode, step S203 is preceded by step S202-1: and cutting the first path of video image to obtain a portrait area of the first path of video image.
6. The video recording method of claim 1, wherein: and during the portrait mode, acquiring a first path of video picture of the front camera with relatively high resolution, placing the first path of video picture of the front camera in a first picture layer, acquiring a second path of video picture of the rear camera with relatively low resolution, and placing the second path of video picture of the rear camera in a second picture layer.
7. A video recording apparatus, characterized by: the device comprises:
the front camera and the rear camera are respectively used for acquiring a first path of video image and a second path of video image;
the synthesis module is used for synthesizing the first path of video image and the second path of video image; and an output module outputting the synthesized video picture.
8. The video recording device of claim 7, wherein: the synthesis module comprises:
a judging unit for judging the current picture output mode;
the acquisition unit is used for acquiring images of the first path of video image and the second path of video image at different resolutions according to the current image output mode;
the distribution unit is used for placing the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures in the first layer, and placing the video pictures with low acquisition resolution in the second layer;
the layer processing unit is used for combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
9. The method of claim 1, wherein: the composition module further includes a picture output mode selection unit for selecting a content mode and a portrait mode.
10. The method of claim 1, wherein: the synthesis module further comprises a clipping unit for clipping the video pictures with lower resolution in the first path of video pictures and the second path of video pictures.
CN202111529004.5A 2021-12-15 2021-12-15 Video recording method and device Pending CN114143487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111529004.5A CN114143487A (en) 2021-12-15 2021-12-15 Video recording method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111529004.5A CN114143487A (en) 2021-12-15 2021-12-15 Video recording method and device

Publications (1)

Publication Number Publication Date
CN114143487A true CN114143487A (en) 2022-03-04

Family

ID=80382347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111529004.5A Pending CN114143487A (en) 2021-12-15 2021-12-15 Video recording method and device

Country Status (1)

Country Link
CN (1) CN114143487A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055834A (en) * 2009-10-30 2011-05-11 Tcl集团股份有限公司 Double-camera photographing method of mobile terminal
CN103856617A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Photographing method and user terminal
CN105120172A (en) * 2015-09-07 2015-12-02 青岛海信移动通信技术股份有限公司 Photographing method for front and rear cameras of mobile terminal and mobile terminal
CN106165430A (en) * 2016-06-29 2016-11-23 北京小米移动软件有限公司 Net cast method and device
CN112866725A (en) * 2021-01-14 2021-05-28 视联动力信息技术股份有限公司 Live broadcast control method and device
CN112954219A (en) * 2019-03-18 2021-06-11 荣耀终端有限公司 Multi-channel video recording method and equipment
CN113315940A (en) * 2021-03-23 2021-08-27 海南视联通信技术有限公司 Video call method, device and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055834A (en) * 2009-10-30 2011-05-11 Tcl集团股份有限公司 Double-camera photographing method of mobile terminal
CN103856617A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Photographing method and user terminal
CN105120172A (en) * 2015-09-07 2015-12-02 青岛海信移动通信技术股份有限公司 Photographing method for front and rear cameras of mobile terminal and mobile terminal
CN106165430A (en) * 2016-06-29 2016-11-23 北京小米移动软件有限公司 Net cast method and device
CN112954219A (en) * 2019-03-18 2021-06-11 荣耀终端有限公司 Multi-channel video recording method and equipment
CN112866725A (en) * 2021-01-14 2021-05-28 视联动力信息技术股份有限公司 Live broadcast control method and device
CN113315940A (en) * 2021-03-23 2021-08-27 海南视联通信技术有限公司 Video call method, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10298840B2 (en) Foveated camera for video augmented reality and head mounted display
US9576397B2 (en) Reducing latency in an augmented-reality display
US20200241731A1 (en) Virtual reality vr interface generation method and apparatus
US20210067756A1 (en) Effects for 3d data in a messaging system
US20210343261A1 (en) Systems and methods for foveated rendering
US20110090248A1 (en) Electronic device and method for image editing
TW200844901A (en) Banana codec
CN110569013B (en) Image display method and device based on display screen
JP2018537748A (en) Light field rendering of images with variable computational complexity
CN111475676B (en) Video data processing method, system, device, equipment and readable storage medium
WO2021008427A1 (en) Image synthesis method and apparatus, electronic device, and storage medium
JP2024506639A (en) Image display methods, devices, equipment and media
KR20230049691A (en) Video processing method, terminal and storage medium
CN106303290A (en) A kind of terminal and the method obtaining video
CN110572717A (en) Video editing method and device
CN114782648A (en) Image processing method, image processing device, electronic equipment and storage medium
US20130250136A1 (en) Image pickup device and image preview system and image preview method thereof
CN113518215B (en) 3D dynamic effect generation method and device, computer equipment and storage medium
CN108256072B (en) Album display method, apparatus, storage medium and electronic device
CN114143487A (en) Video recording method and device
US7129961B1 (en) System and method for dynamic autocropping of images
CN114708289A (en) Image frame prediction method and electronic equipment
CN114449169B (en) Clipping method and system for showing panoramic video in CAVE space
JP2016224930A (en) Method and device for bounding object in video
CN111221444A (en) Split screen special effect processing method and device, electronic equipment and storage medium

Legal Events

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

Application publication date: 20220304