WO2023077866A1 - Multimedia data processing method and apparatus, electronic device, and storage medium - Google Patents

Multimedia data processing method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2023077866A1
WO2023077866A1 PCT/CN2022/106373 CN2022106373W WO2023077866A1 WO 2023077866 A1 WO2023077866 A1 WO 2023077866A1 CN 2022106373 W CN2022106373 W CN 2022106373W WO 2023077866 A1 WO2023077866 A1 WO 2023077866A1
Authority
WO
WIPO (PCT)
Prior art keywords
plug
target
multimedia data
playback
multimedia
Prior art date
Application number
PCT/CN2022/106373
Other languages
French (fr)
Chinese (zh)
Inventor
尚强
Original Assignee
北京字节跳动网络技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2023077866A1 publication Critical patent/WO2023077866A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44012Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/84Generation or processing of descriptive data, e.g. content descriptors

Definitions

  • the present disclosure relates to the field of embedded technology, for example, to a multimedia data processing method, device, electronic equipment and storage medium.
  • Embedded system is application-centric, based on modern computer technology, and can flexibly tailor software and hardware modules according to user needs, such as function, reliability, cost, volume, power consumption or environment.
  • the resource allocation, task scheduling or coordination of the above-mentioned software and hardware are inseparable from the operating system.
  • the operating system used on the terminal includes the Android (Android) operating system, which can provide upper-layer applications with certain functions. Data processing to realize the playback of multimedia data.
  • Android Android
  • the multimedia data method in the related art has the problem of poor processing effect.
  • the present disclosure provides a multimedia data processing method, device, electronic equipment and storage medium, which are used to avoid the poor multimedia data processing effect in the related art and improve the multimedia data processing effect.
  • the present disclosure provides a multimedia data processing method, including: receiving a multimedia play request sent by the first system, the multimedia play request carrying a player plug-in identifier; in response to the multimedia play request, generating a plug-in management in the second system unit; generate a target plug-in on the plug-in management unit according to the playback plug-in identifier; use the target plug-in to process the multimedia data to obtain target multimedia data; transmit the target multimedia data to the first system, so that the first system plays the target multimedia data in a visualized form.
  • the present disclosure also provides a multimedia data processing device, including: a multimedia play request receiving module configured to receive a multimedia play request sent by the first system, the multimedia play request carrying a playback plug-in identifier; a plug-in management unit generation module configured to In response to the multimedia playback request, a plug-in management unit is generated in the second system; a target plug-in generating module is configured to generate a target plug-in on the plug-in management unit according to the playback plug-in identification; a target multimedia data obtaining module, It is configured to use the target plug-in to process the multimedia data to obtain target multimedia data; the target multimedia data transmission module is configured to transmit the target multimedia data to the first system, so that the first system uses The target multimedia data is played in a visualized form.
  • a multimedia play request receiving module configured to receive a multimedia play request sent by the first system, the multimedia play request carrying a playback plug-in identifier
  • a plug-in management unit generation module configured to In response to the multimedia playback request, a plug-in
  • the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor.
  • the processor executes the program, it realizes the multimedia data processing described in any of the above method steps.
  • the present disclosure also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the multimedia data processing methods described above are implemented.
  • FIG. 1 is one of the application scenario schematic diagrams of the multimedia data processing method provided by the present disclosure
  • Fig. 2 is one of the schematic flow charts of the multimedia data processing method provided by the present disclosure
  • FIG. 3 is the second schematic flow diagram of the multimedia data processing method provided by the present disclosure.
  • Fig. 4 is the third schematic flow diagram of the multimedia data processing method provided by the present disclosure.
  • FIG. 5 is the fourth schematic flow diagram of the multimedia data processing method provided by the present disclosure.
  • FIG. 6 is the fifth schematic flow diagram of the multimedia data processing method provided by the present disclosure.
  • FIG. 7 is one of the structural schematic diagrams of the multimedia data processing method provided by the present disclosure.
  • FIG. 8 is the second structural schematic diagram of the multimedia data processing method provided by the present disclosure.
  • FIG. 9 is a schematic structural diagram of a multimedia data processing device provided by the present disclosure.
  • Fig. 10 is a schematic structural diagram of an electronic device provided by the present disclosure.
  • the multimedia data processing method provided in this application can be applied to the application environment shown in FIG. 1 , and specifically applied to a multimedia data processing system.
  • the multimedia data processing system includes a terminal 102 and a terminal 104, wherein the terminal 102 communicates with the terminal 104 through a network.
  • the terminal 102 receives a multimedia play request sent by the first system, and the multimedia play request carries a play plug-in identifier; in response to the multimedia play request, a plug-in management unit is generated in the second system in the terminal 104; according to the play Plug-in identification, generating a target plug-in on the plug-in management unit; utilizing the target plug-in to process the multimedia data to obtain the target multimedia data; transmitting the target multimedia data to the first system in the terminal 102, so that the first system plays in a visualized form Target multimedia data.
  • the terminal 102 or the terminal 104 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices. It can be understood that the foregoing terminal 102 and terminal 104 may be combined into a form of a terminal having both the first system and the second system.
  • a multimedia data processing method is provided, and the method is applied to a terminal as an example for illustration, including the following steps:
  • Step 202 receiving a multimedia play request sent by the first system, the multimedia play request carrying a playback plug-in identifier.
  • the multimedia play request refers to a request for playing multimedia data.
  • the playback plug-in identifier refers to a mark that can uniquely identify the playback plug-in.
  • the terminal receives a multimedia play request sent by the first system by receiving a trigger operation on a multimedia application, and the multimedia play request carries a play plug-in identifier.
  • Step 204 Generate a plug-in management unit in the second system in response to the multimedia playback request.
  • the plug-in management unit refers to a unit capable of unified management of plug-ins, and the unit may include plug-ins in multiple multimedia data processing stages or different types of plug-ins.
  • the plug-in management unit includes a stream fetching plug-in, a decoding plug-in, or an algorithm plug-in for multimedia video streams.
  • the terminal After receiving the multimedia play request sent by the first system, the terminal generates a plug-in management unit in the second system, which is a parallel system compatible with the first system, in response to the multimedia play request.
  • Step 206 generate a target plug-in on the plug-in management unit according to the playback plug-in identifier.
  • the target plug-in can be generated on the plug-in management unit through the playback plug-in identifier.
  • a picture in MP4 (Moving Picture Experts Group4) format needs to be played on the terminal, and the playback format corresponding to the picture is mpeg2 format, which can be used as a playback plug-in identification, and the target plug-in generated on the plug-in management unit is a plug-in of mpeg2enc type.
  • Step 208 use the target plug-in to process the multimedia data to obtain the target multimedia data.
  • multimedia data refers to data capable of supporting multimedia playing or data including multimedia playing content.
  • the terminal uses the target plug-in to process the multimedia data, and the processing includes acquiring, encoding, transmitting, and decoding the multimedia data.
  • Step 210 transmit the target multimedia data to the first system, so that the first system plays the target multimedia data in a visualized form.
  • the terminal After the terminal obtains the target multimedia data, it transmits the target multimedia data to the first system that is compatible with the second system and runs in parallel, so that the first system can play the target multimedia data in a visualized form, and the terminal has completed the multimedia data The entire process from sending a request to playing.
  • the multimedia playback request carries a playback plug-in identification; in response to the multimedia playback request, a plug-in management unit is generated in the second system; according to the above-mentioned playback plug-in Identifying, generating the target plug-in on the plug-in management unit; using the target plug-in to process the multimedia data to obtain the target multimedia data; transmitting the target multimedia data to the first system, so that the first system can play the target multimedia data in a visual form.
  • transmitting the target multimedia data to the first system includes:
  • Step 302 acquiring the target multimedia data type.
  • the type of multimedia data refers to a type when playing multimedia data, and the type includes pictures, videos, or audios.
  • the terminal judges the acquired target multimedia data through the multimedia data type judging plug-in, and acquires the target multimedia data type.
  • Step 304 Obtain the target transmission channel corresponding to the target multimedia data type according to the corresponding relationship between the target multimedia data type and the transmission channel.
  • the transmission channel refers to a communication channel capable of transmitting multimedia data.
  • each target multimedia data type is provided with a corresponding transmission channel, and the target transmission channel corresponding to the target multimedia data type is obtained.
  • Step 306 transmit the target multimedia data to the first system through the target transmission channel.
  • the terminal may transmit the corresponding target multimedia data to the first system through the target transmission channel.
  • the multimedia data is processed in the second system of the terminal, and the target multimedia data obtained after processing is transmitted to the first system through a corresponding transmission channel.
  • the audio is returned through the ARC (Audio return channel) channel.
  • the target transmission channel corresponding to the target multimedia data type is obtained, and the target multimedia data is transmitted to the first system through the target transmission channel, It can be realized that different types of multimedia data are transmitted through different transmission channels, thereby improving the efficiency of multimedia data processing.
  • generating a plug-in management unit in the second system includes:
  • Step 402 acquire the playing parameters in the multimedia playing request.
  • the playing parameter refers to a parameter enabling the multimedia data to realize its playing function.
  • the playback parameter is a parameter for the eyebrow option in the video.
  • the terminal can acquire the playing parameters in the multimedia playing request through the parameter identification of the playing parameters themselves.
  • the parameter identifier can be a text description, or a unique label, etc.
  • the playback parameter obtained in the multimedia playback request is a playback parameter for processing eyebrows.
  • Step 404 according to the corresponding relationship between the playback parameters and the unit generation tool, determine the unit generation tool corresponding to the plug-in management unit as the target unit generation tool.
  • the terminal determines to generate a corresponding target unit generation tool according to the correspondence between the playback parameters and the unit generation tools. For example, if the acquired playback parameters are playback parameters for processing eyebrows, the related function or script tool for generating the plug-in management unit is called as the target unit generation tool.
  • Step 406 using the target unit generation tool to generate a plug-in management unit in the second system.
  • the terminal uses the target unit generation tool to generate the plug-in management unit in the second system.
  • the target unit generation tool is a creation function for rendering eyebrows
  • the plug-in management unit is generated in the second system by using the creation function.
  • the creation function is used to generate a pipeline with eyebrow rendering function in the second system.
  • the pipeline refers to a plug-in management unit that can gather multiple plug-ins and use the above-mentioned multiple plug-ins to complete a certain function in a pipelined form.
  • the plug-in management unit by obtaining the playback parameters in the multimedia playback request, according to the correspondence between the playback parameters and the unit generation tool, determine the unit generation tool corresponding to the plug-in management unit, as the target unit generation tool, using the target unit generation tool, By generating the plug-in management unit in the second system, the plug-in management unit can be accurately determined.
  • the multimedia data processing method also includes:
  • Step 502 acquire the first description language of the playback parameter; the first description language is the description language of the playback parameter in the first system.
  • the description language refers to describing the playback parameters as a language that can be recognized by the terminal and has certain grammatical rules.
  • the terminal determines the description language of the playing parameters according to the grammatical structure of the playing parameters, so as to obtain the first description language of the playing parameters. For example, if the language used to describe the playback parameters is the grammatical structure of the JAVA language (computer programming language), then the acquired first description language is the JAVA language. The language is the language in the first system of the terminal.
  • the language used to describe the playback parameters is the grammatical structure of the JAVA language (computer programming language)
  • the acquired first description language is the JAVA language.
  • the language is the language in the first system of the terminal.
  • Step 504 converting the first description language into an intermediate description language.
  • the terminal After acquiring the first description language, the terminal converts it into a common description language, and the common description language can be used as a tool for language conversion between the first system and the second system of the terminal.
  • Step 506 Convert the intermediate description language into the second description language according to the correspondence between the intermediate description language and the second description language; the second description language is the description language of the playing parameters in the second system.
  • the terminal converts the intermediate description language into the second description language according to the correspondence between the intermediate description language and the second description language.
  • the first description language in the first system of the terminal is JAVA language
  • the second description language in the second system is C++ (computer description language)
  • the intermediate description language can be different from the first description language and the second description language.
  • the first description language is the description language of the playback parameters in the first system
  • the first description language is converted into an intermediate description language, and according to the intermediate description language and the second
  • the corresponding relationship of the description language converts the intermediate description language into the second description language, so as to realize the compatibility between the first system and the second system in the terminal.
  • generating the target plug-in on the plug-in management unit includes:
  • Step 602 Obtain one or more intermediate playback plug-ins corresponding to the playback plug-in identifiers from the set of candidate playback plug-ins.
  • each multimedia playback request includes one or more playback plug-in IDs, and correspondingly, one or more intermediate playback plug-ins corresponding to the playback plug-in IDs are obtained.
  • Step 604 sort the acquired intermediate playback plug-ins according to the priority of the playback plug-ins, to obtain a sequence of intermediate playback plug-ins.
  • the priority refers to the level of priority processing, and the priority can be determined according to the priority identification on the multimedia player plug-in, and can also be determined according to the order of the plug-ins on the plug-in management unit, and the priority can determine that the plug-in is on the plug-in management unit The order of execution, the higher the priority, the earlier the execution time; the lower the priority, the later the execution time.
  • the terminal sorts the obtained intermediate playback plug-ins according to the priorities of the playback plug-ins to obtain a sequence of intermediate playback plug-ins.
  • the priority of the playback plug-in is represented by a number, the larger the number, the higher the priority; the priority of the middle playback plug-in 1 is 50, and the priority of the middle playback plug-in 2 is 20, so the middle playback plug-in 1 is sorted after the middle playback plug-in Before 2, when the plug-in is executed, the intermediate playback plug-in 1 is executed first, and then the intermediate playback plug-in 2 is executed.
  • Step 606 package the intermediate playback plug-ins in the intermediate playback plug-in sequence into an overall plug-in.
  • the terminal may package the intermediate playback plug-ins in the sequence into an overall plug-in, so that after receiving the same multimedia playback request, the overall plug-in can be invoked as a whole to improve the efficiency of plug-in invocation.
  • Step 608 determine the overall plug-in as the target plug-in generated on the plug-in management unit.
  • the terminal determines the overall plug-in as the target plug-in, so as to directly invoke the target plug-in when establishing a corresponding plug-in management unit, thereby improving the processing efficiency of multimedia data.
  • the terminal determines the overall plug-in as the target plug-in, so as to directly invoke the target plug-in when establishing a corresponding plug-in management unit, thereby improving the processing efficiency of multimedia data.
  • the terminal determines the overall plug-in as the target plug-in, so as to directly invoke the target plug-in when establishing a corresponding plug-in management unit, thereby improving the processing efficiency of multimedia data.
  • a decoding plug-in For example, to beautify a portrait in a video, you need an encoding plug-in, a decoding plug-in, a rendering plug-in, a blurring algorithm plug-in, and a filter plug-in.
  • the plug-in management unit of the portrait beautification plug-in directly.
  • the intermediate playback plug-in by obtaining one or more intermediate playback plug-ins corresponding to the playback plug-in identifiers from the set of candidate playback plug-ins, sorting the intermediate playback plug-ins according to the priority of the playback plug-ins, obtaining the sequence of intermediate playback plug-ins, and In the playback plug-in sequence, the intermediate playback plug-in is packaged into an overall plug-in, and the overall plug-in is determined to be the target plug-in generated on the plug-in management unit, which can improve the efficiency of multimedia data processing.
  • the multimedia data processing method further includes: canceling the generation result between the current plug-in and the target plug-in, and switching the status of the multimedia playback request to the event status before the initial request is not responded.
  • the terminal when it receives a multimedia playback request, it searches for the corresponding plug-in in the second system according to the playback plug-in identifier in the request, and when an abnormality occurs when searching for a certain plug-in, cancels the operation of the previously found plug-in and the found plug-in , retraversing the plug-ins in the plug-in collection in the form of an initial multimedia playback request, and regenerating the target plug-in.
  • the first system of the terminal is an Android (Android) operating system
  • the second system is a Linux operating system as an example, wherein the Linux operating system is another operating system different from the Android operating system.
  • the Android operating system can provide a video playback framework through which the upper-layer application of video playback is provided.
  • Android encoding and decoding in related technologies mainly rely on Medialayer and Mediaodec classes, and the functional processing of images and videos is not very rich.
  • the multimedia framework of the pipeline (pipeline) in the Gstreamer class in the Linux operating system can perform more abundant processing on the video in the form of a plug-in. For example, functions such as acquisition, encoding, decoding, rendering, and filters are implemented in the form of plug-ins.
  • a specified effect can be inserted into a video.
  • the processing of beautifying portraits in videos can be realized by inserting them into the pipeline in the form of plug-ins, and the processing of image blurring can also be achieved by adding corresponding blurring algorithms in the pipeline, and the video can be hot-swapped. to process.
  • the pipeline can combine the supported pipelines, which can be easily cut in the form of switches.
  • plug-ins in the framework including the built-in plug-ins and custom plug-ins in the Gstreamer framework.
  • the filescr plug-in for reading files or the gst-droid plug-in for transferring video data to the Android operating system etc.
  • the Android operating system can communicate with the Linux operating system through a compatible interface. Thereby reducing the cumbersome development procedures and difficult maintenance problems caused by the development of the Android operating system, and at the same time strengthening the compatibility of the multimedia part of the dual system.
  • the multimedia data processing device provided by the present disclosure is described below, and the multimedia data processing device described below and the multimedia data processing method described above can be referred to in correspondence.
  • a multimedia data processing device 900 including: a multimedia play request receiving module 902, a plug-in management unit generating module 904, a target plug-in generating module 906, and a target multimedia data obtaining module 908 And the target multimedia data transmission module 910, wherein: the multimedia play request receiving module 902 is set to receive the multimedia play request sent by the first system, and the multimedia play request carries the play plug-in identification; the plug-in management unit generation module 904 is set to respond to The multimedia playback request generates a plug-in management unit in the second system; the target plug-in generation module 906 is configured to generate a target plug-in on the plug-in management unit according to the playback plug-in identification; the target multimedia data obtains a module 908, which is configured to use the target plug-in to generate a target plug-in for the multimedia The data is processed to obtain target multimedia data; the target multimedia data transmission module 910 is configured to transmit the target multimedia data to the first system, so that the first system
  • the target multimedia data transmission module 910 includes: a target multimedia data type acquisition unit, a target transmission channel acquisition unit and a target multimedia data transmission unit, wherein: the target multimedia data type acquisition unit is configured to acquire the target multimedia data type; The target transmission channel obtaining unit is set to obtain the target transmission channel corresponding to the target multimedia data type according to the corresponding relationship between the target multimedia data type and the transmission channel; the target multimedia data transmission unit is set to transmit the target multimedia data to the target multimedia data through the target transmission channel first system.
  • the plug-in management unit generation module 904 is configured to obtain the playback parameters in the multimedia playback request; according to the correspondence between the playback parameters and the unit generation tool, determine the unit generation tool corresponding to the plug-in management unit as the target unit A generating tool; using the target unit generating tool to generate a plug-in snap-in in the second system.
  • the multimedia data processing device is configured to obtain the first description language of the playback parameters; the first description language is the description language of the playback parameters in the first system; the first description language is converted into an intermediate description language; according to The corresponding relationship between the intermediate description language and the second description language is to convert the intermediate description language into the second description language; the second description language is the description language of the playing parameters in the second system.
  • the target plug-in generation module 906 is configured to obtain one or more intermediate playback plug-ins corresponding to the playback plug-in identifier from the set of candidate playback plug-ins; sort the intermediate playback plug-ins according to the priority of the playback plug-ins, Obtaining the intermediate playback plug-in sequence; packaging the intermediate playback plug-in in the intermediate playback plug-in sequence into an overall plug-in; determining the overall plug-in as the target plug-in generated on the plug-in management unit.
  • the multimedia data processing device is configured to cancel the generation result between the current plug-in and the target plug-in, and switch the status of the multimedia playback request to the event status before the initial request is not responded.
  • Figure 10 illustrates a schematic diagram of the physical structure of an electronic device, as shown in Figure 10, the electronic device may include: a processor (processor) 1010, a communication interface (Communications Interface) 1020, a memory (memory) 1030 and a communication bus 1040, Wherein, the processor 1010 , the communication interface 1020 , and the memory 1030 communicate with each other through the communication bus 1040 .
  • processor processor
  • Communication interface Communication Interface
  • memory memory
  • the processor 1010 can call the logic instructions in the memory 1030 to execute the multimedia data processing method, the method includes: receiving a multimedia play request sent by the first system, the multimedia play request carrying a player plug-in identifier; responding to the multimedia play request, in Generate a plug-in management unit in the second system; generate a target plug-in on the plug-in management unit according to the playback plug-in identification; use the target plug-in to process the multimedia data to obtain the target multimedia data; transmit the target multimedia data to the first system, so that the second system A system plays target multimedia data in a visualized form.
  • the above logic instructions in the memory 1030 may be implemented in the form of software functional units and when sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the computer software product is stored in a storage medium, including several
  • the instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in multiple embodiments of the present disclosure.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
  • the present disclosure also provides a computer program product
  • the computer program product includes a computer program stored on a non-transitory computer-readable storage medium
  • the computer program includes program instructions, and when the program instructions are executed by a computer
  • the computer can execute the multimedia data processing method provided by the above-mentioned multiple methods, the method includes: receiving the multimedia play request sent by the first system, the multimedia play request carries the player plug-in identification; in response to the multimedia play request, at the Generate a plug-in management unit in the second system; generate a target plug-in on the plug-in management unit according to the playback plug-in identification; use the target plug-in to process the multimedia data to obtain the target multimedia data; transmit the target multimedia data to the first system, so that the first The system plays the target multimedia data in a visualized form.
  • the present disclosure also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the multimedia data processing method provided by the above-mentioned multiple embodiments is implemented.
  • the method includes: receiving a multimedia playback request sent by the first system, the multimedia playback request carrying a playback plug-in identifier; in response to the multimedia playback request, generating a plug-in management unit in the second system; generating a plug-in management unit on the plug-in management unit according to the playback plug-in identifier
  • the target plug-in using the target plug-in to process the multimedia data to obtain the target multimedia data; transmitting the target multimedia data to the first system, so that the first system plays the target multimedia data in a visualized form.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.

