[go: up one dir, main page]

CN108512814A - media data processing method, device and system - Google Patents

media data processing method, device and system Download PDF

Info

Publication number
CN108512814A
CN108512814A CN201710111142.9A CN201710111142A CN108512814A CN 108512814 A CN108512814 A CN 108512814A CN 201710111142 A CN201710111142 A CN 201710111142A CN 108512814 A CN108512814 A CN 108512814A
Authority
CN
China
Prior art keywords
media data
processing
server
client
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710111142.9A
Other languages
Chinese (zh)
Other versions
CN108512814B (en
Inventor
江庆海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201710111142.9A priority Critical patent/CN108512814B/en
Priority to PCT/CN2018/076676 priority patent/WO2018157743A1/en
Publication of CN108512814A publication Critical patent/CN108512814A/en
Application granted granted Critical
Publication of CN108512814B publication Critical patent/CN108512814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种媒体数据处理方法,该方法包括:对于当前业务的任一客户端,执行如下处理:接收该客户端上传的第一媒体数据;根据预先配置的当前业务对应的媒体数据处理需求,对所述第一媒体数据进行处理并得到第二媒体数据;及将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址;及响应于来自业务服务器的链接地址获取请求,将所获得的当前业务的一个或多个所述链接地址发送给所述业务服务器,以使所述业务服务器向当前业务的任一客户端提供该客户端可用的一个或多个所述链接地址。本申请还公开了相应的装置和系统。

The present application discloses a method for processing media data. The method includes: for any client of the current service, performing the following processing: receiving the first media data uploaded by the client; processing the media data corresponding to the pre-configured current service Requirements, process the first media data and obtain second media data; and store the second media data on the network side and obtain the link address of the second media data; and respond to the link from the service server An address acquisition request, sending the obtained one or more link addresses of the current service to the service server, so that the service server can provide any client of the current service with one or more link addresses available to the client. The link address. The application also discloses the corresponding device and system.

Description

媒体数据处理方法、装置和系统Media data processing method, device and system

技术领域technical field

本申请涉及互联网技术领域,尤其涉及一种媒体数据处理方法、装置和系统。The present application relates to the technical field of the Internet, and in particular to a media data processing method, device and system.

背景技术Background technique

随着计算机技术和互联网技术的发展,越来越多的用户在更多场合需要对自己个人录制或工作需求录制的音视频进行处理,如变调、加背景音乐、音频转换、对视频素材进行剪辑回放等,目前市场上也有很多对音视频进行处理的软件和技术,如ffmpeg技术,ffmpeg是一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序。采用LGPL或GPL许可证。它提供了录制、转换以及流化音视频的完整解决方案。它包含了非常先进的音频/视频编解码库libavcodec。ffmpeg被广泛的应用在各种播放软件中。With the development of computer technology and Internet technology, more and more users need to process the audio and video recorded by themselves or their work needs on more occasions, such as changing pitch, adding background music, audio conversion, and editing video materials Playback, etc. At present, there are many software and technologies for audio and video processing on the market, such as ffmpeg technology, ffmpeg is a set of open source computer programs that can be used to record, convert digital audio and video, and convert them into streams. Adopt LGPL or GPL license. It provides a complete solution for recording, converting and streaming audio and video. It includes libavcodec, a very advanced audio/video codec library. ffmpeg is widely used in various playback software.

发明内容Contents of the invention

本申请实例提供一种媒体数据处理方法,该方法包括:对于当前业务的任一客户端,执行如下处理:接收该客户端上传的第一媒体数据;根据预先配置的当前业务对应的媒体数据处理需求,对所述第一媒体数据进行处理并得到第二媒体数据;及将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址;及响应于来自业务服务器的链接地址获取请求,将所获得的当前业务的一个或多个所述链接地址发送给所述业务服务器,以使所述业务服务器向当前业务的任一客户端提供该客户端可用的一个或多个所述链接地址。The example of this application provides a media data processing method, the method includes: for any client of the current service, perform the following processing: receive the first media data uploaded by the client; process the media data corresponding to the pre-configured current service Requirements, process the first media data and obtain the second media data; and store the second media data on the network side and obtain the link address of the second media data; and respond to the link from the service server An address acquisition request, sending the obtained one or more link addresses of the current service to the service server, so that the service server can provide any client of the current service with one or more link addresses available to the client. The link address.

本申请还提供了一种媒体数据处理方法,该方法包括:将当前业务产生的第一媒体数据上传至数据处理服务器;其中,针对当前业务的任一客户端上传的所述第一媒体数据,所述数据处理服务器根据预先配置的当前业务对应的媒体数据处理需求对所述第一媒体数据进行处理并得到第二媒体数据,将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址;向业务服务器发送链接地址获取请求;其中,所述业务服务器响应于所述链接地址获取请求,从所述数据处理服务器获得的当前业务的一个或多个链接地址中确定对于本客户端可用的各所述链接地址;从所述业务服务器接收对于本客户端可用的各所述链接地址;响应于用户对于接收到的各所述链接地址中任一链接地址的选择操作,根据被选择的所述链接地址从网络侧获取所述第二媒体数据;及播放所获取的所述第二媒体数据。The present application also provides a media data processing method, the method comprising: uploading the first media data generated by the current service to the data processing server; wherein, for the first media data uploaded by any client of the current service, The data processing server processes the first media data according to the pre-configured media data processing requirements corresponding to the current service and obtains the second media data, stores the second media data on the network side and obtains the second media data The link address of the media data; sending a link address acquisition request to the service server; wherein, in response to the link address acquisition request, the service server determines from one or more link addresses of the current service obtained by the data processing server for Each of the link addresses available to the client; receiving each of the link addresses available to the client from the service server; in response to the user's selection operation for any link address in the received link addresses, acquiring the second media data from the network side according to the selected link address; and playing the acquired second media data.

本申请还提供了一种媒体数据处理装置,该装置包括:上传处理模块,接收当前业务的任一客户端上传的第一媒体数据;数据处理模块,根据预先配置的当前业务对应的媒体数据处理需求,对所述第一媒体数据进行处理并得到第二媒体数据;将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址,并将所述链接地址保存在所述信息提供模块;及信息提供模块,响应于来自业务服务器的链接地址获取请求,将所获得的当前业务的一个或多个所述链接地址发送给所述业务服务器,以使所述业务服务器向当前业务的任一客户端提供一个或多个所述链接地址。The present application also provides a media data processing device, which includes: an upload processing module that receives the first media data uploaded by any client of the current service; a data processing module that processes the media data corresponding to the pre-configured current service requirements, process the first media data and obtain second media data; store the second media data on the network side and obtain the link address of the second media data, and save the link address in the The information providing module; and the information providing module, in response to the link address acquisition request from the service server, sends the obtained one or more of the link addresses of the current service to the service server, so that the service server sends Any client of the current service provides one or more of the link addresses.

本申请还提供了一种媒体数据处理系统,包括:业务服务器、上传服务器、处理服务器和信息提供服务器,所述信息提供服务器集成在所述处理服务器之中或者独立设置;其中,所述上传服务器,接收当前业务的任一客户端上传的第一媒体数据,并将所述第一媒体数据提供给所述处理服务器;所述处理服务器,根据预先配置的当前业务对应的媒体数据处理需求,对所述第一媒体数据进行处理并得到第二媒体数据;将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址,并将所述链接地址保存在所述信息提供服务器;所述业务服务器,响应于来自当前业务的任一客户端的上传所述第一媒体数据的请求,向所述信息提供服务器发送链接地址获取请求;所述信息提供服务器,响应于来自所述业务服务器的所述链接地址获取请求,将所获得的当前业务的一个或多个所述链接地址发送给所述业务服务器;所述业务服务器,向当前业务的任一客户端提供对于该客户端可用的一个或多个所述链接地址。The present application also provides a media data processing system, including: a business server, an upload server, a processing server, and an information providing server, wherein the information providing server is integrated in the processing server or set independently; wherein, the upload server , receiving the first media data uploaded by any client of the current service, and providing the first media data to the processing server; the processing server, according to the pre-configured media data processing requirements corresponding to the current service, Process the first media data and obtain second media data; store the second media data on the network side and obtain the link address of the second media data, and save the link address in the information provider server; the service server, in response to the request for uploading the first media data from any client of the current service, sending a link address acquisition request to the information providing server; the information providing server, responding to the request from the information providing server The link address acquisition request of the service server sends the acquired one or more link addresses of the current service to the service server; the service server provides any client of the current service with a link address for the client One or more of said link addresses are available.

采用本申请的上述技术方案,能够实现媒体数据的处理和产品解耦,同时数据处理服务器在后台异步处理,可以在较短的时间内处理完成媒体数据的处理需求,以及在处理过程中,不会阻塞用户的其他操作,从而使得用户体验更好。By adopting the above-mentioned technical solution of the present application, the processing of media data and decoupling of products can be realized. At the same time, the data processing server processes asynchronously in the background, and can complete the processing requirements of media data in a relatively short period of time, and in the process of processing, no It will block other operations of the user, thus making the user experience better.

附图说明Description of drawings

为了更清楚地说明本申请实例中的技术方案,下面将对实例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the examples of the present application, the accompanying drawings that need to be used in the description of the examples will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some examples of the present application. Ordinary technicians can also obtain other drawings based on these drawings without paying creative labor.

图1是本申请涉及的一种系统构架示意图;FIG. 1 is a schematic diagram of a system architecture involved in the present application;

图2为本申请一实例的方法流程图;Fig. 2 is the method flowchart of an example of the present application;

图3为本申请涉及的媒体数据处理系统图;Fig. 3 is a diagram of the media data processing system involved in the present application;

图4为本申请涉及的分布式处理;Fig. 4 is the distributed processing involved in this application;

图5为本申请另一实例的方法流程图;Fig. 5 is the method flowchart of another example of the present application;

图6本申请一媒体数据处理实例的消息交互图;Fig. 6 is a message interaction diagram of an example of media data processing in this application;

图7是本申请一实例的装置结构图;Fig. 7 is a device structure diagram of an example of the present application;

图8是本申请另一实例的装置结构图;及Fig. 8 is a device structure diagram of another example of the present application; and

图9是本申请一实例的设备结构图。Fig. 9 is a device structure diagram of an example of the present application.

具体实施方式Detailed ways

下面将结合本申请实例中的附图,对本申请实例中的技术方案进行清楚、完整地描述,显然,所描述的实例仅是本申请一部分实例,而不是全部的实例。基于本申请中的实例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实例,都属于本申请保护的范围。The technical solutions in the examples of the application will be clearly and completely described below in conjunction with the accompanying drawings in the examples of the application. Obviously, the described examples are only some examples of the application, not all examples. Based on the examples in this application, all other examples obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

在一些实例中,用户直接在电子设备中的产品(该产品是指具有音视频处理功能的应用或平台,如:配音软件、媒体播放器或微信等应用,或者能够展示某种媒体互动活动的web页面的浏览器)进行媒体数据处理,如音视频处理。比如:用户在使用配音软件时,如果需要进行音视频处理(比如完成一次配音之后需要对音视频数据做处理),则由配音软件进行音视频处理,在该处理过程中,配音软件处于不可用的状态。可见,目前的媒体数据处理和产品的耦合度较高,媒体数据处理会影响产品其它功能的使用,用户等待的时间较长,使得用户的体验效果较差。同时,该产品中用于进行媒体数据处理的模块设计复杂,从而该产品的实现难度较高,产品测试时间也会较长,这样,产品的开发成本就会较高。再者,因用户侧电子设备的处理能力有限,该产品可能出现媒体数据处理时间较长的情况,而长时间的处理过程,可能会带来潜在的风险,如损坏音视频源文件等。进一步,若产品对音视频需求发生变更时,如改善其音视频处理效果或增加音视频处理功能(如在音视频中增加英文字幕等)时,该产品也很难快速的实现音视频处理需求的变更。此外,若该产品为展示web页面的浏览器,则该产品也不能实现复杂的音视频处理,很难达到用户想要的音视频处理效果。In some instances, the product directly installed by the user on the electronic device (the product refers to an application or platform with audio and video processing functions, such as dubbing software, media player or WeChat application, or a product that can display certain media interactive activities web page browser) to process media data, such as audio and video processing. For example: when the user uses the dubbing software, if audio and video processing is required (for example, the audio and video data needs to be processed after a dubbing is completed), the audio and video processing will be performed by the dubbing software. During this processing, the dubbing software is not available. status. It can be seen that the coupling between the current media data processing and the product is high, and the media data processing will affect the use of other functions of the product, and the user will wait for a long time, making the user experience effect poor. At the same time, the module design for media data processing in this product is complicated, so the realization of this product is relatively difficult, and the product testing time will be longer, so that the product development cost will be higher. Furthermore, due to the limited processing capability of the user-side electronic equipment, this product may take a long time to process media data, and the long-time processing process may bring potential risks, such as damage to audio and video source files. Furthermore, if the product’s audio and video requirements change, such as improving its audio and video processing effects or adding audio and video processing functions (such as adding English subtitles to audio and video, etc.), it is also difficult for the product to quickly meet the audio and video processing requirements changes. In addition, if the product is a browser for displaying web pages, the product cannot implement complex audio and video processing, and it is difficult to achieve the audio and video processing effects desired by users.

基于上述技术问题,本申请提出一种媒体数据处理方法,该方法可应用于图1所示的系统构架中。如图1所示,该系统构架包括:客户端101和后台102,后台102中包括业务服务器103(该业务服务器可以为网站服务器或应用程序服务器)、数据处理服务器104和存储服务器105,客户端101和后台102可以通过互联网106进行通信。这里,客户端101就是指前述的产品,可以为展示媒体互动活动的页面的浏览器(如互动广告活动等,该活动可以web页面形式实现)或应用(APP)(如配音软件等)。Based on the above technical problems, the present application proposes a media data processing method, which can be applied to the system architecture shown in FIG. 1 . As shown in Figure 1, this system frame comprises: client 101 and background 102, and background 102 comprises business server 103 (this business server can be website server or application program server), data processing server 104 and storage server 105, client 101 and background 102 can communicate through Internet 106 . Here, the client 101 refers to the aforementioned product, which can be a browser displaying pages of media interactive activities (such as interactive advertising activities, which can be implemented in the form of web pages) or applications (APP) (such as dubbing software, etc.).

用户使用客户端101可以产生如变调、加背景音乐、音频转换、对视频素材进行剪辑回放等媒体数据处理需求。在一些实例中,数据处理服务器104将这些处理需求封装成处理进程。对于多种产品(即多种业务)对应的多种客户端101,可以将不同类客户端101的媒体数据的处理需求(即不同业务的处理需求)封装成不同的处理进程,并将每种业务对应一个业务标识(如项目ID),每个业务标识对应一个处理进程,处理进程的名称可以与业务标识相关联(如处理进程的名称中可以包含项目ID)。Using the client 101, the user may generate media data processing requirements such as pitch shifting, adding background music, audio conversion, clipping and playback of video materials, and the like. In some instances, data processing server 104 packages these processing requirements into processing processes. For multiple clients 101 corresponding to multiple products (that is, multiple services), the media data processing requirements of different types of clients 101 (that is, the processing requirements of different services) can be packaged into different processing processes, and each A service corresponds to a service identifier (such as a project ID), and each service identifier corresponds to a processing process, and the name of the processing process can be associated with the service identifier (for example, the name of the processing process can include the project ID).

针对一个客户端101的媒体数据处理过程如下:The media data processing process for a client 101 is as follows:

客户端101向数据处理服务器104上传媒体数据成功后,数据处理服务器104返回给客户端101该媒体数据的ID,预定时间后,客户端101经业务服务器103向数据处理服务器104查询媒体数据的处理状态,如果数据处理服务器104已处理完成所述媒体数据,会将第二媒体数据上传至网络侧的存储服务器105,获得第二媒体数据的链接地址(URL)并将其返回给业务服务器103,该第二媒体数据为所述媒体数据经过处理后的媒体数据。客户端101根据从业务服务器103获取的上述URL从存储服务器105获取第二媒体数据。After the client 101 uploaded the media data to the data processing server 104 successfully, the data processing server 104 returned the ID of the media data to the client 101, and after a predetermined time, the client 101 inquired about the processing of the media data to the data processing server 104 through the service server 103 state, if the data processing server 104 has processed the media data, it will upload the second media data to the storage server 105 on the network side, obtain the link address (URL) of the second media data and return it to the service server 103, The second media data is processed media data of the media data. The client 101 obtains the second media data from the storage server 105 according to the URL obtained from the service server 103 .

在一实例中,本申请提出的媒体数据处理方法应用于数据处理服务器104,如图2所示,该方法包括以下步骤:In an example, the media data processing method proposed by the present application is applied to the data processing server 104, as shown in FIG. 2 , the method includes the following steps:

步骤200:对于当前业务的任一客户端,执行如下步骤201~203:Step 200: For any client of the current service, perform the following steps 201-203:

步骤201:接收该客户端上传的第一媒体数据。Step 201: Receive first media data uploaded by the client.

其中,媒体数据可以为音视频等数据,从而所述第一媒体数据可以为音视频源文件。在一些实例中,数据处理服务器可以接收并临时存储所述媒体数据源文件,可以是数据处理服务器中的上传服务器本地临时存储所述媒体数据源文件,以便数据处理服务器中的旁路处理服务器对上传服务器存储的媒体数据源文件进行处理。Wherein, the media data may be data such as audio and video, so the first media data may be an audio and video source file. In some instances, the data processing server can receive and temporarily store the media data source file, and the upload server in the data processing server can temporarily store the media data source file locally, so that the bypass processing server in the data processing server can Upload the media data source file stored in the server for processing.

在一些实例中,响应于来自所述业务服务器的获取验证票据的请求,发送验证票据给所述业务服务器;In some instances, sending a verification ticket to the service server in response to a request from the service server for obtaining a verification ticket;

接收所述第一媒体数据时,进一步接收所述第一媒体数据对应的验证票据;When receiving the first media data, further receive a verification ticket corresponding to the first media data;

根据所述验证票据校验所述第一媒体数据是否合法;Verifying whether the first media data is legal according to the verification ticket;

当校验结果为所述第一媒体数据合法时,执行所述对所述第一媒体数据进行处理并得到第二媒体数据的处理。When the verification result is that the first media data is legal, execute the processing of processing the first media data to obtain the second media data.

在一些实例中,响应于当前业务的客户端的上传源文件请求,数据处理服务器中的验证服务器(ticket server)返回客户端一个加密的验证票据(ticket),作为用户身份安全的凭证,以确保上传服务器不受非法用户的非法攻击。In some instances, in response to the current business client's request for uploading source files, the verification server (ticket server) in the data processing server returns an encrypted verification ticket (ticket) to the client as a credential for user identity security to ensure uploading The server is not subject to illegal attacks by illegal users.

在一些实例中,客户端接收到验证服务器返回的ticket后,进一步将媒体数据源文件(如音视频源文件)、所述ticket、用户标识信息(即,对应应用或活动中注册的用户ID,如QQ号、微信号码等即时通讯号码)等数据上传到上传服务器。上传服务器解析所述ticket,以校验所述客户端的请求是否合法,若所述请求合法,则接收所述媒体数据源文件等数据。当上传成功时,上传服务器返回给所述客户端该媒体数据源文件的文件ID,该文件ID可以为ticket数据的一部分,所述ticket可以由如项目ID、用户标识信息、文件ID以及该音视频源文件的上传日期等信息组成。若所述请求不合法,则上传服务器要求所述客户端重新发送上传源文件请求。In some instances, after receiving the ticket returned by the verification server, the client further sends the media data source file (such as audio and video source files), the ticket, and user identification information (that is, the user ID registered in the corresponding application or activity, Such as QQ number, WeChat number and other instant messaging numbers) and other data are uploaded to the upload server. The upload server parses the ticket to check whether the client's request is legal, and if the request is legal, receives the media data source file and other data. When the upload is successful, the upload server returns the file ID of the media data source file to the client. The file ID can be a part of the ticket data. It consists of information such as the upload date of the video source file. If the request is illegal, the upload server requires the client to resend the request for uploading the source file.

客户端接收到上述文件ID后,将其发送至业务服务器,该业务服务器可以为网站服务器(web server)或应用服务器,业务服务器保存该文件ID。After the client receives the file ID, it sends it to the service server. The service server can be a web server (web server) or an application server, and the service server stores the file ID.

步骤202:根据预先配置的当前业务对应的媒体数据处理需求,对所述第一媒体数据进行处理并得到第二媒体数据。Step 202: Process the first media data to obtain second media data according to the pre-configured media data processing requirements corresponding to the current service.

在一些实例中,数据处理服务器预先将多种业务的媒体数据处理需求分别封装成多个处理进程,并将所述多个处理进程分别与所述多种业务的业务标识相关联。其中,所述对所述第一媒体数据进行处理,包括:根据所述第一媒体数据携带的业务标识调用其关联的处理进程,以由该处理进程对所述第一媒体数据进行处理。In some examples, the data processing server packages the media data processing requirements of various services into multiple processing processes in advance, and associates the multiple processing processes with service identifiers of the multiple services respectively. Wherein, the processing of the first media data includes: invoking its associated processing process according to the service identifier carried by the first media data, so that the processing process processes the first media data.

具体的,数据处理服务器采用的业务标识可以为项目ID,这样,每种业务对应一个项目ID,可以将处理进程的名称和项目ID相关联,如进程的名称中包含项目ID。Specifically, the service identifier used by the data processing server may be a project ID. In this way, each service corresponds to a project ID, and the name of the processing process may be associated with the project ID. For example, the name of the process includes the project ID.

其中,所述数据处理服务器可以采用如ffmpeg强大的音视频处理技术,且所述数据处理服务器采用多进程方式,根据当前业务对应的项目ID调用对应的处理进程。这里,数据处理服务器接收到的客户端上传的第一媒体数据可携带当前业务的业务标识(如:音视频源文件携带项目ID)。该处理过程中,数据处理服务器实时保存进程的处理状态、文件ID等处理信息,该处理信息可以存储至本地的缓存(cache)中,或者存储至专门的缓存(cache)服务器或其他存储系统(如redis db)中。其中,所述处理状态可以分为五种:1、正在处理,2、成功,3、解析错误(是指解析音视频处理请求的协议出错,如请求音视频处理的协议参数不正确),4、处理错误(是指音视频处理失败,如音频格式不对等导致音视频处理失败),5、上传存储服务器错误。Wherein, the data processing server can adopt a powerful audio and video processing technology such as ffmpeg, and the data processing server adopts a multi-process mode, and calls the corresponding processing process according to the project ID corresponding to the current business. Here, the first media data uploaded by the client and received by the data processing server may carry the service identifier of the current service (for example, the audio and video source files carry the project ID). During the processing, the data processing server saves the processing status of the process, file ID and other processing information in real time, and the processing information can be stored in a local cache (cache), or stored in a special cache (cache) server or other storage system ( Such as redis db). Wherein, the processing state can be divided into five kinds: 1, being processed, 2, success, 3, parsing error (referring to the protocol error of parsing audio and video processing request, such as requesting that the protocol parameter of audio and video processing is incorrect), 4 . Processing errors (referring to audio and video processing failures, such as audio and video processing failures caused by unequal audio formats), 5. Upload storage server errors.

步骤203:将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址。Step 203: storing the second media data on the network side and obtaining a link address of the second media data.

在一些实例中,数据处理服务器将所述第二媒体数据上传到存储服务器,其中,所述存储服务器存储所述第二媒体数据并生成所述链接地址;从所述存储服务器接收所述链接地址。In some examples, the data processing server uploads the second media data to a storage server, wherein the storage server stores the second media data and generates the link address; receives the link address from the storage server .

具体的,所述处理进程处理完成后,数据处理服务器将所述处理过的媒体数据文件,即第二媒体数据,上传至存储服务器中,该存储服务器可以为云存储服务器,或者内容分发网络(CDN)服务器,所述云存储服务器或CDN服务器将第二媒体数据文件的下载地址(URL)返回给数据处理服务器,其中,所述第二媒体数据为所述媒体数据经媒体数据处理服务器处理后的媒体数据。Specifically, after the processing process is completed, the data processing server uploads the processed media data file, that is, the second media data, to a storage server, and the storage server may be a cloud storage server, or a content distribution network ( CDN) server, the cloud storage server or CDN server returns the download address (URL) of the second media data file to the data processing server, wherein, the second media data is after the media data is processed by the media data processing server media data.

在一些实例中,当对所述第一媒体数据进行处理并得到第二媒体数据之后,记录处理状态,其中,所述处理状态用于指示所述处理是否成功;其中,当所述处理成功时,将所述第二媒体数据存储在网络侧并获得所述链接地址;该方法进一步包括:当对一客户端上传的所述第一媒体数据进行的所述处理失败时,提供所述处理状态给所述业务服务器,以使所述业务服务器将所述处理状态提供给所述客户端。In some examples, after the first media data is processed and the second media data is obtained, the processing status is recorded, wherein the processing status is used to indicate whether the processing is successful; wherein, when the processing is successful , storing the second media data on the network side and obtaining the link address; the method further includes: when the processing of the first media data uploaded by a client fails, providing the processing status to the service server, so that the service server provides the processing status to the client.

步骤204:响应于来自业务服务器的链接地址获取请求,将所获得的当前业务的一个或多个所述链接地址发送给所述业务服务器,以使所述业务服务器向当前业务的任一客户端提供该客户端可用的一个或多个所述链接地址。Step 204: In response to the link address acquisition request from the service server, send the obtained one or more link addresses of the current service to the service server, so that the service server can send any client of the current service One or more of the link addresses available to the client are provided.

在一些实例中,当接收到所述第一媒体数据之后,将所述第一媒体数据的标识发送给所述业务服务器;将所获得的所述第二媒体数据的链接地址与所述第一媒体数据的标识对应保存;In some examples, after receiving the first media data, send the identifier of the first media data to the service server; link the obtained link address of the second media data with the first The identity of the media data is saved correspondingly;

其中,所述将所述链接地址提供给业务服务器,包括:Wherein, the providing the link address to the service server includes:

响应于来自所述业务服务器的查询请求,根据所述查询请求携带的所述第一媒体数据的标识查找到对应的所述链接地址;及In response to the query request from the service server, find the corresponding link address according to the identifier of the first media data carried in the query request; and

将查找到的所述链接地址发送给所述业务服务器。Send the found link address to the service server.

这里,业务服务器得知产品上传第一媒体数据成功后,经过预定时间便向数据处理服务器中的旁路处理服务器查询第一媒体数据处理状态,当旁路处理服务器处理完成后,第二媒体数据的下载地址(即链接地址)可用,便将所述下载地址返回给业务服务器。Here, after the business server learns that the product has successfully uploaded the first media data, it will query the bypass processing server in the data processing server for the processing status of the first media data after a predetermined time. After the bypass processing server completes the processing, the second media data If the download address (that is, the link address) is available, the download address is returned to the service server.

在一些实例中,在音视频源文件上传成功后,经过预定时间,客户端可向业务服务器查询音视频源文件的处理状态。当旁路处理服务器对此音视频源文件处理成功后,可获得对应的音视频文件(即第二媒体数据)的链接地址,可将此链接地址返回给业务服务器,业务服务器将所收到的各链接地址以及对应的音视频源文件的文件ID对应保存。旁路处理服务器也可将对音视频源文件的处理状态(如:1、正在处理,2、成功,3、解析错误,4、处理错误,5、上传存储服务器错误等状态)发送给业务服务器。对于一个客户端,业务服务器可以将该客户端上传的音视频源文件的处理状态提供给客户端,也可以将该客户端可用的一个或多个第二媒体数据的链接地址提供给该客户端,该客户端通过任一链接地址,可从存储服务器获取上述该链接地址对应的第二媒体数据。In some examples, after the audio and video source file is successfully uploaded, the client may query the service server for the processing status of the audio and video source file after a predetermined time has elapsed. After the bypass processing server successfully processes the audio and video source file, it can obtain the link address of the corresponding audio and video file (i.e. the second media data), and can return the link address to the service server, and the service server will receive the link address Each link address and the file ID of the corresponding audio and video source file are correspondingly stored. The bypass processing server can also send the processing status (such as: 1, processing, 2, success, 3, parsing error, 4, processing error, 5, upload storage server error, etc.) to the service server to the processing status of the audio and video source file . For a client, the business server can provide the client with the processing status of the audio and video source files uploaded by the client, and can also provide the client with the link addresses of one or more second media data available to the client , the client can acquire the second media data corresponding to the link address from the storage server through any link address.

这里,某一客户端可用的一个或多个第二媒体数据的链接地址可以包括以下中的至少一项:1、与该客户端当前用户参与同一互动活动(比如广告互动活动)的其它用户上传的各第一媒体数据对应的各第二媒体数据的链接地址,2、关注该客户端当前用户的各用户针对某个媒体内容上传的各第一媒体数据对应的各第二媒体数据的链接地址,3、该客户端当前用户关注的各用户上传的各第一媒体数据对应的各第二媒体数据的链接地址,4、该客户端当前用户的好友上传的各第一媒体数据对应的各第二媒体数据的链接地址,5、针对某一媒体内容所有用户上传的各第一媒体数据对应的各第二媒体数据的链接地址,等等。Here, the link addresses of one or more second media data available to a certain client may include at least one of the following: 1. Uploaded by other users participating in the same interactive activity (such as an advertising interactive activity) with the current user of the client; 2. The link address of each second media data corresponding to each first media data uploaded by each user who pays attention to the current user of the client for a certain media content 3. The link address of each second media data corresponding to each first media data uploaded by each user who is concerned by the current user of the client. 4. The link address of each first media data corresponding to each first media data uploaded by friends of the current user of the client. 2. The link address of the media data, 5. The link address of each second media data corresponding to each first media data uploaded by all users of a certain media content, and so on.

例如,对于上述第1项,在一个广告互动活动中,参与活动的各个用户可通过各自的客户端上传音视频源文件,并由后台处理得到一音视频文件(即第二媒体数据)的链接地址,在此广告互动活动中产生的对应于各用户的音视频文件的链接地址都可以提供给某一用户的客户端,这样,此用户可以播放各个用户的音视频文件。For example, for item 1 above, in an advertising interactive activity, each user participating in the activity can upload audio and video source files through their respective clients, and obtain a link of an audio and video file (that is, the second media data) through background processing The address and the link address corresponding to each user's audio and video files generated in this advertising interaction activity can be provided to a certain user's client, so that the user can play each user's audio and video files.

再例如,对于上述第2项,该客户端是个配音软件,该客户端的当前用户通过配音软件上传的一个音视频源文件(配音作品源文件),后台处理得到一配音作品的链接地址并发布在配音软件的平台中,关注此用户的各其它用户的客户端可访问此配音作品的链接地址并播放,还可针对此配音作品发出评论或者多媒体互动,进而可以上传各自的音视频源文件(对于配音作品发表的语音评论或音视频互动信息)到后台,后台可以处理得到各音视频文件的链接地址,并将各音视频文件的链接地址提供给发表配音作品的该客户端。后台也可以给关注此配音作品的各用户的客户端提供这些链接地址(即上述第5项)。For another example, for the above item 2, the client is a dubbing software, and the current user of the client uploads an audio and video source file (dubbing work source file) through the dubbing software, and the background processing obtains a link address of a dubbing work and publishes it on In the dubbing software platform, the clients of other users who follow this user can access the link address of this dubbing work and play it, and can also send comments or multimedia interactions on this dubbing work, and then upload their own audio and video source files (for Voice comments or audio-video interactive information published by the dubbing work) to the background, the background can process the link address of each audio-video file, and provide the link address of each audio-video file to the client that publishes the dubbing work. The background can also provide these link addresses (namely the above item 5) to the clients of the users who follow the dubbing works.

又例如,对于上述第3项,该客户端是个配音软件,该客户端的当前用户通过配音软件上传的一个音视频源文件(配音作品源文件),后台处理得到一配音作品的链接地址并发布在配音软件的平台中,此用户关注的各其它用户的客户端也可上传各自的音视频源文件(配音作品源文件)到后台,后台可以处理得到各音视频文件的链接地址,并将各音视频文件的链接地址提供给第一客户端,这样用户可以访问到其所关注的各其它用户发表的配音作品。对于上述第4项,用户的客户端可以获得各好友发表的音视频作品或者音视频评论。For another example, for the above item 3, the client is a dubbing software, and the current user of the client uploads an audio and video source file (dubbing work source file) through the dubbing software, and the background processing obtains a link address of a dubbing work and publishes it on In the dubbing software platform, the clients of other users concerned by this user can also upload their own audio and video source files (dubbing work source files) to the background, and the background can process and obtain the link address of each audio and video file, and upload each audio and video file The link address of the video file is provided to the first client, so that the user can access the dubbing works published by other users concerned. For item 4 above, the user's client terminal can obtain audio and video works or audio and video comments published by each friend.

本申请中,上述客户端可用的一个或多个第二媒体数据的链接地址并不限于以上五种情况,根据当前客户端页面提供的媒体互动功能的不同以及用户的权限设置,对于此客户端可用的第二媒体数据的链接地址会有不同,总之,业务服务器可以根据业务逻辑确定客户端当前页面中可用的第二媒体数据的链接地址。In this application, the link addresses of one or more second media data available to the above-mentioned client are not limited to the above five situations. The available link addresses of the second media data may be different. In short, the service server may determine the link addresses of the available second media data in the current page of the client according to the service logic.

这里,由于该数据处理服务器处于后台中,当客户端对于媒体数据的处理需求发生变更时,只需要在后台调整该处理需求对应的处理进程即可快速的实现变更,而不必对客户端的程序做任何改动,并且,媒体数据的格式转换等处理也不会占用用户侧的处理资源,能够提升整个系统的性能。Here, since the data processing server is in the background, when the client's processing requirement for media data changes, it only needs to adjust the processing process corresponding to the processing requirement in the background to realize the change quickly, without having to make changes to the client's program. Any modification, and processing such as format conversion of media data will not occupy processing resources on the user side, which can improve the performance of the entire system.

其中,所述处理进程可被称为所述客户端(如配音软件、媒体播放器或微信等)的旁路处理过程,所述处理进程不影响所述客户端的正常操作,免去了用户使用该客户端的等待,提高用户体验。Wherein, the processing process can be referred to as a bypass processing process of the client (such as dubbing software, media player or WeChat, etc.), and the processing process does not affect the normal operation of the client, eliminating the need for users to use The client waits to improve user experience.

在一些实例中,上述数据处理服务器104可以包括上传处理模块、数据处理模块和信息提供模块,这些模块可以集成在同一个服务器设备中,也可分布在不同的服务器设备中。比如,上传处理模块可以位于上传服务器,数据处理模块可以位于数据处理服务器,信息提供模块可以位于一个独立的信息提供服务器,也可与数据处理模块位于同一服务器(如数据处理服务器)。这样,在一些实例中,数据处理服务器104可以包括:上传服务器、处理服务器(集成了数据处理模块和信息提供模块)。在另一些实例中,数据处理服务器104可以包括:上传服务器、处理服务器和信息提供服务器。In some examples, the above-mentioned data processing server 104 may include an upload processing module, a data processing module and an information providing module, and these modules may be integrated in the same server device or distributed in different server devices. For example, the upload processing module may be located in the upload server, the data processing module may be located in the data processing server, and the information providing module may be located in an independent information providing server, or may be located in the same server as the data processing module (such as a data processing server). In this way, in some examples, the data processing server 104 may include: an upload server, a processing server (integrated with a data processing module and an information providing module). In some other examples, the data processing server 104 may include: an upload server, a processing server and an information providing server.

本申请提出了一种媒体数据处理系统。在一些实例中,该系统300包括:业务服务器301、上传服务器302、处理服务器303和信息提供服务器304,所述信息提供服务器304集成在所述处理服务器303之中或者独立设置;其中,所述上传服务器302,接收当前业务的任一客户端上传的第一媒体数据,并将所述第一媒体数据提供给所述处理服务器303;所述处理服务器303,根据预先配置的当前业务对应的媒体数据处理需求,对所述第一媒体数据进行处理并得到第二媒体数据;将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址,并将所述链接地址保存在所述信息提供服务器304;所述业务服务器301,响应于来自当前业务的任一客户端的上传所述第一媒体数据的请求,向所述信息提供服务器304发送链接地址获取请求;所述信息提供服务器304,响应于来自所述业务服务器的所述链接地址获取请求,将所获得的当前业务的一个或多个所述链接地址发送给所述业务服务器301;所述业务服务器301,向当前业务的任一客户端提供对于该客户端可用的一个或多个所述链接地址。This application proposes a media data processing system. In some examples, the system 300 includes: a business server 301, an upload server 302, a processing server 303, and an information providing server 304, and the information providing server 304 is integrated in the processing server 303 or set independently; wherein, the The upload server 302 receives the first media data uploaded by any client of the current service, and provides the first media data to the processing server 303; the processing server 303, according to the pre-configured media corresponding to the current service Data processing requirements, processing the first media data to obtain second media data; storing the second media data on the network side and obtaining a link address of the second media data, and saving the link address In the information providing server 304; the service server 301, in response to a request for uploading the first media data from any client of the current service, sends a link address acquisition request to the information providing server 304; the information The providing server 304, in response to the link address acquisition request from the service server, sends the acquired one or more link addresses of the current service to the service server 301; the service server 301 sends the current service Any client of the service provides one or more of said link addresses available to the client.

在一些实例中,所述系统300进一步包括:验证服务器305;其中,所述业务服务器301,响应于所述上传所述第一媒体数据的请求,进一步向所述验证服务器305发送获取验证票据的请求;所述验证服务器305,响应于来自所述业务服务器301的所述获取验证票据的请求,发送验证票据给所述业务服务器301;所述业务服务器301,进一步将所述验证票据发送给所述客户端;所述上传服务器302接收所述第一媒体数据时,进一步接收所述第一媒体数据对应的验证票据;根据所述验证票据校验所述第一媒体数据是否合法;当校验结果为所述第一媒体数据合法时,将所述第一媒体数据提供给所述数据处理服务器303。In some examples, the system 300 further includes: a verification server 305; wherein, the service server 301, in response to the request for uploading the first media data, further sends to the verification server 305 a request for obtaining a verification ticket request; the verification server 305, in response to the request for obtaining a verification ticket from the business server 301, sends a verification ticket to the business server 301; the business server 301 further sends the verification ticket to the The client; when the upload server 302 receives the first media data, further receive the verification ticket corresponding to the first media data; check whether the first media data is legal according to the verification ticket; When the result is that the first media data is legal, the first media data is provided to the data processing server 303 .

在一些实例中,当多个客户端的处理需求较多,单台服务器处理能力可能不足,则可采用分布式的处理方案,利用多台数据处理服务器进行分布式处理,处理的结果信息可以统一存储,提供业务服务器查询处理状态使用。此种情况下,上述系统300中可以包括多组所述上传服务器302和所述处理服务器303,其中,每组包括一个所述上传服务器302和一个所述处理服务器303,所述信息提供服务器304独立设置;所述业务服务器301,响应于来自当前业务的任一客户端的上传所述第一媒体数据的请求,进一步从所述客户端接收所述第一媒体数据,为所述客户端选择一组所述上传服务器和所述处理服务器303,将所述第一媒体数据发送给所选择的所述上传服务器302;所述上传服务器302将所述第一媒体数据提供给同组的所述处理服务器303。In some instances, when the processing requirements of multiple clients are large and the processing capacity of a single server may be insufficient, a distributed processing scheme can be adopted, using multiple data processing servers for distributed processing, and the processed result information can be stored uniformly , which is used by the business server to query the processing status. In this case, the system 300 may include multiple groups of the upload server 302 and the processing server 303, wherein each group includes one upload server 302 and one processing server 303, and the information providing server 304 Independently set; the service server 301, in response to a request from any client of the current service to upload the first media data, further receives the first media data from the client, and selects a client for the client. Group the upload server and the processing server 303, and send the first media data to the selected upload server 302; the upload server 302 provides the first media data to the processing server of the same group server 303.

在一些实例中,处理服务器303可以被称为旁路处理服务器,信息提供服务器304可被称为信息存储模块。In some instances, the processing server 303 may be called a bypass processing server, and the information providing server 304 may be called an information storage module.

如图4所示,分布式处理过程涉及:N个客户端(客户端1、客户端2……客户端N)、存储第二媒体数据的存储服务器以及将处理信息(包括URL和/或处理状态)统一存储的处理信息存储模块。而分布式处理平台还包括N组进行媒体数据处理的服务器,每一组包括一个上传服务器和一个旁路处理服务器,如图4所示,可包括:上传服务器1和旁路处理服务器1、上传服务器2和旁路处理服务器2、上传服务器N和旁路处理服务器N。因本申请主要涉及对于媒体数据的分布式处理,因此,平台中未示出业务服务器和验证服务器,在实际应用中,该平台中也可能包括一个或多个业务服务器和验证服务器,其中任一客户端可向当前业务对应的业务服务器发送上传媒体数据源文件的请求,也可从对应的验证服务器获得ticket。As shown in Figure 4, the distributed processing process involves: N clients (client 1, client 2...client N), a storage server storing the second media data and processing information (including URL and/or processing status) processing information storage module for unified storage. And the distributed processing platform also includes N groups of servers for media data processing, each group includes an upload server and a bypass processing server, as shown in Figure 4, may include: upload server 1 and bypass processing server 1, upload Server 2 and bypass processing server 2, upload server N and bypass processing server N. Since this application mainly involves the distributed processing of media data, the service server and verification server are not shown in the platform. In practical applications, the platform may also include one or more service servers and verification servers, any of which The client can send a request for uploading media data source files to the service server corresponding to the current service, and can also obtain a ticket from the corresponding verification server.

然后,客户端将ticket、媒体数据源文件、项目ID等数据发送到对应的业务服务器,由业务服务器选择一个上传服务器并将ticket、媒体数据源文件、项目ID等数据上传到所选的上传服务器,这个选择规则可以如下:将各上传服务器的IP地址和端口号列表配置在业务服务器中,当业务服务器接收到来自客户端的请求时,通过项目ID和上传服务器的总数“取模值”的方式选择其中的一台上传服务器。例如:共有7个项目ID,分别为1000、1001、……、1006,以及共有5台上传服务器,其IP地址分别为{"10.127.0.1","10.127.0.2","10.127.0.3","10.127.0.4","10.127.0.5"},则客户端1所对应的上传服务器为:将客户端1当前所用业务的项目ID与上传服务器的总数取模,1000%5=0,则确定客户端1所对应的上传服务器的标识为0,上传服务器的IP地址为server[0]=10.127.0.1;同理,客户端2所对应的上传服务器为:1001%5=1,则确定客户端2所对应的上传服务器标识为1,上传服务器的IP地址为server[1]=10.127.0.2;同理,客户端3所对应的上传服务器为:1002%5=2,则确定客户端3所对应的上传服务器标识为2,上传服务器的IP地址为server[2]=10.127.0.3;同理,客户端4所对应的上传服务器为:1003%5=3,则确定客户端4所对应的上传服务器标识为3,上传服务器的IP地址为server[3]=10.127.0.4;同理,客户端5所对应的上传服务器为:1004%5=4,则确定客户端5所对应的上传服务器标识为4,上传服务器的IP地址为server[4]=10.127.0.5;同理,客户端6所对应的上传服务器为:1005%5=0,则确定客户端6所对应的上传服务器标识为0,上传服务器的IP地址为server[0]=10.127.0.1;同理,客户端7所对应的上传服务器为:1006%5=1,则确定客户端7所对应的上传服务器标识为1,上传服务器的IP地址为server[1]=10.127.0.2。Then, the client sends the ticket, media data source file, project ID and other data to the corresponding business server, and the business server selects an upload server and uploads the ticket, media data source file, project ID and other data to the selected upload server , this selection rule can be as follows: configure the IP address and port number list of each upload server in the business server, when the business server receives a request from the client, the project ID and the total number of upload servers are "modulo valued" Choose one of the upload servers. For example: there are 7 project IDs in total, namely 1000, 1001, ..., 1006, and 5 upload servers in total, whose IP addresses are {"10.127.0.1", "10.127.0.2", "10.127.0.3", "10.127.0.4","10.127.0.5"}, then the upload server corresponding to client 1 is: take the modulo of the project ID of the business currently used by client 1 and the total number of upload servers, 1000%5=0, then determine The identifier of the upload server corresponding to client 1 is 0, and the IP address of the upload server is server[0]=10.127.0.1; similarly, the upload server corresponding to client 2 is: 1001%5=1, then the client is determined The upload server ID corresponding to terminal 2 is 1, and the IP address of the upload server is server[1]=10.127.0.2; similarly, the upload server corresponding to client 3 is: 1002%5=2, then client 3 is determined The corresponding upload server ID is 2, and the IP address of the upload server is server[2]=10.127.0.3; similarly, the upload server corresponding to client 4 is: 1003%5=3, then it is determined that client 4 corresponds to The upload server ID is 3, and the IP address of the upload server is server[3]=10.127.0.4; similarly, the upload server corresponding to client 5 is: 1004%5=4, then determine the upload server corresponding to client 5 The server ID is 4, and the IP address of the upload server is server[4]=10.127.0.5; similarly, the upload server corresponding to client 6 is: 1005%5=0, then determine the corresponding upload server ID of client 6 is 0, the IP address of the upload server is server[0]=10.127.0.1; similarly, the upload server corresponding to client 7 is: 1006%5=1, then it is determined that the upload server ID corresponding to client 7 is 1 , the IP address of the upload server is server[1]=10.127.0.2.

当上述音视频源文件等数据上传成功后,其中接收该数据的上传服务器通知其对应的旁路处理服务器进行处理,该通知中携带项目ID,旁路处理服务器根据该项目ID调用该项目ID所对应的处理进程进行处理,处理的信息统一集中放在处理信息存储模块,以便业务服务器查询处理状态使用。当旁路处理服务器将媒体数据源文件成功处理完成后,便将第二媒体数据上传至存储服务器,存储服务器将第二媒体数据的链接地址(URL)(处理信息)返回给旁路处理服务器,旁路处理服务器将URL保存至处理信息存储模块。When the above audio and video source files and other data are successfully uploaded, the upload server that receives the data notifies its corresponding bypass processing server to process, the notification carries the project ID, and the bypass processing server calls the project ID according to the project ID The corresponding processing process is processed, and the processed information is centrally placed in the processing information storage module, so that the business server can query the processing status and use it. After the bypass processing server has successfully processed the media data source file, the second media data is uploaded to the storage server, and the storage server returns the link address (URL) (processing information) of the second media data to the bypass processing server, The bypass processing server saves the URL to the processing information storage module.

采用上述处理技术方案,能够实现媒体数据的处理和产品解耦,同时数据处理服务器在后台异步处理,可以在较短的时间内处理完成媒体数据的处理需求,以及在处理过程中,不会阻塞用户的其他操作,从而使得用户体验更好。该方案可以快速的实现各种复杂的媒体数据处理的需求,提高用户的使用体验。Using the above-mentioned processing technology solution, the processing of media data and decoupling of products can be realized. At the same time, the data processing server processes asynchronously in the background, which can complete the processing requirements of media data in a short period of time, and will not block during the processing Other operations of the user, so as to make the user experience better. This solution can quickly realize various complex media data processing requirements and improve user experience.

在一些实例中,对于互动广告活动(例如为用户点击广告进入一个活动页面,也就是和用户互动的页面(用户可以在该页面中进行语音互动或语音评论等操作),加深用户对广告的认识)中常有需要使用视频、音频素材等媒体数据处理的场景,一般情况下剪辑音视频、添加背景音乐、字幕,裁剪音视频成所需要的时间长度等需要耗费较大的时间成本,同时必须在完成音视频的全部制作后才能进行上传至存储服务器进行存储,以便于下次使用时直接调用。而采用本申请的技术方案,客户端通过业务服务器选择分布式处理平台(如图3中所示)中的一个上传服务器将音视频源文件上传,然后由旁路处理服务器进行音视频处理,处理成功后,旁路处理服务器将第二媒体数据上传至存储服务器,存储服务器返回该第二媒体数据的URL给旁路处理服务器,旁路处理服务器将URL保存至处理信息存储模块。客户端对应的业务服务器向该处理信息存储模块查询第二媒体数据的链接地址,并根据客户端的请求将第二媒体数据的链接地址返回给客户端,供用户在互动广告活动中直接使用,如用户可以点击该URL,即可播放制作好的音视频。同时,因该互动广告活动从开发到上线时间相对较短,而且需求变更也较为频繁,采用本申请的上述技术方案可以快速的满足开发上线、功能更新以及需求变更等需求。In some instances, for interactive advertising activities (for example, for users to click on an advertisement to enter an active page, that is, a page that interacts with users (users can perform operations such as voice interaction or voice comments on this page), deepen users' understanding of advertisements ) often requires the use of media data processing such as video and audio materials. In general, it takes a lot of time to edit audio and video, add background music, subtitles, and cut audio and video to the required length of time. At the same time, it must After completing all the production of audio and video, it can be uploaded to the storage server for storage, so that it can be called directly in the next use. And adopt the technical scheme of the present application, the client selects an upload server in the distributed processing platform (as shown in Figure 3) by the service server to upload the audio and video source files, and then carry out audio and video processing by the bypass processing server, processing After success, the bypass processing server uploads the second media data to the storage server, and the storage server returns the URL of the second media data to the bypass processing server, and the bypass processing server saves the URL to the processing information storage module. The service server corresponding to the client inquires the link address of the second media data from the processing information storage module, and returns the link address of the second media data to the client according to the request of the client, for the user to use directly in the interactive advertising campaign, such as Users can click on the URL to play the produced audio and video. At the same time, because the time from development to launch of the interactive advertising campaign is relatively short, and the requirements change frequently, the above-mentioned technical solution of this application can quickly meet the needs of development and launch, function updates and demand changes.

在一些实例中,本申请的上述技术方案还可以结合现有的直播平台或直播活动进行使用。一般直播后都会有对视频素材进行剪辑回放的需求,本申请通过提供封装好的分布式处理平台(如图4所示),直播平台或直播活动中将其视频源文件上传至业务服务器,业务服务器选择分布式处理平台中的一上传服务器,然后由旁路处理服务器进行音视频剪辑以及各种功能添加,最后存储服务器提供处理好的音视频文件的URL,给旁路处理服务器,旁路处理服务器将URL保存至处理信息存储模块。客户端对应的业务服务器向该处理信息存储模块查询第二媒体数据的URL,并根据客户端的请求将第二媒体数据的URL返回给客户端,供用户播放直播视频使用。In some instances, the above-mentioned technical solutions of the present application can also be used in combination with existing live broadcast platforms or live broadcast events. Generally, after the live broadcast, there will be a demand for clipping and playback of video materials. This application provides a packaged distributed processing platform (as shown in Figure 4), and uploads its video source files to the business server during the live broadcast platform or live broadcast activities. The server selects an upload server in the distributed processing platform, and then the bypass processing server performs audio and video clipping and various function additions, and finally the storage server provides the URL of the processed audio and video files to the bypass processing server for bypass processing The server saves the URL to the processing information storage module. The service server corresponding to the client queries the processing information storage module for the URL of the second media data, and returns the URL of the second media data to the client according to the request of the client, for the user to play the live video.

通过采用上述技术方案,可以快速的实现各种复杂的媒体数据处理需求,不会阻塞用户的其他操作,以及快速的实现媒体数据处理需求的变更,同时还为客户端的开发上线、功能更新节省了大量时间。高效快速的分布式异步处理,提高了用户对有媒体数据处理需求的产品的体验。同时通过将封装好的平台入口开放给直播平台或直播活动等使用场景,快速导入音视频源,将直播音视频快速进行二次制作、复用和传播。By adopting the above technical solutions, various complex media data processing requirements can be quickly realized without blocking other operations of the user, and the change of media data processing requirements can be quickly realized. lot of time. Efficient and fast distributed asynchronous processing improves user experience for products that require media data processing. At the same time, by opening the packaged platform entrance to usage scenarios such as live broadcast platforms or live events, audio and video sources can be quickly imported, and live audio and video can be quickly re-produced, multiplexed, and disseminated.

在一些实例中,本申请还提出一种媒体数据处理方法,该方法可应用于客户端101中,如图5所示,该方法包括以下步骤:In some examples, the present application also proposes a media data processing method, which can be applied to the client 101, as shown in FIG. 5 , the method includes the following steps:

步骤501:将当前业务产生的第一媒体数据上传至数据处理服务器;其中,针对当前业务的任一客户端上传的所述第一媒体数据,所述数据处理服务器根据预先配置的当前业务对应的媒体数据处理需求对所述第一媒体数据进行处理并得到第二媒体数据,将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址。Step 501: Upload the first media data generated by the current business to the data processing server; wherein, for the first media data uploaded by any client of the current business, the data processing server The media data processing requirements process the first media data to obtain second media data, store the second media data on the network side and obtain a link address of the second media data.

步骤502:向业务服务器发送链接地址获取请求;其中,所述业务服务器响应于所述链接地址获取请求,从所述数据处理服务器获得的当前业务的一个或多个链接地址中确定对于本客户端可用的各所述链接地址。Step 502: Send a link address acquisition request to the service server; wherein, in response to the link address acquisition request, the service server determines from one or more link addresses of the current service obtained by the data processing server that the client is Each of the mentioned link addresses is available.

步骤503:从所述业务服务器接收对于本客户端可用的各所述链接地址。Step 503: Receive each of the link addresses available to the client from the service server.

步骤504:响应于用户对于接收到的各所述链接地址中任一链接地址的选择操作,根据被选择的所述链接地址从网络侧获取所述第二媒体数据。Step 504: In response to the user's selection operation on any one of the received link addresses, acquire the second media data from the network side according to the selected link address.

步骤505:播放所获取的所述第二媒体数据。Step 505: Play the acquired second media data.

在一些实例中,向所述业务服务器发送上传请求;其中,所述业务服务器响应于所述上传请求从所述数据处理服务器获取验证票据;从所述业务服务器接收所述验证票据;将所述验证票据与所述第一媒体数据一起上传至所述数据处理服务器,以使其根据所述验证票据校验所述第一媒体数据是否合法,当校验结果为所述第一媒体数据合法时,执行所述对所述第一媒体数据进行处理并得到第二媒体数据的处理。In some examples, an upload request is sent to the service server; wherein, the service server obtains a verification ticket from the data processing server in response to the upload request; receives the verification ticket from the service server; The verification ticket is uploaded to the data processing server together with the first media data, so that it can verify whether the first media data is legal according to the verification ticket, and when the verification result is that the first media data is legal , executing the process of processing the first media data and obtaining second media data.

在一些实例中,从所述业务服务器接收处理状态,其中,所述处理状态用于指示所述数据处理服务器对本客户端上传的所述第一媒体数据进行所述处理是否成功;及展示所述处理状态。In some examples, receiving a processing status from the service server, wherein the processing status is used to indicate whether the data processing server successfully performs the processing on the first media data uploaded by the client; and displaying the processing status.

图6示出了本申请提供的媒体数据处理的交互图。其中,客户端为展示一媒体互动活动(如直播活动)的web页面的浏览器,从而其对应的业务服务器为网站服务器(webserver);所述数据处理服务器104在该图中由虚线中的服务器构成,包括验证服务器(ticket server)、上传服务器和旁路处理服务器。这里,媒体数据可以为音视频数据。Fig. 6 shows an interactive diagram of media data processing provided by this application. Wherein, the client is a browser displaying a web page of a media interactive activity (such as a live event), so that its corresponding service server is a web server (webserver); Composition, including verification server (ticket server), upload server and bypass processing server. Here, the media data may be audio and video data.

如图6所示,所述媒体数据处理包括以下步骤:As shown in Figure 6, the media data processing comprises the following steps:

步骤601:旁路处理服务器将客户端可参与的活动的音视频处理需求封装成该处理需求对应的处理进程,其中,每个活动对应一个项目ID,可将每个处理进程与一个项目ID对应保存。Step 601: The bypass processing server encapsulates the audio and video processing requirements of the activities that the client can participate in into processing processes corresponding to the processing requirements, wherein each activity corresponds to a project ID, and each processing process can be associated with a project ID save.

步骤602:客户端通过上述活动的web页面向网站服务器发出上传音视频源文件的请求。这里,用户在使用客户端参与上述活动时,会产生音视频处理需求,比如:录制一段音视频并通过此web页面上传音视频源文件,此时,客户端会向网站服务器发出上传音视频源文件的请求。Step 602: the client sends a request for uploading audio and video source files to the website server through the above-mentioned active web page. Here, when the user uses the client to participate in the above activities, there will be audio and video processing requirements, such as: recording a piece of audio and video and uploading the audio and video source file through this web page, at this time, the client will send the upload audio and video source to the website server file request.

步骤603:在接收到上述请求后,网站服务器从验证服务器获取用于验证用户请求是否合法的ticket。Step 603: After receiving the above request, the website server obtains a ticket for verifying whether the user request is legal from the verification server.

步骤604:相应的,验证服务器返回该ticket给网站服务器,网站服务器将其返回给客户端。Step 604: Correspondingly, the verification server returns the ticket to the website server, and the website server returns it to the client.

步骤605:客户端将上述ticket、项目ID、音视频源文件和用户标识信息等数据上传至上传服务器。这里,后台采用分布式的处理平台时,数据可先发送给业务服务器,由业务服务器选择上传服务器,再将这些数据发送给所选的上传服务器。Step 605: The client uploads the aforementioned data such as the ticket, project ID, audio and video source files, and user identification information to the upload server. Here, when a distributed processing platform is used in the background, the data can be sent to the service server first, and the service server selects an upload server, and then sends the data to the selected upload server.

这里,所述音视频源文件可以包括用户在互动广告活动中录制的语音互动或语音评论,上述语音需进行效果处理等,或者在直播活动中录制的视频,该视频需进行剪辑以及各种功能添加等等。Here, the audio and video source files may include voice interactions or voice comments recorded by users in interactive advertising campaigns, the above voices need to be processed for effects, etc., or videos recorded in live broadcast activities, which need to be edited and have various functions add etc.

步骤606:上传服务器解析上述ticket,如果校验合法,则执行步骤608,否则执行步骤607。Step 606: The upload server parses the above ticket, if the verification is valid, go to step 608, otherwise go to step 607.

步骤607:上传服务器将上传失败的结果信息反馈给客户端。客户端在接收到该信息后,可以再次重新发送上传音视频源文件的请求,以及继续执行上述步骤,即再次重新执行步骤601-606,或结束当前流程。Step 607: The upload server feeds back the result information of upload failure to the client. After receiving the information, the client can resend the request for uploading audio and video source files, and continue to execute the above steps, that is, re-execute steps 601-606 again, or end the current process.

步骤608:上传服务器接收客户端上传的音视频源文件等数据,并临时在本地存储音视频源文件,以供旁路处理服务器使用。Step 608: The upload server receives data such as audio and video source files uploaded by the client, and temporarily stores the audio and video source files locally for use by the bypass processing server.

步骤609:若上述数据上传成功,上传服务器则返回客户端该音视频源文件的文件ID。Step 609: If the above data is successfully uploaded, the upload server returns the file ID of the audio and video source file to the client.

步骤610:客户端向网站服务器发送保存文件ID的请求。Step 610: the client sends a request for saving the file ID to the website server.

步骤611:网站服务器响应上述请求,保存文件ID。Step 611: The website server responds to the above request and saves the file ID.

步骤612:上传服务器通知旁路处理服务器对音视频源文件进行处理,该通知中携带项目ID、文件ID及音视频源文件等数据。Step 612: The upload server notifies the bypass processing server to process the audio and video source files, and the notification carries data such as project ID, file ID, and audio and video source files.

步骤613:旁路处理服务器根据项目ID调用已经封装好的音视频处理进程,进行音视频处理,所述处理包括如变调、加背景音乐、音频转换或对视频素材进行剪辑回放等。Step 613: The bypass processing server invokes the packaged audio and video processing process according to the project ID to perform audio and video processing, such as transposing, adding background music, audio conversion, or clipping and playing back video materials.

步骤614:旁路处理服务器实时将其对音视频源文件的处理信息,如文件ID、处理状态,存储至本地缓存(cache)中,以便客户端的查询。其中,后台采用分布式的处理平台时,旁路处理服务器将上述处理信息统一存储至处理信息存储模块。Step 614: The bypass processing server stores the processing information of the audio and video source files, such as file ID and processing status, in a local cache (cache) in real time, so as to facilitate the query of the client. Wherein, when a distributed processing platform is used in the background, the bypass processing server uniformly stores the above processing information in the processing information storage module.

步骤615:旁路处理服务器成功处理完所述音视频源文件后,将成功处理完后的音视频文件,即第二媒体数据,上传至存储服务器,如云存储平台。而当旁路处理服务器没有成功处理完所述音视频源文件时,则无法将音视频文件上传至存储服务器,以及步骤615-步骤624均不执行。Step 615: After the bypass processing server successfully processes the audio and video source files, upload the successfully processed audio and video files, that is, the second media data, to a storage server, such as a cloud storage platform. However, when the bypass processing server fails to process the audio and video source files successfully, the audio and video files cannot be uploaded to the storage server, and steps 615-624 are not executed.

步骤616:存储服务器存储音视频文件。Step 616: the storage server stores the audio and video files.

步骤617:存储服务器返回音视频文件的链接地址(URL)给旁路处理服务器。这里,后台采用分布式的处理平台时,存储服务器将上述URL返回给旁路处理服务器,旁路处理服务器将URL保存至处理信息存储模块。Step 617: The storage server returns the link address (URL) of the audio/video file to the bypass processing server. Here, when a distributed processing platform is used in the background, the storage server returns the URL to the bypass processing server, and the bypass processing server saves the URL to the processing information storage module.

步骤618:旁路处理服务器将该URL存储至本地cache中,并与文件ID和项目ID对应保存。同样,后台采用分布式的处理平台时,旁路处理服务器将上述URL与文件ID和项目ID对应保存至处理信息存储模块。Step 618: The bypass processing server stores the URL in a local cache, and stores it in correspondence with the file ID and the item ID. Similarly, when a distributed processing platform is used in the background, the bypass processing server stores the URL, the file ID and the project ID correspondingly to the processing information storage module.

步骤619:网站服务器得知音视频源文件上传成功后,经过预定时间便根据文件ID向旁路处理服务器查询音视频源文件的处理状态以及音视频文件的URL,是否可用。其中,后台采用分布式处理平台时,网站服务器便根据文件ID向处理信息存储模块查询所述音视频源文件的处理状态以及音视频文件的URL,是否可用。Step 619: After learning that the audio and video source file is successfully uploaded, the website server inquires the processing status of the audio and video source file and the URL of the audio and video file to the bypass processing server according to the file ID, and whether the URL of the audio and video file is available. Wherein, when a distributed processing platform is used in the background, the website server queries the processing information storage module for the processing status of the audio-video source file and whether the URL of the audio-video file is available according to the file ID.

步骤620:当处理状态为2,即“成功”时,URL可用,旁路处理服务器将该URL返回给网站服务器;当处理状态为其他时,则不返回URL。进一步的,旁路处理服务器可将处理状态反馈给网站服务器。其中,在返回URL和处理状态时会同时将文件ID返回给网站服务器。Step 620: When the processing status is 2, that is, "success", the URL is available, and the bypass processing server returns the URL to the website server; when the processing status is other, no URL is returned. Further, the bypass processing server can feed back the processing status to the website server. Wherein, when returning the URL and processing status, the file ID will be returned to the website server at the same time.

步骤621:网站服务器获得URL后,便将文件ID及其对应的URL保存起来,得到一系列的文件ID和URL,即文件ID和URL清单列表。进一步的,可将当前业务的项目ID和文件ID和URL清单列表对应保存起来,以便区分不同业务中产生的各个音视频文件及其URL。Step 621: After obtaining the URL, the website server saves the file ID and its corresponding URL, and obtains a series of file IDs and URLs, that is, a list of file IDs and URLs. Further, the project ID and file ID of the current business can be stored correspondingly to the URL list, so as to distinguish each audio and video file and its URL generated in different businesses.

步骤622:客户端向网站服务器请求URL,该请求可以为客户端在上传音视频源文件之后经过预定时间向网站服务器发送的(如每个10s自动刷新当前页面),亦可以为用户点击客户端展示的相应控件而发送的(如用户点击页面中的刷新键)。Step 622: the client requests the URL from the web server. This request can be sent by the client to the web server after a predetermined time after uploading the audio and video source files (such as automatically refreshing the current page every 10s), or it can be for the user to click on the client Sent by the corresponding control displayed (for example, the user clicks the refresh button on the page).

步骤623:网站服务器响应客户端的链接地址获取请求,将该客户端相关的URL(如当前页面的所有URL)均返回给客户端。Step 623: The website server responds to the client's link address acquisition request, and returns URLs related to the client (such as all URLs of the current page) to the client.

步骤624:客户端根据上述任一URL从存储服务器获取第二媒体数据,播放该第二媒体数据,进而用户可以观看到经过处理后的音视频文件。这里,客户端在获取到一系列URL之后,可展示在页面中,进一步的,响应于用户对于其中一URL的选择操作,可以根据所选的URL从存储服务器获取第二媒体数据。Step 624: The client obtains the second media data from the storage server according to any of the above URLs, plays the second media data, and then the user can watch the processed audio and video files. Here, after the client obtains a series of URLs, they can be displayed on the page. Further, in response to the user's selection operation on one of the URLs, the second media data can be obtained from the storage server according to the selected URL.

基于上述实例提供的方法,本申请还提出了媒体数据处理装置,该装置可应用于数据处理服务器。如图7所示,该装置包括:Based on the method provided by the above examples, the present application also proposes a media data processing device, which can be applied to a data processing server. As shown in Figure 7, the device includes:

上传处理模块701,接收当前业务的任一客户端上传的第一媒体数据。The upload processing module 701 receives the first media data uploaded by any client of the current service.

数据处理模块702,根据预先配置的当前业务对应的媒体数据处理需求,对所述第一媒体数据进行处理并得到第二媒体数据;将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址,并将所述链接地址保存在所述信息提供模块。The data processing module 702 processes the first media data and obtains second media data according to the pre-configured media data processing requirements corresponding to the current service; stores the second media data on the network side and obtains the first media data The link address of the second media data, and save the link address in the information providing module.

信息提供模块703,响应于来自业务服务器的链接地址获取请求,将所获得的当前业务的一个或多个所述链接地址发送给所述业务服务器,以使所述业务服务器向当前业务的任一客户端提供一个或多个所述链接地址。The information providing module 703, in response to the link address acquisition request from the service server, sends the obtained one or more link addresses of the current service to the service server, so that the service server sends any link address of the current service to the service server. The client provides one or more link addresses.

在一些实例中,所述装置进一步包括:验证模块704,响应于来自所述业务服务器的获取验证票据的请求,发送验证票据给所述业务服务器;其中,所述上传处理模块接收所述第一媒体数据时,进一步接收所述第一媒体数据对应的验证票据;根据所述验证票据校验所述第一媒体数据是否合法;当校验结果为所述第一媒体数据合法时,所述数据处理模块执行所述对所述第一媒体数据进行处理并得到第二媒体数据的处理。In some examples, the device further includes: a verification module 704, which sends a verification ticket to the service server in response to a request from the service server for obtaining a verification ticket; wherein, the upload processing module receives the first media data, further receive the verification ticket corresponding to the first media data; check whether the first media data is legal according to the verification ticket; when the verification result is that the first media data is legal, the data The processing module executes the processing of processing the first media data and obtaining the second media data.

在一些实例中,所述数据处理模块702,进一步预先将多种业务的媒体数据处理需求分别封装成多个处理进程,并将所述多个处理进程分别与所述多种业务的业务标识相关联;其中,所述数据处理模块702对所述第一媒体数据进行处理,包括:根据所述第一媒体数据携带的业务标识调用其关联的处理进程,以由该处理进程对所述第一媒体数据进行处理。In some examples, the data processing module 702 further packages the media data processing requirements of various services into multiple processing processes in advance, and correlates the multiple processing processes with the business identifiers of the multiple services respectively wherein, the data processing module 702 processes the first media data, including: invoking its associated processing process according to the service identifier carried by the first media data, so that the processing process processes the first media data Media data is processed.

在一些实例中,所述上传处理模块701,当接收到所述第一媒体数据之后,进一步将所述第一媒体数据的标识发送给所述客户端,以使所述客户端将所述第一媒体数据的标识发送给所述业务服务器;所述信息提供模块703,进一步将所述数据处理模块702获得的所述第二媒体数据的链接地址与所述第一媒体数据的标识对应保存;其中,所述信息提供模块703所述将所述数据处理模块702获得的当前业务的一个或多个所述链接地址发送给所述业务服务器,包括:根据所述链接地址获取请求携带的一个或多个所述第一媒体数据的标识查找到对应的一个或多个所述链接地址;将查找到的所述一个或多个所述链接地址发送给所述业务服务器。In some examples, the upload processing module 701, after receiving the first media data, further sends the identification of the first media data to the client, so that the client sends the first media data An identifier of the media data is sent to the service server; the information providing module 703 further stores the link address of the second media data obtained by the data processing module 702 corresponding to the identifier of the first media data; Wherein, the information providing module 703 sending the one or more link addresses of the current service obtained by the data processing module 702 to the service server includes: obtaining one or more link addresses carried in the link address acquisition request according to the link address A plurality of identifiers of the first media data find corresponding one or more of the link addresses; and send the found one or more of the link addresses to the service server.

在一些实例中,所述数据处理模块702,当对所述第一媒体数据进行处理并得到第二媒体数据之后,进一步在所述信息提供模块中记录处理状态,其中,所述处理状态用于指示所述处理是否成功;其中,所述数据处理模块702,当所述处理成功时,将所述第二媒体数据存储在网络侧并获得所述链接地址;所述信息提供模块702,当所述数据处理模块对任一客户端上传的所述第一媒体数据进行的所述处理失败时,进一步提供所述处理状态给所述业务服务器,以使所述业务服务器将所述处理状态提供给该客户端。In some examples, after the data processing module 702 processes the first media data and obtains the second media data, it further records the processing status in the information providing module, wherein the processing status is used for indicates whether the processing is successful; wherein, the data processing module 702, when the processing is successful, stores the second media data on the network side and obtains the link address; the information providing module 702, when the When the data processing module fails to process the first media data uploaded by any client, it further provides the processing status to the service server, so that the service server provides the processing status to the the client.

在一些实例中,所述装置包括多组上传处理模块701和数据处理模块702,其中,每组包括一个上传处理模块701和一个数据处理模块702。In some examples, the device includes multiple groups of upload processing modules 701 and data processing modules 702 , wherein each group includes one upload processing module 701 and one data processing module 702 .

在一些实例中,本申请还提出一种媒体数据处理装置,该装置可应用客户端。如图8所示,该装置800包括:In some examples, the present application also provides a media data processing device, and the device can use a client. As shown in Figure 8, the device 800 includes:

上传模块801,将当前业务产生的第一媒体数据上传至数据处理服务器;其中,针对当前业务的任一客户端上传的所述第一媒体数据,所述数据处理服务器根据预先配置的当前业务对应的媒体数据处理需求对所述第一媒体数据进行处理并得到第二媒体数据,将所述第二媒体数据存储在网络侧并获得所述第二媒体数据的链接地址。Upload module 801, uploading the first media data generated by the current service to the data processing server; wherein, for the first media data uploaded by any client of the current service, the data processing server corresponds to the pre-configured current service According to the media data processing requirement, the first media data is processed to obtain second media data, and the second media data is stored on the network side to obtain a link address of the second media data.

第一发送模块802,向业务服务器发送链接地址获取请求;其中,所述业务服务器响应于所述链接地址获取请求,从所述数据处理服务器获得的当前业务的一个或多个链接地址中确定对于本客户端可用的各所述链接地址。The first sending module 802 sends a link address acquisition request to the service server; wherein, in response to the link address acquisition request, the service server determines from one or more link addresses of the current service obtained by the data processing server for Each of the above link addresses available on this client.

第一接收模块803,从所述业务服务器接收对于本客户端可用的各所述链接地址。The first receiving module 803 is configured to receive each of the link addresses available to the client from the service server.

获取模块804,响应于用户对于接收到的各所述链接地址中任一链接地址的选择操作,根据被选择的所述链接地址从网络侧获取所述第二媒体数据。The acquiring module 804 is configured to acquire the second media data from the network side according to the selected link address in response to the user's selection operation on any one of the received link addresses.

播放模块805,播放所获取的所述第二媒体数据。A playing module 805, playing the acquired second media data.

在一些实例中,该装置进一步包括:第二发送模块806,向所述业务服务器发送上传请求;其中,所述业务服务器响应于所述上传请求从所述数据处理服务器获取验证票据;第二接收模块807,从所述业务服务器接收所述验证票据;所述上传模块将所述验证票据与所述第一媒体数据一起上传至所述数据处理服务器,以使其根据所述验证票据校验所述第一媒体数据是否合法,当校验结果为所述第一媒体数据合法时,执行所述对所述第一媒体数据进行处理并得到第二媒体数据的处理。In some examples, the device further includes: a second sending module 806, which sends an upload request to the business server; wherein, the business server obtains a verification ticket from the data processing server in response to the upload request; the second receiving Module 807, receiving the verification ticket from the service server; the upload module uploads the verification ticket together with the first media data to the data processing server, so that it can verify all Whether the first media data is legal, and when the verification result is that the first media data is legal, execute the process of processing the first media data and obtaining second media data.

在一些实例中,该装置进一步包括:第三接收模块808,从所述业务服务器接收处理状态,其中,所述处理状态用于指示所述数据处理服务器对本客户端上传的所述第一媒体数据进行所述处理是否成功;及展示所述处理状态。In some examples, the device further includes: a third receiving module 808, configured to receive a processing status from the service server, wherein the processing status is used to instruct the data processing server to process the first media data uploaded by the client whether the process is performed successfully; and display the process status.

上述系统中各个实体实现各种功能的具体方法及原理在前文均有描述,这里不再赘述。The specific methods and principles for each entity in the above system to realize various functions have been described above, and will not be repeated here.

另外,在本申请各个实例中的装置及各模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上装置或模块集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the devices and modules in each example of the present application may be integrated into one processing unit, or each module may exist separately physically, or two or more devices or modules may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

在一实施例中,上述媒体数据处理装置可运行在任一用于媒体数据处理的计算设备中,并加载在该计算设备的存储器中。如图9所示,该计算设备包括一个或者多个处理器(CPU)902、通信模块904、存储器906、用户接口910,以及用于互联这些组件的通信总线908。In an embodiment, the above-mentioned media data processing apparatus may run in any computing device for media data processing, and be loaded into the memory of the computing device. As shown in Figure 9, the computing device includes one or more processors (CPUs) 902, a communications module 904, memory 906, a user interface 910, and a communications bus 908 for interconnecting these components.

处理器902可通过通信模块904接收和发送数据以实现网络通信和/或本地通信。The processor 902 can receive and send data through the communication module 904 to realize network communication and/or local communication.

用户接口910包括一个或多个输出设备912,其包括一个或多个扬声器和/或一个或多个可视化显示器。用户接口910也包括一个或多个输入设备914,其包括诸如,键盘,鼠标,声音命令输入单元或扩音器,触屏显示器,触敏输入板,姿势捕获摄像机或其他输入按钮或控件等。User interface 910 includes one or more output devices 912 including one or more speakers and/or one or more visual displays. User interface 910 also includes one or more input devices 914 including, for example, a keyboard, mouse, voice command input unit or speaker, touch screen display, touch sensitive tablet, gesture capture camera or other input buttons or controls, and the like.

存储器906可以是高速随机存取存储器,诸如DRAM、SRAM、DDR RAM、或其他随机存取固态存储设备;或者非易失性存储器,诸如一个或多个磁盘存储设备、光盘存储设备、闪存设备,或其他非易失性固态存储设备。The memory 906 can be a high-speed random access memory, such as DRAM, SRAM, DDR RAM, or other random access solid-state storage devices; or a non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.

存储器906存储处理器902可执行的指令集,包括:The memory 906 stores an instruction set executable by the processor 902, including:

操作系统916,包括用于处理各种基本系统服务和用于执行硬件相关任务的程序;Operating system 916, including programs for processing various basic system services and for performing hardware-related tasks;

应用918,可以包括用于实现媒体数据处理的各种应用程序,这种应用程序能够实现上述各实例中的处理流程,比如可以包括图7所示的装置700和/或图8所示的装置800。The application 918 may include various application programs for implementing media data processing, such application programs can implement the processing flow in the above examples, for example, may include the device 700 shown in FIG. 7 and/or the device shown in FIG. 8 800.

在一些实例中,装置700可包括图7所示的各模块701~704中的至少一个,各模块701~704可以存储有机器可执行指令。处理器902通过执行存储器906中各模块701~704中的机器可执行指令,进而能够实现上述各模块701~704的功能。In some examples, the apparatus 700 may include at least one of the modules 701-704 shown in FIG. 7, and each module 701-704 may store machine-executable instructions. The processor 902 can implement the functions of the above-mentioned modules 701-704 by executing the machine-executable instructions in the modules 701-704 in the memory 906.

在一些实例中,装置800可包括图8所示的各模块801~808中的至少一个,各模块801~808可以存储有机器可执行指令。处理器902通过执行存储器906中各模块801~808中的机器可执行指令,进而能够实现上述各模块801~808的功能。In some examples, the apparatus 800 may include at least one of the modules 801-808 shown in FIG. 8, and each module 801-808 may store machine-executable instructions. The processor 902 can implement the functions of the above-mentioned modules 801-808 by executing the machine-executable instructions in the modules 801-808 in the memory 906.

另外,本申请的每个实例可以通过由数据处理设备如计算机执行的数据处理程序来实现。显然,数据处理程序构成了本发明。此外,通常存储在一个存储介质中的数据处理程序通过直接将程序读取出存储介质或者通过将程序安装或复制到数据处理设备的存储设备(如硬盘和/或内存)中执行。因此,这样的存储介质也构成了本发明。存储介质可以使用任何类型的记录方式,例如纸张存储介质(如纸带等)、磁存储介质(如软盘、硬盘、闪存等)、光存储介质(如CD-ROM等)、磁光存储介质(如MO等)等。In addition, each example of the present application can be realized by a data processing program executed by a data processing device such as a computer. Obviously, the data processing program constitutes the present invention. In addition, usually a data processing program stored in a storage medium is executed by directly reading the program out of the storage medium or by installing or copying the program into a storage device (such as hard disk and/or memory) of the data processing device. Therefore, such a storage medium also constitutes the present invention. The storage medium can use any type of recording method, such as paper storage medium (such as paper tape, etc.), magnetic storage medium (such as floppy disk, hard disk, flash memory, etc.), optical storage medium (such as CD-ROM, etc.), magneto-optical storage medium ( Such as MO, etc.) etc.

因此,本申请还提供了一种非易失性存储介质,其中存储有数据处理程序,该数据处理程序用于执行本申请上述方法的任何一种实例。Therefore, the present application also provides a non-volatile storage medium, in which a data processing program is stored, and the data processing program is used to execute any instance of the above-mentioned method in the present application.

以上所述仅为本申请的较佳实例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above is only a preferred example of the application, and is not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within the range.

Claims (18)

1. A method for media data processing, the method comprising:
for any client of the current service, the following processing is executed:
receiving first media data uploaded by the client;
processing the first media data according to a media data processing requirement corresponding to a preset current service to obtain second media data; and
storing the second media data at a network side and obtaining a link address of the second media data;
and
and responding to a link address acquisition request from a service server, and sending one or more acquired link addresses of the current service to the service server so that the service server provides one or more available link addresses of any client of the current service to the client.
2. The method of claim 1, further comprising:
sending a validation ticket to the service server in response to a request for obtaining a validation ticket from the service server before receiving the first media data;
when the first media data is received, further receiving a verification bill corresponding to the first media data;
verifying whether the first media data is legal or not according to the verification ticket;
and when the verification result shows that the first media data is legal, executing the processing of processing the first media data and obtaining second media data.
3. The method of claim 1, further comprising: the method comprises the steps that media data processing requirements of various services are respectively packaged into a plurality of processing processes in advance, and the plurality of processing processes are respectively associated with service identifications of the various services;
wherein the processing the first media data comprises: and calling the associated processing process according to the service identifier carried by the first media data so as to process the first media data by the processing process.
4. The method of claim 1, further comprising:
after receiving the first media data, sending the identifier of the first media data to the client, so that the client sends the identifier of the first media data to the service server; and
correspondingly storing the obtained link address of the second media data and the identification of the first media data;
wherein the sending the one or more obtained link addresses of the current service to the service server includes:
searching one or more corresponding link addresses according to one or more first media data identifiers carried by the link address acquisition request; and
and sending the one or more searched link addresses to the service server.
5. The method of claim 1, wherein the storing the second media data on the network side and obtaining the link address of the second media data comprises:
uploading the second media data to a storage server, wherein the storage server stores the second media data and generates the link address;
receiving the link address from the storage server.
6. The method of claim 1, further comprising: recording a processing state after processing the first media data and obtaining second media data, wherein the processing state is used for indicating whether the processing is successful or not;
when the processing is successful, storing the second media data on a network side and obtaining the link address;
the method further comprises the following steps:
and when the processing of the first media data uploaded by any client fails, providing the processing state to the service server so that the service server provides the processing state to the client.
7. A media data processing method is applied to a client, and the method comprises the following steps:
uploading first media data generated by the current service to a data processing server; the data processing server processes the first media data according to a pre-configured media data processing requirement corresponding to the current service to obtain second media data, stores the second media data on a network side and obtains a link address of the second media data;
sending a link address acquisition request to a service server; the service server responds to the link address acquisition request, and determines each link address available for the client from one or more link addresses of the current service acquired by the data processing server;
receiving each link address available to the client from the service server;
responding to the selection operation of a user on any link address in the received link addresses, and acquiring the second media data from a network side according to the selected link address; and
and playing the acquired second media data.
8. The method of claim 7, further comprising:
sending an upload request to the service server; wherein the service server obtains a validation ticket from the data processing server in response to the upload request;
receiving the validation ticket from the business server;
and uploading the verification bill and the first media data to the data processing server together, so that the data processing server verifies whether the first media data is legal or not according to the verification bill, and when the verification result is that the first media data is legal, executing the processing of processing the first media data and obtaining second media data.
9. The method of claim 7, further comprising:
receiving a processing state from the service server, wherein the processing state is used for indicating whether the data processing server successfully processes the first media data uploaded by the client; and
and displaying the processing state.
10. A media data processing apparatus, characterized in that the apparatus comprises:
the uploading processing module is used for receiving first media data uploaded by any client of the current service;
the data processing module is used for processing the first media data according to a media data processing requirement corresponding to a preset current service and obtaining second media data; storing the second media data at a network side, obtaining a link address of the second media data, and storing the link address in the information providing module; and
and the information providing module responds to a link address acquisition request from a service server and sends one or more acquired link addresses of the current service to the service server so that the service server provides one or more link addresses to any client of the current service.
11. The apparatus of claim 10, further comprising:
the verification module responds to a request for obtaining a verification bill from the service server and sends the verification bill to the service server;
when the uploading processing module receives the first media data, a verification bill corresponding to the first media data is further received; verifying whether the first media data is legal or not according to the verification ticket;
and when the verification result shows that the first media data is legal, the data processing module executes the processing of processing the first media data and obtaining second media data.
12. The apparatus of claim 10, wherein,
the data processing module is further used for encapsulating media data processing requirements of various services into a plurality of processing processes in advance respectively and associating the plurality of processing processes with the service identifications of the various services respectively;
wherein, the data processing module processes the first media data, including: and calling the associated processing process according to the service identifier carried by the first media data so as to process the first media data by the processing process.
13. The apparatus of claim 10, wherein,
the uploading processing module further sends the identifier of the first media data to the client after receiving the first media data, so that the client sends the identifier of the first media data to the service server;
the information providing module is further used for correspondingly storing the link address of the second media data obtained by the data processing module and the identifier of the first media data;
wherein, the sending, by the information providing module, one or more link addresses of the current service obtained by the data processing module to the service server includes: searching one or more corresponding link addresses according to one or more first media data identifiers carried by the link address acquisition request; and sending the one or more searched link addresses to the service server.
14. The apparatus according to claim 10, wherein the data processing module further records a processing status in the information providing module after processing the first media data and obtaining a second media data, wherein the processing status is used to indicate whether the processing is successful;
when the processing is successful, the data processing module stores the second media data on a network side and obtains the link address; the information providing module is used for further providing the processing state to the service server when the data processing module fails to process the first media data uploaded by any client, so that the service server provides the processing state to the client.
15. The apparatus of claim 10, wherein the apparatus comprises a plurality of sets of upload processing modules and data processing modules, wherein each set comprises one upload processing module and one data processing module.
16. A media data processing system, comprising: the system comprises a business server, an uploading server, a processing server and an information providing server, wherein the information providing server is integrated in the processing server or is independently arranged; wherein,
the uploading server receives first media data uploaded by any client of the current service and provides the first media data to the processing server;
the processing server processes the first media data according to a media data processing requirement corresponding to a preset current service to obtain second media data; storing the second media data on a network side, obtaining a link address of the second media data, and storing the link address in the information providing server;
the service server responds to a request for uploading the first media data from any client of the current service and sends a link address acquisition request to the information providing server;
the information providing server responds to the link address acquisition request from the service server and sends one or more link addresses of the acquired current service to the service server;
and the service server provides one or more link addresses available for any client of the current service to the client.
17. The system of claim 16, further comprising: an authentication server; wherein,
the service server responds to the request for uploading the first media data and further sends a request for acquiring a verification bill to the verification server;
the verification server responds to the request for obtaining the verification bill from the service server and sends the verification bill to the service server;
the business server further sends the verification bill to the client;
when the uploading server receives the first media data, the uploading server further receives a verification bill corresponding to the first media data; verifying whether the first media data is legal or not according to the verification ticket; and when the verification result is that the first media data is legal, providing the first media data to the data processing server.
18. The system according to claim 16, wherein the system includes a plurality of groups of the upload server and the processing server, wherein each group includes one of the upload server and one of the processing servers, the information providing servers being independently provided;
the service server responds to a request for uploading the first media data from any client of the current service, further receives the first media data from the client, selects a group of the uploading server and the processing server for the client, and sends the first media data to the selected uploading server;
and the uploading server provides the first media data to the processing servers of the same group.
CN201710111142.9A 2017-02-28 2017-02-28 Media data processing method, device and system Active CN108512814B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710111142.9A CN108512814B (en) 2017-02-28 2017-02-28 Media data processing method, device and system
PCT/CN2018/076676 WO2018157743A1 (en) 2017-02-28 2018-02-13 Media data processing method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710111142.9A CN108512814B (en) 2017-02-28 2017-02-28 Media data processing method, device and system

Publications (2)

Publication Number Publication Date
CN108512814A true CN108512814A (en) 2018-09-07
CN108512814B CN108512814B (en) 2021-02-05

Family

ID=63370565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710111142.9A Active CN108512814B (en) 2017-02-28 2017-02-28 Media data processing method, device and system

Country Status (2)

Country Link
CN (1) CN108512814B (en)
WO (1) WO2018157743A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830851A (en) * 2019-10-30 2020-02-21 深圳点猫科技有限公司 Method and device for making video file
CN111343149A (en) * 2020-02-05 2020-06-26 北京字节跳动网络技术有限公司 Comment method and device, electronic equipment and computer readable medium
CN112883205A (en) * 2021-02-09 2021-06-01 杭州网易云音乐科技有限公司 Multimedia material warehousing method, medium, device and computing equipment
CN113055443A (en) * 2021-02-20 2021-06-29 北京奇艺世纪科技有限公司 Resource data deployment method, device, equipment and storage medium
CN114466077A (en) * 2022-01-25 2022-05-10 北京三快在线科技有限公司 Multimedia data processing system and multimedia data processing method
CN114548982A (en) * 2020-11-26 2022-05-27 腾讯科技(深圳)有限公司 Service request processing method and device, computer equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489276B (en) * 2019-07-25 2023-08-29 腾讯科技(深圳)有限公司 Disaster recovery method and device for verification service based on business page
CN114125017B (en) * 2020-08-10 2024-04-09 腾讯科技(深圳)有限公司 Media information display method and device, storage medium and electronic equipment
CN114302249B (en) * 2020-09-22 2025-02-18 华为云计算技术有限公司 A method and device for generating transmission chain information

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203206476U (en) * 2013-05-06 2013-09-18 重庆昇通科技有限公司 Data content generating and sharing system based on dual-network
CN103647867A (en) * 2013-12-06 2014-03-19 北京奇虎科技有限公司 Message leaving method and system
CN104202411A (en) * 2014-09-15 2014-12-10 中卓信(北京)科技有限公司 File transfer method and server
CN105306887A (en) * 2015-09-21 2016-02-03 北京奇虎科技有限公司 Method and device for sharing panoramic data
CN105992017A (en) * 2015-02-05 2016-10-05 天脉聚源(北京)科技有限公司 Audio and video file playing method and system
US20160328538A1 (en) * 2006-11-03 2016-11-10 Google Inc. Blocking of unlicensed audio content in video files on a video hosting website
CN106330769A (en) * 2016-11-15 2017-01-11 腾讯科技(深圳)有限公司 Business processing method and server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2266024A4 (en) * 2008-04-14 2011-11-23 Andrew Liebman A novel media file for multi-platform non-linear video editing systems
CN105162893A (en) * 2015-10-16 2015-12-16 珠海格力电器股份有限公司 Uploading method, uploading system, access method and access system of video file
CN106330967A (en) * 2016-10-24 2017-01-11 北京小米移动软件有限公司 Live data processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160328538A1 (en) * 2006-11-03 2016-11-10 Google Inc. Blocking of unlicensed audio content in video files on a video hosting website
CN203206476U (en) * 2013-05-06 2013-09-18 重庆昇通科技有限公司 Data content generating and sharing system based on dual-network
CN103647867A (en) * 2013-12-06 2014-03-19 北京奇虎科技有限公司 Message leaving method and system
CN104202411A (en) * 2014-09-15 2014-12-10 中卓信(北京)科技有限公司 File transfer method and server
CN105992017A (en) * 2015-02-05 2016-10-05 天脉聚源(北京)科技有限公司 Audio and video file playing method and system
CN105306887A (en) * 2015-09-21 2016-02-03 北京奇虎科技有限公司 Method and device for sharing panoramic data
CN106330769A (en) * 2016-11-15 2017-01-11 腾讯科技(深圳)有限公司 Business processing method and server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830851A (en) * 2019-10-30 2020-02-21 深圳点猫科技有限公司 Method and device for making video file
CN111343149A (en) * 2020-02-05 2020-06-26 北京字节跳动网络技术有限公司 Comment method and device, electronic equipment and computer readable medium
CN111343149B (en) * 2020-02-05 2021-05-14 北京字节跳动网络技术有限公司 Comment method and device, electronic equipment and computer readable medium
CN114548982A (en) * 2020-11-26 2022-05-27 腾讯科技(深圳)有限公司 Service request processing method and device, computer equipment and storage medium
CN112883205A (en) * 2021-02-09 2021-06-01 杭州网易云音乐科技有限公司 Multimedia material warehousing method, medium, device and computing equipment
CN113055443A (en) * 2021-02-20 2021-06-29 北京奇艺世纪科技有限公司 Resource data deployment method, device, equipment and storage medium
CN114466077A (en) * 2022-01-25 2022-05-10 北京三快在线科技有限公司 Multimedia data processing system and multimedia data processing method

Also Published As

Publication number Publication date
WO2018157743A1 (en) 2018-09-07
CN108512814B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
US11140106B2 (en) Method, device and storage medium for interactive message in video page
CN108512814A (en) media data processing method, device and system
CN107979632B (en) Processing method, device and system for push information
US10719837B2 (en) Integrated tracking systems, engagement scoring, and third party interfaces for interactive presentations
US8892648B1 (en) Media player social network integration
US9516122B1 (en) Media player social network integration
US20170294212A1 (en) Video creation, editing, and sharing for social media
CN109981711A (en) Document dynamic playback method, device, system and computer-readable storage medium
CN104539977A (en) Live broadcast previewing method and device
TW201414288A (en) Multimedia comment system and multimedia comment method
US20090049122A1 (en) System and method for providing a video media toolbar
EP3387838A1 (en) Video player framework for a media distribution and management platform
US20250227325A1 (en) Server, method and computer program
CN113010799B (en) Method and device for acquiring media information, electronic equipment and storage medium
CN116017005B (en) Video material transmission method and related equipment
US9762703B2 (en) Method and apparatus for assembling data, and resource propagation system
CN112135199A (en) Video playing method based on multiple types of video sources and related equipment
CN103686209A (en) Transcoding and processing method and system with diverse mechanisms
CN111324271B (en) A multimedia information processing method, device, electronic device and storage medium
CN118632085A (en) Comment reminder method, device, storage medium and electronic device
US20190385192A1 (en) Digital media generation
CN104735130B (en) A kind of method and apparatus that multimedia file is downloaded
US10609169B1 (en) Systems and methods for ensuring presentation of in-application messages
CN113727197B (en) Watermark processing method, watermark processing device, terminal equipment and storage medium
CN121217997A (en) Methods, equipment, and computer-readable media for rapid program production and distribution

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant