A video program switching device used in advertising machine

By designing video program processing, arrangement and resource management modules in advertising machine equipment, the problems of lagging and low resource utilization during video switching are solved, achieving smoother advertising playback and efficient resource management.

CN114286157BActive Publication Date: 2024-10-22HUNAN ZHOGNYI MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111593476.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-23
Publication Date
2024-10-22
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

Advertising equipment is prone to short-term black screens or freezes during video switching, and low resource utilization, affecting the smoothness of ad playback and customer churn.

Method used

A video program switching device including a video program processing module, an arrangement module and a resource management module is designed. By receiving video playback instructions from the server, it downloads and verifies, arranges and plays videos, and supervises the use of advertising machine resources to realize video programs. Initialization and resource recycling to avoid lagging and improve resource utilization.

Benefits of technology

It effectively solves the short-term no picture phenomenon and video loading time loss during video switching transition, and improves the resource utilization and playback smoothness of advertising machine equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114286157B_ABST
    Figure CN114286157B_ABST
Patent Text Reader

Abstract

The present invention relates to a video program switching device applied to an advertising machine, the device comprising: a video program processing module, a video program arrangement module, a resource management module, and a video program playing module; the video program processing module is used to receive a video program playing instruction sent by a server, and download and verify the video program based on the video program playing instruction; the video program arrangement module is used to arrange according to the video program playing instruction; the resource management module is used to supervise the resource usage of the advertising machine; the video program playing module is used to initialize the video program for the display area of ​​the advertising machine, and play the video program according to the arrangement of the video program arrangement module. The present invention solves the problem of short-term no picture phenomenon during the switching transition of the advertising machine and the time loss of video loading through the video program processing module, the video program arrangement module, the resource management module, and the video program playing module, and at the same time improves the resource utilization of the advertising machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of advertisement playing, and in particular to a video program switching device applied to an advertisement machine. Background Art

[0002] After the rise of electronic devices, people saw more attractive forms of display, and got rid of traditional posters and newspapers. They used more attractive outdoor electronic devices to replace traditional advertising methods. Dynamic display forms are more expressive. Then the rise of the Internet led to the development of electronic devices. The speed of the network further promoted the widespread application of centralized management of advertising equipment, and the form of advertising changed from a single picture to a colorful video dynamic display. Today, short videos are the mainstream, and the increase in network speed has played an irreplaceable role in the rapid promotion of video advertising.

[0003] As the application of video becomes more and more widespread, the most prominent one is the advertising industry. In the early days, video ads were accessed through live TV broadcasts, with live broadcasts constantly switching between different customers' advertising videos, or in the form of arranging and recording before playing. At this time, the playback format is based on digital signals, and the playback source is the same signal channel. The switching between advertisements is pre-pressed together to achieve seamless switching, enhancing the overall fluency. However, for general advertising machine equipment, although the pre-pressed form can also be used to achieve the coherent playback of multiple advertisements, as long as there is a process of video loading initialization, there will be a short black screen or freeze phenomenon, which is a fatal problem for advertising machine equipment. The time that people passing by stay in front of the advertising machine equipment is limited. If every minute cannot be grasped, it may be the loss of valuable customers. Therefore, whether from the perspective of the fluency and experience of watching advertisements, or from the perspective of increasing the hit rate of valuable customers, the seamless switching of video advertisements is a particularly important part.

[0004] In the advertising industry, in order to accurately determine the timing and frequency of advertising, the playing time of each advertising video is flexibly reduced. Why is the time flexibly reduced? This is because when multiple videos are played in rotation, the time it takes for the player to load the video each time is different. The size or encoding of the video may cause different loading times. Even the same video may take different loading times on different advertising devices. This results in the inability to accurately play the specified number of times within the specified time. For example, 12 advertising videos are played within 120 seconds, each video is 10 seconds, but the time it takes to switch and load each video is different, which will affect the playing time of the last advertising video and will not reach 10 seconds, which seriously affects the customer's product promotion effect.

[0005] There is also a resource utilization problem when advertising machine equipment is running for a long time. The motherboard configuration of general advertising machine equipment is limited. From the cost point of view, high-configuration and high-cost motherboards will not be selected. If the advertising player program works for a long time in this limited resource environment and the resources cannot be recovered in time, problems such as screen freeze and advertising machine equipment crash will often occur. This is absolutely unacceptable for advertising machine equipment operators. Summary of the invention

