CN115967832B - Method, device, equipment and storage medium for obtaining universal transcoding template - Google Patents
Method, device, equipment and storage medium for obtaining universal transcoding templateInfo
- Publication number
- CN115967832B CN115967832B CN202211728032.4A CN202211728032A CN115967832B CN 115967832 B CN115967832 B CN 115967832B CN 202211728032 A CN202211728032 A CN 202211728032A CN 115967832 B CN115967832 B CN 115967832B
- Authority
- CN
- China
- Prior art keywords
- transcoding
- template
- parameters
- audio
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses a method, a device, equipment and a storage medium for acquiring a universal transcoding template, wherein the universal parameters and special parameters in the coding templates of all audio and video processing tools are flexibly integrated into uniform coding template parameters which can be used for various audio and video products by optimizing the parameters of the coding templates in all audio and video processing tools. And optimizing and integrating transcoding parameters of different products and splicing modes of transcoding command lines, so that the transcoding service can be adapted to different products. The engine service is optimized and unified so that it can distinguish and execute command lines from different products. The coding template established in one product can be used in a plurality of products. From the development perspective, the coding templates are shared, so that the modification of the coding templates is simultaneously applicable to a plurality of products, the development is simplified, the development efficiency is improved, and the maintenance is easier.
Description
Technical Field
The invention belongs to the technical field of audio and video transcoding, and particularly relates to a method, a device, equipment and a storage medium for acquiring a universal transcoding template.
Background
The basic flow of transcoding is to configure a coding template, send parameters in the coding template to a transcoding service for splicing transcoding command lines, and then deliver the command lines to an engine service for executing the command lines after the command lines are spliced.
Currently, the code templates, transcoding services and engine services specific to the respective products are used in these different products. Each time transcoding is required, a code template specific to the respective product is configured first, and the code template configured in one product cannot be used in other products. When other products need to use the coding template, the special coding template used by the products needs to be independently configured. Because the coding templates of all the audio and video processing tools are not uniform, various transcoding parameters required to be configured in the coding templates are also not uniform, and the transcoding service and the engine service which are respectively special for all the audio and video processing tools are adopted, the transcoding process in one product cannot be completely suitable for another similar product. For example:
In the virtual live broadcast, a virtual live broadcast task needs to be newly established, and then a special coding template for the virtual live broadcast is configured, wherein parameters in the coding template comprise general audio and video parameters and various parameters special for the virtual live broadcast. After the coding template is configured into the task and the task is started, parameters in the coding template can be issued to the special transcoding service for virtual live broadcast to splice the transcoding command lines, and the transcoding service for virtual live broadcast can splice the special transcoding command lines only according to the characteristics of virtual live broadcast. And after the command line splicing is completed, the virtual live broadcast special engine executes the command line.
In online transcoding, the usage flow of the encoding template is similar to virtual live broadcast. The same needs to newly establish an online transcoding task and configure an online transcoding special coding template, wherein the coding template comprises general parameters such as audio and video and some online transcoding special parameters. After the task is started, the parameters in the coding template are sent to a special transcoding service for online transcoding, and the transcoding service can only splice the command line for online transcoding and then send the command line to a special engine for online transcoding to execute the command line.
Therefore, when a modification is made to a specific encoding template in the product of virtual live broadcast, and similar modification is also made to another product, such as online transcoding, the specific encoding template needs to be modified once in online transcoding. The structure that the coding template and the product are completely coupled together improves the development cost and reduces the development efficiency.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a storage medium for acquiring a universal transcoding template, which solve the problems that the transcoding parameters are not uniform, the transcoding engines are not uniform, and each audio/video processing tool can only use each encoding template.
In order to solve the problems, the technical scheme of the invention is as follows:
the method for acquiring the universal transcoding template comprises the following steps:
Collecting various audio and video processing tools, respectively decoupling related business and logic data of the coding template, and integrating to obtain coding template services comprising audio parameters, video parameters, image processing parameters, watermark parameters, image-text arrangement parameters and background picture parameters;
optimizing and integrating transcoding services of various audio and video processing tools, marking different audio and video processing tools, enabling each audio and video processing tool to have a unique identification code, facilitating identification of the transcoding service, and selecting a corresponding command line splicing mode;
Optimizing and unifying engine services of a plurality of audio and video processing tools to execute command lines from the plurality of audio and video processing tools;
And merging the coding template service, the transcoding service and the engine service to obtain a universal transcoding template.
The audio and video processing tools comprise a virtual live broadcast tool, an online transcoding tool, an offline transcoding tool and a recording tool.
When transcoding in live broadcast, the following steps are performed:
Newly creating a live broadcast task;
calling an API of the coding template service through a web page managed by the universal transcoding template, creating a coding template and storing the coding template into the coding template service;
after the live broadcast task is started, the encoding template service transmits parameters in the encoding template to the transcoding service;
The transcoding service identifies and confirms the live transcoding according to the identification code in the parameter, generates a command line in a live transcoding mode and sends the command line to the engine service;
the engine service identifies and executes the command line.
Based on the same conception, there is provided an acquisition apparatus of a generic transcoding template, comprising:
the coding template integration module is used for integrating various audio and video processing tools, respectively decoupling the related business and logic data of the coding template, and integrating to obtain coding template services comprising audio parameters, video parameters, image processing parameters, watermark parameters, image-text arrangement parameters and background picture parameters;
the transcoding service optimizing module is used for optimizing and integrating transcoding services of various audio and video processing tools, marking different audio and video processing tools, enabling each audio and video processing tool to have a unique identification code, facilitating the identification of the transcoding service, and selecting a corresponding command line splicing mode;
And the engine service optimizing module is used for optimizing and unifying engine services of various audio and video processing tools so as to execute command lines from the various audio and video processing tools.
An apparatus, comprising:
The device comprises a memory and a processor, wherein instructions are stored in the memory, and the memory and the processor are interconnected through a line;
The processor calls the instructions in the memory to realize the method for acquiring the universal transcoding template in an embodiment of the invention.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for obtaining a generic transcoding template in an embodiment of the present invention.
By adopting the technical scheme, the invention has the following advantages and positive effects compared with the prior art:
According to the method for acquiring the universal transcoding template in the embodiment of the invention, the universal parameters and the special parameters in the coding templates of all the audio and video processing tools are flexibly integrated into uniform coding template parameters which can be used for various audio and video products by optimizing the parameters of the coding templates in all the audio and video processing tools. And optimizing the transcoding service of each audio and video processing tool, optimizing and integrating the transcoding parameters of different products and the splicing modes of the transcoding command lines, so that the transcoding service can be adapted to different products. The engine service is optimized and unified so that it can distinguish and execute command lines from different products. The coding template can be used for various audio and video products by optimizing and unifying the transcoding parameters, the transcoding service and the engine service. This structure enables the code template built in one product to be used in a plurality of products. The source of the coding template in the product is not limited in the product any more, and the coding template can be built from other products, so that the method is more convenient, flexible and open. Meanwhile, from the development perspective, the coding templates are shared, so that the modification of the coding templates is simultaneously applicable to a plurality of products, the development is simplified, the development efficiency is improved, and the maintenance is easier.
Drawings
FIG. 1 is a flow chart of a method for obtaining a generic transcoding template in an embodiment of the present invention;
FIG. 2 is a flow chart illustrating the use of a generic transcoding template in an embodiment of the present invention;
FIG. 3 is a block diagram of a generic transcoding template acquisition device, according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an apparatus for obtaining a generic transcoding template according to an embodiment of the present invention.
Detailed Description
The following describes in further detail a method, apparatus, device and storage medium for obtaining a generic transcoding template according to the present invention with reference to the accompanying drawings and specific embodiments. Advantages and features of the invention will become more apparent from the following description and from the claims.
Example 1
The embodiment provides a method for obtaining a universal transcoding template, please refer to fig. 1, which includes the following steps:
S1, collecting various audio and video processing tools, respectively decoupling related business and logic data of a coding template, and integrating to obtain coding template services including audio parameters, video parameters, image processing parameters, watermark parameters, image-text arrangement parameters and background picture parameters;
S2, optimizing and integrating transcoding services of various audio and video processing tools, marking different audio and video processing tools, enabling each audio and video processing tool to have a unique identification code so as to facilitate the identification of the transcoding service, and selecting a corresponding command line splicing mode;
And S3, optimizing and unifying engine services of various audio and video processing tools to execute command lines from the various audio and video processing tools.
In step S1, the encoding templates in each audio and video processing tool are decoupled to form a single service and optimized to be an encoding template service that can be shared by multiple audio and video products.
The specific decoupling is that the service logic and the service related to the coding template in the respective tools are in the same service at present. The decoupling is to independently extract the business and logic related to the coding template in each audio and video processing tool.
The coding templates of the different tools are integrated into a common coding template, and a part of the coding templates of the audio and video processing tools can be common, such as video parameters and audio parameters. And some parameters are specific to each audio-video processing tool, such as image processing parameters, watermark parameters, graphics layout parameters, and background picture parameters. Integration is achieved by placing the general and specific parameters of the audio and video processing tools into a common encoding template. Specifically, the service and logic related to the coding template in each audio and video processing tool are extracted to form a single coding template service which can be suitable for each audio and video processing tool. The parameters in the integrated common coding template comprise video parameters, audio parameters, image processing parameters, watermark parameters, image-text arrangement parameters and background picture parameters.
In step S2, the transcoding service of each audio and video processing tool is optimized and unified, so that the splicing mode of the command line is applicable to various audio and video products. The transcoding service is responsible for converting the input, encoding, output parameters of the task into commands that the engine can recognize. Since the same database field is used for each audio and video product, for example, the audio code rate is audioBitRate, the command line spliced by the transcoding service is "-b: a". The difference is that different products have their own unique fields, such as recording the product has a recording duration field. The virtual live product has fields specific to virtual live. In addition, when the transcoding service is invoked, the transcoding service is informed of what product is to be performed from, and by means of an enumeration (or identification) such as virtual live/record/online transcoding, the transcoding service generates a corresponding command based on this enumeration value. The transcoding service can be unified for each audio-video product.
In step S3, the engine service of each audio and video processing tool is optimized and unified so that it can execute command lines from a plurality of audio and video products. The engine service has the functions of transcoding, recording and the like for supporting various products, and can recognize and execute corresponding functions as long as all audio and video products splice commands according to the mode specified by the engine service. The engine service may be unified for each audio-visual product as well.
Application example
When creating respective tasks in each audio and video processing tool, a common encoding template can be obtained through a common encoding template service. The code templates created in the respective tools are automatically saved to a common code template service.
After the respective tasks are started, the unified transcoding service splices the transcoding command lines required by the corresponding products according to the different products, and then the unified engine service executes the command lines.
Referring to fig. 2, products that use a common encoding template service are virtual live, online transcoding, offline transcoding, and recording systems.
Services included in the following flow description are a code template service, a transcoding service, and an engine service.
Using a common encoding template flow in virtual live broadcast:
1. Creating a virtual live broadcast task;
2. the API of the code template service is called through the WEB page managed by the code template, a common code template can be newly established and used, the newly established code template can be automatically stored in the code template service, and the common code template can be directly obtained through an importing function.
3. After the task is started, the parameters in the coding template are sent to a unified transcoding service, the unified transcoding service splices the transcoding command lines, and the transcoding service generates the transcoding command lines containing different parameters according to different products. In this example, the transcoding service would generate command lines in a virtual live manner.
4. The engine service identifies and executes the command line.
Example two
The present embodiment provides an apparatus for obtaining a generic transcoding template, please refer to fig. 3, which includes:
The coding template integration module 1 is used for integrating various audio and video processing tools, respectively decoupling the related business and logic data of the coding template, and integrating to obtain coding template services comprising audio parameters, video parameters, image processing parameters, watermark parameters, image-text arrangement parameters and background picture parameters;
the transcoding service optimizing module 2 is used for optimizing and integrating transcoding services of various audio and video processing tools, marking different audio and video processing tools, enabling each audio and video processing tool to have a unique identification code, facilitating the identification of the transcoding service, and selecting a corresponding command line splicing mode;
the engine service optimizing module 3 is configured to optimize and unify engine services of various audio/video processing tools to execute command lines from the various audio/video processing tools.
The apparatus for obtaining the generic transcoding template belongs to the same inventive concept as the method for obtaining the generic transcoding template in the first embodiment, and will not be described herein.
Example III
The invention also provides a device for acquiring the universal transcoding template. Referring to fig. 4, the generic transcoding template acquisition device 500 may vary considerably in configuration or performance and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and memory 520, one or more storage mediums 530 (e.g., one or more mass storage devices) that store applications 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the acquisition device 500 for a generic transcoding template.
Further, the processor 510 may be arranged to communicate with the storage medium 530, executing a series of instruction operations in the storage medium 530 on the generic transcoding template acquisition device 500.
The generic transcoding template acquisition device 500 may also include one or more power sources 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, vista, and the like.
It will be appreciated by those skilled in the art that the generic transcoding template acquisition device structure illustrated in fig. 4 does not constitute a limitation of the generic transcoding template acquisition device and may include more or fewer components than illustrated, or may combine certain components, or a different arrangement of components.
Another embodiment of the present invention also provides a computer-readable storage medium.
The computer readable storage medium may be a non-volatile computer readable storage medium, and the computer readable storage medium may also be a volatile computer readable storage medium. The computer-readable storage medium has stored therein instructions that, when executed on a computer, cause the computer to perform the steps of the method for acquiring a generic transcoding template in embodiment one.
The method of obtaining the generic transcoding template, if implemented in the form of program instructions and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present embodiment may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of software, where the computer software is stored in a storage medium, and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. The storage medium includes a U disk, a removable hard disk, a Read-only memory (ROM), a random access memory (Random access memory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, it is within the scope of the appended claims and their equivalents to fall within the scope of the invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211728032.4A CN115967832B (en) | 2022-12-29 | 2022-12-29 | Method, device, equipment and storage medium for obtaining universal transcoding template |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211728032.4A CN115967832B (en) | 2022-12-29 | 2022-12-29 | Method, device, equipment and storage medium for obtaining universal transcoding template |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115967832A CN115967832A (en) | 2023-04-14 |
CN115967832B true CN115967832B (en) | 2025-08-08 |
Family
ID=87361677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211728032.4A Active CN115967832B (en) | 2022-12-29 | 2022-12-29 | Method, device, equipment and storage medium for obtaining universal transcoding template |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115967832B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108495141A (en) * | 2018-03-05 | 2018-09-04 | 网宿科技股份有限公司 | A kind of synthetic method and system of audio and video |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3972683B2 (en) * | 2002-03-01 | 2007-09-05 | ソニー株式会社 | Cut list generation system, center server, advertisement production terminal device, computer program, storage medium, and center server cut list generation method. |
US7788090B2 (en) * | 2004-09-17 | 2010-08-31 | Koninklijke Philips Electronics N.V. | Combined audio coding minimizing perceptual distortion |
US10588486B2 (en) * | 2013-09-19 | 2020-03-17 | Physio-Control, Inc | Multi-function video system with interchangeable medical tool |
US9183580B2 (en) * | 2010-11-04 | 2015-11-10 | Digimarc Corporation | Methods and systems for resource management on portable devices |
CN104702987B (en) * | 2015-03-27 | 2018-04-10 | 南京视海网络科技有限公司 | A kind of highly compatible services the bandwidth self-adaption stream media system and method for a variety of different terminals |
CN109379556B (en) * | 2018-09-30 | 2021-11-12 | 中国船舶重工集团公司第七0九研究所 | Audio and video system based on business processing basic unit and working method thereof |
CN110225382A (en) * | 2019-05-27 | 2019-09-10 | 上海天怀信息科技有限公司 | Audio-video-interactive integration operating software based on split screen control technology |
CN111294612B (en) * | 2020-01-22 | 2021-05-28 | 腾讯科技(深圳)有限公司 | Multimedia data processing method, system and storage medium |
CN112312131B (en) * | 2020-12-31 | 2021-04-06 | 腾讯科技(深圳)有限公司 | Inter-frame prediction method, device, equipment and computer readable storage medium |
CN113473165A (en) * | 2021-06-30 | 2021-10-01 | 中国电信股份有限公司 | Live broadcast control system, live broadcast control method, device, medium and equipment |
-
2022
- 2022-12-29 CN CN202211728032.4A patent/CN115967832B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108495141A (en) * | 2018-03-05 | 2018-09-04 | 网宿科技股份有限公司 | A kind of synthetic method and system of audio and video |
Also Published As
Publication number | Publication date |
---|---|
CN115967832A (en) | 2023-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9875465B2 (en) | Process control device, process control method, and non-transitory computer-readable medium | |
JP5298117B2 (en) | Data merging in distributed computing | |
CN107368503B (en) | Data synchronization method and system based on button | |
CN113204598B (en) | Data synchronization method, system and storage medium | |
CN113094125A (en) | Business process processing method, device, server and storage medium | |
CN111538497A (en) | Configuration method and device suitable for multi-satellite measurement and control management | |
CN112367363A (en) | Information sharing method, device, server and storage medium | |
CN112905323A (en) | Data processing method and device, electronic equipment and storage medium | |
CN117389843B (en) | Intelligent operation and maintenance system, method, electronic equipment and storage medium | |
CN110955715A (en) | ERP system, data conversion method and device of target platform and electronic equipment | |
CN111324480A (en) | Large host transaction fault positioning system and method | |
CN115658793A (en) | Data processing method, system, storage medium and processor | |
CN115967832B (en) | Method, device, equipment and storage medium for obtaining universal transcoding template | |
CN112579312A (en) | Parameter mapping method and device, storage medium, interface calling platform and service system | |
CN112231292A (en) | File processing method and device, storage medium and computer equipment | |
CN114371866B (en) | Version reconstruction test method, device and equipment for business system | |
CN113238807A (en) | Module compatibility method, platform and server based on android system | |
US9503489B2 (en) | Streaming data on data processes | |
CN118277464A (en) | Digital delivery multi-standard mapping conversion method, system, medium and equipment | |
WO2024083109A1 (en) | File restoration degree evaluation method and apparatus, storage medium and device | |
CN110941658A (en) | Data export method, device, server and storage medium | |
CN114547007A (en) | A kind of big data feature extraction method, device and computer readable storage medium | |
CN118364033B (en) | Data processing method and device among database clusters and related equipment | |
CN117519779A (en) | Flow scheduling method and device for heterogeneous RPA products | |
CN114995915A (en) | Template configuration method, device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |