Video replacement notification processing method and device, storage medium and electronic equipment

By monitoring the data change messages published by the video file, analyzing the target video logo and generating a replacement notification, the problem of low accuracy of video replacement notifications is solved, timely and accurate video replacement is achieved, and the operation efficiency and user experience of the video platform are improved.

CN120455742APending Publication Date: 2025-08-08HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510716528.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In the prior art, the accuracy of video substitution notification is low, resulting in the untimely and inaccurate video substitution process.

Method used

By monitoring the release of the current replacement file, obtaining data change messages, analyzing the target video identifier, obtaining a historical replacement list, and generating and sending target video replacement notifications when the version numbers are inconsistent, the intermediate processing device is used to decouple the video replacement notifications and business logic.

Benefits of technology

It improves the timeliness and accuracy of video substitution notifications, reduces the complexity of business access, and ensures the operation efficiency and user experience of the video platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455742A_ABST
    Figure CN120455742A_ABST
Patent Text Reader

Abstract

The invention discloses a video replacement notification processing method and device, a storage medium and electronic equipment. The method comprises the steps of obtaining a data change message in response to release of a current replacement finished product file; analyzing the data change message to obtain a target video identifier of the target video; on the basis of the target video identifier, obtaining a historical replacement detail list having a mapping relationship with the target video identifier; generating a target video replacement notification under the condition that the attribute information of the historical replacement detail list shows that the video file version number in the historical replacement detail list is inconsistent with the video file version number corresponding to the current replacement finished file in the current replacement detail list; and sending the target video replacement notification to the target service party based on the target routing device. According to the method and the device, the technical problem of relatively low accuracy in the processing process of the video replacement notification in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video processing, and in particular to a method and device for processing video replacement notification, a storage medium, and an electronic device. Background Art

[0002] With the growth of online video content, video platforms face the challenge of effectively managing and distributing diverse video files. Each video may need to adapt to different playback devices and network conditions. For example, different video platforms may require production files with varying resolutions and encoding formats. Furthermore, customized video file formats, such as m3u8, mp4, and ts files, are often required for different playback terminals, such as mobile apps, PC web pages, and large screens like TVs.

[0003] When video content changes, such as due to security risks or a change in advertising sponsors, the video platform must completely replace the associated finished files. This process is called a video replacement. Traditional methods for notifying the platform of a video replacement involve sending a notification to the business side when submitting a video replacement transcoding task.

[0004] However, after the user uploads the source video file and initiates the transcoding task, the video file needs to go through processes such as transcoding, review, and content distribution before it can be replaced. If a replacement notification is sent directly after the transcoding task is initiated, it is easy for the video replacement notification to be sent too early, resulting in a technical problem of low accuracy in the processing of the video replacement notification.

[0005] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention

[0006] The embodiments of the present application provide a method and apparatus for processing a video replacement notification, a storage medium, and an electronic device, so as to at least solve the technical problem of low accuracy that occurs during the processing of the video replacement notification.

[0007] According to one aspect of an embodiment of the present application, a method for processing a video replacement notification is provided, comprising: obtaining a data change message in response to the release of a current replacement finished file, wherein the data change message is used to indicate a change operation to be performed on a field in a video file relationship table; obtaining a target video identifier of a target video by parsing the data change message, wherein a binding relationship exists between the target video identifier and the target video and the finished file of the target video; based on the target video identifier, obtaining a historical replacement detail table that has a mapping relationship with the target video identifier; generating a target video replacement notification when attribute information of the historical replacement detail table indicates that the video file version number in the historical replacement detail table is inconsistent with the video file version number corresponding to the current replacement finished file in the current replacement detail table; and sending the target video replacement notification to a target business party based on a target routing device.

[0008] Optionally, the above-mentioned obtaining of a historical replacement film detail list having a mapping relationship with the target video identifier based on the target video identifier includes: obtaining a finished film file set having a mapping relationship with the target video identifier based on the target video identifier; and determining, from the finished film file set, historical replacement film finished film files that have been released on the target video platform based on the target video platform identifier, wherein the historical replacement film detail list includes file description information of each file in the historical replacement film finished film files.

[0009] Optionally, when the attribute information in the above-mentioned historical film replacement details table indicates that the video file version number in the historical film replacement details table is inconsistent with the video file version number corresponding to the current film replacement finished file in the current film replacement details table, a target video film replacement notification is generated, including: when the attribute information indicates that the historical film replacement details table is empty, obtaining the current film replacement status of the target video platform at the current moment; generating the current film replacement details table based on the target video identifier, the current film replacement status and the video file version number corresponding to the current film replacement finished file; generating the target video film replacement notification based on the current film replacement details table.

[0010] Optionally, the above method also includes: when the attribute information indicates that the historical film replacement details list is not empty, comparing the first video file version number in the historical film replacement details list with the second video file version number corresponding to the current film replacement finished file to obtain a first comparison result; when the first comparison result indicates that the first video file version number is inconsistent with the second video file version number, generating a current film replacement details list; based on the current film replacement details list, generating a target video film replacement notification.

[0011] Optionally, the above method also includes: when the attribute information indicates that the historical film replacement details table is not empty, comparing the first video file version number in the historical film replacement details table with the second video file version number corresponding to the current film replacement finished file to obtain a first comparison result; when the first comparison result indicates that the first video file version number is consistent with the second video file version number, comparing the third video file version number in the historical film replacement details table with the fourth video file version number corresponding to the current film replacement finished file to obtain a second comparison result; when the second comparison result indicates that the third video file version number is inconsistent with the fourth video file version number, generating a current film replacement details table; based on the current film replacement details table, generating a target video replacement notification.

[0012] Optionally, the above-mentioned obtaining the target video identifier of the target video by parsing the data change message includes: obtaining a video identifier set by parsing the data change message; pushing the video identifiers in the video identifier set to the first message queue in the intermediate processing device, wherein the intermediate processing device is used to generate a target video replacement notification and interaction between the media service side and the target business party; obtaining a target number of video identifiers from the first message queue at a preset time interval; deduplicating the target number of video identifiers based on the hash value to obtain deduplicated video identifiers, wherein the deduplicated video identifiers include the target video identifier.

[0013] Optionally, the above-mentioned target video replacement notification is sent to the target business party based on the target routing device, including: pushing the target video replacement notification to the target routing device; in response to receiving the target video replacement notification, matching the second message queue associated with the target business party based on the type of the target routing device and the first value of the routing key in the message management server; sending the target video replacement notification to the second message queue; and sending the target video replacement notification to the target business party through the second message queue.

[0014] Optionally, the above method also includes: when it is determined that the target video replacement notification is to be sent to the newly added business party, adding a new message queue associated with the newly added business party; in response to receiving the target video replacement notification, matching the new message queue in the message management server based on the type of the target routing device and the second value of the routing key; and sending the target video replacement notification to the newly added business party through the new message queue.

[0015] According to another aspect of the embodiment of the present application, a device for processing video replacement notification is also provided, including: a first acquisition unit, for acquiring a data change message in response to the release of a current replacement finished file, wherein the data change message is used to indicate a change operation to be performed on a target field in a video file relationship table; a parsing unit, for obtaining a target video identifier of a target video by parsing the data change message, wherein a binding relationship exists between the target video identifier and the target video and the finished file of the target video; a second acquisition unit, for acquiring a historical replacement detail table that has a mapping relationship with the target video identifier based on the target video identifier; a first processing unit, for generating a target video replacement notification when attribute information of the historical replacement detail table indicates that the video file version number in the historical replacement detail table is inconsistent with the video file version number corresponding to the current replacement finished file in the current replacement detail table; a sending unit, for sending the target video replacement notification to a target business party based on a target routing device.