[0006] 1. Technical issues to be resolved

[0007] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a video program switching device applied to an advertising machine.

[0008] (II) Technical solution

[0009] In order to achieve the above object, the main technical solutions adopted by the present invention include:

[0010] A video program switching device applied to an advertising machine, the device comprising: a video program processing module, a video program arrangement module, a resource management module, and a video program playing module;

[0011] The video program processing module is used to receive the video program playing instruction sent by the server, and download and verify the video program based on the video program playing instruction;

[0012] The video program arrangement module is used to arrange the video program according to the video program playing instruction;

[0013] The resource management module is used to monitor the resource usage of the advertising machine;

[0014] The video program playing module is used to initialize the video program in the display area of ​​the advertising machine and play the video program according to the arrangement of the video program arrangement module.

[0015] Optionally, the video program processing module includes: a play instruction receiving module, a video program downloading module, a video program checking module, and a local resource library;

[0016] The playback instruction receiving module is used to receive the encrypted video program playback instruction sent by the server, decrypt the encrypted video program playback instruction, and obtain the video program playback instruction; the video program playback instruction includes one or more video programs, each video program includes video information and layout data; the video information includes a video download address and a video unique identification code; the layout data includes the number of playback areas, the location of each playback area, the playback content and the file type;

[0017] The video program downloading module is used to determine whether the video involved in the video program playing instruction is stored in the local resource library, and if not, download the involved video from the video download address;

[0018] The video program verification module is used to parse the unique identification code of the video downloaded by the video program download module, and judge the integrity and correctness of the downloaded video based on the parsed unique identification code and the video unique identification code in the video program playback instruction;

[0019] The local resource library is used to store the videos downloaded by the video program download module, record the storage time of the videos, and clear out expired videos according to the storage time.

[0020] Optionally, the video program scheduling module performs scheduling according to the video program playing instruction, including:

[0021] The video program scheduling module determines the number of video programs in the video program playing instruction;

[0022] The video program arrangement module sequentially obtains layout data of each video program;

[0023] The video program arrangement module determines the display information according to the number of play areas and the position of each play area in each layout data;

[0024] The video program arrangement module adjusts each display information according to the display area of ​​the advertising machine;

[0025] The video program arrangement module arranges the video program according to the adjusted presentation information and layout data.

[0026] Optionally, the display information is a display range;

[0027] The video program arrangement module adjusts each display information according to the display area of ​​the advertising machine, including:

[0028] The video program arrangement module determines whether each display range exceeds the display range of the advertising machine according to the display area of ​​the advertising machine;

[0029] If it exceeds, the video program scheduling module compresses the display range according to the display range.

[0030] Optionally, the resource management module is also used to store video programs and / or arrangements.

[0031] Optionally, the video program playing module initializes the video program for the display area of ​​the advertising machine, including:

[0032] The video program playing module performs overlay initialization on each playing area of ​​the video program according to the display area of ​​the advertising machine.

[0033] Optionally, the stack includes: a first video program playback layer, a second video program playback layer, and one or more temporary video program playback layers;

[0034] in,

[0035] The first video program playback layer is used to load and play any video program;

[0036] The second video program playing layer is used to load and play the video program immediately following any of the video programs;

[0037] The temporary video program playback layer is used for emergency playback when the first video program playback layer or the second video program playback layer is stuck or processed slowly.

[0038] Optionally, after the advertising machine is started, the first video program playback layer loads the first video program and controls the loaded video program to be played in the display area;

[0039] While the first video program playback layer plays the loaded video, the second video program playback layer loads a video program immediately following the video program played by the first video program playback layer, and controls the loaded video program to be played in the display area after the video of the first video program playback layer is played;

[0040] While the second video program playback layer plays the loaded video, after the first video program playback layer places the second video program playback layer, the first video program playback layer notifies the resource management module to recycle the content currently played by the first video program playback layer, the first video program playback layer loads the video program immediately after the video program played by the second video program playback layer, and after the video of the second video program playback layer is played, controls the loaded video program to be played in the display area;

[0041] If the first video program playback layer or the second video program playback layer is stuck or processed slowly, the temporary video program playback layer loads the video program of the stuck or processed slowly video program playback layer and plays the loaded video program.

[0042] Optionally, the video program scheduling module compresses the display range according to the display range, including:

[0043] The video program arrangement module determines the length y1 and width x1 of the display range;

[0044] The video program arrangement module determines the length y2 and width x2 of the display range

