Virtual production video re-screening method and system for capturing engine rendering content
A method and system for replaying virtual production videos by intercepting engine-rendered content, using servers and local devices to automatically reproduce virtual backgrounds, solving the problem of high threshold for virtual production technology, and realizing low-cost, low-threshold short video shooting , improving the quality of the film.
Patent Information
- Application Number
- CN202211393235.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-08
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The threshold for existing virtual production technology is too high. It is difficult for ordinary non-professionals to shoot professional-level short videos. The cost of reproducing virtual engine-rendered images is high and the configuration is complex.
Provide a virtual production video replay method and system that intercepts engine-rendered content. By reading the video master from the server, editing and storing video frames and enhancement information, robots and equipment are used to automatically reproduce the background, reducing user operation difficulty.
It greatly reduces the threshold and cost of virtual production, improves the availability of backgrounds and film quality, and ordinary users can shoot professional-level videos without professional knowledge.
Smart Images

Figure CN115914718B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of video processing and virtual production, and in particular relates to a virtual production video re-projection method and system for intercepting engine rendering content. Background Art
[0002] With the continuous deepening of technologies such as 5G and GPU, various short video applications have become mainstream, and video-centric applications will become more and more popular in the future, and video production will inevitably move from professional to popular.
[0003] Currently, the emerging virtual production technology can shift video shooting from prop real scenes or outdoor real scenes to indoor virtual backgrounds, greatly reducing the cost of video shooting and increasing the speed of video production, but it still needs to rely on professional photography, scripts, editing and other technologies that are difficult for non-professionals to master.
[0004] In addition, the use of virtual engines has very cumbersome configuration steps for beginners, and has a high learning cost. How to reproduce the real-time images rendered by virtual engines at a low cost has become a key issue. When shooting the background image for reproduction, the linkage relationship with the camera and the robot will determine whether the visual relationship presented in the final video is correct.
[0005] Therefore, how to enable ordinary non-professionals to shoot professional short videos has become an urgent problem that needs to be solved. It is necessary to provide a virtual production solution that can reduce the difficulty of short video shooting. Summary of the invention
[0006] The purpose of the present invention is to solve the problem of high threshold of virtual production in the prior art, and to provide a virtual production video re-projection method and system for intercepting engine rendering content.
[0007] The specific technical solutions adopted by the present invention are as follows:
[0008] In a first aspect, the present invention provides a virtual production video re-projection method for capturing engine rendering content, comprising:
[0009] S1. Read the video master specified by the user from the server; the video master includes video frames and video enhancement information SEI frames, and each set of new video enhancement information appearing during the shooting process is encoded as an SEI frame and inserted into the video code stream before the video frame with the corresponding timestamp; and the virtual engine rendering image of the background corresponding to each frame image in the video master is pre-stored on the server;
[0010] S2, obtaining the editing operation of the user on the video master, deleting all the deleted segments in the video bitstream, and assigning a pause marker to the first frame before each deleted segment in the video bitstream, and assigning a start marker to the first frame after each deleted segment in the video bitstream, and if any deleted segment contains at least one frame of video enhancement information SEI frame, inserting the last frame of video enhancement information SEI frame in the deleted segment before the first frame of video picture after the deleted segment, and finally forming an edited master with markers;
[0011] S3, traverse the edited master film frame by frame, determine the frame type according to the frame header information, if it is a video frame, obtain the virtual engine rendering image corresponding to the video frame from the server, if it is a video enhancement information SEI frame, extract the video enhancement information from it by decoding; the virtual engine rendering images of all video frames in the edited master film and the video enhancement information of all video enhancement information SEI frames are stored in the local end;
[0012] S4. Listen to the master film playback command issued by the user. After receiving the master film playback command issued by the user, start playing the edited master film frame by frame. During the playback process, read the virtual engine rendering picture frame by frame from the local end and display it on the background display screen of the virtual production. At the same time, read the corresponding video enhancement information from the local end according to the timestamp of the video enhancement information SEI frame and send it to the virtual production device. The virtual production device parses the received video enhancement information and makes corresponding device control actions. During the playback process, if a pause mark appears in the edited master film, it is necessary to pause the master film playback and send a pause prompt to the user. At the same time, send the video enhancement information corresponding to the next start mark to the virtual production device, and monitor whether the virtual production device has completed the switching of the device control action. After completion, send a continue shooting prompt to the user.
[0013] As a preferred embodiment of the first aspect, in S3, it is also necessary to scan the pairs of pause markers and start markers in the edited master film, and calculate the conversion time required for the virtual production device to convert the video enhancement information corresponding to the moment when the pause marker appears to the video enhancement information corresponding to the moment when the start marker appears, and store the conversion time corresponding to each pair of markers to the local end, and when issuing a pause prompt to the user, the corresponding conversion time needs to be displayed as the time required for the pause.
[0014] As a preferred embodiment of the first aspect, the video enhancement information includes the spatial position of the camera, the posture information of the camera, the camera's own control parameters, lighting control parameters and sound effect control parameters.
[0015] As a preferred embodiment of the above-mentioned first aspect, the camera is controlled by a shooting robot that can move and adjust its posture by itself, and the conversion time is the time required for the shooting robot to move from the spatial position at the moment when the pause marker appears to the spatial position at the moment when the start marker appears, which is calculated after path planning by the shortest path planning algorithm combined with the moving speed of the shooting robot.
[0016] As a preferred embodiment of the first aspect, the shortest path planning algorithm adopts Astar algorithm.
[0017] As a preferred embodiment of the first aspect, in S4, when it is monitored that the virtual production device completes the switching of the device control action, a prompt to continue shooting is issued to the user. After receiving the continue shooting instruction issued by the user, the edited master film continues to be played frame by frame from the start marker position.
[0018] In a second aspect, the present invention provides a virtual production video re-projection system for capturing engine rendering content, comprising:
[0019] The virtual production equipment includes a shooting robot, a tracker, a gyroscope, a sound effect device, a lighting device and a background display device. A moving mechanism is installed at the bottom of the shooting robot. The camera is mounted on a multi-degree-of-freedom mechanical arm of the shooting robot to perform shooting tasks. The tracker and the gyroscope are mounted on the shooting robot to sense the spatial position and posture information of the camera. The sound effect device and the lighting device are used to provide sound effects and lighting for the shooting scene respectively. The background display device is used to display the background picture rendered by the virtual engine.
[0020] The local control device is used to connect the server and the virtual production device through the network to implement the virtual production video re-screening method as described in any solution of the first aspect above.
[0021] As a preferred embodiment of the second aspect, the virtual production video re-screening system also includes a plurality of locators arranged in the shooting site and cooperating with the tracker. When monitoring whether the virtual production equipment has completed the switching of the equipment control action, the tracker and the locator cooperate to locate the moved position of the shooting robot and feed back the positioning information to the server, which verifies it. If there is a deviation from the target position, an adjustment instruction or an unexpected termination instruction is sent to the shooting robot.
[0022] As a preferred embodiment of the above-mentioned second aspect, the background display screen adopts an LED display screen, and before the virtual engine rendering picture is sent to the background display screen for display, the LED imaging data matrix is pre-compressed using a compression algorithm to reduce storage capacity and data transmission efficiency.
[0023] As a preferred embodiment of the second aspect, it further includes a master film display screen, which is used to display each video frame of the edited master film to the user during the process of playing the edited master film frame by frame.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] 1. The virtual production environment re-projection method adopted by the present invention greatly reduces the user's usage threshold. When shooting sub-films, users do not need to use the engine to reproduce the background environment, skipping the complex steps of environment configuration. In addition, the re-projection method described in the present invention will greatly improve the usability of the background. The background playback only needs to be synchronized with the hardware under the same time stream.
[0026] 2. The robot used in the present invention can reduce the threshold and cost of virtual filming. In the process of filming, the robot can completely replace the work that the photographer needs to do, and can complete the work that requires higher precision to achieve better film quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart of a method for re-projecting a virtual production video for capturing engine rendered content;
[0028] Figure 2 A set of exemplary video enhancement information data corresponding to a set of video image frames;
[0029] Figure 3 for Figure 2 The data of the video enhancement information after editing;
[0030] Figure 4 It is a schematic diagram of information synchronization after the picture frames in the video master are cut;
[0031] Figure 5 Schematic diagram of a virtual production video re-projection system for capturing engine rendered content;
[0032] Figure 6 This is a schematic diagram of the interaction between the shooting robot and the scene with integrated ground control equipment. DETAILED DESCRIPTION
[0033] The present invention is further described and illustrated below in conjunction with the accompanying drawings and specific embodiments. The technical features of each embodiment of the present invention can be combined accordingly without conflicting with each other.
[0034] In order to make the above-mentioned purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation mode of the present invention is described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below. The technical features in each embodiment of the present invention can be combined accordingly without conflicting with each other.
[0035] In the description of the present invention, it is to be understood that when an element is considered to be "connected" to another element, it may be directly connected to the other element or indirectly connected, that is, there are intermediate elements. On the contrary, when an element is said to be "directly" connected to another element, there are no intermediate elements.
[0036] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for the purpose of distinguishing descriptions, and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0037] like Figure 1 As shown, in a preferred embodiment of the present invention, a virtual production video replay method for intercepting engine rendering content is provided, and its specific steps include S1 to S4. The core purpose of the virtual production video replay method is to enable non-professionals to simply imitate the filming process of professionals. In the virtual production process of the master film, under the premise of virtualizing the shooting background, the short video production process information of professional scriptwriters, photographers, lighting technicians, editors, etc. is automatically recorded during the video shooting process, and a finished film with the above information is generated, which is called a video master film that can be shot repeatedly. Specifically, the professional photographer uses the engine to render the real-time display of the picture content on the LED screen, and the real-time three-dimensional position, posture, lighting, sound and other video enhancement information of the camera movement is recorded into the virtual production master film through SEI encryption. Later, in the process of shooting the sub-film, after the non-professionals select the video master film to be imitated, they can edit it in sequence, and then the low-threshold reproduction of the background picture can be achieved by real-time storage of the real-time picture rendered by the engine. At the same time, the entry-level photographer only needs to replace the role in the master film with the action he only needs to imitate. The virtual production device will read the relevant video enhancement information in the video master film from the server and automatically decode and control the device parameters. This process of replicating the "video master" allows ordinary users to shoot a film similar to the master simply by replacing the protagonist in the master with themselves, greatly lowering the entry threshold for virtual production.
[0038] The specific implementation methods of the above steps S1 to S4 are described in detail below.
[0039] S1. Read the video master specified by the user from the server. The video master includes video frames and video enhancement information SEI frames. Each set of new video enhancement information that appears during the shooting process is encoded as an SEI frame and inserted into the video bitstream before the video frame with the corresponding timestamp; and the virtual engine rendering image of the background corresponding to each frame image in the video master is pre-stored on the server.
[0040] It should be noted that the video master and the virtual engine rendering screen in the present invention are pre-stored on the server. In the virtual production process, there are two types of data, one is the basic information containing the video screen transmitted by the camera, and the other is the video enhancement information corresponding to the video screen frame. Generally speaking, the shooting of the video master requires professionals to control virtual production equipment including cameras, trackers, gyroscopes, audio, lighting, etc. under a virtual or real background. The camera can record the basic information of the master, and the basic information transmitted by the camera includes the video screen information, while the tracker, gyroscope, audio, lighting and other virtual production equipment will synchronously record other video enhancement information for controlling the film effect in addition to the basic information of the video screen, such as video frame number, camera spatial position information (X-axis, Y-axis, Z-axis coordinates, recorded by the tracker mounted on the camera), camera degree of freedom information (XY plane, YZ plane, XZ plane, recorded by the gyroscope mounted on the camera), focal length (recorded by the camera itself), audio information, lighting information, etc. At the same time, the background needs to be rendered complexly by the virtual engine. By recording the video enhancement information and video code stream during the manual shooting process of professionals, the video enhancement information can be encoded into the video code stream in the form of SEI frames to form a video master with video enhancement information. Later, ordinary users can play the video master in a studio with a background display, decode the relevant video enhancement information (the position, posture, zoom, lighting, sound effects and other information of the camera in the master), and then control the virtual production equipment to replicate the operation of the equipment by professionals and reproduce the technical parameters of the master film shooting. In this way, the shooting process of professionals can be replicated without professional knowledge, so as to make their own more professional videos.
[0041] The core of the encoding of the above-mentioned video master is to construct the video enhancement information into a SEI frame. The specific format of the video enhancement information SEI frame can be adjusted according to actual conditions. As an implementation method of an embodiment of the present invention, the method for constructing the SEI enhancement information frame is:
[0042] First, construct a space of 537B to store the SEI frame header and frame information body; then calculate the data length of the video enhancement information, and store the calculated data length in a 16-bit integer variable, which is divided into high 8 bits and low 8 bits; then insert a 4-byte NALU start code, a 1-byte NAL type identification code, a 1-byte payload type, a 16-byte UUID custom identification code, a 1-byte data length high 8 bits, a 1-byte data length high 8 bits, N bytes (N is not greater than 512) of video enhancement information, and a 1-byte SEI encapsulation package end alignment code in sequence into the 537B space to form a video enhancement information SEI frame.
[0043] The above-mentioned video enhancement information SEI frame needs to be inserted into the video bitstream according to the timestamp to form a video master containing the video enhancement information SEI frame. The video bitstream can generally be directly output by the camera, and the format can be uniformly H.264 bitstream. Since the video enhancement information does not change for every frame, it is only necessary to encode the new video enhancement information into an SEI frame when the video enhancement information provided by the virtual production device changes, and insert it into the video bitstream before the video picture frame with the same timestamp. Of course, it is also possible to insert the video enhancement information SEI frame before each video picture frame, but it will increase the redundant information of the video master.
[0044] In addition, preferably, when encoding the video enhancement information, it can be encrypted first, and then the video enhancement information can be extracted by decryption to improve the security of network transmission. The encryption algorithm preferably adopts a fully homomorphic encryption algorithm, which can convert the video enhancement information into ASCII code, and then perform fully homomorphic encryption character by character, and then perform corresponding fully homomorphic decryption on each character and then combine to restore the video enhancement information.
[0045] In addition, when professionals perform virtual production, they will use a virtual engine to perform complex rendering of the background, but this is impossible for non-professionals to do. Therefore, in the present invention, the background corresponding to each frame of the video master image can be stored on the server in advance after being rendered by the virtual engine. Subsequently, only one background display screen is needed to display the virtual engine rendering image of this frame. Non-professionals do not need to use the virtual engine by themselves, which greatly reduces the difficulty of virtual production.
[0046] S2. Obtain the editing operation of the user on the video master, delete all the deleted segments in the video code stream, assign a pause marker to the first frame before each deleted segment in the video code stream, assign a start marker to the first frame after each deleted segment in the video code stream, and if any deleted segment contains at least one frame of video enhancement information SEI frame, insert the last frame of video enhancement information SEI frame in the deleted segment before the first frame of video picture after the deleted segment, and finally form an edited master with markers.
[0047] It should be noted that in this step, the pause marker and the start marker appear in pairs. When the user edits a clip, a pair of pause markers and start markers will appear. The purpose of setting a pair of pause markers and start markers is to leave time for adjusting the parameters of the virtual production equipment, because the control of the virtual production equipment is often continuous during the shooting of the video master, but once the video master is edited, the control parameters of the virtual production equipment will jump before and after the editing clip. At this time, the virtual production equipment needs some time to adjust the parameters of each device in order to meet the device control parameters after the editing clip.
[0048] like Figure 2 As shown in FIG. 1 , a set of exemplary video enhancement information corresponding to a video image frame is shown (including the spatial position of the camera, the camera's posture information, the camera's own control parameters, the lighting control parameters and the sound effect control parameters, as well as the reserved expansion bit and other information). If the user cuts and removes the video image frames 000005-000013, the video enhancement information will have a large jump. Figure 3 As shown, the corresponding flags can be marked in the previous frame and the next frame of the clipped segment, and the flag bits can be set to 1 at video image frame 000004 and video image frame 000014, respectively. This pair of 1 flags respectively represents a pair of pause flags and start flags that appear due to the clipping. In addition, in order to facilitate the subsequent verification of whether the virtual production equipment has completed the switching adjustment of various equipment parameters at this clipping position, a synchronization point flag can also be set. The synchronization point flag of 0 represents unfinished, and the synchronization point flag of 1 represents completed. When it is completed, the user can be notified to continue shooting.
[0049] In addition, it should be noted that, in the aforementioned video master, not every video frame carries a corresponding video enhancement information SEI frame. Therefore, in order to ensure that the video master can still identify the video enhancement information corresponding to each video frame after editing, if a section of the cut segment contains one or more video enhancement information SEI frames, directly cutting this segment will result in the video frame after the cut segment being unable to determine the corresponding video enhancement information. Therefore, in this step, it is necessary to insert the last video enhancement information SEI frame in this cut segment before the first video frame after this cut segment, so that even if video editing occurs, each video frame can still have the corresponding video enhancement information.
[0050] like Figure 4 As shown, when a picture frame in a video master is cut, its corresponding various timestamp information also needs to be synchronized accordingly.
[0051] S3. Traverse the edited master film frame by frame, determine the frame type according to the frame header information, if it is a video frame, obtain the virtual engine rendering image corresponding to the video frame from the server, if it is a video enhancement information SEI frame, extract the video enhancement information from it by decoding; the virtual engine rendering images of all video frames in the edited master film and the video enhancement information of all video enhancement information SEI frames are stored locally.
[0052] The edited master is in NALU frames, each NALU frame starts with 0x00000001 or 0x000001, and the two digits after the start code are the NAL type identification code NRI. The frame type can be determined based on NRI. The virtual engine rendering image and video enhancement information are stored locally to improve the real-time performance during shooting and avoid delays caused by data transmission and decoding.
[0053] As a preferred implementation method of an embodiment of the present invention, in the above step S3, it is also necessary to scan the pairs of pause markers and start markers in the edited master film, and calculate the conversion time required for the virtual production device to convert the video enhancement information corresponding to the moment when the pause marker appears to the video enhancement information corresponding to the moment when the start marker appears, and store the conversion time corresponding to each pair of markers to the local end. When a pause prompt is issued to the user, the corresponding conversion time needs to be displayed as the time required for the pause, so that the performer can reasonably control the time.
[0054] It should be noted that the local end mentioned in the present invention can be in various forms, for example, a host computer can be set up locally for control, or it can be directly stored in the control device of the virtual production equipment itself.
[0055] In order to reduce the difficulty of non-professionals in operating virtual production equipment, the present invention can mount the camera on the robot for movement and posture adjustment, so that the video enhancement information can be directly converted into the spatial position parameters and posture angles of the shooting robot (which can be adjusted by the degree of freedom of the mechanical arm), so that the user can move the camera without operating the camera. When using a shooting robot for shooting, since the adjustment of equipment parameters such as camera focal length, lighting, and sound effects is often very fast, the conversion time required for the virtual production equipment to convert the video enhancement information corresponding to the moment when the pause marker appears to the video enhancement information corresponding to the moment when the start marker appears is mainly limited by the spatial movement time of the robot. Therefore, as a preferred implementation method of an embodiment of the present invention, the above-mentioned conversion time can be adopted as the time required for the shooting robot to move from the spatial position at the moment when the pause marker appears to the spatial position at the moment when the start marker appears. This time can be calculated by combining the movement speed of the shooting robot after path planning by the shortest path planning algorithm. Calculate the position information between the corresponding video starting points, perform the shortest path planning of the shooting robot, and plan the running path and time to steadily reach the starting position according to the robot's movement speed. The time is placed Figure 3 During the pause time, the synchronization point is set to 0; when the robot moves to the starting position, it will be set to 1;
[0056] As a preferred implementation of the embodiment of the present invention, the above shortest path planning algorithm adopts the Astar algorithm. The shortest path algorithm adopts the Astar algorithm, which is mainly based on the idea of breadth-first search and combines the various features of the Best fit algorithm and the Dijkstra algorithm. Its main idea is to calculate the priority of each node in the graph through the following function, and then determine the next algorithm execution node as the node with the highest priority. The priority function is:
[0057] f(n)=g(n)+h(n)
[0058] Where g(n) is the path cost from node n to the starting point, and h(n) is the estimated path cost from node n to the end point.
[0059] In actual application scenarios, it is impossible for a robot to walk from the starting point to the end point without any obstructions. It also needs to move according to certain rules. There are often many obstacles, and they are all irregular obstacles. This requires the robot to not only automatically bypass these obstacles, but also find the shortest path. The use of the Astar algorithm is an excellent algorithm that takes into account both efficiency and route quality. Therefore, when a pair of markers appear in the video master due to editing, the spatial position information between the starting points of the corresponding video clips can be used in advance to call the Astar algorithm to plan the shortest path to the site where the robot is located. The running path and time to steadily reach the starting position are planned according to the robot's movement speed, and the time is stored in the Astar algorithm. Figure 3 During the pause time, the synchronization point flag is set to 0; when the robot moves to the target position, the synchronization point flag is set to 1.
[0060] After completing all the above preparations, you can play the master film and shoot the sub-film. The specific implementation process is described below.
[0061] S4, monitor the master film playback command issued by the user, and after receiving the master film playback command issued by the user, start playing the edited master film frame by frame. During the playback process, read the virtual engine rendering picture frame by frame from the local end and display it on the background display screen of the virtual production. At the same time, read the corresponding video enhancement information from the local end according to the timestamp of the video enhancement information SEI frame and send it to the virtual production device. The virtual production device parses the received video enhancement information and makes corresponding device control actions. During the playback process, if a pause mark appears in the edited master film, it is necessary to pause the master film playback and send a pause prompt to the user. At the same time, send the video enhancement information corresponding to the next start mark to the virtual production device, and monitor whether the virtual production device has completed the switching of the device control action. After completion, send a prompt to the user to continue shooting.
[0062] As a preferred implementation of the embodiment of the present invention, in the above step S4, when the virtual production device is monitored to complete the switching of the device control action, a prompt to continue shooting is issued to the user, but whether to actually start to continue shooting needs to wait for the user's manual input instruction. Only after receiving the continue shooting instruction issued by the user, can the edited master film be played frame by frame from the start marker position to ensure that the user is fully prepared. The continue shooting instruction can be input through a physical device or through voice and other methods, and there is no limitation on this.
[0063] Therefore, when the user needs to replicate the master film to shoot his own sub-film, the common process is: play the master film, and imitate the actions according to the current screen of the master film, the display screen behind automatically displays the rendered virtual background, and the virtual production equipment automatically runs according to the parameters of the master film. When the clip position is played, the system will identify a pair of pause flags and start flags, pause the playback of the master film, and the actors and players will refer to the playback pause time and wait for the camera robot to move to the starting position. After the robot is in place, it sends a signal to the system, and the synchronization playback point is set to 1. The system shows that the synchronization is ready. After the shooter issues a shooting command, the machine will continue to shoot. Therefore, when the shooter needs to repeat the sub-film, he only needs to play the master film, the hardware will read the corresponding data and shoot at the indicated position. During the production process, he only needs to change the performer to replicate the master film. If you want to shoot a personalized video based on the master film, you can change the background, actors, etc., and you can also simply make a new master film by re-encoding.
[0064] like Figure 5 As shown, based on the above-mentioned virtual production video reprojection method, in another embodiment of the present invention, a virtual production video reprojection system for capturing engine rendering content for implementing the method is further provided, which includes a virtual production device and a local control device.
[0065] The virtual production equipment includes a shooting robot, a tracker, a gyroscope, a sound effect device, a lighting device and a background display device. A moving mechanism is installed at the bottom of the shooting robot. The camera is mounted on a multi-degree-of-freedom mechanical arm of the shooting robot to perform shooting tasks. The tracker and the gyroscope are mounted on the shooting robot to sense the spatial position and posture information of the camera. The sound effect device and the lighting device are respectively used to provide sound effects and lighting for the shooting scene. The background display device is used to display the background picture rendered by the virtual engine.
[0066] The local control device is used to connect the server and the virtual production device through the network to implement the virtual production video re-screening method as described in the above embodiment.
[0067] In addition, as a preferred method of the above-mentioned virtual production video re-projection system, several locators cooperating with the tracker can be further arranged in the shooting site. When monitoring whether the virtual production equipment has completed the switching of the equipment control action, the tracker and the locator can be used to locate the moving position of the shooting robot and feed the positioning information back to the server. The server will verify it and send an adjustment instruction or an unexpected termination instruction to the shooting robot if there is a deviation from the target position.
[0068] It should be noted that the above-mentioned local control device can be implemented by a host computer alone, or can be integrated into a shooting robot, such as Figure 6As shown. At this time, before the shooting robot is used, it needs to move freely in the shooting scene according to the planned coordinates, and set up cameras, trackers, gyroscopes and other shooting and tracking equipment on the robot to collect site information for subsequent path planning. The tracker and gyroscope equipment obtain the camera's spatial position information, rotational freedom information, speed and acceleration information in real time, and return the relevant information to the system platform. During the repeated shooting process, the robot can move to the specified point for shooting according to the received video enhancement information.
[0069] Generally speaking, when the robot receives video enhancement information, it needs to parse it and then execute the corresponding action. The instructions can be completed in the following steps:
[0070] 1. Analyze the X, Y, and Z axis coordinate information and reach the specified position through the bottom pulley.
[0071] 2. Analyze the camera rotation information and adjust the real-time rotation angle of the camera by rotating joints A, B, C, and D.
[0072] 3. Analyze aperture information and focal length information to realize real-time changes of camera parameters.
[0073] 4. Analyze the lighting information, transmit the information to the fill light through the transmitter, and adjust the ambient lighting effect in real time.
[0074] The locator can be matched with the appropriate number according to the size of the venue to determine the size of the movable scene, and cooperate with the tracker to ensure that the position information of the camera in the real space and the virtual space is correct and matches each other. The shooting robot can return the current position information to the server. After receiving the position information, the server will perform real-time verification. If a deviation is found, it will send adjustment or accidental termination instructions to the robot.
[0075] In addition, the background display screen in the present invention can adopt an LED display screen, which is a module composed of a light-emitting diode dot matrix. The information to be output is processed by a computer and sent to the LED display screen control card for imaging. The main controller obtains the brightness data of each pixel from the software and distributes it to a number of scanning boards. Each scanning board is responsible for controlling a number of rows on the LED display screen, and the LED display signal on each row is cascaded and transmitted by each display control unit in a serial manner, and each display control unit directly faces the LED display screen. Each pixel of the LED display screen is composed of three primary colors of RGB, and the brightness calculation usually uses a data unit that can be mapped and used. When the master film is produced, the LED imaging data matrix can be stored using a custom device by combining the imaging characteristics of the LED matrix. Because the imaging data is huge, the virtual engine rendering picture is pre-compressed using a compression algorithm to compress the LED imaging data matrix before sending it to the background display screen for display, so as to reduce the storage capacity and data transmission efficiency. The compression process can be completed on the server side or at the local control device.
[0076] Different compression processing algorithms can be used for different types of LED imaging data matrices. In one example, the specific compression processing algorithm is as follows:
[0077] 1. For a symmetric matrix, only the values of the elements below the diagonal are stored. Assuming the matrix is n*n, the required space is n*(n+1) / 2.
[0078] 2. For triangular matrices, the same storage method as symmetric matrices is still used, that is, row-by-row storage, but an additional space is required to store constant values.
[0079] 3. For sparse matrices, triples are used for storage, that is, the row and column subscripts and valid values of non-zero elements are stored. There is a one-to-one correspondence between non-zero elements and triples.
[0080] 4. For data matrices that satisfy the properties of tridiagonal matrices, only information about non-zero element data is stored, and the data position can be obtained based on the data arrangement properties of the tridiagonal matrix.
[0081] Experiments have shown that the above method can effectively reduce storage capacity, and the compression rate results are as follows:
[0082] Matrix Number Unique number of valid values Compression 1 175681 0.02315 2 159635 0.01622 3 8536 0.01358 4 37756 0.00965 5 846522 0.00658
[0083] In addition, in order to allow users to see the character movements on the master film in real time, a master film display screen can be further set up to display each video frame of the edited master film to the user during the frame-by-frame playback of the edited master film.
[0084] It should also be noted that technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, the modules in the system described above and the step processes contained in the method are only a logical function division, and there may be other division methods in actual implementation. For example, multiple modules or steps can be combined or integrated together, and a module or step can also be split.
[0085] It should be noted that, according to the embodiments disclosed in the present invention, the specific implementation functions of the modules in the above-mentioned systems can be implemented by a written computer software program, and the computer program contains program codes for executing the corresponding methods.
[0086] Therefore, the modules in the above-mentioned systems can be stored in a computer-readable storage medium in the form of a program. The storage medium stores one or more computer programs, and when the one or more computer programs are executed by a processor, the functions of the modules described in the above-mentioned embodiments can be realized.
[0087] It is understandable that the above storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the above processor.
[0088] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0089] The above-described embodiment is only a preferred solution of the present invention, but it is not intended to limit the present invention. A person skilled in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
Claims
1. A virtual production video re-projection method for capturing engine rendering content, characterized in that: include: S1, read the video master specified by the user from the server; The video master includes video frames and video enhancement information SEI frames. Each set of new video enhancement information that appears during the shooting process is encoded as an SEI frame and inserted into the video code stream before the video frame with the corresponding timestamp; and the virtual engine rendering image of the background corresponding to each frame image in the video master is pre-stored on the server; S2, obtaining the editing operation of the user on the video master, deleting all the deleted segments in the video bitstream, and assigning a pause marker to the first frame before each deleted segment in the video bitstream, and assigning a start marker to the first frame after each deleted segment in the video bitstream, and if any deleted segment contains at least one frame of video enhancement information SEI frame, inserting the last frame of video enhancement information SEI frame in the deleted segment before the first frame of video picture after the deleted segment, and finally forming an edited master with markers; S3, traversing the edited master film frame by frame, determining the frame type according to the frame header information, if it is a video frame, obtaining the virtual engine rendering image corresponding to the video frame from the server, and if it is a video enhancement information SEI frame, extracting the video enhancement information from it by decoding; The virtual engine rendering images of all video frames in the edited master film and the video enhancement information of all video enhancement information SEI frames are stored locally; S4, monitoring the master film playback command issued by the user, and after receiving the master film playback command issued by the user, starting to play the edited master film frame by frame, reading the virtual engine rendering picture frame by frame from the local end during the playback process and displaying it on the background display screen of the virtual production, and at the same time reading the corresponding video enhancement information from the local end according to the timestamp of the video enhancement information SEI frame and sending it to the virtual production device, the virtual production device parses the received video enhancement information and makes corresponding device control actions; during the playback process, if a pause mark appears in the edited master film, it is necessary to pause the master film playback and send a pause prompt to the user, and at the same time send the video enhancement information corresponding to the next start mark appearance time to the virtual production device, and monitor whether the virtual production device completes the switching of the device control action, and after completion, send a reminder to the user to continue shooting; In said S3, it is also necessary to scan the pairs of pause markers and start markers in the edited master film, and calculate the conversion time required for the virtual production device to convert the video enhancement information corresponding to the moment when the pause marker appears to the video enhancement information corresponding to the moment when the start marker appears, and store the conversion time corresponding to each pair of markers to the local end, and when issuing a pause prompt to the user, the corresponding conversion time needs to be displayed as the pause required time; The video enhancement information includes the spatial position of the camera, the posture information of the camera, the camera's own control parameters, the lighting control parameters and the sound effect control parameters; The camera is controlled by a shooting robot that can move and adjust its posture by itself. The conversion time is the time required for the shooting robot to move from the spatial position at the moment when the pause marker appears to the spatial position at the moment when the start marker appears. It is calculated by combining the moving speed of the shooting robot after path planning through the shortest path planning algorithm.
2. The virtual production video re-projection method of capturing engine rendered content according to claim 1, characterized in that: The shortest path planning algorithm adopts the Astar algorithm.
3. The virtual production video re-projection method of capturing engine rendered content according to claim 1, characterized in that: In S4, when it is monitored that the virtual film production device completes the switching of the device control action, a prompt to continue shooting is sent to the user. When the continue shooting instruction issued by the user is received, the edited master film is played frame by frame from the start marker position.
4. A virtual production video re-projection system for capturing engine rendered content, characterized in that: include: The virtual production equipment includes a shooting robot, a tracker, a gyroscope, a sound effect device, a lighting device and a background display device. A moving mechanism is installed at the bottom of the shooting robot. The camera is mounted on a multi-degree-of-freedom mechanical arm of the shooting robot to perform shooting tasks. The tracker and the gyroscope are mounted on the shooting robot to sense the spatial position and posture information of the camera. The sound effect device and the lighting device are used to provide sound effects and lighting for the shooting scene respectively. The background display device is used to display the background picture rendered by the virtual engine. The local control device is used to connect the server and the virtual production device through the network to implement the virtual production video re-screening method as described in any one of claims 1 to 3.
5. The virtual production video re-projection system of intercepting engine rendering content as claimed in claim 4, characterized in that: It also includes several locators arranged in the shooting site and cooperating with the tracker. When monitoring whether the virtual production equipment has completed the switching of the equipment control action, the tracker and the locator cooperate to locate the moving position of the shooting robot and feed back the positioning information to the server, which will verify it. If there is a deviation from the target position, an adjustment instruction or an unexpected termination instruction will be sent to the shooting robot.
6. The virtual production video re-projection system of intercepting engine rendering content as claimed in claim 4, characterized in that: The background display screen adopts an LED display screen. Before the virtual engine rendering picture is sent to the background display screen for display, the LED imaging data matrix is compressed in advance using a compression algorithm to reduce storage capacity and data transmission efficiency.
7. The virtual production video re-projection system of intercepting engine rendering content as claimed in claim 4, characterized in that: It also includes a master film display screen, which is used to display each video frame of the edited master film to the user during the frame-by-frame playback of the edited master film.