[0016] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is used to execute the above-mentioned video replacement notification processing method when run by an electronic device.

[0017] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program that implements the steps of the above method when the computer program is executed by a processor.

[0018] According to another aspect of the embodiments of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the video replacement notification processing method through the computer program.

[0019] By adopting the above-mentioned embodiment provided by the present application, by monitoring the release of the current replacement finished film file, obtaining the data change message, and parsing the target video identifier therefrom, the target video identifier is used to obtain the historical replacement finished film file that has been released under the target video; by comparing the video file version number in the historical replacement film detailed table composed of the historical replacement finished film files with the video file version number in the current replacement film detailed table, the replacement event is accurately identified, and the replacement notification is generated and pushed in a targeted manner. In other words, by introducing the intermediate processing device, not only the decoupling of the video replacement notification mechanism and the business logic is achieved, but also the timing of the generation of the video replacement notification is ensured, a method for intelligently processing the video replacement notification is realized, and the technical effect of improving the timeliness and accuracy of the video replacement notification processing process is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0021] Figure 1 2 is a schematic diagram of an application scenario of an optional method for processing video replacement notification according to an embodiment of the present application;

[0022] Figure 2 is a flowchart of an optional method for processing video replacement notification according to an embodiment of the present application;

[0023] Figure 3 This is an overall architecture diagram of an optional method for processing video replacement notification according to an embodiment of the present application;

[0024] Figure 4 This is an optional flow chart of media file generation according to an embodiment of the present application;

[0025] Figure 5 This is an example of an optional video replacement notification message according to an embodiment of the present application;

[0026] Figure 6 This is an example of an optional two-version film replacement process according to an embodiment of the present application;

[0027] Figure 7 This is an example of an optional three-version film replacement process according to an embodiment of the present application;

[0028] Figure 8 1 is a schematic structural diagram of an optional apparatus for processing video replacement notification according to an embodiment of the present application;

[0029] Figure 9 It is a schematic structural diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] The technical solutions in the embodiments of this application will comply with legal provisions during implementation. When performing operations in accordance with the technical solutions in the embodiments, the data used will not involve user privacy. While ensuring that the operation process is compliant and legal, the security of the data is guaranteed.

[0033] In addition, when the above embodiments of this application are applied to specific products or technologies, user permission or consent must be obtained, and the collection, use and processing of relevant data must comply with the relevant regulations and standards of the relevant country or region.

[0034] According to one aspect of the embodiment of the present application, a method for processing a video replacement notification is provided. As an optional implementation, the above-mentioned method for processing a video replacement notification can be applied to, but is not limited to, Figure 1 The application scenario shown in Figure 1 In the application scenario shown, the target terminal 102 can, but is not limited to, communicate with the server 106 via the network 104, and the server 106 can, but is not limited to, perform operations on the database 108, such as write data operations or read data operations. The above-mentioned target terminal 102 can, but is not limited to, include a human-computer interaction screen, a processor, and a memory. The above-mentioned human-computer interaction screen can, but is not limited to, be used to display the finished files under the target video played on different video platforms on the target terminal 102. The above-mentioned processor can, but is not limited to, be used to respond to the above-mentioned human-computer interaction operations, perform corresponding operations, or generate corresponding instructions and send the generated instructions to the server 106. The above-mentioned memory is used to store relevant processing data, such as data change messages, target video identifiers, and target video replacement notifications.

[0035] Optionally, in this embodiment, the target terminal may be a terminal configured with a target client, which may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, an MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a video client, an instant messaging client, a browser client, an education client, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network, and a wide area network, and the wireless network includes: Bluetooth, WIFI, and other networks that implement wireless communication. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server.

[0036] The technical solution of this application can be widely applied to various video content management and service scenarios, especially in large-scale video platforms and high-concurrency scenarios. The following are specific examples of the video replacement process in several application scenarios:

[0037] (1) Video content security review and replacement: During the operation of the video platform, some video content may be found to have security risks, such as illegal information or copyright infringement, and needs to be replaced quickly. The technical solution of this application can monitor the changes in file status in real time. Once the replacement process is started, the replacement status can be accurately judged and the relevant business parties can be notified in time to update the data or adjust the logic. This ensures that the replacement operation after the content security review can be reflected in all business processes in a timely manner, such as user interface display, search results, recommendation system, etc., thereby avoiding legal risks and reduced user experience caused by content violations;

[0038] (2) Changes in video advertising sponsors: Video content on video platforms usually carries advertising sponsor information. When the sponsor changes, all finished files under the video need to be replaced to reflect the new sponsor information. The technical solution of this application can accurately identify the replacement of finished files caused by changes in advertising sponsors through finished file version number comparison and status tracking, and promptly notify business parties such as advertising management systems and video players to update advertising information, ensuring that the display of advertisements is consistent with the latest business cooperation, and avoiding the impact of advertising effects and commercial benefits due to lagging advertising information;

[0039] (3) Video content update and optimization: Continuous optimization of video content is also a common scenario, such as fixing errors in videos, improving video clarity, optimizing video encoding efficiency, etc. These optimizations usually require replacing the finished video files. The technical solution of this application can accurately determine the update status of video content. Through precise version number comparison and status analysis, it ensures that the status changes of the finished files after video updates or optimization are promptly notified to various business modules, such as video playback modules, recommendation systems, and content management systems, so that they can make adjustments based on the latest video content, such as optimizing video streaming strategies, updating recommended content, etc., to maintain consistency and high quality of services;

[0040] (4) Synchronization of platform videos: In the operation of video platforms, video content needs to be synchronized on multiple terminals and platforms, such as small screens (smartphones, tablets), large screens (TVs, computer monitors), etc. The accuracy and timeliness of video replacement notifications are crucial to the synchronization of content on multiple platforms. The technical solution of this application can ensure the accurate synchronization of video replacement information across multiple platforms through mechanisms such as monitoring database changes, version number comparison, and status analysis, and promptly notify the business parties of each platform to perform file replacement, thereby avoiding user experience differences and business logic errors caused by information asynchrony between platforms.

[0041] In summary, the technical solution of this application can be applied to a variety of different scenarios. Through precise status tracking, version number comparison and efficient message delivery mechanism, it can ensure the accuracy and timeliness of video replacement notifications, improve the business collaboration capabilities and user experience quality of the video platform, especially when processing large-scale video content and high concurrency requirements, it demonstrates strong technical advantages and practicality.

[0042] As described in the above embodiments, the conventional video replacement notification processing process has the problem of inaccurate notification timing. To solve this problem, the present application proposes a method for processing video replacement notification. Figure 2 4 is a flowchart of a method for processing a video replacement notification according to an embodiment of the present application, and the flow includes the following steps S202 to S210.

[0043] It should be noted that the video replacement notification processing method shown in steps S202 to S210 can be executed by, but not limited to, an electronic device, wherein the electronic device can be, but not limited to, Figure 1 The target terminal or server is shown.