[0045] The video program arrangement module calculates the length difference = y2-y1;

[0046] The video program arrangement module calculates the width difference value = x2-x1;

[0047] If the length difference is positive and the width difference is negative or 0, then and wide compression threshold If the width compression value is greater than α x , the video program arrangement module compresses the width of the display range to Compress the length of the display range to If the width compression value is not greater than α x , the video program arrangement module compresses the width of the display range to Compress the length of the display range to y1;

[0048] If the length difference is negative or 0, and the width difference is positive, then and long compression threshold If the length compression value is greater than α y , the video program arrangement module compresses the length of the display range into Compress the width of the display range to If the width compression value is not greater than α y , the video program arrangement module compresses the length of the display range into Compress the width of the display range to x1;

[0049] If the length difference is positive and the width difference is positive, then and The video program arrangement module determines the relationship between the absolute value of the length compression value and the absolute value of the width compression value. If the absolute value of the length compression value is not greater than the absolute value of the width compression value, the video program arrangement module compresses the length of the display range to The width of the display range is compressed to x1; if the absolute value of the length compression value is greater than the absolute value of the width compression value, the video program scheduling module compresses the width of the display range to Compress the length of the display range to y1.

[0050] Optionally, the resource management module includes: a memory resource management module and a storage resource management module;

[0051] The memory resource management module is used to manage the instantiation of the video player;

[0052] The storage resource management module is used to manage the clearing of expired videos in the local resource library.

[0053] (III) Beneficial effects

[0054] The present invention relates to a video program switching device applied to an advertising machine, the device comprising: a video program processing module, a video program arrangement module, a resource management module, and a video program playing module; the video program processing module is used to receive a video program playing instruction sent by a server, and download and verify the video program based on the video program playing instruction; the video program arrangement module is used to arrange according to the video program playing instruction; the resource management module is used to supervise the resource usage of the advertising machine; the video program playing module is used to initialize the video program for the display area of ​​the advertising machine, and play the video program according to the arrangement of the video program arrangement module. The present invention solves the problem of short-term no picture during the switching transition of the advertising machine and the time loss of video loading through the video program processing module, the video program arrangement module, the resource management module, and the video program playing module, and at the same time improves the resource utilization rate of the advertising machine equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of the structure of a video program switching device applied to an advertising machine provided by an embodiment of the present invention;

[0056] Figure 2 A schematic diagram of the structure of another video program switching device applied to an advertising machine provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0058] In the advertising industry, in order to accurately determine the timing and frequency of advertising, the playing time of each advertising video is flexibly reduced. Why is the time flexibly reduced? This is because when multiple videos are played in rotation, the time it takes for the player to load the video each time is different. The size or encoding of the video may cause different loading times. Even the same video may take different loading times on different advertising devices. This results in the inability to accurately play the specified number of times within the specified time. For example, 12 advertising videos are played within 120 seconds, each video is 10 seconds, but the time it takes to switch and load each video is different, which will affect the playing time of the last advertising video and will not reach 10 seconds, which seriously affects the customer's product promotion effect.

[0059] There is also a resource utilization problem when advertising machine equipment is running for a long time. The motherboard configuration of general advertising machine equipment is limited. From the cost point of view, high-configuration and high-cost motherboards will not be selected. If the advertising player program works for a long time in this limited resource environment and the resources cannot be recovered in time, problems such as screen freeze and advertising machine equipment crash will often occur. This is absolutely unacceptable for advertising machine equipment operators.

[0060] Based on this, the present invention relates to a video program switching device applied to an advertising machine, the device comprising: a video program processing module, a video program arrangement module, a resource management module, and a video program playback module; the video program processing module is used to receive a video program playback instruction sent by a server, and download and verify the video program based on the video program playback instruction; the video program arrangement module is used to arrange according to the video program playback instruction; the resource management module is used to supervise the resource usage of the advertising machine; the video program playback module is used to initialize the video program for the display area of ​​the advertising machine, and play the video program according to the arrangement of the video program arrangement module. The present invention solves the problem of short-term no picture during the switching transition of the advertising machine and the time loss of video loading through the video program processing module, the video program arrangement module, the resource management module, and the video program playback module, and at the same time improves the resource utilization rate of the advertising machine equipment.

[0061] See also Figure 1 This embodiment provides a video program switching device applied to an advertising machine, the device comprising: a video program processing module, a video program arrangement module, a resource management module, and a video program playing module.

