Video round tour playing method and device, electronic equipment and storage medium

By acquiring and grouping videos in real time through a video polling server and determining playback priority based on hotspot values, the problem of insufficient real-time performance in existing video polling playback technologies is solved, enabling flexible and intelligent video playback management.

CN119906865BActive Publication Date: 2026-07-24CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2025-01-07
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

Existing video carousel playback technology lacks real-time performance, making it difficult to dynamically update the video playlist, thus affecting flexibility and intelligence.

Method used

Playback requests are initiated through a video polling server, videos are acquired and grouped in real time, playback priority is determined based on hotspot values, the video playlist is dynamically adjusted, and transcoding is used to adapt to different display devices.

Benefits of technology

It improves the real-time performance and flexibility of video carousel playback, and can dynamically adjust the playback order based on the latest data or events to meet users' needs for specific content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906865B_ABST
    Figure CN119906865B_ABST
Patent Text Reader

Abstract

The application provides a video round tour playing method and device, electronic equipment and storage medium, and relates to the technical field of video monitoring. The method comprises the following steps: in response to a playing request for indicating round tour playing of a video initiated by a video round tour server, and acquiring real-time video to be played in round tour indicated by the playing request. Then, a hot spot value corresponding to the real-time video is determined, and the playing priority of the real-time video is determined based on the hot spot value. Wherein, the hot spot value represents the degree of attention of the real-time video. Next, the real-time videos are sorted in descending order according to the playing priority, and a video playing list is obtained, and then the video playing list is sent to a target display device for round tour playing. The method of the application ensures the real-time performance of video round tour playing, and improves the flexibility and intelligence in the process of video round tour playing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of video surveillance technology, and in particular to a video loop playback method, apparatus, electronic device, and storage medium. Background Technology

[0002] Video carousel playback refers to the technology of playing multiple videos sequentially on a single screen. With the development of video cloud-related technologies, video carousel playback technology can be applied to various scenarios, such as security, education, healthcare, food hygiene, emergency management, and environmental protection.

[0003] Because the needs of different fields and industries vary, video carousel playback technology requires consideration of different strategies, priorities, and split-screen layouts when applied. Currently, traditional video carousel playback technology is usually decided and configured by the client itself. The client actively requests the video playlist from the server periodically and plays the videos in a carousel according to its internal code logic.

[0004] Therefore, the existing technology lacks real-time capability, making it difficult to dynamically update the video playlist, which in turn affects the flexibility and intelligence of video rotation playback. Summary of the Invention

[0005] This application provides a video rotation playback method, apparatus, electronic device, and storage medium to solve the technical problems of insufficient real-time performance, lack of flexibility and intelligence in existing video rotation playback.

[0006] Firstly, this application provides a method for video loop playback, including:

[0007] In response to a playback request initiated by a video polling server, the real-time video to be polled and played as indicated by the playback request is obtained; wherein, the playback request is used to indicate that the video is to be polled and played.

[0008] Determine the hotspot value corresponding to the real-time video, and determine the playback priority of the real-time video based on the hotspot value; wherein, the hotspot value represents the degree of attention the real-time video receives;

[0009] Based on the playback priority, the real-time videos are sorted in descending order to obtain a video playlist; the video playlist is then sent to the target display device for round-robin playback.

[0010] Optionally, determining the hotspot value corresponding to the real-time video and determining the playback priority of the real-time video based on the hotspot value includes:

[0011] The real-time videos are grouped according to preset rules to obtain multiple video combinations; the types of the multiple video combinations include alarm patrol groups, manual patrol groups, and automatic patrol groups.

[0012] Determine the hotspot value of the real-time video in the video combination; wherein, the hotspot value of the real-time video in the video combination of the alarm patrol group is greater than the hotspot value of the real-time video in the video combination of the manual patrol group, and the hotspot value of the real-time video in the video combination of the manual patrol group is greater than the hotspot value of the real-time video in the video combination of the automatic patrol group.

[0013] The playback priority of the real-time video is determined based on the type of the video combination and the hotspot value of the real-time video in the video combination.

[0014] Optionally, the real-time video is grouped based on preset rules to obtain multiple video combinations, including:

[0015] Determine the playback content of the real-time video, and the preset focus content of the playback request;

[0016] If the playback content includes the preset focus content, the real-time video is assigned to the video group of the manual rotation group; if the playback content does not include the preset focus content, the real-time video is assigned to the video group of the automatic rotation group.

[0017] If the playback content includes preset alarm content, then the real-time video will be assigned to the video combination of the alarm patrol group.

[0018] Optionally, the method further includes:

[0019] Obtain the first target real-time video waiting to be played from the video playlist, and determine the video combination to which the first target real-time video belongs;

[0020] Based on the video combination to which the first target real-time video belongs, determine the video window layout of the target display device; and play the first target real-time video on the target display device according to the video window layout.

[0021] Optionally, playing the first target real-time video on the target display device according to the video window layout includes:

[0022] Determine at least one video playback window included in the video window layout, and determine the resolution of the video playback window;

[0023] Based on the resolution, the real-time video of the first target is transcoded, and the transcoded real-time video of the first target is played in at least one video playback window.

[0024] Optionally, the method further includes:

[0025] Obtain the real-time video of the second target that is currently being played on the target display device;

[0026] If the real-time video of the second target belongs to the manual patrol group and / or the automatic patrol group, then the real-time video of the second target is monitored.

[0027] When it is detected that the playback content of the second target real-time video includes preset alarm content, the second target real-time video is assigned to the alarm rotation group.

[0028] Optionally, the method further includes:

[0029] Obtain the number of times the real-time video has been played within a preset historical time period, and determine the historical hotspot value corresponding to each playback of the real-time video within the preset historical time period;

[0030] Based on the historical playback count and the historical hotspot value, the historical average playback duration of the real-time video shown is determined within the preset historical time period.

[0031] Based on the historical average playback duration, the playback duration of the real-time video in the round-robin playback is determined.

[0032] Secondly, this application provides a video loop playback device, comprising:

[0033] The acquisition module is used to acquire the real-time video to be played in rotation as indicated by the playback request in response to a playback request initiated by the video rotation server; wherein the playback request is used to indicate that the video is played in rotation.

[0034] A determining module is used to determine the hotspot value corresponding to the real-time video, and determine the playback priority of the real-time video based on the hotspot value; wherein, the hotspot value represents the degree of attention the real-time video receives;

[0035] The sorting module is used to sort the real-time videos in descending order according to the playback priority to obtain a video playlist;

[0036] The playback module is used to send the video playlist to the target display device for rotation playback.

[0037] Optionally, the determining module further includes: a grouping module, used to group the real-time video according to preset rules to obtain multiple video combinations; wherein the types of the multiple video combinations include alarm patrol group, manual patrol group and automatic patrol group;

[0038] The determining module is further configured to determine the hotspot value of the real-time video in the video combination; wherein, the hotspot value of the real-time video in the video combination of the alarm patrol group is greater than the hotspot value of the real-time video in the video combination of the manual patrol group, and the hotspot value of the real-time video in the video combination of the manual patrol group is greater than the hotspot value of the real-time video in the video combination of the automatic patrol group.

[0039] The playback priority of the real-time video is determined based on the type of the video combination and the hotspot value of the real-time video in the video combination.

[0040] Optionally, the determining module is further configured to determine the playback content of the real-time video and the preset content of interest in the playback request;

[0041] The grouping module is further configured to, if the playback content includes the preset focus content, assign the real-time video to the video group of the manual rotation group; if the playback content does not include the preset focus content, assign the real-time video to the video group of the automatic rotation group; and if the playback content includes preset alarm content, assign the real-time video to the video group of the alarm rotation group.

[0042] Optionally, the acquisition module is further configured to acquire the first target real-time video waiting to be played in the video playlist;

[0043] The determining module is further configured to determine the video combination to which the first target real-time video belongs; and to determine the video window layout of the target display device based on the video combination to which the first target real-time video belongs.

[0044] The playback module is further configured to play the first target real-time video on the target display device according to the video window layout.

[0045] Optionally, the determining module is further configured to determine at least one video playback window included in the video window layout, and to determine the resolution of the video playback window;

[0046] The playback module further includes a processing module, configured to transcode the first target real-time video based on the resolution, and play the transcoded first target real-time video in at least one video playback window.

[0047] Optionally, the acquisition module is further configured to acquire the second target real-time video currently being played on the target display device;

[0048] The determining module further includes: a monitoring module, used to monitor the real-time video of the second target if the real-time video of the second target belongs to the manual patrol group and / or the automatic patrol group;

[0049] The grouping module is further configured to assign the second target real-time video to the alarm rotation group when it detects that the playback content of the second target real-time video includes preset alarm content.

[0050] Optionally, the acquisition module is further configured to acquire the number of times the real-time video has been played in a preset historical time period;

[0051] The determining module is further configured to determine the historical hotspot value corresponding to each playback of the real-time video within the preset historical time period;

[0052] Based on the historical playback count and the historical hotspot value, the historical average playback duration of the real-time video shown is determined within the preset historical time period.

[0053] Based on the historical average playback duration, the playback duration of the real-time video in the round-robin playback is determined.

[0054] Thirdly, this application provides an electronic device, comprising:

[0055] Memory and processor;

[0056] The memory stores computer-executed instructions;

[0057] The processor executes computer execution instructions stored in the memory to implement the video rotation playback method as described in the first aspect above and in various possible implementations.

[0058] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the video rotation playback method as described in the first aspect and various possible implementations above.

[0059] Fifthly, this application provides a computer program product comprising a computer program that, when executed by a processor, implements the video rotation playback method as described in the first aspect and various possible implementations above.

[0060] The video rotation playback method, apparatus, electronic device, and storage medium provided in this application respond to a playback request initiated by a video rotation server, wherein the playback request is used to instruct the rotation playback of videos. The video rotation server initiating a playback request is a real-time communication method, allowing the video rotation server to update and push the latest real-time videos in real time, ensuring the real-time performance of the video rotation playback. Next, the real-time videos to be rotationally played as indicated by the playback request are obtained, and the hotspot value corresponding to the real-time videos is determined. The playback priority of the real-time videos is determined based on the hotspot value, where the hotspot value represents the degree of attention the real-time videos receive. Further, the real-time videos are sorted in descending order according to the playback priority to obtain a video playlist, which is then sent to the target display device for rotation playback. During the rotation playback process, the video rotation server can dynamically adjust the playback order of the real-time videos in the video playlist based on the latest data or events, improving the flexibility and intelligence of the video rotation playback process. Attached Figure Description

[0061] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0062] Figure 1 A diagram illustrating application scenarios for existing video rotation playback methods.

[0063] Figure 2 A flowchart illustrating the video rotation playback method provided in this application embodiment. Figure 1 ;

[0064] Figure 3 A flowchart illustrating the video rotation playback method provided in this application embodiment. Figure 2 ;

[0065] Figure 4 A flowchart illustrating the video rotation playback method provided in this application embodiment. Figure 3 ;

[0066] Figure 5 Application scenarios of the video rotation playback method provided in the embodiments of this application Figure 1 ;

[0067] Figure 6 Application scenarios of the video rotation playback method provided in the embodiments of this application Figure 2 ;

[0068] Figure 7 Application scenarios of the video rotation playback method provided in the embodiments of this application Figure 3 ;

[0069] Figure 8This is a schematic diagram of the structure of the video loop playback device provided in the embodiments of this application;

[0070] Figure 9 A hardware structure diagram of the electronic device provided in this application.

[0071] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0072] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0073] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein.

[0074] In this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0075] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0076] Video loop playback technology allows multiple video segments to be displayed within a limited screen space without manual switching. This technology can be applied not only to traditional security applications but also to scenarios such as operating room monitoring and ward surveillance in the medical field; classroom monitoring and campus safety management in the education field; food processing and kitchen monitoring in the food hygiene field; fire alarms, rapid response, and disaster assessment in emergency management; and environmental monitoring and pollution source monitoring in the environmental protection field.

[0077] Because the needs of different fields and industries vary, video carousel playback technology requires consideration of different strategies, priorities, and split-screen layouts when applied. For example, in security monitoring, it may be necessary to prioritize playing videos of high-risk areas; while in the education field, it may be necessary to play video content in the order of the teaching plan.

[0078] Video rotation involves not only the sequential playback of videos, but also how to display multiple videos simultaneously on a single screen. For example, in medical monitoring, it may be necessary to display videos from multiple wards at the same time; in environmental monitoring, it may be necessary to place videos from important monitoring points in more prominent positions.

[0079] In traditional technologies, Figure 1 This is a diagram illustrating application scenarios for existing video rotation playback methods, such as... Figure 1 As shown, a traditional video polling playback architecture includes a client, a streaming media server, a webcam (Internet Protocol Camera, IPC), and a server polling interface. The IPC acts as the streaming media data source, responsible for capturing video; the streaming media server processes, transmits, and manages the video; and the client plays the video. The server polling interface is a set of interfaces or methods provided by the streaming media server, allowing the client to interact with the streaming media server; through these interfaces, the streaming media server can accept requests and return responses.

[0080] Specifically, the client needs to periodically send requests to the server to obtain the latest video playlist. This is typically a periodic process, such as requesting every few minutes or hours. Afterward, the streaming server sends the video playlist to the client all at once. The client then filters and sorts the videos in the playlist, determining the playback order and method according to its internal code logic. This internal client code logic is pre-defined, usually static, and not easily adjusted based on external changes.

[0081] Because the client needs to request updates periodically rather than obtaining them in real time, the video playlist updates are not timely enough, and important updates may be missed between two requests. Furthermore, the video playlist updates are not dynamic, making it difficult to quickly respond to changes or immediate user needs. This means that playback content cannot be adjusted in real-time based on data or events.

[0082] Due to insufficient real-time and dynamic update capabilities, the system cannot adjust its playback strategy based on user behavior, environmental changes, or other dynamic factors, thus limiting its flexibility and intelligence.

[0083] To address the aforementioned technical problems, the inventors considered that video carousel playback requests initiated by the client are periodic requests, and the client's preset playback logic makes it difficult to dynamically adjust the playback order of the video playlist. Based on this, the inventors conceived of a server that could push updates to the client in real time. Therefore, the server initiates the video carousel playback request to ensure the real-time nature of the video carousel playback. Simultaneously, the server can flexibly adjust playback strategies and content based on the acquired real-time video, ensuring that users can obtain important information promptly. Through real-time adjustments, the server can better respond to external changes and user needs, improving the flexibility and intelligence of the video carousel playback.

[0084] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0085] This application provides a method for video loop playback. Figure 2 A flowchart illustrating the video rotation playback method provided in this application embodiment. Figure 1 ,like Figure 2 As shown, the video loop playback method includes:

[0086] S201. In response to a playback request initiated by the video polling server, obtain the real-time video to be polled and played as indicated in the playback request.

[0087] Among them, the video polling server is a server responsible for managing and scheduling video playback. The playback request initiated by the video polling server is used to instruct the video to be played in a polling manner.

[0088] Video polling servers typically establish network connections with video sources via protocols such as Real-Time Streaming Protocol (RTSP) or Hypertext Transfer Protocol (HTTP). Once the network connection is successfully established, the video polling server sends a playback request to the video source and receives real-time video from the source. The video source can be an IPC or a streaming media server.

[0089] S202. Determine the hotspot value corresponding to the real-time video, and determine the playback priority of the real-time video based on the hotspot value.

[0090] The "hotness value" is an indicator calculated based on multiple factors, such as the number of viewers, viewing time, and user interaction frequency, used to quantify the degree of attention received by real-time video. Playback priority determines the order or importance of real-time video in rotation playback or resource allocation; specifically, real-time videos with higher hotness values ​​are given higher playback priority.

