Financial service video generation method, electronic equipment and storage medium

By adopting parallel synthesis processing methods of task abstraction in financial business video generation, the problem of video generation in financial field taking too long in a weak network environment is solved, the video generation speed and stability are improved, and transaction and service interruption are avoided .

CN119316630APending Publication Date: 2025-01-14CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411415035.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

Video generation in the financial field takes too long in a weak network environment, affecting work efficiency and customer experience, and users may lead to transaction failure or service interruption while waiting for video processing.

Method used

Through a parallel synthesis processing method based on task abstract classes, task base classes and multiple task abstract classes (such as downloading abstract classes, synthesising abstract classes, exporting abstract classes, uploading abstract classes, and publishing abstract classes) are used to configure task dependencies and concurrency control using task base classes and multiple task abstract classes (such as downloading abstract classes, synthesising abstract classes, exporting abstract classes). mechanism to generate target financial business videos.

Benefits of technology

It significantly improves the speed of video generation in financial business, ensures the stability and reliability of the video processing process, reduces waiting time, and avoids transaction failures and service interruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316630A_ABST
    Figure CN119316630A_ABST
Patent Text Reader

Abstract

The invention relates to the field of finance and the technical field of videos, in particular to a financial service video generation method, electronic equipment and a storage medium. According to the financial service video generation method provided by the embodiment of the invention, a plurality of financial service video materials need to be acquired firstly; integrating the financial service video materials to obtain an original financial service video; performing parallel synthesis processing on the original financial service video through multiple task abstraction classes to generate a target financial service video; wherein each task abstract class originates from the same task base class, and a corresponding task dependency relationship is configured between the task abstract classes. In this way, the tasks corresponding to the task abstraction classes are executed based on the task dependency relationships configured between the task abstraction classes to generate the target financial service video, and the video generation speed of the financial service video can be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of finance and video technology, and in particular to a method for generating a financial business video, an electronic device, and a storage medium. Background Art

[0002] In the financial sector, the generation, processing and sharing of video content is also an important demand, especially in customer service, product demonstrations, education and training.

[0003] Financial professionals may need to work in various network environments, including areas with weak network signals. If video uploads and downloads take too long in weak network environments, work efficiency will be severely impacted. During financial transactions or services, user attention is extremely valuable. If users are forced to interrupt operations while waiting for video processing, this can lead to transaction failures or service interruptions. For example, if customers experience long delays while waiting for a video to be processed (such as a demonstration video of the loan approval process), this will directly impact their experience and satisfaction. Therefore, improving the speed of video generation for financial business videos has become a pressing issue. Summary of the Invention

[0004] This application aims to solve at least one of the technical problems existing in the prior art. To this end, this application proposes a method, electronic device, and storage medium for generating financial business videos. The method executes tasks corresponding to each task abstract class based on the task dependency relationships configured between the task abstract classes to generate a target financial business video, thereby improving the video generation speed of the financial business video.

[0005] According to the first aspect of the present application, a method for generating a financial service video includes:

[0006] Obtain multiple financial business video materials;

[0007] Integrate the financial business video materials to obtain the original financial business video;

[0008] The original financial business video is synthesized in parallel through multiple task abstract classes to generate a target financial business video; wherein each task abstract class is derived from the same task base class, and corresponding task dependency relationships are configured between the task abstract classes.

[0009] According to some embodiments of the present application, before performing parallel synthesis processing on the original financial business video through multiple task abstract classes to generate the target financial business video, the method further includes:

[0010] Creating the task base class; wherein the task base class is configured with a concurrency control mechanism;

[0011] By inheriting the task base class, multiple task abstract classes are generated.

[0012] According to some embodiments of the present application, the task base class is configured with a corresponding main execution program, and the task abstract class includes a download abstract class and a synthesis abstract class;

[0013] By inheriting the task base class, multiple task abstract classes are generated, including:

[0014] Obtaining a download abstract class by inheriting the task base class, and rewriting the main execution program into a download task program in the download abstract class;

[0015] A synthetic abstract class is obtained by inheriting the task base class, and the main execution program is rewritten into a synthetic task program in the synthetic abstract class.

[0016] According to some embodiments of the present application, the parallel synthesis processing of the original financial business video by using multiple task abstract classes to generate the target financial business video includes:

[0017] Executing the download task program through the download abstract class to obtain media polishing materials that match the original financial business video;

[0018] The synthesis task program is executed on the original financial business video through the synthesis abstract class to implant the media polishing material into the original financial business video to generate the target financial business video.

[0019] According to some embodiments of the present application, the task abstract class further includes an export abstract class, an upload abstract class, and a publish abstract class;

[0020] The generation of multiple task abstract classes by inheriting the task base class also includes:

[0021] Obtaining a derived abstract class by inheriting the task base class, and rewriting the main execution program into a derived task program in the derived abstract class;

[0022] Obtain an upload abstract class by inheriting the task base class, and rewrite the main execution program into an upload task program in the upload abstract class;

[0023] The publishing abstract class is obtained by inheriting the task base class, and the main execution program is rewritten into a publishing task program in the publishing abstract class.

[0024] According to some embodiments of the present application, after performing parallel synthesis processing on the original financial business video through multiple task abstract classes to generate a target financial business video, the method further includes:

[0025] Executing the export task program on the original financial business video through the export abstract class to export the target financial business video to a target album;

[0026] Executing the upload task program on the original financial business video through the upload abstract class to upload the target financial business video in the target album to a video publishing server;

[0027] The publishing task program is executed on the original financial business video through the publishing abstract class to publish the target financial business video uploaded to the video publishing server.

