Video stream synthesis method and device

By unified processing and encoding of video streams on the MCU server, the problem of repeated encoding and inconsistent encoding parameters in the video conferencing system is solved, efficient synthesis and flexibility of the video stream are achieved, and it is suitable for a variety of terminal devices.

CN118540516AActive Publication Date: 2024-08-23上海赛连信息科技有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410874507.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-08-23
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

In the existing video conferencing system, the MCU server has repeated encoding when processing multiple video streams, resulting in a waste of resources and insufficient flexibility. In addition, differences in encoder configurations of different terminal devices lead to inconsistent encoding parameters, affecting the application flexibility of the system.

Method used

Video streams from different senders are uniformly processed and encoded on the MCU server to ensure that all video streams use the same encoding parameters, and image processing and synthesis are performed according to the needs of the receiver to generate composite video streams to avoid repeated encoding and improve system flexibility.

Benefits of technology

It reduces the number of repeated encodings of the MCU, ensures the consistency of the encoding parameters of the video stream, improves the flexibility of the system, is suitable for different terminal devices, and improves the performance and user experience of the video conferencing system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540516A
    Figure CN118540516A
Patent Text Reader

Abstract

The invention provides a video stream synthesis method and system, and the method comprises the steps: receiving a plurality of video streams from different transmitting ends, and decoding each video stream to obtain an original video of each transmitting end; performing image processing on the original video of each sending end according to the synthesis parameters; coding all the processed videos by using a unified coding parameter to generate a corresponding processed video stream; synthesizing the plurality of processed video streams to obtain a synthesized video stream; and sending the synthesized video stream to a receiving end for decoding. According to the invention, the code streams in various forms sent by the sending end are uniformly processed and coded on the MCU, and then are synthesized according to the requirements of the receiving end, so that the repeated coding of the MCU is reduced, the consistency of the coding parameters of the code streams of the sending ends can be ensured, and the method has wide application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video communication technology, and more particularly to a video stream synthesis method and device. Background Art

[0002] In video conferencing systems, Internet-based video communication technology has been widely used in video conferencing scenarios in work and life. Among them, the MCU architecture is a centralized architecture, and each terminal is only connected to the central MCU server. The MCU server is responsible for receiving, decoding, combining screens, and encoding the audio and video streams uploaded by each terminal. This design saves a lot of bandwidth, but it also puts a lot of pressure on the MCU central server.

[0003] In the prior art, the MCU processes each client video mainly in the following two ways: The first method: Figure 1 As shown in the figure, take the scenario of 5 people attending a meeting as an example. If the terminal EP1 needs to see the pictures of EP2, EP3, EP4, and EP5, the specific picture synthesis process is shown in the figure below. In order to simplify the explanation, the figure draws the flow receiving situation of EP1, where the terminal is similar. The video stream received by the MCU from the terminal is the encoded data, which is generally compressed using encoding standards such as H.264 and H.265, which is represented by H.26x in the figure.

[0004] (1) MCU decoding module: MCU receives the video streams uploaded by EP2, EP3, EP4, and EP5 terminals, and then decodes each received video stream to obtain the original image data of each terminal. The original image data is generally in YUV format, which is represented by YUV in the figure.

[0005] (2) MCU image transformation module: performs image processing operations such as sampling, scaling, and even rotation on the images decoded by EP2, EP3, EP4, and EP5 as needed.

[0006] (3) MCU image synthesis module: synthesizes the processed images into one image according to the set layout parameters.

[0007] (4) MCU decoding module: encodes the synthesized image into a video stream and sends it to the receiving terminal EP1.

[0008] from Figure 1 It can be seen that if EP1~EP5 all need to see the picture of EP5, then the partial images of EP5 are synthesized and encoded separately, which is equivalent to the MCU repeating the encoding of the image of EP5 5 times, regardless of whether the parameters such as resolution and encoding quality are consistent.

[0009] The second method: In view of the shortcomings of the first prior art, patent 202211695256.X proposes an optimization solution for this shortcoming, such as Figure 2 shown.

[0010] Terminals EP1, EP2, EP3, EP4, EP5 negotiate the encoding parameters first to obtain unified encoding parameters. Transmitters EP2, EP3, EP4, EP5 encode their own videos according to the unified parameters and send them to MCU. MCU does not decode the bitstream sent by transmitters EP2, EP3, EP4, EP5, but directly obtains the encoding blocks corresponding to the picture content required by receiver EP1 from the bitstream of EP2, EP3, EP4, EP5. These encoding blocks are then directly synthesized into a new bitstream and sent to receiver EP1.

