CN112188136A - Method, system, storage medium and equipment for splicing and recording videos in real time in all-in-one mode - Google Patents

Method, system, storage medium and equipment for splicing and recording videos in real time in all-in-one mode Download PDF

Info

Publication number
CN112188136A
CN112188136A CN202011018807.XA CN202011018807A CN112188136A CN 112188136 A CN112188136 A CN 112188136A CN 202011018807 A CN202011018807 A CN 202011018807A CN 112188136 A CN112188136 A CN 112188136A
Authority
CN
China
Prior art keywords
image
recording
video
data
layout
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
CN202011018807.XA
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.)
Gosuncn Technology Group Co Ltd
Original Assignee
Gosuncn Technology Group 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 Gosuncn Technology Group Co Ltd filed Critical Gosuncn Technology Group Co Ltd
Priority to CN202011018807.XA priority Critical patent/CN112188136A/en
Publication of CN112188136A publication Critical patent/CN112188136A/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
    • H04N5/91Television signal processing therefor
    • H04N5/92Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • H04N5/9201Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving the multiplexing of an additional signal and the video signal
    • H04N5/9205Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving the multiplexing of an additional signal and the video signal the additional signal being at least another television signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/84Television signal recording using optical recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention provides a method, a system, a storage medium and equipment for splicing videos in real time in all-in-one mode, wherein the method comprises the following steps: s1, acquiring multi-channel video information, and decoding the multi-channel video information to generate multi-channel image data; s2, combining the multi-channel image data into a composite image of a picture according to a preset layout; s3, encoding the composite image, and processing the encoded data into a data frame which can be recognized by a recording device; s4, sending the data frame to the recording device for recording. According to the method provided by the embodiment of the invention, the multi-channel video is divided into the primary and secondary pictures and combined into one channel of video through the video splicing, picture overlapping technology and dynamic coding technology, so that the real-time recording of the video stream can be realized by using a single recorder, the multi-channel pictures are displayed simultaneously, and the scene reproduction can be realized.

Description