[0028] According to some embodiments of the present application, after generating a plurality of task abstract classes by inheriting the task base class, the method further includes:

[0029] Set task dependencies between each task abstract class;

[0030] The method of performing parallel synthesis processing on the original financial business video through multiple task abstract classes to generate a target financial business video includes:

[0031] Based on the plurality of task abstract classes and the task dependency relationships between the task abstract classes, the original financial business video is synthesized in parallel to generate the target financial business video.

[0032] According to some embodiments of the present application, after generating a plurality of task abstract classes by inheriting the task base class, the method further includes:

[0033] Set the corresponding task execution status for each task abstract class;

[0034] The method of performing parallel synthesis processing on the original financial business video through multiple task abstract classes to generate a target financial business video includes:

[0035] Based on the plurality of task abstract classes and the task execution states corresponding to the task abstract classes, the original financial business video is synthesized in parallel to generate the target financial business video.

[0036] In a second aspect, an embodiment of the present application provides an electronic device comprising: a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the financial business video generation method as described in any one of the embodiments of the first aspect of the present application.

[0037] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the financial business video generation method as described in any one of the embodiments of the first aspect of the present application.

[0038] The financial service video generation method, electronic device, and storage medium according to the embodiments of the present application have at least the following beneficial effects:

[0039] According to the financial business video generation method of the embodiment of the present application, it is necessary to first obtain multiple financial business video materials; integrate the financial business video materials to obtain an original financial business video; and perform parallel synthesis processing on the original financial business videos through multiple task abstract classes to generate a target financial business video. Each of the task abstract classes is derived from the same task base class, and corresponding task dependencies are configured between the task abstract classes. In this way, based on the task dependencies configured between the task abstract classes, the tasks corresponding to each task abstract class are executed to generate the target financial business video, which can improve the video generation speed of the financial business video.

[0040] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0042] Figure 1 A flowchart of a method for generating a financial service video according to an embodiment of the present application;

[0043] Figure 2 Another flowchart of the method for generating a financial service video according to an embodiment of the present application is provided;

[0044] Figure 3 Another flowchart of the method for generating a financial service video according to an embodiment of the present application is provided;

[0045] Figure 4 Another flowchart of the method for generating a financial service video according to an embodiment of the present application is provided;

[0046] Figure 5 Another flowchart of the method for generating a financial service video according to an embodiment of the present application is provided;

[0047] Figure 6 Another flowchart of the method for generating a financial service video according to an embodiment of the present application is provided;

[0048] Figure 7This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] The following describes in detail embodiments of the present application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and are not to be construed as limiting the present application.

[0050] In the description of this application, "several" means one or more, "many" means more than two, "greater than," "less than," and "exceed" are understood to exclude the number itself, while "above," "below," and "within" are understood to include the number itself. The terms "first" and "second" are used solely to distinguish technical features and are not to be construed as indicating or implying relative importance, or as implicitly specifying the number or order of the technical features indicated.

[0051] In the description of this application, it should be understood that descriptions involving orientations, such as up, down, left, right, front, and back, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, they cannot be understood as limitations on this application.

[0052] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0053] In the description of this application, it should be noted that, unless otherwise explicitly defined, terms such as "set," "install," and "connect" should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution. In addition, the identification of specific steps below does not represent a limitation on the order of steps and execution logic. The execution order and execution logic between each step should be understood and inferred with reference to the content described in the embodiments.

[0054] In the financial sector, the generation, processing, and sharing of video content is also an important requirement, especially in customer service, product demonstrations, education, and training. However, there are still some urgent problems to be solved in the current video generation technology in the financial sector.

[0055] Time-consuming waiting: In the financial sector, the importance of timeliness is self-evident. For example, if customers encounter long delays while waiting for video processing (such as a demonstration video of the loan approval process), this will directly affect customer experience and satisfaction.

[0056] Challenges in weak network environments: Financial professionals may need to work in various network environments, including areas with weak network signals. If video uploads and downloads take too long in weak network environments, work efficiency will be seriously affected.

[0057] Interruption of user interaction: During financial transactions or services, user attention is extremely valuable. If users are forced to interrupt their actions while waiting for video processing, this may result in transaction failure or service interruption.

[0058] This application aims to solve at least one of the technical problems existing in the prior art. To this end, this application proposes a method, electronic device, and storage medium for generating financial business videos. The method executes tasks corresponding to each task abstract class based on the task dependency relationships configured between the task abstract classes to generate a target financial business video, thereby improving the video generation speed of the financial business video.

[0059] The following is a further explanation based on the accompanying drawings.

[0060] Reference Figure 1 According to the first aspect of the present application, the method for generating a financial service video may include:

[0061] Step S101, obtaining multiple financial business video materials;

[0062] Step S102: integrating the various financial service video materials to obtain the original financial service video;

[0063] Step S103 , performing parallel synthesis processing on the original financial business video through multiple task abstract classes to generate a target financial business video; wherein each task abstract class is derived from the same task base class, and corresponding task dependencies are configured between the task abstract classes.

[0064] According to the financial business video generation method of the embodiment of the present application, it is necessary to first obtain multiple financial business video materials; integrate the financial business video materials to obtain an original financial business video; and perform parallel synthesis processing on the original financial business videos through multiple task abstract classes to generate a target financial business video. Each task abstract class is derived from the same task base class, and corresponding task dependencies are configured between the task abstract classes. In this way, based on the task dependencies configured between the task abstract classes, the tasks corresponding to each task abstract class are executed to generate the target financial business video, which can improve the video generation speed of the financial business video.

[0065] In some embodiments, step S101 is to obtain a plurality of financial business video materials;