[0011] In the second method, the MCU does not participate in the video encoding and decoding process. The video encoding operation is completed at the sending end, and the MCU's task is limited to extracting the required part from the encoded bitstream transmitted by the sending end. Subsequently, the MCU assembles these extracted partial bitstreams, synthesizes a new bitstream, and then sends it to the receiving end EP1. It is worth noting that the MCU does not first decode the bitstreams of the sending end EP2, EP3, EP4, and EP5 to obtain the original video, but directly assembles the extracted partial bitstreams, thereby avoiding additional decoding steps. This method not only simplifies the process, but also improves the processing performance of the MCU.

[0012] However, the second method requires that the encoding parameters of each sender remain consistent. For some sender encoders, it may be difficult to meet the negotiated encoding parameter standards, so it is impossible to require all sender encoders to meet the same encoding standard at the same time. Therefore, in specific applications, this solution is greatly limited in flexibility, which is also a limitation of this solution.

[0013] In order to solve the problem of repeated coding in prior art 1 and the problem of high requirements on the encoder at the transmitting end and reduced flexibility in prior art 2, the present invention adopts a creative combination. By combining the two solutions, the present invention successfully overcomes the problem of repeated coding and improves the flexibility of the system while maintaining the performance of the encoder. Summary of the invention

[0014] The present invention provides a video stream synthesis method and system, which specifically processes and encodes various forms of code streams sent by a sending end in a unified manner on an MCU, and then synthesizes them according to the needs of a receiving end. This not only reduces repeated encoding of the MCU, but also ensures that the encoding parameters of the code streams of each sending end are consistent, and has wide application value.

[0015] In a first aspect, the present invention provides a method for video stream synthesis, comprising: Receive multiple video streams from different senders, and decode each video stream to obtain the original video of each sender; Performing image processing on the original videos of the respective sending ends according to the synthesis parameters; Encode all processed videos using unified encoding parameters to generate corresponding processed video streams; synthesizing the multiple processed video streams to obtain a synthesized video stream; The synthesized video stream is sent to a receiving end for decoding.

[0016] In a second aspect, the present invention provides a device for video stream synthesis, comprising: The receiving module is used to receive multiple video streams from different sending ends, and decode each video stream to obtain the original video of each sending end; A processing module, used for performing image processing on the original videos of the respective sending ends according to the synthesis parameters; The encoding module is used to encode all processed videos using unified encoding parameters to generate corresponding processed video streams; A synthesis module, used for synthesizing multiple processed video streams to obtain a synthesized video stream; The sending module is used to send the composite video stream to a receiving end for decoding.

[0017] In view of the shortcomings of the prior art, the present invention proposes a new code stream synthesis method, which not only effectively reduces the MCU repeated encoding, but also ensures that the solution will not reduce the scope of use due to different terminal devices in actual application, and can better accommodate various types of terminals. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 It is a schematic diagram of the principle of the video stream synthesis method of the prior art one; Figure 2 It is a schematic diagram of the principle of the video stream synthesis method of the prior art II; Figure 3 is a schematic diagram of a video stream synthesis method provided by an embodiment of the present invention; Figure 4It is a schematic diagram of the principle of the video stream synthesis method provided by an embodiment of the present invention; Figure 5 It is a flow chart of a method for combining video streams from various transmitting ends into one video stream provided in the first embodiment of the present invention; Figure 6 It is a flow chart of a method for combining video streams from various transmitting ends into one video stream provided by the second embodiment of the present invention; Figure 7A-7B It is a schematic diagram of synthesizing coding blocks from multiple terminals into a complete video stream provided by an embodiment of the present invention; Figure 8 It is a device diagram of a code stream synthesis method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. SUMMARY OF THE INVENTION The present invention encodes the original videos from different transmitting ends using the same encoding parameters on the MCU to generate corresponding processed video streams, ensuring that all videos use a consistent encoding standard so that the entire video conferencing system can be adapted to the characteristics of different transmitting ends. The MCU then synthesizes the encoded multiple processed video streams to generate a final synthesized video stream and sends it to the receiving end, avoiding the problem of repeated encoding by the MCU.

[0022] Exemplary Methods Figure 3 This is a flow chart of a code stream synthesis method provided by an embodiment of the present invention. Figure 4 It is a schematic diagram of the code stream synthesis principle provided by an embodiment of the present invention.

[0023] Embodiment 1 S301: receiving multiple video streams from different sending ends, and decoding each video stream to obtain the original video of each sending end.

