Method, device, equipment and storage medium for obtaining universal transcoding template

By decoupling and integrating the encoding templates of audio and video processing tools, and optimizing transcoding services and engine services, the problem of inconsistent parameters between different audio and video tools is solved, and the sharing of encoding templates in multiple products is realized, and development efficiency and flexibility are improved.

CN115967832BActive Publication Date: 2025-08-08SHANGHAI WONDERTEK SOFTWARE CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211728032.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2025-08-08
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

The encoding templates of different audio and video processing tools are not unified, resulting in inconsistent transcoding parameters and engine services, which increases development costs and reduces development efficiency.

Method used

By decoupling the encoding template-related business and logical data of each audio and video processing tool, it integrates and forms a unified encoding template service, and optimizes the transcoding service and engine service, so that it can identify and execute the command lines of a variety of audio and video processing tools.

Benefits of technology

It realizes the sharing of encoding templates in multiple audio and video products, simplifies the development process, improves development efficiency and maintenance convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115967832B_ABST
    Figure CN115967832B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and storage medium for obtaining a universal transcoding template. By optimizing the parameters of the encoding template in each audio and video processing tool, the universal parameters and special parameters in the encoding template of each audio and video processing tool are flexibly integrated into a unified encoding template parameter that can be used for a variety of audio and video products. The transcoding parameters of different products and the splicing method of the transcoding command lines are optimized and integrated so that the transcoding service can adapt to different products. The engine service is optimized and unified so that the engine service can distinguish and execute command lines from different products. The encoding template established in one product can be used in multiple products. From a development perspective, since the sharing of encoding templates is achieved, changes to the encoding template will be applicable to multiple products at the same time, thereby simplifying development, improving development efficiency, and making it easier to maintain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of audio and video transcoding, and in particular relates to a method, device, equipment and storage medium for obtaining a universal transcoding template. Background Art

[0002] The basic process of transcoding: first configure the encoding template, then send the parameters in the encoding template to the transcoding service for splicing the transcoding command line. After the command line splicing is completed, it is handed over to the engine service to execute the command line.

[0003] Currently, these different products all use their own product-specific encoding templates, transcoding services, and engine services. Whenever transcoding is required, the encoding templates specific to each product must be configured first, and the encoding templates configured in one product cannot be used in other products. When other products want to use the encoding templates, they need to separately configure the dedicated encoding templates used by their own products. Due to the inconsistency of the encoding templates of various audio and video processing tools, the various transcoding parameters that need to be configured in the encoding templates are also not unified. In addition, each audio and video processing tool uses its own dedicated transcoding service and engine service. As a result, the transcoding process in one product cannot be fully applied to another similar product. For example:

[0004] In virtual live streaming, you first need to create a new virtual live streaming task and then configure a dedicated encoding template for virtual live streaming. The encoding template parameters include common audio and video parameters as well as various virtual live streaming-specific parameters. After configuring the encoding template and starting the task, the parameters in the encoding template are sent to the dedicated transcoding service for virtual live streaming to assemble the transcoding command lines. The virtual live streaming transcoding service can only assemble the dedicated transcoding command lines based on the characteristics of virtual live streaming. Once the command lines are assembled, they are executed by the dedicated engine for virtual live streaming.

[0005] For online transcoding, the process for using encoding templates is similar to that for virtual live streaming. You must first create a new online transcoding task and configure a dedicated encoding template. This template includes common parameters such as audio and video, as well as some specific parameters for online transcoding. After the task is started, the parameters in the encoding template are sent to the dedicated transcoding service. The transcoding service then assembles the online transcoding command line and sends it to the dedicated engine for execution.

[0006] Therefore, if a modification is made to the dedicated encoding template in a virtual live broadcast product, and a similar modification is required in another product, such as online transcoding, the dedicated encoding template in online transcoding must also be modified. This fully coupled structure of encoding templates and products increases development costs and reduces development efficiency. Summary of the Invention

[0007] The purpose of the present invention is to provide a method, device, equipment and storage medium for obtaining a universal transcoding template to solve the problems of inconsistent transcoding parameters and transcoding engines in different products and each audio and video processing tool can only use its own encoding template.

[0008] In order to solve the above problems, the technical solution of the present invention is:

