Distributed broadcast directing method, device, electronic device and computer-readable storage medium

Through the distributed directing method, by comparing the priority information of the directing equipment, the target directing equipment is determined and its video stream is obtained, which solves the problem of low directing efficiency in traditional directing technology and achieves the effect of efficient directing screen acquisition and distributed computing resources. .

CN117998110BActive Publication Date: 2024-08-30GUANGZHOU KINDLINK SOFTWARE TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410123059.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-29
Publication Date
2024-08-30
Estimated Expiration
2044-01-29

AI Technical Summary

Technical Problem

Traditional broadcasting technology has high performance requirements for central nodes and consumes a large amount of computer resources, resulting in low efficiency in obtaining broadcasting images.

Method used

Through the distributed guidance method, the guidance object is observed based on the current guidance device, the priority information is obtained, the priority information is compared with the priority information of the candidate guidance device, the target guidance device is determined, and its video stream is obtained, which disperses computer resources and improves guidance efficiency.

Benefits of technology

It achieves accurate acquisition of the target video stream, disperses computer computing power, improves the acquisition efficiency and directing efficiency of the guide screen, and ensures the accurate push of the guide screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117998110B
    Figure CN117998110B
Patent Text Reader

Abstract

The present application relates to the field of computer technology, and discloses a distributed directing method, device, electronic device, and computer-readable storage medium, including: observing the directing object based on the current directing device, obtaining the first priority information corresponding to the directing object; determining the distributed directing network where the current directing device is located, and when the current directing device receives the second priority information sent by the candidate directing device in the distributed directing network, comparing the first priority information and the second priority information; determining the target priority information according to the comparison result, and determining the directing device corresponding to the target priority information as the target directing device; obtaining the target video stream corresponding to the target directing device, and playing the directing picture corresponding to the target video stream. The present application realizes the accurate acquisition of the target video stream, disperses the computing power of the computer, and greatly improves the acquisition efficiency and directing efficiency of the directing picture while ensuring the accurate push of the directing picture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a distributed directing method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the enrichment of people's entertainment life and the rapid development of the Internet, people can watch live broadcasts of events or activities thousands of miles away through the Internet without leaving their homes. When directing various competitions or activities, it is often necessary to observe the target through multiple cameras, and then select the pictures that the user is interested in for directing. How to determine the pictures that the end user is interested in, this process often consumes a lot of computing resources, and the efficiency of the final directing picture selection often determines the speed of directing picture transmission.

[0003] Traditional directing technology requires the monitor to display different camera video streams, and then manually or artificially calculate the screens that need to be directed. This solution requires the central node (monitor) to pull multiple video streams at the same time, and at the same time, the central node needs to make decisions on the directing screen. This method has high performance requirements for the central node and consumes more computer resources to achieve efficient video directing. As a result, it ultimately leads to the technical problem of low efficiency in obtaining directing screens. Summary of the invention

[0004] The embodiments of the present application provide a distributed directing method, device, electronic device and computer-readable storage medium, which can solve the technical problem of low efficiency in obtaining directing images.

[0005] The present application provides a distributed directing method, including:

[0006] Observe the directing object based on the current directing device, and obtain first priority information corresponding to the directing object;

[0007] Determine the distributed director network where the current director device is located, and when the current director device receives the second priority information sent by the candidate director device in the distributed director network, compare the first priority information with the second priority information, wherein the candidate director device is a device in the distributed director network other than the current director device;

[0008] Determine target priority information according to the comparison result, and determine the broadcast director device corresponding to the target priority information as the target broadcast director device;

[0009] Obtain the target video stream corresponding to the target broadcast director device, and play the broadcast director screen corresponding to the target video stream.

[0010] Further, the above-mentioned observing the directing object based on the current directing device to obtain the first priority information corresponding to the directing object includes:

[0011] Determine an observation area corresponding to the current broadcast director device, and select a broadcast director object of the current broadcast director device from the observation area;

[0012] Obtain a directing weight corresponding to the directing object, and generate first priority information corresponding to the directing object according to the directing weight.

[0013] Furthermore, the above-mentioned obtaining the broadcast director weight corresponding to the broadcast director object also includes:

[0014] Obtaining the area priority of the observation area and the weight information of the director object;

[0015] The directing weight of the directing object is calculated according to the area priority and the weight information.

[0016] Furthermore, the step of selecting the directing object of the current directing device from the observation area includes:

[0017] Obtain candidate weights corresponding to all candidate observation objects in the observation area;

[0018] The directing object of the current directing device is screened out from all the candidate observation objects according to the candidate weights.

[0019] Furthermore, the above-mentioned obtaining of the target video stream corresponding to the target broadcast director device includes:

[0020] Obtaining a network streaming address of the current director device in the distributed director network;