[0091] It should be noted that when different management strategies or priority rules need to be applied to different types of real-time video, the acquired real-time video can be grouped to simplify subsequent processing. In one possible implementation, real-time video can be grouped based on preset rules to obtain multiple video combinations. These video combinations can include alarm polling groups, manual polling groups, and automatic polling groups.

[0092] Specifically, the content to be played in real-time video and the preset content of interest in the playback requests initiated by the video polling server are determined. If the playback content includes preset content of interest, the real-time video is assigned to the video group of the manual polling group; if the playback content does not include preset content of interest, the real-time video is assigned to the video group of the automatic polling group; if the playback content includes preset alarm content, the real-time video is assigned to the video group of the alarm polling group.

[0093] Interpretively, the hotspot value of real-time videos within each video combination allows the video carousel server to adjust the order and frequency of video playback based on user interests and behavior, increasing the probability of playing real-time videos that users are interested in. For example, if a user frequently watches a particular real-time video over a period of time, the video carousel server can increase its playback priority in the video playlist so that the user can see it more easily.

[0094] For key video objects, the video polling server can increase the number of times they are played to meet users' needs for focusing on specific content. For example, in some security monitoring scenarios, videos of important areas can be played more frequently to detect anomalies in a timely manner.

[0095] Therefore, the hotspot value of real-time videos within a video combination can be determined. Based on the type of video combination and the hotspot value of the real-time videos within it, the playback priority of the real-time videos can be determined. Specifically, the hotspot value of real-time videos in the alarm polling group is higher than that in the manually polling group, and the hotspot value of real-time videos in the manually polling group is higher than that in the automatically polling group. This means that the video polling server can automatically adjust the playback priority of the video playlist, prioritizing the playback of real-time videos from the alarm polling group to users in emergency situations, providing them with more timely information.

[0096] For example, the real-time video in the alarm patrol group has the highest hotspot value, ranging from 80 to 100; followed by the real-time video in the manual patrol group, with a hotspot value between 40 and 79; and finally the real-time video in the manual patrol group, with a hotspot value between 1 and 39.

[0097] Understandably, grouping real-time video can help create a relational table structure, facilitating the management and querying of grouping information and related attributes of real-time video, as well as determining the relationships between real-time video streams. For example, a main camera might capture the core building of a factory, while other associated cameras might capture the main roads of that core building. The content captured by each camera can be manually configured.

[0098] S203. Sort each real-time video in descending order according to playback priority to obtain a video playlist; send the video playlist to the target display device for round-robin playback.

[0099] It's important to explain that the hotspot values ​​of the real-time videos included in each video combination will differ. Based on the magnitude of the hotspot values, the order of the real-time videos in the video playlist is: real-time videos from the alarm patrol group, real-time videos from the manual patrol group, and real-time videos from the automatic patrol group. In other words, the real-time videos in the playlist are sorted in descending order of their hotspot values.

[0100] In a specific example, Figure 3 A flowchart illustrating the video rotation playback method provided in this application embodiment. Figure 2 ,like Figure 3 As shown, looping through the video playlist to play live video on the target display device includes the following steps:

[0101] S301. Sort each real-time video in descending order according to playback priority to obtain a video playlist;

[0102] S302. Obtain a real-time video from the video playlist and traverse it in descending order according to the playback priority;

[0103] For example, the hotspot value of the first live video in the video playlist can be set to 100. If the hotspot value of a live video retrieved from the playlist is 76, it means that the live videos with hotspot values ​​between 77 and 100 have been traversed, and the traversal continues for live videos with hotspot values ​​less than 76.

[0104] S303. Determine whether the real-time video obtained from the video playlist belongs to the alarm patrol group;

[0105] If yes, then execute S304; otherwise, execute S305.

[0106] S304. Generate a video window layout for the real-time video of the alarm patrol group on the target display device, and execute S309.

[0107] S305. Determine whether the real-time video obtained from the video playlist belongs to the manual polling group;

[0108] If yes, then execute S306; otherwise, execute S307.

[0109] S306. Generate a video window layout for the real-time video of the manual patrol group on the target display device, and execute S309.

[0110] S307. Determine whether the real-time video obtained from the video playlist belongs to the automatic polling group;

[0111] If yes, then execute S308; otherwise, end the traversal.

[0112] S308. Generate a video window layout for the real-time video of the automatic patrol group on the target display device, and execute S309.

[0113] S309. Output real-time video to the target display device so that the real-time video can be played on the target display device;

[0114] S310 After the playback on the target display device ends, return to S302 to continue sending new real-time video to the target display device.

[0115] Therefore, the logic of video carousel playback is as follows: After obtaining the video playlist, the video carousel server starts the video carousel service, iterates through the playlist, and retrieves one live video video at a time, continuously outputting the live video to the target display device for playback. Once the target display device finishes playback, it notifies the video carousel server and waits in a loop for new live video videos to be sent. This process continues until all live videos in the playlist have been traversed, at which point the video carousel server notifies the target display device that the carousel playback has ended.

[0116] Next, the video polling server retrieves a new video playlist and restarts the traversal logic, thus implementing automatic video polling playback. The target display device is only responsible for looping playback, while the video polling server handles most of the video polling logic, enabling better resource management and scheduling while reducing the complexity and resource consumption of the target display device. For example, the video polling server can select appropriate real-time video to distribute based on the needs and performance of different target display devices, thereby improving the quality and stability of video playback.