Abstract

The present disclosure provides a multimedia data processing method and apparatus, an electronic device, and a storage medium. The multimedia data processing method comprises: receiving a multimedia playback request sent by a first system, the multimedia playback request carrying a playback plug-in identifier; in response to the multimedia playback request, generating a plug-in management unit in a second system; generating a target plug-in on the plug-in management unit according to the playback plug-in identifier; processing the multimedia data by means of the target plug-in to obtain target multimedia data; and transmitting the target multimedia data to the first system, so that the first system plays back the target multimedia data in a visual form.

Description

多媒体数据处理方法、装置、电子设备及存储介质Multimedia data processing method, device, electronic device and storage medium
本申请要求在2021年11月2日提交中国专利局、申请号为202111290534.9的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application with application number 202111290534.9 filed with the China Patent Office on November 2, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本公开涉及嵌入式技术领域,例如涉及一种多媒体数据处理方法、装置、电子设备及存储介质。The present disclosure relates to the field of embedded technology, for example, to a multimedia data processing method, device, electronic equipment and storage medium.
背景技术Background technique
随着嵌入式技术的发展,嵌入式技术的应用几乎遍布各个领域,例如,智能家居、工控企业以及消费类电子领域等。嵌入式系统是以应用为中心,以现代计算机技术为基础,能够根据用户需求,例如,功能、可靠性、成本、体积、功耗或者环境等灵活裁剪软硬件模块的专用计算机系统。上述软硬件的资源分配、任务调度或者协调等都离不开操作系统,一般在终端上使用的操作系统包括Android(安卓)操作系统,该操作系统能够提供某些功能的上层应用,通过对多媒体数据的处理,实现多媒体数据的播放。With the development of embedded technology, the application of embedded technology can be found in almost every field, such as smart home, industrial control enterprises, and consumer electronics. Embedded system is application-centric, based on modern computer technology, and can flexibly tailor software and hardware modules according to user needs, such as function, reliability, cost, volume, power consumption or environment. The resource allocation, task scheduling or coordination of the above-mentioned software and hardware are inseparable from the operating system. Generally, the operating system used on the terminal includes the Android (Android) operating system, which can provide upper-layer applications with certain functions. Data processing to realize the playback of multimedia data.
相关技术中的多媒体数据方法,存在处理效果差的问题。The multimedia data method in the related art has the problem of poor processing effect.
发明内容Contents of the invention
本公开提供一种多媒体数据处理方法、装置、电子设备及存储介质,用以避免相关技术中多媒体数据处理效果差的情况,可以提高多媒体数据处理效果。The present disclosure provides a multimedia data processing method, device, electronic equipment and storage medium, which are used to avoid the poor multimedia data processing effect in the related art and improve the multimedia data processing effect.
本公开提供一种多媒体数据处理方法,包括:接收第一系统发送的多媒体播放请求,所述多媒体播放请求中携带有播放插件标识;响应于所述多媒体播放请求,在第二系统中生成插件管理单元;根据所述播放插件标识,在所述插件管理单元上生成目标插件;利用所述目标插件对所述多媒体数据进行处理,得到目标多媒体数据;将所述目标多媒体数据传输给所述第一系统,以使得所述第一系统以可视化的形式播放所述目标多媒体数据。The present disclosure provides a multimedia data processing method, including: receiving a multimedia play request sent by the first system, the multimedia play request carrying a player plug-in identifier; in response to the multimedia play request, generating a plug-in management in the second system unit; generate a target plug-in on the plug-in management unit according to the playback plug-in identifier; use the target plug-in to process the multimedia data to obtain target multimedia data; transmit the target multimedia data to the first system, so that the first system plays the target multimedia data in a visualized form.
本公开还提供一种多媒体数据处理装置,包括:多媒体播放请求接收模块,设置为接收第一系统发送的多媒体播放请求,所述多媒体播放请求中携带有播放插件标识;插件管理单元生成模块,设置为响应于所述多媒体播放请求,在第二系统中生成插件管理单元;目标插件生成模块,设置为根据所述播放插件标识,在所述插件管理单元上生成目标插件;目标多媒体数据得到模块,设置为利用所述目标插件对所述多媒体数据进行处理,得到目标多媒体数据;目标多媒体数据传输模块,设置为将所述目标多媒体数据传输给所述第一系统,以使得所述第一系统以可视化的形式播放所述目标多媒体数据。The present disclosure also provides a multimedia data processing device, including: a multimedia play request receiving module configured to receive a multimedia play request sent by the first system, the multimedia play request carrying a playback plug-in identifier; a plug-in management unit generation module configured to In response to the multimedia playback request, a plug-in management unit is generated in the second system; a target plug-in generating module is configured to generate a target plug-in on the plug-in management unit according to the playback plug-in identification; a target multimedia data obtaining module, It is configured to use the target plug-in to process the multimedia data to obtain target multimedia data; the target multimedia data transmission module is configured to transmit the target multimedia data to the first system, so that the first system uses The target multimedia data is played in a visualized form.
本公开还提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述多媒体数据处理方法的步骤。The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, it realizes the multimedia data processing described in any of the above method steps.
本公开还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,所述计算机程 序被处理器执行时实现如上述任一种所述多媒体数据处理方法的步骤。The present disclosure also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the multimedia data processing methods described above are implemented.
附图说明Description of drawings
图1是本公开提供的多媒体数据处理方法的应用场景示意图之一;FIG. 1 is one of the application scenario schematic diagrams of the multimedia data processing method provided by the present disclosure;
图2是本公开提供的多媒体数据处理方法的流程示意图之一;Fig. 2 is one of the schematic flow charts of the multimedia data processing method provided by the present disclosure;
图3是本公开提供的多媒体数据处理方法的流程示意图之二;FIG. 3 is the second schematic flow diagram of the multimedia data processing method provided by the present disclosure;
图4是本公开提供的多媒体数据处理方法的流程示意图之三;Fig. 4 is the third schematic flow diagram of the multimedia data processing method provided by the present disclosure;
图5是本公开提供的多媒体数据处理方法的流程示意图之四;FIG. 5 is the fourth schematic flow diagram of the multimedia data processing method provided by the present disclosure;
图6是本公开提供的多媒体数据处理方法的流程示意图之五;FIG. 6 is the fifth schematic flow diagram of the multimedia data processing method provided by the present disclosure;
图7是本公开提供的多媒体数据处理方法的结构示意图之一;FIG. 7 is one of the structural schematic diagrams of the multimedia data processing method provided by the present disclosure;
图8是本公开提供的多媒体数据处理方法的结构示意图之二;FIG. 8 is the second structural schematic diagram of the multimedia data processing method provided by the present disclosure;
图9是本公开提供的多媒体数据处理装置的结构示意图;FIG. 9 is a schematic structural diagram of a multimedia data processing device provided by the present disclosure;
图10是本公开提供的电子设备的结构示意图。Fig. 10 is a schematic structural diagram of an electronic device provided by the present disclosure.
具体实施方式Detailed ways
本申请提供的多媒体数据处理方法,可以应用于如图1所示的应用环境中,具体应用到一种多媒体数据处理系统中。该多媒体数据处理系统包括终端102和终端104,其中,终端102通过网络与终端104进行通信。例如,终端102接收第一系统发送的多媒体播放请求,所述多媒体播放请求中携带有播放插件标识;响应于所述多媒体播放请求,在终端104中的第二系统中生成插件管理单元;根据播放插件标识,在插件管理单元上生成目标插件;利用目标插件对多媒体数据进行处理,得到目标多媒体数据;将目标多媒体数据传输给终端102中的第一系统,以使得第一系统以可视化的形式播放目标多媒体数据。其中,终端102或者终端104可以但不限于是多种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。可以理解的,上述终端102和终端104可以合并为同时具有第一系统和第二系统的终端的形式。The multimedia data processing method provided in this application can be applied to the application environment shown in FIG. 1 , and specifically applied to a multimedia data processing system. The multimedia data processing system includes a terminal 102 and a terminal 104, wherein the terminal 102 communicates with the terminal 104 through a network. For example, the terminal 102 receives a multimedia play request sent by the first system, and the multimedia play request carries a play plug-in identifier; in response to the multimedia play request, a plug-in management unit is generated in the second system in the terminal 104; according to the play Plug-in identification, generating a target plug-in on the plug-in management unit; utilizing the target plug-in to process the multimedia data to obtain the target multimedia data; transmitting the target multimedia data to the first system in the terminal 102, so that the first system plays in a visualized form Target multimedia data. Wherein, the terminal 102 or the terminal 104 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices. It can be understood that the foregoing terminal 102 and terminal 104 may be combined into a form of a terminal having both the first system and the second system.
下面结合图2-图6描述本公开的多媒体数据处理方法。The multimedia data processing method of the present disclosure will be described below with reference to FIGS. 2-6 .
在一个实施例中,如图2所示,提供了一种多媒体数据处理方法,以该方法应用于终端为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a multimedia data processing method is provided, and the method is applied to a terminal as an example for illustration, including the following steps:
步骤202,接收第一系统发送的多媒体播放请求,该多媒体播放请求中携带有播放插件标识。Step 202, receiving a multimedia play request sent by the first system, the multimedia play request carrying a playback plug-in identifier.
其中,多媒体播放请求是指能够播放多媒体数据的请求。播放插件标识是指能够唯一标识播放插件的标记。Wherein, the multimedia play request refers to a request for playing multimedia data. The playback plug-in identifier refers to a mark that can uniquely identify the playback plug-in.
例如,终端通过接收对多媒体应用的触发操作,接收第一系统发送的多媒体播放请求,该多媒体播放请求中,携带有播放插件标识。For example, the terminal receives a multimedia play request sent by the first system by receiving a trigger operation on a multimedia application, and the multimedia play request carries a play plug-in identifier.
步骤204,响应于多媒体播放请求,在第二系统中生成插件管理单元。Step 204: Generate a plug-in management unit in the second system in response to the multimedia playback request.
其中,插件管理单元是指能够对插件统一管理的单元,该单元可以包括多个多媒体数据处理阶段的插件或者不同类型的插件等。例如,该插件管理单元包括了多媒体视频流的取流插件、解码插件或者算法插件等。Wherein, the plug-in management unit refers to a unit capable of unified management of plug-ins, and the unit may include plug-ins in multiple multimedia data processing stages or different types of plug-ins. For example, the plug-in management unit includes a stream fetching plug-in, a decoding plug-in, or an algorithm plug-in for multimedia video streams.
例如,终端在接收到第一系统发送的多媒体播放请求之后,响应于该多媒体播放请求, 在与第一系统有兼容关系的并行系统即第二系统中生成插件管理单元。For example, after receiving the multimedia play request sent by the first system, the terminal generates a plug-in management unit in the second system, which is a parallel system compatible with the first system, in response to the multimedia play request.
步骤206,根据播放插件标识,在插件管理单元上生成目标插件。Step 206, generate a target plug-in on the plug-in management unit according to the playback plug-in identifier.
例如,终端在其中的第二系统中生成插件管理单元之后,通过上述播放插件标识,可以在插件管理单元上生成目标插件。例如,在终端上需要播放MP4(Moving Picture Experts Group4)格式的图片,该图片对应的播放格式为mpeg2格式,该格式可以作为播放插件标识,在插件管理单元上生成目标插件为mpeg2enc类型的插件。For example, after the terminal generates the plug-in management unit in the second system, the target plug-in can be generated on the plug-in management unit through the playback plug-in identifier. For example, a picture in MP4 (Moving Picture Experts Group4) format needs to be played on the terminal, and the playback format corresponding to the picture is mpeg2 format, which can be used as a playback plug-in identification, and the target plug-in generated on the plug-in management unit is a plug-in of mpeg2enc type.
步骤208,利用目标插件对多媒体数据进行处理,得到目标多媒体数据。Step 208, use the target plug-in to process the multimedia data to obtain the target multimedia data.
其中,多媒体数据是指能够支持多媒体进行播放的数据或者包含有多媒体播放内容的数据等。Wherein, the multimedia data refers to data capable of supporting multimedia playing or data including multimedia playing content.
例如,终端在第二系统中生成目标插件后,利用该目标插件对多媒体数据进行处理,该处理包括对多媒体数据进行获取、编码、传输以及解码等。For example, after the terminal generates the target plug-in in the second system, it uses the target plug-in to process the multimedia data, and the processing includes acquiring, encoding, transmitting, and decoding the multimedia data.
步骤210,将目标多媒体数据传输给第一系统,以使得第一系统以可视化的形式播放目标多媒体数据。Step 210, transmit the target multimedia data to the first system, so that the first system plays the target multimedia data in a visualized form.
例如,终端在得到目标多媒体数据之后,将该目标多媒体数据传输给与第二系统兼容并列运行的第一系统上,以使得第一系统以可视化的形式播放目标多媒体数据,完成了终端对多媒体数据从发送请求到播放的整个过程。For example, after the terminal obtains the target multimedia data, it transmits the target multimedia data to the first system that is compatible with the second system and runs in parallel, so that the first system can play the target multimedia data in a visualized form, and the terminal has completed the multimedia data The entire process from sending a request to playing.
上述多媒体数据处理方法中,通过接收第一系统发送的多媒体播放请求,该多媒体播放请求中携带有播放插件标识;响应于该多媒体播放请求,在第二系统中生成插件管理单元;根据上述播放插件标识,在插件管理单元上生成目标插件;利用目标插件对多媒体数据进行处理,得到目标多媒体数据;将目标多媒体数据传输给第一系统,以使得第一系统以可视化的形式播放目标多媒体数据。能够通过第一系统和第二系统的结合,通过第二系统对多媒体播放请求对应插件的相关处理,使得在第一系统上以可视化的形式播放多媒体数据,提高了多媒体数据处理效果。In the above-mentioned multimedia data processing method, by receiving the multimedia playback request sent by the first system, the multimedia playback request carries a playback plug-in identification; in response to the multimedia playback request, a plug-in management unit is generated in the second system; according to the above-mentioned playback plug-in Identifying, generating the target plug-in on the plug-in management unit; using the target plug-in to process the multimedia data to obtain the target multimedia data; transmitting the target multimedia data to the first system, so that the first system can play the target multimedia data in a visual form. Through the combination of the first system and the second system, through the related processing of the plug-in corresponding to the multimedia playback request by the second system, the multimedia data can be played in a visualized form on the first system, and the multimedia data processing effect is improved.
在一个实施例中,如图3所示,将目标多媒体数据传输给第一系统包括:In one embodiment, as shown in Figure 3, transmitting the target multimedia data to the first system includes:
步骤302,获取目标多媒体数据类型。Step 302, acquiring the target multimedia data type.
其中,多媒体数据类型是指对多媒体数据进行播放时的类型,该类型包括图片、视频或者音频等。Wherein, the type of multimedia data refers to a type when playing multimedia data, and the type includes pictures, videos, or audios.
例如,终端通过多媒体数据类型判断插件,对获取到的目标多媒体数据进行判断,获取到目标多媒体数据类型。For example, the terminal judges the acquired target multimedia data through the multimedia data type judging plug-in, and acquires the target multimedia data type.
步骤304,根据目标多媒体数据类型与传输通道的对应关系,得到目标多媒体数据类型对应的目标传输通道。Step 304: Obtain the target transmission channel corresponding to the target multimedia data type according to the corresponding relationship between the target multimedia data type and the transmission channel.
其中,传输通道是指能够传输多媒体数据的通信通道。Wherein, the transmission channel refers to a communication channel capable of transmitting multimedia data.
例如,终端在获取到目标多媒体数据类型之后,每种目标多媒体数据类型均设置有对应的传输通道,得到目标多媒体数据类型对应的目标传输通道。For example, after the terminal acquires the target multimedia data type, each target multimedia data type is provided with a corresponding transmission channel, and the target transmission channel corresponding to the target multimedia data type is obtained.
步骤306,通过目标传输通道,将目标多媒体数据传输给第一系统。Step 306, transmit the target multimedia data to the first system through the target transmission channel.
例如,终端在得到目标传输通道之后,可以通过该目标传输通道,将对应的目标多媒体数据传输给第一系统。可以理解的,多媒体数据在终端的第二系统中进行处理,将处理后得到的目标多媒体数据通过对应的传输通道传输给第一系统。例如,通过ARC(Audio return channel)通道对音频进行回传。For example, after obtaining the target transmission channel, the terminal may transmit the corresponding target multimedia data to the first system through the target transmission channel. It can be understood that the multimedia data is processed in the second system of the terminal, and the target multimedia data obtained after processing is transmitted to the first system through a corresponding transmission channel. For example, the audio is returned through the ARC (Audio return channel) channel.
本实施例中,通过获取目标多媒体数据类型,根据目标多媒体数据类型与传输通道的对应关系,得到目标多媒体数据类型对应的目标传输通道,通过目标传输通道,将目标多媒体数据传输给第一系统,能够实现使不同类型的多媒体数据通过不同的传输通道进行传输,从而提高多媒体数据处理效率。In this embodiment, by obtaining the target multimedia data type, according to the corresponding relationship between the target multimedia data type and the transmission channel, the target transmission channel corresponding to the target multimedia data type is obtained, and the target multimedia data is transmitted to the first system through the target transmission channel, It can be realized that different types of multimedia data are transmitted through different transmission channels, thereby improving the efficiency of multimedia data processing.
在一个实施例中,如图4所示,响应于多媒体播放请求,在第二系统中生成插件管理单元包括:In one embodiment, as shown in FIG. 4, in response to a multimedia playback request, generating a plug-in management unit in the second system includes:
步骤402,获取多媒体播放请求中的播放参数。Step 402, acquire the playing parameters in the multimedia playing request.
其中,播放参数是指能够使多媒体数据实现其播放功能的参数。例如,播放参数为对视频中眉毛选项的参数。Wherein, the playing parameter refers to a parameter enabling the multimedia data to realize its playing function. For example, the playback parameter is a parameter for the eyebrow option in the video.
例如,终端可以通过播放参数本身的参数标识,获取到多媒体播放请求中的播放参数。该参数标识可以是文本描述,也可以是唯一标号等。例如,通过参数的文本描述“浓妆/女/眉毛”,获取到多媒体播放请求中的播放参数为对眉毛进行处理的播放参数。For example, the terminal can acquire the playing parameters in the multimedia playing request through the parameter identification of the playing parameters themselves. The parameter identifier can be a text description, or a unique label, etc. For example, through the text description of the parameter "heavy makeup/female/eyebrow", the playback parameter obtained in the multimedia playback request is a playback parameter for processing eyebrows.
步骤404,根据播放参数与单元生成工具之间的对应关系,确定插件管理单元对应的单元生成工具,作为目标单元生成工具。Step 404, according to the corresponding relationship between the playback parameters and the unit generation tool, determine the unit generation tool corresponding to the plug-in management unit as the target unit generation tool.
例如,终端在获取到播放参数之后,根据播放参数与单元生成工具之间的对应关系,确定生成对应的目标单元生成工具。例如,获取到的播放参数为对眉毛进行处理的播放参数,则调用相关的生成插件管理单元的函数或者脚本工具,作为目标单元生成工具。For example, after acquiring the playback parameters, the terminal determines to generate a corresponding target unit generation tool according to the correspondence between the playback parameters and the unit generation tools. For example, if the acquired playback parameters are playback parameters for processing eyebrows, the related function or script tool for generating the plug-in management unit is called as the target unit generation tool.
步骤406,利用目标单元生成工具,在第二系统中生成插件管理单元。 Step 406, using the target unit generation tool to generate a plug-in management unit in the second system.
例如,终端在确定目标单元生成工具之后,利用该目标单元生成工具,在第二系统中生成插件管理单元。例如,目标单元生成工具为对眉毛进行渲染功能的创建函数,利用该创建函数,在第二系统中生成插件管理单元。例如,利用该创建函数,在第二系统中生成具有眉毛渲染功能的pipeline,pipeline是指能够集合多种插件的,以流水线形式利用上述多种插件完成某种功能的插件管理单元。For example, after determining the target unit generation tool, the terminal uses the target unit generation tool to generate the plug-in management unit in the second system. For example, the target unit generation tool is a creation function for rendering eyebrows, and the plug-in management unit is generated in the second system by using the creation function. For example, the creation function is used to generate a pipeline with eyebrow rendering function in the second system. The pipeline refers to a plug-in management unit that can gather multiple plug-ins and use the above-mentioned multiple plug-ins to complete a certain function in a pipelined form.
本实施例中,通过获取多媒体播放请求中的播放参数,根据播放参数与单元生成工具之间的对应关系,确定插件管理单元对应的单元生成工具,作为目标单元生成工具,利用目标单元生成工具,在第二系统中生成插件管理单元,可以准确确定插件管理单元。In this embodiment, by obtaining the playback parameters in the multimedia playback request, according to the correspondence between the playback parameters and the unit generation tool, determine the unit generation tool corresponding to the plug-in management unit, as the target unit generation tool, using the target unit generation tool, By generating the plug-in management unit in the second system, the plug-in management unit can be accurately determined.
在一个实施例中,如图5所示,该多媒体数据处理方法还包括:In one embodiment, as shown in Figure 5, the multimedia data processing method also includes:
步骤502,获取播放参数的第一描述语言;该第一描述语言为播放参数在第一系统中的描述语言。Step 502, acquire the first description language of the playback parameter; the first description language is the description language of the playback parameter in the first system.
其中,描述语言是指将播放参数描述成终端能够识别的、有一定语法规则的语言。Wherein, the description language refers to describing the playback parameters as a language that can be recognized by the terminal and has certain grammatical rules.
例如,终端获取到播放参数之后,根据该播放参数的语法结构,确定播放参数的描述语言,从而获取到播放参数的第一描述语言。例如,描述播放参数的语言是JAVA语言(计算机编程语言)的语法结构,则获取到的第一描述语言为JAVA语言。该语言为终端的第一系统中的语言。For example, after acquiring the playing parameters, the terminal determines the description language of the playing parameters according to the grammatical structure of the playing parameters, so as to obtain the first description language of the playing parameters. For example, if the language used to describe the playback parameters is the grammatical structure of the JAVA language (computer programming language), then the acquired first description language is the JAVA language. The language is the language in the first system of the terminal.
步骤504,将第一描述语言转换为中间描述语言。Step 504, converting the first description language into an intermediate description language.
例如,终端在获取到第一描述语言后,将其转换为公用描述语言,该公用描述语言可以作为终端的第一系统和第二系统进行语言转换的工具。For example, after acquiring the first description language, the terminal converts it into a common description language, and the common description language can be used as a tool for language conversion between the first system and the second system of the terminal.
步骤506,根据中间描述语言与第二描述语言的对应关系,将中间描述语言转换为第二描述语言;该第二描述语言为播放参数在第二系统中的描述语言。Step 506: Convert the intermediate description language into the second description language according to the correspondence between the intermediate description language and the second description language; the second description language is the description language of the playing parameters in the second system.
例如,终端在得到中间描述语言之后,根据该中间描述语言与第二描述语言的对应关系,将中间描述语言转换为第二描述语言。例如,终端的第一系统中的第一描述语言为JAVA语言,第二系统中的第二描述语言为C++(计算机描述语言),中间描述语言可以为不同于第一描述语言和第二描述语言,先将第一描述语言转换为中间描述语言,再将中间描述语言转换为第二描述语言。For example, after obtaining the intermediate description language, the terminal converts the intermediate description language into the second description language according to the correspondence between the intermediate description language and the second description language. For example, the first description language in the first system of the terminal is JAVA language, the second description language in the second system is C++ (computer description language), and the intermediate description language can be different from the first description language and the second description language. , first transform the first description language into an intermediate description language, and then convert the intermediate description language into a second description language.
本实施例中,通过获取播放参数的第一描述语言;该第一描述语言为播放参数在第一系统中的描述语言,将第一描述语言转换为中间描述语言,根据中间描述语言与第二描述语言的对应关系,将中间描述语言转换为第二描述语言,实现终端中第一系统和第二系统兼容。In this embodiment, by obtaining the first description language of the playback parameters; the first description language is the description language of the playback parameters in the first system, the first description language is converted into an intermediate description language, and according to the intermediate description language and the second The corresponding relationship of the description language converts the intermediate description language into the second description language, so as to realize the compatibility between the first system and the second system in the terminal.
在一个实施例中,如图6所示,根据播放插件标识,在插件管理单元上生成目标插件包括:In one embodiment, as shown in FIG. 6, according to the playback plug-in identifier, generating the target plug-in on the plug-in management unit includes:
步骤602,从候选播放插件集合中,获取与播放插件标识对应的一个或者多个中间播放插件。Step 602: Obtain one or more intermediate playback plug-ins corresponding to the playback plug-in identifiers from the set of candidate playback plug-ins.
例如,终端第二系统中存储有多种类型的播放插件,根据多媒体播放请求中的播放插件标识可以在该播放插件标识获取到相应的插件。可以理解的,每种多媒体播放请求中包含一个或者多个播放插件标识,相应的,获取到与播放插件标识对应的一个或者多个中间播放插件。For example, multiple types of playback plug-ins are stored in the second system of the terminal, and corresponding plug-ins can be obtained from the playback plug-in identifier according to the playback plug-in identifier in the multimedia playback request. It can be understood that each multimedia playback request includes one or more playback plug-in IDs, and correspondingly, one or more intermediate playback plug-ins corresponding to the playback plug-in IDs are obtained.
步骤604,根据播放插件的优先级,对获取到的中间播放插件进行排序,得到中间播放插件序列。Step 604, sort the acquired intermediate playback plug-ins according to the priority of the playback plug-ins, to obtain a sequence of intermediate playback plug-ins.
其中,优先级是指优先处理的等级,该优先级可以根据多媒体播放插件上的优先级标识确定,也可以根据插件在插件管理单元上的排序确定,该优先级能够确定插件在插件管理单元上执行的先后顺序,优先级越高,执行的时间越早;优先级越低,执行的时间越晚。Wherein, the priority refers to the level of priority processing, and the priority can be determined according to the priority identification on the multimedia player plug-in, and can also be determined according to the order of the plug-ins on the plug-in management unit, and the priority can determine that the plug-in is on the plug-in management unit The order of execution, the higher the priority, the earlier the execution time; the lower the priority, the later the execution time.
例如,终端在获取到与播放插件标识对应的一个或者多个中间播放插件之后,根据播放插件的优先级,对获取到的中间播放插件进行排序,得到中间播放插件序列。例如,播放插件的优先级以数字表示,数字越大,优先级越高;中间播放插件1的优先级为50,中间播放插件2的优先级为20,则中间播放插件1排序在中间播放插件2之前,在插件执行时,先执行中间播放插件1,然后执行中间播放插件2。For example, after obtaining one or more intermediate playback plug-ins corresponding to the playback plug-in identifier, the terminal sorts the obtained intermediate playback plug-ins according to the priorities of the playback plug-ins to obtain a sequence of intermediate playback plug-ins. For example, the priority of the playback plug-in is represented by a number, the larger the number, the higher the priority; the priority of the middle playback plug-in 1 is 50, and the priority of the middle playback plug-in 2 is 20, so the middle playback plug-in 1 is sorted after the middle playback plug-in Before 2, when the plug-in is executed, the intermediate playback plug-in 1 is executed first, and then the intermediate playback plug-in 2 is executed.
步骤606,将中间播放插件序列中中间播放插件打包成整体插件。Step 606, package the intermediate playback plug-ins in the intermediate playback plug-in sequence into an overall plug-in.
例如,终端在得到中间播放插件序列之后,可以将该序列中的中间播放插件打包成整体插件,以便于在接收到相同的多媒体播放请求之后,能够整体调用该整体插件,提高插件调用效率。For example, after obtaining the sequence of intermediate playback plug-ins, the terminal may package the intermediate playback plug-ins in the sequence into an overall plug-in, so that after receiving the same multimedia playback request, the overall plug-in can be invoked as a whole to improve the efficiency of plug-in invocation.
步骤608,确定整体插件为插件管理单元上生成的目标插件。Step 608, determine the overall plug-in as the target plug-in generated on the plug-in management unit.
例如,终端在得到整体插件之后,将该整体插件确定为目标插件,以便在建立相应的插件管理单元时,直接调用该目标插件,进而提高多媒体数据的处理效率。例如,对视频中的人像进行美颜处理,需要有编码插件、解码插件、渲染插件、虚化算法插件和滤镜插件等,可以将上述插件合成为人像美颜插件的插件管理单元,当多媒体播放请求中存在人像美颜处理的播放标识时,直接调用人像美颜插件的插件管理单元即可。For example, after obtaining the overall plug-in, the terminal determines the overall plug-in as the target plug-in, so as to directly invoke the target plug-in when establishing a corresponding plug-in management unit, thereby improving the processing efficiency of multimedia data. For example, to beautify a portrait in a video, you need an encoding plug-in, a decoding plug-in, a rendering plug-in, a blurring algorithm plug-in, and a filter plug-in. When there is a play flag for portrait beautification processing in the playback request, just call the plug-in management unit of the portrait beautification plug-in directly.
本实施例中,通过从候选播放插件集合中,获取与播放插件标识对应的一个或者多个中间播放插件,根据播放插件的优先级,对中间播放插件进行排序,得到中间播放插件序列,将中间播放插件序列中中间播放插件打包成整体插件,确定整体插件为插件管理单元上生成 的目标插件,可以提高多媒体数据处理效率。In this embodiment, by obtaining one or more intermediate playback plug-ins corresponding to the playback plug-in identifiers from the set of candidate playback plug-ins, sorting the intermediate playback plug-ins according to the priority of the playback plug-ins, obtaining the sequence of intermediate playback plug-ins, and In the playback plug-in sequence, the intermediate playback plug-in is packaged into an overall plug-in, and the overall plug-in is determined to be the target plug-in generated on the plug-in management unit, which can improve the efficiency of multimedia data processing.
在一个实施例中,多媒体数据处理方法还包括:对当前插件与目标插件之间的生成结果进行撤销处理,并将多媒体播放请求的状态切换至初始请求未响应之前的事件状态。In one embodiment, the multimedia data processing method further includes: canceling the generation result between the current plug-in and the target plug-in, and switching the status of the multimedia playback request to the event status before the initial request is not responded.
例如,终端接收到多媒体播放请求时,根据请求中的播放插件标识在第二系统中查找相应的插件,当查找某个插件出现异常时,撤销之前已经查找到的插件的操作以及查找到的插件,重新以初始多媒体播放请求的方式遍历插件集合中的插件,重新生成目标插件。For example, when the terminal receives a multimedia playback request, it searches for the corresponding plug-in in the second system according to the playback plug-in identifier in the request, and when an abnormality occurs when searching for a certain plug-in, cancels the operation of the previously found plug-in and the found plug-in , retraversing the plug-ins in the plug-in collection in the form of an initial multimedia playback request, and regenerating the target plug-in.
本实施例中,通过对当前插件与目标插件之间的生成结果进行撤销处理,并将多媒体播放请求的状态切换至初始请求未响应之前的事件状态,能够提高多媒体数据处理过程中的异常处理能力。In this embodiment, by canceling the generated result between the current plug-in and the target plug-in, and switching the state of the multimedia playback request to the event state before the initial request is not responded, the exception handling capability in the process of multimedia data processing can be improved .
在一个实施例中,以终端的第一系统为Android(安卓)操作系统,第二系统为Linux操作系统为例,其中的Linux操作系统是不同于Android操作系统的另一种操作系统。其中的Android操作系统可以提供视频的播放框架,通过该播放框架提供视频播放的上层应用,相关技术中的Android编码和解码主要依靠Medialayer和Mediaodec类进行,对图像及视频等的功能处理不是很丰富,在Linux操作系统中的Gstreamer类中的pipeline(管线)的多媒体架构,可以以插件的形式对视频进行更丰富的处理。例如,以插件的形式实现采集、编码、解码、渲染和滤镜等功能。最终将多个模块串联起来,来实现预期的效果。例如可以对视频进行指定效果的插入。例如,对视频中人像美颜的处理可以以插件的形式插入到pipeline中来实现,图像虚化的处理也可以在pipeline中添加对应的虚化算法即可,可以以热插拔的方式对视频进行处理。如图7所示,pipeline可以将支持的pipeline组合起来,可以很方便的以开关的形式进行裁减。最底部的是框架中的所有的插件集合,其中包括了Gstreamer框架中自带的插件和自定义的插件。例如,读取文件的filescr插件或者将视频数据传输给Android操作系统的gst-droid插件等。Android操作系统可以通过兼容接口与Linux操作系统进行通信。从而减少在Android操作系统开发而带来的开发程序繁琐,维护难度大的问题的同时,加强双系统的多媒体部分的兼容性。In one embodiment, the first system of the terminal is an Android (Android) operating system, and the second system is a Linux operating system as an example, wherein the Linux operating system is another operating system different from the Android operating system. Among them, the Android operating system can provide a video playback framework through which the upper-layer application of video playback is provided. Android encoding and decoding in related technologies mainly rely on Medialayer and Mediaodec classes, and the functional processing of images and videos is not very rich. , the multimedia framework of the pipeline (pipeline) in the Gstreamer class in the Linux operating system can perform more abundant processing on the video in the form of a plug-in. For example, functions such as acquisition, encoding, decoding, rendering, and filters are implemented in the form of plug-ins. Finally, multiple modules are connected in series to achieve the desired effect. For example, a specified effect can be inserted into a video. For example, the processing of beautifying portraits in videos can be realized by inserting them into the pipeline in the form of plug-ins, and the processing of image blurring can also be achieved by adding corresponding blurring algorithms in the pipeline, and the video can be hot-swapped. to process. As shown in Figure 7, the pipeline can combine the supported pipelines, which can be easily cut in the form of switches. At the bottom is a collection of all plug-ins in the framework, including the built-in plug-ins and custom plug-ins in the Gstreamer framework. For example, the filescr plug-in for reading files or the gst-droid plug-in for transferring video data to the Android operating system, etc. The Android operating system can communicate with the Linux operating system through a compatible interface. Thereby reducing the cumbersome development procedures and difficult maintenance problems caused by the development of the Android operating system, and at the same time strengthening the compatibility of the multimedia part of the dual system.
在一个实施例中,如图8所示,在上述Android操作系统中开始播放视频时,通过系统兼容接口,调用相关的控制接口或者接口控制函数,在Linux操作系统中建立一个pipeline,在该pipeline上插入视频播放所需要的功能插件,对视频进行处理,将处理后的视频分别通过不同的传输通道将视频数据和音频数据返回给Android操作系统,在Android操作系统支持的应用界面上,以可视化的形式在系统应用上播放处理后的视频和音频。In one embodiment, as shown in Figure 8, when starting to play video in above-mentioned Android operating system, through system compatible interface, call relevant control interface or interface control function, set up a pipeline in Linux operating system, in this pipeline Insert the functional plug-in required for video playback to process the video, return the video data and audio data to the Android operating system through different transmission channels, and visualize the video on the application interface supported by the Android operating system. Play the processed video and audio on the system application in the form of .
下面对本公开提供的多媒体数据处理装置进行描述,下文描述的多媒体数据处理装置与上文描述的多媒体数据处理方法可相互对应参照。The multimedia data processing device provided by the present disclosure is described below, and the multimedia data processing device described below and the multimedia data processing method described above can be referred to in correspondence.
在一个实施例中,如图9所示,提供了一种多媒体数据处理装置900,包括:多媒体播放请求接收模块902、插件管理单元生成模块904、目标插件生成模块906、目标多媒体数据得到模块908和目标多媒体数据传输模块910,其中:多媒体播放请求接收模块902,设置为接收第一系统发送的多媒体播放请求,多媒体播放请求中携带有播放插件标识;插件管理单元生成模块904,设置为响应于多媒体播放请求,在第二系统中生成插件管理单元;目标插件生成模块906,设置为根据播放插件标识,在插件管理单元上生成目标插件;目标多媒体数据得到模块908,设置为利用目标插件对多媒体数据进行处理,得到目标多媒体数据;目标多媒体数据传输模块910,设置为将目标多媒体数据传输给第一系统,以使得第一系统以 可视化的形式播放目标多媒体数据。In one embodiment, as shown in FIG. 9 , a multimedia data processing device 900 is provided, including: a multimedia play request receiving module 902, a plug-in management unit generating module 904, a target plug-in generating module 906, and a target multimedia data obtaining module 908 And the target multimedia data transmission module 910, wherein: the multimedia play request receiving module 902 is set to receive the multimedia play request sent by the first system, and the multimedia play request carries the play plug-in identification; the plug-in management unit generation module 904 is set to respond to The multimedia playback request generates a plug-in management unit in the second system; the target plug-in generation module 906 is configured to generate a target plug-in on the plug-in management unit according to the playback plug-in identification; the target multimedia data obtains a module 908, which is configured to use the target plug-in to generate a target plug-in for the multimedia The data is processed to obtain target multimedia data; the target multimedia data transmission module 910 is configured to transmit the target multimedia data to the first system, so that the first system plays the target multimedia data in a visualized form.
在一个实施例中,目标多媒体数据传输模块910包括:目标多媒体数据类型获取单元、目标传输通道得到单元和目标多媒体数据传输单元,其中:目标多媒体数据类型获取单元,设置为获取目标多媒体数据类型;目标传输通道得到单元,设置为根据目标多媒体数据类型与传输通道的对应关系,得到目标多媒体数据类型对应的目标传输通道;目标多媒体数据传输单元,设置为通过目标传输通道,将目标多媒体数据传输给第一系统。In one embodiment, the target multimedia data transmission module 910 includes: a target multimedia data type acquisition unit, a target transmission channel acquisition unit and a target multimedia data transmission unit, wherein: the target multimedia data type acquisition unit is configured to acquire the target multimedia data type; The target transmission channel obtaining unit is set to obtain the target transmission channel corresponding to the target multimedia data type according to the corresponding relationship between the target multimedia data type and the transmission channel; the target multimedia data transmission unit is set to transmit the target multimedia data to the target multimedia data through the target transmission channel first system.
在一个实施例中,插件管理单元生成模块904,设置为获取多媒体播放请求中的播放参数;根据播放参数与单元生成工具之间的对应关系,确定插件管理单元对应的单元生成工具,作为目标单元生成工具;利用目标单元生成工具,在第二系统中生成插件管理单元。In one embodiment, the plug-in management unit generation module 904 is configured to obtain the playback parameters in the multimedia playback request; according to the correspondence between the playback parameters and the unit generation tool, determine the unit generation tool corresponding to the plug-in management unit as the target unit A generating tool; using the target unit generating tool to generate a plug-in snap-in in the second system.
在一个实施例中,多媒体数据处理装置,设置为获取播放参数的第一描述语言;第一描述语言为播放参数在第一系统中的描述语言;将第一描述语言转换为中间描述语言;根据中间描述语言与第二描述语言的对应关系,将中间描述语言转换为第二描述语言;第二描述语言为播放参数在第二系统中的描述语言。In one embodiment, the multimedia data processing device is configured to obtain the first description language of the playback parameters; the first description language is the description language of the playback parameters in the first system; the first description language is converted into an intermediate description language; according to The corresponding relationship between the intermediate description language and the second description language is to convert the intermediate description language into the second description language; the second description language is the description language of the playing parameters in the second system.
在一个实施例中,目标插件生成模块906,设置为从候选播放插件集合中,获取与播放插件标识对应的一个或者多个中间播放插件;根据播放插件的优先级,对中间播放插件进行排序,得到中间播放插件序列;将中间播放插件序列中中间播放插件打包成整体插件;确定整体插件为插件管理单元上生成的目标插件。In one embodiment, the target plug-in generation module 906 is configured to obtain one or more intermediate playback plug-ins corresponding to the playback plug-in identifier from the set of candidate playback plug-ins; sort the intermediate playback plug-ins according to the priority of the playback plug-ins, Obtaining the intermediate playback plug-in sequence; packaging the intermediate playback plug-in in the intermediate playback plug-in sequence into an overall plug-in; determining the overall plug-in as the target plug-in generated on the plug-in management unit.
在一个实施例中,多媒体数据处理装置,设置为对当前插件与目标插件之间的生成结果进行撤销处理,并将多媒体播放请求的状态切换至初始请求未响应之前的事件状态。In one embodiment, the multimedia data processing device is configured to cancel the generation result between the current plug-in and the target plug-in, and switch the status of the multimedia playback request to the event status before the initial request is not responded.
图10示例了一种电子设备的实体结构示意图,如图10所示,该电子设备可以包括:处理器(processor)1010、通信接口(Communications Interface)1020、存储器(memory)1030和通信总线1040,其中,处理器1010,通信接口1020,存储器1030通过通信总线1040完成相互间的通信。处理器1010可以调用存储器1030中的逻辑指令,以执行多媒体数据处理方法,该方法包括:接收第一系统发送的多媒体播放请求,多媒体播放请求中携带有播放插件标识;响应于多媒体播放请求,在第二系统中生成插件管理单元;根据播放插件标识,在插件管理单元上生成目标插件;利用目标插件对多媒体数据进行处理,得到目标多媒体数据;将目标多媒体数据传输给第一系统,以使得第一系统以可视化的形式播放目标多媒体数据。Figure 10 illustrates a schematic diagram of the physical structure of an electronic device, as shown in Figure 10, the electronic device may include: a processor (processor) 1010, a communication interface (Communications Interface) 1020, a memory (memory) 1030 and a communication bus 1040, Wherein, the processor 1010 , the communication interface 1020 , and the memory 1030 communicate with each other through the communication bus 1040 . The processor 1010 can call the logic instructions in the memory 1030 to execute the multimedia data processing method, the method includes: receiving a multimedia play request sent by the first system, the multimedia play request carrying a player plug-in identifier; responding to the multimedia play request, in Generate a plug-in management unit in the second system; generate a target plug-in on the plug-in management unit according to the playback plug-in identification; use the target plug-in to process the multimedia data to obtain the target multimedia data; transmit the target multimedia data to the first system, so that the second system A system plays target multimedia data in a visualized form.
此外,上述的存储器1030中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开多个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质。In addition, the above logic instructions in the memory 1030 may be implemented in the form of software functional units and when sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present disclosure or the part that contributes to the related technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several The instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in multiple embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
另一方面,本公开还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述多种方法所提供的多媒体数据处理方法,该方法包括:接收第一系统发送的多媒体播放请求,多媒体播放请求中携带有播放插件标识;响应于多媒体 播放请求,在第二系统中生成插件管理单元;根据播放插件标识,在插件管理单元上生成目标插件;利用目标插件对多媒体数据进行处理,得到目标多媒体数据;将目标多媒体数据传输给第一系统,以使得第一系统以可视化的形式播放目标多媒体数据。On the other hand, the present disclosure also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer When executing, the computer can execute the multimedia data processing method provided by the above-mentioned multiple methods, the method includes: receiving the multimedia play request sent by the first system, the multimedia play request carries the player plug-in identification; in response to the multimedia play request, at the Generate a plug-in management unit in the second system; generate a target plug-in on the plug-in management unit according to the playback plug-in identification; use the target plug-in to process the multimedia data to obtain the target multimedia data; transmit the target multimedia data to the first system, so that the first The system plays the target multimedia data in a visualized form.
又一方面,本公开还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述多个实施例提供的多媒体数据处理方法,该方法包括:接收第一系统发送的多媒体播放请求,多媒体播放请求中携带有播放插件标识;响应于多媒体播放请求,在第二系统中生成插件管理单元;根据播放插件标识,在插件管理单元上生成目标插件;利用目标插件对多媒体数据进行处理,得到目标多媒体数据;将目标多媒体数据传输给第一系统,以使得第一系统以可视化的形式播放目标多媒体数据。In yet another aspect, the present disclosure also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the multimedia data processing method provided by the above-mentioned multiple embodiments is implemented. The method includes: receiving a multimedia playback request sent by the first system, the multimedia playback request carrying a playback plug-in identifier; in response to the multimedia playback request, generating a plug-in management unit in the second system; generating a plug-in management unit on the plug-in management unit according to the playback plug-in identifier The target plug-in; using the target plug-in to process the multimedia data to obtain the target multimedia data; transmitting the target multimedia data to the first system, so that the first system plays the target multimedia data in a visualized form.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到多个实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行多个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that multiple implementations can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solutions or the part that contributes to related technologies can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in multiple embodiments or some parts of the embodiments.

