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 Network Technology Co Ltd
Original Assignee
Shenzhen Xunlei Network Technology 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 Network Technology Co Ltd filed Critical Shenzhen Xunlei Network Technology 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

Abstract

The application discloses a video-on-demand method, a P2P node and a computer readable storage medium, comprising the following steps: the first P2P node responds to the connection request and establishes connection with the second P2P node; 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 by the video on demand transcoding parameters to obtain a target video corresponding to the video on demand transcoding parameters; and the first P2P node sends the target video to the second P2P node. Through the method, transcoding can be performed in real time, and the hit rate of on-demand is guaranteed.

Description

Video on demand method, P2P node and computer readable storage medium
Technical Field
The present invention relates to the field of video-on-demand technology, and in particular, to a video-on-demand method, a P2P node, and a computer readable storage medium.
Background
With the popularization of the Internet and the wide information sources in the information age, more and more people can select interesting information for watching through a network, and most commonly, various video resources are different from television programs controlled to be played by a television station, so that the video resources on the network are higher in integration degree, can be selected at will according to the wish of a user, can be on demand at will, and are better in user experience.
In the related art, a video source end must transcode video first to generate video files with different resolutions, and store the video files separately, and when an on-demand end requests on-demand, select video data with a corresponding resolution version according to the carried resolution type. If the video source terminal does not complete the transcoding of a certain resolution or does not store a video file of a certain resolution, the video source terminal cannot return data of a corresponding resolution when the video source terminal needs the video of the resolution, so that the video source terminal cannot play the data, and the user experience is affected.
Disclosure of Invention
The video on demand method can perform transcoding on the P2P node in real time, and ensures the hit rate of video on demand.
In order to solve the above technical problems, the present application provides a video-on-demand method, including: the first P2P node responds to a connection request and establishes connection with a second P2P node, wherein the number of the first P2P nodes is a plurality of; 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 by the video on demand transcoding parameters to obtain a target video corresponding to the video on demand transcoding parameters; and the first P2P node sends the target video to the second P2P node.
In order to achieve the above object, the present application further provides a video-on-demand method, including: the second P2P node initiates a connection request to a first P2P node, and establishes connection with the first P2P node, wherein the number of the first P2P nodes is a plurality of; the second P2P node sends video-on-demand transcoding parameters to the first P2P node; the second P2P node receives a target video corresponding to the video on demand transcoding parameter from the first P2P node, wherein the target video is obtained by performing distributed conversion processing on an original video by the first P2P node according to the video on demand transcoding parameter.
To achieve the above object, the present application further provides a P2P node, including: the communication circuit is used for being connected with another P2P node; a memory for storing a computer program; and the processor is coupled with the memory and the communication circuit and is used for realizing the video-on-demand method when executing the computer program.
To achieve the above object, the present application further provides a computer readable storage medium having stored thereon a computer program for implementing the video on demand method described above when the program is executed by a processor.
According to the video on demand transcoding method and device, the first P2P node responds to the video on demand transcoding parameters of the second P2P node and performs distributed conversion processing, the target video corresponding to the video on demand transcoding parameters is obtained and sent to the second P2P node, and the target video corresponding to the video on demand transcoding parameters can be accurately hit. In addition, the video-on-demand method based on the P2P node real-time transcoding can fully utilize the computing resources of the P2P node, does not need to store pre-transcoding files, and reduces a large amount of storage cost.
Drawings
FIG. 1 is a schematic diagram of one embodiment of a video on demand system provided herein;
FIG. 2 is a flow chart of a first embodiment of the video on demand method provided in the present application;
FIG. 3 is a flow chart of a second embodiment of the video on demand method provided in the present application;
FIG. 4 is a flow chart of a third embodiment of the video on demand method provided in the present application;
FIG. 5 is a flow chart of a fourth embodiment of the video on demand method provided in the present application;
FIG. 6 is a block diagram of a P2P node disclosed herein;
fig. 7 is a block diagram of a computer-readable storage medium disclosed herein.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of a video on demand system provided in the present application.
In this embodiment, the video on demand system 10 includes a first P2P node 11 and a second P2P node 12.
In P2P (peer-to-peer), each node may serve other nodes as a resource provider, or may obtain the service for other nodes. In this embodiment, the first P2P node 11 serves as a resource to serve the second P2P node 12. The second P2P node 12 is the on-demand end.
The number of first P2P nodes 11 is a plurality. The first P2P node 11 may be a device such as a computer, router or smart phone capable of providing bandwidth, memory space and computing power. The second P2P node 12 may be a computer, a mobile phone, or a smart tv.
The second P2P node 12 receives an on-demand command from the user, where the on-demand command includes a video-on-demand transcoding parameter. The second P2P node 12 responds to the on-demand instruction to obtain the address of the first P2P node 11 storing the original video pointed to by the video on demand transcoding parameters. A connection request is initiated to the first P2P node 11 based on the address of the first P2P node 11.
The first P2P node 11 performs handshake verification on the connection request, and establishes a connection with the second P2P node 12 after the verification is passed.
After the first P2P node 11 establishes a connection with the second P2P node 12, the second P2P node 12 sends video on demand transcoding parameters to the first P2P node 11.
The plurality of first P2P nodes 11 perform distributed conversion processing on the original video according to the video on demand transcoding parameters, 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 video-on-demand requirement of the second P2P node 12, so as to obtain a target video, and video-on-demand can be ensured, and the first P2P node 11 does not need to pre-transcode and store videos corresponding to various transcoding parameters, so that the storage cost of data can be reduced.
The second P2P node 12 receives and plays the target video returned by the first P2P node 11.
Based on the video on demand system 10 described above, the present application provides the following embodiments:
referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a video on demand method provided in the present application. The execution body of the embodiment is a first P2P node, and the embodiment may include the following steps:
step S11: the first P2P node responds to the connection request and establishes connection with the second P2P node.
Specifically, the second P2P node sends a query request to an index server in the P2P network, where the query request carries the original video file information; after receiving the query request of the second P2P node, the index server determines a first P2P node list storing the original video according to the original video file information carried by the query request.
The index server sends a first P2P node list stored with the original video to a second P2P node, 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 connection with the second P2P node. Optionally, the second P2P node may select, according to the proximity principle, the first P2P node requesting connection from the first P2P node list, so as to reduce delay of data transmission and improve video on demand efficiency.
In the 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 with a specific length obtained by carrying out hash operation on the original video file data by using a hash algorithm, and can be used as an identifier of the original video file.
Step S12: the first P2P node responds to the video on demand transcoding parameters from the second P2P node, and the original video pointed by the video on demand transcoding parameters is subjected to distributed conversion processing to obtain a target video corresponding to the video on demand transcoding parameters.
The number of the first P2P nodes is a plurality.
Specifically, after the first P2P node establishes a connection with the second P2P node, the first P2P node receives the video on demand transcoding parameter sent by the second P2P node. And the first P2P node converts the original video stored in the first P2P node into a target video corresponding to the video on demand transcoding parameter according to the video on demand transcoding parameter.
The first P2P node transcodes the original video in real time according to the video-on-demand requirement of the second P2P node, so that the first P2P node does not need to store target video corresponding to video-on-demand transcoding parameters in advance, a large amount of storage cost is reduced, and meanwhile, the first P2P node transcodes the original video in real time to ensure the hit rate of video-on-demand.
Wherein the video on demand transcoding parameters include, but are not limited to, resolution, file container format, video size, video frame rate, video bitrate, audio format, audio bitrate, audio sampling rate, number of audio channels, and the like.
In this embodiment, a plurality of first P2P nodes connected to the second P2P node participate in converting the original video into a target video corresponding to the transcoding parameters, and the plurality of first P2P nodes convert the original video into the target video in a distributed manner. Specifically, each first P2P node is responsible for conversion processing of a part of the original video, and the converted videos obtained by all the first P2P nodes are combined into a target video. For example, the time length of the original video is 90 minutes, the first P2P node a converts a 1-30 minute portion of the original video into a first target video corresponding to the video on demand transcoding parameter, the first P2P node b converts a 31-60 minute portion of the original video into a second target video corresponding to the video on demand transcoding parameter, the first P2P node c converts a 61-90 minute portion of the original video into a third target video corresponding to the video on demand transcoding parameter, and the first target video, the second target video and the third target video are combined to form the target video. Of course, the task amount of each first P2P node may be determined according to the performance of the first P2P node, and not each first P2P node may process an equal amount of original video, which is not limited in this application. And the calculation resources required to be consumed by converting the original video are distributed to each first P2P node, so that the transcoding resources required to be input can be reduced, and the transcoding efficiency of the original video is improved.
Step S13: the first P2P node sends the target video to the second P2P node.
Specifically, after the first P2P node completes conversion processing of the original video stored in the first P2P node according to the video on demand transcoding parameter to obtain the target video, the first P2P node sends the target video to the second P2P node.
In this embodiment of the present invention, the number of first P2P nodes may be one or more, when the second P2P node acquires the target video corresponding to the video transcoding parameter, an abnormality may occur in one or more first P2P nodes, for example, the first P2P node is down, powered off, etc., and the second P2P node cannot continuously acquire the target video corresponding to the video on demand transcoding parameter from the first P2P node having the abnormality; at this time, the second P2P node may acquire the target video corresponding to the video on demand transcoding parameter from the first P2P node that does not fail in the first P2P node list, so that the computing resources and the storage resources of each first P2P node may be fully utilized, and the hit rate of the on demand may be ensured.
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 parameters from the three devices a, b, and c, and when the device b is powered off, the second P2P node cannot obtain all the target videos corresponding to the video on demand transcoding parameters, at this time, the second P2P node may obtain the target videos corresponding to the video on demand transcoding parameters from the non-faulty devices a and c.
According to the video on demand transcoding method and device, the first P2P node responds to the video on demand transcoding parameters of the second P2P node and performs distributed conversion processing, so that target videos corresponding to the video on demand transcoding parameters are obtained and sent to the second P2P node, targeted transcoding is performed in real time according to video transcoding requirements, video on demand can be accurately played in a hit mode, and the problem that video on demand cannot be hit when a video source end does not store video files with a certain resolution in the related technology is solved. In addition, the video-on-demand method for carrying out distributed transcoding based on the P2P node in real time can fully utilize the computing resources of the P2P node, improve the transcoding efficiency, avoid storing pre-transcoding files and reduce a large amount of storage cost.
In order to enable the second P2P node to receive the target video corresponding to the video on demand transcoding parameter from the first P2P node more quickly and accurately, before converting the original video pointed by the video on demand transcoding parameter into the target video corresponding to the video on demand transcoding parameter, the present application may further enable the first P2P node to receive the video on demand range parameter from the second P2P node.
Referring to fig. 3, fig. 3 is a flow chart of a second embodiment of the video on demand method provided in the present application. The embodiment is a first embodiment of a video on demand method based on real-time transcoding by a P2P node, so the same steps are not repeated here, and specifically, the embodiment may include the following steps:
step S21: the first P2P node responds to the connection request and establishes connection with the second P2P node.
This step corresponds to S11 of the first embodiment of the video-on-demand method.
Step S22: the first P2P node receives a target resolution from the second P2P node.
Specifically, after the first P2P node establishes a connection with the second P2P node, the second P2P node sends a target resolution corresponding to the target video to the first P2P node.
The target resolution may be selected by the user through the second P2P node, or the second P2P node may be automatically adjusted 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, the blocking exists, and the target resolution is correspondingly lower.
Resolution is a parameter used to measure how much data is in an image, typically expressed as ppi, and a video is made up of innumerable pictures of the same resolution, the size of which determines the video sharpness. The larger the resolution is, the higher the definition of the video is, and the larger the occupied storage space is; whereas the lower the definition of the video, the less memory space is occupied.
The resolution of video has multiple levels, such as 360P, 720P, 960P, 1080P, 2K, 4K, etc. If the video is transcoded into videos with various resolutions in advance and stored, a considerable storage space is occupied, and the storage cost of the video is increased. After the first P2P node obtains the target resolution, S23 is executed, and the first P2P node does not need to store a large amount of videos with each resolution in advance, so that the storage cost of the videos is reduced.
Step S23: the first P2P node performs initialization preparation on the original video conversion processing.
Specifically, the initialization preparation includes setting parameters such as resolution, frame rate, code rate and the like for transcoding, and setting the parameters for transcoding, so that the first P2P node can respond to the data request command more quickly to transcode the original video.
Step S24: the first P2P node receives the video on demand range parameter from the second P2P node.
Specifically, the first P2P node receives a data request command sent by the second P2P node, where the data request command carries a video on demand range parameter.
Wherein the video on demand range parameter comprises, for example, a start time and an end time of the target video.
The second P2P node may send a data request command multiple times to the first P2P node to meet the user's demand for fast forward on demand.
Step S25: the first P2P node extracts a video part defined by the video on demand range parameter from the original video, and converts the video part into a target video with target resolution.
Specifically, after receiving a data request command carrying a video-on-demand range parameter sent by a second P2P node, the first P2P node extracts a video portion corresponding to the video-on-demand range parameter from an original video, and converts the video portion into a video of a target resolution according to the target resolution to obtain the target video. Therefore, the first P2P node can perform real-time transcoding according to the video on demand range parameter without transcoding the complete original video, so that the speed of the first P2P node responding to the second P2P node data request command can be increased, and the efficiency of converting the video part into the target video with the target resolution by the first P2P node is improved.
Step S26: and the first P2P node sends the target video to the second P2P node.
This step corresponds to S13 of the first embodiment of the video-on-demand method.
According to the embodiment, the first P2P node receives the target resolution and the video-on-demand range parameter sent by the second P2P node, and performs distributed conversion processing on the original video according to the target resolution and the video-on-demand range parameter to obtain the target video, so that the requirement of fast forward on demand of a user can be met, the first P2P node performs real-time transcoding according to the video-on-demand range parameter without transcoding the complete original video, and the speed of the first P2P node responding to the second P2P node data request command can be accelerated. In addition, the video-on-demand method based on the P2P node real-time transcoding can fully utilize the computing resources of the P2P node, does not need to store pre-transcoding files, and reduces a large amount of storage cost.
Next, the flow of the video on demand method will be described from the perspective of the second P2P node, referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of the video on demand method provided in the present application. The embodiment may include the following steps:
step S31: and the second P2P node initiates a connection request to the first P2P node, and establishes connection with the first P2P node.
The step is the same as step S11 of the first embodiment of the video on demand method, and thus will not be described herein.
Step S32: the second P2P node sends video on demand transcoding parameters to the first P2P node.
Specifically, the second P2P node detects the video on demand transcoding parameter requested by the video on demand request, and sends the video on demand transcoding parameter to the first P2P node, so that the first P2P node converts the original video pointed by the video on demand transcoding parameter into a target video corresponding to the video on demand transcoding parameter, the second P2P node can meet the on demand requirements of various different video on demand transcoding parameters, and the sending of the video on demand transcoding parameter enables the first P2P node to perform real-time transcoding, so that the hit rate of on demand can be ensured, and meanwhile, a large amount of storage cost is reduced.
Step S33: the second P2P node receives the target video corresponding to the video on demand transcoding parameters from the first P2P node.
According to the video on demand transcoding method and device, the second P2P node sends video on demand transcoding parameters to the first P2P node and receives target videos corresponding to the video on demand transcoding parameters, so that the second P2P node can save own computer resources, the video on demand requirements of various different video on demand transcoding parameters are met, the first P2P node carries out real-time transcoding by sending the video on demand transcoding parameters, the hit rate of video on demand can be guaranteed, and meanwhile a large amount of storage cost is reduced.
In order to enable the second P2P node to receive the target video corresponding to the video on demand transcoding parameter from the first P2P node more quickly, before the second P2P node receives the target video corresponding to the video on demand transcoding parameter from the first P2P node, the present application may further enable the second P2P node to send the video on demand range parameter to the first P2P node.
Referring to fig. 5, fig. 5 is a flowchart of a fourth embodiment of the video on demand method provided in the present application. The third embodiment of the video on demand method based on the P2P node real-time transcoding is the same steps as those described herein, and may include the following steps:
step S41: and the second P2P node initiates a connection request to the first P2P node, and establishes connection with the first P2P node.
The step is the same as the step S31 of the third embodiment of the video on demand method, and thus will not be described herein.
Step S42: the second P2P node sends video on demand transcoding parameters to the first P2P node.
The step is the same as the step S32 of the third embodiment of the video on demand method, and thus will not be described herein.
Step S43: the second P2P node sends video on demand range parameters to the first P2P node.
Specifically, when the second P2P node sends the video on demand transcoding parameter to the first P2P node so that the first P2P node performs initialization preparation 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. The first P2P node extracts the video part defined by the video-on-demand range parameter from the original video, converts the video part into the target video with the target resolution, meets the fast-forward requirement of video-on-demand, and can perform real-time transcoding according to the video-on-demand range parameter without transcoding the complete original video, so that the speed of the first P2P node responding to the data request command of the second P2P node is greatly increased, and the on-demand experience of a user is improved.
Step S44: the second P2P node receives the target video corresponding to the video on demand transcoding parameters from the first P2P node.
The step is the same as step S33 of the third embodiment of the video on demand method, and thus will not be described herein.
According to the video on demand transcoding method and device, the second P2P node sends the video on demand transcoding parameters and the video on demand range parameters to the first P2P node and receives the corresponding target video, so that the first P2P node can transcode in real time according to the video on demand range parameters without transcoding the complete original video, the speed of the first P2P node responding to the data request command of the second P2P node is greatly increased, and the on demand experience of a user is improved. In addition, the video-on-demand method based on the P2P node real-time transcoding can fully utilize the computing resources of the P2P node, does not need to store pre-transcoding files, and reduces a large amount of storage cost.
The application also provides a P2P node, where the P2P node may be a set top box, a personal computer, a smart phone, a tablet computer, a palm computer, a portable computer, and the like.
Referring to fig. 6, fig. 6 is a block diagram of a P2P node disclosed herein, and may include a processor 501, a communication circuit 502, and a memory 503.
The memory 503 includes at least one type of readable storage medium, including flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. Further, the memory 503 may be used not only to store application software of an electronic device and various types of data, such as code of the computer program 504, but also to temporarily store data that has been output or is to be output.
The processor 501 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip in some embodiments, for executing program code or processing data stored in the memory 503 to implement the video-on-demand method provided in any of the embodiments described above, such as executing the computer program 504 or the like.
The communication circuit 502 may be a peripheral component interconnect standard bus or an extended industry standard architecture bus, or the like. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
The processor 501 is coupled to the communication circuit 502 and the memory 503 for executing the computer program 504.
The P2P node provided by the embodiment of the invention can avoid the problem that video on demand cannot be hit when a video source end does not store video files with a certain resolution.
For the method of the above embodiment, which may exist in the form of a computer program, the present application proposes a computer readable storage medium, please refer to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of the computer readable storage medium provided in the present application. The computer-readable storage medium 600 of the present embodiment stores therein a computer program 601 that can be executed to implement the method in the above-described embodiment.
The computer readable storage medium 600 of this embodiment may be a medium such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disc, which may store program instructions, or may be a server storing the program instructions, where the server may send the stored program instructions to another device for execution, or may also self-execute the stored program instructions.
It should be noted that, the foregoing embodiment numbers are merely for describing the embodiments, and do not represent the advantages and disadvantages of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (8)