[0066] When producing financial business videos, acquiring multiple financial business video assets is the starting point of the entire process. This step is crucial, as it determines the quality and diversity of the video content. Financial business video assets can include a variety of types, such as customer interviews, product introductions, market analysis, and educational training materials. These assets typically need to be collected from a variety of sources, including internally produced videos, customer-submitted videos, publicly available financial data visualization videos, and even explanation videos by financial analysts.

[0067] To ensure the quality and relevance of content, financial institutions may need to establish a standardized process for collecting content. This includes determining standards for content such as subject matter, style, and length, as well as ensuring that content complies with financial industry standards and laws and regulations. Furthermore, copyright issues must be properly addressed to avoid copyright infringement and legal disputes.

[0068] When collecting footage, financial institutions may utilize advanced technologies, such as artificial intelligence and machine learning algorithms, to automatically screen and organize footage. These technologies can help quickly identify and extract video content relevant to financial services, improving the efficiency and accuracy of footage collection.

[0069] The collected footage also needs to undergo preliminary editing and processing to ensure it is suitable for subsequent video synthesis and processing. This can include cropping the video to remove unnecessary parts, adjusting the video resolution to suit different playback platforms, and adding subtitles or annotations to improve video comprehensibility.

[0070] In short, acquiring multiple financial business video assets is the foundation of the financial business video generation method. This step involves not only the collection and organization of the assets but also preliminary editing and processing, laying a solid foundation for subsequent video synthesis and optimization. By carefully designing and executing this step, financial institutions can ensure that the generated video content not only meets business needs but also appeals to and satisfies the expectations of their target audience.

[0071] In step S102 of some embodiments, various financial service video materials are integrated to obtain an original financial service video;

[0072] It should be noted that the process of integrating financial business video materials into original videos can be achieved through various technical means. This process involves merging multiple collected video clips, images, text and audio materials into a coherent and meaningful video file.

[0073] First, automated video editing tools can be used to assist in the integration process. These tools often feature intelligent editing capabilities, automatically selecting and combining video clips based on preset rules or algorithms. For example, they can determine editing points based on similarities in video content, scene changes, or audio rhythm, thereby achieving smooth transitions. Second, AI algorithms can be used to analyze video content, identifying keyframes, characters, objects, and actions, and then automatically organize the video footage based on this information. Furthermore, AI can predict the editor's intentions, provide personalized editing suggestions, and even automate certain editing tasks.

[0074] Machine learning can also be applied to video integration. By training machine learning models, we can learn editors' preferences and styles based on historical editing data, thereby providing more accurate recommendations and decision support when integrating video materials.

[0075] Additionally, you can use templates and pre-set editing workflows to streamline the video integration process. Pre-defined templates allow you to quickly apply a consistent style and format, ensuring the consistency and professionalism of your video content. Automated workflows also reduce repetitive tasks and improve integration efficiency.

[0076] It is worth noting that, in order to ensure the copyright compliance of the video content, the embodiment of the present application can also perform copyright review and authorization management on the used materials. Therefore, a copyright tracking tool can be used to check the copyright status of the materials.

[0077] Reference Figure 2 According to some embodiments of the present application, before performing parallel synthesis processing on the original financial business video using multiple task abstract classes to generate the target financial business video in step S103, the following steps may also be included:

[0078] Step S201: Create a task base class; wherein the task base class is configured with a concurrency control mechanism;

[0079] Step S202: Generate multiple task abstract classes by inheriting the task base class.

[0080] In some embodiments of the present application, in order to implement parallel synthesis processing of original financial business videos, a series of preparatory work needs to be performed first, including creating a task base class and generating multiple task abstract classes.

[0081] First, in step S201, a task base class is created, which serves as the foundation for the entire parallel composition process. The task base class is an abstract class definition that contains properties and methods shared by all derived task classes. The design of this base class is crucial, as it requires concurrency control mechanisms to ensure that multiple tasks can work in unison when executed in parallel, avoiding resource conflicts and data inconsistencies.

[0082] It should be understood that concurrency control mechanisms can be used to control access to shared resources. In addition, the task base class can also include task state management, such as task start, execution, completion, and error handling, as well as mechanisms for inter-task communication to ensure that tasks can be started and terminated correctly according to dependencies.

[0083] Next, in step S202, multiple task abstract classes are generated by inheriting the task base class. These task abstract classes are specific work units. Each class inherits the concurrency control mechanism and other common characteristics of the task base class, and adds implementation details specific to a certain task. For example, one task abstract class can be used for the encoding and compression of a video, another may be responsible for adding special effects, and another may handle the synthesis of audio. The embodiment of the present application uses the inheritance mechanism to enable these task abstract classes to maintain consistency and manageability, while also being able to flexibly expand new functions. Each task abstract class can define its own execution logic, such as processing a specific part of a video, applying a specific filter effect, or performing audio mixing processing.

[0084] During the parallel compositing process, these abstract task classes are instantiated into concrete task objects and added to a task queue for scheduling. The task queue intelligently arranges the order and execution of tasks based on inter-task dependencies and concurrency control mechanisms, ensuring an efficient and stable video compositing process.

[0085] In summary, by creating a task base class and generating multiple task abstract classes before performing parallel synthesis processing, we can lay a solid foundation for the efficient generation of financial business videos. This class-based parallel processing framework not only improves the efficiency of video processing but also ensures the stability and reliability of the processing process through concurrency control mechanisms.

[0086] Reference Figure 3According to some embodiments of the present application, the task base class is configured with a corresponding main execution program, and the task abstract class includes a download abstract class and a synthesis abstract class. Step S202 generates multiple task abstract classes by inheriting the task base class, which may include:

