Method, apparatus, electronic device, and storage medium for replicating a video shooting process
By playing the target video and determining the shooting camera position in film and television teaching, it solves the problem that students find it difficult to intuitively understand the film shooting process, real-time restoration of the video shooting process and improving the ease of teaching.
Patent Information
- Application Number
- CN202111671312.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In traditional film and television teaching, students learn shooting ideas and techniques through scripts or watching videos. The methods are relatively abstract and it is difficult to intuitively understand the real shooting process of the film.
When playing the target video, the shooting process of the video is restored by determining the shooting position of the current video frame and moving the virtual machine position to the corresponding target virtual position in the target virtual scene.
It realizes the real-time switching of shooting camera positions when playing videos, intuitively restoring the video shooting process, and improves the ease of understanding of film and television teaching.
Smart Images

Figure CN114339048B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer application technologies, and in particular, to a method, apparatus, electronic device, and storage medium for replicating a video shooting process. Background Art
[0002] In traditional film and television teaching, students learn shooting ideas and techniques through scripts or by watching films.
[0003] However, learning shooting ideas and techniques only through scripts or films is relatively abstract, and it is not easy to imagine the actual shooting process of the film. Summary of the Invention
[0004] In view of this, to solve the above technical problems or some of the technical problems, the embodiments of the present invention provide a method, apparatus, electronic device, and storage medium for replicating a video shooting process.
[0005] In a first aspect, the embodiments of the present invention provide a method for replicating a video shooting process, the method including:
[0006] Playing a target video;
[0007] During the process of playing the target video, determining a first shooting position corresponding to a first video frame, where the first video frame is the currently played video frame;
[0008] Determining a target virtual position corresponding to a first virtual position in a target virtual scene, where the target virtual scene is a virtual scene corresponding to the shooting scene of the target video, and the first virtual position is the virtual position corresponding to the first shooting position in the target virtual scene;
[0009] In the target virtual scene, moving the first virtual position from the current position to the target virtual position.
[0010] In a possible implementation manner, the method further includes:
[0011] During the process of moving the first virtual position from the current position to the target virtual position, obtaining a picture of the target virtual scene from the perspective corresponding to the first virtual position;
[0012] Outputting the picture through a visualization interface.
[0013] In a possible implementation manner, before moving the first virtual position from the current position to the target virtual position, the method further includes:
[0014] Judging whether the current position of the first virtual position is the same as the target virtual position;
[0015] If they are inconsistent, execute the step of moving the first virtual machine position from the current position to the target virtual position.
[0016] In a possible implementation manner, the determining the first shooting position corresponding to the first video frame includes:
[0017] Search for a preset clip schedule according to the shooting time of the first video frame, where the clip schedule includes the corresponding relationship between the shooting period of the clip video segment and the shooting position of the clip video segment, and obtain the first clip video segment to which the first video frame belongs;
[0018] Determine the shooting position of the first clip video segment as the first shooting position corresponding to the first video frame.
[0019] In a possible implementation manner, the determining the target virtual position corresponding to the first virtual machine position in the virtual scene includes:
[0020] Obtain the first movement trajectory of the first virtual machine position in the target virtual scene that has been constructed, where the first movement trajectory is constructed based on the movement trajectory of the first shooting position during the shooting process of the target video;
[0021] Based on the first movement trajectory and the shooting time of the first video frame, determine the target virtual position corresponding to the first virtual machine position in the target virtual scene.
[0022] In a possible implementation manner, the method further includes:
[0023] For the first shooting position corresponding to the target video, in response to the received movement operation, move the first virtual machine position corresponding to the first shooting position in the target virtual scene, and record the first movement trajectory of the first virtual machine position in the target virtual scene.
[0024] In a second aspect, an embodiment of the present invention provides a video shooting process replication device, and the device includes:
[0025] A playing module, configured to play a target video;
[0026] A first determination module, configured to determine the first shooting position corresponding to the first video frame during the playing of the target video, where the first video frame is the currently played video frame;
[0027] A second determination module, configured to determine the target virtual position corresponding to the first virtual machine position in the target virtual scene, where the target virtual scene is the virtual scene corresponding to the shooting scene of the target video, and the first virtual machine position is the virtual machine position corresponding to the first shooting position in the target virtual scene;
[0028] A moving module, configured to move the first virtual machine position from the current position to the target virtual position in the target virtual scene.
[0029] In a possible implementation manner, the apparatus further includes:
[0030] An acquisition module, configured to acquire a picture of the target virtual scene from the perspective corresponding to the first virtual machine position during the process of moving the first virtual machine position from the current position to the target virtual position;
[0031] An output module, configured to output the picture through a visualization interface.
[0032] In a possible implementation manner, the apparatus further includes:
[0033] A judgment module, configured to judge whether the current position of the first virtual machine position is consistent with the target virtual position;
[0034] An execution module, configured to, if the current position of the first virtual machine position is inconsistent with the target virtual position, execute the step of moving the first virtual machine position from the current position to the target virtual position.
[0035] In a possible implementation manner, the first determination module includes:
[0036] A search sub-module, configured to search for a preset clip schedule according to the shooting time of the first video frame, where the clip schedule includes the correspondence between the shooting period of the clip video segment and the shooting position of the clip video segment, so as to obtain the first clip video segment to which the first video frame belongs;
[0037] A determination sub-module, configured to determine the shooting position of the first clip video segment as the first shooting position corresponding to the first video frame.
[0038] In a possible implementation manner, the second determination module includes:
[0039] An acquisition sub-module, configured to acquire the first movement trajectory of the first virtual machine position in the target virtual scene that has been constructed, where the first movement trajectory is constructed based on the movement trajectory of the first shooting position during the shooting process of the target video;
[0040] A first determination sub-module, configured to determine the target virtual position corresponding to the first virtual machine position in the target virtual scene based on the first movement trajectory and the shooting time of the first video frame.
[0041] In a possible implementation manner, the apparatus further includes:
[0042] A recording module, for a first shooting position corresponding to the target video, in response to a received movement operation, moving a first virtual shooting position corresponding to the first shooting position in the target virtual scene, and recording a first movement trajectory of the first virtual shooting position in the target virtual scene.
[0043] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0044] A processor and a memory, the processor is configured to execute a reproduction program of a video shooting process stored in the memory to implement the video shooting process reproduction method according to any one of the first aspects.
[0045] In a fourth aspect, an embodiment of the present invention provides a storage medium, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the video shooting process reproduction method according to any one of the first aspects.
[0046] The technical solution provided by the embodiment of the present invention, by determining a first shooting position corresponding to a first video frame during the playback of the target video, where the first video frame is the currently played video frame; then, determining a target virtual position corresponding to the first virtual shooting position in the target virtual scene, where the target virtual scene is a virtual scene corresponding to the shooting scene of the target video, and the first virtual shooting position is a virtual shooting position corresponding to the first shooting position in the target virtual scene; in the target virtual scene, moving the first virtual shooting position from the current position to the target virtual position. By determining the shooting position of the current video frame during the playback of the target video, and determining the virtual shooting position in the virtual scene corresponding to the target video, and moving the virtual shooting position from the current position to the determined target virtual position, the shooting process of the current video frame is restored during the movement of the virtual shooting position, realizing that when playing a video in a scene, the corresponding shooting position can be switched in real time, thereby realizing the restoration of the video shooting process and improving the understandability of film and television teaching. Description of the Drawings
[0047] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present invention;
[0048] Figure 2 It is a flowchart of an embodiment of a video shooting process reproduction method provided by an embodiment of the present invention;
[0049] Figure 3 It is a flowchart of another embodiment of a video shooting process reproduction method provided by an embodiment of the present invention;
[0050] Figure 4The block diagram of an embodiment of a video shooting process replication device provided by an embodiment of the present invention;
[0051] Figure 5 The structural schematic diagram of an electronic device provided by an embodiment of the present invention. Specific embodiments
[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0053] See Figure 1 , which is a schematic diagram of an application scenario provided by an embodiment of the present invention.
[0054] As Figure 1 shown, the application scenario is a schematic diagram of the video shooting process replication process, including: virtual scene 100 and window 101. The virtual scene 100 is a virtual scene simulated according to the real shooting scene of the original video, and the virtual objects included therein can be simulated according to the objects in the real shooting scene. For example, the virtual scene 100 may include, but is not limited to: person 105, person 106, tables and chairs 107.
[0055] In the embodiments of the present invention, the same number of virtual camera positions as the number of shooting positions of the original video (i.e., the real camera positions used in the real shooting process) are set in the virtual scene 100. For example, virtual camera positions 102, 103, and 104 are set in the virtual scene 100. Moreover, the virtual camera positions 102, 103, and 104 can all move in the virtual scene 100 to obtain the images of the virtual scene 100 from different perspectives.
[0056] The window 101 is used to play the images from the perspectives corresponding to the virtual camera positions 102, 103, or 104.
[0057] Based on Figure 1 the application scenario shown in the example, when playing the original video and applying the technical solution provided by the present invention, it is possible to make the virtual camera positions 102, 103, or 104 move in the virtual scene 100 as the original video is played, so as to restore the movement process of each real camera position when shooting the original video. In this way, students learning video shooting can better understand the video shooting process.
[0058] The following further explains the method for replicating a video shooting process provided by the present invention with specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.
[0059] See Figure 2 , which is a flowchart of an embodiment of a method for replicating a video shooting process provided by an embodiment of the present invention. As Figure 2 shown, the process may include the following steps:
[0060] Step 201, play the target video.
[0061] Step 202, during the process of playing the above-mentioned target video, determine the first shooting position corresponding to the first video frame, where the first video frame is the currently played video frame.
[0062] The following provides a unified description of steps 201 and 202:
[0063] The above-mentioned target video refers to a completed video that has been shot and edited.
[0064] In practice, when playing the target video, the video playback software can play at the granularity of video frames, that is, after playing one video frame, the video playback software plays the next video frame.
[0065] In one embodiment, during the process of playing the above-mentioned target video, first determine the shooting position corresponding to the currently played video frame (hereinafter referred to as the first video frame for convenience of description). Here, the shooting position refers to the actual shooting position, and hereinafter referred to as the first shooting position for convenience of description).
[0066] Optionally, search for a preset editing schedule according to the shooting time of the above-mentioned first video frame. The editing schedule includes the corresponding relationship between the shooting time period of the edited video segment and the shooting position of the edited video segment, and obtain the first edited video segment to which the first video frame belongs. Then, determine the shooting position of the first edited video segment as the first shooting position corresponding to the first video frame.
[0067] For example, as shown in Table 1 below, it is an example of the above-mentioned preset editing schedule:
[0068] Table 1
[0069] Shooting position serial number Effective start time / min Effective end time / min 1 0 5 2 5 8 3 8 12 4 12 36 5 36 50 6 50 80
[0070] As can be seen from Table 1 above, each shooting position can correspond to a valid start time and a valid end time. Among them, the time period between the valid start time and the valid end time is the shooting time period of the edited video segment.
[0071] Based on the example in Table 1 above, assume that the shooting time of the first video frame, that is, the current time when the target video is being played, is the 6th minute. At this time, according to the shooting time of the first video frame, search for the preset clip schedule shown in Table 1 above. As can be seen from Table 1 above, the time period where the 6th minute is located is within the time period of 5 - 8 minutes, and the shooting camera position corresponding to this time period is the 2nd shooting camera position. Thus, it can be determined that the first shooting camera position corresponding to the first video frame is the 2nd shooting camera position.
[0072] Step 203: Determine the target virtual position corresponding to the first virtual camera position in the target virtual scene. The target virtual scene is the virtual scene corresponding to the shooting scene of the target video, and the first virtual camera position is the virtual camera position corresponding to the first shooting camera position in the target virtual scene.
[0073] In one embodiment, after determining the first shooting camera position corresponding to the first video frame in the target virtual scene, the target virtual position where the first virtual camera position is located when shooting the first video frame can be determined.
[0074] Specifically, first, obtain the first movement trajectory of the first virtual camera position in the target virtual scene. The first movement trajectory is constructed based on the movement trajectory of the first shooting camera position during the shooting process of the target video.
[0075] After that, based on the first movement trajectory and the shooting time of the first video frame, determine the target virtual position corresponding to the first virtual camera position in the target virtual scene.
[0076] As a possible implementation manner, when constructing the first movement trajectory of the first virtual camera position in the target virtual scene, for the first shooting camera position corresponding to the target video, in response to the received movement operation, move the first virtual camera position corresponding to the first shooting camera position in the target virtual scene, and record the first movement trajectory of the first virtual camera position in the target virtual scene.
[0077] Among them, in response to the received movement operation, it may include: Professional technicians, according to the pre-obtained movement trajectory of the first virtual camera position, move external devices such as a mouse or a joystick, so that the execution entity of the present invention can, in response to the received movement operation, move the first virtual camera position corresponding to the first shooting camera position in the target virtual scene, and record the first movement trajectory of the first virtual camera position in the target virtual scene.
[0078] Step 204: In the target virtual scene, move the first virtual camera position from the current position to the target virtual position.
[0079] In one embodiment, after determining the target virtual position of the first virtual machine position, moving the first virtual machine position from the current position to the target virtual position can restore the shooting process of each video frame when shooting the target video.
[0080] For ease of understanding the embodiments of the present invention, the following takes Figure 1 the application scenario shown as an example to specifically describe the embodiments of the present invention.
[0081] Suppose Figure 1 the virtual scene shown is the above-mentioned target virtual scene. When playing the target video, assume that now the second video frame of the target video is being played. By searching the preset time schedule, it can be determined that the corresponding shooting position of the second frame is the first shooting position, and the virtual machine position corresponding to the first shooting position in the target virtual scene is the virtual machine position 102.
[0082] Continue to assume that through the constructed movement trajectory of the virtual machine position 102 and the shooting time of the current second video frame, it is determined that point C in the figure is the target virtual position of the virtual machine position 102. Then, execute step 204 to move the virtual machine position 102 from the current position to point C. During the process of moving the virtual machine position 102 to point C in the figure, it is to restore the shooting process of the second video frame of the target video.
[0083] The technical solution provided by the embodiments of the present invention, during the process of playing the target video, determines the first shooting position corresponding to the first video frame, where the first video frame is the currently played video frame; then, determines the target virtual position corresponding to the first virtual machine position in the target virtual scene, where the target virtual scene is the virtual scene corresponding to the shooting scene of the target video, and the first virtual machine position is the virtual machine position corresponding to the first shooting position in the target virtual scene; in the target virtual scene, moves the first virtual machine position from the current position to the target virtual position. By determining the shooting position of the current video frame and the virtual machine position in the virtual scene corresponding to the target video during the process of playing the target video, and moving the virtual machine position from the current position to the determined target virtual position, the shooting process of the current video frame is restored during the movement of the virtual machine position, achieving the ability to switch the corresponding shooting position in real time when playing the video, thereby realizing the restoration of the video shooting process and improving the understandability of film and television teaching.
[0084] See Figure 3 , which is a flowchart of an embodiment of another method for replicating a video shooting process provided by the embodiments of the present invention. As Figure 3 shown, this process may include the following steps:
[0085] Step 301, play the target video.
[0086] Step 302: During the process of playing the above-mentioned target video, determine the first shooting position corresponding to the first video frame, where the first video frame is the currently played video frame.
[0087] Step 303: Determine the target virtual position corresponding to the first virtual position in the target virtual scene. The target virtual scene is the virtual scene corresponding to the shooting scene of the above-mentioned target video, and the first virtual position is the virtual position corresponding to the first shooting position in the above-mentioned target virtual scene.
[0088] Steps 301 to 303 have been described in detail in the above-mentioned steps 201 to 203, and will not be elaborated here.
[0089] Step 304: Determine whether the current position of the first virtual position is the same as the target virtual position. If so, execute Step 306; if not, execute Step 305.
[0090] Step 305: In the above-mentioned target virtual scene, move the first virtual position from the current position to the target virtual position, and then execute Step 307.
[0091] Step 306: After the above-mentioned first video frame is played, continue to play the next video frame, and use the next video frame as the first video frame to execute Step 302 until the last video frame of the above-mentioned target video is played, and the process ends.
[0092] The following provides a unified description of Steps 304 to 306:
[0093] In one embodiment, after determining the target virtual position of the first virtual position, it is possible to first determine whether the current position of the first virtual position is the same as the target virtual position. If they are the same, it means that the first video frame and the previous video frames belong to the same shooting time period, and at this time, the first virtual position can be for static shooting, so no movement operation needs to be performed on the first virtual position.
[0094] On the contrary, if the current position of the first virtual position is not the same as the target virtual position, move the first virtual position from the current position to the target virtual position.
[0095] After the above-mentioned first video frame is played, continue to play the next video frame, and use the next video frame as the first video frame to execute Step 302 until the last video frame of the above-mentioned target video is played.
[0096] Step 307: During the process of moving the first virtual position from the current position to the target virtual position, obtain the picture of the above-mentioned target virtual scene from the perspective corresponding to the first virtual position.
[0097] Step 308: Output the above-mentioned picture through the visualization interface.
[0098] The following is a unified description of Step 307 and Step 308:
[0099] Taking Figure 1 the application scenario shown as an example, during the process of the first virtual machine position (such as virtual machine position 102) moving from the current position to point C in the figure, the picture of the target virtual scene from the perspective corresponding to the first virtual machine position can be obtained. Then, through the visualization interface, such as Figure 1 the picture is output in window 101 shown. Through this kind of processing, while restoring the video shooting process, the virtual machine position can be switched in real time, and the picture from the perspective corresponding to the virtual machine position can be displayed, so as to facilitate students to more clearly understand the video shooting process and improve the understandability of teaching.
[0100] In the technical solution provided by the embodiment of the present invention, by determining whether the current position of the first virtual machine is the same as the target virtual position, if they are the same, then after the current video frame is played, the next video frame is played; if they are not the same, then the first virtual machine is moved from the current position to the target virtual position, and the picture of the target virtual scene from the perspective corresponding to the first virtual machine position is obtained, and the picture is output through the visualization interface. By judging whether to move the first virtual machine position, and during the process of moving the first virtual machine position to the target virtual machine position, obtaining the picture of the target virtual scene from the perspective corresponding to the first virtual machine position, so as to realize that when playing a video, the corresponding shooting position and the shooting picture of the virtual machine position can be switched in real time, thereby realizing the restoration of the video shooting process and improving the understandability of film and television teaching.
[0101] Refer to Figure 4 , which is a block diagram of an embodiment of a device for replicating a video shooting process provided by an embodiment of the present invention. As Figure 4 shown, the device may include:
[0102] A playing module 41, configured to play a target video;
[0103] A first determination module 42, configured to determine a first shooting position corresponding to a first video frame during the process of playing the target video, where the first video frame is the currently played video frame;
[0104] A second determination module 43, configured to determine a target virtual position corresponding to a first virtual machine position in a target virtual scene, where the target virtual scene is a virtual scene corresponding to the shooting scene of the target video, and the first virtual machine position is the virtual machine position corresponding to the first shooting position in the target virtual scene;
[0105] A moving module 44, configured to move the first virtual machine position from the current position to the target virtual position in the target virtual scene.
[0106] In a possible implementation, the apparatus further includes (not shown in the figure):
[0107] An acquisition module, configured to acquire a picture of the target virtual scene from the perspective corresponding to the first virtual machine position during the process of moving the first virtual machine position from the current position to the target virtual position;
[0108] An output module, configured to output the picture through a visualization interface.
[0109] In a possible implementation, the apparatus further includes (not shown in the figure):
[0110] A judgment module, configured to judge whether the current position of the first virtual machine position is consistent with the target virtual position;
[0111] An execution module, configured to execute the step of moving the first virtual machine position from the current position to the target virtual position if the current position of the first virtual machine position is inconsistent with the target virtual position.
[0112] In a possible implementation, the first determination module 42 includes:
[0113] A search sub-module, configured to search a preset clip schedule according to the shooting time of the first video frame, where the clip schedule includes the correspondence between the shooting period of the clip video segment and the shooting position of the clip video segment, so as to obtain the first clip video segment to which the first video frame belongs;
[0114] A determination sub-module, configured to determine the shooting position of the first clip video segment as the first shooting position corresponding to the first video frame.
[0115] In a possible implementation, the second determination module 43 includes:
[0116] An acquisition sub-module, configured to acquire the first movement trajectory of the first virtual machine position in the target virtual scene that has been constructed, where the first movement trajectory is constructed based on the movement trajectory of the first shooting position during the shooting process of the target video;
[0117] A first determination sub-module, configured to determine the target virtual position corresponding to the first virtual machine position in the target virtual scene based on the first movement trajectory and the shooting time of the first video frame.
[0118] In a possible implementation, the apparatus further includes (not shown in the figure):
[0119] A recording module, for a first shooting position corresponding to the target video, in response to a received movement operation, move a first virtual shooting position corresponding to the first shooting position in the target virtual scene, and record a first movement trajectory of the first virtual shooting position in the target virtual scene.
[0120] Figure 5 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 5 The illustrated electronic device 500 includes: at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. Each component in the electronic device 500 is coupled together through a bus system 505. It can be understood that the bus system 505 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 5 all kinds of buses are labeled as the bus system 505.
[0121] Among them, the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball, a touchpad, or a touch screen, etc.).
[0122] It can be understood that the memory 502 in the embodiments of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM). The memory 502 described herein is intended to include but not be limited to these and any other suitable types of memories.
[0123] In some embodiments, the memory 502 stores the following elements, executable units, or data structures, or subsets thereof, or extended sets thereof: an operating system 5021 and application programs 5022.
[0124] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., and is used to implement various basic services and process hardware-based tasks. The application programs 5022 include various application programs, such as a media player and a browser, etc., and are used to implement various application services. The program for implementing the method of the embodiments of the present invention can be included in the application programs 5022.
[0125] In the embodiments of the present invention, by invoking the programs or instructions stored in the memory 502, specifically, the programs or instructions stored in the application programs 5022, the processor 501 is used to execute the method steps provided by the method embodiments, for example, including:
[0126] Playing a target video;
[0127] During the playback of the target video, determine the first shooting position corresponding to the first video frame, where the first video frame is the currently played video frame;
[0128] Determine the target virtual position corresponding to the first virtual position in the target virtual scene, where the target virtual scene is the virtual scene corresponding to the shooting scene of the target video, and the first virtual position is the virtual position corresponding to the first shooting position in the target virtual scene;
[0129] In the target virtual scene, move the first virtual position from the current position to the target virtual position.
[0130] The method disclosed in the embodiments of the present invention above can be applied to or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. During implementation, the steps of the above method can be completed by the integrated logic circuit in hardware or instructions in software form in the processor 501. The above processor 501 may be a general-purpose processor, 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. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or by a combination of hardware and software units in the decoding processor. The software unit may be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. This storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and combines its hardware to complete the steps of the above method.
[0131] It can be understood that the embodiments described herein can be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application, or a combination thereof.
[0132] For software implementation, the technologies described herein can be implemented by units that execute the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented within the processor or externally to the processor.
[0133] The electronic device provided in this embodiment can be an electronic device as shown in Figure 5 and can execute all the steps of the replication method of the video shooting process as shown in Figure 2 - 3 to achieve the technical effects of the replication method of the video shooting process shown in Figure 2 - 3 For specific details, please refer to the relevant description in Figure 2 - 3 For the sake of brevity, it will not be elaborated here.
[0134] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium stores one or more programs. Among them, the storage medium can include volatile memory, such as random access memory; the memory can also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; the memory can also include a combination of the above types of memory.
[0135] When one or more programs in the storage medium can be executed by one or more processors, the replication method of the video shooting process executed on the replication device side of the video shooting process can be implemented.
[0136] The processor is used to execute the replication program of the video shooting process stored in the memory to implement the following steps of the replication method of the video shooting process executed on the replication device side of the video shooting process:
[0137] Play the target video;
[0138] During the process of playing the target video, determine the first shooting camera position corresponding to the first video frame, where the first video frame is the currently played video frame;
[0139] Determine the target virtual position corresponding to the first virtual camera position in the target virtual scene, where the target virtual scene is the virtual scene corresponding to the shooting scene of the target video, and the first virtual camera position is the virtual camera position corresponding to the first shooting camera position in the target virtual scene;
[0140] In the target virtual scene, move the first virtual camera position from the current position to the target virtual position.
[0141] Those skilled in the art should further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0142] The steps of the methods or algorithms described in combination with the embodiments disclosed herein can be implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the technical field.
[0143] The specific embodiments described above further elaborate on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for replicating a video shooting process, characterized in that, the method includes: Playing the target video; During the playback of the target video, determining a first shooting position corresponding to a first video frame, where the first video frame is the currently played video frame; Determining a target virtual position corresponding to a first virtual position in the target virtual scene, where the target virtual scene is a virtual scene corresponding to the shooting scene of the target video, and the first virtual position is the virtual position corresponding to the first shooting position in the target virtual scene; the target virtual positions involved in the shooting process of the target video are pre-built in the target virtual scene; In the target virtual scene, moving the first virtual position from the current position to the target virtual position; The determining of the target virtual position corresponding to the first virtual position in the target virtual scene includes: Obtaining a first movement trajectory of the first virtual position in the target virtual scene that has been constructed, where the first movement trajectory is constructed based on the movement trajectory of the first shooting position during the shooting process of the target video; Based on the first movement trajectory and the shooting time of the first video frame, determining the target virtual position corresponding to the first virtual position in the target virtual scene; The method further includes: For the first shooting position corresponding to the target video, in response to a received movement operation, moving the first virtual position corresponding to the first shooting position in the target virtual scene, and recording the first movement trajectory of the first virtual position in the target virtual scene.
2. The method according to claim 1, characterized in that, the method further includes: During the process of moving the first virtual position from the current position to the target virtual position, obtaining a picture of the target virtual scene from the perspective corresponding to the first virtual position; Outputting the picture through a visualization interface.
3. The method according to claim 1, characterized in that, Before moving the first virtual position from the current position to the target virtual position, the method further includes: Judging whether the current position of the first virtual position is the same as the target virtual position; If not, then performing the step of moving the first virtual position from the current position to the target virtual position.
4. The method according to claim 1, characterized in that, The determining of the first shooting position corresponding to the first video frame includes: Searching a preset editing schedule according to the shooting time of the first video frame, where the editing schedule includes the corresponding relationship between the shooting time period of the edited video segment and the shooting positions of the edited video segment, to obtain the first edited video segment to which the first video frame belongs; Determining the shooting position of the first edited video segment as the first shooting position corresponding to the first video frame.
5. A device for replicating a video shooting process, characterized in that, the device includes: A playing module for playing the target video; A first determining module for determining a first shooting position corresponding to a first video frame during the playback of the target video, where the first video frame is the currently played video frame; A second determination module, configured to determine a target virtual position corresponding to a first virtual machine position in a target virtual scene, where the target virtual scene is a virtual scene corresponding to a shooting scene of the target video, and the first virtual machine position is a virtual machine position corresponding to the first shooting position in the target virtual scene; the target virtual machine positions involved in the shooting process of the target video are pre-built in the target virtual scene; A movement module, configured to move the first virtual machine position from the current position to the target virtual position in the target virtual scene; The determination of the target virtual position corresponding to the first virtual machine position in the target virtual scene includes: Obtaining a first movement trajectory of the first virtual machine position in the target virtual scene that has been constructed, where the first movement trajectory is constructed based on a movement trajectory of the first shooting position during the shooting process of the target video; Determining the target virtual position corresponding to the first virtual machine position in the target virtual scene based on the first movement trajectory and the shooting time of the first video frame; A recording module, configured to, for the first shooting position corresponding to the target video, in response to a received movement operation, move the first virtual machine position corresponding to the first shooting position in the target virtual scene, and record the first movement trajectory of the first virtual machine position in the target virtual scene.
6. The apparatus according to claim 5, wherein, the apparatus further includes: An acquisition module, configured to acquire a picture of the target virtual scene from the perspective corresponding to the first virtual machine position during the process of moving the first virtual machine position from the current position to the target virtual position; An output module, configured to output the picture through a visualization interface.
7. An electronic device, wherein, it includes: A processor and a memory, where the processor is configured to execute a reproduction program of the video shooting process stored in the memory to implement the video shooting process reproduction method according to any one of claims 1 to 4.
8. A storage medium, wherein, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the video shooting process reproduction method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Camera device control method and device
CN108696697A
Live streaming scheme simulation design verification method
CN111711733A