CN112019935A - Cross-platform video-on-demand file processing method and device and computing equipment - Google Patents

Cross-platform video-on-demand file processing method and device and computing equipment Download PDF

Info

Publication number
CN112019935A
CN112019935A CN201910459155.4A CN201910459155A CN112019935A CN 112019935 A CN112019935 A CN 112019935A CN 201910459155 A CN201910459155 A CN 201910459155A CN 112019935 A CN112019935 A CN 112019935A
Authority
CN
China
Prior art keywords
video
file
cdn
demand
platform
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
CN201910459155.4A
Other languages
Chinese (zh)
Other versions
CN112019935B (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.)
Shenzhen Media Group
Original Assignee
Shenzhen Media Group
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 Shenzhen Media Group filed Critical Shenzhen Media Group
Priority to CN201910459155.4A priority Critical patent/CN112019935B/en
Publication of CN112019935A publication Critical patent/CN112019935A/en
Application granted granted Critical
Publication of CN112019935B publication Critical patent/CN112019935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26613Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing keys in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4627Rights management associated to the content

Abstract

The invention relates to the field of computer networks, and provides a cross-platform video-on-demand file processing method, a cross-platform video-on-demand file processing device and computing equipment, which are used for improving the safety of a video-on-demand file and relieving the access pressure of a background server. The method comprises the following steps: the transcoding server transcodes the source video on demand file into code rates supported by multiple platforms to obtain a cross-platform video file; a source end server packages a cross-platform video file into a static file, and a CDN public key is matched with a private key held by the CDN; the video player encrypts the video address of the source video-on-demand file by adopting a CDN public key contained in the static file according to an encryption rule of the CDN to generate encryption information of the video address, and the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request. The technical scheme provided by the invention effectively prevents the malicious downloading and propagation of the video on demand file, and greatly relieves the pressure of a background server of the video on demand file when the request amount of the video on demand file is large.

Description