[0021] The target video stream corresponding to the target broadcast director device is obtained according to the network streaming address.

[0022] Furthermore, the above-mentioned obtaining the target video stream corresponding to the target broadcast director device according to the network streaming address includes:

[0023] Based on the network streaming address, the local streaming address of the target broadcast director device is referenced to the current broadcast director device;

[0024] The target video stream corresponding to the target broadcast director device is obtained through the network streaming address and the local streaming address.

[0025] Furthermore, the above-mentioned obtaining the target video stream corresponding to the target broadcast director device also includes:

[0026] Obtaining a preset waiting time of the current broadcast director device and a historical moment when the current broadcast director device obtained the previous video stream;

[0027] Calculate the difference between the current moment when the current broadcast director device obtains the target video stream and the historical moment, and determine whether the difference is equal to the preset waiting time;

[0028] When the difference is equal to the preset waiting time, the target video stream corresponding to the target broadcast director device is obtained.

[0029] Accordingly, an embodiment of the present application provides a distributed broadcast director device, including:

[0030] An observation module, used to observe the directing object based on the current directing device and obtain the first priority information corresponding to the directing object;

[0031] A comparison module, configured to determine the distributed director network in which the current director device is located, and compare the first priority information with the second priority information when the current director device receives the second priority information sent by the candidate director device in the distributed director network, wherein the candidate director device is a device in the distributed director network other than the current director device;

[0032] A confirmation module, used to determine the target priority information according to the comparison result, and determine the broadcast director device corresponding to the target priority information as the target broadcast director device;

[0033] The playback module is used to obtain the target video stream corresponding to the target director device and play the director picture corresponding to the target video stream.

[0034] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement the distributed directing method provided in the embodiment of the present application.

[0035] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any distributed directing method provided in the embodiment of the present application.

[0036] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements any distributed directing method provided in the embodiment of the present application.

[0037] In an embodiment of the present application, by observing the director object based on the current director device, the first priority information corresponding to the director object is obtained, so that the priority of the director object in the current director device can be accurately determined through the first priority information; then, the distributed director network where the current director device is located is determined, and when the current director device receives the second priority information sent by the candidate director device in the distributed director network, the first priority information and the second priority information are compared. The candidate director device is a device other than the current director device in the distributed director network, so that the priorities of different director devices in the distributed director network can be accurately compared on each director device, avoiding the director decision being concentrated in one device, thereby causing the resource overload of the device; then, the target priority information is determined according to the comparison result, and the director device corresponding to the target priority information is determined as the target director device; the target video stream corresponding to the target director device is obtained, and the director picture corresponding to the target video stream is played, thereby finally achieving the accurate acquisition of the target video stream, dispersing the computing power of the computer, and ensuring the accurate push of the director picture while greatly improving the acquisition efficiency of the director picture and the director efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] 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 those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 It is a flowchart of the distributed directing method provided by this application;

[0040] Figure 2 is a schematic diagram of a distributed broadcasting network provided in an embodiment of the present application;

[0041] Figure 3 is a flowchart of another embodiment of the distributed directing method provided by the present application;

[0042] Figure 4 It is a structural diagram of a distributed broadcast director device provided in an embodiment of the present application;

[0043] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0045] The embodiments of the present application provide a distributed broadcast directing method, device, electronic device and computer readable storage medium. The distributed broadcast directing device can be integrated in an electronic device, which can be a server or a terminal.

[0046] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.

[0047] The terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0048] In addition, the term "plurality" in the embodiments of the present application refers to two or more than two. The terms "first" and "second" in the embodiments of the present application are used to distinguish descriptions and should not be understood as implying relative importance.

[0049] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0050] See also Figure 1 , Figure 1 : is a flow chart of a distributed broadcast directing method provided by an embodiment of the present application. The distributed broadcast directing method may include:

[0051] S101. Observe a directing object based on a current directing device to obtain first priority information corresponding to the directing object.

[0052] In this embodiment, the current broadcast director device is a device with a camera function, and the broadcast director object can be observed by the current broadcast director device. Among them, the broadcast director object is the main observation object of the current broadcast director device, and the broadcast director object can be the observation target preset by the current broadcast director device. When the current broadcast director device captures the initial designated target, such as a football on the playground, a teacher in a classroom, and an actor on the stage, the area of ​​the preset observation range including the initial designated target will be used as the observation area of ​​the current broadcast director device. When determining the observation area of ​​the current broadcast director device, the preset observation target is obtained, and the observation target in the observation area is identified by an artificial intelligence detection algorithm, that is, the broadcast director object is obtained; and the broadcast director object is observed by the current broadcast director device. Specifically, the current broadcast director device can track the broadcast director object by controlling the motor of the current broadcast director device to rotate the pan-tilt head, and observe the broadcast director object based on the pan-tilt head. Then, the first priority information corresponding to the broadcast director object is obtained, and the first priority information is the broadcast screen playback priority information corresponding to the broadcast director object of the current broadcast director device. If the priority of the director object determined according to the first priority information is greater than the priority corresponding to the director object of other director devices, the director picture corresponding to the director object will be played first. The first priority information of the director object of the current director device can be determined by obtaining the weight information of the director object, wherein the weight information can be a pre-set weight value corresponding to the director object. Furthermore, when observing the director object based on the current director device, the director object can also be updated. Specifically, a preset update time is obtained, and when the update time is reached, the observation target of the current director device is re-acquired; then, the re-acquired observation target is detected in the observation area based on the detection algorithm to obtain an updated director object. When the updated director object is identified, the updated director object is observed based on the current director device.

[0053] S102. Determine the distributed director network where the current director device is located, and when the current director device receives the second priority information sent by the candidate director device in the distributed director network, compare the first priority information with the second priority information, wherein the candidate director device is a device in the distributed director network other than the current director device.

[0054] In this embodiment, the distributed broadcast director network is a pre-built broadcast director network, which includes multiple broadcast director devices. Figure 2 As shown, Figure 2 A distributed broadcasting network constructed for this application. Figure 2The distributed directing network includes 4 cameras and 1 monitor. The camera is a directing device. The directing object is observed through the camera. The directing screen is played through the monitor. In one embodiment, the distributed directing network may only include a directing device. The directing object can be observed through the directing device, and the directing screen can also be played. Figure 2 The rtsp (Real Time Streaming Protocol) stream is the video stream sent by other cameras, and the director code is the priority information of each camera.

[0055] In a distributed directing network, all directing devices other than the current directing device are regarded as candidate directing devices, and the priority information sent by the candidate directing device is the second priority information. The second priority information and the first priority information are both directing screen playback priority information corresponding to the directing object of the directing device. In this embodiment, the first and second priority information are used to distinguish the priority information sent by the current directing device and the candidate directing device. In the distributed directing network where the current directing device is located, each directing device sends priority information to each other, and a directing device will receive priority information sent by all directing devices except the current directing device in the distributed directing network. When the current directing device receives the second priority information sent by the candidate directing device in the distributed directing network, it compares the first priority information and the second priority information to obtain a comparison result. Among them, the first priority information and the second priority information can be obtained through the directing code (such as Figure 2 The director code is sent in the form of a director code), which is data reflecting the priority information. Furthermore, there are multiple candidate director devices. When the current director device obtains the second priority information, it will receive multiple second priority information. Therefore, when comparing the first priority information and the second priority information, the first priority information and the second priority information are compared in priority with each other, that is, the first priority information and each second priority information are compared in priority with each other, and the second priority information and the second priority information are also compared in priority with each other. Finally, by comparing all the priority information, the comparison result is obtained.

[0056] Furthermore, when the current director device receives the second priority information sent by the candidate director device in the distributed director network, the first priority information of the current director device will also be sent to the candidate director device in the distributed director network. The directors in the distributed director network send priority information to each other by broadcasting. When each director device receives the priority information sent by other directors in the distributed director network, each director device compares the received priority information with its own priority information, that is, each director device compares its own priority information with the priority information of all other directors in the distributed director network.

[0057] In addition, when there are multiple candidate director devices, the current director device may also only compare the second priority information of the pre-selected candidate director devices in pairs, and compare the pre-selected second priority information with the first priority information in pairs. In the distributed director network, each director device only compares the priority information of its pre-selected director devices in pairs, and compares the pre-selected priority information with its own priority information in pairs. For example, the current director device is device A in the distributed director network, and the candidate director devices include B, C, and D. The priority information of A and B is compared on the current director device A, and the priority information of B, C, and D is compared on the candidate director device B. Finally, the respective comparison results are sent to the director devices other than the two director devices in the distributed director network, and the director devices compare again based on the comparison results to determine the final target priority information.

[0058] S103. Determine target priority information according to the comparison result, and determine the broadcast director device corresponding to the target priority information as the target broadcast director device.

[0059] In this embodiment, the comparison result is the ranking of the priorities corresponding to all priority information. According to the ranking, the priority information corresponding to the maximum priority can be determined, and the priority information corresponding to the maximum priority is used as the target priority information. The director device corresponding to the target priority information is the target director device. For example, the current director device is device A in the distributed director network, and the candidate director devices include B, C, and D. All priority information of A, B, C, and D are compared on the current director device to determine that the priority information corresponding to the candidate director device D has the highest priority. The priority information corresponding to the candidate director device D is the target priority information, and the candidate director device D is the target director device.

