[go: up one dir, main page]

CN112929756B - Video-on-demand method, P2P node and computer-readable storage medium - Google Patents

Video-on-demand method, P2P node and computer-readable storage medium Download PDF

Info

Publication number
CN112929756B
CN112929756B CN202110247143.2A CN202110247143A CN112929756B CN 112929756 B CN112929756 B CN 112929756B CN 202110247143 A CN202110247143 A CN 202110247143A CN 112929756 B CN112929756 B CN 112929756B
Authority
CN
China
Prior art keywords
video
node
demand
target
transcoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110247143.2A
Other languages
Chinese (zh)
Other versions
CN112929756A (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 Xunlei Networking Technologies Co Ltd
Original Assignee
Shenzhen Xunlei Networking Technologies 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 Shenzhen Xunlei Networking Technologies Co Ltd filed Critical Shenzhen Xunlei Networking Technologies Co Ltd
Priority to CN202110247143.2A priority Critical patent/CN112929756B/en
Publication of CN112929756A publication Critical patent/CN112929756A/en
Application granted granted Critical
Publication of CN112929756B publication Critical patent/CN112929756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本申请公开了一种视频点播方法、P2P节点及计算机可读存储介质,包括:第一P2P节点响应于连接请求,建立与第二P2P节点的连接;所述第一P2P节点响应于来自于所述第二P2P节点的视频点播转码参数,而将所述视频点播转码参数指向的原视频进行分布式转换处理,得到所述视频点播转码参数对应的目标视频;所述第一P2P节点向所述第二P2P节点发送所述目标视频。通过上述方法,本申请能够实时的进行转码,保证点播的命中率。

The present application discloses a video-on-demand method, a P2P node, and a computer-readable storage medium, including: a first P2P node establishes a connection with a second P2P node in response to a connection request; the first P2P node responds to a video-on-demand transcoding parameter from the second P2P node, and performs distributed conversion processing on the original video pointed to by the video-on-demand transcoding parameter to obtain a target video corresponding to the video-on-demand transcoding parameter; the first P2P node sends the target video to the second P2P node. Through the above method, the present application can perform transcoding in real time to ensure the hit rate of video-on-demand.

Description

视频点播方法、P2P节点及计算机可读存储介质Video-on-demand method, P2P node and computer-readable storage medium

技术领域technical field

本发明涉及点播技术领域,特别是涉及视频点播方法、P2P节点及计算机可读存储介质。The invention relates to the technical field of on-demand broadcasting, in particular to a video-on-demand broadcasting method, a P2P node and a computer-readable storage medium.

背景技术Background technique

随着互联网的普及和信息化时代的广泛信息来源,越来越多的人们会通过网络选取自己感兴趣的信息进行观看,最为普遍的就是各类视频资源,区别于受电视台控制播放的电视节目,网络上的视频资源不仅整合度更高,且可根据用户意愿随意挑选,随意点播,用户体验更佳。With the popularization of the Internet and the wide range of information sources in the information age, more and more people will choose the information they are interested in to watch through the Internet. The most common is all kinds of video resources. Different from TV programs controlled by TV stations, the video resources on the Internet are not only more integrated, but also can be selected at will according to the user's wishes, and the user experience is better.

相关技术中,视频源端必须先对视频进行转码,产生出不同分辨率的视频文件,并且单独存储,当有点播端来进行点播请求时,再根据携带的分辨率类型选择相应的分辨率版本的视频数据。如果视频源端还未完成某分辨率的转码或未存储某分辨率的视频文件,这时点播端又需要该分辨率的视频时,视频源端则无法返回相应分辨率的数据,导致无法播放,影响用户体验。In related technologies, the video source must first transcode the video to generate video files with different resolutions, and store them separately. When the on-demand end makes an on-demand request, it selects the corresponding resolution version of the video data according to the resolution type carried. If the video source has not completed the transcoding of a certain resolution or has not stored the video file of a certain resolution, and the on-demand side needs the video of this resolution, the video source cannot return the data of the corresponding resolution, resulting in the inability to play and affecting the user experience.

发明内容Contents of the invention

本申请提供一种视频点播方法,可以在P2P节点上实时的进行转码,保证点播的命中率。The present application provides a video-on-demand method, which can perform real-time transcoding on a P2P node to ensure the hit rate of the video-on-demand.

为解决上述技术问题,本申请提供一种视频点播方法,包括:第一P2P节点响应于连接请求,建立与第二P2P节点的连接,其中,第一P2P节点的数量为多个;所述第一P2P节点响应于来自于所述第二P2P节点的视频点播转码参数,而将所述视频点播转码参数指向的原视频进行分布式转换处理,得到所述视频点播转码参数对应的目标视频;所述第一P2P节点向所述第二P2P节点发送所述目标视频。In order to solve the above technical problems, the present application provides a video on demand method, comprising: a first P2P node establishes a connection with a second P2P node in response to a connection request, wherein the number of the first P2P nodes is multiple; the first P2P node responds to the video on demand transcoding parameters from the second P2P node, and performs distributed conversion processing on the original video pointed to by the video on demand transcoding parameters to obtain the target video corresponding to the video on demand transcoding parameters; the first P2P node sends the target video to the second P2P node .

为实现上述目的,本申请还提供了一种视频点播方法,包括:第二P2P节点向第一P2P节点发起连接请求,建立与所述第一P2P节点的连接,其中,所述第一P2P节点的数量为多个;所述第二P2P节点向所述第一P2P节点发送视频点播转码参数;所述第二P2P节点接收来自所述第一P2P节点的与所述视频点播转码参数对应的目标视频,所述目标视频是所述第一P2P节点根据所述视频点播转码参数将原视频进行分布式转换处理得到的。To achieve the above object, the present application also provides a video-on-demand method, including: a second P2P node initiates a connection request to a first P2P node, and establishes a connection with the first P2P node, wherein the number of the first P2P nodes is multiple; the second P2P node sends video-on-demand transcoding parameters to the first P2P node; Transcoding parameters are obtained by performing distributed conversion processing on the original video.

为实现上述目的,本申请还提供了一种P2P节点,包括:通信电路,用于与另一个P2P节点连接;存储器,用于存储计算机程序;处理器,耦接所述存储器和通信电路,用于执行所述计算机程序时实现上述的视频点播方法。In order to achieve the above object, the present application also provides a P2P node, including: a communication circuit for connecting with another P2P node; a memory for storing a computer program; a processor coupled to the memory and the communication circuit for implementing the above-mentioned video-on-demand method when executing the computer program.

为实现上述目的,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序所述程序被处理器执行时实现上述的视频点播方法。To achieve the above purpose, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the above video-on-demand method is realized.

本申请通过第一P2P节点响应第二P2P节点的视频点播转码参数并进行分布式转换处理,得到视频点播转码参数对应的目标视频,发送至第二P2P节点,能够准确命中视频点播转码参数对应的目标视频。并且,基于P2P节点实时转码的视频点播方法,能够充分利用P2P节点的计算资源,无需存储预转码文件,降低大量的存储成本。In this application, the first P2P node responds to the video-on-demand transcoding parameters of the second P2P node and performs distributed conversion processing to obtain the target video corresponding to the video-on-demand transcoding parameters, and sends it to the second P2P node, which can accurately hit the target video corresponding to the video-on-demand transcoding parameters. Moreover, the video-on-demand method based on real-time transcoding of P2P nodes can make full use of computing resources of P2P nodes, without storing pre-transcoded files, and reducing a large amount of storage costs.

附图说明Description of drawings

图1是本申请提供的视频点播系统一实施例的结构示意图;Fig. 1 is a schematic structural diagram of an embodiment of a video-on-demand system provided by the application;

图2是本申请提供的视频点播方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the video-on-demand method provided by the present application;

图3是本申请提供的视频点播方法第二实施例的流程示意图;FIG. 3 is a schematic flow chart of a second embodiment of the video-on-demand method provided by the present application;

图4是本申请提供的视频点播方法第三实施例的流程示意图;FIG. 4 is a schematic flow chart of a third embodiment of the video-on-demand method provided by the present application;

图5是本申请提供的视频点播方法第四实施例的流程示意图;FIG. 5 is a schematic flow diagram of a fourth embodiment of the video-on-demand method provided by the present application;

图6是本申请公开的一种P2P节点的结构图;FIG. 6 is a structural diagram of a P2P node disclosed in the present application;

图7是本申请公开的一种计算机可读存储介质的结构图。Fig. 7 is a structural diagram of a computer-readable storage medium disclosed in the present application.

具体实施方式Detailed ways

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

请参阅图1,图1本申请提供的视频点播系统一实施例的结构示意图。Please refer to FIG. 1 , which is a schematic structural diagram of an embodiment of a video-on-demand system provided by this application.

本实施例中,视频点播系统10包括第一P2P节点11和第二P2P节点12。In this embodiment, the VOD system 10 includes a first P2P node 11 and a second P2P node 12 .

在P2P(peer-to-peer,对等式网络)中,每一节点即可作为资源提供端为其他节点服务,也可以为其他节点得到上述服务。本实施例中,第一P2P节点11作为资源端为第二P2P节点12提供服务。第二P2P节点12为点播端。In P2P (peer-to-peer, peer-to-peer network), each node can serve as a resource provider for other nodes, and can also obtain the above-mentioned services for other nodes. In this embodiment, the first P2P node 11 serves as a resource end to provide services for the second P2P node 12 . The second P2P node 12 is an on-demand end.

第一P2P节点11的数量为多个。第一P2P节点11可以是电脑、路由器或智能手机等能够提供带宽、存储空间和计算能力的设备。第二P2P节点12可以是电脑、手机或智能电视等设备。There are multiple first P2P nodes 11 . The first P2P node 11 may be a computer, a router, or a smart phone, which can provide bandwidth, storage space, and computing power. The second P2P node 12 may be a computer, a mobile phone, or a smart TV.

第二P2P节点12接收用户的点播指令,点播指令中包括视频点播转码参数。第二P2P节点12响应点播指令,获取存储有视频点播转码参数指向的原视频的第一P2P节点11的地址。基于第一P2P节点11的地址向第一P2P节点11发起连接请求。The second P2P node 12 receives the user's video-on-demand instruction, and the video-on-demand instruction includes video-on-demand transcoding parameters. The second P2P node 12 responds to the video-on-demand instruction, and obtains the address of the first P2P node 11 storing the original video pointed to by the video-on-demand transcoding parameter. A connection request is initiated to the first P2P node 11 based on the address of the first P2P node 11 .

第一P2P节点11对连接请求进行握手校验,校验通过后建立与第二P2P节点12的连接。The first P2P node 11 performs a handshake check on the connection request, and establishes a connection with the second P2P node 12 after the check is passed.

第一P2P节点11与第二P2P节点12建立连接后,第二P2P节点12向第一P2P节点11发送视频点播转码参数。After the first P2P node 11 establishes a connection with the second P2P node 12, the second P2P node 12 sends the VOD transcoding parameter to the first P2P node 11.

多个第一P2P节点11根据视频点播转码参数将原视频进行分布式转换处理,得到视频点播转码参数对应的目标视频,并将目标视频发送至第二P2P节点12。根据第二P2P节点12的点播需求进行视频转码,得到目标视频,能够保证命中点播,并且,第一P2P节点11无需预转码和保存多种转码参数对应的视频,能够降低数据的存储成本。Multiple first P2P nodes 11 perform distributed conversion processing on the original video according to the video-on-demand transcoding parameters to obtain a target video corresponding to the video-on-demand transcoding parameters, and send the target video to the second P2P node 12 . Video transcoding is performed according to the on-demand requirements of the second P2P node 12 to obtain the target video, which can ensure hit on-demand, and the first P2P node 11 does not need to pre-transcode and save videos corresponding to various transcoding parameters, which can reduce data storage costs.

第二P2P节点12接收并播放第一P2P节点11返回的目标视频。The second P2P node 12 receives and plays the target video returned by the first P2P node 11 .

基于上述的视频点播系统10,本申请提供以下实施例:Based on the above-mentioned video-on-demand system 10, the application provides the following embodiments:

请参阅图2,图2本申请提供的视频点播方法第一实施例的流程示意图。本实施例的执行主体为第一P2P节点,本实施例可以包括如下步骤:Please refer to FIG. 2 , which is a schematic flowchart of the first embodiment of the video-on-demand method provided by this application. The execution subject of this embodiment is the first P2P node, and this embodiment may include the following steps:

步骤S11:第一P2P节点响应于连接请求,建立与第二P2P节点的连接。Step S11: the first P2P node establishes a connection with the second P2P node in response to the connection request.

具体地,第二P2P节点向P2P网络中的索引服务器发送查询请求,该查询请求携带原视频文件信息;该索引服务器收到第二P2P节点的查询请求后,根据查询请求携带的原视频文件信息,确定出存储有原视频的第一P2P节点列表。Specifically, the second P2P node sends a query request to the index server in the P2P network, and the query request carries original video file information; after receiving the query request from the second P2P node, the index server determines the first P2P node list that stores the original video according to the original video file information carried by the query request.

该索引服务器将存储有原视频的第一P2P节点列表发送至第二P2P节点,第二P2P节点向第一P2P节点列表中的至少一个第一P2P节点发送连接请求,第一P2P节点响应连接请求并于第二P2P节点建立连接。可选地,第二P2P节点可以根据就近原则从第一P2P节点列表选取请求连接的第一P2P节点,如此降低数据传输的延迟,提高视频点播效率。The index server sends the first P2P node list storing the original video to the second P2P node, and the second P2P node sends a connection request to at least one first P2P node in the first P2P node list, and the first P2P node responds to the connection request and establishes a connection with the second P2P node. Optionally, the second P2P node may select the first P2P node requesting connection from the first P2P node list according to the principle of proximity, so as to reduce data transmission delay and improve video-on-demand efficiency.

在本申请实施例中,原视频文件信息可以是原视频文件的哈希值(Hash)。原视频文件的哈希值是使用哈希算法对原视频文件数据进行散列运算得到特定长度的唯一值,可以作为原视频文件的标识。In this embodiment of the present application, the original video file information may be a hash value (Hash) of the original video file. The hash value of the original video file is a unique value of a specific length obtained by hashing the data of the original video file using a hash algorithm, which can be used as an identification of the original video file.

步骤S12:第一P2P节点响应于来自于第二P2P节点的视频点播转码参数,而将视频点播转码参数指向的原视频进行分布式转换处理,得到视频点播转码参数对应的目标视频。Step S12: In response to the VOD transcoding parameters from the second P2P node, the first P2P node performs distributed conversion processing on the original video pointed to by the VOD transcoding parameters to obtain the target video corresponding to the VOD transcoding parameters.

其中,第一P2P节点的数量为多个。Wherein, there are multiple first P2P nodes.

具体地,第一P2P节点在建立与第二P2P节点的连接后,接收第二P2P节点发送的视频点播转码参数。第一P2P节点根据视频点播转码参数将其中存储的原视频转换处理得到视频点播转码参数对应的目标视频。Specifically, after establishing a connection with the second P2P node, the first P2P node receives the video-on-demand transcoding parameter sent by the second P2P node. The first P2P node converts and processes the original video stored therein according to the video-on-demand transcoding parameters to obtain a target video corresponding to the video-on-demand transcoding parameters.

第一P2P节点根据第二P2P节点的视频点播需求实时对原视频进行转码,能够使得第一P2P节点无需预先存储视频点播转码参数对应的目标视频,从而降低大量的存储成本,同时第一P2P节点对原视频实时转码保证了点播的命中率。The first P2P node transcodes the original video in real time according to the video-on-demand requirements of the second P2P node, so that the first P2P node does not need to pre-store the target video corresponding to the video-on-demand transcoding parameters, thereby reducing a large amount of storage costs. At the same time, the first P2P node transcodes the original video in real time to ensure the hit rate of on-demand.

其中视频点播转码参数包括但不限于分辨率、文件容器格式、视频格式、视频大小、视频帧率、视频码率、音频格式、音频码率、音频采样率、音频声道数等。VOD transcoding parameters include but are not limited to resolution, file container format, video format, video size, video frame rate, video bit rate, audio format, audio bit rate, audio sampling rate, number of audio channels, etc.

本实施例中,与第二P2P节点建立连接的多个第一P2P节点均参与将原视频转换处理为播转码参数对应的目标视频,多个第一P2P节点分布式地将原视频转换处理为目标视频。具体而言,每一第一P2P节点负责原视频的一部分的转换处理,所有第一P2P节点得到的转换处理后的视频组合成为目标视频。举例说明,例如原视频时间长度为90分钟,第一P2P节点a将原视频的1-30分钟的部分转换处理为视频点播转码参数对应的第一目标视频,第一P2P节点b将原视频31-60分钟的部分转换处理为视频点播转码参数对应的第二目标视频,第一P2P节点c将原视频61-90分钟的部分转换处理为视频点播转码参数对应的第三目标视频,第一目标视频、第二目标视频和第三目标视频组合即为目标视频。当然,每一第一P2P节点的任务量可根据第一P2P节点的性能决定,可以不是每一第一P2P节点处理等量的原视频,本申请对此不作限制。将转换处理原视频需要消耗的计算资源,分散到各个第一P2P节点上,能够降低需要投入的转码资源,提高原视频的转码效率。In this embodiment, multiple first P2P nodes establishing connections with the second P2P node all participate in converting the original video into a target video corresponding to broadcast transcoding parameters, and the multiple first P2P nodes convert and process the original video into the target video in a distributed manner. Specifically, each first P2P node is responsible for converting part of the original video, and the converted videos obtained by all first P2P nodes are combined to form the target video. For example, if the length of the original video is 90 minutes, the first P2P node a converts the 1-30 minute part of the original video into the first target video corresponding to the VOD transcoding parameters, the first P2P node b converts the 31-60 minute part of the original video into the second target video corresponding to the VOD transcoding parameters, and the first P2P node c converts the 61-90 minute part of the original video into the third target video corresponding to the VOD transcoding parameters, the first target video, the second target video and the third target video are combined is the target video. Of course, the amount of tasks for each first P2P node can be determined according to the performance of the first P2P node, and it is not necessary for each first P2P node to process the same amount of original video, which is not limited in this application. Distributing the computing resources needed to convert and process the original video to each first P2P node can reduce the transcoding resources that need to be invested and improve the transcoding efficiency of the original video.

步骤S13:第一P2P节点向第二P2P节点发送目标视频。Step S13: the first P2P node sends the target video to the second P2P node.

具体地,在第一P2P节点根据视频点播转码参数将其中存储的原视频转换处理完成,得到目标视频后,第一P2P节点发送目标视频至第二P2P节点。Specifically, after the first P2P node converts the original video stored therein according to the video-on-demand transcoding parameters and obtains the target video, the first P2P node sends the target video to the second P2P node.

本申请实施例中,第一P2P节点的数目可以为一个或多个,在第二P2P节点获取视频转码参数对应的目标视频时,可能会出现某一个或某几个第一P2P节点发生异常,例如第一P2P节点宕机、断电等,第二P2P节点不能从发生异常的第一P2P节点中继续获取与视频点播转码参数对应的目标视频;此时,第二P2P节点可以从第一P2P节点列表中未发生故障的第一P2P节点获取与视频点播转码参数对应的目标视频,能够使得各第一P2P节点的计算资源和存储资源充分利用起来,保证点播的命中率。In the embodiment of the present application, the number of first P2P nodes can be one or more. When the second P2P node acquires the target video corresponding to the video transcoding parameters, one or several first P2P nodes may be abnormal, for example, the first P2P node is down, the power is cut off, etc., and the second P2P node cannot continue to obtain the target video corresponding to the video-on-demand transcoding parameters from the abnormal first P2P node; The target video corresponding to the video-on-demand transcoding parameters can make full use of computing resources and storage resources of each first P2P node, ensuring a hit rate of video-on-demand.

例如,第二P2P节点从索引服务器获取到第一P2P节点列表为a、b、c三个设备,第二P2P节点从a、b、c三个设备中获取与视频点播转码参数对应的目标视频时,其中b设备断电导致第二P2P节点不能获取到全部的与视频点播转码参数对应的目标视频时候,此时,第二P2P节点可以从未发生故障设备a和设备c获取与视频点播转码参数对应的目标视频。For example, when the second P2P node obtains the first P2P node list from the index server as three devices a, b, and c, and the second P2P node obtains the target video corresponding to the video-on-demand transcoding parameter from the three devices a, b, and c, and when device b is powered off and the second P2P node cannot obtain all the target video corresponding to the video-on-demand transcoding parameter, at this time, the second P2P node can obtain the target video corresponding to the video-on-demand transcoding parameter from the non-failure device a and device c.

本实施例通过在第一P2P节点响应第二P2P节点的视频点播转码参数并进行分布式转换处理,得到视频点播转码参数对应的目标视频,发送至第二P2P节点,根据视频转码需求实时进行针对性的转码,能够准确命中点播,从而改善相关技术中视频源端未存储某分辨率的视频文件时,点播无法命中的问题。并且,基于P2P节点实时进行分布式地转码的视频点播方法,能够充分利用P2P节点的计算资源,提高转码效率,无需存储预转码文件,降低大量的存储成本。In this embodiment, the first P2P node responds to the video-on-demand transcoding parameters of the second P2P node and performs distributed conversion processing to obtain the target video corresponding to the video-on-demand transcoding parameters, and sends it to the second P2P node. Targeted transcoding is performed in real time according to the video transcoding requirements, and the on-demand video can be accurately hit, thereby improving the problem in the related art that the video-on-demand cannot be hit when the video source does not store a video file with a certain resolution. Moreover, the video-on-demand method based on P2P nodes for real-time distributed transcoding can make full use of computing resources of P2P nodes, improve transcoding efficiency, and save a lot of storage costs without storing pre-transcoded files.

为使第二P2P节点能够更快速准确地从第一P2P节点接收到视频点播转码参数对应的目标视频,本申请在将视频点播转码参数指向的原视频转换处理为视频点播转码参数对应的目标视频前,还可以使第一P2P节点接收来自第二P2P节点的视频点播范围参数。In order to enable the second P2P node to receive the target video corresponding to the VOD transcoding parameter from the first P2P node more quickly and accurately, the present application may also enable the first P2P node to receive the VOD range parameter from the second P2P node before converting the original video pointed to by the VOD transcoding parameter into the target video corresponding to the VOD transcoding parameter.

请参阅图3,图3是本申请提供的视频点播方法第二实施例的流程示意图。本实施例是基于P2P节点实时转码的视频点播方法第一实施例,故相同的步骤在此不再赘述,具体而言,本实施例可以包括如下步骤:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a second embodiment of a video-on-demand method provided by the present application. This embodiment is the first embodiment of the video-on-demand method based on P2P node real-time transcoding, so the same steps will not be repeated here. Specifically, this embodiment may include the following steps:

步骤S21:第一P2P节点响应于连接请求,建立与第二P2P节点的连接。Step S21: the first P2P node establishes a connection with the second P2P node in response to the connection request.

本步骤对应于视频点播方法第一实施例的S11。This step corresponds to S11 in the first embodiment of the video-on-demand method.

步骤S22:第一P2P节点接收来自第二P2P节点的目标分辨率。Step S22: the first P2P node receives the target resolution from the second P2P node.

具体地,在第一P2P节点建立与第二P2P节点的连接后,第二P2P节点发送与目标视频对应的目标分辨率至第一P2P节点。Specifically, after the first P2P node establishes a connection with the second P2P node, the second P2P node sends the target resolution corresponding to the target video to the first P2P node.

目标分辨率可以是用户通过第二P2P节点选择的,也可以是第二P2P节点根据当前的网络环境自动调节的。例如,当前网络环境良好,目标分辨率较高;当前网络环境不好,存在卡顿,目标分辨率相应较低。The target resolution may be selected by the user through the second P2P node, or may be automatically adjusted by the second P2P node according to the current network environment. For example, the current network environment is good, and the target resolution is high; the current network environment is not good, and there is a lag, and the target resolution is correspondingly low.

分辨率是用于度量图像内数据量多少的一个参数,通常表示成ppi,一个视频是由无数的相同分辨率图片组成,分辨率大小决定了视频清晰度。分辨率越大,视频的清晰度越高,所占用的存储空间越大;反之视频的清晰度越低、所占用的存储空间越小。Resolution is a parameter used to measure the amount of data in an image, usually expressed as ppi. A video is composed of countless pictures of the same resolution, and the resolution determines the clarity of the video. The higher the resolution, the higher the definition of the video, and the larger the storage space occupied; on the contrary, the lower the definition of the video, the smaller the storage space occupied.

视频的分辨率有多个等级,例如360P、720P、960P、1080P、2K和4K等。若预先将视频分别转码成各种分辨率的视频并存储,会占用相当大的存储空间,会增加视频的存储成本。而本申请的第一P2P节点在获取目标分辨率之后,再执行S23,第一P2P节点无需预先存储大量各分辨率的视频,从而降低视频的存储成本。There are multiple levels of video resolution, such as 360P, 720P, 960P, 1080P, 2K, and 4K. If the video is transcoded into videos of various resolutions and stored in advance, it will occupy a considerable storage space and increase the storage cost of the video. However, in the present application, the first P2P node executes S23 after obtaining the target resolution, and the first P2P node does not need to pre-store a large number of videos of various resolutions, thereby reducing video storage costs.

步骤S23:第一P2P节点对原视频转换处理进行初始化准备。Step S23: The first P2P node prepares for the initialization of the original video conversion process.

具体地,该初始化准备包括,设置进行转码的分辨率、帧率、码率等参数,对转码的参数进行设置,能够使得第一P2P节点更快速地响应数据请求命令以对原视频进行转码。Specifically, the initialization preparation includes setting transcoding resolution, frame rate, code rate and other parameters, and setting the transcoding parameters can make the first P2P node respond to the data request command more quickly to transcode the original video.

步骤S24:第一P2P节点接收来自第二P2P节点的视频点播范围参数。Step S24: the first P2P node receives the VOD range parameter from the second P2P node.

具体地,第一P2P节点接收第二P2P节点发送的数据请求命令,该数据请求命令携带视频点播范围参数。Specifically, the first P2P node receives the data request command sent by the second P2P node, and the data request command carries a video-on-demand range parameter.

其中,该视频点播范围参数例如包括目标视频的开始时间以及结束时间。Wherein, the video-on-demand range parameter includes, for example, the start time and end time of the target video.

第二P2P节点可向第一P2P节点发送多次数据请求命令,以满足用户点播快进的需求。The second P2P node may send multiple data request commands to the first P2P node, so as to meet the user's demand for fast-forwarding.

步骤S25:第一P2P节点从原视频中抽取视频点播范围参数定义的视频部分,将视频部分转换处理为目标分辨率的目标视频。Step S25: The first P2P node extracts the video part defined by the VOD range parameter from the original video, and converts the video part into a target video with a target resolution.

具体地,第一P2P节点在接收到第二P2P节点发送的携带视频点播范围参数的数据请求命令之后,第一P2P节点从原视频中抽取出视频点播范围参数对应的视频部分,并根据目标分辨率将该视频部分转换处理为目标分辨率的视频,得到目标视频。如此,能够使得第一P2P节点根据视频点播范围参数进行实时转码而无需转码完整的原视频,进而能够加快第一P2P节点响应第二P2P节点数据请求命令的速度,提高第一P2P节点将视频部分转换处理为目标分辨率的目标视频的效率。Specifically, after the first P2P node receives the data request command carrying the video-on-demand range parameter sent by the second P2P node, the first P2P node extracts the video part corresponding to the video-on-demand range parameter from the original video, and converts the video part into a video with a target resolution according to the target resolution to obtain the target video. In this way, it is possible to enable the first P2P node to perform real-time transcoding according to the video-on-demand range parameters without transcoding the complete original video, thereby speeding up the speed at which the first P2P node responds to the data request command of the second P2P node, and improving the efficiency of the first P2P node converting the video part into a target video with a target resolution.

步骤S26:第一P2P节点向第二P2P节点发送所述目标视频。Step S26: the first P2P node sends the target video to the second P2P node.

本步骤对应于视频点播方法第一实施例的S13。This step corresponds to S13 in the first embodiment of the video-on-demand method.

本实施例第一P2P节点通过接收第二P2P节点发送的目标分辨率和视频点播范围参数,根据目标分辨率和视频点播范围参数将原视频进行分布式转换处理得到目标视频,能够满足用户点播的快进的需求,第一P2P节点根据视频点播范围参数进行实时转码而无需转码完整的原视频,能够加快第一P2P节点响应第二P2P节点数据请求命令的速度。并且,基于P2P节点实时转码的视频点播方法,能够充分利用P2P节点的计算资源,无需存储预转码文件,降低大量的存储成本。In this embodiment, the first P2P node receives the target resolution and video-on-demand range parameters sent by the second P2P node, and performs distributed conversion processing on the original video according to the target resolution and video-on-demand range parameters to obtain the target video. Moreover, the video-on-demand method based on real-time transcoding of P2P nodes can make full use of computing resources of P2P nodes, without storing pre-transcoded files, and reducing a large amount of storage costs.

下面将从第二P2P节点角度描述视频点播方法的流程,请参阅图4,图4是本申请提供的视频点播方法第三实施例的流程示意图。本实施例可以包括如下步骤:The flow of the video-on-demand method will be described below from the perspective of the second P2P node. Please refer to FIG. 4 , which is a schematic flowchart of a third embodiment of the video-on-demand method provided by the present application. This embodiment may include the following steps:

步骤S31:第二P2P节点向第一P2P节点发起连接请求,建立与所述第一P2P节点的连接。Step S31: the second P2P node initiates a connection request to the first P2P node, and establishes a connection with the first P2P node.

本步骤与视频点播方法第一实施例的步骤S11相同,故在此不再赘述。This step is the same as step S11 in the first embodiment of the video-on-demand method, so it will not be repeated here.

步骤S32:第二P2P节点向第一P2P节点发送视频点播转码参数。Step S32: the second P2P node sends the VOD transcoding parameters to the first P2P node.

具体地,第二P2P节点检测视频点播请求所请求的视频点播转码参数,发送至第一P2P节点,以使得第一P2P节点将视频点播转码参数指向的原视频转换处理为视频点播转码参数对应的目标视频,能够让第二P2P节点满足各种不同视频点播转码参数的点播需求,发送视频点播转码参数使第一P2P节点进行实时转码,能够保证点播的命中率,同时降低大量的存储成本。Specifically, the second P2P node detects the VOD transcoding parameters requested by the VOD request, and sends them to the first P2P node, so that the first P2P node converts the original video pointed to by the VOD transcoding parameters into the target video corresponding to the VOD transcoding parameters, so that the second P2P node can meet the on-demand requirements of various VOD transcoding parameters, and send the VOD transcoding parameters to enable the first P2P node to perform real-time transcoding.

步骤S33:第二P2P节点接收来自第一P2P节点的与视频点播转码参数对应的目标视频。Step S33: the second P2P node receives the target video corresponding to the VOD transcoding parameters from the first P2P node.

本实施例通过第二P2P节点向第一P2P节点发送视频点播转码参数并接收与视频点播转码参数对应的目标视频,能够使得第二P2P节点节省自身的计算机资源,且满足各种不同视频点播转码参数的点播需求,发送视频点播转码参数使第一P2P节点进行实时转码,能够保证点播的命中率,同时降低大量的存储成本。In this embodiment, the second P2P node sends the video-on-demand transcoding parameters to the first P2P node and receives the target video corresponding to the video-on-demand transcoding parameters, which enables the second P2P node to save its own computer resources and meet the on-demand requirements of various video-on-demand transcoding parameters. Sending the video-on-demand transcoding parameters enables the first P2P node to perform real-time transcoding, which can ensure the hit rate of on-demand and reduce a large amount of storage costs.

为使第二P2P节点能够更快速地从第一P2P节点接收到视频点播转码参数对应的目标视频,本申请在第二P2P节点接收来自第一P2P节点的与视频点播转码参数对应的目标视频前,还可以使第二P2P节点发送视频点播范围参数至第一P2P节点。In order to enable the second P2P node to receive the target video corresponding to the video-on-demand transcoding parameters from the first P2P node more quickly, the present application can also make the second P2P node send the video-on-demand range parameter to the first P2P node before the second P2P node receives the target video corresponding to the video-on-demand transcoding parameters from the first P2P node.

请参阅图5,图5是本申请提供的视频点播方法第四实施例的流程示意图。本实施例是基于P2P节点实时转码的视频点播方法第三实施例,故相同的步骤在此不再赘述,本实施例可以包括如下步骤:Please refer to FIG. 5 . FIG. 5 is a schematic flowchart of a fourth embodiment of a video-on-demand method provided by the present application. This embodiment is the third embodiment of the video-on-demand method based on P2P node real-time transcoding, so the same steps will not be repeated here, and this embodiment may include the following steps:

步骤S41:第二P2P节点向第一P2P节点发起连接请求,建立与所述第一P2P节点的连接。Step S41: the second P2P node initiates a connection request to the first P2P node, and establishes a connection with the first P2P node.

本步骤与视频点播方法第三实施例的步骤S31相同,故在此不再赘述。This step is the same as step S31 of the third embodiment of the video-on-demand method, so it will not be repeated here.

步骤S42:第二P2P节点向第一P2P节点发送视频点播转码参数。Step S42: the second P2P node sends the VOD transcoding parameters to the first P2P node.

本步骤与视频点播方法第三实施例的步骤S32相同,故在此不再赘述。This step is the same as step S32 of the third embodiment of the video-on-demand method, so it will not be repeated here.

步骤S43:第二P2P节点向第一P2P节点发送视频点播范围参数。Step S43: the second P2P node sends the VOD range parameter to the first P2P node.

具体地,当第二P2P节点向第一P2P节点发送视频点播转码参数以使得第一P2P节点对原视频转换处理进行初始化准备后,第二P2P节点向第一P2P节点发送携带视频点播范围参数的数据请求命令。以使得第一P2P节点从原视频中抽取视频点播范围参数定义的视频部分,将视频部分转换处理为目标分辨率的目标视频,以满足视频点播的快进需求,且能够使得第一P2P节点根据视频点播范围参数进行实时转码而无需转码完整的原视频,极大地加快了第一P2P节点响应第二P2P节点数据请求命令的速度,提升用户的点播体验。Specifically, after the second P2P node sends the video-on-demand transcoding parameters to the first P2P node so that the first P2P node initializes and prepares for the original video conversion process, the second P2P node sends a data request command carrying the video-on-demand range parameter to the first P2P node. In order to make the first P2P node extract the video part defined by the video-on-demand range parameter from the original video, convert the video part into the target video of the target resolution, so as to meet the fast-forwarding requirements of the video-on-demand, and enable the first P2P node to perform real-time transcoding according to the video-on-demand range parameter without transcoding the complete original video, which greatly speeds up the speed of the first P2P node responding to the second P2P node data request command, and improves the user's video-on-demand experience.

步骤S44:第二P2P节点接收来自第一P2P节点的与视频点播转码参数对应的目标视频。Step S44: the second P2P node receives the target video corresponding to the VOD transcoding parameters from the first P2P node.

本步骤与视频点播方法第三实施例的步骤S33相同,故在此不再赘述。This step is the same as step S33 of the third embodiment of the video-on-demand method, so it will not be repeated here.

本实施例通过第二P2P节点向第一P2P节点发送视频点播转码参数和视频点播范围参数并接收对应的目标视频,能够使得第一P2P节点根据视频点播范围参数进行实时转码而无需转码完整的原视频,极大地加快了第一P2P节点响应第二P2P节点数据请求命令的速度,提升用户的点播体验。并且,基于P2P节点实时转码的视频点播方法,能够充分利用P2P节点的计算资源,无需存储预转码文件,降低大量的存储成本。In this embodiment, the second P2P node sends the video-on-demand transcoding parameters and video-on-demand range parameters to the first P2P node and receives the corresponding target video, so that the first P2P node can perform real-time transcoding according to the video-on-demand range parameters without transcoding the complete original video, which greatly speeds up the speed at which the first P2P node responds to the data request command of the second P2P node, and improves the user's video-on-demand experience. Moreover, the video-on-demand method based on real-time transcoding of P2P nodes can make full use of computing resources of P2P nodes, without storing pre-transcoded files, and reducing a large amount of storage costs.

本申请还提供了一种P2P节点,该P2P节点可以是机顶盒、个人电脑、智能手机、平板电脑、掌上电脑、便携计算机等。The present application also provides a P2P node, which may be a set-top box, a personal computer, a smart phone, a tablet computer, a palmtop computer, a portable computer, and the like.

请参阅图6,图6是本申请公开的一种P2P节点的结构图,可以包括处理器501、通信电路502和存储器503。Please refer to FIG. 6 . FIG. 6 is a structural diagram of a P2P node disclosed in the present application, which may include a processor 501 , a communication circuit 502 and a memory 503 .

其中,存储器503至少包括一种类型的可读存储介质,可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。进一步地,存储器503不仅可以用于存储电子设备的应用软件及各类数据,例如计算机程序504的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。Wherein, the memory 503 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (eg, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. Furthermore, the memory 503 can not only be used to store application software and various data of the electronic device, such as the code of the computer program 504, etc., but also can be used to temporarily store outputted or to-be-outputted data.

处理器501在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器503中存储的程序代码或处理数据,以实现上述任一实施例提供的视频点播方法,例如执行计算机程序504等。In some embodiments, the processor 501 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chips, which are used to run program codes or process data stored in the memory 503, so as to realize the video-on-demand method provided by any of the above-mentioned embodiments, such as executing computer programs 504, etc.

通信电路502可以是外设部件互连标准总线或扩展工业标准结构总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication circuit 502 may be a peripheral component interconnection standard bus or an extended industry standard architecture bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 5 , but it does not mean that there is only one bus or one type of bus.

处理器501耦接通信电路502和存储器503,用于执行计算机程序504。The processor 501 is coupled to the communication circuit 502 and the memory 503 for executing a computer program 504 .

本申请实施例提供的P2P节点,能够避免视频源端未存储某分辨率的视频文件时,点播无法命中的问题。The P2P node provided by the embodiment of the present application can avoid the problem that the on-demand video cannot be hit when the video source end does not store a video file with a certain resolution.

对于上述实施例的方法,其可以计算机程序的形式存在,因而本申请提出一种计算机可读存储介质,请参阅图7,图7是本申请提供的计算机可读存储介质一实施例的结构示意图。本实施例计算机可读存储介质600中存储有计算机程序601,其可被执行以实现上述实施例中的方法。The method of the above embodiment can exist in the form of a computer program. Therefore, the present application proposes a computer-readable storage medium, please refer to FIG. 7 , which is a schematic structural diagram of an embodiment of the computer-readable storage medium provided by the present application. In this embodiment, a computer program 601 is stored in a computer-readable storage medium 600, which can be executed to implement the methods in the foregoing embodiments.

本实施例计算机可读存储介质600可以是U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等可以存储程序指令的介质,或者也可以为存储有该程序指令的服务器,该服务器可将存储的程序指令发送给其他设备运行,或者也可以自运行该存储的程序指令。In this embodiment, the computer-readable storage medium 600 may be a medium capable of storing program instructions such as a USB flash drive, a removable hard disk, a read-only memory (ROM, Random Access Memory), a magnetic disk, or an optical disk, or it may be a server storing the program instructions. The server may send the stored program instructions to other devices for execution, or may also run the stored program instructions by itself.

需要说明的是,上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that the serial numbers of the above embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments. And the term "comprising", "comprising" or any other variation thereof herein is intended to cover a non-exclusive inclusion such that a process, apparatus, article, or method comprising a series of elements includes not only those elements, but also other elements not expressly listed, or also includes elements inherent in such a process, apparatus, article, or method. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional same elements in the process, apparatus, article or method comprising the element.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the description of the application and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields, are all included in the scope of patent protection of the present application.

Claims (8)

1.一种视频点播方法,其特征在于,包括:1. A video-on-demand method, characterized in that, comprising: 第一P2P节点响应于连接请求,建立与第二P2P节点的连接,其中,所述第一P2P节点的数量为多个;The first P2P node establishes a connection with the second P2P node in response to the connection request, where the number of the first P2P nodes is multiple; 所述第一P2P节点响应于来自于所述第二P2P节点直接发送的视频点播转码参数,而将所述视频点播转码参数指向的原视频进行分布式转换处理,得到所述视频点播转码参数对应的目标视频;The first P2P node responds to the video-on-demand transcoding parameters sent directly from the second P2P node, and performs distributed conversion processing on the original video pointed to by the video-on-demand transcoding parameters to obtain the target video corresponding to the video-on-demand transcoding parameters; 所述第一P2P节点向所述第二P2P节点发送所述目标视频;The first P2P node sends the target video to the second P2P node; 其中,所述转码参数包括分辨率,所述将所述视频点播转码参数指向的原视频进行分布式转换处理,得到所述视频点播转码参数对应的目标视频前包括:Wherein, the transcoding parameters include resolution, and performing distributed conversion processing on the original video pointed to by the video-on-demand transcoding parameters, before obtaining the target video corresponding to the video-on-demand transcoding parameters includes: 每一所述第一P2P节点接收来自所述第二P2P节点的视频点播范围参数;Each of the first P2P nodes receives video-on-demand range parameters from the second P2P node; 所述将所述视频点播转码参数指向的原视频进行分布式转换处理,得到所述视频点播转码参数对应的目标视频包括:The original video pointed to by the video-on-demand transcoding parameters is distributed and converted, and the target video corresponding to the video-on-demand transcoding parameters obtained includes: 每一所述第一P2P节点分别从所述原视频中抽取所述视频点播范围参数定义的视频部分,将所述视频部分转换至目标分辨率的目标视频。Each of the first P2P nodes respectively extracts the video part defined by the VOD range parameter from the original video, and converts the video part into a target video with a target resolution. 2.根据权利要求1所述的视频点播方法,其特征在于,2. video-on-demand method according to claim 1, is characterized in that, 所述将所述视频点播转码参数指向的原视频进行分布式转换处理,得到所述视频点播转码参数对应的目标视频前包括:The original video pointed to by the video-on-demand transcoding parameters is subjected to distributed conversion processing, and before obtaining the target video corresponding to the video-on-demand transcoding parameters, it includes: 所述第一P2P节点接收来自所述第二P2P节点的所述目标分辨率。The first P2P node receives the target resolution from the second P2P node. 3.根据权利要求2所述的视频点播方法,其特征在于,3. video-on-demand method according to claim 2, is characterized in that, 所述第一P2P节点接收来自所述第二P2P节点的所述目标分辨率后包括:After the first P2P node receives the target resolution from the second P2P node, it includes: 所述第一P2P节点对所述原视频转换处理进行初始化准备。The first P2P node prepares for initialization of the original video conversion process. 4.一种视频点播方法,其特征在于,包括:4. A video-on-demand method, characterized in that, comprising: 第二P2P节点向第一P2P节点发起连接请求,建立与所述第一P2P节点的连接,其中,所述第一P2P节点的数量为多个;The second P2P node initiates a connection request to the first P2P node, and establishes a connection with the first P2P node, wherein the number of the first P2P nodes is multiple; 所述第二P2P节点向所述第一P2P节点发送视频点播转码参数;The second P2P node sends video-on-demand transcoding parameters to the first P2P node; 所述第二P2P节点接收来自所述第一P2P节点的与所述视频点播转码参数对应的目标视频,所述目标视频是所述第一P2P节点根据所述视频点播转码参数将原视频进行分布式转换处理得到的;The second P2P node receives the target video corresponding to the video-on-demand transcoding parameter from the first P2P node, and the target video is obtained by performing distributed conversion processing on the original video by the first P2P node according to the video-on-demand transcoding parameter; 其中,所述转码参数包括分辨率,所述第二P2P节点向所述第一P2P节点发送视频点播转码参数前包括:Wherein, the transcoding parameter includes resolution, and before the second P2P node sends the video-on-demand transcoding parameter to the first P2P node, it includes: 所述第二P2P节点向每一所述第一P2P节点发送视频点播范围参数;The second P2P node sends video-on-demand range parameters to each of the first P2P nodes; 所述第一P2P节点根据所述视频点播转码参数将原视频进行分布式转换处理得到所述目标视频包括:The first P2P node performs distributed conversion processing on the original video according to the video-on-demand transcoding parameters to obtain the target video including: 每一所述第一P2P节点分别从所述原视频中抽取所述视频点播范围参数定义的视频部分,将所述视频部分转换至目标分辨率的目标视频。Each of the first P2P nodes respectively extracts the video part defined by the VOD range parameter from the original video, and converts the video part into a target video with a target resolution. 5.根据权利要求4所述的视频点播方法,其特征在于,5. video-on-demand method according to claim 4, is characterized in that, 所述第二P2P节点向所述第一P2P节点发送视频点播转码参数后包括:After the second P2P node sends the video-on-demand transcoding parameters to the first P2P node, it includes: 所述第二P2P节点向所述第一P2P节点发送视频点播范围参数。The second P2P node sends the VOD range parameter to the first P2P node. 6.根据权利要求4所述的视频点播方法,其特征在于,6. video-on-demand method according to claim 4, is characterized in that, 所述第二P2P节点向所述第一P2P节点发送视频点播转码参数包括:The second P2P node sending the video-on-demand transcoding parameters to the first P2P node includes: 所述第二P2P节点向所述第一P2P节点发送视频点播分辨率。The second P2P node sends the video-on-demand resolution to the first P2P node. 7.一种P2P节点,其特征在于,包括:7. A P2P node, characterized in that it comprises: 通信电路,用于与另一个P2P节点连接;Communication circuit for connecting with another P2P node; 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,耦接所述存储器和所述通信电路,用于执行所述计算机程序时实现如权利要求1至6任一项所述的视频点播方法。A processor, coupled to the memory and the communication circuit, configured to implement the video-on-demand method according to any one of claims 1 to 6 when executing the computer program. 8.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现权利要求1-6任一项所述方法的步骤。8. A computer-readable storage medium, on which a computer program is stored, wherein, when the program is executed by a processor, the steps of the method according to any one of claims 1-6 are implemented.
CN202110247143.2A 2021-03-05 2021-03-05 Video-on-demand method, P2P node and computer-readable storage medium Active CN112929756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110247143.2A CN112929756B (en) 2021-03-05 2021-03-05 Video-on-demand method, P2P node and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110247143.2A CN112929756B (en) 2021-03-05 2021-03-05 Video-on-demand method, P2P node and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN112929756A CN112929756A (en) 2021-06-08
CN112929756B true CN112929756B (en) 2023-07-21

Family

ID=76171665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110247143.2A Active CN112929756B (en) 2021-03-05 2021-03-05 Video-on-demand method, P2P node and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112929756B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2053825A1 (en) * 2007-10-25 2009-04-29 Alcatel Lucent Distribution of shared content streams in communications networks

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8832751B2 (en) * 2010-08-30 2014-09-09 Deutsche Telekom Ag Enhanced video streaming to mobile clients
CN103379362B (en) * 2012-04-24 2017-07-07 腾讯科技(深圳)有限公司 VOD method and system
CN203015055U (en) * 2012-11-05 2013-06-19 惠州市伟乐科技有限公司 Digital television set top box with transcoding function
CN103702139B (en) * 2013-12-13 2017-02-01 华中科技大学 Video-on-demand system based on scalable coding under mobile environment
CN106657133A (en) * 2017-01-11 2017-05-10 湖南科瑞迪教育发展有限公司 P2P stream media playing system and method
CN109005430B (en) * 2018-09-17 2021-05-18 深圳市网心科技有限公司 Method, system, device and storage medium for on-demand audio/video content
CN111757118B (en) * 2020-06-29 2023-04-21 北京百度网讯科技有限公司 Video transcoding processing method, device, equipment and medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2053825A1 (en) * 2007-10-25 2009-04-29 Alcatel Lucent Distribution of shared content streams in communications networks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Hadoop的流媒体转码系统设计;李增禄;张武威;刘孙发;;山东农业工程学院学报(第09期);全文 *

Also Published As

Publication number Publication date
CN112929756A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
JP6469788B2 (en) Using quality information for adaptive streaming of media content
CN108391179B (en) Live broadcast data processing method and device, server, terminal and storage medium
US8621099B2 (en) Systems and methods for formatting media content for distribution
CN103581699B (en) Video playing method, streaming media server and streaming media playing system
US9609366B2 (en) Digital television terminal, video file playing method and video file playing system
US20110087726A1 (en) Cloud server, client terminal, device, and method of operating cloud server and client terminal
US8656443B2 (en) Method and system for providing dynamic time slice encoding for complete internet anywhere
EP2822274A1 (en) Method for converting online media data or playing video and apparatus thereof
CN104125229B (en) The player method of Streaming Media and playing device
TW201517572A (en) A method, device, and system thereof for data processing
WO2015035957A1 (en) Video resource obtaining method, backend server, video client, and system
US20160029053A1 (en) Method for transmitting media data and virtual desktop server
CN113891176B (en) HLS-based on-demand flow control method, device, equipment and storage medium
CN111510791B (en) Method and device for playing audio and video, computer equipment and readable storage medium
CN112449250A (en) Method, device, equipment and medium for downloading video resources
US9871840B2 (en) Electronic apparatus and method for transferring contents on cloud system to device connected to DLNA
CN102469155A (en) Application service and sharing methods in home network system
CN113794898B (en) DASH media stream transmission method, electronic equipment and storage medium
CN112929756B (en) Video-on-demand method, P2P node and computer-readable storage medium
CN102469101A (en) Method and server for application service in home network system
CN114501068B (en) Video live broadcast method, architecture, system and computer readable storage medium
US9088631B2 (en) Game streaming system and method of supporting the multiuser and multiplatform
Lazic et al. One Implementation of adaptive streaming over HTTP on Android DTV platform
CN105187867B (en) A kind of media stream control method and its device
WO2012103670A1 (en) Method, device and system for, based on cloud service, providing and processing multimedia data

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