Cross-platform video-on-demand file processing method and device and computing equipment
Technical Field
The invention belongs to the field of computer networks, and particularly relates to a cross-platform video-on-demand file processing method and device and computing equipment.
Background
The rapid development of the internet, especially the mobile internet technology, brings unprecedented development opportunities for new media. In order to match the characteristics of wide propagation channel, high information timeliness and the like in the new media era, the traditional broadcasting and television media release a large amount of videos to the internet through different channels.
On one hand, when the video files are published on the Internet, the addresses of the video files are directly exposed to users in the whole network; on the other hand, the mode of each platform for acquiring the video resources on the internet is a background interface mode, namely, the request for the video resources is directly transmitted to a background server.
Therefore, directly exposing the addresses of the video resources to the users in the whole network means that the videos are easily downloaded and spread maliciously, and the video resources are obtained in a background interface mode, so that when the access volume is large, the background server can bear the unsustainable pressure, and the crash of the background server can be caused under extreme conditions.
Disclosure of Invention
The invention provides a processing method and device of a cross-platform video-on-demand file and computing equipment, which are used for improving the safety of the video-on-demand file and reducing the access pressure of a background server.
The first aspect of the present invention provides a method for processing a cross-platform vod file, where the method includes:
the transcoding server transcodes the source video on demand file into code rates supported by multiple platforms to obtain a cross-platform video file;
a source end server packages the cross-platform video file into a static file, wherein the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN;
and the video player encrypts the video address of the source video-on-demand file by adopting a CDN public key contained in the static file according to the encryption rule of the CDN to generate encryption information of the video address, and the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request.
With reference to the first aspect of the present invention, in a first implementation manner of the first aspect, the method further includes:
when the CDN receives an on-demand request sent by the video player, verifying whether the access of the multiple platforms to the source video-on-demand file is legal or not;
and if the access of the multiple platforms to the source video-on-demand file is legal, accelerating the access of the multiple platforms to the source video-on-demand file.
With reference to the first implementation manner of the first aspect of the present invention, in a second implementation manner of the first aspect, the accelerating the access of the multiple platforms to the source vod file includes:
according to a preset load balancing strategy, forwarding the access of the multiple platforms to the source video-on-demand file to an optimal node in the network; and/or
And returning the accurate source video-on-demand file to the multi-platform user according to a preset content distribution strategy.
With reference to the first implementation manner of the first aspect of the present invention, in a third implementation manner of the first aspect, before the accelerating the access of the multi-platform to the source vod file, the method further includes:
according to different file content formats, partially caching the source video-on-demand file; and/or
And compiling a storage index of the source video-on-demand file in a local node and collecting the state information of the source video-on-demand file according to a preset content management strategy.
With reference to the first aspect of the present invention, the first, second, or third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the multiple platforms include a personal computer-based playback platform and a mobile terminal-based playback platform.
A second aspect of the present invention provides a device for processing a cross-platform vod file, the device comprising:
the transcoding module is used for transcoding the source video-on-demand file into a code rate supported by multiple platforms by the transcoding server to obtain a cross-platform video file;
the packaging module is used for packaging the cross-platform video file into a static file by a source end server, wherein the static file comprises a video address of the source video-on-demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN;
and the encrypted information generation module is used for generating encrypted information of the video address after the video address of the source video-on-demand file is encrypted by the video player according to the encryption rule of the CDN by adopting a CDN public key contained in the static file, and the encrypted information is sent to the CDN by the video player when the video player receives the multi-platform on-demand request.
With reference to the second aspect of the present invention, in a first implementation manner of the second aspect, the apparatus further includes:
the verification module is used for verifying whether the access of the multiple platforms to the source video-on-demand file is legal or not when the CDN receives an on-demand request sent by the video player;
and the acceleration module is used for accelerating the access of the multiple platforms to the source video-on-demand file if the access of the multiple platforms to the source video-on-demand file is legal.
A third aspect of the invention provides a computing device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method when executing the computer program:
the transcoding server transcodes the source video on demand file into code rates supported by multiple platforms to obtain a cross-platform video file;
a source end server packages the cross-platform video file into a static file, wherein the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN;
and the video player encrypts the video address of the source video-on-demand file by adopting a CDN public key contained in the static file according to the encryption rule of the CDN to generate encryption information of the video address, and the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request.
With reference to the third aspect of the present invention, in a first implementation manner of the third aspect, the method further includes:
when the CDN receives an on-demand request sent by the video player, verifying whether the access of the multiple platforms to the source video-on-demand file is legal or not;
and if the access of the multiple platforms to the source video-on-demand file is legal, accelerating the access of the multiple platforms to the source video-on-demand file.
With reference to the first implementation manner of the third aspect of the present invention, in a second implementation manner of the third aspect, the accelerating the access of the multiple platforms to the source vod file includes:
according to a preset load balancing strategy, forwarding the access of the multiple platforms to the source video-on-demand file to an optimal node in the network; and/or
And returning the accurate source video-on-demand file to the multi-platform user according to a preset content distribution strategy.
With reference to the first implementation manner of the third aspect of the present invention, in a third implementation manner of the third aspect, before the accelerating the access of the multi-platform to the source vod file, the method further includes:
according to different file content formats, partially caching the source video-on-demand file; and/or
And compiling a storage index of the source video-on-demand file in a local node and collecting the state information of the source video-on-demand file according to a preset content management strategy.
With reference to the third aspect of the present invention and the first, second or third implementation manners of the third aspect, in a fourth implementation manner of the third aspect, the multiple platforms include a personal computer-based playback platform and a mobile terminal-based playback platform.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the method:
the transcoding server transcodes the source video on demand file into code rates supported by multiple platforms to obtain a cross-platform video file;
a source end server packages the cross-platform video file into a static file, wherein the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN;
and the video player encrypts the video address of the source video-on-demand file by adopting a CDN public key contained in the static file according to the encryption rule of the CDN to generate encryption information of the video address, and the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request.
With reference to the fourth aspect of the present invention, in a first embodiment of the fourth aspect, the method further includes:
when the CDN receives an on-demand request sent by the video player, verifying whether the access of the multiple platforms to the source video-on-demand file is legal or not;
and if the access of the multiple platforms to the source video-on-demand file is legal, accelerating the access of the multiple platforms to the source video-on-demand file.
With reference to the first implementation manner of the fourth aspect of the present invention, in a second implementation manner of the fourth aspect, the accelerating the access of the multiple platforms to the source vod file includes:
according to a preset load balancing strategy, forwarding the access of the multiple platforms to the source video-on-demand file to an optimal node in the network; and/or
And returning the accurate source video-on-demand file to the multi-platform user according to a preset content distribution strategy.
With reference to the first implementation manner of the fourth aspect of the present invention, in a third implementation manner of the fourth aspect, before the accelerating the access of the multi-platform to the source vod file, the method further includes:
according to different file content formats, partially caching the source video-on-demand file; and/or
And compiling a storage index of the source video-on-demand file in a local node and collecting the state information of the source video-on-demand file according to a preset content management strategy.
With reference to the fourth aspect of the present invention and the first, second or third implementation manners of the fourth aspect, in a fourth implementation manner of the fourth aspect, the multiple platforms include a personal computer-based playback platform and a mobile terminal-based playback platform.
A fifth aspect of the embodiments of the present invention provides a system for processing a cross-platform video-on-demand file, where the system includes a transcoding server, a source server, a content distribution network, and a player;
the transcoding server is used for transcoding the source video on demand file into a code rate supported by multiple platforms to obtain a cross-platform video file;
the source end server is used for packaging the cross-platform video file into a static file, the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN;
the video player is configured to encrypt a video address of the source video-on-demand file by using a CDN public key included in the static file according to an encryption rule of the CDN, and then generate encryption information of the video address, where the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request;
and the CDN network is used for verifying the legality of the access of the multiple platforms to the source video-on-demand file and accelerating the access of the multiple platforms to the source video-on-demand file when receiving the on-demand requests of the multiple platforms.
According to the technical scheme provided by the invention, on one hand, the video player encrypts the video address of the source video on demand file according to the encryption rule of the CDN, and the encrypted video address is difficult to crack due to the confidentiality outside the encryption rule of the CDN, so that the malicious downloading and transmission of the video on demand file are effectively prevented; on the other hand, the vod file is encapsulated as a static file, which means that the vod file can be accelerated by the CDN, so that when the requested amount of the vod file is large, the pressure of the background server of the vod file is greatly relieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of an implementation of a cross-platform vod file processing method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a cross-platform VOD file processing apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computing device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a schematic flow chart of an implementation process of a cross-platform vod file processing method according to an embodiment of the present invention, which mainly includes the following steps S101 to S103, described in detail below:
s101, the transcoding server transcodes the source video on demand file into code rate supported by multiple platforms to obtain a cross-platform video file.
In the embodiment of the present invention, the multiple platforms include a personal computer-based playing platform and a mobile terminal-based playing platform, that is, the player may be a player at a Personal Computer (PC) end, or may be a player of a mobile terminal based on Android or iOS. The transcoding modes and the transcoding processes of the different platforms are the same, only the formats or sizes of transcoded files are different, and the formats of the format, definition and video required by the PC end and the mobile terminal are different for the same source video-on-demand file, for example, the PC end platform supports mp4, flv and the like, and the mobile terminal platform supports mp4, m3u8 and other video formats; for another example, for high definition 720P, the requirement of the PC platform for video bitrate is different from the requirement of the mobile terminal platform for video bitrate (the video bitrate of the PC platform requires 800Kbps, and the video bitrate of the mobile terminal platform requires high, which is 1000 Kbps).
S102, a source end server packages the cross-platform video file into a static file, wherein the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN.
In the embodiment of the present invention, the source end server is a background server that stores and processes the source video-on-demand file, and after the transcoding server transcodes the source video-on-demand file into the cross-platform video file, the source end server may package the cross-platform video file into a static file, for example, a static file with a format of jsonnp. After the cross-platform video file is packaged into a static file, meaning that when a background server faces a huge and sudden access amount, a Content Delivery Network (CDN) can accelerate access to the cross-platform video file and also reduce the pressure of the background server.
In the embodiment of the present invention, the static file obtained by encapsulation includes, in addition to the video address and the CDN public key of the source vod file, the video name or ID of the source vod file, the frame drawing map, the duration, and the like. It should be noted that the CDN public key of the source vod file is paired with the private key held by the CDN, that is, the CDN public key of the source vod file is used to encrypt the video address, and the private key held by the CDN and corresponding to the CDN public key decrypts the encrypted video address.
S103, the video player encrypts the video address of the source video-on-demand file by adopting a CDN public key contained in the static file according to the encryption rule of the CDN to generate encryption information of the video address, wherein the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request.
In the embodiment of the present invention, although the CDN public key of the source vod file is deliverable to the network and is visible to any user on the network, the encryption rules of the CDN, which are deliverable to the video player by the CDN, are not visible to the outside. And the video player encrypts the video address of the source video-on-demand file by adopting the CDN public key of the source video-on-demand file according to the encryption rule of the CDN to generate the encryption information of the video address. The encrypted information is sent to the CDN by the video player when the video player receives a multi-platform on-demand request, and the CDN decrypts the encrypted information by adopting a private key which is held by the CDN and is matched with a CDN public key of the source video-on-demand file. If the decryption is successful, the access to the source video-on-demand file is legal, otherwise, the access is illegal, and therefore the security of the source video-on-demand file is ensured.
As described above, if a video file is obtained by an interface-walking manner, the background server usually bears a large pressure when facing the heaven-volume access, and the user has a high-efficiency requirement for obtaining and playing the video file. Accordingly, the method illustrated in fig. 1 may further include S104 and S105:
s104, when the CDN receives the on-demand request sent by the video player, the CDN verifies whether the access of the multiple platforms to the source video-on-demand file is legal or not.
As described above, the on-demand request received by the CDN includes the encryption information of the video address generated by the video player after encrypting the video address of the source video-on-demand file with the CDN public key of the source video-on-demand file, and therefore, the CDN may use the private key held by the CDN to encrypt the encryption information, so as to verify the validity of access to the source video-on-demand file by the multiple platforms.
And S105, if the access of the multiple platforms to the source video-on-demand file is legal, accelerating the access of the multiple platforms to the source video-on-demand file.
If the CDN can successfully decrypt the encrypted information of the video address by adopting the private key held by the CDN, the multi-platform access to the source video-on-demand file is legal. Under the condition that the multi-platform access to the source video-on-demand file is legal, the CDN can accelerate the multi-platform access to the source video-on-demand file. As an embodiment of the present invention, the CDN accelerating the access of multiple platforms to the source vod file may be: according to a preset load balancing strategy, forwarding the access of the multiple platforms to the source video-on-demand file to an optimal node in the network; and/or returning the accurate source video-on-demand file to the multi-platform user according to a preset content distribution strategy. The selection of the optimal node in the CDN may be according to a variety of policies, such as closest distance, lightest node load, and the like, generally, the load balancing may be divided into two levels, that is, global load balancing and local load balancing, where the global load balancing mainly aims to direct a user's request to a closest node (or area) in the entire network range, and therefore, the proximity judgment is a main function of the global load balancing, and the local load balancing is generally limited to a certain area range, and aims to find a most suitable node in a specific area range to provide services, and therefore, the operating states of the health, load conditions, supported media formats, and the like of the CDN nodes are main bases for making decisions of the local load balancing. Load balancing may be achieved in a number of ways, the main of which include DNS, application layer redirection, transport layer redirection, etc. According to a preset content distribution strategy, returning an accurate source video-on-demand file to a multi-platform user specifically comprises an active distribution technology and a passive distribution technology, wherein the active distribution technology is used for distributing content from a source or a central media asset library to Cache (Cache) nodes at each edge of the CDN. The distributed protocol may employ HTTP/FTP or the like. The content distributed by the active distribution technology is generally hot content, and the content can be provided by aiming the content through pre-distribution (pre-load) to the edge Cache. The distribution strategy mainly determines the content distribution process according to the statistical information accessed by the user and the predefined content distribution rule. The passive delivery technology is usually driven by a user request, and when the content requested by the user does not exist (miss) on the local edge Cache, the Cache starts a passive delivery method to obtain the content from a content source or other CDN nodes in real time. In PULL mode, the distribution of content is on-demand. Whether the technology of active distribution or the technology of passive distribution, the aim is to return an accurate source video-on-demand file to a user of a multi-platform.
As another embodiment of the present invention, the CDN accelerating the access of multiple platforms to the source vod file may be: according to different file content formats, partially caching a source video-on-demand file; and/or compiling a storage index of the source video-on-demand file in the local node and collecting the state information of the source video-on-demand file according to a preset content management strategy. For a CDN, two aspects of content storage issues need to be considered. One is the storage of the content source, and the other is the storage of the content in the Cache node. For the storage of content sources, the size of the content is relatively large, and the throughput of the content is relatively large, so a mass storage architecture is generally adopted. Such as NAS and SON. The storage in the Cache node is a key problem of the Cache design. Factors to be considered include both functional and performance aspects: the method comprises the following steps of supporting various content formats, supporting partial cache, and supporting capacity, multi-file throughput rate, reliability and stability in performance. The support of multiple content formats requires that the storage system be optimized according to the reading and writing characteristics of different file formats, so as to improve the efficiency of reading and writing the file contents, especially the reading and writing of streaming media files. Partial caching capability means that streaming media content can be stored and read in an incomplete manner. The requirement for partial caching comes from the randomness of user access behavior because many users do not view the entire streaming media program completely, and in fact, many users access a single streaming media program for no more than 10 minutes. Therefore, the utilization rate of the storage space can be greatly improved by partial caching capacity, and the response time of the user request can be effectively prolonged. The content management policy mainly includes the following three aspects: first, local content indexing, content management depends on knowing local content (i.e., content after entering Cache nodes), including the name, URL, update time, content information, etc. of the content on each Cache node. Local content indexing is key to enabling content-aware based scheduling; second, local content copy, generally, in order to improve storage efficiency, only one copy of the same content is stored in one CDN node, that is, only one copy is stored in a certain Cache node; and thirdly, collecting local content access state information, collecting statistical information of each content access on each Cache node, and providing capacity and content change conditions for available services of the Cache nodes. It can be seen that, through the content management strategy, the management of the content can be improved from the original one level of the Cache node to the one level of the CDN node, thereby greatly increasing the expandability and the comprehensive capability of the CDN.
As can be seen from the processing method of the cross-platform video-on-demand file illustrated in fig. 1, on one hand, the video player encrypts the video address of the source video-on-demand file according to the encryption rule of the CDN, and because of the confidentiality outside the encryption rule of the CDN, the encrypted video address is difficult to crack, thereby effectively preventing malicious downloading and propagation of the video-on-demand file; on the other hand, the vod file is encapsulated as a static file, which means that the vod file can be accelerated by the CDN, so that when the requested amount of the vod file is large, the pressure of the background server of the vod file is greatly relieved.
Fig. 2 is a schematic diagram of a processing apparatus for cross-platform vod files according to an embodiment of the present invention. For convenience of description, only the portions related to the present invention are shown. The processing apparatus for cross-platform vod file illustrated in fig. 2 mainly includes a transcoding module 201, an encapsulating module 202, and an encryption information generating module 203, which are described in detail as follows:
the transcoding module 201 is used for transcoding the source video-on-demand file into a code rate supported by multiple platforms by the transcoding server to obtain a cross-platform video file;
the packaging module 202 is configured to package the cross-platform video file into a static file by the source end server, where the static file includes a video address of the source video-on-demand file and a Content Distribution Network (CDN) public key, and the CDN public key is paired with a private key held by the CDN;
the encrypted information generating module 203 is configured to encrypt the video address of the source video-on-demand file by using a CDN public key included in the static file according to an encryption rule of the CDN, and then generate encrypted information of the video address, where the encrypted information is sent to the CDN by the video player when receiving a multi-platform on-demand request.
It should be noted that, because the processing apparatus for cross-platform vod file according to the embodiment of the present invention is based on the same concept as the method according to the embodiment of the present invention, the technical effect thereof is the same as the method according to the embodiment of the present invention, and specific contents thereof can be referred to the description in the method embodiment of the present invention, and are not described herein again.
Optionally, the apparatus illustrated in fig. 2 may further include a verification module and an acceleration module, wherein:
the verification module is used for verifying whether the access of the multiple platforms to the source video-on-demand file is legal or not when the CDN receives the on-demand request sent by the video player;
and the acceleration module is used for accelerating the access of the multiple platforms to the source video-on-demand file if the access of the multiple platforms to the source video-on-demand file is legal.
Optionally, the acceleration module may comprise a load balancing unit and/or a content distribution unit, wherein:
the load balancing unit is used for forwarding the access of the multiple platforms to the source video-on-demand file to an optimal node in the network according to a preset load balancing strategy;
and the content distribution unit is used for returning the accurate source video-on-demand file to the multi-platform user according to a preset content distribution strategy.
Optionally, the acceleration module may comprise a caching unit and/or a content management unit, wherein:
the cache unit is used for partially caching the source video-on-demand file according to different file content formats;
and the content management unit is used for compiling the storage index of the source video-on-demand file in the local node and collecting the state information of the source video-on-demand file according to a preset content management strategy.
The embodiment of the invention also provides a system for processing the cross-platform video-on-demand file, which comprises a transcoding server, a source server, a content distribution network and a player, wherein:
the transcoding server is used for transcoding the source video on demand file into code rates supported by multiple platforms to obtain a cross-platform video file;
the source end server is used for packaging the cross-platform video file into a static file, the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN;
the video player is used for encrypting the video address of the source video on demand file by adopting a CDN public key contained in the static file according to the encryption rule of the CDN to generate encryption information of the video address, and the encryption information is sent to the CDN by the video player when receiving the multi-platform on demand request;
the CDN network is configured to check validity of access to the source video-on-demand file by the multiple platforms and accelerate access to the source video-on-demand file by the multiple platforms when receiving an on-demand request from the multiple platforms, where a specific manner and method of checking and accelerating may refer to the description in the foregoing embodiment, and details are not described here.
Fig. 3 is a schematic structural diagram of a computing device according to an embodiment of the present invention. As shown in fig. 3, the computing device 3 of this embodiment mainly includes: a processor 30, a memory 31 and a computer program 32, such as a program of a method of processing a cross-platform video-on-demand file, stored in the memory 31 and executable on the processor 30. The processor 30, when executing the computer program 32, implements the steps in the above-described cross-platform vod file processing method embodiment, such as the steps S101 to S103 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the transcoding module 201, the packaging module 202, and the encrypted information generating module 203 shown in fig. 2.
Illustratively, the computer program 32 of the cross-platform vod file processing method mainly includes: the transcoding server transcodes the source video on demand file into code rates supported by multiple platforms to obtain a cross-platform video file; the source end server packages the cross-platform video file into a static file, wherein the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is paired with a private key held by the CDN; and the video player encrypts the video address of the source video-on-demand file by adopting a CDN public key contained in the static file according to the encryption rule of the CDN to generate encryption information of the video address, and the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request. The computer program 32 may be divided into one or more modules/units, which are stored in the memory 31 and executed by the processor 30 to accomplish the present invention. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions that describe the execution of computer program 32 in computing device 3. For example, the computer program 32 may be divided into functions of the transcoding module 201, the packaging module 202, and the encryption information generating module 203 (modules in the virtual device), and the specific functions of each module are as follows: the transcoding module 201 is used for transcoding the source video-on-demand file into a code rate supported by multiple platforms by the transcoding server to obtain a cross-platform video file; the packaging module 202 is configured to package the cross-platform video file into a static file by the source end server, where the static file includes a video address of the source video-on-demand file and a Content Distribution Network (CDN) public key, and the CDN public key is paired with a private key held by the CDN; the encrypted information generating module 203 is configured to encrypt the video address of the source video-on-demand file by using a CDN public key included in the static file according to an encryption rule of the CDN, and then generate encrypted information of the video address, where the encrypted information is sent to the CDN by the video player when receiving a multi-platform on-demand request.
Computing device 3 may include, but is not limited to, a processor 30, a memory 31. Those skilled in the art will appreciate that fig. 3 is merely an example of computing device 3 and is not intended to be limiting of computing device 3 and may include more or fewer components than those shown, or some of the components may be combined, or different components, e.g., the computing device may also include input-output devices, network access devices, buses, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Memory 31 may be an internal storage unit of computing device 3, such as a hard disk or memory of computing device 3. The memory 31 may also be an external storage device of the computing device 3, such as a plug-in hard disk provided on the computing device 3, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, memory 31 may also include both internal storage units of computing device 3 and external storage devices. The memory 31 is used to store computer programs and other programs and data required by the computing device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus/computing device and method may be implemented in other ways. For example, the above-described apparatus/computing device embodiments are merely illustrative, and for example, a division of modules or units is merely a logical division, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the method of the embodiments of the present invention may also be implemented by instructing related hardware through a computer program, where the computer program of the method for processing a cross-platform video-on-demand file may be stored in a computer-readable storage medium, and when being executed by a processor, the computer program may implement the steps of the embodiments of the method, that is, the transcoding server transcodes the source video-on-demand file into a bitrate supported by multiple platforms, so as to obtain the cross-platform video file; the source end server packages the cross-platform video file into a static file, wherein the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is paired with a private key held by the CDN; and the video player encrypts the video address of the source video-on-demand file by adopting a CDN public key contained in the static file according to the encryption rule of the CDN to generate encryption information of the video address, and the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals. The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for processing a cross-platform video-on-demand file, the method comprising:
the transcoding server transcodes the source video on demand file into code rates supported by multiple platforms to obtain a cross-platform video file;
a source end server packages the cross-platform video file into a static file, wherein the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN;
and the video player encrypts the video address of the source video-on-demand file by adopting a CDN public key contained in the static file according to the encryption rule of the CDN to generate encryption information of the video address, and the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request.
2. The method for processing a cross-platform vod file as recited in claim 1, further comprising:
when the CDN receives an on-demand request sent by the video player, verifying whether the access of the multiple platforms to the source video-on-demand file is legal or not;
and if the access of the multiple platforms to the source video-on-demand file is legal, accelerating the access of the multiple platforms to the source video-on-demand file.
3. The method for processing a cross-platform vod file according to claim 2, wherein the accelerating the access of the multi-platform to the source vod file comprises:
according to a preset load balancing strategy, forwarding the access of the multiple platforms to the source video-on-demand file to an optimal node in the network; and/or
And returning the accurate source video-on-demand file to the multi-platform user according to a preset content distribution strategy.
4. The method for processing a cross-platform vod file according to claim 2, wherein prior to the accelerating the access of the multi-platform vod file to the source vod file, the method further comprises:
according to different file content formats, partially caching the source video-on-demand file; and/or
And compiling a storage index of the source video-on-demand file in a local node and collecting the state information of the source video-on-demand file according to a preset content management strategy.
5. The method for processing cross-platform VOD file according to any of claims 1 to 4, wherein the multiple platforms include PC-based playing platform and mobile terminal-based playing platform.
6. A device for processing a cross-platform vod file, the device comprising:
the transcoding module is used for transcoding the source video-on-demand file into a code rate supported by multiple platforms by the transcoding server to obtain a cross-platform video file;
the packaging module is used for packaging the cross-platform video file into a static file by a source end server, wherein the static file comprises a video address of the source video-on-demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN;
and the encrypted information generation module is used for generating encrypted information of the video address after the video address of the source video-on-demand file is encrypted by the video player according to the encryption rule of the CDN by adopting a CDN public key contained in the static file, and the encrypted information is sent to the CDN by the video player when the video player receives the multi-platform on-demand request.
7. The apparatus for processing a cross-platform vod file according to claim 6, further comprising:
the verification module is used for verifying whether the access of the multiple platforms to the source video-on-demand file is legal or not when the CDN receives an on-demand request sent by the video player;
and the acceleration module is used for accelerating the access of the multiple platforms to the source video-on-demand file if the access of the multiple platforms to the source video-on-demand file is legal.
8. A processing system of cross-platform video-on-demand files is characterized by comprising a transcoding server, a source server, a content distribution network and a player;
the transcoding server is used for transcoding the source video on demand file into a code rate supported by multiple platforms to obtain a cross-platform video file;
the source end server is used for packaging the cross-platform video file into a static file, the static file comprises a video address of the source video on demand file and a Content Distribution Network (CDN) public key, and the CDN public key is matched with a private key held by the CDN;
the video player is configured to encrypt a video address of the source video-on-demand file by using a CDN public key included in the static file according to an encryption rule of the CDN, and then generate encryption information of the video address, where the encryption information is sent to the CDN by the video player when receiving the multi-platform on-demand request;
and the CDN network is used for verifying the legality of the access of the multiple platforms to the source video-on-demand file and accelerating the access of the multiple platforms to the source video-on-demand file when receiving the on-demand requests of the multiple platforms.
9. A computing device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910459155.4A 2019-05-29 2019-05-29 Cross-platform video-on-demand file processing method and device and computing equipment Active CN112019935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910459155.4A CN112019935B (en) 2019-05-29 2019-05-29 Cross-platform video-on-demand file processing method and device and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910459155.4A CN112019935B (en) 2019-05-29 2019-05-29 Cross-platform video-on-demand file processing method and device and computing equipment