[0044] Step S202: In response to the release of the current replacement finished film file, a data change message is obtained, wherein the data change message is used to indicate that a change operation is performed on a field in the video file relationship table;

[0045] Step S204: obtaining a target video identifier of the target video by parsing the data change message, wherein the target video identifier is bound to the target video and the finished file of the target video;

[0046] Step S206: Based on the target video identifier, a detailed list of historical replacement videos that has a mapping relationship with the target video identifier is obtained;

[0047] Step S208: If the attribute information of the historical replacement film list indicates that the video file version number in the historical replacement film list is inconsistent with the video file version number corresponding to the current replacement film finished file in the current replacement film list, a target video replacement notification is generated;

[0048] Step S210: Based on the target routing device, a target video replacement notification is sent to the target service party.

[0049] Before explaining the technical solution of the present application, a brief introduction to the professional terms or terminology involved in the embodiments of the present application is first given.

[0050] Video replacement: This can, but is not limited to, replacing the finished file under a video while keeping the video ID unchanged. This usually occurs when there is a security risk in the video content or when the advertising sponsor changes.

[0051] Video file relationship table: A table in the database that records the relationship between a video and its finished file, including information such as file status (such as published or unpublished);

[0052] Target video replacement notification: A message containing detailed information about the replacement file (such as replacement status and version number), used to notify the business party of the occurrence of video replacement;

[0053] Target business parties: Business systems or components that receive and process notifications for replacement videos, such as AI point analysis and video commentary.

[0054] Source files: refers to the source files submitted to the video platform by the production teams of TV series, TV dramas and variety shows. The source files generally have a high bit rate and are not in a uniform file format. Common file formats generally include: m4v, mov, mp4, etc. The clear source materials and intermediate materials mentioned in the embodiments of this application are all source files. The clear source materials refer to the original source without interstitial advertisements or screen compression. Intermediate materials refer to the source with advertisement videos or screen compression inserted on the basis of the original source.

[0055] Finished files: These are files with different resolutions and bitrates that are transcoded according to a configured unified template to reduce bandwidth costs and improve the playback experience. They are used by online users for video viewing. Common file formats include m3u8 and mp4.

[0056] Video platform: in this embodiment, including but not limited to small-screen platforms and large-screen platforms, for example, small-screen terminals such as APP terminals, PCWeb terminals, PC terminals, and large-screen terminals such as TVs;

[0057] MQ: refers to message middleware, also known as message queue. Common message middleware include RabbitMQ, RocketMQ, Kafka, etc.

[0058] MQ message: refers to the message content itself, which is also the subject of message middleware push and consumption. It is generally a string in JSON or XML format.

[0059] Producer: refers to the party that sends MQ messages;

[0060] Consumer: refers to the party that monitors the message queue and consumes MQ messages;

[0061] Exchange: refers to the core component of RabbitMQ, responsible for receiving messages sent by producers and distributing them to corresponding queues according to predefined rules;

[0062] Binlog: refers to the binary log file of the database business table, which records the data content changes of the business table;

[0063] Thread: refers to the smallest unit that the operating system can schedule operations.

[0064] For ease of understanding, let's first combine Figure 3 The overall architecture diagram of the video replacement notification shown briefly introduces the processing method of the above-mentioned video replacement notification.

[0065] like Figure 3 As shown, the processing process of video replacement notification can be, but is not limited to, occurring in the interaction process between the media production service, the intermediate processing device and the business party, wherein the above steps S202 to S208 are processes executed in the intermediate processing device, and step S210 is a process executed on the business side.

[0066] On the media production service side, the main processes include manual transcoding, video content review, CDN (Content Delivery Network) distribution, and finished file release. CDN distribution is a technology that caches content (such as web pages, images, videos, and files) on servers in multiple geographical locations. When a user requests access to a piece of content, the CDN redirects the request to the server closest to the user based on factors such as the user's location and network conditions, quickly delivering the content to the user.

[0067] Among them, it can be but not limited to Figure 4 As shown in the flowchart, the file production process on the media generation service side is as follows:

[0068] S402, the user uploads the source file;

[0069] The source file here may be, but is not limited to, a new video file with changed content, for example, the first video of an entertainment program.

[0070] S404, submitting the transcoding task;

[0071] Transcoding is performed to address compatibility issues for the same video across different devices, platforms, and network environments, optimize storage space and transmission efficiency, improve video quality, and meet specific user needs. By properly utilizing transcoding technology, we can fully leverage the value of video content and provide users with a better viewing experience.

[0072] S406, generating a transcoded finished file;

[0073] like Figure 4 As shown, it includes finished files with different resolutions, including standard definition, high definition, ultra-high definition, and Blu-ray.

[0074] S408, reviewing the transcoded finished file;

[0075] S410, distributing the finished product file through the CDN network;

[0076] S412, release the finished product file.

[0077] After the current replacement finished file is released, the target video replacement notification is generated and sent through the processes of Binlog message processing, message queue RQueue processing and file version number comparison in the intermediate processing device. The following will describe in detail the various steps in the intermediate processing device in combination with specific embodiments.

[0078] After generating the target video replacement notification, the target video replacement notification (replacement MQ message) is sent to the switch (which can also be understood as the target routing device) of the RabbitMQ cluster (which can also be understood as the cluster of the message management server). RabbitMQ (message management server) will match the queue that needs to push the replacement notification message according to the type of switch and the routing key, and push a replacement MQ message to each queue.

[0079] It should be noted that the execution steps on the media generation server side and the business side are performed synchronously.

[0080] In addition, each source file corresponds to a video ID, and when the content of the source file is modified and a new source file is obtained, its video ID remains unchanged. At the same time, a binding relationship exists between the finished file after transcoding the source file and the video ID. When a new source file is submitted for transcoding, a binding relationship also exists between the finished file after transcoding and the video ID. However, the task IDs of the finished file after transcoding the source file and the finished file after transcoding the new source file are different.

[0081] During the video replacement process, the release and cancellation of the current replacement finished file will adjust the status field of the video file relationship table in the database, for example, changing the file status before the replacement to canceled, or changing the file status after the replacement to released.

[0082] When the data in the video file relationship table of the database changes, MySql will generate a Binlog log message, and the intermediate processing device in this embodiment will start the first thread as a consumer to monitor the Binlog messages of the video file relationship table in real time, thereby transmitting the data change messages of the video file relationship table to the intermediate processing device.

[0083] Among them, Binlog message is a binary record in the MySql database, which is used to describe the change operation on the database. It is stored in binary format and contains all data change operations of the database.

[0084] After the first thread detects a new data change message (Binlog message), it parses the message body and obtains the video ID (also known as the target video ID) in the message. Based on the target video ID, it searches the video replacement list for the current video platform (large screen, small screen) and finds the historical replacement list. This list can also be understood as a historical replacement list. The historical replacement list contains file description information for all finished files generated during the historical replacement operations that occurred before the current replacement, such as file transcoding IDs and video file version numbers.

[0085] By comparing the video file version number recorded in the historical replacement film detail table with the video file version number corresponding to the current replacement film finished file, a comparison result is obtained. When the comparison result indicates that the two are inconsistent, a target video replacement notification is generated.

[0086] It can be seen that the key to the embodiment of the present application is to achieve decoupling between video replacement notification and business logic by adding an intermediate processing device independent of the business logic, thereby reducing the complexity and cost of business access and improving the overall operating efficiency of the video platform.