[0117] It should be noted that the video window layout may differ for each type of video combination when played on the target display device. Specifically, the first target real-time video awaiting playback in the video playlist is retrieved, and the video combination to which it belongs is determined. Based on the video combination to which the first target real-time video belongs, the video window layout of the target display device is determined, and then the first target real-time video is played on the target display device based on the video window layout.

[0118] Explaining the concept, the video window layout of the target display device includes various types, such as picture-in-picture layout, primary-secondary layout, low-resolution equal-division layout, medium-resolution equal-division layout, high-resolution equal-division layout, and ultra-high-resolution equal-division layout. Among these, picture-in-picture layout is often used in video conferencing or communication scenarios, while primary-secondary layout refers to a large video playback window composed of multiple smaller video playback windows. Low-resolution equal-division layouts include 2×2 and 3×3 video window layouts; medium-resolution equal-division layouts include 4×4 and 5×4 video window layouts; high-resolution equal-division layouts include 6×4 and 6×6 video window layouts; and ultra-high-resolution equal-division layouts include 8×6, 7×7, and 8×8 video window layouts. The specific number of video playback windows included in different video window layouts is not limited here.

[0119] Taking the real-time video in an alarm patrol group as an example, a 2x2 video window layout (four-screen split) is typically used for playback on the target display device. In a specific example, if the video patrol server retrieves real-time video from the video playlist that belongs to the alarm patrol group, it determines whether the next real-time video to be retrieved will also belong to the alarm patrol group. If the video patrol server retrieves four consecutive real-time videos that all belong to the alarm patrol group, a 2x2 video window layout is generated on the target display device. If the video patrol server retrieves four consecutive real-time videos that also include those from manual and / or automatic patrol groups, a corresponding video window layout is generated on the target display device according to actual needs.

[0120] Specifically, Figure 4 A flowchart illustrating the video rotation playback method provided in this application embodiment. Figure 3 ,like Figure 4 As shown, the specific steps for the video polling server to obtain real-time video from the video playlist are as follows:

[0121] S401. Retrieve a live video from the video playlist;

[0122] S402. Determine whether the real-time video belongs to the alarm patrol group;

[0123] If not, execute S403; if yes, execute S404.

[0124] S403. Generate the corresponding video window layout on the target display device according to actual needs;

[0125] S404. Retrieve the next live video from the video playlist;

[0126] S405. Determine whether the next real-time video belongs to the alarm patrol group;

[0127] If not, execute S403; if yes, execute S406.

[0128] S406. Determine whether the number of real-time videos obtained from the video playlist is less than or equal to 4;

[0129] If not, execute S407; if yes, execute S401.

[0130] S407. Generate a 2×2 video window layout on the target display device.

[0131] Understandably, the video window layout generated on the target display device includes at least one video playback window. Treating each video playback window as an independent display unit allows for the assignment of different resolutions to each window, adapting to different real-time video or display needs and achieving optimal viewing results. The resolution of each video playback window is determined by the total resolution of the target display device and the video window layout. Furthermore, the real-time video is transcoded according to the resolution of each video playback window to adjust its resolution to be suitable for playback within the corresponding video playback window, thereby ensuring optimal clarity and compatibility during playback.

[0132] In one possible implementation, the video window layout includes at least one video playback window, and the resolution of the video playback window is determined. Based on the resolution, a first target real-time video awaiting playback in the video playlist is transcoded, and the transcoded first target real-time video is played in at least one video playback window.

[0133] Explaining the implications, after transcoding the primary target's real-time video, decoding is still required before playback in the video playback window. In a specific example, if the transcoding and decoding process uses the H.264 standard, the computational cost of transcoding is 5-10 times that of decoding, typically around 7 times. If the transcoding and decoding process uses the H.265 standard, the computational cost of transcoding is 3-10 times that of decoding, typically around 6 times. Furthermore, the computational cost of transcoding in the H.265 standard is 2-5 times that of transcoding in the H.264 standard, and the computational cost of decoding in the H.265 standard is 1.5-2 times that of decoding in the H.264 standard.

[0134] Generally, transcoding real-time video according to different resolutions yields the main stream, sub-stream, and / or grandchild stream. In one possible implementation, Figure 5 Application scenarios of the video rotation playback method provided in the embodiments of this application Figure 1 ,like Figure 5As shown, if the target display device's video window layout is a single-screen layout, the original live video or the main video corresponding to the main bitstream of the live video can be played directly. If the target display device's video window layout is a low-resolution, equally divided layout, the sub-videos corresponding to the sub-bitstreams of the live video and / or the grandchild videos corresponding to the grandchild bitstreams can be played. If the target display device's video window layout is a primary-secondary layout, the larger video playback window can play the main video corresponding to the main bitstream of the live video, and multiple smaller video playback windows can play the sub-videos corresponding to the sub-bitstreams of the live video. If the target display device's video window layout is a medium-resolution, equally divided layout or a high-resolution, equally divided layout, the sub-videos corresponding to the sub-bitstreams of the live video and / or the grandchild videos corresponding to the grandchild bitstreams can be played. If the target display device's video window layout is an ultra-high-resolution, equally divided layout, image compositing and audio mixing modes are required to achieve smooth video playback. The target display device's resolution can be 1080p, 2k, or 4k. How to select the appropriate live video for playback based on the target display device's video window layout is determined by actual playback requirements, and this application does not impose specific restrictions.

[0135] In one specific embodiment, when the resolution of the video playback window is 4K, 2K, 1080p, or 720p, the original real-time video can be played. When the resolution of the video playback window is 1080p or 720p, the main bitstream of the real-time video can be decoded to obtain the main video, which is then played in the video playback window. When the resolution of the video playback window is 480p or 360p, the sub-bitstreams of the real-time video can be decoded to obtain the sub-videos, which are then played in the video playback window. When the resolution of the video playback window is 240p or 144p, the grandchild bitstreams of the real-time video can be decoded to obtain the grandchild videos, which are then played in the video playback window.

[0136] It should be noted that when the real-time video from the manual and automatic patrol groups is played on the target display device, preset alarm content may suddenly appear. In this case, the currently playing real-time video from the manual and / or automatic patrol groups needs to be assigned to the alarm patrol group. Specifically, the second target real-time video currently playing on the target display device is acquired. If the second target real-time video belongs to the manual and / or automatic patrol group, it is monitored. When the content played by the second target real-time video includes preset alarm content, the second target real-time video is assigned to the alarm patrol group.

[0137] Because the video polling server can receive, analyze and process real-time video, after dividing the real-time video of the manual polling group and / or automatic polling group into the alarm polling group, the video polling server can modify the hotspot value of these real-time videos in real time.

[0138] It should be understood that when the target display device performs loop playback of real-time video, it is also necessary to determine the playback duration of the real-time video. Specifically, the historical playback count of the real-time video within a preset historical time period is obtained, and the historical hotspot value corresponding to each playback within the preset historical time period is determined. Based on the historical playback count and historical hotspot value, the historical average playback duration of the real-time video within the preset historical time period is determined, and further based on the historical average playback duration, the playback duration of the real-time video in loop playback is determined.

[0139] In a specific example, the number of times the real-time video was played within a preset historical time period is determined. And the historical hotspot values ​​corresponding to each playback of real-time video within a preset historical time period. Then, the average percentage of historical hotspot values ​​is calculated. ,in, The system prioritizes real-time videos in the playlist by averaging the percentage of historical hotspot values ​​and determines the historical average playback duration of each real-time video within a preset historical time period. Then, based on the pre-set rotation playback duration and the historical average playback duration, the playback duration of each real-time video in the rotation playback is determined.

[0140] For example, the video rotation server sends a 10-minute video rotation playback task to the target display device, assuming that a total of [number] videos will be played within those 10 minutes. Based on calculations, the playback duration of real-time video 1 is determined to be 60 seconds, and the playback duration of real-time video 2 is determined to be 50 seconds. Real-time video The playback duration is Seconds. The target display device will sequentially execute loop playback according to the above playback duration, waiting... Once all real-time videos have played, this video rotation playback session is complete. The video rotation server will then issue additional video rotation playback tasks until the target display device actively stops the rotation, at which point the video rotation playback will end.

[0141] In summary, Figure 6 Application scenarios of the video rotation playback method provided in the embodiments of this application Figure 2 ,like Figure 6As shown, the video rotation playback architecture of this application includes an IPC, a streaming media server, an intelligent recognition server, a transcoding server, a video rotation server, and a target display device. The intelligent recognition server interacts with the streaming media server and the video rotation server to analyze and classify the real-time video. The transcoding server interacts with the streaming media server and the video rotation server to transcode the real-time video, obtaining the main stream, sub-stream, and grandchild streams. The target display device can be a web page, an Android or iOS mobile device, or a personal computer (PC).

[0142] Figure 7 Application scenarios of the video rotation playback method provided in the embodiments of this application Figure 3 ,like Figure 7 As shown, assume the target display device has a total resolution of 1080p, 2k, or 4k. Based on the target display device's total resolution and video window layout, the real-time video is transcoded, and the transcoded real-time video is played in at least one video playback window on the target display device.

[0143] For example, if the target display device's video window layout is a primary-secondary layout, the main video corresponding to the main bitstream of the real-time video is played in the larger video playback window, and the grandchild videos corresponding to the grandchild bitstreams of the real-time video are played in multiple smaller video playback windows. If the target display device's video window layout is a single-screen layout, the main video corresponding to the main bitstream of the real-time video is played. If the target display device's video window layout is 2×2, the sub-videos corresponding to the sub-bitstreams of the real-time video are played, and / or the grandchild videos corresponding to the grandchild bitstreams. If the target display device's video window layout is 6×6, the grandchild videos corresponding to the grandchild bitstreams of the real-time video are played.

[0144] The video rotation playback method provided in this application responds to a playback request initiated by a video rotation server, wherein the playback request instructs the video to be rotated and played. The video rotation server initiating a playback request is a real-time communication method, allowing the video rotation server to update and push the latest real-time video in real time, ensuring the real-time performance of the video rotation playback. Next, the real-time video to be rotated and played as indicated by the playback request is obtained, and the real-time video is grouped according to preset rules to obtain three types of video combinations: alarm rotation group, manual rotation group, and automatic rotation group. Then, the hotspot value of the real-time video in each type of video combination is determined, and the playback priority of the real-time video is determined based on the type of video combination and the hotspot value of the real-time video, where the hotspot value represents the degree of attention the real-time video receives. Further, the real-time videos are sorted in descending order according to the playback priority to obtain a video playlist, and the video playlist is sent to the target display device. The video window layout of the target display device is determined, and based on the video window layout, it is determined whether transcoding of the real-time video is required. The transcoded real-time video and / or the original real-time video are then rotated and played on the target display device. During the rotation playback process, the video rotation server can dynamically adjust the playback order of real-time videos in the video playlist based on the latest data or events, improving the flexibility and intelligence of the video rotation playback process.