[0060] S104: Obtain a target video stream corresponding to the target broadcast director device, and play a broadcast director screen corresponding to the target video stream.

[0061] In this embodiment, after the current broadcast director device determines the target broadcast director device according to the comparison result, the target video stream corresponding to the target broadcast director device is obtained, and the target video stream is the video stream of the target broadcast director device. Among them, the current broadcast director device is a device with a broadcast director screen playback function. Therefore, when the current broadcast director device receives the target video stream, the broadcast director screen corresponding to the target video stream can be directly played. Specifically, the broadcast director screen is a range screen that can be displayed by the current broadcast director device, and the observation area of ​​the current broadcast director device is a predetermined observation area. The broadcast director screen can change as the broadcast object moves in the observation area. Therefore, the broadcast director screen is not necessarily the same as the observation area corresponding to the current broadcast director device, and the range of the broadcast director screen is less than or equal to the observation area.

[0062] In addition, the director screen corresponding to the target video stream can also be played through other monitors. Specifically, after the current director device determines the target director device according to the comparison result, the target video stream corresponding to the target director device is obtained; then, the monitor actively pulls the target video stream to obtain the director screen corresponding to the target video stream, and plays the director screen on the monitor. The monitor can also send a video stream acquisition instruction to the current director device. When the current monitoring device receives the video stream acquisition instruction, the target video stream is pushed to the monitor according to the video stream acquisition instruction, so that the monitor plays the director screen corresponding to the target video stream.

[0063] This embodiment observes the director object based on the current director device to obtain the first priority information corresponding to the director object, so that the priority of the director object in the current director device can be accurately determined through the first priority information; then, the distributed director network where the current director device is located is determined, and when the current director device receives the second priority information sent by the candidate director device in the distributed director network, the first priority information and the second priority information are compared. The candidate director device is a device other than the current director device in the distributed director network, so that the priorities of different director devices in the distributed director network can be accurately compared on each director device, and the computer computing power is dispersed; then, the target priority information is determined according to the comparison result, and the director device corresponding to the target priority information is determined as the target director device; the target video stream corresponding to the target director device is obtained, and the director picture corresponding to the target video stream is played, so that the target video stream is accurately obtained, and the computer computing power is dispersed, while ensuring the accurate push of the director picture, the acquisition efficiency of the director picture and the director efficiency are greatly improved.

[0064] like Figure 3 As shown, Figure 3: is a flow chart of another embodiment of the distributed directing method provided by the present application. In some embodiments of the present application, the above-mentioned observation of the directing object based on the current directing device to obtain the first priority information corresponding to the directing object includes:

[0065] S301, determining an observation area corresponding to the current broadcast director device, and selecting a broadcast director object of the current broadcast director device from the observation area;

[0066] S302: Obtain a director weight corresponding to the director object, and generate first priority information corresponding to the director object according to the director weight.

[0067] In this embodiment, different directing devices correspond to different directing areas. The total observation area is acquired, and then the total observation area is divided into regions to obtain different observation areas. Different directing devices are assigned to different observation areas, and each directing device observes the observation area to which it belongs. The observation area corresponding to the current directing device is acquired, and the directing object of the current directing device is selected from the observation area. Specifically, the directing objects of different directing devices may be different. When determining the observation area corresponding to the current directing device, the candidate weights of all candidate observation objects in the observation area of ​​the current directing device are acquired; the candidate observation object corresponding to the largest candidate weight is used as the directing object of the current directing device. Among them, the candidate weight is the directing priority corresponding to each candidate observation object. In addition, the observation target preset by the current directing device in the observation area can also be acquired, and the preset observation target can be used as the directing object of the current directing device.

[0068] When the directing object of the current directing object is obtained, the directing weight of the directing object is obtained, and the directing order of each directing object can be determined by the directing weight. Specifically, the directing weight can be directly determined by the weight information of the directing object, and can also be calculated by the weight information of the directing object, the device priority of the current directing device, and the regional priority of the observation area corresponding to the current directing device. Among them, the weight information is the directing priority of the directing object, the device priority of the current directing device is the priority of the directing device itself, and the regional priority of the observation area corresponding to the current directing device is the position priority of the observation area. When the directing weight of the directing object is obtained, the first priority information corresponding to the directing object is generated according to the directing weight, such as a directing code reflecting the directing weight, or identification data.

[0069] This embodiment determines the observation area corresponding to the current director device, selects the director object of the current director device from the observation area; then, obtains the director weight corresponding to the director object, and generates the first priority information corresponding to the director object according to the director weight, thereby achieving accurate acquisition of the first priority information corresponding to the current director device, and further enables priority directing of the director objects with high priority.

[0070] In some embodiments of the present application, the obtaining of the directing weight corresponding to the directing object includes:

