Shooting control method and device and storage medium

By encapsulating and sending control instructions in streaming text format when the first electronic device requests to control the second electronic device to collect media files, the problem of lack of unified protocol specifications in the prior art is solved, and convenient parameter control for camera devices with network connection functions is realized.

CN119865690APending Publication Date: 2025-04-22BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311360752.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The lack of unified protocol specifications in the prior art to realize parameter control of camera devices with network connection functions, resulting in users needing to select corresponding protocols for parameter control according to different needs.

Method used

Control of the shooting process is realized by determining and encapsulating the control command in which the control parameter is in the streaming text format when the first electronic device requests to control the second electronic device to collect the media file.

Benefits of technology

It provides a convenient and efficient way to control the second electronic device to collect media files, realizing direct control of the shooting process without the need to select corresponding protocols according to different needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865690A_ABST
    Figure CN119865690A_ABST
Patent Text Reader

Abstract

The invention relates to a shooting control method and device and a storage medium. The shooting control method comprises the steps that when first electronic equipment requests to control second electronic equipment to collect media files, control parameters are determined, and the control parameters are parameters for controlling the second electronic equipment to collect the media files; packaging the control parameter in a streaming media text format to obtain a control instruction in the streaming media text format; and sending the control instruction of the streaming media text format to the second electronic equipment. According to the method and the device, the shooting process can be directly controlled, and corresponding protocols do not need to be selected according to different requirements to execute parameter control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of network video monitoring and remote control, and in particular to a shooting control method, device and storage medium. Background Art

[0002] With the development of technology, video equipment with network connection function is becoming more and more widely used.

[0003] When using a camera device with network connection function, users usually need to adjust and control various parameters. These devices have a variety of adjustable parameters, such as focus, exposure, white balance, etc. By connecting to the network and using terminal devices such as computers, smartphones or tablets, users can remotely control and adjust these parameters. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a shooting control method, device and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a shooting control method, comprising:

[0006] When a first electronic device requests to control a second electronic device to collect media files, a control parameter is determined, where the control parameter is a parameter for controlling the second electronic device to collect media files; the control parameter is encapsulated in a streaming media text format to obtain a control instruction in a streaming media text format; and the control instruction in a streaming media text format is sent to the second electronic device.

[0007] In one embodiment, the control parameters are encapsulated in a streaming media text format to obtain control instructions in a streaming media text format, including: based on the control parameters, obtaining a parameter type, a parameter value, version information, and identification information that characterize the control parameters; converting the parameter type, the parameter value, the version information, and the identification information into text, and encapsulating them as content in a parameter setting method in a streaming media transmission protocol to obtain control instructions in a streaming media text format.

[0008] In one embodiment, the shooting control method involved in the embodiment of the present disclosure also includes: receiving response information sent by the second electronic device, the response information is encapsulated in a streaming text format, and is used to characterize the execution result of the second electronic device executing the control instruction, and the execution result includes a result characterizing the successful execution of the control instruction or a result characterizing the failure of the execution of the control instruction.

[0009] In one embodiment, in response to the execution result including a result representing the successful execution of the control instruction, the response information encapsulated in a streaming text format includes a first field, and the first field includes a first array representing the successful execution of the control instruction, or includes a second array for representing parameter information corresponding to the execution of the control instruction.

[0010] In one embodiment, in response to the execution result including a result indicating a failure to execute the control instruction, the response information encapsulated in a streaming text format includes a second field, and the second field includes a third array indicating a control instruction execution failure identifier and execution failure content.

[0011] In one implementation, the format of the control parameter is a JSON object format, and the streaming media text format is a format corresponding to the RTSP protocol.

[0012] According to a second aspect of an embodiment of the present disclosure, a shooting control device is provided, comprising a determination unit, for determining a control parameter when a first electronic device requests to control a second electronic device to collect media files, the control parameter being a parameter for controlling the second electronic device to collect media files; an encapsulation unit, for encapsulating the control parameter in a streaming media text format to obtain a control instruction in a streaming media text format; and a sending unit, for sending the control instruction in the streaming media text format to the second electronic device.