[0087] During specific implementation, the system first monitors and parses the Binlog messages of the database to identify the signal of the change of the finished file (transcoded file) under the target video ID. Subsequently, through the target video ID, the system accesses the historical replacement details table to analyze the replacement status of the video. If the system finds that the version number of the current finished file does not match the version number in the historical record, it confirms that the video has been replaced. At this time, a detailed target video replacement notification will be generated, including key information such as replacement status and version number. Finally, through the MQ switch, the video replacement notification is sent to all target business parties who are concerned about the video replacement event. The processing of the target business party includes but is not limited to AI point analysis, video barrage processing, etc., to ensure that the business party can respond to changes in video content in a timely and accurate manner, reducing unnecessary waste of resources and processing delays.

[0088] That is, the target business party in this embodiment includes at least one business party. After being processed by the intermediate processing device, the video replacement notification is directly sent to the target business party, avoiding the business party's judgment on the variability of the content of the source file, realizing the decoupling of the video replacement notification from the business logic, and improving the accuracy of the video replacement notification and the overall scalability of the system. Compared with the traditional replacement notification method based on transcoding tasks or file release status changes, the technical solution of this application can avoid premature or inaccurate notifications, while reducing the development cost and complexity of the business party's access to replacement notifications.

[0089] By adopting the above method, by monitoring the release of the current replacement finished film file, obtaining the data change message, and parsing the target video identifier from it, using the target video identifier, obtaining the historical replacement finished film file that has been released under the target video; by comparing the video file version number in the historical replacement film detailed table composed of the historical replacement finished film files with the video file version number in the current replacement film detailed table, accurately identifying the replacement film event, generating and pushing the replacement film notification in a targeted manner. In other words, by introducing the intermediate processing device, not only the decoupling of the video replacement film notification mechanism and the business logic is achieved, but also the timing of the generation of the video replacement film notification is ensured, a method for intelligently processing the video replacement film notification is realized, and the technical effect of improving the timeliness and accuracy of the video replacement film notification processing process is achieved.

[0090] As an optional example, the above-mentioned obtaining, based on the target video identifier, a detailed list of historical replacement films that has a mapping relationship with the target video identifier includes:

[0091] Based on the target video identifier, a set of finished product files having a mapping relationship with the target video identifier is obtained;

[0092] Based on the target video platform identifier, the historical substitute finished files of the target video that have been released on the target video platform are determined from the finished file set, wherein the historical substitute detailed list includes file description information of each file in the historical substitute finished files.

[0093] After receiving the data change message, the system parses the message body to obtain the target video ID, and then queries the finished file record in the database. The finished file record records the file description information of all finished files under the target video, such as the video ID, video platform ID, file version number of the video file, etc.

[0094] According to the target video platform ID, a detailed set of historical substitute films of the target video that have been released on the target video platform is determined from the finished file set, wherein the detailed set of historical substitute films includes the finished files of historical substitute films.

[0095] The historical replacement details table not only records the status of historical video replacements, but also stores detailed descriptive information such as the version number, release timestamp, file format, resolution, etc. of each finished file. This information is crucial for accurately judging the progress of video replacements and is also necessary data for generating replacement notifications.

[0096] For example, suppose the small-screen video platform receives a status change message for the finished file of Video A. The system first captures and parses the corresponding Binlog message, extracting the video ID of Video A as the target video identifier. The system then queries the database to obtain all the finished file information associated with the video ID, forming a finished file collection for Video A. This collection includes finished file records for Video A in different resolutions (such as SD, HD, UHD, and Blu-ray), different encoding formats (such as H264 and H265), and different platforms (such as small-screen and large-screen).

[0097] In order to generate a replacement notification for a specific platform, the system then filters out all the published finished files corresponding to the platform ID on the small screen from the finished file collection to form a historical replacement finished file collection. The historical replacement details table stores detailed descriptions of these finished files, including the version number, release timestamp, file format, etc. of each file. The system compares the version number of the current replacement finished file with the version number in the historical replacement details table to determine the replacement status of video A on the small screen. If there is a difference between the version number of the current finished file and the version number in the historical record, the system will determine that video A is in the replacement state on the small screen; otherwise, it means that the replacement has been completed.

[0098] As can be seen from the above examples, through multi-step precision screening and version comparison, the system can accurately identify and determine the status of video replacements within a massive volume of finished files, ensuring the accuracy and relevance of replacement notifications. Furthermore, the existence of the historical replacement details table not only provides detailed information on historical file versions but also provides a reliable data source for determining replacement status, greatly improving notification accuracy and processing efficiency.

[0099] As an optional example, when the attribute information of the historical replacement film list indicates that the video file version number in the historical replacement film list is inconsistent with the video file version number corresponding to the current replacement film finished file in the current replacement film list, generating the target video replacement notification includes:

[0100] When the attribute information indicates that the historical replacement list is empty, the current replacement status of the target video platform at the current moment is obtained;

[0101] Generate a current substitute video detail list based on the target video identifier, the current substitute video status, and the video file version number corresponding to the current substitute video finished file;

[0102] Generate target video replacement notification based on the current replacement video list.

[0103] In this embodiment, if, when querying the database, it is found that the target video has no past replacement records on the target video platform (i.e., the historical replacement list is empty), it is necessary to determine the replacement status of the video platform. Specifically, the replacement status of the target video on the video platform can be determined in the following ways:

[0104] In an optional embodiment, after obtaining a set of all published finished files under the target video according to the target video ID, the current replacement status of the target video on the video platform can be determined by, but not limited to, the following methods:

[0105] S11, grouping the finished file set according to the video platform ID;

[0106] The video platforms here include but are not limited to small screens and large screens, and the collection of released finished files for small screens and the collection of released finished files for large screens are obtained respectively.

[0107] S12, obtaining all file version numbers of all published finished files of the target video on a single video platform;

[0108] S13-1, if the finished product file released on the video platform has only one file version number, it is determined that the current video platform is in a state of being replaced;

[0109] S13-2, if the video platform has released a finished file with multiple different file version numbers, it is determined that the current video platform is in a replacement completion state.

[0110] It should be noted that the reason for judging the replacement status of the video platform is because the replacement status is the information contained in the target video replacement notification. After determining the replacement status, it lays the foundation for the subsequent generation of the target video replacement notification.

[0111] In another optional embodiment, the current video platform's replacement status may be determined based on the obtained current minimum file version number and the current maximum file version number in the video platform.

[0112] Specifically, if the current minimum file version number is equal to the current maximum file version number, the current video platform is in a state of completing the film replacement; if there are two or more file version numbers in the current video platform, it is determined that the video platform is in a state of film replacement.

[0113] In addition, if only sequential switching operations are initiated within a short period of time, two versions of the target video will exist during the switching process. For details, please refer to Figure 6 The following example shows two versions of the video switching. If two video switchings are initiated in a short period of time, the target video may have three versions of the resolution file at the same time during the switching process. For details, please refer to Figure 7 The following are example images of three versions of replacement films.

[0114] It should be noted that Figure 6 and Figure 7 This is just an example of the replacement process and does not represent the complete process of a replacement. In the actual replacement process, the old finished files will be replaced one by one according to the clarity. For example, if after transcoding Figure 6 The shown standard definition files (current replacement finished files) have a total of 10 finished files, so 10 video replacement notifications need to be generated to replace the old finished files with the 10 standard definition finished files that have been recently transcoded and released.