Method, system, storage medium and equipment for splicing and recording videos in real time in all-in-one mode
Technical Field
The invention relates to the technical field of video processing and optical disk recording, in particular to a method and a system for recording videos in real time by all-in-one splicing, a computer storage medium and electronic equipment.
Background
In some applications (such as judicial inquiries, court trial and the like), the requirement that multiple cameras are required to record video synchronously and compact discs are required to be recorded and stored in the same scene exists. To meet this demand, the following three methods are currently used: 1. the multi-channel video is firstly stored as a temporary video file on a hard disk and the like, and then the video file is recorded on an optical disk after the end of the storage, and the recording is realized by using optical disk recording tools such as Nero and the like; 2. using a private data format for storage (as proposed by CN _103165156_ B); 3. and (3) recording in parallel by using multiple optical drives, wherein each camera is recorded in one optical drive.
The existing three common schemes respectively have the following disadvantages: 1. because the video needs to be stored as a temporary file, the recording can be carried out only after the video recording is finished, and the recording cannot be carried out in real time, because the video image processing is not carried out, a large amount of storage space is occupied by storing the video file, and a large amount of optical discs need to be recorded in one scene; 2. while the above disadvantage 1 exists, due to the use of the private multi-channel video timestamp synchronization technology and the recording format, only a private playing device can be used for playing, and the problem of poor adaptability exists; because the recording speed of the optical drive is limited, the data generated by multiple paths (if more paths) of video has the risk of overlong recording speed of the optical drive, and when the production data speed is higher than the recording speed, the real-time recording cannot be carried out or can be carried out only in a data loss mode; 3. when the above disadvantage 2 exists, the recording is performed by using one path of video and one optical drive, and during the video playback, a plurality of optical drives are required to support, and the synchronization is difficult, and the scene reproduction capability is lacked.
Disclosure of Invention
In view of the above, the present invention provides a method, a system, a computer storage medium and an electronic device for multi-in-one splicing real-time recording of video, which can use a single recorder to record video streams in real time, display multiple channels of pictures simultaneously, and reproduce real scenes.
In order to solve the above technical problem, in one aspect, the present invention provides a method for splicing videos recorded in real time in an all-in-one manner, including the following steps: s1, acquiring multi-channel video information, and decoding the multi-channel video information to generate multi-channel image data; s2, combining the multi-path image data into a composite image of a picture according to a preset layout; s3, encoding the composite image, and processing the encoded data into a data frame which can be recognized by a recording device; and S4, sending the data frame to a recording device for recording.
According to the method for splicing the real-time recorded videos in all-in-one mode, the multiple paths of videos are divided into the primary pictures and the secondary pictures and combined into one path of video through the video splicing technology, the picture overlaying technology and the dynamic coding technology, the real-time recording of the video streams can be realized by using the single recorder, the size of video data is reduced, and as the multiple paths of videos are integrated into one picture in real time, the multiple paths of pictures are displayed simultaneously during playback, and scene reproduction can be realized.
According to an embodiment of the present invention, in step S2, the predetermined layout is a picture-in-picture layout, a nested layout, or a surround layout.
According to one embodiment of the present invention, step S2 includes: s21, generating a blank background picture according to the preset layout requirement; s22, decoding one of the videos to generate YUV image data; s23, performing image expansion and contraction according to the size of the preset layout of the one-way video; s24, copying the YUV image data to the corresponding position of the blank picture according to the position of the one-way video in the preset layout; and S25, repeatedly executing the steps S22-S24, and generating the complete composite image on the blank background picture.
Step S3 includes S31, preparing a recording device, detecting a maximum recording speed of the optical disc, and converting the maximum recording speed into a code rate; s32, carrying out image coding on the composite image according to the code rate; and S33, organizing and packaging the coded data into data frames which can be recognized by the recording device according to a standard PS format.
According to one embodiment of the present invention, step S32 includes: s321, starting an independent encoding thread; s322, performing time sequence control according to the synthesis required frame rate; s323, the synthetic image generated by the value-taking picture synthetic process; s324, carrying out image coding on the synthetic image; s325, the data of the synthesized image after being coded is transmitted back to a burning processing program; s326, repeating the steps S322-S325, and completing the splicing and recording process.
According to a second aspect of the present invention, an all-in-one splicing real-time recording video system includes: the video decoding module acquires multi-channel video information and decodes the multi-channel video information to generate multi-channel image data; the image synthesis coding module combines a plurality of pictures of the multi-path image data into a synthesized image of one picture according to a preset layout, codes the synthesized image, and processes the coded data into a data frame which can be recognized by a burning device; and the optical disc recording module sends the data frame to a recording device for recording.
According to one embodiment of the invention, the predetermined layout is a picture-in-picture layout, a nested layout, or a surround layout.
According to an embodiment of the present invention, the recording apparatus detects a maximum recording speed of the optical disc and converts the maximum recording speed into a code rate, and the system for splicing videos in real time by all-in-one splicing further includes: and the image coding module carries out image coding on the synthesized image according to the code rate and organizes and packs the coded data into a data frame which can be recognized by the recording device according to a standard PS format.
In a third aspect, an embodiment of the present invention provides a computer storage medium including one or more computer instructions, which when executed implement the method according to the above embodiment.
An electronic device according to a fourth aspect of the present invention comprises a memory for storing one or more computer instructions and a processor; the processor is configured to invoke and execute the one or more computer instructions to implement the method according to any of the embodiments described above.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart of a method for real-time recording video by all-in-one splicing according to an embodiment of the invention;
FIG. 2 is a diagram illustrating a PIP layout of a method for multi-in-one splicing of real-time recorded video according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a nested layout of a method for multi-in-one splicing live recording video according to another embodiment of the present invention;
FIG. 4 is a schematic view of a wrap-around layout of a method for multi-in-one splicing real-time recording video according to another embodiment of the invention;
FIG. 5 is a video synthesis flowchart of a method for multi-in-one splicing real-time recording video according to an embodiment of the present invention;
FIG. 6 is a diagram of a system for multi-in-one splicing real-time recording video according to an embodiment of the invention;
fig. 7 is a schematic diagram of an electronic device according to an embodiment of the invention.
Reference numerals:
a system 100 for splicing videos recorded in real time in one-in-one manner;
a video decoding module 10;
an image synthesis encoding module 20;
an image encoding module 30;
an optical disc recording module 40;
a first video picture P1;
a second path of video picture P2;
a third video picture P3;
a fourth video picture P4;
a fifth video picture P5;
an electronic device 300;
a memory 310; an operating system 311; an application 312;
a processor 320; a network interface 330; an input device 340; a hard disk 350; a display device 360.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and are therefore not to be considered limiting of the invention. Furthermore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The following detailed description of embodiments of the present invention will be made with reference to the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The method for real-time recording video by all-in-one splicing according to the embodiment of the invention is first described in detail with reference to the accompanying drawings.
As shown in fig. 1, the method for splicing videos recorded in real time according to the embodiment of the present invention includes the following steps:
s1, acquiring multi-channel video information, and decoding the multi-channel video information to generate multi-channel image data;
s2, combining the multi-path image data into a composite image of a picture according to a preset layout;
s3, encoding the composite image, and processing the encoded data into a data frame which can be recognized by a recording device;
s4, sending the data frame to the recording device for recording.
First of all, it should be noted that the method for real-time recording of video by all-in-one splicing according to the embodiment of the present invention can be used for meeting the requirement that in a certain occasion, multiple cameras are required to record video synchronously in the same scene and the video is recorded and stored by an optical disc. For example: the method for splicing real-time recording videos in multiple ways can divide multiple paths of videos into primary and secondary pictures and combine the primary and secondary pictures into one path of video and record the video in real time.
Specifically, when the method for recording video in real time by all-in-one splicing according to the embodiment of the invention is used, firstly, multi-channel video information of a certain scene of the video to be recorded in real time by all-in-one splicing is obtained, the multi-channel video information can be video information of the same scene, the same time and different angles, and the video information of the same scene and different angles is displayed and decoded to generate multi-channel image data; then, the multi-channel image data of the scene is processed to combine a plurality of screens of the multi-channel image data into a composite image of one screen according to a predetermined layout, for example: the predetermined layout may be a picture-in-picture layout, a nested layout, or a surrounding layout; then, the synthesized image is coded, the coded data is processed into a data frame which can be recognized by a burning device, and then the data frame is sent to the burning device for burning; and finally, repeatedly executing the steps S1-S4 to realize real-time video recording.
Therefore, according to the method for splicing the real-time recorded videos in all-in-one mode, the multiple paths of videos are divided into the primary pictures and the secondary pictures and combined into one path of video through the video splicing technology, the picture overlaying technology and the dynamic coding technology, the real-time recording of the video streams can be realized by using the single recording machine, the size of the video data is reduced, the multiple paths of pictures are integrated in one picture in real time, and the multiple paths of pictures are displayed simultaneously during playback, so that scene reproduction can be realized.
Further, according to an embodiment of the present invention, in step S2, the predetermined layout is a picture-in-picture layout, a nested layout, or a surrounding layout.
As shown in fig. 2 to fig. 4, the first path of video image P1, the second path of video image P2, the third path of video image P3, the fourth path of video image P4, and the fifth path of video image P5 are integrated according to a predetermined layout manner, such that the integrated image data is concise and convenient for browsing.
According to an embodiment of the present invention, step S2 includes:
s21, generating a blank background picture according to the preset layout requirement;
s22, decoding one of the videos to generate YUV image data;
s23, performing image expansion and contraction according to the size of a preset layout of a video;
s24, copying the YUV image data to the corresponding position of the blank picture at the position of the preset layout according to a video;
and S25, repeatedly executing the steps S22-S24, and generating a complete composite image on the blank background picture.
In other words, as shown in fig. 5, the combining of a plurality of screens of the multi-path image data into a composite image of one screen in a predetermined layout includes the steps of:
firstly, a blank background picture can be generated according to picture-in-picture layout, nested layout or surrounding layout and the like, then, multiple paths of video data information are processed, one path of video is decoded to generate YUV image data, the path of video is subjected to image expansion and contraction according to the size set in the preset layout, then, the generated YUV image data is copied to the corresponding position of the blank picture according to the preset layout position, and finally, the steps S22-S24 are repeatedly executed, and a complete composite image is generated on the blank background picture. The multi-channel video is integrated into one picture in real time, and the multi-channel pictures are displayed simultaneously during playback, so that scene reproduction can be realized.
According to an embodiment of the present invention, step S3 includes: s31, preparing the recording device, detecting the maximum recording speed of the optical disc, and converting into code rate; s32, carrying out image coding on the synthesized image according to the code rate; and S33, organizing and packaging the coded data into data frames which can be recognized by the recording device according to the standard PS format. By processing the video image, the video file is stored without occupying a large amount of storage space, and one optical disc can record more scenes.
According to an embodiment of the present invention, step S32 includes: s321, starting an independent encoding thread; s322, performing time sequence control according to the synthesis required frame rate; s323, a synthetic image generated by the value-taking picture synthetic process; s324, carrying out image coding on the synthesized image; s325, the data of the encoded synthetic image is transmitted back to the burning processing program; s326, repeating the steps S322-S325, and completing the splicing and recording process. By the method, the video coding data can be output at the maximum burning speed on the premise of ensuring the resolution ratio and the image quality of the main picture.
In summary, according to the method for real-time recording of multiple-in-one spliced videos of the present invention, by means of video splicing, a video overlay technology and a dynamic coding technology, multiple videos are divided into primary and secondary videos and combined into one video, and video coded data is output at a maximum recording speed on the premise of ensuring resolution and image quality of the primary video, so that real-time recording of video streams is achieved by using a single recorder, and the size of video data is reduced.
As shown in fig. 6, the system for recording video in real time by all-in-one splicing according to the embodiment of the present invention includes a video decoding module 10, an image encoding and synthesizing module 20, and an optical disc recording module 40.
Specifically, the video decoding module 10 obtains multiple paths of video information and decodes the multiple paths of video information to generate multiple paths of image data, the image synthesizing and encoding module 20 combines multiple frames of the multiple paths of image data into a synthesized image of one frame according to a predetermined layout, encodes the synthesized image, processes the encoded data into a data frame that can be recognized by a recording device, and the optical disc recording module 40 sends the data frame to the recording device for recording.
According to one embodiment of the invention, the predetermined layout is a picture-in-picture layout, a nested layout, or a surround layout.
According to an embodiment of the present invention, the recording apparatus detects the maximum recording speed of the optical disc and converts the maximum recording speed into the code rate, and the system for recording the video in real time by the all-in-one splicing further includes an image encoding module 30.
Specifically, the image coding module 30 performs image coding on the synthesized image according to the code rate, and organizes and packages the coded data into a data frame that can be recognized by the recording device according to the standard PS format.
The functions of the modules of the system for splicing videos recorded in real time in one-in-one manner according to the embodiment of the present invention have been described in detail in the above embodiments, and thus are not described again.
Therefore, according to the system for splicing real-time recording videos in all-in-one mode, according to the embodiment of the invention, multiple paths of videos are divided into primary and secondary pictures and combined into one path of video through the video decoding module 10, the image synthesis coding module 20, the optical disc recording module 40 and the image coding module 30, video coded data are output at the maximum recording speed on the premise of ensuring the resolution ratio and the image quality of the primary pictures, the real-time recording of video streams can be realized by using a single recording machine, the size of video data is reduced, and as the multiple paths of videos are integrated into one picture in real time, the multiple paths of pictures are displayed simultaneously during playback, and a real scene can be reproduced.
In addition, the invention also provides a computer storage medium, which comprises one or more computer instructions, and the one or more computer instructions can realize any one of the methods for splicing the real-time recorded videos in all-in-one manner when being executed.
That is, the computer storage medium stores a computer program, and when the computer program is executed by the processor, the processor executes any one of the above methods for integrating and splicing videos recorded in real time.
As shown in fig. 7, an embodiment of the present invention provides an electronic device 300, which includes a memory 310 and a processor 320, where the memory 310 is configured to store one or more computer instructions, and the processor 320 is configured to call and execute the one or more computer instructions, so as to implement any one of the methods described above.
That is, the electronic device 300 includes: a processor 320 and a memory 310, in which memory 310 computer program instructions are stored, wherein the computer program instructions, when executed by the processor, cause the processor 320 to perform any of the methods described above.
Further, as shown in fig. 7, the electronic device 300 further includes a network interface 330, an input device 340, a hard disk 350, and a display device 360.
The various interfaces and devices described above may be interconnected by a bus architecture. A bus architecture may be any architecture that may include any number of interconnected buses and bridges. Various circuits of one or more Central Processing Units (CPUs), represented in particular by processor 320, and one or more memories, represented by memory 310, are coupled together. The bus architecture may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like. It will be appreciated that a bus architecture is used to enable communications among the components. The bus architecture includes a power bus, a control bus, and a status signal bus, in addition to a data bus, all of which are well known in the art and therefore will not be described in detail herein.
The network interface 330 may be connected to a network (e.g., the internet, a local area network, etc.), and may obtain relevant data from the network and store the relevant data in the hard disk 350.
The input device 340 may receive various commands input by an operator and send the commands to the processor 320 for execution. The input device 340 may include a keyboard or a pointing device (e.g., a mouse, a trackball, a touch pad, a touch screen, or the like).
The display device 360 may display the result of the instructions executed by the processor 320.
The memory 310 is used for storing programs and data necessary for operating the operating system, and data such as intermediate results in the calculation process of the processor 320.
It will be appreciated that memory 310 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. The memory 310 of the apparatus and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 310 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 311 and application programs 312.
The operating system 311 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs 312 include various application programs, such as a Browser (Browser), and are used for implementing various application services. A program implementing methods of embodiments of the present invention may be included in application 312.
The method disclosed by the above embodiment of the present invention can be applied to the processor 320, or implemented by the processor 320. Processor 320 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 320. The processor 320 may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, and may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 310, and the processor 320 reads the information in the memory 310 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
In particular, the processor 320 is also configured to read the computer program and execute any of the methods described above.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the transceiving method according to various embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for splicing videos recorded in real time in all-in-one mode is characterized by comprising the following steps:
s1, acquiring multi-channel video information, and decoding the multi-channel video information to generate multi-channel image data;
s2, combining the multi-path image data into a composite image of a picture according to a preset layout;
s3, encoding the composite image, and processing the encoded data into a data frame which can be recognized by a recording device;
and S4, sending the data frame to a recording device for recording.
2. The method according to claim 1, wherein in step S2, the predetermined layout is a picture-in-picture layout, a nested layout, or a surrounding layout.
3. The method according to claim 1 or 2, wherein step S2 comprises:
s21, generating a blank background picture according to the preset layout requirement;
s22, decoding one of the videos to generate YUV image data;
s23, performing image expansion and contraction according to the size of the preset layout of the one-way video;
s24, copying the YUV image data to the corresponding position of the blank picture according to the position of the one-way video in the preset layout;
and S25, repeatedly executing the steps S22-S24, and generating the complete composite image on the blank background picture.
4. The method according to claim 1, wherein step S3 includes:
s31, preparing the recording device, detecting the maximum recording speed of the optical disc, and converting into code rate;
s32, carrying out image coding on the composite image according to the code rate;
and S33, organizing and packaging the coded data into data frames which can be recognized by the recording device according to a standard PS format.
5. The method according to claim 4, wherein step S32 includes:
s321, starting an independent encoding thread;
s322, performing time sequence control according to the synthesis required frame rate;
s323, the synthetic image generated by the value-taking picture synthetic process;
s324, carrying out image coding on the synthetic image;
s325, the data of the synthesized image after being coded is transmitted back to a burning processing program;
s326, repeating the steps S322-S325, and completing the splicing and recording process.
6. The utility model provides a system for video is recorded in real time in concatenation more which characterized in that includes:
the video decoding module acquires multi-channel video information and decodes the multi-channel video information to generate multi-channel image data;
the image synthesis coding module combines a plurality of pictures of the multi-path image data into a synthesized image of one picture according to a preset layout, codes the synthesized image, and processes the coded data into a data frame which can be recognized by a burning device;
and the optical disc recording module sends the data frame to a recording device for recording.
7. The system of claim 6, wherein the predetermined layout is a picture-in-picture layout, a nested layout, or a wrap-around layout.
8. The system of claim 6, wherein the recording device detects a maximum recording speed of the optical disc and converts the maximum recording speed into a code rate, and the system for splicing videos in real time further comprises:
and the image coding module carries out image coding on the synthesized image according to the code rate and organizes and packs the coded data into a data frame which can be recognized by the recording device according to a standard PS format.
9. A computer storage medium comprising one or more computer instructions which, when executed, implement the method of any one of claims 1-5.
10. An electronic device comprising a memory and a processor, wherein,
the memory is to store one or more computer instructions;
the processor is configured to invoke and execute the one or more computer instructions to implement the method of any one of claims 1-5.
CN202011018807.XA 2020-09-24 2020-09-24 Method, system, storage medium and equipment for splicing and recording videos in real time in all-in-one mode Pending CN112188136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011018807.XA CN112188136A (en) 2020-09-24 2020-09-24 Method, system, storage medium and equipment for splicing and recording videos in real time in all-in-one mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011018807.XA CN112188136A (en) 2020-09-24 2020-09-24 Method, system, storage medium and equipment for splicing and recording videos in real time in all-in-one mode