[0062] in,

[0063] 1. Video program processing module

[0064] The video program processing module is used to receive the video program playing instruction sent by the server, and download and verify the video program based on the video program playing instruction.

[0065] Among them, see Figure 2 The video program processing module includes: a play instruction receiving module, a video program downloading module, a video program checking module, and a local resource library.

[0066] 1) Playback command receiving module

[0067] The playback instruction receiving module is used to receive the encrypted video program playback instruction sent by the server, decrypt the encrypted video program playback instruction, and obtain the video program playback instruction. The video program playback instruction includes one or more video programs, and each video program includes video information and layout data. The video information includes the video download address and the video unique identification code. The layout data includes the number of playback areas, the location of each playback area, the playback content, and the file type.

[0068] 2) Video program download module

[0069] The video program download module is used to determine whether the video involved in the video program playback instruction is stored in the local resource library. If not, the involved video is downloaded from the video download address.

[0070] 3) Video program verification module

[0071] The video program verification module is used to parse the unique identification code of the video downloaded by the video program download module, and judge the integrity and correctness of the downloaded video based on the parsed unique identification code and the video unique identification code in the video program playing instruction.

[0072] 4) Local resource library

[0073] The local resource library is used to store videos downloaded by the video program download module, record the storage time of the videos, and clean up expired videos based on the storage time.

[0074] The video program processing module provided in this embodiment is mainly used to receive the video program playing instructions sent by the server and perform related preliminary download verification work, complete the preliminary basic work of program playing, and ensure that the advertising machine receives the video program playing instructions and correctly downloads and plays the corresponding video program as required.

[0075] The video processing module also includes a play instruction receiving module, a video program downloading module, a video program checking module, and a local resource library.

[0076] The play instruction receiving module is used to receive the video program play instruction sent by the server. The transmission data during the period is encrypted. The corresponding play instruction receiving module needs to decrypt the video program play instruction before obtaining the correct data.

[0077] The video program download module is used to further process the correctly decrypted data. The video to be played in the data is first checked to see if it already exists in the local resource library. If not, it is downloaded according to the resource address provided in the data.

[0078] The video program verification module is mainly used for video program playback security considerations. After downloading the video to be played, the unique identification code of the video is parsed according to a unique algorithm, and then the identification code is compared with the corresponding identification code in the video program playback instruction to determine the integrity and correctness of the downloaded video.

[0079] The local resource library is mainly used to store all downloaded video program files. The resource library can be customized to automatically clean up expired and invalid files that exceed a certain period to avoid wasting resource space and save resources.

[0080] 2. Video program arrangement module

[0081] The video program arrangement module is used to arrange according to the video program playing instructions.

[0082] Specifically,

[0083] The video program scheduling module determines the number of video programs in the video program playing instruction.

[0084] The video program arrangement module sequentially obtains the layout data of each video program.

[0085] The video program arrangement module determines the display information according to the number of play areas in each layout data and the position of each play area.

[0086] The video program arrangement module adjusts each display information according to the display area of ​​the advertising machine.

[0087] The video program arrangement module arranges the video program according to the adjusted display information and layout data.

[0088] The display information may be a display range. When the display information is a display range, the process of the video program arrangement module adjusting each display information according to the display area of ​​the advertising machine is as follows:

[0089] The video program arrangement module determines whether each display range exceeds the display range of the advertisement machine according to the display area of ​​the advertisement machine.

[0090] If it exceeds, the video program scheduling module compresses the display range according to the display range.

[0091] The process of the video program arrangement module compressing the display range according to the display range is as follows:

[0092] 1) The video program arrangement module determines the length y1 and width x1 of the display range.

[0093] 2) The video program arrangement module determines the length y2 and width x2 of the display range

[0094] 3) The video program arrangement module calculates the length difference = y2-y1.

[0095] The length difference characterizes the length relationship between the display range and the presentation range.

[0096] If the length difference is 0, it means that the display range and the display range have the same length.

[0097] If the length difference is a positive number, it means that the display range is longer than the display range, and the display range needs to be compressed in length.

[0098] If the length difference is a negative number, it means that the display range is longer than the presentation range, and the length of the presentation range does not need to be adjusted.

[0099] 4) The video program arrangement module calculates the width difference = x2-x1.

[0100] The width difference characterizes the width relationship between the display range and the presentation range.

[0101] If the width difference is 0, it means that the display range is the same width as the presentation range.