[0115] After determining the replacement status of the target video in the current video platform in the above manner, based on the target video identifier, the current replacement status, the video file version number corresponding to the current replacement finished file, the task ID and other information, the following is generated: Figure 5 The target video replacement notification is shown.

[0116] Obviously, since the historical replacement film detail table is empty, the video file version number of the historical finished file is also empty, so the video file version number in the historical replacement film detail table is inconsistent with the video file version number (non-empty) corresponding to the current replacement film finished file.

[0117] In this case, the target video ID, platform ID, replacement status, minimum version number, maximum version number, minimum clear source material ID, maximum clear source material ID, minimum intermediate material ID, maximum intermediate material ID and other information are assembled into a new replacement detail list (which can also be understood as the current replacement detail list) and directly inserted into the current replacement detail list to generate a target video replacement notification.

[0118] Through the above embodiment, when processing the initial notification of video replacement and the situation where there is no historical record, the replacement status can be evaluated in real time, and the video replacement notification can be accurately generated at the early stage of video content change, thereby improving the accuracy of the generation timing of the replacement notification.

[0119] This processing method not only solves the problem of inaccurate video replacement notifications caused by lack of historical data, but also improves the business side's response speed and processing efficiency to replacement events.

[0120] As another optional example, the above method further includes:

[0121] When the attribute information indicates that the historical replacement film list is not empty, comparing the first video file version number in the historical replacement film list with the second video file version number corresponding to the current replacement film finished file to obtain a first comparison result;

[0122] If the first comparison result indicates that the version number of the first video file is inconsistent with the version number of the second video file, generating a current replacement video list;

[0123] Generate target video replacement notification based on the current replacement video list.

[0124] In this embodiment, after finding the historical film replacement details table of the target video platform from the video film replacement details record table according to the target video ID, it is first determined whether the historical film replacement details table of the target video platform is empty. If it is not empty, it is arranged in reverse order according to the film replacement details creation time, and then the most recent historical film replacement details record is taken, and the minimum version number (which can also be understood as the first video file version number) and the maximum version number in the most recent historical film replacement details record are obtained.

[0125] At the same time, a video file version number set of each substitute finished film file in the current substitute finished film file is obtained, and the minimum video file version number (also known as the second video file version number) is determined from the video file version number set. The current substitute finished film file includes at least one finished film file.

[0126] Compare the first video file version number with the second video file version number. If the two are inconsistent, directly generate the current replacement video detailed list based on the file description information in the current replacement video finished file and directly insert the current replacement video detailed list. Finally, generate the target video replacement notification based on the current replacement video detailed list.

[0127] For example, suppose the first episode of a variety show corresponds to video file C, and there is a historical replacement record on the large-screen platform of the target application. When the system detects a new change in the finished file status of video file C, the first step is to read the last finished file version number (first video file version number) from the historical replacement details table; then compare the first video file version number with the video file version number (second video file version number) in the current finished file set. If there is a version difference between the two, it is determined that the content of video file C has been updated again.

[0128] At this point, a current replacement list is generated, which contains the video ID of video file C, the latest replacement status (e.g., "Replacement Completed" or "Replacement in Progress"), and the version number range of the current replacement file, including the minimum and maximum version numbers. This list provides detailed data support for subsequent notifications.

[0129] Based on the current replacement list, a notification for the target video is constructed and pushed via the RabbitMQ exchange to all subscribed parties. For example, upon receiving the notification, the AI point analysis system recalculates the point data for Video C based on the latest finished file version number to ensure its accuracy and timeliness.

[0130] The technical solution in this embodiment enables precise management and efficient delivery of video replacement notifications when video notifications in the historical replacement list are updated. This approach compares video file version numbers, intelligently updates replacement status, and generates instant notifications. This solution not only improves the accuracy of video replacement notifications and reduces system overhead, but also ensures that businesses can make timely adjustments based on the latest data, significantly optimizing the video platform's operations and enhancing the user experience.

[0131] As an optional example, the above method further includes:

[0132] When the attribute information indicates that the historical replacement film list is not empty, comparing the first video file version number in the historical replacement film list with the second video file version number corresponding to the current replacement film finished file to obtain a first comparison result;

[0133] If the first comparison result indicates that the first video file version number is consistent with the second video file version number, the third video file version number in the historical replacement film detail table is compared with the fourth video file version number corresponding to the current replacement film finished product file to obtain a second comparison result;

[0134] If the second comparison result indicates that the third video file version number is inconsistent with the fourth video file version number, generating a current replacement video detail list;

[0135] Generate target video replacement notification based on the current replacement video list.

[0136] In addition to generating the target video replacement notification in the above embodiment, when the historical replacement list is not empty and the first video file version number is consistent with the second video file version number, the maximum version number in the most recent historical replacement list (which can also be understood as the third video file version number) and the maximum version number in the current replacement finished file (which can also be understood as the fourth video file version number) can be further compared. If the third video file version number is inconsistent with the fourth video file version number, the current replacement list is generated based on the file description information of the current replacement finished file, and finally the target video replacement notification is generated.

[0137] It should be noted that if the second comparison result indicates that the third video file version number is consistent with the fourth video file version number, it means that both the minimum version number and the maximum version number have not changed. At this time, it will be determined that the film replacement process has not changed, and the entire film replacement processing flow will be terminated.

[0138] When using the technical solution in this embodiment to process video replacement notifications, accurate capture of video replacement status changes is achieved through multi-level version number comparison. Especially when the target video already has a historical replacement record, this deep version number comparison mechanism intelligently judges subtle changes in the video replacement status, ensuring the timeliness and necessity of updating replacement notifications, avoiding repeated and invalid notifications to business parties, and reducing resource waste.

[0139] As an optional implementation, the above-mentioned process of parsing the data change message to obtain the target video identifier of the target video includes:

[0140] By parsing the data change message, a video identifier set is obtained;

[0141] Pushing the video identifiers in the video identifier set to a first message queue in an intermediate processing device, wherein the intermediate processing device is used to generate a target video replacement notification and interaction between the media service side and the target business party;

[0142] Obtaining a target number of video identifiers from the first message queue at a preset time interval;

[0143] Based on the hash value, a target number of video identifiers are deduplicated to obtain deduplicated video identifiers, wherein the deduplicated video identifiers include the target video identifier.

[0144] In combination with the description in the above embodiment, it can be seen that after uploading the source film to be replaced (the source file after the content has changed) to the video platform through the media production service and submitting the transcoding task, the system will obtain the system time when the user submits the transcoding, accurate to milliseconds, and obtain a 13-digit timestamp, and determine the timestamp as the video file version number of this transcoding task.

[0145] The transcoding service will transcode the source file after the content has changed according to the standard template, generating multiple substitute finished files, which will be marked with version number information.

[0146] Once the replacement transcoding task is approved, the media production service will distribute all the replacement finished files to the CDN origin server and edge nodes. Once the replacement finished files are distributed through the CDN, they will be replaced one by one according to the resolution until all the historical replacement finished files are replaced.

[0147] In an optional embodiment, during the video replacement process, both the release and cancellation of the current replacement finished file will perform the following processing on the video file relationship table in the database:

[0148] In response to the release of the current substitute finished film file, adjusting the value of the target field in the video file relationship table;