[0071] Obtaining the area priority of the observation area and the weight information of the director object;

[0072] The directing weight of the directing object is calculated according to the area priority and the weight information.

[0073] In this embodiment, the regional priority is the position priority of the observation area corresponding to the current director device. Among them, different directors are set at different positions in different observation areas, and the directors at different positions have different priorities. The priority of each director at different positions can be determined by the regional priority corresponding to each observation area. The weight information of the director object is the director priority information of the director object in the observation area of ​​the current director device, and different director objects correspond to different director priorities. The regional priority of the observation area and the weight information of the director object are obtained, and the director weight of the director object is calculated according to the regional priority and weight information. Specifically, when the regional priority of the observation area and the weight information of the director object are obtained, the regional priority and the weight information are weighted and summed to calculate the director weight corresponding to the director object of the current director device.

[0074] This embodiment obtains the regional priority of the observation area and the weight information of the director object, calculates the director weight of the director object according to the regional priority and weight information, thereby achieving accurate measurement of the director weight. Further, through the determined director weight, the content that the user is concerned about can be accurately displayed, making it more in line with actual needs.

[0075] In some embodiments of the present application, the step of selecting the directing object of the current directing device from the observation area includes:

[0076] Obtain candidate weights corresponding to all candidate observation objects in the observation area;

[0077] The directing object of the current directing device is screened out from all the candidate observation objects according to the candidate weights.

[0078] In this embodiment, the observation area includes multiple candidate observation objects. When determining the observation area corresponding to the current broadcast director device, the candidate weights of all candidate observation objects in the observation area are obtained. Among them, the candidate weight is a weight value pre-assigned to each candidate observation object, and the candidate weight can be determined by the broadcast priority of the candidate observation object. Specifically, the total observation area of ​​the target observation is determined, and the total observation area includes the observation area corresponding to multiple broadcast directors. All observation objects in the total observation area are obtained, and then the broadcast priorities of all observation objects are evaluated to obtain the weights corresponding to all observation objects in the total observation area; the candidate weights of the candidate observation objects in the observation area corresponding to the current broadcast director device are selected from the weights corresponding to all observation objects. Alternatively, when all candidate observation objects in the observation area of ​​the current broadcast director device are obtained, the mapping relationship between the observation object and the weight is obtained; and the candidate weights corresponding to each candidate observation object in the observation area of ​​the current broadcast director device are determined according to the mapping relationship. Among them, the mapping relationship between the observation object and the weight can be represented by a mapping curve or a mapping table. The candidate weight corresponding to the same candidate observation object may vary over time. For example, the candidate observation objects of the current director device include football and star A. At the first moment, the candidate weight of the football is 5, and the candidate weight of star A is 6; at the second moment, the candidate weight of the football is 8, and the candidate weight of star A is 3.

[0079] When the candidate weights of all candidate observation objects in the observation area are obtained, the director objects of the current director device are screened out from all candidate observation objects according to the candidate weights. Specifically, all candidate observation objects in the observation area are sorted according to the candidate weights to obtain a sorting sequence; and the director objects of the current director device are selected according to the position information of each candidate observation object in the sorting sequence. For example, the sorting sequence is a descending sequence, and the candidate observation object with the position information of the first position is selected from the descending sequence as the director object of the current director device. Among them, the observation areas of different director devices are different (but there may be overlapping areas), so the candidate observation objects of each director device may be different. When each director device screens out the director object from the candidate observation objects, the director objects obtained by each director device based on the candidate weights of the candidate observation objects and the same screening conditions may be different. In addition, the conditions for screening by each director device based on the candidate weights may also be different. For example, the current director device selects the candidate observation object ranked first from the sorting sequence as the director object, and another director device can select the candidate observation object with the target weight as the director object based on the candidate weights of the candidate observation objects in its candidate area.

[0080] This embodiment obtains the candidate weights corresponding to all candidate observation objects in the observation area; based on the candidate weights, the directing objects of the current directing device are screened out from all candidate observation objects, thereby achieving accurate screening of the directing objects of the current directing device, and further enabling different directing devices to correspond to different directing objects, thereby achieving all-round observation.

[0081] In some embodiments of the present application, the above-mentioned obtaining the target video stream corresponding to the target broadcast director device includes:

[0082] Obtaining a network streaming address of the current director device in the distributed director network;

[0083] The target video stream corresponding to the target broadcast director device is obtained according to the network streaming address.