[0024] like Figure 4 As shown, before uploading the video stream to the MCU, the transmitters EP1, EP2, EP3, EP4, and EP5 do not need to use unified encoding parameters to encode their own videos, but can encode according to their own configurations. Subsequently, the video stream is decoded by the MCU to obtain the original video.

[0025] The devices, encoder configurations, and encoding parameters of each sender may be different. Therefore, when the client uploads its own video stream, the encoding parameters they use are not consistent. This results in the MCU receiving different streams that do not use the same encoding parameter standards. After the MCU receives and decodes these streams, they are restored to the original video, which is usually in the YUV format.

[0026] S302: performing image processing on the original videos of the respective sending ends according to the synthesis parameters.

[0027] Figure 4 As shown in the figure, although the code streams of EP1, EP2, EP3, EP4, and EP5 at the transmitting end are all decoded and restored to a unified YUV format, the image quality between them may be different. The subsequent code stream synthesis needs to process each video image into the same format to ensure the visual consistency and coherence of the synthesized video stream, which helps to avoid the sense of disharmony caused by differences in resolution, brightness, color temperature, saturation, etc. The MCU processes these original videos according to the synthesis parameters and adjusts the brightness, contrast, resolution and other parameters of the original images of EP1, EP2, EP3, EP4, and EP5 at the transmitting end to ensure that the final synthesized image looks consistent overall.

[0028] The synthesis parameters may specifically include: brightness, contrast, saturation, color temperature, clarity, resolution, ratio, etc. The MCU comprehensively considers these parameters and can make appropriate adjustments to each image to achieve the coherence and harmony of the final synthesized image.

[0029] There are two ways to determine the synthesis parameters: Method 1: The synthesis parameters can come from the request of the receiving end. The receiving end can put forward specific requirements for video processing, such as a specific resolution. The MCU can receive multiple requests and perform different processing on these original images to meet the needs of different receiving ends.

[0030] For example, suppose there is a video conferencing system with two receiving ends, receiving end 30A and receiving end 30B. The two receiving ends want to watch the same video conference, but due to differences in equipment or bandwidth, they have different requirements for video processing.

[0031] When the receiving end 30A wants to watch a video, the resolution is 1080P to adapt to high-resolution display devices.

[0032] Due to poor equipment or network conditions, the receiving end 30B hopes that the video resolution is lower and is set to 720P to reduce the burden of network transmission.

[0033] The MCU receives the requests from the two receiving ends, and according to the requirements of the receiving end 30A, performs image processing on the original video, and adjusts the resolution of the original video of the corresponding client to 1080P. For the request of the receiving end 30B, the MCU performs additional image processing, and adjusts the resolution of the original video of the corresponding client to 720P.

[0034] Through such processing, the MCU can perform personalized image processing on the original video according to the specific requests of different receiving ends to meet the viewing requirements of different devices and needs. This personalized video processing ensures that users can get the best viewing experience in different environments.

[0035] Method 2: The synthesis parameters can be uniformly determined as one synthesis parameter according to the requirements of each receiving end. When the MCU receives different image processing requirements from multiple receiving ends, if each requirement is responded to, a large amount of MCU processing resources will be consumed. In particular, the original video of the same client may have to undergo multiple image processing, which reduces the performance of the MCU.

[0036] To avoid wasting resources, the MCU can choose to coordinate the needs of multiple receiving ends into a fixed synthesis parameter. The MCU only needs to process the original videos of different clients once according to this unified parameter, reducing the number of repeated processing.

[0037] Regarding how to determine the unified synthesis parameter, the MCU can specifically collect the requirements of all the receiving ends received, select the requirement with the lowest requirement, and determine it as the unified synthesis parameter. This ensures that the unified synthesis parameter is the minimum common point among all the requirements.

[0038] Compared with method 1, the coordinated and unified strategy of method 2 helps to improve the performance of MCU and reduce resource waste, but it is not as good as method 1 in meeting the personalized needs of each receiving end.

[0039] S303: Encode all processed videos using unified encoding parameters to generate corresponding processed video streams.

[0040] In the present invention, the MCU uses a unified encoding parameter to encode the original video of each client. In the subsequent synthesis process, the MCU directly extracts the required encoding segment (i.e. Figure 4), and assembles these coded segments into a video stream and sends it to the receiving end. Since all coded segments use the same encoding parameters, the MCU does not need to decode them and can directly assemble the coded segments into a video stream. This unified encoding method on the MCU server greatly improves the flexibility of the system, making it suitable for senders with different configuration conditions, while reducing the number of repeated encodings by the MCU. Compared with Figure 1 As shown in the prior art 1, the solution of the present invention reduces the frequency of encoding, and the original video clip at the sending end only needs to be encoded once and can participate in multiple synthesis.