[0149] In response to a change in the value of the target field, a data change message is generated.

[0150] That is to say, during the video replacement process, the status field in the database video file relationship table will be adjusted when the file is released or unreleased. For example, the file status before the replacement will be changed to unreleased, and the file status after the replacement will be changed to released, etc.

[0151] When data in the database's video file relationship table changes, MySQL generates a Binlog message. The intermediate processing device then activates a first thread as a consumer to listen for Binlog messages from the video file relationship table. When the first thread detects a new Binlog message, it parses the message body and extracts at least one video ID from the message to form a video ID set.

[0152] Push the video IDs in the obtained video identification set to the RQueue queue of the Redis cluster (which can also be understood as the first message queue). For details, please refer to Figure 3Then, the second thread is started, and every x seconds, y video IDs are pulled from the RQueue queue, where x and y can be adjusted according to the actual business volume.

[0153] For each batch of pulled video IDs, deduplication is performed based on the hash value to obtain a deduplicated video ID set. Deduplication is performed because a single video transcoding task typically produces dozens of finished files. This deduplication mechanism can effectively reduce the number of video IDs that need to be processed, thereby improving processing efficiency.

[0154] By looping through the deduplicated video ID set, the film replacement notification business processing is performed for each video ID. For example, the film replacement status of the video platform is determined based on the comparison of the video file version number, the current film replacement list is generated based on the file description information of the current film replacement finished file, and the target video replacement notification process is generated.

[0155] Obviously, the method of generating target video replacement notification described in the above embodiments is only the replacement notification business processing performed for one video ID (the video ID of the target video). In actual application scenarios, the replacement notification business processing method corresponding to other video IDs after deduplication processing is the same as that in the above embodiments, and will not be repeated here.

[0156] Through video identifier parsing, storage, deduplication, and consumption mechanisms, the video replacement notification process has been optimized, particularly improving processing speed and efficiency, ensuring the accuracy and timeliness of notifications. This not only reduces the burden on system resources, but also enables efficient generation of video replacement notifications through intelligent deduplication and asynchronous consumption strategies, providing business partners with accurate information, enabling them to quickly respond to changes in video content and improving the operation of the video platform.

[0157] As an optional example, the target routing device sends the target video replacement notification to the target service provider, including:

[0158] Push the target video replacement notification to the target routing device;

[0159] In response to receiving the target video replacement notification, matching, in the message management server, a second message queue associated with the target business party based on the type of the target routing device and the first value of the routing key;

[0160] Sending a target video replacement notification to a second message queue;

[0161] The target video replacement notification is sent to the target business party through the second message queue.

[0162] This embodiment describes the complete transmission process of the current video replacement notification from its generation to its final sending to the target business party, wherein a switch and queue are created in the RabbitMQ console (which can also be understood as a message management server), and the switch, queue and business party are bound. This can be achieved by setting the value of the routing key.

[0163] After generating the current replacement film list, send a replacement film MQ message to the exchange of the RabbitMQ cluster. The message content includes the replacement film detail ID, video ID, platform ID, replacement film status, minimum version number, maximum version number, minimum source material ID, maximum source material ID, minimum intermediate material ID, maximum intermediate material ID, minimum task ID, maximum task ID, creation time and other attributes, as shown in the attached file. Figure 5 shown.

[0164] The message management server will match the queues to which messages need to be pushed based on the switch type and routing key value, and push a video replacement notification to each queue.

[0165] Businesses that monitor video replacement notifications or messages start a thread as a consumer, listening to the RabbitMQ queue. When a video replacement message is pushed into the queue, the business party retrieves the message, parses the message content, and obtains attributes such as the replacement ID, video ID, platform ID, replacement status, minimum version number, maximum version number, minimum source material ID, maximum source material ID, minimum intermediate material ID, maximum intermediate material ID, minimum task ID, maximum task ID, and creation time, and then performs its own business logic processing.

[0166] For example, when the AI point analysis service receives notification that a replacement video has been completed, it will re-obtain the address of the finished video file based on the video ID, analyze the new time point based on the characters and scenes, and compare it with the time point before the replacement video, to assist platform operations in adjusting the point data as quickly as possible.

[0167] It should be noted that one business party corresponds to one RabbitMQ queue, and the video replacement notification or video replacement message is distributed through the switch, and the RabbitMQ queue subscribed by the business party is matched based on the switch type and routing key value in the message management server, so as to achieve accurate push of video replacement notification.

[0168] In other words, once a video replacement notification is generated, the system immediately pushes it to the MQ exchange. Acting as a message routing hub, the exchange automatically identifies the secondary message queue to which the notification should be sent based on the message type and routing key subscribed by the target business party. This mechanism ensures accurate and efficient message delivery, preventing irrelevant business parties from receiving redundant message notifications, reducing system load, and improving overall message delivery performance.

[0169] The system then sends the target video replacement notification to a second message queue, where it waits for consumption by the target business's consumer thread. This process ensures orderly message transmission, ensuring that video replacement notifications are properly processed and utilized even in highly concurrent environments. By subscribing to a specific queue, businesses can not only receive video replacement notifications relevant to their business but also customize the message processing process, including message consumption strategies and exception handling mechanisms, enhancing message processing flexibility and system fault tolerance.

[0170] Finally, the video replacement notification is received by the target business party through the second message queue, such as the AI point analysis system, video barrage processing system, sprite image update system, etc. These business parties can quickly update the business logic based on the received video replacement notification, such as recalculating AI points, updating barrage display, or optimizing sprite image layout, to ensure business continuity and consistency of user experience when video content changes.

[0171] It can be seen that the above-mentioned second message queue includes but is not limited to one message queue, or two or more message queues; the above-mentioned target business party includes but is not limited to one business party that subscribes to video replacement notification, or two or more business parties.

[0172] Through precise switch routing and a queue matching mechanism based on switch type and routing key values, efficient distribution and precise push notifications for video replacements are achieved. This not only improves the transmission efficiency and accuracy of video replacement notifications, but also enhances message processing flexibility and overall system stability, providing a strong technical foundation for optimizing internal business processes and improving service quality within the video platform.

[0173] As an optional implementation, the above method further includes:

[0174] When it is determined that the target video replacement notification is sent to the newly added business party, a new message queue associated with the newly added business party is added;

[0175] In response to receiving the target video replacement notification, matching the newly added message queue in the message management server based on the type of the target routing device and the second value of the routing key;

[0176] The target video replacement notification is sent to the newly added business party through the newly added message queue.

[0177] In combination with the description in the above embodiment, it can be seen that one business party corresponds to one RabbitMQ queue, and by subscribing to the message queue, the video replacement notification is sent to at least one business party that has subscribed to the message queue through the routing of the switch in the intermediate processing device, such as Figure 3 As shown, multiple video replacement messages are sent to n business parties at the same time.

[0178] In order to improve the scalability of the above-mentioned method for processing video replacement notifications, after subsequently accessing new services, it is only necessary to add a message queue to send the video replacement notification to the newly added service parties that have subscribed to the message queue through the intermediate processing device.

[0179] In other words, when other incremental services subsequently require video replacement notifications, all that is needed is to create a new queue for the incremental service and bind the queue to the previous switch to quickly send the video replacement notification message. This allows subsequent new services to be quickly supported at a lower cost, expanding the scope of application of the technical solution of this application.