[0013] In one embodiment, the encapsulation unit encapsulates the control parameters in a streaming media text format in the following manner to obtain control instructions in a streaming media text format: based on the control parameters, obtain the parameter type, parameter value, version information and identification information that characterize the control parameters; convert the parameter type, the parameter value, the version information and the identification information into text, and encapsulate them as the content in the parameter setting method in the streaming media transmission protocol to obtain control instructions in a streaming media text format.

[0014] In one embodiment, the shooting control device involved in the embodiment of the present disclosure also includes: a receiving unit, used to receive response information sent by the second electronic device, the response information is encapsulated in a streaming text format, and is used to characterize the execution result of the second electronic device executing the control instruction, and the execution result includes a result characterizing the successful execution of the control instruction or a result characterizing the failure of the execution of the control instruction.

[0015] In one embodiment, in response to the execution result including a result representing the successful execution of the control instruction, the response information encapsulated in a streaming text format includes a first field, and the first field includes a first array representing the successful execution of the control instruction, or includes a second array for representing parameter information corresponding to the execution of the control instruction.

[0016] In one embodiment, in response to the execution result including a result indicating a failure to execute the control instruction, the response information encapsulated in a streaming text format includes a second field, and the second field includes a third array indicating a control instruction execution failure identifier and execution failure content.

[0017] In one implementation, the format of the control parameter is a JSON object format, and the streaming media text format is a format corresponding to the RTSP protocol.

[0018] According to a third aspect of an embodiment of the present disclosure, there is provided a shooting control device, including:

[0019] a processor; a memory for storing instructions executable by the processor;

[0020] The processor is configured to: execute the shooting control method described in the first aspect or any one of the embodiments of the first aspect.

[0021] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of a device, the device is enabled to execute the shooting control method described in the first aspect or any one of the embodiments of the first aspect.

[0022] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: providing a convenient and efficient way to control the second electronic device to collect media files, by determining and encapsulating control parameters as control instructions in streaming media text format, the first electronic device can directly send these instructions to the second electronic device. The present disclosure can realize the control of the shooting process without selecting the corresponding protocol to perform parameter control according to different requirements.

[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0025] Figure 1 The figure is a flowchart of a shooting control method according to an exemplary embodiment.

[0026] Figure 2 The present invention is a flowchart of determining a streaming media text format control instruction according to an exemplary embodiment.

[0027] Figure 3 The figure is a flowchart of a shooting control method according to an exemplary embodiment.

[0028] Figure 4 The figure is a flowchart of a shooting control method according to an exemplary embodiment.

[0029] Figure 5 is a block diagram of a shooting control device according to an exemplary embodiment.

[0030] Figure 6 is a block diagram of a shooting control device according to an exemplary embodiment. DETAILED DESCRIPTION

[0031] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.

[0032] The shooting control method provided by the embodiment of the present disclosure is applied to the shooting control scenario of a camera device with a network connection function. When using a camera device with a network connection function, users usually need to adjust and control various parameters. These devices have a variety of adjustable parameters, such as focal length, exposure, white balance, etc. By connecting to the network and using a terminal device such as a computer, a smart phone or a tablet computer, the user can remotely control and adjust these parameters.

[0033] However, there is no mature protocol specification for the parameter control of camera devices with network connection function. Therefore, in the relevant technology, a communication protocol specifically responsible for device parameter control is usually defined. When parameter control is required, the terminal needs to select the corresponding protocol to perform parameter control according to different requirements.

[0034] In the scenario of controlling the parameters of a camera device with a network connection function, two devices are usually involved. One of them plays the role of a camera, and the other plays the role of a monitor. For the convenience of description in the following embodiments of the present disclosure, the device playing the role of a monitor is referred to as the first device, and the device playing the role of a camera is referred to as the second device.

[0035] Figure 1 FIG. 1 is a flow chart of a shooting control method according to an exemplary embodiment. Figure 1As shown, the shooting control method is used in a terminal and includes the following steps.

[0036] In step S11, when the first electronic device requests to control the second electronic device to collect media files, a control parameter is determined, where the control parameter is a parameter for controlling the second electronic device to collect media files.

[0037] In the embodiment of the present disclosure, the parameters for controlling the second electronic device to collect media files refer to controlling the parameters of the second electronic device when collecting media files by setting specific parameters. These parameters may involve multiple aspects, including but not limited to: white balance, exposure, sensitivity (ISO) and other parameters.