[0087] Step S301, obtaining a download abstract class by inheriting the task base class, and rewriting the main execution program into a download task program in the download abstract class;

[0088] Step S302 , obtaining a synthetic abstract class by inheriting the task base class, and rewriting the main execution program into a synthetic task program in the synthetic abstract class.

[0089] In some embodiments of this application, the design of the task base class is crucial because it not only implements concurrency control mechanisms but also contains a main execution program that defines the basic framework and process for task execution. By inheriting from this task base class, multiple task abstract classes can be generated, each optimized and customized for a specific operation.

[0090] In step S301 of some embodiments, the download abstract class is derived by inheriting from the task base class. During this process, the main execution program in the task base class is rewritten as the download task program. This means that the download abstract class is specifically responsible for handling the download task of video material. The download task program can define download logic, such as selecting the download source, managing the download queue, handling download speed, and retrying upon failure. In this way, download tasks can be executed in parallel while being managed by the concurrency control mechanism in the task base class, ensuring an efficient and stable download process.

[0091] In step S302 of some embodiments, the synthesis abstract class is also obtained by inheriting the task base class, which rewrites the main execution program into a synthesis task program. The synthesis abstract class is used for video synthesis tasks, including the merging of video clips, the addition of special effects, and the synthesis of audio. The synthesis task program defines the process and rules of synthesis to ensure the quality and efficiency of video synthesis. Synthesis tasks can also be executed in parallel and are carried out under the concurrency control of the task base class to avoid resource conflicts and ensure the smooth progress of the synthesis process.

[0092] With this design, each abstract task class inherits the concurrency control mechanism and execution framework of the base task class, but implements specific functionality by overriding the main execution routine. This not only ensures code reusability and consistency, but also improves system flexibility and scalability. When adding a new task type, simply inherit from the base task class and overwrite the main execution routine, without modifying the existing task class code.

[0093] This class-based parallel processing framework also facilitates task management and scheduling. The task queue automatically schedules and manages the execution of tasks based on their dependencies and priorities. Each instance of the abstract task class follows its overridden main execution program while being constrained by the concurrency control mechanisms of the base task class, ensuring the efficiency and stability of the entire video synthesis process.

[0094] In summary, by inheriting the task base class and rewriting the main execution program, we can flexibly generate a variety of task abstract classes, including downloading and synthesis abstract classes. This design not only improves video processing efficiency but also ensures stability and reliability through concurrency control mechanisms, providing strong technical support for the efficient generation of financial business videos.

[0095] Reference Figure 4 According to some embodiments of the present application, the task abstract class also includes an export abstract class, an upload abstract class, and a publish abstract class. Step S202 generates multiple task abstract classes by inheriting the task base class, and may also include:

[0096] Step S401, obtaining a derived abstract class by inheriting the task base class, and rewriting the main execution program into a derived task program in the derived abstract class;

[0097] Step S402: Obtain an upload abstract class by inheriting the task base class, and rewrite the main execution program into an upload task program in the upload abstract class;

[0098] Step S403: Obtain a publishing abstract class by inheriting the task base class, and rewrite the main execution program into a publishing task program in the publishing abstract class.

[0099] In some embodiments of this application, in addition to downloading and compositing tasks, the task abstraction class extends to other key aspects of video processing, including exporting, uploading, and publishing. These task abstractions are also extended based on the task base class. Each class inherits the concurrency control mechanism and main execution program framework of the task base class, but rewrites the main execution program for its specific task to implement specific functions.

[0100] In step S401 of some embodiments, the export abstract class is obtained by inheriting the task base class. In this process, the main execution program of the task base class is rewritten as the export task program. The export task program is responsible for exporting the synthesized video file to a specified storage location, such as a local hard disk, a network server, or a cloud storage service. This process may include video format conversion, encoding settings, file naming and path management, etc. By encapsulating the export process as an independent task class, the export tasks can be managed and scheduled more flexibly, while ensuring that the export operation does not block the execution of other tasks.

[0101] In step S402 of some embodiments, the upload abstract class is also derived by inheriting the task base class. The upload task program is responsible for uploading the exported video file to a remote server or content delivery network (CDN). This process may include network connection management, upload speed control, error retry mechanism, upload progress feedback, etc. By encapsulating the upload process as an independent task class, multiple upload tasks can be processed in parallel while ensuring the stability and reliability of the upload operation.

[0102] In step S403 of some embodiments, the publishing abstract class is also derived by inheriting the task base class. The publishing task program is responsible for publishing the uploaded video file to a designated platform or channel, such as social media, video sharing websites, or internal enterprise systems. This process may include interacting with the API of the publishing platform, setting publishing parameters, monitoring publishing status, etc. By encapsulating the publishing process as an independent task class, publishing tasks can be managed and scheduled more flexibly, while ensuring the timeliness and accuracy of publishing operations.

[0103] With this design, each abstract task class handles a specific step in the video processing pipeline while inheriting the concurrency control mechanism and execution framework of the base task class. This modular design not only improves code reusability and maintainability, but also enhances system flexibility and scalability. Adding a new video processing task requires simply inheriting from the base task class and rewriting the main execution routine, without modifying the existing task class code.

[0104] This class-based parallel processing framework also facilitates task management and scheduling. The task queue automatically schedules and manages the execution of tasks based on their dependencies and priorities. Each instance of the abstract task class follows its overridden main execution routine while being constrained by the concurrency control mechanisms of the base task class, ensuring efficient and stable processing of the entire video processing pipeline.