Publications (2)

Publication Number Publication Date
CN112019935A true CN112019935A (en) 2020-12-01
CN112019935B CN112019935B (en) 2022-06-10

Family

ID=73501712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910459155.4A Active CN112019935B (en) 2019-05-29 2019-05-29 Cross-platform video-on-demand file processing method and device and computing equipment

Country Status (1)

Country Link
CN (1) CN112019935B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689171A (en) * 2020-12-16 2021-04-20 创盛视联数码科技(北京)有限公司 Video playing system
CN113965775A (en) * 2021-10-22 2022-01-21 武汉博晟安全技术股份有限公司 Multimedia video safe playing method based on slice and intelligent CDN acceleration

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801810A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Method for hiding URL (Uniform Resource Locator) in content delivery network
US20130007108A1 (en) * 2011-06-30 2013-01-03 Giles Goodwin Live Updates of Embeddable Units
CN106936770A (en) * 2015-12-30 2017-07-07 玲珑视界科技(北京)有限公司 A kind of HLS index lists encrypted antitheft catenary system and method
CN109167790A (en) * 2018-09-14 2019-01-08 广西犇云科技有限公司 A kind of cross-platform video on-demand system based on hadoop
CN109599132A (en) * 2018-11-30 2019-04-09 成都华栖云科技有限公司 A kind of cross-platform multiple terminals static player being adapted to media industry
CN109711117A (en) * 2017-10-26 2019-05-03 美国科视数字系统有限公司 For distributing the equipment, system and method for digital content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130007108A1 (en) * 2011-06-30 2013-01-03 Giles Goodwin Live Updates of Embeddable Units
CN102801810A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Method for hiding URL (Uniform Resource Locator) in content delivery network
CN106936770A (en) * 2015-12-30 2017-07-07 玲珑视界科技(北京)有限公司 A kind of HLS index lists encrypted antitheft catenary system and method
CN109711117A (en) * 2017-10-26 2019-05-03 美国科视数字系统有限公司 For distributing the equipment, system and method for digital content
CN109167790A (en) * 2018-09-14 2019-01-08 广西犇云科技有限公司 A kind of cross-platform video on-demand system based on hadoop
CN109599132A (en) * 2018-11-30 2019-04-09 成都华栖云科技有限公司 A kind of cross-platform multiple terminals static player being adapted to media industry

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112689171A (en) * 2020-12-16 2021-04-20 创盛视联数码科技(北京)有限公司 Video playing system
CN112689171B (en) * 2020-12-16 2023-06-13 创盛视联数码科技(北京)有限公司 Video playing system
CN113965775A (en) * 2021-10-22 2022-01-21 武汉博晟安全技术股份有限公司 Multimedia video safe playing method based on slice and intelligent CDN acceleration