[0180] The above-mentioned method for video replacement notification first adds an intermediate processing device between the media asset production service and the business party receiving the video replacement notification. The device is mainly used to obtain changed videos, deduplicate video IDs, compare video file versions, send video replacement notifications, etc. Through this intermediate processing device, the media asset production service does not need to send file change messages in the business code, and the business party does not need to pay attention to the status changes of the video finished file, thereby realizing the decoupling of the media asset production service and the business party; secondly, by monitoring Binlog messages, Redis delayed task queues, hash deduplication, and RabbitMQ switch routing, the efficiency, accuracy, and scalability of the video replacement notification are improved, thereby improving the development efficiency of the business party accessing the video replacement notification.

[0181] The traditional method of sending a replacement film notification by submitting a source file transcoding task, or the method of the business party receiving a file release message, has poor accuracy and scalability in the replacement film notification. The technical solution in the embodiment of the present application can fundamentally solve the above problems.

[0182] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0183] According to another aspect of the embodiment of the present application, there is also provided Figure 8 A device for processing video replacement notification is shown, the device comprising:

[0184] A first acquiring unit 802 is configured to acquire a data change message in response to the release of the current replacement finished film file, wherein the data change message is used to indicate that a change operation is to be performed on a target field in the video file relationship table;

[0185] The parsing unit 804 is configured to parse the data change message to obtain a target video identifier of the target video, wherein the target video identifier is bound to the target video and a finished file of the target video;

[0186] The second acquisition unit 806 is configured to acquire, based on the target video identifier, a detailed list of historical replacement videos that is in a mapping relationship with the target video identifier;

[0187] The first processing unit 808 is configured to generate a target video replacement notification when the attribute information of the historical replacement film list indicates that the video file version number in the historical replacement film list is inconsistent with the video file version number corresponding to the current replacement film finished file in the current replacement film list;

[0188] The sending unit 810 is configured to send a target video replacement notification to a target service provider based on a target routing device.

[0189] Optionally, the second obtaining unit 806 includes:

[0190] A first acquisition module is used to acquire a set of finished product files that have a mapping relationship with the target video identifier based on the target video identifier;

[0191] The first processing module is used to determine, based on the target video platform identifier, the historical substitute finished file of the target video that has been released on the target video platform from the finished file set, wherein the historical substitute detailed list includes file description information of each file in the historical substitute finished file.

[0192] Optionally, the first processing unit 808 includes:

[0193] The second acquisition module is used to obtain the current replacement status of the target video platform at the current moment when the attribute information indicates that the historical replacement list is empty;

[0194] The second processing module is used to generate a current replacement film detailed list based on the target video identifier, the current replacement film status and the video file version number corresponding to the current replacement film finished file;

[0195] The third processing module is configured to generate a target video replacement notification based on the current replacement video list.

[0196] Optionally, the above device further includes:

[0197] The first comparison unit is configured to compare a first video file version number in the historical replacement film detailed list with a second video file version number corresponding to the current replacement film finished file when the attribute information indicates that the historical replacement film detailed list is not empty, to obtain a first comparison result;

[0198] The second processing unit is configured to generate a current replacement video detail list when the first comparison result indicates that the first video file version number is inconsistent with the second video file version number;

[0199] The third processing unit is configured to generate a target video replacement notification based on the current replacement video list.

[0200] Optionally, the above device further includes:

[0201] The second comparison unit is configured to compare the first video file version number in the historical replacement film detailed list with the second video file version number corresponding to the current replacement film finished file when the attribute information indicates that the historical replacement film detailed list is not empty, to obtain a first comparison result;

[0202] a third comparing unit configured to compare the third video file version number in the historical replacement film list with the fourth video file version number corresponding to the current replacement film finished product file, when the first comparison result indicates that the first video file version number is consistent with the second video file version number, to obtain a second comparison result;

[0203] a fourth processing unit, configured to generate a current replacement video detail list if the second comparison result indicates that the third video file version number is inconsistent with the fourth video file version number;

[0204] The fifth processing unit is configured to generate a target video replacement notification based on the current replacement video list.

[0205] Optionally, the parsing unit 804 includes:

[0206] A parsing module, configured to parse the data change message to obtain a video identifier set;

[0207] A first push module, configured to push video identifiers in the video identifier set to a first message queue in an intermediate processing device, wherein the intermediate processing device is configured to generate a target video replacement notification and interaction between the media service side and the target business party;

[0208] A third acquisition module is used to acquire a target number of video identifiers from the first message queue at a preset time interval;

[0209] The deduplication module is used to perform deduplication processing on a target number of video identifiers based on the hash value to obtain deduplicated video identifiers, wherein the deduplicated video identifiers include the target video identifier.

[0210] Optionally, the sending unit 810 includes:

[0211] A second push module is used to push the target video replacement notification to the target routing device;

[0212] a matching module configured to, in response to receiving the target video replacement notification, match, in the message management server, a second message queue associated with the target business party based on the type of the target routing device and the first value of the routing key;

[0213] A first sending module, configured to send a target video replacement notification to a second message queue;

[0214] The second sending module is used to send the target video replacement notification to the target business party through the second message queue.

[0215] Optionally, the above device further includes:

[0216] an adding unit, configured to add a new message queue associated with the newly added business party when it is determined that the target video replacement notification is to be sent to the newly added business party;

[0217] a matching unit configured to, in response to receiving the target video replacement notification, match the target video replacement notification to a newly added message queue based on the type of the target routing device and the second value of the routing key in the message management server;

[0218] The sixth processing unit is configured to send a target video replacement notification to the newly added service party via a newly added message queue.

[0219] It should be noted that the embodiment of the apparatus for processing video replacement notification here can refer to the embodiment of the method for processing video replacement notification described above, which will not be described in detail here.

[0220] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned method for processing video replacement notification is also provided. The electronic device may be Figure 1The target terminal or server shown in FIG. This embodiment is described by taking the electronic device as the target terminal as an example. Figure 9 As shown, the electronic device includes a memory 902 and a processor 904. The memory 902 stores a computer program, and the processor 904 is configured to execute the steps in any of the above method embodiments through the computer program.

[0221] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0222] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:

[0223] S1, in response to the release of the current substitute finished film file, obtaining a data change message, wherein the data change message is used to indicate that a change operation is performed on a target field in a video file relationship table;

[0224] S2, obtaining a target video identifier of the target video by parsing the data change message, wherein the target video identifier is bound to the target video and the finished file of the target video;

[0225] S3, based on the target video identifier, obtaining a detailed list of historical replacement videos that has a mapping relationship with the target video identifier;

[0226] S4, generating a target video replacement notification when the attribute information of the historical replacement film list indicates that the video file version number in the historical replacement film list is inconsistent with the video file version number corresponding to the current replacement film finished file in the current replacement film list;

[0227] S5: Based on the target routing device, a target video replacement notification is sent to the target business party.

[0228] Alternatively, those skilled in the art will appreciate that Figure 9 The structure shown is for illustration only. Figure 9 It does not limit the structure of the electronic device. For example, the electronic device may also include Figure 9 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 9 Different configurations shown.