[0041] As in Figure 4 In the example, the transmitter EP5 participates in the synthesis process of 5 bitstreams. It is worth noting that EP5 only needs to be encoded once, and when the MCU performs bitstream synthesis 1, 2, 3, 4, and 5, the MCU only needs to extract the required encoding fragments from the bitstream of EP5. This means that in the case of multiple synthesis, the MCU does not need to encode the original video fragment of EP5 multiple times, but only needs to call the already encoded fragments for assembly.

[0042] The specific encoding uses the H.26x coding standard to encode the processed image. The H.26x series is a set of video coding standards, including H.264 (AVC) and H.265 (HEVC), which are part of the ITU-T video coding standard.

[0043] MCU divides a frame of processed video into multiple regions, each of which is called a slice. Each slice contains one or more macroblocks. Macroblock is the most basic unit of H.26x encoding, usually a 16x16 pixel block. The macroblocks of each slice can be encoded independently to generate corresponding coding blocks. Such division allows each slice to be independently encoded and decoded on different processing units on the encoder, realizing parallel processing, thereby improving the efficiency of MCU video encoding.

[0044] After each image slice is independently encoded to generate the corresponding coding block, the MCU organizes the coding blocks of each image slice according to their positions in the video image to form a complete processed video stream.

[0045] In this step, all processed videos are encoded using uniform encoding parameters. All encoding blocks of all image slices are finally encoded according to the same encoding parameters.

[0046] The unified coding parameters include frame rate, coding block size, quantization parameter, ASO (Adaptive Slice Ordering), FMO (Flexible Macroblock Ordering), reference frame and / or 8×8 transform switch, etc. Such unified coding parameters ensure that the final processed video stream has consistent coding characteristics as a whole.

[0047] Compared to Figure 2 In the prior art shown in FIG. 1 , the encoding steps of the original video at each transmitting end, i.e., encoding using unified encoding parameters and generating a stream in a unified format, are placed on the MCU for implementation. Figure 2 In the prior art shown, this encoding step is implemented at the sending end. Before uploading the code stream to the MCU, the sending end needs to coordinate and determine the unified encoding parameters, and then encode the respective original videos according to the unified parameters to ensure that the code stream format received by the MCU is unified. Figure 2 The prior art shown has a disadvantage that the encoder configurations of various transmitting ends may be different, and the encoders of some transmitting ends may not meet the requirements of unified parameters, so there are certain limitations in flexibility.

[0048] To solve this problem, this embodiment places the step of uniformly encoding and generating a stream in a uniform format on the MCU. The MCU can generate a stream in a uniform format on a large scale without considering the specific encoder configuration conditions of each sending end. Figure 2 The prior art shown makes this embodiment more flexible and more suitable for a wide range of practical application scenarios.

[0049] S304: synthesize the multiple processed video streams to obtain a synthesized video stream.

[0050] In step S303, when the MCU uses H.26x for encoding, each image slice represents a certain part of the video screen, and each image slice is independently encoded using a unified encoding parameter to generate a corresponding encoding block. Therefore, in the synthesis stage in step 304, the MCU can separately extract the encoding blocks of the required image slices from each processed video stream. The encoding blocks of these image slices use a unified encoding parameter, which ensures that the encoding block formats of different clients are consistent and can be directly synthesized to obtain the synthesized video stream.

[0051] The specific synthesis steps are as follows Figure 5 As shown: S501: Receive the composition requirement from the receiving end, where the composition requirement informs the receiving end of the specific picture content and layout information required. The composition requirement tells the receiving end which senders' videos and specific picture content it wants to view, and in what layout combination the picture content of these senders is combined.

[0052] S502: Based on the client selected in the composition requirement, retrieve the processed video stream corresponding to the client.

[0053] S503: Based on the picture content of the client selected in the composition requirement, obtain the corresponding coded blocks in the retrieved processed video stream. In the retrieved processed video stream, the MCU extracts the corresponding coded blocks according to the picture content of the client selected in the composition requirement.

[0054] Steps S502 and S503 rely on the coded data in the processed video stream generated in the previous step S303 and do not require decoding the entire video.

[0055] S504: Synthesize the obtained coded blocks based on the layout information to generate the synthesized video stream. Calculate the positions of the coded blocks in the synthesized video stream according to the layout information to obtain the numbers of the coded blocks. Each coded block will be assigned a unique number, and the MCU can precisely know how to arrange each coded block in the synthesized video stream according to the number of the coded block. Place the coded blocks at the corresponding positions in the synthesized video stream according to the numbers of the coded blocks to generate the synthesized video stream.