[0105] In summary, by inheriting the task base class and rewriting the main executable, we can flexibly generate a variety of task abstract classes, including export, upload, and publish abstract classes. This design not only improves video processing efficiency but also ensures stability and reliability through concurrency control mechanisms, providing strong technical support for the efficient generation and publishing of financial business videos.

[0106] According to some embodiments of the present application, after generating multiple task abstract classes by inheriting the task base class in step S202, the following steps may also be included:

[0107] Set the task dependencies between each task abstract class.

[0108] In some embodiments of the present application, once multiple abstract task classes, such as download, synthesize, export, upload, and publish, are generated by inheriting from a base task class, the next step is to set dependencies between these abstract task classes. This step is crucial for ensuring the correct execution order of the video processing flow and coordinating the execution of various tasks.

[0109] Setting up task dependencies means defining which tasks must complete before others can begin. For example, before a video composition task can begin, the video assets might need to be downloaded. Similarly, an export task might need to wait for the composition task to complete, while an upload task might depend on the results of the export task. A publish task might be the final step in the entire process, executing only after a video has been successfully uploaded.

[0110] By setting task dependencies, you can ensure efficient resource utilization and smooth process execution. For example, if a task fails to complete successfully due to some reason (such as a network problem), other tasks that depend on it can be paused or postponed until the problem is resolved. This avoids unnecessary work and improves overall efficiency.

[0111] Dependencies can be set programmatically in a task queue. When creating each abstract class object, it can specify which other task objects it depends on. The task queue manager then schedules tasks based on these dependencies. When a task completes, it notifies the task queue manager, which then checks to see if any other tasks are dependent on its completion. If so, it marks those tasks as executable.

[0112] In addition, setting dependencies can also help achieve parallel execution of tasks. In some cases, there is no direct dependency between certain tasks, or the dependency is optional. These tasks can be executed in parallel, thereby speeding up the entire video processing pipeline.

[0113] In summary, establishing dependencies between task abstract classes is a critical step in ensuring the correct and efficient execution of the video processing pipeline. By clearly defining the order of dependencies between tasks, we can optimize resource allocation, increase processing speed, and ensure that the resulting video meets quality requirements. This dependency management not only improves video processing efficiency but also ensures stability and reliability through concurrency control mechanisms, providing strong technical support for the efficient generation and distribution of financial business videos.

[0114] According to some embodiments of the present application, after generating multiple task abstract classes by inheriting the task base class in step S202, the following steps may also be included:

[0115] Set the corresponding task execution status for each task abstract class.

[0116] In some embodiments of this application, after generating multiple task abstract classes, an important step is to set the corresponding task execution status for each task abstract class. Setting the task execution status is crucial for monitoring and managing the entire video processing workflow. It helps developers and system administrators understand the current progress of each task and intervene when necessary.

[0117] In some more specific embodiments, the task execution status may include several basic types, such as "pending", "executing", "completed", "failed", and "paused". Each status represents a specific stage in the task life cycle. The following are specific examples:

[0118] Pending: This indicates that the task has been created but has not yet started executing. This may be because other tasks that the task depends on have not yet completed, or the system is waiting for resources to become available.

[0119] Running: Indicates that the task is being executed. At this stage, the task is consuming system resources such as CPU, memory, and network bandwidth.

[0120] Completed: Indicates that the task has been successfully completed. This is usually because all scheduled tasks have been successfully executed.

[0121] Failed: Indicates that the task failed to execute. This may be due to errors, insufficient resources, or other abnormal conditions.

[0122] Suspended: Indicates that the task execution is suspended, which may be due to insufficient system resources, user intervention, or other external factors.

[0123] It's important to note that by setting these states for each task abstract class, a flexible task management system can be built that tracks the progress of each task in real time and provides feedback when a task encounters problems. For example, if a download task fails due to a network problem, the system can automatically retry the task or set the task's status to "failed" and notify the user or system administrator for manual intervention.

[0124] Furthermore, the task execution status setting can be combined with task dependencies to implement more complex task scheduling strategies. For example, if a composition task depends on the completion of multiple download tasks, the composition task will only be marked as "pending" when all dependent download tasks are in the "completed" state.

[0125] In practice, task execution status can be expressed by defining status properties and related methods in the task base class. Each task abstract class can then inherit these properties and methods and update the status based on the specific task logic. Furthermore, an event monitoring mechanism can be implemented to trigger specific callback functions when the task status changes.

[0126] In short, setting the corresponding task execution status for the task abstract class is a key step in ensuring the smooth progress of the video processing process. By clearly defining and tracking the status of tasks, we can improve the flexibility and responsiveness of task management, ensuring the efficiency and stability of the entire video processing process.

[0127] In step S103 of some embodiments, the original financial business video is synthesized in parallel through multiple task abstract classes to generate a target financial business video; wherein each task abstract class is derived from the same task base class, and corresponding task dependencies are configured between the task abstract classes.

[0128] It should be noted that the parallel synthesis processing of original financial business videos through multiple task abstract classes involves decomposing the video processing task into multiple independent subtasks, each of which is executed by a specific task abstract class, and these task abstract classes are all derived from the same task base class.

[0129] The core idea behind parallel synthesis is to assign each step in the video synthesis process (such as video encoding, adding special effects, and audio processing) to different abstract task classes, allowing these tasks to be performed simultaneously rather than sequentially. This significantly reduces the total processing time, especially when processing long financial business videos. This parallel processing approach can significantly improve efficiency.

[0130] To achieve this goal, the embodiments of the present application first need to define a base task class that contains properties and methods common to all task abstract classes, such as task state management, error handling, and dependency settings. This base task class can then be used to derive multiple specific task abstract classes, each responsible for handling a specific step in the video synthesis process. For example, one task abstract class might be responsible for merging video clips into a continuous video stream, another might be responsible for adding background music or sound effects, and yet another might be responsible for applying color correction or visual effects.