Publications (1)

Publication Number Publication Date
CN112188136A true CN112188136A (en) 2021-01-05

Family

ID=73943386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011018807.XA Pending CN112188136A (en) 2020-09-24 2020-09-24 Method, system, storage medium and equipment for splicing and recording videos in real time in all-in-one mode

Country Status (1)

Country Link
CN (1) CN112188136A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822496A (en) * 2021-01-28 2021-05-18 浙江大华技术股份有限公司 Video analysis method and device
CN112887643A (en) * 2021-01-27 2021-06-01 北京翔云颐康科技发展有限公司 Method, device, storage medium and electronic device for recording video
CN113612922A (en) * 2021-07-29 2021-11-05 重庆赛迪奇智人工智能科技有限公司 Video processing method and device, electronic equipment and computer readable storage medium
CN113873206A (en) * 2021-10-30 2021-12-31 珠海研果科技有限公司 Multi-channel video recording method and system
CN114189730A (en) * 2021-11-04 2022-03-15 北京淳中科技股份有限公司 Video recording method, video playback method and device
CN114245129A (en) * 2022-02-22 2022-03-25 湖北芯擎科技有限公司 Image processing method, image processing device, computer equipment and storage medium
CN114554114A (en) * 2022-04-24 2022-05-27 浙江华眼视觉科技有限公司 Express item code recognition machine pickup evidence persistence method and device
CN115359688A (en) * 2022-08-31 2022-11-18 矩数(西安)智能科技有限公司 Remote operation guidance and teaching system and method
CN116916172A (en) * 2023-09-11 2023-10-20 腾讯科技(深圳)有限公司 Remote control method and related device
CN117499564A (en) * 2023-11-21 2024-02-02 北京视睿讯科技有限公司 Video back display method, system, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889686A (en) * 2006-07-14 2007-01-03 北京时越网络技术有限公司 Method for simultaneous displaying multi-channel video information
CN202422734U (en) * 2011-11-13 2012-09-05 西安科技大学 Real-time streaming media DVD (digital video disk) recording device
CN103165156A (en) * 2011-12-08 2013-06-19 北京同步科技有限公司 Video synchronously playing system, video playing method and optical disk
CN105872569A (en) * 2015-11-27 2016-08-17 乐视云计算有限公司 Video playing method and system, and devices
WO2017143756A1 (en) * 2016-02-24 2017-08-31 深圳岚锋创视网络科技有限公司 Method and system for recording and playing panoramic video in real time
CN111263208A (en) * 2018-11-30 2020-06-09 杭州海康威视数字技术股份有限公司 Picture synthesis method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889686A (en) * 2006-07-14 2007-01-03 北京时越网络技术有限公司 Method for simultaneous displaying multi-channel video information
CN202422734U (en) * 2011-11-13 2012-09-05 西安科技大学 Real-time streaming media DVD (digital video disk) recording device
CN103165156A (en) * 2011-12-08 2013-06-19 北京同步科技有限公司 Video synchronously playing system, video playing method and optical disk
CN105872569A (en) * 2015-11-27 2016-08-17 乐视云计算有限公司 Video playing method and system, and devices
WO2017143756A1 (en) * 2016-02-24 2017-08-31 深圳岚锋创视网络科技有限公司 Method and system for recording and playing panoramic video in real time
CN111263208A (en) * 2018-11-30 2020-06-09 杭州海康威视数字技术股份有限公司 Picture synthesis method and device, electronic equipment and storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887643A (en) * 2021-01-27 2021-06-01 北京翔云颐康科技发展有限公司 Method, device, storage medium and electronic device for recording video
CN112822496A (en) * 2021-01-28 2021-05-18 浙江大华技术股份有限公司 Video analysis method and device
CN113612922A (en) * 2021-07-29 2021-11-05 重庆赛迪奇智人工智能科技有限公司 Video processing method and device, electronic equipment and computer readable storage medium
CN113873206A (en) * 2021-10-30 2021-12-31 珠海研果科技有限公司 Multi-channel video recording method and system
CN113873206B (en) * 2021-10-30 2024-05-14 珠海研果科技有限公司 Multi-channel video recording method and system
CN114189730B (en) * 2021-11-04 2023-12-19 北京淳中科技股份有限公司 Video recording method, video playback method and device
CN114189730A (en) * 2021-11-04 2022-03-15 北京淳中科技股份有限公司 Video recording method, video playback method and device
CN114245129A (en) * 2022-02-22 2022-03-25 湖北芯擎科技有限公司 Image processing method, image processing device, computer equipment and storage medium
CN114554114A (en) * 2022-04-24 2022-05-27 浙江华眼视觉科技有限公司 Express item code recognition machine pickup evidence persistence method and device
CN115359688A (en) * 2022-08-31 2022-11-18 矩数(西安)智能科技有限公司 Remote operation guidance and teaching system and method
CN116916172A (en) * 2023-09-11 2023-10-20 腾讯科技(深圳)有限公司 Remote control method and related device
CN116916172B (en) * 2023-09-11 2024-01-09 腾讯科技(深圳)有限公司 Remote control method and related device
CN117499564A (en) * 2023-11-21 2024-02-02 北京视睿讯科技有限公司 Video back display method, system, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN112188136A (en) Method, system, storage medium and equipment for splicing and recording videos in real time in all-in-one mode
US7145947B2 (en) Video data processing apparatus and method, data distributing apparatus and method, data receiving apparatus and method, storage medium, and computer program
TWI679885B (en) Method and apparatus for generating media data
TWI709325B (en) Methods and devices for encoding and decoding multimedia data
RU2517299C2 (en) Method and device for coding/decoding of pictures
CN1257461C (en) Multimedia system for transferring and receiving program number and methods therefor
TWI359411B (en) Recording apparatus, recording method, reproductio
CN103125123A (en) Playback device, playback method, integrated circuit, broadcasting system, and broadcasting method
WO2007126295A1 (en) The display device for having the function of editing the recorded data partially and method for controllong the same
US8358363B2 (en) Video-processing apparatus, method and system
US11831919B2 (en) Encoding device and encoding method
CN202406198U (en) Caption overlaying system facing to real-time audio/video stream
CN100461845C (en) Recording apparatus, recording method, reproducing apparatus, reproducing method, and program
KR20130099723A (en) Input-output system for eding and playing of uhd image contents
US8190582B2 (en) Multi-processor
US10659775B2 (en) Video decoding device and video decoding method
WO2021093882A1 (en) Video meeting method, meeting terminal, server, and storage medium
JP7350744B2 (en) Image processing device
CN112468740B (en) Intelligent virtual synthesis manufacturing system, method and storage medium for 8K ultra-high definition programs
CN1279860A (en) Device interoperability utilizing bit-mapped on-screen display menus
CN101883228B (en) Equipment and method for reproducing captions
Kikuchi et al. Development of full-featured 8K recorder
KR20160144061A (en) Popular mainboard for ultra-high definition television
Puri Status and Direction of the MPEG-4 Standard
CN116366890B (en) Method for providing data monitoring service and integrated machine equipment

Legal Events

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

Application publication date: 20210105

RJ01 Rejection of invention patent application after publication