Also Published As

Publication number Publication date
CN112019935B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US9648027B2 (en) Segment authentication for dynamic adaptive streaming
EP3055805B1 (en) System and method for signaling and verifying url signatures for both url authentication and url-based content access authorization in adaptive streaming
US10754930B2 (en) Remotely managed trusted execution environment for digital rights management in a distributed network with thin clients
US9900306B2 (en) Device authentication for secure key retrieval for streaming media players
US10999631B2 (en) Managed content distribution systems and methods
US11847190B2 (en) Digital rights management for HTTP-based media streaming
KR101248790B1 (en) Method of providing access to encrypted content to one of a plurality of consumer systems, device for providing access to encrypted content and method of generating a secure content package
JP4980592B2 (en) How to provide a rights data object
US10742720B2 (en) Cloud storage accelerator
US8788849B2 (en) Method and apparatus for protecting cached streams
CN109151507B (en) Video playing system and method
US20210119792A1 (en) Content recognition systems and methods for encrypted data structures
US20170171166A1 (en) Anti-hotlinking method and electronic device
US20120324090A1 (en) Resource control method, apparatus, and system in peer-to-peer network
CN110798714B (en) HLS-based local video playing system and playing method
CN112019935B (en) Cross-platform video-on-demand file processing method and device and computing equipment
WO2022068362A1 (en) Block chain-based information processing method and apparatus, device, and medium
CN107613317A (en) A kind of method, storage medium and intelligent television for playing local cipher media
CN115225934B (en) Video playing method, system, electronic device and storage medium
KR100773031B1 (en) Copyright limttation apparatus for multimedia transmission system
CN114189706A (en) Media playing method, system, device and computer equipment
KR20060099134A (en) Mobile communication terminal enable to play content in short time and its operating method
JP2003167846A (en) Service providing device and method, computer-readable storage medium, and computer program
KR20110059474A (en) Method, system and computer-readable recording medium for providing personal video recording service based on network

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