[0102] If the width difference is a positive number, it means that the display range is wider than the display range, and the display range needs to be compressed in width.

[0103] If the width difference is a negative number, it means that the display range is wider than the presentation range, and the width of the presentation range does not need to be adjusted. 5)

[0105] The length difference is positive, the width difference is negative or 0

[0106] In this case, the display range needs to be compressed in width, and the length does not need to be adjusted. The goal is to adjust the display range to the display range, that is, adjust y2 to y1. However, in order to ensure that the overall aspect ratio of the display range remains unchanged, the length needs to be adaptively compressed according to the compression of the width, that is, adjust x2 to

[0107] However, since the width of the display range itself is smaller than the display range, it is very likely that in the process of ensuring that y2=y1, Very small (i.e. The value of is very large), which will affect the display effect of the displayed content. Therefore, for this situation, the video program scheduling module will also determine a wide compression threshold like The value of (i.e., the width compression value) is not greater than α x , then adjust y2 to y1 and x2 to If The value of (i.e., wide compression value) is greater than α x, then no longer adjust according to the above adjustment scheme, but lose a little length to ensure the overall display effect, that is, compress x2 to Compress y2 into

[0108] Therefore, if the length difference is positive and the width difference is negative or 0, then

[0109] (1) and wide compression threshold

[0110] (2) If the width compression value is greater than α x , the video program arrangement module will compress the width of the display range to Compress the length of the display range to

[0111] If the width compression value is not greater than α x , the video program arrangement module will compress the width of the display range to Compress the length of the display range to y1.

[0112] The length difference is negative or 0, and the width difference is positive

[0113] In this case, the display range needs to be compressed in length, and the width does not need to be adjusted. The goal is to adjust the display range to the display range, that is, adjust x2 to x1. However, in order to ensure that the overall aspect ratio of the display range remains unchanged, the length needs to be adaptively compressed according to the compression of the width, that is, adjust y2 to

[0114] However, since the display range itself is smaller than the display range, it is likely that in the process of ensuring that x2=x1, Very small (i.e. The value of is very large), which will affect the display effect of the displayed content. Therefore, for this situation, the video program scheduling module will also determine a long compression threshold like The value of (i.e. the long compression value) is not greater than α y , then adjust x2 to x1 and y2 to If The value of (i.e., the long compression value) is greater than α y , then the above adjustment scheme will no longer be used, and a little width will be lost to ensure the overall display effect, that is, y2 is compressed to Compress x2 into

[0115] Therefore, if the length difference is negative or 0, and the width difference is positive, then

[0116] (1) and long compression threshold

[0117] (2) If the length compression value is greater than α y , the video programming module compresses the length of the display range into Compress the width of the display range to

[0118] If the width compression value is not greater than α y , the video programming module compresses the length of the display range into Compress the width of the display range to x1.

[0119] The length difference is positive, and the width difference is positive.

[0120] In this case, the length and width are considered comprehensively, that is, the goal is to adjust the display range to the display range, that is, adjust y2 to y1, and adjust x2 to x1. In practice, it is difficult to ensure that the aspect ratio of the display range is the same as that of the display range, so it is necessary to adjust according to the largest difference.

[0121] Therefore, if the length difference is positive and the width difference is positive, then

[0122] (1) and

[0123] (2) The video program arrangement module determines the relationship between the absolute value of the long compression value and the absolute value of the wide compression value.

[0124] (3) If the absolute value of the length compression value is not greater than the absolute value of the width compression value, it means that the width difference is large, so the video program arrangement module compresses the length of the display range to The width of the display range is compressed to x1. If the absolute value of the length compression value is greater than the absolute value of the width compression value, it means that the length difference is large, and the video program arrangement module compresses the width of the display range to Compress the length of the display range to y1.

[0125] The length difference is negative, and the width difference is negative.

[0126] This situation means that the display range is larger than the display range, so just display it according to the display range.

[0127] The video program arrangement module provided in this embodiment mainly displays the video with the specified layout content according to the video program playing instruction after obtaining the video program playing instruction, and can play multiple video advertisements in a single area or multiple areas at the same time.

[0128] Specifically, the arrangement process is:

[0129] 1) Determine the number of video programs in the video program playing instruction, and obtain the layout data of each video program in turn.

[0130] 2) Get the number of play areas in each layout data. A complete video program can contain multiple play areas. The content played in each area is different, and the file type played may also be different, which may be other types such as pictures or files. The number of areas determines the split screen format of the display, which may be single screen, two split screens, three split screens, etc.

[0131] 3) Obtain the position of each playback area (such as layout coordinate data).

[0132] 4) Determine the display information according to the number of play areas and the position of each play area in each layout data

[0133] Get the layout coordinate data of each video program area in the video program playback instruction, and define a specific display form of the program according to the multiple coordinate data of multiple areas of each program. The structure may be left-right, top-bottom, left-center-right, top-center-bottom, etc., which is defined according to different needs.

[0134] 5) Adjust the displayed information according to the display area of ​​the advertising machine

[0135] For example, the display parameter data of the advertising machine is obtained, and the layout coordinate data in the instruction is further verified to be consistent with the display range of the current advertising machine device. If the overall layout exceeds the screen display range of the actual advertising machine device, the width and height of the corresponding playback area will be compressed and reduced proportionally until it meets the actual screen range and can be displayed on the screen.

[0136] 6) Data summary caching, updating the corresponding video program data (such as stored video programs and / or arrangements) to the data storage of the resource management module to ensure that the processed data can be accessed in a timely and efficient manner.

[0137] 3. Resource Management Module

[0138] The resource management module is used to monitor the resource usage of the advertising machine.

[0139] In addition, the resource management module is also used to store video programs and / or arrangements.

[0140] Specifically, the resource management module may also include: a memory resource management module and a storage resource management module.

[0141] Memory resource management module, used to manage the instantiation of video players.

[0142] The storage resource management module is used to manage the cleanup of expired videos in the local resource library.

[0143] The resource management module provided in this embodiment is mainly responsible for supervising the resource usage of the advertising machine, including memory consumption and storage consumption. After long-term operation, the advertising machine will have a situation where memory is continuously consumed and previous resources are not released. In addition, after the video program is downloaded and played and expires, if excessive resource usage occurs during long-term video playback, the resource usage will be optimized according to the settings.

[0144] Furthermore, the resource management module is further divided into a memory resource management module and a storage resource management module.

[0145] The memory resource management module, also known as the video player management module, mainly consumes memory resources in the instantiation of the video player. Each instantiation of a video player consumes a certain amount of memory space, and the memory resource management module is used to manage the instantiation of the video player.

[0146] The storage resource management module manages all downloaded video files in the advertising machine. Each video file download is supervised by the storage resource management module. If the storage resources are insufficient, the oldest expired files will be automatically cleaned up until the space is sufficient for the size of the file to be downloaded.

[0147] 4. Video program playback module

[0148] The video program playing module is used to initialize the video program in the display area of ​​the advertising machine and play the video program according to the arrangement of the video program arrangement module.

[0149] The process of the video program playing module initializing the video program for the display area of ​​the advertising machine is as follows: the video program playing module performs layered initialization on each playing area of ​​the video program for the display area of ​​the advertising machine.

[0150] The stack includes: a first video program playing layer, a second video program playing layer, and one or more temporary video program playing layers.

[0151] in,

[0152] The first video program playing layer is used to load and play any video program.

[0153] The second video program playing layer is used to load and play the video program immediately following any video program.

[0154] The temporary video program playback layer is used for emergency playback when the first video program playback layer or the second video program playback layer is stuck or processing is slow.

[0155] Specifically, after the advertising machine is started, the first video program playing layer loads the first video program and controls the loaded video program to play in the display area.

[0156] While the first video program playback layer plays the loaded video, the second video program playback layer loads the video program immediately following the video program played by the first video program playback layer, and controls the loaded video program to play in the display area after the video of the first video program playback layer is played.

[0157] While the second video program playback layer is playing the loaded video, after the first video program playback layer places the second video program playback layer, the first video program playback layer notifies the resource management module to recycle the content currently played by the first video program playback layer, and the first video program playback layer loads the video program immediately after the video program played by the second video program playback layer, and after the video of the second video program playback layer is played, controls the loaded video program to be played in the display area.

[0158] If the first video program playback layer or the second video program playback layer is stuck or processed slowly, the temporary video program playback layer loads the video program of the stuck or processed slowly video program playback layer and plays the loaded video program.

[0159] The video program playing module provided in this embodiment is mainly used to initialize the output screen of the video program in the display area (i.e., the visible screen area) of the advertising machine, and at the same time, it is fully displayed and played in the form of a specific layout according to the arrangement processed by the video program arrangement module. Each play area in the program arrangement layout is initialized in the form of a stack.

[0160] Furthermore, the playback area layer is divided into three parts, namely the first video program playback layer, the second video program playback layer, and the temporary video program playback layer.

[0161] The first video program playback layer is mainly the part that performs rendering initialization on the first video program of multiple video programs after the advertising machine is started. It is also the first video program module to be presented and played after startup.

[0162] The second video program playing layer is the second video program ready to play part after the first video program playing layer.

[0163] The temporary video program playback layer is used for emergency playback. It is mainly used to avoid the first video program playback layer or the second video program playback layer being played back and being stuck or taking too long. It is used to prepare for the situation where the first two playback layers cannot switch the playback in a complete manner. There can be multiple temporary video program playback layers, depending on the release of the first two playback layers.

[0164] The specific implementation process is as follows, taking video programs in multiple single play zones as an example:

[0165] 1) When the advertising machine is started, the advertising player program starts running.

[0166] 2) Read all the video program data that need to be played in the resource management module, and obtain the information of the first video program and load it into the first video program playback layer. After loading, start displaying and playing on the screen of the advertising machine device.

[0167] 3) When the first video program playback layer starts to be played, the information of the second video program starts to be loaded into the second video program playback layer at the same time, and the program playback of the first video program playback layer is completed.

[0168] 4) When the first video program playback layer completes the playback of the program, the second video program playback layer is immediately triggered to start playing, and the first video program playback layer is placed after the second video program playback layer, eliminating the process of loading the video program each time, and achieving a seamless switching effect without any lag.

[0169] 5) At the same time, the resource management module is notified to start recycling the first video program playback layer, and the empty first video program playback layer is used to load the third video program information to be played and wait for playback.

[0170] 6) If the recycling and loading process encounters a problem of freezing or slow processing, the temporary video program playback layer can start loading the next video program information to be played and prepare for playback until the first or second video program playback layer is normally recycled or loaded, and the temporary video program playback layer will be recycled by the resource management module after it is played. There can be multiple temporary video program playback layers, and the upper limit of the number is determined by the resource space of the resource management module.

[0171] The video program switching device provided in this embodiment for an advertising machine can avoid the phenomenon of freezing or black screen during the switching transition of a traditional single video program, thereby enhancing the smoothness and experience of people's viewing. The most important thing is that compared with the method of compressing multiple programs into one video, although the freezing or black screen problem in the transition process of video switching is solved, the viscosity between video programs is increased. This method is definitely not suitable for timed programs or programs played on a per-time basis. Each change of the video program must be re-compressed into a new video. The method of this application removes the viscosity between video programs, and can quickly and separately handle multiple playback modes of per-time playback and playback by time period, which is more flexible and practical.

[0172] The present embodiment relates to a video program switching device applied to an advertising machine, the device comprising: a video program processing module, a video program scheduling module, a resource management module, and a video program playback module; the video program processing module is used to receive a video program playback instruction sent by a server, and download and verify the video program based on the video program playback instruction; the video program scheduling module is used to schedule according to the video program playback instruction; the resource management module is used to monitor the resource usage of the advertising machine; the video program playback module is used to initialize the video program for the display area of ​​the advertising machine, and play the video program according to the scheduling of the video program scheduling module. The present embodiment solves the problem of short-term no picture during the switching transition of the advertising machine and the time loss of video loading through the video program processing module, the video program scheduling module, the resource management module, and the video program playback module, and at the same time improves the resource utilization of the advertising machine equipment.

[0173] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0174] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.

Claims