[0229] Among them, the memory 902 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for processing video replacement notifications in the embodiments of the present application. The processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, that is, to implement the above-mentioned method for processing video replacement notifications. The memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 902 may further include a memory remotely located relative to the processor 904, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 902 can be used specifically, but not limited to, to store data change messages, target video identifiers, and target video replacement notifications. As an example, Figure 9 As shown, the memory 902 may include, but is not limited to, the first acquisition unit 802, parsing unit 804, second acquisition unit 806, first processing unit 808, and sending unit 810 of the apparatus for processing video replacement notifications. Furthermore, the memory 902 may also include, but is not limited to, other modules and units of the apparatus for processing video replacement notifications, which will not be described in detail in this example.

[0230] Optionally, the transmission device 906 is used to receive or send data via a network. Specific examples of the network may include wired networks and wireless networks. In one embodiment, the transmission device 906 includes a network interface controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In one embodiment, the transmission device 906 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0231] In addition, the electronic device further includes: a display 909 for displaying a video image of a target video; and a connection bus 910 for connecting various module components in the electronic device.

[0232] In other embodiments, the target terminal or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting multiple nodes via network communication. The nodes may form a point-to-point network, and any computing device, such as a server, target terminal, or other electronic device, may become a node in the blockchain system by joining the point-to-point network.

[0233] According to another aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method for processing video alternate notifications provided in various optional implementations of the aforementioned server verification processing and other aspects, wherein the computer program is configured to execute the steps of any of the aforementioned method embodiments when executed.

[0234] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0235] S1, in response to the release of the current substitute finished film file, obtaining a data change message, wherein the data change message is used to indicate that a change operation is performed on a target field in a video file relationship table;

[0236] S2, obtaining a target video identifier of the target video by parsing the data change message, wherein the target video identifier is bound to the target video and the finished file of the target video;

[0237] S3, based on the target video identifier, obtaining a detailed list of historical replacement videos that has a mapping relationship with the target video identifier;

[0238] S4, generating a target video replacement notification when the attribute information of the historical replacement film list indicates that the video file version number in the historical replacement film list is inconsistent with the video file version number corresponding to the current replacement film finished file in the current replacement film list;

[0239] S5: Based on the target routing device, a target video replacement notification is sent to the target business party.

[0240] Alternatively, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0241] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing the hardware related to the target terminal through a program, and the program may be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0242] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0243] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above-mentioned computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.

[0244] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0245] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is merely a logical functional division. In actual implementation, there may be other division methods, such as combining or integrating multiple units or components into another system, or ignoring or not implementing some features. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, indirect coupling or communication connection of units or modules, and may be electrical or other forms.

[0246] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0247] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0248] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing video replacement notification, characterized in that: include: In response to the release of the current substitute finished film file, a data change message is obtained, wherein the data change message is used to indicate that a change operation is performed on a field in the video file relationship table; Obtaining a target video identifier of a target video by parsing the data change message, wherein a binding relationship exists between the target video identifier, the target video, and a finished file of the target video; Based on the target video identifier, obtaining a detailed list of historical replacement films that has a mapping relationship with the target video identifier; generating a target video replacement notification when the attribute information of the historical replacement film list indicates that the video file version number in the historical replacement film list is inconsistent with the video file version number corresponding to the current replacement film finished file in the current replacement film list; Based on the target routing device, the target video replacement notification is sent to the target service party.

2. The method according to claim 1, characterized in that The step of obtaining a detailed list of historical replacement videos that has a mapping relationship with the target video identifier based on the target video identifier includes: Based on the target video identifier, obtaining a set of finished product files having the mapping relationship with the target video identifier; Based on the target video platform identifier, the historical substitute finished files of the target video that have been released on the target video platform are determined from the finished file set, wherein the historical substitute detailed list includes file description information of each file in the historical substitute finished files.

3. The method according to claim 1, characterized in that When the attribute information in the historical replacement film list indicates that the video file version number in the historical replacement film list is inconsistent with the video file version number corresponding to the current replacement film finished file in the current replacement film list, generating a target video replacement notification includes: When the attribute information indicates that the historical replacement list is empty, obtaining the current replacement status of the target video platform at the current moment; Generate the current replacement video detailed list based on the target video identifier, the current replacement video status, and the video file version number corresponding to the current replacement video finished file; The target video replacement notification is generated based on the current replacement video list.

4. The method according to claim 3, characterized in that The method further comprises: When the attribute information indicates that the historical replacement film list is not empty, comparing the first video file version number in the historical replacement film list with the second video file version number corresponding to the current replacement film finished product file to obtain a first comparison result; If the first comparison result indicates that the first video file version number is inconsistent with the second video file version number, generating the current replacement video list; The target video replacement notification is generated based on the current replacement video list.

5. The method according to claim 3, characterized in that The method further comprises: When the attribute information indicates that the historical replacement film list is not empty, comparing the first video file version number in the historical replacement film list with the second video file version number corresponding to the current replacement film finished product file to obtain a first comparison result; If the first comparison result indicates that the first video file version number is consistent with the second video file version number, comparing the third video file version number in the historical replacement film list with the fourth video file version number corresponding to the current replacement film finished product file to obtain a second comparison result; If the second comparison result indicates that the third video file version number is inconsistent with the fourth video file version number, generating the current replacement video list; The target video replacement notification is generated based on the current replacement video list.

6. The method according to claim 1, characterized in that The step of obtaining a target video identifier of a target video by parsing the data change message includes: Obtaining a video identification set by parsing the data change message; Pushing the video identifiers in the video identifier set to a first message queue in an intermediate processing device, wherein the intermediate processing device is used to generate the target video replacement notification and the interaction between the media service side and the target business party; Obtaining a target number of video identifiers from the first message queue at a preset time interval; Based on the hash value, deduplication processing is performed on the target number of video identifiers to obtain deduplicated video identifiers, wherein the deduplicated video identifiers include the target video identifier.

7. The method according to any one of claims 1 to 6, characterized in that The target-based routing device sends the target video replacement notification to the target service provider, including: Pushing the target video replacement notification to the target routing device; In response to receiving the target video replacement notification, matching, in the message management server, a second message queue associated with the target business party based on the type of the target routing device and the first value of the routing key; Sending the target video replacement notification to the second message queue; The target video replacement notification is sent to the target business party through the second message queue.

8. The method according to claim 7, characterized in that The method further comprises: In the case of determining to send the target video replacement notification to the newly added service provider, adding a new message queue associated with the newly added service provider; In response to receiving the target video replacement notification, matching the newly added message queue in the message management server based on the type of the target routing device and the second value of the routing key; The target video replacement notification is sent to the newly added service provider via the newly added message queue.

9. A device for processing video replacement notification, characterized in that: include: A first acquiring unit is configured to acquire a data change message in response to the release of the current substitute finished film file, wherein the data change message is used to indicate that a change operation is to be performed on a target field in the video file relationship table; a parsing unit, configured to parse the data change message to obtain a target video identifier of the target video, wherein the target video identifier is in a binding relationship with the target video and a finished file of the target video; A second acquiring unit is configured to acquire, based on the target video identifier, a detailed list of historical replacement films that has a mapping relationship with the target video identifier; a first processing unit configured to generate a target video replacement notification when the attribute information of the historical replacement film list indicates that the video file version number in the historical replacement film list is inconsistent with the video file version number corresponding to the current replacement film finished file in the current replacement film list; The sending unit is configured to send the target video replacement notification to the target service party based on the target routing device.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program can be executed by a terminal device or a computer to execute the method according to any one of claims 1 to 8.

11. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.