[0131] It should be noted that in the parallel synthesis process of the present embodiment, the dependencies between the various task abstract classes need to be clearly defined. For example, the video encoding task may not begin until the video segment merging task is completed, while the audio processing task may not begin until the video encoding task is completed. By setting these dependencies, it is possible to ensure that each step of the video synthesis can proceed in an orderly manner while maintaining the efficiency of parallel processing.

[0132] In addition, in order to better manage these parallel tasks, embodiments of the present application can use task queues to organize and schedule the execution of these tasks. The task queue can automatically handle the dependencies between tasks, ensuring that tasks are executed in the correct order, and allowing multiple tasks to be executed in parallel if their dependencies are met.

[0133] This parallel synthesis processing method based on task abstraction not only improves the efficiency of financial business video generation, but also optimizes specific aspects of the video by assigning specialized tasks, resulting in higher-quality, more professional target financial business videos. This method is particularly suitable for financial business scenarios that require the rapid generation of large amounts of video content, such as real-time market analysis and product introduction updates, effectively meeting the financial industry's demand for high-efficiency and high-quality video content.

[0134] Reference Figure 5 According to some embodiments of the present application, step S103 performs parallel synthesis processing on the original financial business video through multiple task abstract classes to generate the target financial business video, which may include:

[0135] Step S501: executing a download task program by downloading an abstract class to obtain media polishing materials that match the original financial business video;

[0136] Step S502 : executing a synthesis task program on the original financial business video through the synthesis abstract class to implant the media polishing material into the original financial business video to generate a target financial business video.

[0137] In some embodiments of the present application, the process of performing parallel synthesis processing on the original financial business video through multiple task abstract classes involves two key steps: downloading task and synthesis task.

[0138] In step S501, the download abstract class is responsible for executing the download task program. The primary purpose of the download task program is to obtain media polishing assets that match the original financial business video. These assets can include high-quality images, video clips, animations, background music, special effects, and more, which are extremely helpful in enhancing the professionalism and appeal of the video. Download tasks can be executed in parallel to improve efficiency, and are managed by the concurrency control mechanism in the task base class, ensuring an efficient and stable download process.

[0139] It's important to note that a download task program may involve various download strategies and optimization measures, such as selecting the fastest download source, managing the download queue, handling download speeds, and retrying failed downloads. Furthermore, the download task program also needs to consider network conditions and resource availability to ensure that the required material can be downloaded smoothly in various network environments.

[0140] In step S502, the synthesis abstract class is responsible for executing the synthesis task program on the original financial business video. The main task of the synthesis task program is to insert the downloaded media polishing materials into the original financial business video to generate the final target financial business video. This process involves various video editing techniques, such as merging video clips, adding special effects, and synthesizing audio.

[0141] It's important to note that the compositing task program must rationally arrange the order and placement of the footage according to the rules and requirements of video editing to create a smooth, professional video effect. Furthermore, the compositing task program also needs to consider video encoding and compression to ensure the quality of the final video and its adaptability to different playback platforms.

[0142] By executing the download and synthesis tasks in parallel, the present embodiment significantly improves video processing efficiency. The download task can pre-download the required material, while the synthesis task can begin execution immediately after the material download is complete, thus reducing waiting time. Furthermore, because these two tasks are executed in parallel, they can share the concurrency control mechanism in the task base class, ensuring the stability and reliability of the entire processing process.

[0143] In summary, in some embodiments of this application, by executing download and synthesis tasks in parallel using the download abstract class and the synthesis abstract class, the target financial business video can be efficiently generated. This parallel processing framework based on the task abstract class not only improves the efficiency of video processing but also ensures the stability and reliability of the processing process through a concurrency control mechanism, providing strong technical support for the efficient generation of financial business videos.

[0144] Reference Figure 6 According to some embodiments of the present application, after performing parallel synthesis processing on the original financial business video through multiple task abstract classes to generate the target financial business video in step S103, the following steps may also be included:

[0145] Step S601: executing an export task program on the original financial business video by exporting an abstract class to export the target financial business video to a target album;

[0146] Step S602: executing an upload task program on the original financial business video through the upload abstract class to upload the target financial business video in the target album to the video publishing server;

[0147] Step S603: executing a publishing task program on the original financial business video by publishing an abstract class, so as to publish the target financial business video uploaded to the video publishing server.

[0148] In some embodiments of this application, once the target financial business video is generated by parallel synthesis of the original financial business video using multiple task abstract classes, the next step is to ensure that the video can be correctly exported, uploaded, and published. This process involves three key task abstract classes: export abstract class, upload abstract class, and publish abstract class. Each task abstract class is responsible for executing a specific task program.

[0149] In step S601, the export abstract class is responsible for executing the export task procedure. The primary purpose of this task procedure is to export the target financial business video from the processing environment to the target album. The export process may include video format conversion, compression, and optimization to ensure that the video file maintains a high-quality viewing experience while being suitable for sharing across different devices and platforms. Furthermore, the export task also needs to consider the storage space and organizational structure of the target album to ensure that the video file can be properly saved and managed.

[0150] In step S602, the upload abstract class is responsible for executing the upload task program. This task program's primary task is to upload the target financial business video from the target album to the video publishing server. The upload process must account for the stability and speed of the network connection, as well as any transmission errors or interruptions. Furthermore, the upload task program must securely authenticate and authorize with the video publishing server to ensure the video file is securely transmitted and stored.