[0038] In step S12, the control parameters are encapsulated in a streaming media text format to obtain a control instruction in a streaming media text format.

[0039] In the disclosed embodiment, the control parameters are combined and packaged in a specific streaming media text format to form a streaming media text format containing control instructions. Such control instructions can be sent to a corresponding device or system as a command or instruction to control its behavior, set its parameters or perform specific operations.

[0040] Among them, the streaming media text format is a specific data format, which is usually used to transmit audio, video or other multimedia data during network transmission. By encoding and encapsulating the control parameters in the streaming media text format, the control instructions can have a certain structure and markup, which is convenient for parsing and processing during the transmission process. Such control instructions in the streaming media text format can be parsed and recognized by the receiver, and then the corresponding operations are performed according to the control parameters therein, such as adjusting certain parameters of the device. By using a unified streaming media text format, interoperability between devices can be achieved, and remote control and configuration can be conveniently performed.

[0041] In step S13, a control instruction in a streaming media text format is sent to the second electronic device.

[0042] In the disclosed embodiment, the control instruction in the streaming media text format includes specific parameters and commands to ensure that the second electronic device can correctly perform the required operation.

[0043] In the related art, in order to achieve control over the shooting process, the terminal needs to select the corresponding protocol to perform parameter control according to different needs. In the embodiment of the present disclosure, when the first device requests to control the second device to collect media files, the control parameters are determined and encapsulated as instructions in a streaming text format, and then sent to the second device. It is understandable that in order to transmit the content captured by a camera device with a network connection function, the camera device with a network connection function usually supports some streaming protocols, such as: Real-time Streaming Protocol (RTSP) and the like. In the embodiment of the present disclosure, by encapsulating the control parameters as instructions in a streaming text format and sending them to the second device, direct control of the shooting process is achieved without the need to select a corresponding protocol to perform parameter control according to different needs.

[0044] Figure 2 FIG. 1 is a flow chart showing a method for determining a streaming media text format control instruction according to an exemplary embodiment. Figure 2 As shown, the method for determining streaming media text format control instructions includes the following steps.

[0045] In step S21, based on the control parameter, the parameter type, parameter value, version information and identification information characterizing the control parameter are obtained.

[0046] In the disclosed embodiment, the first device obtains information such as parameter type, parameter value, version information, and identification information based on the control parameter.

[0047] Among them, the parameter type is used to indicate the type or attribute of the parameter, which provides important clues about the classification and characteristics of the parameter. The parameter value represents a specific numerical value or setting, through which the first device can understand the specific value range and current setting of the parameter. Version information may include the version number of the control parameter and related update records, which helps the first device understand the historical evolution of the parameter and possible improvement directions. The identification information is used to identify a specific control parameter so that it can be independently identified and distinguished in the system.

[0048] In step S22, the parameter type, parameter value, version information and identification information are converted into plain text and encapsulated as the content of the parameter setting method in the streaming media transmission protocol to obtain a control instruction in the streaming media text format.

[0049] In the disclosed embodiment, in order to convert the parameter type, parameter value, version information and identification information into plain text form, the object parameter format should be considered when selecting the control parameter. This is because some parameter formats are plain text formats, which are suitable for use as a format for representing control parameters. For example: object representation (JSON object) format. Some parameter formats are binary formats, which are not suitable for use as formats for identifying control parameters.

[0050] In the disclosed embodiment, based on the control parameter, the type, parameter value, version information and identification information of the control parameter are converted into a plain text format and encapsulated into a control instruction in a streaming media text format. After encapsulation, the control parameter can be directly transmitted through the streaming media transmission protocol, without the need to select the corresponding protocol to perform parameter control according to different requirements.

[0051] Figure 3 FIG. 1 is a flow chart of a shooting control method according to an exemplary embodiment. Figure 3 As shown, the shooting control method is used in a terminal and includes the following steps.

[0052] In step S31, when the first electronic device requests to control the second electronic device to collect media files, a control parameter is determined, where the control parameter is a parameter for controlling the second electronic device to collect media files.