[0056] Suppose the receiving end EP1 needs to layout the video streams from the senders EP2, EP3, EP4, and EP5. The receiving end EP1 requests to obtain a layout in the shape of a tic-tac-toe with a resolution of 3840×2160 as shown in Fig. 7A and requires that the video pictures of EP2, EP3, EP4, and EP5 be displayed in the upper left corner, upper right corner, lower left corner, and lower right corner of the tic-tac-toe layout respectively. The receiving end EP1 divides the received video pictures into 90 macroblocks (also called coded blocks in the present invention), numbers them in sequence, and assigns them to the corresponding senders according to the macroblock numbers of the corresponding layout, as shown in Figure 7A. For example, EP2 encodes the parts corresponding to the coded block numbers 0 - 4, 10 - 14, 20 - 24, 30 - 34, 40 - 44, and so on.

[0057] Fig. 7A The layout shown is the layout information sent by the receiving end EP1 to the MCU.

[0058] The MCU places the coded blocks in the four regions of EP2 - EP5 at the corresponding positions respectively according to the layout information. Fig. 7AThe corresponding positions are synthesized to obtain Figure 7B The composite video stream is shown.

[0059] If the same coding block participates in multiple syntheses, the synthesis method described in the present invention can avoid multiple decoding and encoding of the coding block. When processing the synthesis requirements of other receiving ends, the MCU can directly use the previously encoded data to participate in the synthesis, avoiding repeated encoding operations on the same video content and improving the performance and response speed of the MCU.

[0060] Compared to Figure 1 The prior art shown in the embodiment adopts a method of first encoding the original videos of each sending end and then synthesizing them. Such a design makes it unnecessary to repeatedly encode the original videos involved in multiple synthesizing when the MCU processes multiple synthesizing, but only needs to encode them once. Figure 1 The prior art shown is to synthesize the original videos of each transmitting end first, and then encode the synthesized video. This method results in that for the original videos participating in multiple synthesized, each time they participate in a synthesis, they need to be encoded once. This repeated encoding consumes a lot of MCU performance. Therefore, the method of this embodiment is relatively better in resource utilization efficiency and reduces unnecessary encoding operations.

[0061] S305: Send the synthesized video stream to a receiving end for decoding.

[0062] In the first embodiment of the present invention, based on the requirements of the synthetic pictures of each receiving end, the MCU selects the corresponding coding blocks to synthesize the synthetic video stream required by the receiving end and sends it to the corresponding receiving end. Although these coding blocks only need to be encoded once in the MCU, they need to be synthesized multiple times to meet the requirements of different receiving ends. Therefore, the burden of the MCU may still be increased. For this reason, the present invention also provides a second embodiment.

[0063] Embodiment 2 In a second embodiment, the present invention can generate the same composite video stream by synthesizing according to the same layout, and send the position and number correspondence of each coding block in the layout to all receiving ends. Each receiving end selects the required coding blocks from the received same composite video stream according to its own needs, rearranges them, generates the composite video stream required by each receiving end, and decodes them.

[0064] In the second embodiment, the specific synthesis process of step S304 is as follows: Figure 6 shown.

[0065] S601: Setting a unified predetermined synthesis layout mode; S602: According to the synthesis layout mode, the corresponding processed video stream of the client is retrieved; S603: Based on the picture content of the client selected in the synthesis layout mode, obtaining a coding block corresponding to the picture content in the retrieved processed video stream; S604: synthesizing the obtained coding blocks according to a predetermined synthesis layout to generate a unified synthesized video stream; Specifically, according to the algorithm of the predetermined layout, a unique number is assigned to each acquired coding block; the corresponding coding block is placed at a corresponding position in the composite video stream according to the number to generate the unified composite video stream.

[0066] In this step, the predetermined synthesis layout mode refers to a rule or algorithm pre-specified by the MCU. The MCU assigns a unique number to each acquired coding block according to the algorithm of the predetermined synthesis layout mode, and places the coding block at a corresponding position in the unified synthetic video stream according to the number.

[0067] In step S305 of this embodiment, the MCU sends the unified composite video stream and the unique number assigned to the coding block to the receiving end. The receiving end identifies and extracts each coding block in the unified composite video stream based on the number. The receiving end then readjusts the position of each coding block according to the layout required by itself, recombines the composite video stream of the required layout, and decodes and displays the combined composite video stream.