[0151] In step S603, the publish abstract class is responsible for executing the publish task program. The main purpose of this task program is to publish the target financial business video uploaded to the video publishing server to a designated platform or channel, such as social media, video sharing websites, or internal enterprise systems. The publishing process may include interacting with the publishing platform's API, setting publishing parameters, and monitoring and providing feedback on the publishing status. In addition, the publishing task program also needs to ensure the copyright and compliance of the video file to avoid any potential legal risks.

[0152] By executing these three steps, we ensure that the entire process of producing the target financial business video, from raw footage to final release, is efficient, stable, and controllable. Each abstract task class inherits the concurrency control mechanism and execution framework of the base task class but implements specific functionality by rewriting the main execution program. This modular design not only improves code reusability and maintainability, but also enhances the system's flexibility and scalability.

[0153] In summary, in some embodiments of this application, the coordinated work of the export, upload, and publish abstract classes ensures that the target financial service video can be correctly exported, uploaded, and published. This task-based processing framework not only improves video processing efficiency but also ensures the stability and reliability of the processing process through a concurrency control mechanism, providing strong technical support for the efficient generation and publication of financial service videos.

[0154] According to some embodiments of the present application, step S103 performs parallel synthesis processing on the original financial business video through multiple task abstract classes to generate the target financial business video, which may include:

[0155] Based on multiple task abstract classes and the task dependency relationships between task abstract classes, the original financial business video is synthesized in parallel to generate the target financial business video.

[0156] In some embodiments of this application, the parallel synthesis of original financial business videos is implemented using multiple task abstract classes, which collaborate by establishing clear task dependencies. This parallel processing mechanism based on task dependencies not only improves the efficiency of video synthesis but also ensures the orderliness and correctness of the synthesis process.

[0157] First, we have multiple task abstract classes, including the download abstract class, the synthesis abstract class, the export abstract class, the upload abstract class, and the publish abstract class. Each class inherits from the task base class and overrides the main executable program to implement specific functionality. These task abstract classes are responsible for downloading media editing materials, synthesizing the target video, exporting video files, uploading videos to the server, and publishing videos to designated platforms.

[0158] To ensure that these tasks execute in an orderly manner, it's necessary to establish clear dependencies between task abstract classes. For example, a composition abstract class might depend on a download abstract class to download media polish assets, while an export abstract class might depend on a composition abstract class to complete video composition. This ensures that each task executes only after its dependent tasks complete, avoiding resource conflicts and duplication of effort.

[0159] These dependencies can be set programmatically in the task queue. When creating each object of the abstract task class, it can specify which other task objects it depends on. The task queue manager then schedules tasks for execution based on these dependencies. When a task completes, it notifies the task queue manager, which then checks to see if any other tasks are dependent on its completion and, if so, marks those tasks as executable.

[0160] Furthermore, a parallel processing mechanism based on task dependencies enables dynamic task scheduling and optimization. For example, if certain tasks have no direct dependencies, or if the dependencies are optional, these tasks can be executed in parallel, speeding up the entire video synthesis process. The task queue manager can dynamically adjust the execution order and degree of parallelism of tasks based on system resource availability and task priorities.

[0161] In summary, in some embodiments of this application, efficient parallel synthesis of original financial business videos can be achieved through the use of multiple task abstract classes and the task dependencies established between them. This parallel processing mechanism based on task dependencies not only improves the efficiency of video synthesis, but also ensures the orderliness and correctness of the synthesis process through clear dependency management, providing strong technical support for the efficient generation of financial business videos.

[0162] According to some embodiments of the present application, step S103 performs parallel synthesis processing on the original financial business video through multiple task abstract classes to generate the target financial business video, which may include:

[0163] Based on multiple task abstract classes and the corresponding task execution status of each task abstract class, the original financial business video is synthesized in parallel to generate the target financial business video.

[0164] In some embodiments of the present application, the parallel synthesis of raw financial business videos involves multiple task abstractions, each responsible for executing a specific video processing task. To effectively manage and monitor the execution of these tasks, each task abstraction is assigned a corresponding task execution status. These statuses provide real-time feedback on the current progress of the task, making the entire video synthesis process more transparent and controllable.

[0165] In some more specific embodiments, task execution status can include several basic types, such as "pending," "executing," "completed," "failed," and "paused." These statuses enable the task scheduler to track the progress of each task and take appropriate action when necessary. For example, if a task's status is "pending," the scheduler can decide when to start the task; if a task's status is "executing," its execution progress and resource consumption can be monitored; and if the task's status is "completed," the task can be considered successfully completed, and subsequent tasks that depend on it can continue to execute.

[0166] It's important to note that during parallel compositing, task dependencies and execution states work together to ensure that tasks execute in the correct order. For example, if a compositing task depends on previous video downloads and asset compositing tasks, the compositing task will only be scheduled for execution when the status of these dependent tasks reaches "Completed." This state-based scheduling mechanism helps avoid conflicts between tasks and ensures efficient resource utilization.

[0167] Furthermore, real-time monitoring of task execution status can help identify and resolve issues promptly. For example, if a task is in a "failed" state due to an error, the system can automatically retry the task or notify the user or system administrator for manual intervention. This helps reduce interruptions and delays in the video synthesis process and improve overall processing efficiency.

[0168] In practice, task execution status can be expressed by defining status properties and related methods in the task base class. Each task abstract class can then inherit these properties and methods and update the status based on the specific task logic. Furthermore, an event monitoring mechanism can be implemented to trigger specific callback functions when the task status changes.

[0169] In summary, in some embodiments of this application, by setting corresponding task execution states for various task abstract classes, efficient parallel synthesis of original financial business videos can be achieved. This state-based management mechanism not only improves the efficiency of video synthesis, but also ensures the stability and reliability of the synthesis process by monitoring the execution status of tasks in real time, providing strong technical support for the efficient generation of financial business videos.