[0053] In step S32, the control parameters are encapsulated in a streaming media text format to obtain a control instruction in a streaming media text format.

[0054] In step S33, a control instruction in a streaming media text format is sent to the second electronic device.

[0055] Regarding the above steps in this embodiment, the specific method of performing the operation in each step has been described in the relevant Figure 1 The invention has been described in detail in the embodiments of the present invention and will not be described in detail here.

[0056] In step S34, response information sent by the second electronic device is received. The response information is encapsulated in a streaming media text format and is used to represent the execution result of the second electronic device executing the control instruction.

[0057] The response information is encapsulated in a streaming media text format. In other words, the response information is transmitted from the second electronic device to the first electronic device using a streaming media protocol.

[0058] In the disclosed embodiment, the response information sent by the second electronic device is transmitted to the first electronic device via the streaming media protocol. That is, when the second electronic device transmits the response information to the first electronic device, it is not necessary to perform parameter control according to other protocols, and the transmission of the response information can be completed by directly selecting the ready-made streaming media protocol. Therefore, through the disclosed embodiment, it is possible to directly control the shooting process and receive the response information without selecting the corresponding protocol to perform parameter control according to different needs.

[0059] It can be understood that, in order to indicate whether the control instruction is executed successfully, the response information sent by the second electronic device should include a field that can reflect whether the control instruction is executed successfully.

[0060] In one embodiment provided by the present disclosure, the response information encapsulated in the streaming media text format includes a first field, the first field includes a first array representing the successful execution of the control instruction, or includes a second array for representing parameter information corresponding to the execution of the control instruction.

[0061] The first field may include both a first array representing the successful execution of the control instruction and a second array representing parameter information corresponding to the execution of the control instruction. However, the first field may not include both the first array and the second array at the same time, because that would result in the field being unable to accurately represent the execution result of the control instruction.

[0062] In the disclosed embodiment, the instruction execution result feedback specification is as follows: if the control instruction is successfully executed, the instruction feedback will not include the "error" field, but must include the "result" or "results" field.

[0063] In another embodiment provided by the present disclosure, the response information encapsulated in the streaming media text format includes a second field, and the second field includes a third array representing a control instruction execution failure flag and execution failure content.

[0064] The second field needs to include both the control instruction execution failure flag and the execution failure content. If the third array in the second field does not include both the control instruction execution failure flag and the execution failure content, the field cannot accurately represent the execution result of the control instruction.

[0065] In the disclosed embodiment, the instruction execution result feedback specification is as follows: if the control instruction execution fails, the instruction feedback will not include the "result" field or the "results" field, but must include the "error" field.

[0066] Here, it is necessary to explain the meaning of the items that may appear in the instruction execution result feedback: "error" means: error, "result" / "results" means: result / results. In the instruction feedback, the "result" field contains one element, which is an array of fixed length. The "results" field contains multiple elements, each element is also an array of fixed length, and the array length and data type of these elements are determined by the second electronic device. The "error" field contains two elements, namely, error_code of integer type and error_message of string type, and its format is [error_code, error_message].

[0067] In the above embodiments, the format of the control parameters involved may be a JSON object format, and the format of the streaming media text involved may be a format corresponding to the RTSP protocol.

[0068] Figure 4 FIG. 1 is a flow chart of a shooting control method according to an exemplary embodiment. Figure 4 As shown, the shooting control method is used in a terminal and includes the following steps.

[0069] In step S41, when the first electronic device requests to control the second electronic device to collect media files, a control parameter is determined, where the control parameter is a parameter for controlling the second electronic device to collect media files, and the format of the control parameter is a JSON object.

[0070] For the convenience of description, the JSON object format is selected as the format of the control parameters in the embodiment of the present disclosure, and the streaming media text format is set to the format corresponding to the RTSP protocol. It should be clear that the selection in the embodiment of the present disclosure is only for the convenience of description, and does not limit the format of the control parameters to the JSON object format, or the streaming media text format to the format corresponding to the RTSP protocol.