[0009] A method for obtaining a universal transcoding template, comprising:

[0010] Bringing together a variety of audio and video processing tools, decoupling the business and logical data related to the encoding template, and integrating them to obtain encoding template services including audio parameters, video parameters, image processing parameters, watermark parameters, graphic layout parameters, and background image parameters;

[0011] Optimize and integrate the transcoding services of multiple audio and video processing tools, identify different audio and video processing tools, and give each audio and video processing tool a unique identification code to facilitate transcoding service identification and select the corresponding command line splicing method;

[0012] Optimize and unify the engine services of multiple audio and video processing tools to execute command lines from them;

[0013] The encoding template service, transcoding service and engine service are combined to obtain a universal transcoding template.

[0014] Among them, various audio and video processing tools include virtual live broadcast tools, online transcoding tools, offline transcoding tools and recording tools.

[0015] When transcoding during a live broadcast, perform the following steps:

[0016] Create a new live broadcast task;

[0017] Call the encoding template service API through the general transcoding template management web page to create a new encoding template and save it to the encoding template service;

[0018] After the live broadcast task is started, the encoding template service sends the parameters in the encoding template to the transcoding service;

[0019] The transcoding service identifies and confirms that it is live transcoding based on the identification code in the parameter, generates a command line in the live transcoding mode, and sends it to the engine service;

[0020] The engine service recognizes and executes the command line.

[0021] Based on the same concept, a device for obtaining a universal transcoding template is provided, comprising:

[0022] The encoding template integration module is used to integrate multiple audio and video processing tools, decouple the business and logical data related to the encoding template, and integrate them to obtain encoding template services including audio parameters, video parameters, image processing parameters, watermark parameters, graphic layout parameters, and background image parameters;

[0023] The transcoding service optimization module is used to optimize and integrate the transcoding services of various audio and video processing tools. Different audio and video processing tools are identified, and each audio and video processing tool has a unique identification code to facilitate the transcoding service to identify and select the corresponding command line splicing method;

[0024] The engine service optimization module is used to optimize and unify the engine services of multiple audio and video processing tools to execute command lines from multiple audio and video processing tools.

[0025] A device comprising:

[0026] A memory and a processor, wherein instructions are stored in the memory and the memory and the processor are interconnected via a line;

[0027] The processor calls the instruction in the memory to implement the method for obtaining a universal transcoding template in an embodiment of the present invention.

[0028] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements a method for obtaining a universal transcoding template in an embodiment of the present invention.

[0029] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art:

[0030] A method for obtaining a universal transcoding template in one embodiment of the present invention optimizes the parameters of the encoding templates in various audio and video processing tools, flexibly integrating the common and specific parameters in the encoding templates of each audio and video processing tool into unified encoding template parameters that can be used in multiple audio and video products. The transcoding services of each audio and video processing tool are optimized and integrated, optimizing and integrating the transcoding parameters and transcoding command line splicing methods of different products to enable the transcoding services to adapt to different products. The engine services are optimized and unified, enabling the engine services to distinguish and execute command lines from different products. By optimizing and unifying transcoding parameters, transcoding services, and engine services, encoding templates can be shared across multiple audio and video products. This structure enables encoding templates created in one product to be used in multiple products. The source of encoding templates in a product is no longer limited to that product; they can also be from encoding templates created in other products, making it more convenient, flexible, and open. Furthermore, from a development perspective, since encoding templates can be shared, changes to encoding templates can be applied to multiple products simultaneously, simplifying development, improving development efficiency, and facilitating maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 Flowchart of a method for obtaining a universal transcoding template in one embodiment of the present invention;

[0032] Figure 2 A flowchart of using a universal transcoding template in one embodiment of the present invention;

[0033] Figure 3 This is a block diagram of a device for obtaining a universal transcoding template in one embodiment of the present invention;

[0034] Figure 4 Schematic diagram of a device for obtaining a universal transcoding template in an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The following is a detailed description of a method, device, apparatus, and storage medium for obtaining a universal transcoding template proposed by the present invention, in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description and claims.

[0036] Example 1

[0037] This embodiment provides a method for obtaining a general transcoding template. Figure 1 The method for obtaining the universal transcoding template includes the following steps:

[0038] S1: Brings together multiple audio and video processing tools, decouples and integrates the business and logical data related to the encoding template to obtain the encoding template service including audio parameters, video parameters, image processing parameters, watermark parameters, graphic layout parameters, and background image parameters;

[0039] S2: Optimize and integrate the transcoding services of multiple audio and video processing tools. Different audio and video processing tools are identified, and each audio and video processing tool has a unique identification code to facilitate the transcoding service to identify and select the corresponding command line splicing method.

[0040] S3: Optimizes and unifies the engine services of multiple audio and video processing tools to execute command lines from multiple audio and video processing tools.

[0041] In step S1, the encoding templates in each audio and video processing tool are decoupled to form a separate service and optimized to become an encoding template service that can be shared by multiple audio and video products.

[0042] Decoupling: Currently, the business logic related to encoding templates in each tool is integrated with the business itself. Decoupling means separating the business and logic related to encoding templates from each audio and video processing tool.

[0043] Integrate the encoding templates of different tools into a shared encoding template: Some of the encoding templates of various audio and video processing tools are universal, such as video and audio parameters. However, some parameters are unique to each audio and video processing tool, such as image processing parameters, watermark parameters, graphic layout parameters, and background image parameters. Integration is achieved by placing the common and unique parameters of these audio and video processing tools into a shared encoding template. Specifically, the encoding template-related services and logic of each audio and video processing tool are extracted to form a separate encoding template service that can be applied to each audio and video processing tool. The parameters in the integrated shared encoding template include: video parameters, audio parameters, image processing parameters, watermark parameters, graphic layout parameters, and background image parameters.

[0044] In step S2, the transcoding services of various audio and video processing tools are optimized and unified so that the command line splicing method is applicable to a variety of audio and video products. The transcoding service is responsible for converting the input, encoding, and output parameters of the task into commands that the engine can recognize. Since various audio and video products use the same database fields, such as audio bitrate is audioBitRate, the command lines spliced by the transcoding service are all "-b:a". The difference is that different products have their own unique fields, such as recording products have recording duration fields. Virtual live broadcast products have fields unique to virtual live broadcasts. In addition, when calling the transcoding service, the transcoding service will be informed of which product the operation is to be executed from, through an enumeration (or identifier) such as virtual live broadcast / recording / online transcoding, the transcoding service will generate the corresponding command based on this enumeration value. Therefore, the transcoding service can be unified for various audio and video products.

[0045] In step S3, the engine services of various audio and video processing tools are optimized and unified, enabling them to execute command lines from a variety of audio and video products. The engine services include transcoding, recording, and other functions that support multiple products. As long as each audio and video product splices commands according to the engine service's specifications, the engine services will recognize and execute the corresponding functions. Therefore, the engine services can be unified across audio and video products.

[0046] Application Examples

[0047] When creating tasks in various audio and video processing tools, you can obtain shared encoding templates through the shared encoding template service. Encoding templates created in each tool are automatically saved to the shared encoding template service.

[0048] After starting their respective tasks, the unified transcoding service will assemble the transcoding command lines required by the corresponding products according to different products, and then hand them over to the unified engine service to execute the command lines.

[0049] Please see Figure 2 The products that use the shared encoding template service include: virtual live broadcast, online transcoding, offline transcoding and recording system.

[0050] The services included in the following process descriptions are: Encoding Template Service, Transcoding Service, and Engine Service.

[0051] Use a common encoding template workflow in virtual live broadcasts:

[0052] 1. Create a new virtual live broadcast task;

[0053] 2. By calling the API of the coding template service through the coding template management WEB page, you can create a new shared coding template and use it. The newly created coding template will be automatically saved to the coding template service. You can also directly obtain the shared coding template through the import function.

[0054] 3. After the task is started, the parameters in the encoding template are sent to the unified transcoding service, which splices the transcoding command line. The transcoding service generates transcoding command lines containing different parameters based on different products. In this example, the transcoding service generates command lines based on virtual live broadcasting.

[0055] 4. The engine service recognizes and executes the command line.

[0056] Example 2

[0057] This embodiment provides a general transcoding template acquisition device, please refer to Figure 3 , the acquisition device of the universal transcoding template includes:

[0058] The encoding template integration module 1 is used to integrate various audio and video processing tools, decouple the business and logical data related to the encoding template, and integrate them to obtain the encoding template service including audio parameters, video parameters, image processing parameters, watermark parameters, graphic layout parameters and background image parameters;

[0059] Transcoding service optimization module 2 is used to optimize and integrate the transcoding services of multiple audio and video processing tools, identify different audio and video processing tools, and give each audio and video processing tool a unique identification code to facilitate the transcoding service to identify and select the corresponding command line splicing method;

[0060] Engine service optimization module 3 is used to optimize and unify the engine services of multiple audio and video processing tools to execute command lines from multiple audio and video processing tools.

[0061] The device for obtaining the universal transcoding template and the method for obtaining the universal transcoding template in the first embodiment above belong to the same inventive concept, and will not be described in detail here.

[0062] Example 3

[0063] The present invention also provides a device for obtaining a universal transcoding template. Figure 4 The device 500 for obtaining a universal transcoding template may vary significantly depending on its configuration or performance. It may include one or more central processing units (CPUs) 510 (e.g., one or more processors), a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing applications 533 or data 532. The memory 520 and storage media 530 may be either transient or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instructions operating on the device 500 for obtaining a universal transcoding template.

[0064] Furthermore, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the acquisition device 500 of the universal transcoding template.

[0065] The universal transcoding template acquisition device 500 may further include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Serve, Vista, etc.

[0066] Those skilled in the art will understand that Figure 4The illustrated structure of the acquisition device for the universal transcoding template does not constitute a limitation on the acquisition device for the universal transcoding template, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0067] Another embodiment of the present invention further provides a computer-readable storage medium.

[0068] The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to execute the steps of the method for obtaining a universal transcoding template in Example 1.

[0069] If the method for obtaining a universal transcoding template is implemented in the form of program instructions 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 this embodiment 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 software, and the computer software is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program code.

[0070] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they still fall within the scope of protection of the present invention.

Claims

1. A method for obtaining a universal transcoding template, characterized in that: include: Bringing together a variety of audio and video processing tools, decoupling the business and logical data related to the encoding template, and integrating them to obtain encoding template services including audio parameters, video parameters, image processing parameters, watermark parameters, graphic layout parameters, and background image parameters; Optimize and integrate the transcoding services of multiple audio and video processing tools, identify different audio and video processing tools, and give each audio and video processing tool a unique identification code to facilitate transcoding service identification and select the corresponding command line splicing method; Optimize and unify the engine services of multiple audio and video processing tools to execute command lines from them.

2. The method for obtaining a universal transcoding template according to claim 1, wherein: A variety of audio and video processing tools include virtual live broadcast tools, online transcoding tools, offline transcoding tools and recording tools.

3. The method for obtaining a universal transcoding template according to claim 1, wherein: When transcoding during a live broadcast, perform the following steps: Create a new live broadcast task; Call the encoding template service API through the general transcoding template management web page to create a new encoding template and save it to the encoding template service; After the live broadcast task is started, the encoding template service sends the parameters in the encoding template to the transcoding service; The transcoding service identifies and confirms that it is live transcoding based on the identification code in the parameter, generates a command line in the live transcoding mode, and sends it to the engine service; The engine service recognizes and executes the command line.

4. A device for obtaining a universal transcoding template, characterized in that: include: The encoding template integration module is used to integrate various audio and video processing tools, decouple the business and logical data related to the encoding template, and integrate them to obtain encoding template services including audio parameters, video parameters, image processing parameters, watermark parameters, graphic layout parameters, and background image parameters; The transcoding service optimization module is used to optimize and integrate the transcoding services of various audio and video processing tools. Different audio and video processing tools are identified, and each audio and video processing tool has a unique identification code to facilitate the transcoding service to identify and select the corresponding command line splicing method; The engine service optimization module is used to optimize and unify the engine services of multiple audio and video processing tools to execute command lines from multiple audio and video processing tools.

5. A device, characterized in that include: A memory and a processor, wherein instructions are stored in the memory and the memory and the processor are interconnected via a line; The processor calls the instruction in the memory to implement the method for obtaining the universal transcoding template according to any one of claims 1 to 3.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for obtaining a universal transcoding template according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Audio and video synthesis method and system

    CN108495141A