Claims (10)

  1. 一种多媒体数据处理方法,包括:A multimedia data processing method, comprising:
    接收第一系统发送的多媒体播放请求,所述多媒体播放请求中携带有播放插件标识;receiving a multimedia play request sent by the first system, where the multimedia play request carries a player plug-in identifier;
    响应于所述多媒体播放请求,在第二系统中生成插件管理单元;In response to the multimedia playback request, generate a plug-in management unit in the second system;
    根据所述播放插件标识,在所述插件管理单元上生成目标插件;Generate a target plug-in on the plug-in management unit according to the playback plug-in identifier;
    利用所述目标插件对所述多媒体数据进行处理,得到目标多媒体数据;Using the target plug-in to process the multimedia data to obtain target multimedia data;
    将所述目标多媒体数据传输给所述第一系统,以使得所述第一系统以可视化的形式播放所述目标多媒体数据。and transmitting the target multimedia data to the first system, so that the first system plays the target multimedia data in a visualized form.
  2. 根据权利要求1所述的方法,其中,所述将所述目标多媒体数据传输给所述第一系统,包括:The method according to claim 1, wherein said transmitting said target multimedia data to said first system comprises:
    获取所述目标多媒体数据类型;Obtain the target multimedia data type;
    根据所述目标多媒体数据类型与传输通道的对应关系,得到所述目标多媒体数据类型对应的目标传输通道;Obtain a target transmission channel corresponding to the target multimedia data type according to the correspondence between the target multimedia data type and the transmission channel;
    通过所述目标传输通道,将所述目标多媒体数据传输给所述第一系统。The target multimedia data is transmitted to the first system through the target transmission channel.
  3. 根据权利要求1所述的方法,其中,所述响应于所述多媒体播放请求,在第二系统中生成插件管理单元,包括:The method according to claim 1, wherein said generating a plug-in management unit in the second system in response to the multimedia playback request comprises:
    获取所述多媒体播放请求中的播放参数;Obtain the playback parameters in the multimedia playback request;
    根据所述播放参数与单元生成工具之间的对应关系,确定所述插件管理单元对应的单元生成工具,作为目标单元生成工具;According to the corresponding relationship between the playback parameters and the unit generation tool, determine the unit generation tool corresponding to the plug-in management unit as the target unit generation tool;
    利用所述目标单元生成工具,在所述第二系统中生成插件管理单元。A plug-in management unit is generated in the second system using the target unit generation tool.
  4. 根据权利要求3所述的方法,还包括:The method according to claim 3, further comprising:
    获取所述播放参数的第一描述语言;所述第一描述语言为所述播放参数在所述第一系统中的描述语言;Acquiring a first description language of the playback parameter; the first description language is the description language of the playback parameter in the first system;
    将所述第一描述语言转换为中间描述语言;converting the first description language to an intermediate description language;
    根据所述中间描述语言与第二描述语言的对应关系,将所述中间描述语言转换为第二描述语言;所述第二描述语言为所述播放参数在所述第二系统中的描述语言。According to the corresponding relationship between the intermediate description language and the second description language, the intermediate description language is converted into the second description language; the second description language is the description language of the playback parameter in the second system.
  5. 根据权利要求1所述的方法,其中,所述根据所述播放插件标识,在所述插件管理单元上生成目标插件,包括:The method according to claim 1, wherein said generating a target plug-in on said plug-in management unit according to said playing plug-in identifier comprises:
    从候选播放插件集合中,获取与所述播放插件标识对应的至少一个中间播放插件;Obtain at least one intermediate playback plug-in corresponding to the playback plug-in identifier from the set of candidate playback plug-ins;
    根据播放插件的优先级,对获取到的所述中间播放插件进行排序,得到中间播放插件序列;According to the priority of the playing plug-ins, the acquired intermediate playing plug-ins are sorted to obtain a sequence of intermediate playing plug-ins;
    将所述中间播放插件序列中的所述中间播放插件打包成整体插件;packaging the intermediate playback plug-ins in the sequence of intermediate playback plug-ins into an overall plug-in;
    确定所述整体插件为所述插件管理单元上生成的目标插件。The overall plug-in is determined to be the target plug-in generated on the plug-in management unit.
  6. 根据权利要求1-5任一项所述的方法,还包括:The method according to any one of claims 1-5, further comprising:
    对当前插件与所述目标插件之间的生成结果进行撤销处理,并将所述多媒体播放请求的状态切换至初始请求未响应之前的事件状态。Perform cancellation processing on the generation result between the current plug-in and the target plug-in, and switch the state of the multimedia playback request to the event state before the initial request is not responded.
  7. 一种多媒体数据处理装置,包括:A multimedia data processing device, comprising:
    多媒体播放请求接收模块,设置为接收第一系统发送的多媒体播放请求,所述多媒体播放请求中携带有播放插件标识;The multimedia playback request receiving module is configured to receive the multimedia playback request sent by the first system, and the multimedia playback request carries a playback plug-in identification;
    插件管理单元生成模块,设置为响应于所述多媒体播放请求,在第二系统中生成插件管 理单元;A plug-in management unit generation module, configured to generate a plug-in management unit in the second system in response to the multimedia playback request;
    目标插件生成模块,设置为根据所述播放插件标识,在所述插件管理单元上生成目标插件;A target plug-in generating module configured to generate a target plug-in on the plug-in management unit according to the playback plug-in identifier;
    目标多媒体数据得到模块,设置为利用所述目标插件对所述多媒体数据进行处理,得到目标多媒体数据;The target multimedia data obtaining module is configured to use the target plug-in to process the multimedia data to obtain the target multimedia data;
    目标多媒体数据传输模块,设置为将所述目标多媒体数据传输给所述第一系统,以使得所述第一系统以可视化的形式播放所述目标多媒体数据。The target multimedia data transmission module is configured to transmit the target multimedia data to the first system, so that the first system plays the target multimedia data in a visualized form.
  8. 根据权利要求7所述的装置,其中,所述目标多媒体数据传输模块包括:The device according to claim 7, wherein the target multimedia data transmission module comprises:
    目标多媒体数据类型获取单元,设置为获取所述目标多媒体数据类型;a target multimedia data type acquisition unit, configured to acquire the target multimedia data type;
    目标传输通道得到单元,设置为根据所述目标多媒体数据类型与传输通道的对应关系,得到所述目标多媒体数据类型对应的目标传输通道;The target transmission channel obtaining unit is configured to obtain the target transmission channel corresponding to the target multimedia data type according to the corresponding relationship between the target multimedia data type and the transmission channel;
    目标多媒体数据传输单元,设置为通过所述目标传输通道,将所述目标多媒体数据传输给所述第一系统。The target multimedia data transmission unit is configured to transmit the target multimedia data to the first system through the target transmission channel.
  9. 一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序时实现如权利要求1至6任一项所述多媒体数据处理方法。An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the program, the computer program described in any one of claims 1 to 6 is implemented. The multimedia data processing method is described.
  10. 一种非暂态计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述多媒体数据处理方法。A non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the multimedia data processing method according to any one of claims 1 to 6 is realized.