[0170] Reference Figure 7 , Figure 7 The hardware structure of an electronic device according to another embodiment is shown. The electronic device includes:

[0171] The processor 701 may be implemented using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is configured to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.

[0172] The memory 702 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 702 and is called by the processor 701 to execute the financial service video generation method of the embodiments of this application.

[0173] Input / output interface 703, used to implement information input and output;

[0174] Communication interface 704, used to implement communication interaction between this device and other devices, which can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, Wi-Fi, Bluetooth, etc.);

[0175] Bus 705 , which transmits information between various components of the device (e.g., processor 701 , memory 702 , input / output interface 703 , and communication interface 704 );

[0176] The processor 701 , the memory 702 , the input / output interface 703 and the communication interface 704 are connected to each other in communication within the device via a bus 705 .

[0177] The present application also provides a computer program product, which includes a computer program. A processor of a computer device reads and executes the computer program, so that the computer device implements the above-mentioned method for generating a financial service video.

[0178] The terms "first," "second," "third," "fourth," and the like (if any) in the specification of the present disclosure and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present disclosure described herein, for example, can be implemented in orders other than those illustrated or described herein. In addition, the terms "comprises" and "comprising," and any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, product, or apparatus.

[0179] It should be understood that in the present disclosure, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, and may include any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0180] It should be understood that in the description of the embodiments of the present application, multiple (or multiple items) means more than two, greater than, less than, exceed, etc. are understood to exclude the number itself, and above, below, within, etc. are understood to include the number itself.

[0181] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0182] 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.

[0183] In addition, the functional units in the various embodiments of the present disclosure 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.

[0184] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially 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, and the computer software product is stored in a storage medium, which may include a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc., various media that can store program codes.

[0185] It should also be understood that the various implementation methods provided in the embodiments of the present application can be combined arbitrarily to achieve different technical effects.

[0186] The above is a specific description of the implementation methods of the present disclosure, but the present disclosure is not limited to the above implementation methods. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present disclosure. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present disclosure.

Claims

1. A method for generating a financial business video, characterized in that: include: Obtain multiple financial business video materials; Integrate the financial business video materials to obtain the original financial business video; The original financial business video is synthesized in parallel through multiple task abstract classes to generate a target financial business video; wherein each of the task abstract classes is derived from the same task base class, and corresponding task dependencies are configured between the task abstract classes.

2. The method according to claim 1, characterized in that Before the original financial business video is processed in parallel by multiple task abstract classes to generate the target financial business video, the method further includes: Creating the task base class; wherein the task base class is configured with a concurrency control mechanism; By inheriting the task base class, a plurality of task abstract classes are generated.

3. The method according to claim 2, characterized in that The task base class is configured with a corresponding main execution program, and the task abstract class includes a download abstract class and a synthesis abstract class; By inheriting the task base class, a variety of task abstract classes are generated, including: Obtaining a download abstract class by inheriting the task base class, and rewriting the main execution program into a download task program in the download abstract class; A synthetic abstract class is obtained by inheriting the task base class, and the main execution program is rewritten as a synthetic task program in the synthetic abstract class.

4. The method according to claim 3, characterized in that The method of performing parallel synthesis processing on the original financial business video through multiple task abstract classes to generate a target financial business video includes: Executing the download task program through the download abstract class to obtain media polishing materials matching the original financial business video; The synthesis task program is executed on the original financial business video through the synthesis abstract class to implant the media polishing material into the original financial business video to generate the target financial business video.

5. The method according to claim 3, characterized in that: The task abstract class also includes an export abstract class, an upload abstract class and a publish abstract class; The generation of a plurality of task abstract classes by inheriting the task base class also includes: Obtaining a derived abstract class by inheriting the task base class, and rewriting the main execution program into a derived task program in the derived abstract class; Obtaining an upload abstract class by inheriting the task base class, and rewriting the main execution program into an upload task program in the upload abstract class; The publishing abstract class is obtained by inheriting the task base class, and the main execution program is rewritten as a publishing task program in the publishing abstract class.

6. The method according to claim 5, characterized in that After the original financial business video is processed in parallel by multiple task abstract classes to generate a target financial business video, the method further includes: Executing the export task program on the original financial business video through the export abstract class to export the target financial business video to a target album; Executing the upload task program on the original financial business video through the upload abstract class to upload the target financial business video in the target album to the video publishing server; The publishing task program is executed on the original financial business video through the publishing abstract class to publish the target financial business video uploaded to the video publishing server.

7. The method according to claim 2, characterized in that After generating a plurality of task abstract classes by inheriting the task base class, the method further includes: Set the task dependencies between each task abstract class; The method of performing parallel synthesis processing on the original financial business video through multiple task abstract classes to generate a target financial business video includes: Based on the plurality of task abstract classes and the task dependency relationships between the task abstract classes, the original financial business video is synthesized in parallel to generate the target financial business video.

8. The method according to claim 2, characterized in that: After generating a plurality of task abstract classes by inheriting the task base class, the method further includes: Set the corresponding task execution status for each task abstract class; The method of performing parallel synthesis processing on the original financial business video through multiple task abstract classes to generate a target financial business video includes: Based on the plurality of task abstract classes and the task execution states corresponding to the setting of each task abstract class, the original financial business video is synthesized in parallel to generate the target financial business video.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and the processor implements the financial business video generation method as described in any one of claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The storage medium stores a program, and the program is executed by a processor to implement the financial business video generation method as described in any one of claims 1 to 8.