1. A video program switching device used in an advertising machine, characterized in that: The device comprises: a video program processing module, a video program arrangement module, a resource management module, and a video program playing module; The video program processing module is used to receive the video program playing instruction sent by the server, and download and verify the video program based on the video program playing instruction; The video program arrangement module is used to arrange the video program according to the video program playing instruction; The resource management module is used to monitor the resource usage of the advertising machine; The video program playing module is used to initialize the video program in the display area of ​​the advertising machine and play the video program according to the arrangement of the video program arrangement module; The video program processing module includes: a play instruction receiving module, a video program downloading module, a video program checking module, and a local resource library; The playback instruction receiving module is used to receive the encrypted video program playback instruction sent by the server, decrypt the encrypted video program playback instruction, and obtain the video program playback instruction; the video program playback instruction includes one or more video programs, each video program includes video information and layout data; the video information includes a video download address and a video unique identification code; the layout data includes the number of playback areas, the location of each playback area, the playback content and the file type; The video program downloading module is used to determine whether the video involved in the video program playing instruction is stored in the local resource library, and if not, download the involved video from the video download address; The video program verification module is used to parse the unique identification code of the video downloaded by the video program download module, and judge the integrity and correctness of the downloaded video based on the parsed unique identification code and the video unique identification code in the video program playback instruction; The local resource library is used to store the videos downloaded by the video program download module, record the storage time of the videos, and clean up expired videos according to the storage time; The video program arrangement module arranges the video program according to the video program playing instruction, including: The video program scheduling module determines the number of video programs in the video program playing instruction; The video program arrangement module sequentially obtains layout data of each video program; The video program arrangement module determines the display information according to the number of play areas and the position of each play area in each layout data; The video program arrangement module adjusts each display information according to the display area of ​​the advertising machine; The video program arrangement module arranges the video program according to the adjusted presentation information and layout data; The display information is the display range; The video program arrangement module adjusts each display information according to the display area of ​​the advertising machine, including: The video program arrangement module determines whether each display range exceeds the display range of the advertising machine according to the display area of ​​the advertising machine; If it exceeds, the video program arrangement module compresses the display range according to the display range. The video program playing module initializes the video program for the display area of ​​the advertising machine, including: The video program playing module performs overlay initialization on each playing area of ​​the video program according to the display area of ​​the advertising machine; The stack includes: a first video program playback layer, a second video program playback layer, and one or more temporary video program playback layers; in, The first video program playback layer is used to load and play any video program; The second video program playing layer is used to load and play the video program immediately following any of the video programs; The temporary video program playback layer is used for emergency playback when the first video program playback layer or the second video program playback layer is stuck or processed slowly.

2. The device according to claim 1, characterized in that The resource management module is also used to store video programs and / or arrangements.

3. The device according to claim 1, characterized in that After the advertising machine is started, the first video program playing layer loads the first video program and controls the loaded video program to play in the display area; While the first video program playback layer plays the loaded video, the second video program playback layer loads a video program immediately following the video program played by the first video program playback layer, and controls the loaded video program to be played in the display area after the video of the first video program playback layer is played; While the second video program playback layer plays the loaded video, after the first video program playback layer places the second video program playback layer, the first video program playback layer notifies the resource management module to recycle the content currently played by the first video program playback layer, the first video program playback layer loads the video program immediately after the video program played by the second video program playback layer, and after the video of the second video program playback layer is played, controls the loaded video program to be played in the display area; If the first video program playback layer or the second video program playback layer is stuck or processed slowly, the temporary video program playback layer loads the video program of the stuck or processed slowly video program playback layer and plays the loaded video program.

4. The device according to claim 1, characterized in that The video program arrangement module compresses the display range according to the display range, including: The video program arrangement module determines the length y1 and width x1 of the display range; The video program arrangement module determines the length y2 and width x2 of the display range The video program arrangement module calculates the length difference = y2-y1; The video program arrangement module calculates the width difference value = x2-x1; If the length difference is positive and the width difference is negative or 0, the video program scheduling module determines and wide compression threshold If the width compression value is greater than α x , the video program arrangement module compresses the width of the display range to Compress the length of the display range to If the width compression value is not greater than α x , the video program arrangement module compresses the width of the display range to Compress the length of the display range to y1; If the length difference is negative or 0, and the width difference is positive, the video program scheduling module determines and long compression threshold If the length compression value is greater than α y , the video program arrangement module compresses the length of the display range into Compress the width of the display range to If the width compression value is not greater than α y , the video program arrangement module compresses the length of the display range into Compress the width of the display range to x1; If the length difference is positive and the width difference is positive, the video program scheduling module determines and The video program arrangement module determines the relationship between the absolute value of the length compression value and the absolute value of the width compression value. If the absolute value of the length compression value is not greater than the absolute value of the width compression value, the video program arrangement module compresses the length of the display range to The width of the display range is compressed to x1; if the absolute value of the length compression value is greater than the absolute value of the width compression value, the video program scheduling module compresses the width of the display range to Compress the length of the display range to y1.

5. The device according to claim 4, characterized in that The resource management module includes: a memory resource management module and a storage resource management module; The memory resource management module is used to manage the instantiation of the video player; The storage resource management module is used to manage the clearing of expired videos in the local resource library.