[0068] The advantage of Example 2 over Example 1 is that the receiving end shares the heavy work of the MCU. In Example 2, the MCU synthesizes a unified composite video stream, and the receiving end identifies and extracts the required coding blocks in the unified composite video stream according to the recorded numbers, and then readjusts the positions of these coding blocks according to its own needs to combine them into a video that conforms to the personalized layout. This division of labor not only reduces the burden on the MCU and alleviates resource pressure, but also improves the flexibility of the system, allowing the receiving end to adapt to different layout requirements more autonomously without relying on the MCU to generate specific video streams, thereby achieving more efficient and flexible video synthesis.

[0069] Exemplary Devices Accordingly, the embodiment of the present invention also provides a device for code stream synthesis, such as Figure 8 The code stream synthesis device specifically includes a receiving module 801, a processing module 802, an encoding module 803, a synthesis module 804 and a sending module 805.

[0070] The receiving module 801 is used to receive multiple video streams from different sending ends, and decode each video stream to obtain the original video of each sending end.

[0071] The processing module 802 is used to perform image processing on the original video of each sending end according to the synthesis parameters. The processing module 802 is specifically used to adjust the brightness, contrast, saturation, color temperature, clarity, face detection and tracking parameters, background blur or replacement parameters, resolution, ratio, etc. of the original video of each sending end to the standard specified by the synthesis parameters.

[0072] The encoding module 803 is used to encode all processed videos using unified encoding parameters to generate corresponding processed video streams. The unified encoding parameters include frame rate, encoding block size, quantization parameter, ASO, FMO, reference frame and / or 8×8 change switch. The encoding module 803 divides the processed video into multiple image slices based on the encoding parameters, and independently encodes each of the multiple image slices based on the encoding parameters to generate corresponding encoding blocks. The encoding blocks of each image slice are then organized according to their positions in the video image to form a complete processed video stream.

[0073] The synthesis module 804 is used to synthesize multiple processed video streams to obtain a synthesized video stream. The synthesis module 804 is used to receive a synthesis requirement from the receiving end, wherein the synthesis requirement informs the receiving end of the specific required picture content and layout information. The synthesis module 804 retrieves the processed video stream corresponding to the client based on the client selected in the synthesis requirement. Then, based on the picture content of the client selected in the synthesis requirement, the coding block corresponding to the picture content is obtained in the retrieved processed video stream. Then the synthesis module 804 synthesizes the obtained coding blocks based on the layout information to generate the synthesized video stream. Specifically, the position of the coding block in the synthesized video stream is calculated according to the layout information to obtain the number of the coding block; the coding block is placed at the corresponding position of the synthesized video stream according to the number of the coding block, thereby generating the synthesized video stream.

[0074] The sending module 805 sends the synthesized video stream generated by the synthesizing module 804 to the receiving end for decoding.

[0075] Alternatively, the synthesis module 804 receives a synthesis requirement from the receiving end, wherein the synthesis requirement informs the receiving end of the specific required picture content. Then, the synthesis module 804 retrieves the processed video stream corresponding to the client based on the client selected in the synthesis requirement. Based on the picture content of the client selected in the synthesis requirement, the coding block corresponding to the picture content is obtained in the retrieved processed video stream.

[0076] Then the synthesis module 804 synthesizes the acquired coding blocks according to the predetermined layout to generate the synthesized video stream. The synthesis module 804 assigns a unique number to each acquired coding block according to the algorithm of the predetermined layout. The corresponding coding blocks are placed at the corresponding positions in the synthesized video stream according to the numbers to generate the synthesized video stream. The sending module 805 sends the synthesized video stream together with the numbers assigned to the coding blocks to the receiving end. The receiving end identifies and extracts each coding block in the synthesized video stream based on the numbers. The receiving end readjusts the positions of the coding blocks according to the layout required by itself to combine the required layout.

[0077] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.

[0078] The present invention provides: 1. A video stream synthesis method, comprising: Receive multiple video streams from different senders, and decode each video stream to obtain the original video of each sender; Performing image processing on the original videos of the respective sending ends according to the synthesis parameters; Encode all processed videos using unified encoding parameters to generate corresponding processed video streams; synthesizing the multiple processed video streams to obtain a synthesized video stream; The synthesized video stream is sent to a receiving end for decoding.

[0079] 2. According to the method described in item 1, the step of performing image processing on the original videos of the respective sending ends according to the synthesis parameters further comprises the following steps: The brightness, contrast, saturation, color temperature, clarity, resolution and / or ratio of the original video of each sending end are adjusted to the standard specified by the synthesis parameters.