[0145] Figure 8 This is a schematic diagram of the structure of the video loop playback device provided in the embodiments of this application, as shown below. Figure 8 As shown, the video loop playback device 800 includes: an acquisition module 801, a determination module 802, a sorting module 803, and a playback module 804;

[0146] The acquisition module 801 is used to respond to a playback request initiated by the video rotation server and acquire the real-time video to be rotated and played as indicated by the playback request; wherein the playback request is used to indicate that the video is rotated and played.

[0147] The determination module 802 is used to determine the hotspot value corresponding to the real-time video and determine the playback priority of the real-time video based on the hotspot value; wherein, the hotspot value represents the degree of attention the real-time video receives;

[0148] The sorting module 803 is used to sort each real-time video in descending order according to the playback priority to obtain a video playlist;

[0149] The playback module 804 is used to send the video playlist to the target display device for rotation playback.

[0150] Optionally, the determining module 802 further includes: a grouping module 805, used to group the real-time video according to preset rules to obtain multiple video combinations; wherein the types of multiple video combinations include alarm patrol groups, manual patrol groups and automatic patrol groups;

[0151] The determining module 802 is also used to determine the hot spot value of the real-time video in the video combination; wherein, the hot spot value of the real-time video in the video combination of the alarm patrol group is greater than the hot spot value of the real-time video in the video combination of the manual patrol group, and the hot spot value of the real-time video in the video combination of the manual patrol group is greater than the hot spot value of the real-time video in the video combination of the automatic patrol group.

[0152] The playback priority of real-time videos is determined based on the type of video combination and the hotspot value of real-time videos in the video combination.

[0153] Optionally, the determining module 802 is also used to determine the playback content of the real-time video and the preset content of interest in the playback request;

[0154] The grouping module 805 is also used to classify the real-time video into the video combination of the manual rotation group if the playback content includes preset content of interest; to classify the real-time video into the video combination of the automatic rotation group if the playback content does not include preset content of interest; and to classify the real-time video into the video combination of the alarm rotation group if the playback content includes preset alarm content.

[0155] Optionally, the acquisition module 801 is also used to acquire the first target real-time video waiting to be played in the video playlist;

[0156] The determining module 802 is also used to determine the video combination to which the first target real-time video belongs; and to determine the video window layout of the target display device based on the video combination to which the first target real-time video belongs.

[0157] The playback module 804 is also used to play the first target real-time video on the target display device according to the video window layout.

[0158] Optionally, the determining module 802 is further configured to determine at least one video playback window included in the video window layout, and to determine the resolution of the video playback window;

[0159] The playback module 804 further includes a processing module 806, which is used to transcode the real-time video of the first target based on the resolution, and play the transcoded real-time video of the first target in at least one video playback window.

[0160] Optionally, the acquisition module 801 is also used to acquire the real-time video of the second target that is currently being played on the target display device;

[0161] The determination module 802 also includes: a monitoring module 807, used to monitor the real-time video of the second target if the real-time video of the second target belongs to the manual rotation group and / or the automatic rotation group;

[0162] The grouping module 805 is also used to classify the real-time video of the second target into an alarm rotation group when it is detected that the playback content of the real-time video of the second target includes preset alarm content.

[0163] Optionally, the acquisition module 801 is also used to acquire the number of times the real-time video has been played in a preset historical time period;

[0164] The determination module 802 is also used to determine the historical hotspot value corresponding to each playback of the real-time video within a preset historical time period;

[0165] Based on historical playback counts and historical hotspot values, determine the historical average playback duration of the real-time video shown within a preset historical time period.

[0166] Based on the historical average playback duration, the playback duration of real-time video in the rotation playback is determined.

[0167] The video rotation playback device provided in this application embodiment can be used to execute the video rotation playback method in any of the above embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0168] It should be noted that the division of the various modules in the above device is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software via processing element calls; they can be fully implemented in hardware; or some modules can be implemented by processing element calls to software, while others are implemented in hardware. Additionally, these modules can be fully or partially integrated together, or implemented independently. The processing element mentioned here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed through the integrated logic circuits in the hardware of the processor element or through software instructions.

[0169] Figure 9 A hardware structure diagram of the electronic device provided in this application. For example... Figure 9 As shown, the electronic device 900 includes:

[0170] Processor 901 and memory 902;

[0171] The memory stores the instructions that the computer executes;

[0172] The processor executes computer execution instructions stored in memory 902, causing the electronic device to perform the video loop playback method described above.

[0173] It should be understood that the processor 901 described above can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor. The memory 902 may include high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk, or optical disc, etc.

[0174] The electronic device provided in this application embodiment can be used to execute the video rotation playback method provided in any of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0175] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the video rotation playback method described above.

[0176] This application also provides a computer program product, which includes a computer program that, when executed by a processor, is used to implement the video rotation playback method described above.