1. A video-on-demand method, comprising:
the method comprises the steps that a first P2P node responds to a connection request to establish connection with a second P2P node, wherein the number of the first P2P nodes is a plurality of;
the first P2P node responds to the video on demand transcoding parameters directly sent by the second P2P node, and performs distributed conversion processing on the original video pointed by the video on demand transcoding parameters to obtain a target video corresponding to the video on demand transcoding parameters;
the first P2P node sends the target video to the second P2P node;
the transcoding parameters include resolution, and the step of performing distributed conversion processing on the original video pointed by the video on demand transcoding parameters includes the steps of:
each of the first P2P nodes receives video on demand range parameters from the second P2P node;
the step of performing distributed conversion processing on the original video pointed by the video on demand transcoding parameters to obtain target video corresponding to the video on demand transcoding parameters comprises the following steps:
and each first P2P node respectively extracts the video part defined by the video on demand range parameter from the original video, and converts the video part into a target video with target resolution.
2. The video-on-demand method according to claim 1, wherein,
the step of performing distributed conversion processing on the original video pointed by the video on demand transcoding parameters, before obtaining the target video corresponding to the video on demand transcoding parameters, comprises the following steps:
the first P2P node receives the target resolution from the second P2P node.
3. The video-on-demand method according to claim 2, wherein,
the first P2P node receiving the target resolution from the second P2P node includes:
and the first P2P node performs initialization preparation on the original video conversion processing.
4. A video-on-demand method, comprising:
the second P2P node initiates a connection request to a first P2P node, and establishes connection with the first P2P node, wherein the number of the first P2P nodes is a plurality of;
the second P2P node sends video-on-demand transcoding parameters to the first P2P node;
the second P2P node receives a target video corresponding to the video on demand transcoding parameter from the first P2P node, wherein the target video is obtained by performing distributed conversion processing on an original video by the first P2P node according to the video on demand transcoding parameter;
wherein the transcoding parameters include resolution, and before the second P2P node sends the video on demand transcoding parameters to the first P2P node, the method includes:
the second P2P node sends video-on-demand range parameters to each first P2P node;
the first P2P node performing distributed conversion processing on the original video according to the video on demand transcoding parameter to obtain the target video includes:
and each first P2P node respectively extracts the video part defined by the video on demand range parameter from the original video, and converts the video part into a target video with target resolution.
5. The video-on-demand method according to claim 4, wherein,
the second P2P node sends the video on demand transcoding parameters to the first P2P node, and then includes:
and the second P2P node sends the video-on-demand range parameter to the first P2P node.
6. The video-on-demand method according to claim 4, wherein,
the second P2P node sending video on demand transcoding parameters to the first P2P node includes:
the second P2P node sends video on demand resolution to the first P2P node.
7. A P2P node, comprising:
the communication circuit is used for being connected with another P2P node;
a memory for storing a computer program;
a processor coupled to said memory and to said communication circuit for implementing a video-on-demand method as claimed in any one of claims 1 to 6 when said computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any of claims 1-6.
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 playing of audio/video contents
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
CN110677727B (en) Audio and video playing method and device, electronic equipment and storage medium
KR101467430B1 (en) Method and system for providing application based on cloud computing
CN102571979A (en) Multi-screen interactive equipment and binding method thereof
US20170162229A1 (en) Play method and device
WO2019128800A1 (en) Content service implementation method and device, and content delivery network node
CN112839238B (en) Screen projection playing method and device and storage medium
US20170171585A1 (en) Method and Electronic Device for Recording Live Streaming Media
CN114040232B (en) Screen projection system, screen projection method, electronic equipment and storage medium
WO2015035957A1 (en) Video resource obtaining method, backend server, video client, and system
US20180146230A1 (en) Content item aggregation method, related apparatus, and communications system
US20170171579A1 (en) Method and Device for Transcoding Live Video
CN107547517B (en) Audio and video program recording method, network equipment and computer device
US20080115177A1 (en) Method and system for providing a file
CN111107387B (en) Video transcoding method and device and computer storage medium
US10708330B2 (en) Multimedia resource management method, cloud server and electronic apparatus
CN107105317B (en) Video playing method and device
CN112929756B (en) Video on demand method, P2P node and computer readable storage medium
CN113132194A (en) Information transfer method, device, equipment, server and storage medium
CN114501068B (en) Video live broadcast method, architecture, system and computer readable storage medium
CN115865884A (en) Network camera data access device and method, network camera and medium
JP6063952B2 (en) Method for displaying multimedia assets, associated system, media client, and associated media server
CN105516737A (en) Multimedia format file conversion method
US8973082B2 (en) Interactive program system
US20180160173A1 (en) System for providing cloud-based user interfaces and method thereof

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