Recording method, device and equipment and readable storage medium
Through the recording method and device of automatically configuring video streams, the problem of complex and error-prone traditional recording systems is solved, and an efficient and low-cost recording process is realized, and the recording preparation work is simplified.
Patent Information
- Application Number
- CN202411006969.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-22
AI Technical Summary
Traditional recording systems have a lot of configurations, which are prone to errors, which reduces recording efficiency and recording quality, especially when the camera IP address changes, requiring manual configuration, which increases the operating burden and recording cost.
By automatically connecting and configuring the source of the video stream, a recording method and device is provided, using electronic devices to identify the startup command, display the interface for selecting the recording mode, jump to the interface for determining the target video stream, and from the target after clicking the recording button The camera pulls the video stream to achieve a recording process without manual configuration.
To a great extent, it avoids configuration errors, saves time, improves recording efficiency and cost-effectiveness, and records courses through electronic devices such as interactive tablets, without the need to layout the recording host, simplifying recording preparation work.
Smart Images

Figure CN119011758A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of recording technology, and in particular to a recording method, device, equipment and readable storage medium. Background Art
[0002] Currently, many classrooms or conference rooms are equipped with recording systems. The recording system integrates and synchronously records the video and audio on site, thereby generating standardized streaming media files for external live broadcast, storage, post-editing, and on-demand playback.
[0003] The traditional recording system includes a recording host, a video acquisition device, an audio acquisition device, etc. The recording host obtains the video stream from the video acquisition device, obtains the audio stream from the audio acquisition device, and synthesizes the video stream and the audio stream to obtain a streaming media file. Usually, the recording system includes multiple video acquisition devices, such as teacher cameras, student cameras, blackboard cameras, etc. Among them, the teacher camera includes a teacher close-up camera and a teacher panoramic camera, and the student camera includes a student close-up camera and a student panoramic camera. Therefore, when deploying the recording system, it is necessary to manually configure each camera one by one so that the appropriate video stream can be pulled from the camera when recording the course. If the IP address of one or some cameras changes, it needs to be manually reconfigured.
[0004] Obviously, the above recording method has many complicated steps and is prone to errors, which greatly reduces the recording efficiency and quality. Summary of the invention
[0005] The embodiments of the present application provide a recording method, apparatus, device and readable storage medium, which automatically connect and configure the source of the video stream without the need for the user to manually configure each one, thereby avoiding configuration errors to a great extent and achieving the purpose of improving recording efficiency and recording quality.
[0006] In a first aspect, an embodiment of the present application provides a recording method, which is applied to an electronic device, and the method includes:
[0007] In response to the start instruction, configuring the sources of multiple video streams, where different video streams are provided by different cameras, and the multiple video streams are a collection of video streams required by multiple recording modes;
[0008] Displaying a first interface, wherein the first interface is used to select a target recording mode, and the screen layout of the streaming media file obtained in different recording modes is different;
[0009] In response to a selection operation of a target recording mode on the first interface, jumping to a second interface and determining a target video stream required for the target recording mode from the multiple video streams, the second interface being a screen layout for displaying the target recording mode;
[0010] In response to a click operation on the record button on the second interface, the target video stream is pulled from the target camera used to provide the target video stream to record the course according to the target recording mode.
[0011] In a second aspect, an embodiment of the present application provides a recording device, which is integrated in an electronic device, and includes:
[0012] A configuration module, configured to configure the sources of multiple video streams in response to a start instruction, where different video streams are provided by different cameras, and the multiple video streams are a collection of video streams required by multiple recording modes;
[0013] A display module, used to display a first interface, wherein the first interface is used to select a target recording mode, and the screen layout of the streaming media file obtained in different recording modes is different;
[0014] a processing module, configured to jump to a second interface and determine a target video stream required for the target recording mode from the multiple video streams in response to a selection operation of the target recording mode on the first interface, wherein the second interface is a screen layout for displaying the target recording mode;
[0015] A recording module is used to pull the target video stream from the target camera used to provide the target video stream in response to a click operation on the record button on the second interface, so as to record the course according to the target recording mode.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements the method described in the first aspect or various possible implementation methods of the first aspect.
[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the method described in the first aspect or various possible implementation methods of the first aspect.
[0018] In a fifth aspect, an embodiment of the present application provides a computer program product comprising a computing program, and when the computer program is executed by a processor, the method described in the first aspect or various possible implementation methods of the first aspect is implemented.
[0019] The recording method, device, equipment and readable storage medium provided by the embodiment of the present application, after the electronic device recognizes the start instruction, it configures the source of multiple video streams and displays the first interface, different video streams are provided by different cameras, and multiple video streams are a collection of video streams required for multiple recording modes. Multiple recording modes are displayed on the first interface for users to choose, and the screen layout of the streaming media files obtained under different recording modes is different. When the user selects the target recording mode, the electronic device jumps to the second interface to determine the target video stream from multiple video streams according to the target recording mode, and determines the target camera according to the target video stream. The second interface displays the screen layout corresponding to the target recording mode, which is convenient for the user to quickly determine whether the target recording mode is correct. When the user clicks the recording button on the second interface, the electronic device pulls the target video stream from the target camera and records the course. With this solution, the electronic device automatically connects and configures the source of the video stream, without the need for the user to manually configure one by one, which greatly avoids configuration errors, saves time and improves configuration efficiency. Moreover, by using electronic devices such as interactive tablets to record courses, there is no need to layout the recording and broadcasting host, so as to achieve the purpose of saving recording costs. In addition, by displaying the screen layout in the target recording mode on the second interface, the user can quickly determine whether the target recording mode is correct, thereby avoiding multiple attempts and achieving the purpose of improving recording efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 It is a flow chart of the traditional recording method;
[0022] Figure 2A It is a schematic diagram of a network architecture of the recording method provided in an embodiment of the present application;
[0023] Figure 2B is another network architecture diagram of the recording method provided in an embodiment of the present application;
[0024] Figure 2C It is another schematic diagram of a network architecture of the recording method provided in an embodiment of the present application;
[0025] Figure 3 is a flowchart of the recording method provided in an embodiment of the present application;
[0026] Figure 4A This is a schematic diagram of the first interface in the recording method provided in the embodiment of the present application.
[0027] Figure 4B is a schematic diagram of the second interface in the recording method provided in an embodiment of the present application;
[0028] Figure 5A is a schematic diagram of the second interface in the recording method provided in an embodiment of the present application;
[0029] Figure 5B is another schematic diagram of the second interface in the recording method provided in an embodiment of the present application;
[0030] Figure 5C is another schematic diagram of the second interface in the recording method provided in the embodiment of the present application;
[0031] Fig. 6A is a schematic diagram of the third interface in the recording method provided in the embodiment of the present application;
[0032] Figure 6B is another schematic diagram of the third interface in the recording method provided in the embodiment of the present application;
[0033] Figure 7 is a flowchart of the recording method provided in an embodiment of the present application;
[0034] Figure 8 A schematic diagram of a recording device provided in an embodiment of the present application;
[0035] Fig. 9 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In the traditional recording method, a recording and broadcasting host, as well as various supporting cameras and audio acquisition devices, must be deployed at the scene to be recorded. The camera and audio acquisition device are used to collect the video stream and audio stream of the scene respectively. The recording and broadcasting host synthesizes the video stream and audio stream to obtain a streaming media file.
[0037] However, professional recording systems are expensive, resulting in high recording costs. When deploying and installing the recording system, professional engineers are required to manually configure each camera to set each camera in the correct column so that the stream can be pulled correctly when recording the course. The configuration process is cumbersome, error-prone, and inflexible. Moreover, when the IP address of the camera changes, teachers or professionals need to reconfigure it before recording, which is also prone to errors.
[0038] Figure 1 It is a flow chart of the traditional recording method, which includes the following steps:
[0039] 101. Open the configuration interface.
[0040] For example, the configuration interface is opened through the display screen of the recording and broadcasting host. For another example, the recording and broadcasting host establishes a network connection with an electronic device such as a notebook or a teaching tablet, and the configuration interface is opened through the display screen of the electronic device.
[0041] 102. Manually connect each camera.
[0042] During the first deployment, engineers manually fill in the IP address of the camera corresponding to each video stream on the configuration interface. For example, the configuration interface displays multiple video streams such as teacher close-up, teacher panoramic view, student close-up, student panoramic view, and blackboard screen, as well as the IP address filling field for each video stream. The staff fills in the IP address of the teacher close-up camera, the IP address of the teacher panoramic camera, the IP address of the student close-up camera, the IP address of the student panoramic camera, the IP address of the blackboard camera, etc.
[0043] When the IP address of the camera changes or other events occur, before recording the course, the professional engineer or teacher will manually reconfigure each camera to the correct column.
[0044] 103. Manually configure the camera parameters.
[0045] After the IP address is filled in, the interface jumps to the parameter configuration interface. The engineer manually configures the parameters of each camera in the parameter configuration interface. The camera parameters include recording clarity, etc.
[0046] 104. Set the screen layout.
[0047] For example, an interface is provided for the user to select, and buttons or options such as picture-in-picture and dual-screen balance are displayed on the interface. The user selects the desired screen layout from them.
[0048] If the user wants to know whether the recording effect meets expectations, try to record a period of time to obtain a streaming media file, and play the streaming media file to confirm whether the recording effect meets expectations. A period of time is, for example, 1 minute, 40 seconds, etc., and the embodiment of the present application is not limited. If the recording effect meets expectations, formal recording begins. If the recording effect does not meet expectations, reset the screen layout. For example, the user expects picture-in-picture, but the actual selection is dual-screen balance. After finding that the recording effect is dual-screen balance, reset the screen layout. For another example, the user expects dual-screen balance to be the recording effect, and expects the left picture to be a teacher's close-up shot and the right picture to be a student's panoramic shot, but the actual effect is: the left picture is a teacher's panoramic shot, and the right picture is a student's close-up shot. Therefore, the user resets the screen layout by modifying the source of the video stream to set the left picture to the teacher's close-up shot and the right picture to the student's panoramic shot.
[0049] 105. Start recording the course.
[0050] Obviously, Figure 1 In the process shown, manually configuring each camera is error-prone and time-consuming, and the errors that occur include but are not limited to camera connection errors, improper layout selection, etc. For teachers who are not familiar with technical operations, the configuration process increases the burden of use and reduces teaching efficiency.
[0051] In addition, manually selecting the screen layout lacks flexibility and requires teachers to try different recording effects multiple times, which increases the complexity of the operation.
[0052] Based on this, the embodiments of the present application provide a recording method, apparatus, device and readable storage medium, which automatically connects and configures the source of the video stream without the need for the user to manually configure one by one, thereby avoiding configuration errors to a great extent and achieving the purpose of improving recording efficiency and recording quality. Moreover, by using electronic devices to record courses, there is no need to use a recording and broadcasting host, thereby achieving the purpose of saving recording costs. Moreover, the electronic device automatically connects to the camera and configures the parameters, without the need for the user to manually configure each camera one by one, saving preparation time before recording, and achieving the purpose of quickly starting course recording.
[0053] Figure 2A 1 is a schematic diagram of a network architecture of the recording method provided in an embodiment of the present application. The network architecture includes: an electronic device 11, a teacher panoramic camera 12, a teacher close-up camera 13, an audio acquisition device 14, a student panoramic camera 15, and a student close-up camera 16 in the same local area network. Optionally, the network architecture also includes an interactive TV 17, etc.
[0054] Please refer to Figure 2A , the electronic device 11 is, for example, an interactive tablet, a laptop or a desktop computer. The interactive tablet is also called a smart big screen, an all-in-one teaching machine, a touch-screen all-in-one machine, etc. The electronic device 11 has a built-in camera, or the electronic device 11 has a Universal Serial Bus (USB) interface, and the USB camera is connected to the electronic device 11 through the USB interface. The camera built into the electronic device 11 or connected through the USB interface is referred to as a local camera below. The teacher's panoramic camera 12, the teacher's close-up camera 13, the student's panoramic camera 15, the student's close-up camera 16 and other cameras are cameras independent of the electronic device 11. The teacher's panoramic camera 12, the teacher's close-up camera 13, the student's panoramic camera 15, and the student's close-up camera 16 are used to provide the teacher's panoramic video stream, the teacher's close-up video stream, the student's panoramic video stream, and the student's close-up video stream, respectively.
[0055] The number of local cameras can be one or two. For example, the electronic device 11 has a built-in panoramic camera. Since the electronic device 11 is facing the students, it can be used to provide a panoramic video stream for the students. For another example, the electronic device has two built-in cameras, namely a panoramic camera and a close-up camera, which are used to provide a panoramic video stream for the students and a close-up video stream for the students. For another example, the electronic device 11 has a built-in panoramic camera, and a close-up camera is inserted into the electronic device 11 via a USB interface. The built-in panoramic camera is used to provide a panoramic video stream for the students, and the camera inserted via the USB interface is used to provide a close-up video stream for the students.
[0056] Figure 2A In the illustrated scenario, the course recording software is deployed on the electronic device 11. After opening the course recording software, the electronic device 11 automatically establishes a network connection with each camera and configures each camera. Afterwards, when the user selects the target recording mode, the target video stream required for the target recording mode is determined, and the video stream is pulled from the target camera corresponding to the target video stream, and the audio stream is obtained from each audio acquisition device 14, and the video stream and the audio stream are synthesized to obtain a streaming media file.
[0057] Figure 2A In the example, there are student panoramic camera 15, student close-up camera 16 and local camera at the same time, and student panoramic camera 15 and student close-up camera 16 are used by default. That is to say, when the target video stream required by the target recording mode includes the student panoramic video stream and the student close-up video stream, the video stream is pulled from the student panoramic camera 15 and the student close-up camera 16. In addition, it is also possible to pull the stream from the local camera by default, which is not limited by the embodiments of the present application. This architecture can be understood as: electronic device + independent camera architecture.
[0058] Figure 2B is another network architecture diagram of the recording method provided in the embodiment of the present application. Figure 2A The difference is, Figure 2B The student panoramic camera 15 and the student close-up camera 16 are not set. In this case, when the target video stream required by the target recording mode includes the student panoramic video stream and the student close-up video stream, the video stream is pulled from the local camera. This architecture can be understood as: electronic device + independent camera + local camera architecture.
[0059] Figure 2C is another network architecture diagram of the recording method provided in the embodiment of the present application. Figure 2A and Figure 2B The difference is, Figure 2CThe network architecture shown also includes a recording and broadcasting host 18, which records the course. A local camera may or may not be set on the electronic device 11. The recording and broadcasting host does not need to pull the stream from the local camera. This architecture can be understood as: recording and broadcasting host + independent camera architecture.
[0060] The above Figure 2A and Figure 2B In the shown architecture, there is no need to set up a recording and broadcasting host. Instead, courses are recorded through electronic devices such as interactive tablets. This working mode of electronic devices is called independent mode. Figure 2C In the shown architecture, a recording and broadcasting host must be set up, and the electronic equipment cooperates with the recording and broadcasting host to record the course. This working mode of the electronic equipment is called the collaborative mode.
[0061] It should be noted that the devices and layouts included in the above network architectures do not constitute limitations on the embodiments of the present application. For example, in other optional solutions, the above network architectures also include blackboard cameras, etc. For example, Figure 2C The recording and broadcasting host is set in another location, etc.
[0062] Below, based on Figure 2A to Figure 2C The network architecture shown is used to describe the recording method described in the embodiment of the present application in detail. Figure 3 .
[0063] Figure 3 is a flowchart of a recording method provided in an embodiment of the present application. The execution subject of this embodiment is an electronic device. This embodiment includes:
[0064] 301. In response to a start instruction, configure sources of multiple video streams, where different video streams are provided by different cameras, and the multiple video streams are a collection of video streams required by multiple recording modes.
[0065] In an embodiment of the present application, a start instruction can be flexibly sent to an electronic device. For example, a user double-clicks the course recording software on the user interface of the electronic device to issue a start instruction. For another example, a physical button is set on the electronic device, and the user presses the physical button to issue a start instruction. The electronic device detects that the user presses the physical button, determines that the user wants to record the course, and therefore configures multiple sources of video streams to respond to the start instruction. In this way, course recording can be performed through a one-click start method, which significantly reduces the operating burden of teachers and improves the efficiency and quality of course recording.
[0066] In the embodiment of the present application, various devices in the network architecture, such as electronic devices, various cameras, and various audio acquisition devices, are in the same local area network, and different cameras are used to provide different video streams. For example, the teacher's panoramic camera is used to provide the teacher's panoramic video stream, the teacher's close-up camera is used to provide the teacher's close-up video stream, and the student's close-up camera is used to provide the student's close-up video stream.
[0067] After receiving the start-up instruction, the electronic device automatically scans the current target scene to identify the various cameras in the target scene and the local camera. Afterwards, the electronic device configures the source of multiple video streams according to the IP addresses of the cameras in the target scene and the local camera. For example, if the multiple video streams include a teacher close-up video stream, the electronic device fills the IP address of the teacher close-up camera into the corresponding column, so that when the target video stream includes the teacher close-up video stream, the electronic device pulls the stream according to the IP address of the teacher close-up camera.
[0068] It is understandable that the multiple video streams in the embodiments of the present application refer to the set of video streams required for multiple recording modes, and refer to the sum of the video streams provided by various cameras in the target scene. For example, if there are 8 cameras in the target scene, a total of 8 video streams can be provided, and the electronic device configures the source for each video stream. However, when recording a course, it is not required that all cameras work, but that some cameras work and the remaining cameras do not work. The video streams required for different recording modes are different. Which cameras work and which cameras do not work are specifically related to the target recording mode selected by the user. For example, the target recording mode is the micro-class mode, and the screen layout of the micro-class is the teacher and the courseware. The required video streams include the teacher's close-up video stream. Therefore, when the final course is recorded, only the teacher's close-up camera works, and the electronic device pulls the stream from the teacher's close-up camera.
[0069] 302. Display a first interface, where the first interface is used to select a target recording mode. The screen layout of the streaming media file obtained in different recording modes is different.
[0070] After the electronic device has configured various video stream sources, a first interface pops up, and the first interface displays multiple recording modes. For example, please refer to Figure 3 .
[0071] Figure 4A is a schematic diagram of the first interface in the recording method provided in the embodiment of the present application. Figure 4A The first interface displays the premium course mode, classroom recording mode, micro-course mode and custom mode, and prompts the user to "select a recording mode". Assuming that the user selects the premium course mode and confirms it, the target recording mode is the premium course mode.
[0072] 303. In response to the selection operation of the target recording mode on the first interface, jump to the second interface and determine the target video stream required by the target recording mode from the multiple video streams, the second interface is a screen layout displaying the target recording mode.
[0073] Please refer to Figure 4A Taking the target recording mode as the premium course mode as an example, after the user selects the premium course mode and clicks the "Confirm" button, the electronic device jumps to the second interface, which displays the screen layout corresponding to the premium course mode. By displaying the screen layout of the target recording mode, it is convenient for the user to intuitively and quickly determine whether the streaming media file obtained by the course to be recorded meets expectations, that is, it is convenient for the user to quickly determine whether the target recording mode is correct.
[0074] In the embodiment of the present application, the screen layout of the streaming media files obtained by different recording modes is different. For example, the teacher writes on the blackboard and lectures in front of the blackboard. If the target recording mode is the boutique course mode, when the streaming media file obtained by recording the course is played, there is a close-up of the teacher and the blackboard in the picture, and the background green screen is replaced with a preset background. During the course recording process, the teacher lectures in front of the green screen, and the electronic device generates the initial streaming media based on the pulled target video stream. Then, the background is removed from each image frame of the initial streaming media, and the background of each image frame is replaced with the preset background to obtain a streaming media file.
[0075] If the target recording mode is the classroom recording mode, when the streaming media file obtained by recording the course is played, the screen will include the teacher's close-up shot, the teacher's panoramic shot, the blackboard, the student's panoramic shot and the background during recording. Among them, the teacher's close-up shot and the teacher's panoramic shot will not be displayed at the same time.
[0076] The micro-class mode is also called the picture-in-picture mode. If the target recording mode is the micro-class mode, when the streaming media file obtained by recording the course is played, there are large and small pictures in the picture, the large picture occupies the entire screen, and the small picture is located at the upper right and lower right of the screen, etc., which is not limited by the embodiment of the present application. Among them, the large picture displays the courseware, and the small picture displays the close-up of the teacher. Optionally, there can be multiple small pictures, for example, there are two small pictures in total, one small picture displays the close-up of the teacher, and the other small picture displays the panoramic shot of the students.
[0077] Figure 4B is a schematic diagram of the second interface in the recording method provided in the embodiment of the present application. Figure 4B , the user interface displays the screen layout of the streaming media file in the micro-class mode, which includes a large screen and a small screen. Figure 4AThe user mistakenly selected the classroom recording mode, but the desired target recording mode was the micro-class mode. After jumping to the second interface, the user found that the screen layout was not picture-in-picture, so he returned to the first interface and reselected the target recording mode. Obviously, the embodiment of the present application provides a first interface for the user to select the recording mode, and the user jumps to the second interface after selecting the target recording mode, so that the teacher can quickly select the target recording mode and determine whether the recording effect meets expectations.
[0078] In an embodiment of the present application, when the target recording mode is a boutique course mode, a classroom recording mode, or a micro-course mode, the user clicks the recording button on the second interface to trigger the electronic device to automatically determine the target video stream required for the target recording mode from a variety of video streams. For example, the electronic device obtains a mapping table from the cloud, which is used to indicate the correspondence between the recording mode and the video stream required for the recording mode. The electronic device queries the mapping table according to the target recording mode to determine the target video stream required for the target recording mode from the multiple video streams. Afterwards, the electronic device determines the target camera based on the target video stream, pulls the target video stream from the target camera, and records the course based on the pulled target video stream.
[0079] For example, if the target recording mode is micro-class mode, the target cameras are found to be the teacher's close-up camera and the student's panoramic camera by querying the mapping table. Therefore, the electronic device pulls the video stream from the teacher's close-up camera and the student's panoramic camera, and simultaneously obtains the audio stream collected by the sound collection device, synthesizes the video stream and the audio stream, and thus obtains a streaming media file. When the streaming media file is played, the screen layout is picture-in-picture.
[0080] 304. In response to a click operation on a record button on the second interface, the target video stream is pulled from a target camera for providing the target video stream to record the course according to the target recording mode.
[0081] Based on the above, it can be seen that: in the embodiment of the present application, after the user presses the physical button to issue the start command, the configuration steps are automatically completed, and the user only needs to click the recording button to record, which significantly improves the intelligence and automation of course recording, makes the preparation work for recording courses more convenient and efficient, and greatly improves the user experience.
[0082] The recording method provided by the embodiment of the present application, after the electronic device recognizes the start instruction, configures the source of multiple video streams and displays the first interface, different video streams are provided by different cameras, and multiple video streams are a collection of video streams required for multiple recording modes. Multiple recording modes are displayed on the first interface for users to choose, and the screen layout of the streaming media files obtained under different recording modes is different. When the user selects the target recording mode, the electronic device jumps to the second interface to determine the target video stream from multiple video streams according to the target recording mode, and determines the target camera according to the target video stream. The second interface displays the screen layout corresponding to the target recording mode, which is convenient for users to quickly determine whether the target recording mode is correct. When the user clicks the recording button on the second interface, the electronic device pulls the target video stream from the target camera and records the course. With this solution, the electronic device automatically connects and configures the source of the video stream, without the need for the user to manually configure one by one, which greatly avoids configuration errors, saves time and improves configuration efficiency. Moreover, by using electronic devices such as interactive tablets to record courses, there is no need to layout the recording and broadcasting host, so as to achieve the purpose of saving recording costs. In addition, the screen layout under the target recording mode is displayed through the second interface, which is convenient for users to quickly determine whether the target recording mode is correct, avoiding multiple attempts by users, and achieving the purpose of improving recording efficiency.
[0083] Optionally, in the above embodiment, when the target recording mode is a custom mode, at least one reference mode is also displayed on the second interface for the user to select, and the at least one reference mode is, for example, a single-screen mode, a picture-in-picture mode, and a dual-screen balanced mode. After the user selects the target reference mode from at least one reference mode, the screen layout and sub-interface of the target reference mode are displayed on the second interface. Through the screen layout, the user can intuitively and quickly determine whether the recording effect meets expectations. For example, the user mistakenly selects dual-screen balanced, but the expected target reference mode is picture-in-picture. After the screen layout and sub-interface of the target reference mode are displayed on the second interface, the user finds that the screen layout is: half left screen and half right screen, rather than a large screen and a small screen. Therefore, the target reference mode is reselected from at least one reference mode.
[0084] In the embodiment of the present application, the user sets the source of the target video stream required by the target reference mode through the sub-interface. Figure 5A to Figure 5C .
[0085] Figure 5A This is a schematic diagram of the second interface in the recording method provided in the embodiment of the present application. Figure 5A, the target reference mode is single-screen mode, as described by the gray filled button in the figure. Through the sub-interface, it is found that the default video stream in single-screen mode is from the teacher's close-up, that is, the target video stream is the teacher's close-up video stream. Users can modify the target video stream through the drop-down menu. For example, change the target video stream to the student panoramic video stream, blackboard video stream, etc. Modifying the target video stream is also called switching the camera position.
[0086] Figure 5B This is another schematic diagram of the second interface in the recording method provided in the embodiment of the present application. Figure 5B , the target reference mode is the picture-in-picture mode, and the user can set the source of the target video stream and adjust the screen layout through the sub-interface. For example, in the current screen layout, the large screen is a close-up shot of the teacher, the small screen is a panoramic shot of the students, and the small screen is located in the upper right position of the large screen. The user clicks the drop-down menu button behind "Teacher Close-up" to adjust the content of the large screen to other content, such as courseware. Similarly, the user clicks the drop-down menu button behind "Student Panorama" to adjust the content of the small screen to a student close-up shot or other content. The user clicks the drop-down menu button below the small screen position to adjust the position of the small screen, for example, changing the position of the small screen to the upper left, lower left, etc.
[0087] Figure 5C This is another schematic diagram of the second interface in the recording method provided in the embodiment of the present application. Figure 5C , the target reference mode is the dual-screen balanced mode, and the user can set the source of the target video stream through the sub-interface. For example, in the current screen layout, the left screen is a close-up of the teacher, and the right screen is a panoramic shot of the students. The user clicks the drop-down menu button behind "Teacher Close-up" to adjust the content of the left screen to the student panoramic shot or other content; the user clicks the drop-down menu button behind "Student Panorama" to adjust the content of the right screen to the teacher panoramic shot or other content.
[0088] This solution provides a custom mode and a sub-interface for users to set, which facilitates flexible adjustment of the screen layout and target video stream, thereby achieving the purpose of customizing course recording.
[0089] Above Figure 5A to Figure 5C In the examples, how to adjust the screen layout and target video stream in custom mode is used as an example to illustrate. However, the embodiments of the present application are not limited thereto, and the screen layout can also be adjusted for the preset boutique course mode, classroom recording mode or micro-course mode. For example, when the target recording mode is Figure 3 When the high-quality course mode, classroom recording mode or micro-course mode is selected, the second interface also displays a sub-interface, and the user adjusts the screen layout and / or target video stream of the target recording mode through the sub-interface. For example, the default target video stream of the high-quality course mode is the teacher's close-up video stream, which can be adjusted to the teacher's panoramic video stream.
[0090] With this solution, when the second interface displays the screen layout of the preset recording mode, a sub-interface is simultaneously displayed for the user to adjust the screen layout or the target video stream, which is highly flexible and simple to operate.
[0091] Optionally, in the above embodiment, when the electronic device responds to the startup instruction and configures the sources of multiple video streams, in one mode, the electronic device responds to the startup instruction and scans the target scene to obtain the configuration information of each camera located in the target scene. Afterwards, the electronic device configures the sources of multiple video streams according to the configuration information of each camera.
[0092] Exemplarily, the electronic device and each camera in the target scene are independent devices, and the electronic device and each camera are located in the same local area network. The electronic device starts the multicast domain name service (Multicast Domain Name Server, mNDS) service to initiate a broadcast. After receiving the broadcast, each camera sends a response message carrying configuration information to the electronic device. The configuration information is used to indicate the IP address of the camera, the function of the camera, etc. The functions include teacher panoramic view, student close-up, etc.
[0093] After the electronic device receives the response message from each camera, it establishes a network connection with the corresponding camera and configures the camera to the corresponding column according to the configuration information. For example, after the electronic device receives the configuration information from the teacher's panoramic camera, it fills the IP address of the teacher's camera into the column corresponding to the teacher's panoramic video stream. In this way, when the target video stream required by the target recording mode includes the teacher's panoramic video stream, during the subsequent course recording process, the electronic device pulls the teacher's panoramic video stream from the teacher's panoramic camera according to the IP address.
[0094] In this way, there is no need to set up a recording and broadcasting host in the target scene. The camera is not the camera that comes with the electronic device, but a camera that is independent of the electronic device, as shown above. Figure 2A The architecture shown. The independent camera is, for example, a teacher panoramic camera, a teacher close-up camera, a student panoramic camera, etc., which is not limited by the embodiments of the present application. Obviously, in the independent mode, it is not necessary to use the local camera of the electronic device. The local camera includes a camera built into the electronic device and a camera connected through a USB interface.
[0095] With this solution, electronic devices cooperate with independent cameras in the target scene to record courses, without the need to set up a recording host, thus saving recording costs.
[0096] In another embodiment, the electronic device responds to the start instruction, scans the target scene to obtain the configuration information of each camera in the target scene, and searches the local to obtain the configuration information of the local camera. Afterwards, the electronic device configures the sources of multiple video streams according to the configuration information of each camera and the configuration information of the local camera.
[0097] Compared with the above method that does not require the use of local cameras, in this method, in addition to starting the mDNS service to initiate a broadcast to discover each camera in the target scene, establish a connection with each camera, and obtain the configuration information of each camera, the electronic device also searches for local cameras to obtain the configuration information of the local camera.
[0098] After the electronic device obtains the configuration information of each camera and the local camera in the target scene, it configures each camera to the corresponding column. For example, the electronic device has two built-in cameras, one is a panoramic camera and the other is a close-up camera. Since the electronic device is, for example, a teaching tablet, etc., facing the students. Therefore, there is no need to set up independent student panoramic cameras and student close-up cameras in the target scene, but the panoramic camera and close-up camera local to the electronic device are used to obtain the student panoramic video stream and the student close-up video stream respectively.
[0099] For another example, a panoramic camera is built into the electronic device, and a close-up camera is connected via USB. Similarly, there is no need to set up independent student panoramic cameras and student close-up cameras in the target scene, but the panoramic camera and close-up camera of the electronic device can be used to obtain the student panoramic video stream and the student close-up video stream respectively.
[0100] In this way, there is no need to set up a recording and broadcasting host in the target scene, and there is no need to set up independent student panoramic cameras and student close-up cameras. Figure 2B The independent camera is, for example, a teacher's panoramic camera or a teacher's close-up camera.
[0101] With this solution, electronic devices cooperate with local cameras and independent cameras in the target scene to record courses. There is no need to set up a recording host and cameras can be saved to a certain extent, thus achieving the purpose of saving recording costs.
[0102] Optionally, in the above embodiment, when the electronic device configures the sources of multiple video streams in response to the startup instruction, a third interface for the user to select a working mode is first displayed, and the working modes to be selected include independent mode and collaborative mode. Afterwards, when the user selects the independent mode from the third interface, the electronic device configures the sources of multiple video streams.
[0103] Fig. 6A This is a schematic diagram of the third interface in the recording method provided in the embodiment of the present application. Fig. 6A, the sources of the video sources on the third interface include the recording and broadcasting host and the custom video source. When the user selects the recording and broadcasting host and clicks the "Save and Use" button, it enters the collaborative mode. When the user selects the custom video source and clicks the "Save and Use" button, it enters the independent mode. The independent mode means that the course is recorded using an interactive tablet instead of a recording and broadcasting host, as mentioned above. Figure 2A and Figure 2B The architecture shown.
[0104] Collaborative mode means that the electronic device and the recording and broadcasting host work together to record the course, as described above. Figure 2C In the collaborative mode, the electronic device triggers the recording and broadcasting host to scan the cameras, establishes a network connection with each camera, and sets the camera to the corresponding column according to the configuration information of each camera to configure the source of multiple video streams.
[0105] With this solution, the user can flexibly select collaborative mode or independent mode through the display mode selection interface, which is intuitive and easy to operate.
[0106] Optionally, in an embodiment of the present application, the electronic device also sends a trigger instruction to the recording and broadcasting host in the target scene in response to the selection operation of the collaborative mode on the third interface, so as to trigger the recording and broadcasting host to configure multiple video stream sources according to each camera in the target scene, and the collaborative mode refers to the electronic device and the recording and broadcasting host working together to record the course.
[0107] Please refer to Fig. 6A , when the user selects the recording and broadcasting host and clicks the "Save and Use" button, the collaborative mode is entered. After that, the electronic device sends a trigger instruction to the recording and broadcasting host. For example, the electronic device interacts with the recording and broadcasting host through websocket, etc. After receiving the trigger instruction, the recording and broadcasting host starts the mDNS service to initiate a broadcast. After receiving the broadcast, each camera sends a response message carrying configuration information to the recording and broadcasting host. The configuration information is used to indicate the IP address of the camera, the function of the camera, etc. The functions include teacher panoramic view, student close-up, etc.
[0108] After receiving the response messages from each camera, the recording and broadcasting host establishes a network connection with the corresponding camera, and sends the configuration information to the electronic device through websocket, etc., and the electronic device configures the camera to the corresponding column according to the configuration information. For example, after the recording and broadcasting host receives the configuration information from the teacher's panoramic camera, it sends it to the electronic device through websocket, and the electronic device fills the IP address of the teacher's camera into the column corresponding to the teacher's panoramic video stream and sends it to the recording and broadcasting host. In this way, when the target video stream required by the target recording mode includes the teacher's panoramic video stream, during the subsequent course recording process, the recording and broadcasting host pulls the teacher's panoramic video stream from the teacher's panoramic camera according to the IP address.
[0109] In the embodiment of the present application, a pop-up window is displayed during the first deployment of the recording system. Fig. 6A The interface shown allows users to select the working mode, that is, to select independent mode or collaborative mode. After that, no pop-up window will appear every time the user starts recording a course. Fig. 6A The interface shown is for users to select the working mode, but the default working mode is the last selected. If the user wants to switch the working mode, enter and modify the working mode from the main interface of the course recording software.
[0110] This solution allows courses to be recorded in collaborative mode, thereby achieving compatibility between independent mode and collaborative mode.
[0111] Optionally, in the above embodiment, in response to the selection operation of the independent mode on the third interface, the electronic device configures the sources of multiple video streams according to the cameras in the target scene and the local camera, and further displays the sources of the multiple video streams on the third interface. Thereafter, in response to the selection operation of the first video stream on the third interface, the source of the first video stream is modified.
[0112] Figure 6B This is another schematic diagram of the third interface in the recording method provided in the embodiment of the present application. Fig. 6A and 6B , the user selects the custom video source, that is, the user selects the independent mode, clicks the "Save and Use" button, and the electronic device automatically sets each camera to the corresponding column and jumps to Figure 6B The interface shown in FIG. 1 shows the source of each video stream. Through this interface, the user can know the source of each video stream. If the user wants to modify the source of the first video stream, the user selects the first video stream and modifies the IP address. The first video stream is any one of the multiple video streams. For example, if the first video stream is a teacher close-up video stream, the user modifies the IP address after "teacher close-up" to achieve the purpose of modifying the source of the first video stream.
[0113] Similarly, if the user passes Fig. 6A Select the recording and broadcasting host in the interface shown, that is, select the collaborative mode, click the "Save and Use" button, and the electronic device triggers the recording and broadcasting host to automatically set each camera to the corresponding column, and then jump to Figure 6B The interface shown. Users can modify the sources of various video streams in the collaborative mode in this interface. After modification, when recording a course, the recording and broadcasting host pulls the stream according to the modified IP address.
[0114] It is understandable that modifying the source of the first video stream is different from modifying the target video stream. The first video stream is any one of a plurality of video streams, and modifying the source of the video stream refers to modifying the IP address corresponding to the video stream, such as Figure 6B Modifying the target video means changing the target video stream from video stream A to video stream B, and the sources of video stream A and video stream B, that is, the IP addresses, do not change.
[0115] With this solution, users can modify the sources of various video streams through the third interface, which can adapt to various needs, has strong flexibility, and is simple to operate.
[0116] Below, the above recording method is described in detail by taking the working mode as independent mode, the target recording mode as boutique course mode, and the cameras in the target scene including the teacher close-up camera and the student panoramic camera as an example. Figure 7 , Figure 7 is a flow chart of the recording method provided in an embodiment of the present application. This embodiment includes:
[0117] 701. The electronic device recognizes a startup instruction.
[0118] The user opens the course recording software by pressing a physical button on the electronic device, double-clicking, etc. The electronic device recognizes the start command.
[0119] 702. Scan the target scene to obtain camera configuration information.
[0120] After the electronic device recognizes the start command, it starts the mDNS service to automatically scan the target scene to obtain the configuration information of the teacher's close-up camera and the student's panoramic camera.
[0121] 703. Configure multiple video stream sources.
[0122] In this embodiment, since there are only two cameras in the target scene, which are used to provide the teacher's close-up video stream and the student's panoramic video stream respectively, the electronic device sets the teacher's close-up camera and the student's panoramic camera to corresponding fields to configure the source of the teacher's close-up video stream and the source of the student's panoramic video stream.
[0123] 704. The electronic device automatically sets parameters of each camera.
[0124] In the embodiment of the present application, the parameters include recording clarity, etc., and the clarity is, for example, 1080P, 720P, etc., which is not limited in the embodiment of the present application. In one method, a school has many classrooms, and a clarity mapping table is uploaded to the cloud in advance, and the mapping table is used to indicate the recording clarity of each classroom. When recording a course, the electronic device obtains the clarity mapping table from the cloud, queries the mapping table according to the identification of the target scene, and sets the parameters of each camera according to the query results.
[0125] In another method, the electronic device obtains a definition mapping table locally and sets the parameters of each camera according to the query result.
[0126] In yet another embodiment, the electronic device sets the parameters of each camera to default values.
[0127] It should be noted that the above steps 702 to 704 are not noticeable to the user. From the user's perspective, after the user sends a startup cabinet instruction to the electronic device, the electronic device displays the first interface.
[0128] 705 . Display a first interface, where the first interface is used to select a target recording mode. The screen layout of the streaming media file obtained in different recording modes is different.
[0129] 706. The user selects the premium course mode.
[0130] 707. Jump to the second interface.
[0131] In step 706 and step 707, the user selects the premium course mode from a plurality of optional recording modes displayed on the first interface by clicking or the like. The electronic device responds to the user's selection operation of the premium course mode on the first interface and jumps to the second interface, which displays the screen layout of the premium course mode. In addition, the electronic device finds that the target video stream of the premium course mode is the teacher's close-up video stream and the student's panoramic video stream by looking up a table or the like. Correspondingly, the target camera is the teacher's close-up camera and the student's panoramic camera. Because it is the premium course mode, the electronic device also automatically configures the automatic cutout function.
[0132] 708. The user clicks the record button on the second interface.
[0133] 709. Start recording the course.
[0134] After the user clicks the record button, the electronic device responds to the click operation and pulls the teacher's close-up video stream and the student's panoramic video stream from the teacher's close-up camera and the student's panoramic camera respectively; at the same time, the audio stream is obtained from the audio acquisition device, and the teacher's close-up video stream, the student's panoramic video stream and the audio stream are synthesized to obtain the initial media stream. Afterwards, each image frame in the initial media stream is cut out to replace the background with a preset background.
[0135] The above focuses on how to quickly prepare for the next recording before recording. However, the embodiments of the present application are not limited. After starting recording, the user can also modify the target recording mode or modify the screen layout, target video stream, etc. of the target recording mode.
[0136] Optionally, in response to clicking the record button on the second interface, the target video stream is pulled from the target camera used to provide the target video stream to record the course in accordance with the target recording mode, and the first interface is also displayed. In response to the user's operation on the first interface to switch the target recording mode from the first mode to the second mode, the course is recorded in accordance with the second mode; or, the second interface and sub-interface are displayed, and in response to the operation on the sub-interface, the screen layout and target video stream of the target recording mode are adjusted, and the course is recorded according to the adjusted target recording mode.
[0137] Exemplarily, after a period of course recording, the user calls up the first interface, changes the target recording mode from the first mode to the second mode through the first interface, and continues recording the course. For example, the first mode is the boutique course mode. 20 minutes later, the teacher calls up the first interface on the display screen of the electronic device and selects the classroom recording mode. After that, the electronic device pops up a prompt box "Are you sure you want to use the classroom recording mode?" When the user clicks to confirm, the electronic device records the course in the classroom recording mode.
[0138] Similarly, after a period of course recording, the user calls up the second interface and modifies the screen layout and / or target video. For example, the screen layout of the target recording mode is picture-in-picture, with the large screen being the courseware and the small screen being the student panoramic shot. After a period of time, the teacher demonstrates the experiment. In order to clearly record the experimental process, the teacher calls up the second interface and modifies the video stream of the large screen to the teacher's close-up shot and the video stream of the small screen to the blackboard shot through the sub-interface.
[0139] This solution allows users to modify recording modes, screen layouts, etc. at any time by switching target recording modes, adjusting screen layouts and / or target video streams, etc. during class. It is highly flexible and easy to operate.
[0140] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0141] Figure 8 A schematic diagram of a recording device provided in an embodiment of the present application. The recording device 800 includes: a configuration module 81 , a display module 82 , a processing module 83 and a recording module 84 .
[0142] A configuration module 81, configured to configure the sources of multiple video streams in response to a start instruction, where different video streams are provided by different cameras, and the multiple video streams are a collection of video streams required by multiple recording modes;
[0143] A display module 82, used to display a first interface, wherein the first interface is used to select a target recording mode, and the screen layout of the streaming media file obtained in different recording modes is different;
[0144] The processing module 83 is used for jumping to the second interface and determining the target video stream required by the target recording mode from the multiple video streams in response to the selection operation of the target recording mode on the first interface, wherein the second interface is a screen layout for displaying the target recording mode;
[0145] The recording module 84 is used to pull the target video stream from the target camera used to provide the target video stream in response to a click operation on the record button on the second interface, so as to record the course according to the target recording mode.
[0146] In a feasible implementation, the configuration module 81 is used to respond to a startup instruction, scan the target scene to obtain the configuration information of each camera in the target scene, and search locally to obtain the configuration information of the local camera, and each camera in the target scene is independent of the electronic device; according to the configuration information of each camera and the configuration information of the local camera, configure the source of multiple video streams.
[0147] In a feasible implementation, the configuration module 81 is used to respond to a startup instruction, scan the target scene to obtain configuration information of each camera in the target scene, and each camera in the target scene is independent of the electronic device; and configure the source of multiple video streams according to the configuration information of each camera.
[0148] In a feasible implementation, the display module 82 is also used to display at least one reference mode on the second interface when the target recording mode is a custom mode before the recording module 84 responds to a click operation on the record button on the second interface and pulls the target video stream from the target camera used to provide the target video stream; in response to a user selecting a target reference mode among the at least one reference mode, display a screen layout and a sub-interface of the target reference mode on the second interface; and in response to a user operating the sub-interface, set the target video stream required for the target reference mode.
[0149] In a feasible implementation, the display module 82 is further used to display a third interface in response to a start instruction, and the third interface is used to select an operating mode of the electronic device;
[0150] The configuration module 81 is used to configure the sources of multiple video streams in response to the selection operation of the independent mode on the third interface, and the independent mode refers to recording the course through the electronic device.
[0151] In a feasible implementation, the processing module 83 is also used to send a trigger instruction to the recording and broadcasting host in the target scene in response to the selection operation of the collaborative mode on the third interface, so as to trigger the recording and broadcasting host to configure multiple video stream sources according to each camera in the target scene. The collaborative mode refers to the electronic device and the recording and broadcasting host working together to record the course.
[0152] In a feasible implementation, the display module 82 is further used to display the sources of the multiple video streams on the third interface after the configuration module 81 configures the sources of the multiple video streams in response to the selection operation of the independent mode on the third interface;
[0153] The processing module 83 is further configured to modify the source of the first video stream in response to a selection operation on the first video stream on the third interface.
[0154] In a feasible implementation, the display module 82 is further used to display the first interface after the recording module 84 pulls the target video stream from the target camera used to provide the target video stream in response to a click operation on the recording button on the second interface to record the course in accordance with the target recording mode, and the recording module 84 is further used to record the course in accordance with the second mode after the target recording mode is switched from the first mode to the second mode in response to the user's operation on the first interface;
[0155] or,
[0156] The display module 82 is also used to display the second interface after the recording module 84 responds to a click operation on the recording button on the second interface and pulls the target video stream from the target camera used to provide the target video stream to record the course according to the target recording mode. The recording module 84 is also used to record the course according to the adjusted target recording mode after adjusting the screen layout and target video stream of the target recording mode in response to an operation on the sub-interface.
[0157] The recording device provided in the embodiment of the present application can execute the actions of the electronic device in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0158] Fig. 9 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Fig. 9 The electronic device 900 described in the embodiment of the present application includes: at least one processor 91, at least one communication bus 92, a user interface 93, at least one network interface 94 and a memory 95.
[0159] The communication bus 92 is used to realize the connection and communication between these components.
[0160] The user interface 93 may include a display screen (Display) and a camera (Camera), and the optional user interface 93 may also include a standard wired interface and a wireless interface. The display screen is used to display an editing interface, a roaming interface, and the like.
[0161] The network interface 94 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0162] Among them, the processor 91 may include one or more processing cores. The processor 91 uses various interfaces and lines to connect various parts of the entire electronic device 900, and executes various functions and processes data of the electronic device 900 by running or executing instructions, programs, code sets or instruction sets stored in the memory 95, and calling data stored in the memory 95. Optionally, the processor 91 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 91 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for the rendering and drawing of the panoramic ball required to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 91, and it can be implemented separately through a chip.
[0163] Among them, the memory 95 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 95 includes a non-transitory computer-readable storage medium. The memory 95 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 95 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 95 may also be optionally at least one storage device located away from the aforementioned processor 91. As Fig. 9 As shown, the memory 95 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an operating application of the electronic device.
[0164] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the recording method implemented by the electronic device as above.
[0165] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the recording method implemented by the above electronic device.
[0166] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0167] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0168] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0169] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0170] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0171] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0172] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0173] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0174] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A recording method, It is characterized in that Applied to electronic equipment, the method comprises: In response to the start instruction, configuring the sources of multiple video streams, where different video streams are provided by different cameras, and the multiple video streams are a collection of video streams required by multiple recording modes; Displaying a first interface, wherein the first interface is used to select a target recording mode, and the screen layout of the streaming media file obtained in different recording modes is different; In response to a selection operation of a target recording mode on the first interface, jumping to a second interface and determining a target video stream required for the target recording mode from the multiple video streams, the second interface being a screen layout for displaying the target recording mode; In response to a click operation on the record button on the second interface, the target video stream is pulled from the target camera used to provide the target video stream to record the course according to the target recording mode.
2. The method according to claim 1, It is characterized in that In response to the start instruction, the sources of multiple video streams are configured, including: In response to the start instruction, scanning a target scene to obtain configuration information of each camera in the target scene, and searching a local area to obtain configuration information of the local camera, wherein each camera in the target scene is independent of the electronic device; According to the configuration information of each camera and the configuration information of the local camera, the sources of multiple video streams are configured.
3. The method according to claim 1, It is characterized in that In response to the start instruction, the sources of multiple video streams are configured, including: In response to the start instruction, scanning a target scene to obtain configuration information of each camera in the target scene, each camera in the target scene being independent of the electronic device; The sources of the multiple video streams are configured according to the configuration information of each camera.
4. The method according to claim 1, It is characterized in that Before the target video stream is pulled from the target camera for providing the target video stream in response to a click operation on the record button on the second interface, the method further includes: When the target recording mode is a custom mode, displaying at least one reference mode on the second interface; In response to a user selecting a target reference mode in the at least one reference mode, displaying a screen layout and a sub-interface of the target reference mode on the second interface; In response to the user's operation on the sub-interface, a target video stream required by the target reference mode is set.
5. The method according to any one of claims 1 to 4, It is characterized in that In response to the start instruction, the sources of multiple video streams are configured, including: In response to the start-up instruction, displaying a third interface, wherein the third interface is used to select an operating mode of the electronic device; In response to a selection operation of an independent mode on the third interface, multiple sources of video streams are configured, and the independent mode refers to recording courses through the electronic device.
6. The method according to claim 5, It is characterized in that Also includes: In response to the selection operation of the collaborative mode on the third interface, a trigger instruction is sent to the recording and broadcasting host in the target scene to trigger the recording and broadcasting host to configure multiple video stream sources according to each camera in the target scene. The collaborative mode refers to the electronic device and the recording and broadcasting host working together to record the course.
7. The method according to claim 5, It is characterized in that After configuring the sources of multiple video streams in response to the selection operation of the independent mode on the third interface, the method further includes: Displaying sources of the multiple video streams on the third interface; In response to a selection operation on the first video stream on the third interface, a source of the first video stream is modified.
8. The method according to any one of claims 1 to 4, It is characterized in that After the target video stream is pulled from the target camera for providing the target video stream in response to a click operation on the record button on the second interface to record the course in the target recording mode, the method further includes: Displaying the first interface, and in response to a user's operation on the first interface to switch the target recording mode from the first mode to the second mode, recording the course according to the second mode; or, The second interface and the sub-interface are displayed, and in response to the operation on the sub-interface, the screen layout and the target video stream of the target recording mode are adjusted, and the course is recorded according to the adjusted target recording mode.
9. A recording device, It is characterized in that The device is integrated on an electronic device, and comprises: A configuration module, configured to configure the sources of multiple video streams in response to a start instruction, where different video streams are provided by different cameras, and the multiple video streams are a collection of video streams required by multiple recording modes; A display module, used to display a first interface, wherein the first interface is used to select a target recording mode, and the screen layout of the streaming media file obtained in different recording modes is different; a processing module, configured to jump to a second interface and determine a target video stream required for the target recording mode from the multiple video streams in response to a selection operation of the target recording mode on the first interface, wherein the second interface is a screen layout for displaying the target recording mode; A recording module is used to pull the target video stream from the target camera used to provide the target video stream in response to a click operation on the record button on the second interface, so as to record the course according to the target recording mode.
10. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the electronic device implements the method according to any one of claims 1 to 8.