[0071] In the embodiment of the present disclosure, the camera parameters are encapsulated by the following method: querying all parameters supported by the remote device in the format of JSON object, modifying one or more parameters in these JSON objects, converting the modified JSON object into text as the content of setting parameters (SET_PARAMETER) in the RTSP protocol and sending it to the second electronic device, the second electronic device parses the SET_PARAMETER request in the RTSP message and executes the corresponding application programming interface (API), and the second electronic device encapsulates the execution result of the API into JSON-RPC format text.

[0072] In step S42, the control parameters in the JSON object format are encapsulated in the RTSP text format to obtain a control instruction in the RTSP text format.

[0073] In the disclosed embodiment, since the RTSP protocol is a plain text protocol, the control instruction carrier is in plain text format. The control instruction is encapsulated in JSON object format. For each parameter, the control instruction contains the following information of the parameter: parameter type, parameter value, version information and identification information.

[0074] Specifically, in the control instruction, the "method" field corresponds to the parameter type of the parameter, the "params" field corresponds to the parameter value of the parameter, the "version" field corresponds to the version information of the parameter, and the "id" field corresponds to the identification information of the parameter.

[0075] The specifications of each field are as follows: the "method" field in the control instruction is determined by the implementation of the second electronic device, the length of the "params" field in the control instruction and the type of each element are determined by the second electronic device, and the control instruction must contain a "version" field. "version" is of string type (eg "1.0"), and the "id" field in the control instruction is of integer type ("0" is a reserved field and cannot be used). Its value range is 1-2147483647, that is, 0x00000001–0x7FFFFFFF.

[0076] In step S43, a control instruction in RTSP text format is sent to the second electronic device.

[0077] In the embodiment of the present disclosure, the first electronic device uses the SET_PARAMTER method in its standard protocol to send the control instruction.

[0078] Here, it is necessary to explain the process of the first electronic device sending the control instruction using the SET_PARAMETER method based on the RTSP protocol. The specific process is as follows:

[0079] The first electronic device establishes an RTSP session connection with the second electronic device. The first electronic device sends an option request (OPTIONS) to obtain a method list and protocol version information supported by the second electronic device.

[0080] The first electronic device sends a description request (DESCRIBE) to obtain information about a specific resource (eg, a video stream) on the second electronic device.

[0081] The first electronic device sends a setup request (SETUP) to establish a transmission channel. In the SETUP request, the first electronic device specifies the transmission protocol to be used (such as RTP / UDP, RTP / TCP, etc.) and allocates the corresponding port number. Once the setup is completed, the first electronic device can send a play request (PLAY) to start playing the media stream.

[0082] It is understandable that the RTSP protocol only transmits control instructions, not RTSP data. Therefore, in addition to specifying the communication protocol used to transmit control instructions as RTSP, the first electronic device must also specify the communication protocol used for RTSP data transmission. The transmission protocol for RTSP data transmission that is usually used in conjunction with the RTSP protocol is RTP / UDP or RTP / TCP.

[0083] The first electronic device sends a request to the second electronic device using the SET_PARAMETER method, specifies the parameter to be controlled and the corresponding parameter value, and waits for a response from the second electronic device.

[0084] In step S44, it is determined whether the control instruction is executed successfully.

[0085] If the control instruction is executed successfully, execute step S45.

[0086] In step S45, the response information encapsulated in the RTSP text format includes a first field, and the first field includes a first array representing that the control instruction is successfully executed, or includes a second array for representing parameter information corresponding to the execution of the control instruction.

[0087] If the control instruction is not executed successfully, step S46 is executed. In step S46, the response information encapsulated in the RTSP text format includes a second field, and the second field includes a third array representing the control instruction execution failure mark and the execution failure content. Among them, the second field needs to include the control instruction execution failure mark and the execution failure content. If the third array in the second field does not include the control instruction execution failure mark and the execution failure content at the same time, it will cause the field to be unable to accurately represent the execution result of the control instruction.

[0088] Regarding the above steps in this embodiment, the specific manner of performing the operation in each step has been described in detail in the above embodiments and will not be elaborated here.

[0089] Here, it is necessary to explain the meaning of the items that may appear in the instruction execution result feedback: "error" means: error, "result" / "results" means: result / results.