[0084] In this embodiment, the target video stream corresponding to the target director device can be obtained through the network streaming address. Specifically, the network streaming address of the current director device in the distributed director network is obtained. Among them, the network streaming address is the address used by each director device to pull the video stream of other director devices, and the network streaming address can be allocated to each director device when the distributed director network is constructed. When the network streaming address of the current director device in the distributed director network is obtained, the target video stream corresponding to the target director device can be obtained according to the network streaming address. For example, the unique director identifier corresponding to the target director device is obtained through the network streaming address, and then the target video stream corresponding to the target director device is obtained from the target director device according to the unique director identifier.

[0085] This embodiment obtains the network streaming address of the current director device in the distributed director network; then, obtains the target video stream corresponding to the target director device according to the network streaming address, thereby achieving accurate acquisition of the target video stream corresponding to the target director device, and enables any director device in the distributed director network to acquire the target video stream, thereby achieving distributed computing power and further improving director efficiency.

[0086] In some embodiments of the present application, the above-mentioned obtaining the target video stream corresponding to the target broadcast director device according to the network streaming address includes:

[0087] Based on the network streaming address, the local streaming address of the target broadcast director device is referenced to the current broadcast director device;

[0088] The target video stream corresponding to the target broadcast director device is obtained through the network streaming address and the local streaming address.

[0089] In this embodiment, each director device has at least two streaming addresses, and different streaming addresses have different functions, such as a network streaming address and a local streaming address. The network streaming address is an address used to pull the video streams of other director devices, and the local streaming address is an address for each director device to stream its own director screen. Among them, the protocols used by each streaming address can be the same, such as the network streaming address and the local streaming address can both use the address of the rtsp protocol. Therefore, when the network streaming address of the current director device in the distributed director network is obtained, the local streaming address of the target director device is referenced to the current director device according to the network streaming address. The reference can be achieved by adding the local streaming address after the network streaming address of the current director device. Then, the target video stream corresponding to the target director device can be obtained through the network streaming address and the local streaming address.

[0090] This embodiment refers to the local streaming address of the target director device to the current director device based on the network streaming address; thereafter, the target video stream corresponding to the target director device is obtained through the network streaming address and the local streaming address, so that different director devices can accurately obtain the target video stream corresponding to the target director device, further improving the director efficiency.

[0091] In some embodiments of the present application, the obtaining of the target video stream corresponding to the target broadcast director device further includes:

[0092] Obtaining a preset waiting time of the current broadcast director device and a historical moment when the current broadcast director device obtained the previous video stream;

[0093] Calculate the difference between the current moment when the current broadcast director device obtains the target video stream and the historical moment, and determine whether the difference is equal to the preset waiting time;

[0094] When the difference is equal to the preset waiting time, the target video stream corresponding to the target broadcast director device is obtained.

[0095] In this embodiment, in order to avoid frequent switching of the director screen, or a certain director screen always occupies the highest director weight. When obtaining the target video stream corresponding to the target director device, obtain the preset waiting time of the current director device and the historical moment of the current director device. Specifically, the preset waiting time is the waiting time for the current director device to obtain the corresponding target video stream from the target director device each time, and the historical moment is the moment when the current director device obtains the previous video stream. Obtain the preset waiting time and the historical time, and observe the current moment when the current director device obtains the target video stream; calculate the difference between the current moment when the current director device obtains the target video stream and the historical moment, and determine whether the difference is equal to the preset waiting time. If the difference is equal to the preset waiting time, the target video stream corresponding to the target director device is obtained; if the difference is less than the preset waiting time, the current director device enters a waiting state and continues to observe the current moment until the difference between the current moment and the historical moment is equal to the preset waiting time; if the difference is greater than the preset waiting time, the historical moment at which the current director device obtained the previous video stream is reset, and the current moment is re-observed based on the reset historical moment.

[0096] Furthermore, the preset waiting time can also be used as the waiting time for the observation device to play based on the target video stream, wherein the observation device can be selected from multiple director devices in the distributed director network, such as selecting the current director device as the observation device; or a device with a screen playback function other than the multiple director devices can be used as the observation device. Each time the observation device plays based on the target video stream, it needs to wait for the preset waiting time, and then play the corresponding director screen based on the target video stream.

[0097] This embodiment obtains the preset waiting time of the current director device and the historical moment when the current director device obtains the previous video stream; then, determines whether the difference between the current moment and the historical moment when the current director device obtains the target video stream is equal to the preset waiting time; when the difference is equal to the preset waiting time, obtains the target video stream corresponding to the target director device, thereby achieving precise control of the playback of the director screen, avoiding frequent switching of the director screen, or a certain director screen always occupying the highest director weight, and further avoiding waste of equipment resources.

[0098] In order to better implement the distributed directing method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above distributed directing method. The meanings of the terms are the same as those in the above distributed directing method, and the specific implementation details can refer to the description in the method embodiment.

[0099] For example, Figure 4As shown, the distributed broadcasting device may include: an observation module 401, a comparison module 402, a confirmation module 403 and a playback module 404.