[0080] 3. According to the method described in item 1, the unified coding parameters include frame rate, coding block size, quantization parameter, ASO, FMO, reference frame and / or 8×8 change switch.

[0081] 4. According to the method described in item 1, encoding all processed videos using a unified encoding parameter to generate corresponding processed video streams also includes the following steps: dividing the processed video into a plurality of image slices based on the encoding parameters; Independently encoding each of the plurality of image slices based on the encoding parameters to generate corresponding encoding blocks; The coding blocks of each image slice are organized according to their positions in the video image to form a complete processed video stream.

[0082] 5. According to the method described in item 4, the step of synthesizing the multiple processed video streams to obtain the synthesized video stream further comprises the following steps: Receiving a synthesis requirement from the receiving end, wherein the synthesis requirement informs the receiving end of specific required picture content and / or layout information; Based on the client selected in the synthesis requirement, calling the processed video stream corresponding to the client; Based on the picture content of the client selected in the synthesis requirement, obtaining a coding block corresponding to the picture content in the retrieved processed video stream; synthesizing the obtained coding blocks based on the layout information to generate the synthesized video stream; or The acquired coding blocks are synthesized according to a predetermined layout to generate the synthesized video stream.

[0083] 6. According to the method of item 5, synthesizing the obtained coding blocks based on the layout information to generate the synthesized video stream further comprises the following steps: Calculating the position of the coding block in the composite video stream according to the layout information, and obtaining the number of the coding block; The coding blocks are placed at corresponding positions of the composite video stream according to the numbers of the coding blocks, thereby generating the composite video stream.

[0084] 7. According to the method of item 5, synthesizing the obtained coding blocks according to a predetermined layout to generate the synthesized video stream further comprises the following steps: According to the algorithm of the predetermined layout, a unique number is assigned to each obtained coding block; The corresponding coding blocks are placed at corresponding positions in the composite video stream according to the numbers to generate the composite video stream.

[0085] 8. According to the method of item 7, sending the synthesized video stream to the receiving end for decoding further comprises the following steps: Sending the synthesized video stream and the number assigned to the coding block to the receiving end; The receiving end identifies and extracts each coding block in the composite video stream based on the number; The receiving end readjusts the positions of the coding blocks according to the layout required by the receiving end to combine the required layout.

[0086] 9. A video stream synthesis device, comprising: The receiving module is used to receive multiple video streams from different sending ends, and decode each video stream to obtain the original video of each sending end; A processing module, used for performing image processing on the original videos of the respective sending ends according to the synthesis parameters; The encoding module is used to encode all processed videos using unified encoding parameters to generate corresponding processed video streams; A synthesis module, used for synthesizing multiple processed video streams to obtain a synthesized video stream; The sending module is used to send the composite video stream to a receiving end for decoding.

[0087] 10. According to the device described in item 9, the processing module is also used to adjust the brightness, contrast, contrast, saturation, color temperature, clarity, resolution and / or ratio of the original video of each sending end to the standard specified by the synthesis parameters.

[0088] 11. The device according to item 9, wherein the unified encoding parameters include frame rate, coding block size, quantization parameter, ASO, FMO, reference frame and / or 8×8 change switch.

[0089] 12. The device according to item 9, wherein the processing module further comprises: A module for segmenting the processed video into a plurality of image slices based on the encoding parameters; A module for independently encoding each of the plurality of image slices based on the encoding parameters to generate corresponding encoding blocks; It is used to organize the coding blocks of each image slice according to their positions in the video image to form a complete module for processing the video stream.

[0090] 13. The device according to item 12, wherein the synthesis module further comprises: A module for receiving a synthesis requirement from the receiving end, wherein the synthesis requirement informs the receiving end of specific required picture content and / or layout information; Used to call a module for processing a video stream corresponding to the client based on the client selected in the synthesis requirement; A module for obtaining, based on the picture content of the client selected in the synthesis requirement, a coding block corresponding to the picture content in the retrieved processed video stream; A module for synthesizing the obtained coding blocks based on the layout information to generate the synthesized video stream; or A module for synthesizing the acquired coding blocks according to a predetermined layout to generate the synthesized video stream.

[0091] 14. The apparatus according to item 13, wherein the module for synthesizing the obtained coding blocks based on the layout information to generate the synthesized video stream is further used for: Calculating the position of the coding block in the composite video stream according to the layout information, and obtaining the number of the coding block; The coding blocks are placed at corresponding positions of the composite video stream according to the numbers of the coding blocks, thereby generating the composite video stream.