PCT/CN2022/106373 2021-11-02 2022-07-19 Multimedia data processing method and apparatus, electronic device, and storage medium WO2023077866A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111290534.9 2021-11-02
CN202111290534.9A CN114095781A (en) 2021-11-02 2021-11-02 Multimedia data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023077866A1 true WO2023077866A1 (en) 2023-05-11

Family

ID=80298765

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/106373 WO2023077866A1 (en) 2021-11-02 2022-07-19 Multimedia data processing method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114095781A (en)
WO (1) WO2023077866A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095781A (en) * 2021-11-02 2022-02-25 北京鲸鲮信息系统技术有限公司 Multimedia data processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098511A (en) * 2010-12-15 2011-06-15 中兴通讯股份有限公司 Mobile terminal and video playing realization method thereof
CN102547394A (en) * 2011-12-27 2012-07-04 福建升腾资讯有限公司 Universal audio/video redirection method for cloud access devices under VDI (Video Desktop Infrastructure) environment
CN104243394A (en) * 2013-06-06 2014-12-24 腾讯科技(深圳)有限公司 Multimedia file playing method and device
US20150350654A1 (en) * 2014-05-29 2015-12-03 Apple Inc. Video quality adaptation with frame rate conversion
CN106792118A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 The player method and device of multimedia file
CN114095781A (en) * 2021-11-02 2022-02-25 北京鲸鲮信息系统技术有限公司 Multimedia data processing method and device, electronic equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101827251B (en) * 2010-05-07 2012-06-13 深圳创维-Rgb电子有限公司 Method and device for playing network streaming media
CN107690084B (en) * 2017-04-11 2019-11-08 腾讯科技(北京)有限公司 The playing method and device of media file
CN108170503B (en) * 2018-01-24 2022-04-12 腾讯科技(深圳)有限公司 Method, terminal and storage medium for cross-system android application running
CN207742930U (en) * 2018-03-09 2018-08-17 广州馨睿科电子科技有限公司 A kind of multisystem audio playing apparatus
CN111290800A (en) * 2020-02-11 2020-06-16 深圳壹账通智能科技有限公司 Face image recognition method and device
CN111416989A (en) * 2020-04-28 2020-07-14 北京金山云网络技术有限公司 Video live broadcast method and system and electronic equipment
CN111723219B (en) * 2020-06-30 2024-04-26 百度在线网络技术(北京)有限公司 Method, apparatus, device and storage medium for playing multimedia
CN111930340B (en) * 2020-09-21 2021-06-01 北京技德系统技术有限公司 Virtual audio device and method based on Linux and Android compatible technology
CN112269603B (en) * 2020-10-16 2021-05-28 北京技德系统技术有限公司 Graphic display method and device for compatibly running Android application on Linux
CN112269604B (en) * 2020-11-11 2021-06-01 北京技德系统技术有限公司 Window interaction method and device for compatibly running Android application on Linux
CN113220474B (en) * 2021-04-21 2022-08-30 麒麟软件有限公司 Android application sharing Linux system screen data method based on Android-EMUGL

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098511A (en) * 2010-12-15 2011-06-15 中兴通讯股份有限公司 Mobile terminal and video playing realization method thereof
CN102547394A (en) * 2011-12-27 2012-07-04 福建升腾资讯有限公司 Universal audio/video redirection method for cloud access devices under VDI (Video Desktop Infrastructure) environment
CN104243394A (en) * 2013-06-06 2014-12-24 腾讯科技(深圳)有限公司 Multimedia file playing method and device
US20150350654A1 (en) * 2014-05-29 2015-12-03 Apple Inc. Video quality adaptation with frame rate conversion
CN106792118A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 The player method and device of multimedia file
CN114095781A (en) * 2021-11-02 2022-02-25 北京鲸鲮信息系统技术有限公司 Multimedia data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114095781A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN104090891A (en) Method and device for data processing and server and system for data processing
US11272012B2 (en) Action processing associated with a cloud device
US10360913B2 (en) Speech recognition method, device and system based on artificial intelligence
CN108200447A (en) Live data transmission method, device, electronic equipment, server and storage medium
CN109062699A (en) A kind of resource monitoring method, device, server and storage medium
CN109756568A (en) Processing method, equipment and the computer readable storage medium of file
US11196868B2 (en) Audio data processing method, server, client and server, and storage medium
WO2023077866A1 (en) Multimedia data processing method and apparatus, electronic device, and storage medium
WO2015196827A1 (en) Display device and sharing control method therefor
CN110418181B (en) Service processing method and device for smart television, smart device and storage medium
CN109636460B (en) Service processing method, device, equipment and storage medium
CN114745451A (en) Data transmission method and device, electronic equipment and computer readable medium
CN112843681B (en) Virtual scene control method and device, electronic equipment and storage medium
CN108287859B (en) Multimedia information retrieval method and device
CN104639325A (en) Cloud game system and cloud game method based on unified certification
CN114566173A (en) Audio mixing method, device, equipment and storage medium
CN108769274B (en) Conversational file transmission method and device, and equipment/terminal/server
CN114374678A (en) Multi-protocol equipment on-line access method, system, device and storage medium
CN107426611B (en) multi-path output method and system based on video transcoding
CN111031354A (en) Multimedia playing method, device and storage medium
CN116244359B (en) Test data gathering device, method and equipment
CN117240787B (en) Switch load balancing method and device, electronic equipment and readable storage medium
CN114007077B (en) Method and device for processing multimedia resources, electronic equipment and storage medium
CN114499759B (en) Message generation method and device, electronic equipment and storage medium
CN110908958B (en) File processing method, device, terminal and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22888901

Country of ref document: EP

Kind code of ref document: A1