[0090] In the disclosed embodiment, the instruction execution result feedback specification is as follows: If the control instruction is successfully executed, the instruction feedback will not contain the "error" field, but must contain the "result" or "results" field. If the control instruction fails to execute, the instruction feedback will not contain the "result" field or the "results" field, but must contain the "error" field. In the instruction feedback, the "result" field contains one element, which is an array of a fixed length. The "results" field contains multiple elements, each element is also an array of a fixed length, and the array length and data type of these elements are determined by the second electronic device. The "error" field contains two elements, namely, an error_code of integer type and an error_message of string type, and its format is [error_code, error_message].

[0091] For ease of understanding, the present disclosure will now describe the above-mentioned shooting control method with examples.

[0092] Example: Implementation of remote control of white balance WB parameters in camera mode:

[0093]

[0094]

[0095] After executing step S45 or step S46, execute step S47. In step S47, receive the response information sent by the second electronic device, the response information is encapsulated in RTSP text format and used to represent the execution result of the second electronic device executing the control instruction.

[0096] In the embodiment of the present disclosure, the second device needs to determine whether the control instruction is executed successfully. On the one hand, if the control instruction is executed successfully, the second device includes a first field in the response information encapsulated in the RTSP text format. The field may include a first array for characterizing the successful execution of the control instruction, or a second array for representing the parameter information corresponding to the execution of the control instruction. On the other hand, if the control instruction is not successfully executed, the second device includes a second field in the response information encapsulated in the RTSP text format. The field includes a third array for characterizing the failure of the control instruction and the execution failure content. Regardless of whether the control instruction is executed successfully, the first device will receive the response information sent by the second electronic device, which is also encapsulated in the RTSP text format and used to characterize the execution result of the second electronic device executing the control instruction. In the embodiment of the present disclosure, when the first electronic device requests to control the second electronic device to collect media files, the second electronic device uses the camera parameter acquisition method (Camera.getParameters) to collect control parameters, and then encapsulates the control parameters into JSON object format, and waits for the first electronic device to request streaming playback through the RTSP protocol. The first electronic device requests streaming playback, and at the same time, the first electronic device sends a control instruction to the second electronic device to remotely control the second electronic device, such as adjusting parameters such as white balance, exposure, and ISO. After the second electronic device receives the control instruction, it performs the corresponding operation and feeds back the response information to the first electronic device. The response information is also encapsulated in the JSON object format and fed back to the first electronic device via the RTSP protocol. The response information is divided into two situations, one is the successful execution of the control instruction, and the other is the failure of the control instruction. But in either case, the response information is encapsulated in the JSON object format and sent via the RTSP protocol. At the same time, the control instruction is also encapsulated in the JSON object format and sent via the RTSP protocol. Therefore, during the entire shooting control process, the first electronic device can directly control the shooting process without having to select the corresponding protocol to perform parameter control according to different needs.

[0097] Based on the same concept, the embodiment of the present disclosure also provides a shooting control device.

[0098] It is understandable that in order to realize the above functions, the shooting control device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may 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 technical solution of the embodiment of the present disclosure.

[0099] Figure 5 is a block diagram of a shooting control device according to an exemplary embodiment. Figure 5 The shooting control device includes a determining unit 101, a packaging unit 102, a sending unit 103 and a receiving unit 104.

[0100] The determining unit 101 is configured to determine a control parameter when the first electronic device requests to control the second electronic device to collect media files. The control parameter is a parameter for controlling the second electronic device to collect media files.

[0101] The encapsulation unit 102 is used to encapsulate the control parameters in a streaming media text format to obtain a control instruction in a streaming media text format.

[0102] The sending unit 103 is used to send a control instruction in a streaming media text format to the second electronic device.

[0103] In one embodiment, the shooting control device also includes: a receiving unit 104, which is used to receive response information sent by the second electronic device, the response information is encapsulated in a streaming text format, and is used to represent the execution result of the second electronic device executing the control instruction, and the execution result includes a result representing the successful execution of the control instruction or a result representing the failure of the execution of the control instruction.

[0104] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0105] Figure 6 2 is a block diagram of a device 200 for shooting control according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0106] Reference Figure 6, the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0107] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.

[0108] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0109] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.

[0110] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0111] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.

[0112] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0113] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0114] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0115] In an exemplary embodiment, the apparatus 200 may be implemented by 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), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0116] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0117] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0118] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0119] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0120] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0121] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.

[0122] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A shooting control method, characterized in that: The method comprises: When the first electronic device requests to control the second electronic device to collect media files, determining a control parameter, where the control parameter is a parameter for controlling the second electronic device to collect media files; Encapsulating the control parameters in a streaming media text format to obtain a control instruction in a streaming media text format; Send the control instruction in the streaming media text format to the second electronic device.

2. The method according to claim 1, characterized in that The step of encapsulating the control parameters in a streaming media text format to obtain a control instruction in a streaming media text format includes: Based on the control parameter, obtaining parameter type, parameter value, version information and identification information characterizing the control parameter; The parameter type, the parameter value, the version information and the identification information are converted into text and encapsulated as the content in the parameter setting method in the streaming media transmission protocol to obtain a control instruction in a streaming media text format.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: Receive response information sent by the second electronic device, where the response information is encapsulated in a streaming text format and is used to characterize an execution result of the control instruction executed by the second electronic device, where the execution result includes a result characterizing a successful execution of the control instruction or a result characterizing a failed execution of the control instruction.

4. The method according to claim 3, characterized in that In response to the execution result including a result representing the successful execution of the control instruction, the response information encapsulated in the streaming text format includes a first field, and the first field includes a first array representing the successful execution of the control instruction, or includes a second array for representing parameter information corresponding to the execution of the control instruction.

5. The method according to claim 3, characterized in that: In response to the execution result including a result indicating the failure of execution of the control instruction, the response information encapsulated in the streaming media text format includes a second field, and the second field includes a third array indicating the failure of execution of the control instruction and the content of the failure of execution.

6. The method according to claim 1, characterized in that The format of the control parameter is JSON object format, and the streaming media text format is a format corresponding to the RTSP protocol.

7. A shooting control device, characterized in that: include: a determining unit, configured to determine a control parameter when the first electronic device requests to control the second electronic device to collect media files, wherein the control parameter is a parameter for controlling the second electronic device to collect media files; An encapsulation unit, used for encapsulating the control parameters in a streaming media text format to obtain a control instruction in a streaming media text format; A sending unit is used to send the control instruction in the streaming media text format to the second electronic device.

8. The shooting control device according to claim 7, characterized in that: The encapsulation unit encapsulates the control parameters in a streaming media text format to obtain a control instruction in a streaming media text format, Based on the control parameter, obtaining parameter type, parameter value, version information and identification information characterizing the control parameter; The parameter type, the parameter value, the version information and the identification information are converted into text and encapsulated as the content in the parameter setting method in the streaming media transmission protocol to obtain a control instruction in a streaming media text format.

9. The shooting control device according to claim 7 or 8, characterized in that: The shooting control device also includes: A receiving unit is used to receive response information sent by the second electronic device, where the response information is encapsulated in a streaming text format and is used to represent the execution result of the control instruction executed by the second electronic device, where the execution result includes a result representing the successful execution of the control instruction or a result representing the failed execution of the control instruction.

10. The shooting control device according to claim 9, characterized in that: In response to the execution result including a result representing the successful execution of the control instruction, the response information encapsulated in the streaming text format includes a first field, and the first field includes a first array representing the successful execution of the control instruction, or includes a second array for representing parameter information corresponding to the execution of the control instruction.

11. The shooting control device according to claim 9, characterized in that: In response to the execution result including a result indicating the failure of execution of the control instruction, the response information encapsulated in the streaming media text format includes a second field, and the second field includes a third array indicating the failure of execution of the control instruction and the content of the failure of execution.

12. The shooting control device according to claim 7, characterized in that: The format of the control parameter is JSON object format, and the streaming media text format is a format corresponding to the RTSP protocol.

13. A shooting control device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the shooting control method described in any one of claims 1 to 6.

14. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the shooting control method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Cell phone steering control system for shooting and monitoring by cell phone in real time and control method

    CN102801882A

  • Device control and channel restriction method, device and system based on RTSP protocol

    CN106686358A

  • Terminal control method and device

    CN107360472A

  • Camera mobile phone remote controlling system and method

    CN1705346A

  • Remote control for mobile communication terminal

    CN1758750A