[0100] An observation module 401 is used to observe a directing object based on a current directing device and obtain first priority information corresponding to the directing object;

[0101] A comparison module 402 is used to determine the distributed director network where the current director device is located, and when the current director device receives the second priority information sent by the candidate director device in the distributed director network, compare the first priority information with the second priority information, wherein the candidate director device is a device in the distributed director network other than the current director device;

[0102] A confirmation module 403 is used to determine target priority information according to the comparison result, and determine the broadcast director device corresponding to the target priority information as the target broadcast director device;

[0103] The playing module 404 is used to obtain the target video stream corresponding to the target directing device and play the directing picture corresponding to the target video stream.

[0104] In one embodiment of the present application, the observation module 401 includes:

[0105] A selection unit, used to determine an observation area corresponding to the current broadcast director device, and select a broadcast director object of the current broadcast director device from the observation area;

[0106] A generating unit is used to obtain a directing weight corresponding to the directing object, and generate first priority information corresponding to the directing object according to the directing weight.

[0107] In one embodiment of the present application, the generating unit includes:

[0108] A first acquisition unit, configured to acquire the area priority of the observation area and the weight information of the director object;

[0109] A processing unit is used to calculate the directing weight of the directing object according to the regional priority and the weight information.

[0110] In one embodiment of the present application, the selection unit includes:

[0111] A second acquisition unit is used to acquire candidate weights corresponding to all candidate observation objects in the observation area;

[0112] A screening unit is used to screen out the directing object of the current directing device from all the candidate observation objects according to the candidate weights.

[0113] In one embodiment of the present application, the playing module 404 includes:

[0114] A third acquisition unit is used to acquire a network streaming address of the current director device in the distributed director network;

[0115] The fourth acquisition unit is used to acquire the target video stream corresponding to the target broadcast director device according to the network streaming address.

[0116] In an embodiment of the present application, the fourth obtaining unit includes:

[0117] A reference unit, configured to reference the local streaming address of the target broadcast director device to the current broadcast director device based on the network streaming address;

[0118] The fifth acquisition unit is used to acquire the target video stream corresponding to the target broadcast director device through the network streaming address and the local streaming address.

[0119] In an embodiment of the present application, the playing module 404 further includes:

[0120] A first acquisition subunit is used to acquire a preset waiting time of the current broadcast director device and a historical moment when the current broadcast director device acquires the previous video stream;

[0121] A confirmation subunit, configured to calculate a difference between a current moment when the current broadcast director device acquires the target video stream and the historical moment, and determine whether the difference is equal to the preset waiting time;

[0122] The second acquisition subunit is used to acquire the target video stream corresponding to the target broadcast director device when the difference is equal to the preset waiting time.

[0123] The distributed directing device proposed in this application realizes the accurate acquisition of the target video stream, disperses the computing power of the computer, and greatly improves the acquisition efficiency of the directing picture and the directing efficiency while ensuring the accurate push of the directing picture.

[0124] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0125] The present application also provides an electronic device, which may be a server or a terminal, etc. Figure 5 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:

[0126] The electronic device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0127] The processor 601 is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing computer programs and / or modules stored in the memory 602, and calling data stored in the memory 602. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0128] The memory 602 can be used to store computer programs and modules. The processor 601 executes various functional applications and data processing by running the computer programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0129] The electronic device also includes a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 603 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0130] The electronic device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0131] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 602 according to the following instructions, and the processor 601 will run the computer programs stored in the memory 602, thereby realizing various functions, such as:

[0132] Observe the directing object based on the current directing device, and obtain first priority information corresponding to the directing object;

[0133] Determine the distributed director network where the current director device is located, and when the current director device receives the second priority information sent by the candidate director device in the distributed director network, compare the first priority information with the second priority information, wherein the candidate director device is a device in the distributed director network other than the current director device;

[0134] Determine target priority information according to the comparison result, and determine the broadcast director device corresponding to the target priority information as the target broadcast director device;

[0135] Obtain the target video stream corresponding to the target broadcast director device, and play the broadcast director screen corresponding to the target video stream.

[0136] The electronic device proposed in this application realizes the accurate acquisition of the target video stream, disperses the computing power of the computer, and greatly improves the acquisition efficiency of the director's picture and the directing efficiency while ensuring the accurate push of the director's picture.

[0137] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the distributed directing method above, which will not be elaborated here.

[0138] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0139] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program can be loaded by a processor to execute the steps in any of the distributed directing methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:

[0140] Observe the directing object based on the current directing device, and obtain first priority information corresponding to the directing object;

[0141] Determine the distributed director network where the current director device is located, and when the current director device receives the second priority information sent by the candidate director device in the distributed director network, compare the first priority information with the second priority information, wherein the candidate director device is a device in the distributed director network other than the current director device;