[0092] 15. The apparatus according to item 13, wherein the module for synthesizing the acquired coding blocks according to a predetermined layout to generate the synthesized video stream is further configured to: According to the algorithm of the predetermined layout, a unique number is assigned to each obtained coding block; The corresponding coding blocks are placed at corresponding positions in the composite video stream according to the numbers to generate the composite video stream.

[0093] 16. The device according to item 15, wherein the sending module is further used to send the synthesized video stream and the number assigned to the coding block to the receiving end; The receiving end identifies and extracts each coding block in the composite video stream based on the number; The receiving end readjusts the positions of the coding blocks according to the layout required by the receiving end to combine the required layout.

Claims

1. A video stream synthesis method, comprising: Receive multiple video streams from different senders, and decode each video stream to obtain the original video of each sender; Performing image processing on the original videos of the respective sending ends according to the synthesis parameters; Encode all processed videos using unified encoding parameters to generate corresponding processed video streams; synthesizing the multiple processed video streams to obtain a synthesized video stream; The synthesized video stream is sent to a receiving end for decoding.

2. The method according to claim 1, wherein the performing image processing on the original video of each sending end according to the synthesis parameter further comprises the following steps: The brightness, contrast, saturation, color temperature, clarity, resolution and / or ratio of the original video of each sending end are adjusted to the standard specified by the synthesis parameters. 3 . The method according to claim 1 , wherein the unified encoding parameters include frame rate, encoding block size, quantization parameter, ASO, FMO, reference frame and / or 8×8 change switch.

4. The method according to claim 1, wherein encoding all processed videos using a unified encoding parameter to generate a corresponding processed video stream further comprises the following steps: dividing the processed video into a plurality of image slices based on the encoding parameters; Independently encoding each of the plurality of image slices based on the encoding parameters to generate corresponding encoding blocks; The coding blocks of each image slice are organized according to their positions in the video image to form a complete processed video stream.

5. The method according to claim 4, wherein synthesizing the multiple processed video streams to obtain the synthesized video stream further comprises the following steps: Receiving a synthesis requirement from the receiving end, wherein the synthesis requirement informs the receiving end of specific required picture content and / or layout information; Based on the client selected in the synthesis requirement, calling the processed video stream corresponding to the client; Based on the picture content of the client selected in the synthesis requirement, obtaining a coding block corresponding to the picture content in the retrieved processed video stream; synthesizing the obtained coding blocks based on the layout information to generate the synthesized video stream; or The acquired coding blocks are synthesized according to a predetermined layout to generate the synthesized video stream.

6. The method according to claim 5, wherein synthesizing the obtained coding blocks based on the layout information to generate the synthesized video stream further comprises the following steps: Calculating the position of the coding block in the composite video stream according to the layout information, and obtaining the number of the coding block; The coding blocks are placed at corresponding positions of the composite video stream according to the numbers of the coding blocks, thereby generating the composite video stream.

7. The method according to claim 5, wherein synthesizing the acquired coding blocks according to a predetermined layout to generate the synthesized video stream further comprises the following steps: According to the algorithm of the predetermined layout, a unique number is assigned to each obtained coding block; The corresponding coding blocks are placed at corresponding positions in the composite video stream according to the numbers to generate the composite video stream.

8. The method according to claim 7, wherein sending the synthesized video stream to a receiving end for decoding further comprises the following steps: Sending the synthesized video stream and the number assigned to the coding block to the receiving end; The receiving end identifies and extracts each coding block in the composite video stream based on the number; The receiving end readjusts the positions of the coding blocks according to the layout required by the receiving end to combine the required layout.

9. A video stream synthesis device, comprising: The receiving module is used to receive multiple video streams from different sending ends, and decode each video stream to obtain the original video of each sending end; A processing module, used for performing image processing on the original videos of the respective sending ends according to the synthesis parameters; The encoding module is used to encode all processed videos using unified encoding parameters to generate corresponding processed video streams; A synthesis module, used for synthesizing multiple processed video streams to obtain a synthesized video stream; The sending module is used to send the composite video stream to a receiving end for decoding.

10. The device according to claim 9, wherein the processing module is also used to adjust the brightness, contrast, contrast, saturation, color temperature, clarity, resolution and / or ratio of the original video of each sending end to the standard specified by the synthesis parameters.

Citation Information

Patent Citations

  • Video conference system and method for realizing transmission control of video image

    CN105635636A

  • Video conference processing method, processing device, conference system and storage medium

    CN113992883A

  • Code stream synthesis method and system

    CN116233335A

  • Multi-channel video input method and system

    CN116915937A

  • Multi-picture processing method, multi control unit (MCU) and video system

    US20170332043A1