[0177] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.

[0178] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0179] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.

[0180] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.

[0181] When integrated units / modules are implemented in hardware, the hardware can be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor can be any suitable hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the storage unit can be any suitable magnetic or magneto-optical storage medium, such as Resistive Random Access Memory (RRAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Enhanced Dynamic Random Access Memory (EDRAM), High-Bandwidth Memory (HBM), Hybrid Memory Cube (HMC), etc.

[0182] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0183] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.

[0184] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0185] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for video carousel playback, characterized in that, include: In response to a playback request initiated by a video polling server, the real-time video to be polled and played as indicated by the playback request is obtained, wherein the playback request is used to indicate that the video is to be polled and played. The real-time videos are grouped according to preset rules to obtain multiple video combinations; the types of the multiple video combinations include alarm patrol groups, manual patrol groups, and automatic patrol groups. Determine the hotspot value of the real-time video in the video combination; wherein, the hotspot value of the real-time video in the video combination of the alarm patrol group is greater than the hotspot value of the real-time video in the video combination of the manual patrol group, and the hotspot value of the real-time video in the video combination of the manual patrol group is greater than the hotspot value of the real-time video in the video combination of the automatic patrol group. Based on the type of the video combination and the hotspot value of the real-time video in the video combination, the playback priority of the real-time video is determined; The hotspot value represents the degree of attention received by the real-time video. Based on the playback priority, the real-time videos are sorted in descending order to obtain a video playlist; the video playlist is then sent to the target display device for round-robin playback. The method further includes: Obtain the real-time video of the second target that is currently being played on the target display device; If the real-time video of the second target belongs to the manual patrol group and / or the automatic patrol group, then the real-time video of the second target is monitored. When it is detected that the playback content of the second target real-time video includes preset alarm content, the second target real-time video is assigned to the alarm rotation group; The method further includes: Obtain the number of times the real-time video has been played within a preset historical time period, and determine the historical hotspot value corresponding to each playback of the real-time video within the preset historical time period; Based on the historical playback count and the historical hotspot value, the historical average playback duration of the real-time video within the preset historical time period is determined; Based on the historical average playback duration, the playback duration of the real-time video in the round-robin playback is determined.

2. The method according to claim 1, characterized in that, The real-time video is grouped according to preset rules to obtain multiple video combinations, including: Determine the playback content of the real-time video, and the preset focus content of the playback request; If the playback content includes the preset focus content, the real-time video is assigned to the video group of the manual rotation group; if the playback content does not include the preset focus content, the real-time video is assigned to the video group of the automatic rotation group. If the playback content includes preset alarm content, then the real-time video will be assigned to the video combination of the alarm patrol group.

3. The method according to claim 1, characterized in that, The method further includes: Obtain the first target real-time video waiting to be played from the video playlist, and determine the video combination to which the first target real-time video belongs; Based on the video combination to which the first target real-time video belongs, determine the video window layout of the target display device; and play the first target real-time video on the target display device according to the video window layout.

4. The method according to claim 3, characterized in that, Playing the first target real-time video on the target display device according to the video window layout includes: Determine at least one video playback window included in the video window layout, and determine the resolution of the video playback window; Based on the resolution, the real-time video of the first target is transcoded, and the transcoded real-time video of the first target is played in at least one video playback window.

5. A video loop playback device, characterized in that, include: The acquisition module is used to acquire the real-time video to be played in rotation as indicated by the playback request in response to a playback request initiated by the video rotation server; wherein the playback request is used to indicate that the video is played in rotation. A determining module is used to determine the hotspot value corresponding to the real-time video, and determine the playback priority of the real-time video based on the hotspot value; wherein, the hotspot value represents the degree of attention the real-time video receives; The sorting module is used to sort the real-time videos in descending order according to the playback priority to obtain a video playlist; The playback module is used to send the video playlist to the target display device for rotation playback; The grouping module groups the real-time video according to preset rules to obtain multiple video combinations; wherein, the types of the multiple video combinations include alarm patrol group, manual patrol group and automatic patrol group; The determining module is used to determine the hotspot value of the real-time video in the video combination; wherein, the hotspot value of the real-time video in the video combination of the alarm patrol group is greater than the hotspot value of the real-time video in the video combination of the manual patrol group, and the hotspot value of the real-time video in the video combination of the manual patrol group is greater than the hotspot value of the real-time video in the video combination of the automatic patrol group. Based on the type of the video combination and the hotspot value of the real-time video in the video combination, the playback priority of the real-time video is determined; The acquisition module is also used to acquire the second target real-time video that is currently being played on the target display device; The monitoring module is used to monitor the real-time video of the second target if the real-time video of the second target belongs to the manual patrol group and / or the automatic patrol group; The grouping module is also used to classify the second target real-time video into the alarm rotation group when it is detected that the playback content of the second target real-time video includes preset alarm content; The acquisition module is also used to acquire the number of times the real-time video has been played in a preset historical time period; The determining module is further configured to determine the historical hotspot value corresponding to each playback of the real-time video within the preset historical time period; and based on the historical playback count and the historical hotspot value, determine the historical average playback duration of the real-time video within the preset historical time period. Based on the historical average playback duration, the playback duration of the real-time video in the round-robin playback is determined.

6. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the video rotation playback method as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the video rotation playback method as described in any one of claims 1 to 4.