[0142] Determine target priority information according to the comparison result, and determine the broadcast director device corresponding to the target priority information as the target broadcast director device;

[0143] Obtain the target video stream corresponding to the target broadcast director device, and play the broadcast director screen corresponding to the target video stream.

[0144] The computer-readable storage medium proposed in this application realizes the accurate acquisition of the target video stream, disperses the computing power of the computer, and greatly improves the acquisition efficiency of the director's picture and the directing efficiency while ensuring the accurate push of the director's picture.

[0145] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0146] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0147] Since the computer program stored in the computer-readable storage medium can execute the steps in any distributed directing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any distributed directing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0148] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned distributed directing method.

[0149] The above is a detailed introduction to a distributed directing method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A distributed directing method, characterized in that: include: Observing a directing object based on a current directing device, obtaining first priority information corresponding to the directing object, wherein the current directing device is a device with a camera function; Determine the distributed director network where the current director device is located, and when the current director device receives the second priority information sent by the candidate director device in the distributed director network, compare the first priority information and the second priority information through the current director device, and send the first priority information to the candidate director device in the distributed director, wherein the candidate director device is a device other than the current director device in the distributed director network, and the second priority information and the first priority information are both priority information for the playback of the director screen corresponding to the director object of the director device; Determine target priority information according to the comparison result through the current broadcast director device, and determine the broadcast director device corresponding to the target priority information as the target broadcast director device; Through the current broadcast director device, the target video stream corresponding to the target broadcast director device is obtained, and the broadcast director screen corresponding to the target video stream is played.

2. The distributed broadcast directing method according to claim 1, characterized in that: The observing the directing object based on the current directing device and acquiring first priority information corresponding to the directing object includes: Determine an observation area corresponding to the current broadcast director device, and select a broadcast director object of the current broadcast director device from the observation area; Obtain a directing weight corresponding to the directing object, and generate first priority information corresponding to the directing object according to the directing weight.

3. The distributed broadcast directing method according to claim 2, characterized in that: The obtaining the directing weight corresponding to the directing object includes: Obtaining the area priority of the observation area and the weight information of the director object; The directing weight of the directing object is calculated according to the area priority and the weight information.

4. The distributed broadcasting method according to claim 2, characterized in that: The selecting the directing object of the current directing device from the observation area includes: Obtain candidate weights corresponding to all candidate observation objects in the observation area; The directing object of the current directing device is screened out from all the candidate observation objects according to the candidate weights.

5. The distributed broadcast directing method according to claim 1, characterized in that: The obtaining of the target video stream corresponding to the target broadcast director device includes: Obtaining a network streaming address of the current director device in the distributed director network; The target video stream corresponding to the target broadcast director device is obtained according to the network streaming address.

6. The distributed broadcast directing method according to claim 5, characterized in that: The step of obtaining the target video stream corresponding to the target broadcast director device according to the network streaming address includes: Based on the network streaming address, the local streaming address of the target broadcast director device is referenced to the current broadcast director device; The target video stream corresponding to the target broadcast director device is obtained through the network streaming address and the local streaming address.

7. The distributed broadcast directing method according to claim 1, characterized in that: The step of obtaining the target video stream corresponding to the target broadcast director device further includes: Obtaining a preset waiting time of the current broadcast director device and a historical moment when the current broadcast director device obtained the previous video stream; Calculate the difference between the current moment when the current broadcast director device obtains the target video stream and the historical moment, and determine whether the difference is equal to the preset waiting time; When the difference is equal to the preset waiting time, the target video stream corresponding to the target broadcast director device is obtained.

8. A distributed broadcast director device, characterized in that: include: An observation module, used to observe a directing object based on a current directing device and obtain first priority information corresponding to the directing object, wherein the current directing device is a device with a camera function; A comparison module, used to determine the distributed director network where the current director device is located, and when the current director device receives the second priority information sent by the candidate director device in the distributed director network, the first priority information and the second priority information are compared by the current director device, and the first priority information is sent to the candidate director device in the distributed director, wherein the candidate director device is a device other than the current director device in the distributed director network, and the second priority information and the first priority information are both priority information of the director screen playback corresponding to the director object of the director device; A confirmation module, used to determine target priority information according to the comparison result through the current broadcast director device, and determine the broadcast director device corresponding to the target priority information as the target broadcast director device; The playback module is used to obtain the target video stream corresponding to the target broadcast director device through the current broadcast director device, and play the broadcast director screen corresponding to the target video stream.

9. An electronic device, characterized in that: It comprises a processor and a memory, the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the distributed directing method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the distributed directing method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Directing method, device, equipment, system and medium for video and audio programs

    CN114666457A