[go: up one dir, main page]

CN106961630A - A kind of P2P streaming media video player methods optimized based on DASH - Google Patents

A kind of P2P streaming media video player methods optimized based on DASH Download PDF

Info

Publication number
CN106961630A
CN106961630A CN201710182224.2A CN201710182224A CN106961630A CN 106961630 A CN106961630 A CN 106961630A CN 201710182224 A CN201710182224 A CN 201710182224A CN 106961630 A CN106961630 A CN 106961630A
Authority
CN
China
Prior art keywords
video
server
peer
burst
node group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710182224.2A
Other languages
Chinese (zh)
Other versions
CN106961630B (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.)
Xijiao Chuanshu Institute Sichuan Digital Industry Development Co ltd
Original Assignee
Xian University of Technology
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 Xian University of Technology filed Critical Xian University of Technology
Priority to CN201710182224.2A priority Critical patent/CN106961630B/en
Publication of CN106961630A publication Critical patent/CN106961630A/en
Application granted granted Critical
Publication of CN106961630B publication Critical patent/CN106961630B/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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of P2P streaming media video player methods optimized based on DASH, step includes:1st, hardware system includes server, seed node group and the part of user node three, and user node is also known as peer;Step 2, server and seed node group prepare video slicing, and server generates the initial MPD file of burst, and seed node group obtains video resource, the server generation MPD files for accessing position more from server;Step 3, peer obtain video slicing and carry out adaptive identifying.The method of the present invention, it is ensured that the steady quality that P2P streaming media videos are played is reliable.

Description

一种基于DASH优化的P2P流媒体视频播放方法A P2P streaming video playback method based on DASH optimization

技术领域technical field

本发明属于P2P流媒体技术领域,涉及一种基于DASH优化的P2P流媒体视频播放方法。The invention belongs to the technical field of P2P streaming media, and relates to a P2P streaming video playback method based on DASH optimization.

背景技术Background technique

P2P流媒体技术采用P2P的对等网络架构,利用P2P的文件交换技术,实现数字媒体内容多节点同时流式传输并播放。在P2P流媒体系统(流媒体播放系统)中,服务器只需向少量结点发送数据,而这些节点可以把得到的数据分享给其他结点,每个结点都可以通过流媒体系统得到高质量的视频服务。P2P流媒体技术分为点播和直播。在P2P流媒体系统的点播服务中,播放的媒体数据已经录制好、存储在固定服务器上,对实时性要求不高,用户可对点播的视频节目施加各种控制,如停止、暂停、快进等。P2P streaming media technology uses P2P peer-to-peer network architecture and P2P file exchange technology to realize multi-node simultaneous streaming and playback of digital media content. In the P2P streaming media system (streaming media playback system), the server only needs to send data to a small number of nodes, and these nodes can share the obtained data with other nodes, and each node can get high-quality data through the streaming media system. video service. P2P streaming media technology is divided into on-demand and live broadcast. In the on-demand service of the P2P streaming media system, the played media data has been recorded and stored on a fixed server, and the real-time requirements are not high. Users can exert various controls on the on-demand video programs, such as stop, pause, and fast forward. Wait.

然而,在用户需求以及终端设备多元化的推动下,互联网结构特别是接入网形态越来越丰富,网络的动态变化性不可避免,网络差异对用户的播放体验有很大影响。虽然P2P流媒体技术在流媒体系统中的应用降低了服务器压力,提高了系统的服务能力,而且改善了用户体验,但是这也无法掩盖它存在的不足,如版权问题、安全问题、消耗大量带宽的问题;另外,一个关键的问题是,P2P流媒体系统的视频数据块在格式上并非公有格式,不能使用一些现成的视频播放技术,如HTML5的MSE扩展(Media Source Extensions、媒体源扩展)等进行解码播放,而是需要一套自己的解码播放组件。However, driven by user demands and the diversification of terminal equipment, the Internet structure, especially the access network form, is becoming more and more abundant. The dynamic changes of the network are inevitable, and network differences have a great impact on the user's playback experience. Although the application of P2P streaming media technology in the streaming media system reduces the pressure on the server, improves the service capability of the system, and improves the user experience, it cannot cover up its shortcomings, such as copyright issues, security issues, and consumption of a large amount of bandwidth. In addition, a key issue is that the format of the video data blocks of the P2P streaming media system is not a public format, and some ready-made video playback technologies cannot be used, such as MSE extensions (Media Source Extensions, Media Source Extensions) of HTML5, etc. For decoding and playback, it needs a set of its own decoding and playback components.

针对上述问题,采用DASH(Dynamic Adaptive Streaming over HTTP,动态自适应流媒体)技术可有效解决这些问题,这是因为已经制定和公开的DASH标准,支持同一视频内容的多种码流,支持音视频技术、支持直播和点播、支持数字版权安全。In view of the above problems, the use of DASH (Dynamic Adaptive Streaming over HTTP, dynamic adaptive streaming media) technology can effectively solve these problems, because the DASH standard has been formulated and published, supports multiple streams of the same video content, supports audio and video technology, support live and on-demand, and support digital copyright security.

DASH技术是一个跨平台的标准,而不是仅仅只支持有限的平台和浏览器,它几乎被所有流行的浏览器所支持。DASH标准规定视频按照一定的规则分割成独立的块,这些块分为包含编解码信息初始块和媒体数据块,初始块为媒体数据块提供了解码信息,而每个块则是公开统一的结构;DASH还会生成一个描述文件对该视频流进行描述,这些技术特点与P2P流媒体技术的特点非常契合。DASH技术可以为媒体文件提供多个码率的视频分片组,以覆盖不同的网络带宽需求;从而在保证观看效果的同时,减少客户端的卡顿和缓冲,具有网络自适应的能力。DASH技术的数字版权保护规则,则为解决P2P流媒体技术视频播放的版权问题,提供了一个新的可能。DASH technology is a cross-platform standard, instead of only supporting limited platforms and browsers, it is supported by almost all popular browsers. The DASH standard stipulates that the video is divided into independent blocks according to certain rules. These blocks are divided into initial blocks containing codec information and media data blocks. The initial block provides decoding information for the media data blocks, and each block is an open and unified structure. ; DASH will also generate a description file to describe the video stream, and these technical characteristics are very consistent with the characteristics of P2P streaming media technology. DASH technology can provide video fragmentation groups with multiple bit rates for media files to cover different network bandwidth requirements; thus, while ensuring the viewing effect, it reduces the client's stuttering and buffering, and has the ability of network self-adaptation. The digital copyright protection rules of DASH technology provide a new possibility to solve the copyright problem of video playback in P2P streaming media technology.

对于标准的DASH视频播放系统而言,服务器承担系统所有负载,当客户端不断增多的时候,服务器明显会效率降低;对于传统的P2P流媒体系统,虽然达到了负载均衡,但随着网络的不断变化,peer在接收播放的时候也会出现播放卡顿及停播的情况,连续的卡顿对于用户是不能容忍的。如果将DASH和P2P流媒体技术结合,既解决了DASH技术对中心服务器的负载压力和故障风险,也解决了P2P流媒体技术利用的一些难点,如简化P2P视频客户端的开发等,这使得二者结合的系统显得具有明显的优势。For the standard DASH video playback system, the server bears all the load of the system. When the number of clients continues to increase, the efficiency of the server will obviously decrease; Changes, when the peer is receiving and playing, the playback will freeze or stop broadcasting. Continuous freezes are intolerable to users. If DASH and P2P streaming media technology are combined, it not only solves the load pressure and failure risk of DASH technology on the central server, but also solves some difficulties in the use of P2P streaming media technology, such as simplifying the development of P2P video client, which makes the two The combined system appears to have clear advantages.

发明内容Contents of the invention

本发明的目的是提供一种基于DASH优化的P2P流媒体视频播放方法,解决了用户端网络环境不稳定引起的播放卡顿及停播的问题。The purpose of the present invention is to provide a P2P streaming video playback method based on DASH optimization, which solves the problems of playback freeze and stoppage caused by unstable network environment at the user end.

本发明所采用的技术方案是,一种基于DASH优化的P2P流媒体视频播放方法,按照以下步骤实施:The technical scheme adopted in the present invention is, a kind of P2P stream media video playing method based on DASH optimization, implement according to the following steps:

步骤1、硬件系统包括服务器、种子节点组和用户节点三部分,用户节点又称为peer;Step 1. The hardware system includes three parts: server, seed node group and user nodes. User nodes are also called peers;

步骤2、服务器和种子节点组准备视频分片Step 2. The server and seed node group prepare video fragmentation

2.1)服务器生成分片的初始MPD文件2.1) The server generates the initial MPD file of the fragment

服务器根据DASH协议将视频文件切割分片,生成初始MPD文件;The server slices the video file according to the DASH protocol to generate the initial MPD file;

2.2)种子节点组从服务器获取视频资源2.2) The seed node group obtains video resources from the server

种子节点组向服务器注册并请求初始MPD文件,解析初始MPD文件获取视频资源信息,根据自身能力选择视频资源进行下载,一旦选择了某视频,就将其整套视频分片全部下载到本地;The seed node group registers with the server and requests the initial MPD file, parses the initial MPD file to obtain video resource information, selects the video resource to download according to its own ability, and once a certain video is selected, downloads the entire set of video fragments to the local;

2.3)服务器生成多访问位置的MPD文件2.3) The server generates MPD files with multiple access locations

服务器监控种子节点组,待种子节点组下载初始MPD文件完毕后,汇总种子节点组拥有的视频资源信息,生成多访问位置的MPD文件,等待peer下载;The server monitors the seed node group, after the seed node group downloads the initial MPD file, summarizes the video resource information owned by the seed node group, generates an MPD file with multiple access locations, and waits for the peer to download;

步骤3、peer获取视频分片并进行自适应播放Step 3. Peer obtains video fragments and performs adaptive playback

3.1)peer开始下载时,先向服务器请求视频,收到服务器发来的MPD文件后,解析获取到视频分片的码率、最大带宽及最小带宽、分辨率以及分片的若干个访问位置信息,然后根据网络环境选择合适的码率及访问位置开始下载视频分片;3.1) When the peer starts downloading, it first requests the video from the server, and after receiving the MPD file from the server, it parses and obtains the code rate, maximum bandwidth, minimum bandwidth, resolution and several access location information of the video fragment , and then select the appropriate bit rate and access location according to the network environment to start downloading video fragments;

3.2)peer缓存少量视频分片后开始播放,边播放边下载后续视频分片,并将其缓存在本地的分片统计到一张资源表中,以便与其他peer交互;以视频资源标识和分片基本信息属性为列来建立资源表;3.2) The peer caches a small amount of video fragments and starts playing, downloads subsequent video fragments while playing, and counts the fragments cached locally into a resource table for interaction with other peers; The basic information attribute of the slice is a column to create a resource table;

3.3)peer每次下载下一个分片时,根据资源表生成统一的查询消息,发送给邻居peers进行分片的查询,并根据查询结果,从其邻居peer和MPD文件中解析出的访问位置中确定下载位置,通过HTTP协议进行下载。3.3) Each time the peer downloads the next fragment, it generates a unified query message according to the resource table, sends it to neighbor peers for fragment query, and according to the query result, parses the access location from its neighbor peer and MPD file Determine the download location and download via the HTTP protocol.

本发明的有益效果是,将DASH的分片方法应用到P2P流媒体系统中,与传统P2P流媒体系统相比,本方法的使用可以将DASH的码率自适应技术引入P2P流媒体系统,不改变P2P流媒体系统的负载均衡特性,不仅解决了单一负载的问题,而且使得P2P流媒体系统中peer播放视频时也可以随着网络环境的变化进行码率自适应,解决了用户端网络环境不稳定引起的播放卡顿及停播等问题,提高了播放流畅度,改善了用户播放体验。最重要的,本发明的方法使得在Web环境里无需安装任何插件和客户端,实现在P2P流媒体系统中视频播放成为一种可能。The beneficial effects of the present invention are that the fragmentation method of DASH is applied to the P2P streaming media system, compared with the traditional P2P streaming media system, the use of this method can introduce the code rate adaptive technology of DASH into the P2P streaming media system, without Changing the load balancing characteristics of the P2P streaming media system not only solves the problem of a single load, but also enables the peer in the P2P streaming media system to adapt to the bit rate as the network environment changes when playing video, which solves the problem of the network environment of the client. Stability caused problems such as playback freezes and stoppages, which improved the playback fluency and improved the user's playback experience. Most importantly, the method of the present invention makes it possible to realize video playback in the P2P streaming media system without installing any plug-ins and clients in the Web environment.

附图说明Description of drawings

图1为本发明方法的整体结构总图;Fig. 1 is the overall structure general diagram of the inventive method;

图2为本发明方法中的分片下载原理示意图。Fig. 2 is a schematic diagram of the principle of segment downloading in the method of the present invention.

具体实施方式detailed description

下面结合附图和具体实施方式对本发明进行详细说明。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

一般情况下,在DASH系统中,视频资源都存储在服务器,视频分片只可在服务器访问,但也有可能为了减缓服务器压力,将视频资源存储在多个服务器上,这样,相同的视频分片可以在多个位置访问。而在P2P流媒体系统中,视频资源不仅可以存储在服务器上,还可以存储在用户节点上,恰好符合DASH系统中相同分片有多个访问位置的情况。In general, in the DASH system, video resources are stored on the server, and video fragments can only be accessed on the server, but it is also possible to store video resources on multiple servers in order to reduce server pressure, so that the same video fragment Can be accessed in multiple locations. In the P2P streaming media system, video resources can be stored not only on the server, but also on the user node, which is just in line with the situation that the same segment has multiple access locations in the DASH system.

在MPD中,BaseURL元素可以为分片和其他资源指定一个或者多个公共位置信息。根据DASH标准中的描述可知,BaseURL可以出现在MPD文件中的MPD级、Period级、Adaptation Set级和Representation级。如果在任何级别的BaseURL元素中提供了备用的基本分片URL,则相同的分片可以在多个位置访问;那么,通过在MPD文件中某几个等级的BaseURL中提供备用分片URL来实现多位置访问。系统中服务器和种子节点组都有视频数据,同一个分片有多个访问位置,由于种子节点一旦下载了某视频,就会将该视频的整套分片全部下载下来,所以种子节点上存储的视频数据是完整且与服务器上完全相同的,所以能够在MPD级别的BaseURL中提供多个分片URL。In MPD, the BaseURL element can specify one or more public location information for slices and other resources. According to the description in the DASH standard, BaseURL can appear in the MPD level, Period level, Adaptation Set level and Representation level in the MPD file. The same shard can be accessed in multiple locations if an alternate base shard URL is provided in the BaseURL element at any level; then, by providing an alternate shard URL in the BaseURL at some level in the MPD file Multiple location access. In the system, both the server and the seed node group have video data, and the same segment has multiple access locations. Once the seed node downloads a certain video, it will download all the segments of the video, so the data stored on the seed node The video data is complete and identical to that on the server, so multiple segment URLs can be provided in the MPD-level BaseURL.

本发明基于DASH优化的P2P流媒体视频播放方法,基于上述的原理,按照以下步骤具体实施:The present invention is based on the DASH optimized P2P streaming video playback method, based on the above-mentioned principle, concrete implementation according to the following steps:

步骤1、硬件系统包括服务器、种子节点组和用户节点三部分Step 1. The hardware system includes three parts: server, seed node group and user node

如图1所示,服务器提供视频播放的原始多媒体资源,负责将视频分片生成MPD文件,为种子节点组和用户节点服务;种子节点组包括多个种子节点(比如图1中的种子节点1、种子节点2、种子节点3),各个种子节点从服务器处获取部分视频资源,保存在本地,供用户节点下载;用户节点在P2P系统中称为Peer,包括多个Peer(比如图1中的Peer A、Peer B、Peer C),用户节点是接收、解码和播放视频的终端,各个Peer从服务器、种子节点组或者其相邻的peer处获取视频分片进行播放;As shown in Figure 1, the server provides the original multimedia resources of video playback, is responsible for generating MPD files with video fragmentation, and serves the seed node group and user nodes; the seed node group includes a plurality of seed nodes (such as seed node 1 in Figure 1 , seed node 2, seed node 3), each seed node obtains part of the video resource from the server, saves it locally, and downloads it for the user node; the user node is called Peer in the P2P system, including multiple Peers (such as Fig. 1 Peer A, Peer B, Peer C), the user node is the terminal for receiving, decoding and playing video, and each Peer obtains video fragments from the server, seed node group or its adjacent peers to play;

步骤2、服务器和种子节点组准备视频分片Step 2. The server and seed node group prepare video fragmentation

2.1)服务器生成分片的初始MPD文件2.1) The server generates the initial MPD file of the fragment

服务器根据DASH协议将视频文件切割分片,生成初始MPD文件;The server slices the video file according to the DASH protocol to generate the initial MPD file;

2.2)种子节点组从服务器获取视频资源2.2) The seed node group obtains video resources from the server

种子节点组向服务器注册并请求初始MPD文件,解析初始MPD文件获取视频资源信息,根据自身能力选择视频资源进行下载,一旦选择了某视频,就将其整套视频分片(包括多种码率)全部下载到本地;The seed node group registers with the server and requests the initial MPD file, parses the initial MPD file to obtain video resource information, and selects video resources for download according to its own capabilities. Once a certain video is selected, the entire set of video fragments (including multiple bit rates) are segmented. Download all to local;

2.3)服务器生成多访问位置的MPD文件2.3) The server generates MPD files with multiple access locations

服务器监控种子节点组,待种子节点组下载初始MPD文件完毕后,汇总种子节点组拥有的视频资源信息,生成多访问位置的MPD文件,等待peer下载;The server monitors the seed node group, after the seed node group downloads the initial MPD file, summarizes the video resource information owned by the seed node group, generates an MPD file with multiple access locations, and waits for the peer to download;

步骤3、peer获取视频分片并进行自适应播放Step 3. Peer obtains video fragments and performs adaptive playback

3.1)peer开始下载时,先向服务器请求视频,收到服务器发来的MPD文件后,解析获取到视频分片的码率、最大带宽及最小带宽、分辨率以及分片的若干个访问位置等信息,然后根据网络环境选择合适的码率及访问位置开始下载视频分片;3.1) When the peer starts downloading, it first requests the video from the server, and after receiving the MPD file from the server, it analyzes and obtains the code rate, maximum bandwidth, minimum bandwidth, resolution, and several access locations of the video fragment, etc. Information, and then select the appropriate bit rate and access location according to the network environment to start downloading video fragments;

3.2)peer缓存少量视频分片后开始播放,边播放边下载后续视频分片,并将其缓存在本地的分片统计到一张资源表中,以便与其他peer交互;以视频资源标识和分片基本信息属性为列来建立资源表;3.2) The peer caches a small amount of video fragments and starts playing, downloads subsequent video fragments while playing, and counts the fragments cached locally into a resource table for interaction with other peers; The basic information attribute of the slice is a column to create a resource table;

分片基本信息属性包括:码率、分辨率、分片名和分片URL,资源表用于邻居peer之间相互查询自己所需的视频分片。The basic information attributes of the segment include: bit rate, resolution, segment name and segment URL, and the resource table is used for neighboring peers to query each other for the video segments they need.

3.3)peer每次下载下一个分片时,根据资源表生成统一的查询消息,发送给邻居peers进行分片的查询,并根据查询结果,从其邻居peer和MPD文件中解析出的访问位置中确定下载位置,通过HTTP协议进行下载。3.3) Each time the peer downloads the next fragment, it generates a unified query message according to the resource table, sends it to neighbor peers for fragment query, and according to the query result, parses the access location from its neighbor peer and MPD file Determine the download location and download via the HTTP protocol.

本发明方法的工作原理是,将视频资源分散到系统中,由种子节点组和普通的用户节点来分担服务器的负担:服务器按照DASH协议对视频进行分片,分发到种子节点组,并生成多访问位置的MPD文件,供给peer下载播放;peer从服务器下载多访问位置的MPD文件,解析获取所需分片的多个码率和多个访问位置,同时向其邻居节点查询是否有所需分片,然后根据网络选择合适的码率,并从服务器、种子节点组或者其邻居节点处通过HTTP协议下载播放视频分片,具体过程如图2所示。在图2中显示了P2P网络中的某一个Peer如何从服务器、种子主机和其他的Peer获取视频分片来进行播放的全过程。The working principle of the method of the present invention is to disperse video resources into the system, and share the burden of the server by the seed node group and ordinary user nodes: the server slices the video according to the DASH protocol, distributes it to the seed node group, and generates multiple The MPD file of the access location is provided to the peer to download and play; the peer downloads the MPD file of the multi-access location from the server, analyzes and obtains multiple code rates and multiple access locations of the required fragments, and at the same time inquires whether there are required fragments from its neighbor nodes. Then select the appropriate code rate according to the network, and download and play video fragments from the server, seed node group or its neighbor nodes through the HTTP protocol. The specific process is shown in Figure 2. Figure 2 shows the whole process of how a certain Peer in the P2P network obtains video fragments from the server, seed host and other Peers to play.

实施例Example

1、多访问位置的MPD文件1. MPD files with multiple access locations

本实施例中,MPD文件描述的内容来源有三个(seed1、seed2和seed3),并提供视频的不同码率和分辨率的五个版本,比特率在512kbit/s和2Mbit/s之间。一个有三个访问位置的MPD文件部分内容示例如下:In this embodiment, there are three sources of content described in the MPD file (seed1, seed2 and seed3), and five versions of different bit rates and resolutions of the video are provided, and the bit rate is between 512kbit/s and 2Mbit/s. An example of the partial content of an MPD file with three access locations is as follows:

2、资源表2. Resource table

由于Peer的缓存是有限的,所以表中记录不会很多,维护并不困难。表1是一个资源表的具体设置。Since Peer's cache is limited, there will not be many records in the table, and maintenance is not difficult. Table 1 is the specific setting of a resource table.

表1、资源表的具体设置结构Table 1. The specific setting structure of the resource table

从表1可以看出,该peer缓存了两种视频资源的部分视频分片,视频1缓存了第三和第四两个视频分片,两个视频分片的码率和分片率不同;视频2缓存了第七、第八和第九个视频分片,第七和第八两个视频分片的码率和分辨率相同,第九个视频分片的码率分辨率比较高。在接收到查询视频分片信息时,根据码率、分辨率和视频分片名来确定唯一分片。查找到对应视频分片,返回其分片URL信息,否则查找失败。It can be seen from Table 1 that the peer caches some video fragments of two video resources, and video 1 caches the third and fourth video fragments, and the code rate and fragmentation rate of the two video fragments are different; Video 2 caches the seventh, eighth and ninth video fragments, the seventh and eighth video fragments have the same bit rate and resolution, and the ninth video fragment has a higher bit rate and resolution. When receiving the query video segment information, determine the unique segment according to the code rate, resolution and video segment name. If the corresponding video fragment is found, the URL information of the fragment is returned, otherwise the search fails.

Claims (3)

1. a kind of P2P streaming media video player methods optimized based on DASH, it is characterised in that implement according to following steps:
Step 1, hardware system include server, seed node group and the part of user node three, and user node is also known as peer;
Step 2, server and seed node group prepare video slicing
2.1) server generates the initial MPD file of burst
Video file is cut burst by server according to DASH agreements, generates initial MPD file;
2.2) seed node group obtains video resource from server
Seed node group is to server registration and asks initial MPD file, parses initial MPD file and obtains video resource information, Select video resource to be downloaded according to self-ability, once have selected certain video, just all download its a whole set of video slicing To local;
2.3) the server generation MPD files for accessing position more
Server monitoring seed node group, after the initial MPD file of seed node group download is finished, collects seed node group and possesses Video resource information, the generation MPD files for accessing positions wait peer to download more;
Step 3, peer obtain video slicing and carry out adaptive identifying
3.1) when peer starts to download, first to server request video, receive after the MPD file that server is sent, parsing is obtained Several to the code check of video slicing, maximum bandwidth and minimum bandwidth, resolution ratio and burst access positional information, Ran Hougen Suitable code check and access position is selected to start foradownloaded video burst according to network environment;
3.2) peer is commenced play out after caching a small amount of video slicing, downloads subsequent video burst when playing, and be buffered in Local burst is counted in a resource table, to be interacted with other peer;With video resource mark and burst essential information Attribute sets up resource table for row;
3.3) when peer downloads next burst every time, unified query messages is generated according to resource table, neighbours peers is sent to The inquiry of burst is carried out, and according to Query Result, under being determined in the access position parsed from its neighbours peer and MPD file Position is carried, is downloaded by http protocol.
2. the P2P streaming media video player methods according to claim 1 optimized based on DASH, it is characterised in that:It is described Step 1 in,
Server provides the initial multimedia resource of video playback, is responsible for video slicing generating MPD file, is seed node group With user node service;
Seed node group includes multiple seed nodes, and each seed node fetching portion video resource at server is stored in Locally, downloaded for user node;
User node is referred to as Peer, including multiple Peer in P2P systems, and user node is reception, decoding and plays video Terminal, each Peer obtains video slicing at server, seed node group or its adjacent peer and played out.
3. the P2P streaming media video player methods according to claim 1 optimized based on DASH, it is characterised in that:It is described Step 3.2) in, burst essential information attribute include code check, resolution ratio, burst name and burst URL, resource table be used for neighbours The video slicing mutually inquired about needed for oneself between peer.
CN201710182224.2A 2017-03-24 2017-03-24 A kind of P2P streaming media video playback method based on DASH optimization Active CN106961630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710182224.2A CN106961630B (en) 2017-03-24 2017-03-24 A kind of P2P streaming media video playback method based on DASH optimization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710182224.2A CN106961630B (en) 2017-03-24 2017-03-24 A kind of P2P streaming media video playback method based on DASH optimization

Publications (2)

Publication Number Publication Date
CN106961630A true CN106961630A (en) 2017-07-18
CN106961630B CN106961630B (en) 2019-08-16

Family

ID=59471507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710182224.2A Active CN106961630B (en) 2017-03-24 2017-03-24 A kind of P2P streaming media video playback method based on DASH optimization

Country Status (1)

Country Link
CN (1) CN106961630B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618008A (en) * 2019-01-29 2019-04-12 浪潮金融信息技术有限公司 A kind of Multi-media Material delivery method that distributed environment decline low network band width occupies
WO2019128667A1 (en) * 2017-12-29 2019-07-04 中兴通讯股份有限公司 Video playback method and terminal, server and storage medium
CN111510790A (en) * 2019-01-30 2020-08-07 上海哔哩哔哩科技有限公司 Video request method, system, computer device, and computer-readable storage medium
CN112543357A (en) * 2020-11-26 2021-03-23 郑州铁路职业技术学院 Streaming media data transmission method based on DASH protocol
CN113259688A (en) * 2021-05-12 2021-08-13 湖南快乐阳光互动娱乐传媒有限公司 Storage allocation method and device for video resources
CN114189701A (en) * 2021-11-29 2022-03-15 珠海迈越信息技术有限公司 Method for dynamically adjusting data receiving and sending of live broadcast server in P2P network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232298A (en) * 2011-04-07 2011-11-02 华为技术有限公司 Method, device and system for transmitting and processing media content
CN105144738A (en) * 2013-06-06 2015-12-09 英特尔公司 Manager for DASH media streaming
CN105408916A (en) * 2013-07-26 2016-03-16 华为技术有限公司 Systems and methods for spatial adaptation in adaptive streaming media
CN105794160A (en) * 2014-01-06 2016-07-20 英特尔公司 Client/server signaling commands for DASH

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232298A (en) * 2011-04-07 2011-11-02 华为技术有限公司 Method, device and system for transmitting and processing media content
CN105144738A (en) * 2013-06-06 2015-12-09 英特尔公司 Manager for DASH media streaming
CN105408916A (en) * 2013-07-26 2016-03-16 华为技术有限公司 Systems and methods for spatial adaptation in adaptive streaming media
CN105794160A (en) * 2014-01-06 2016-07-20 英特尔公司 Client/server signaling commands for DASH

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019128667A1 (en) * 2017-12-29 2019-07-04 中兴通讯股份有限公司 Video playback method and terminal, server and storage medium
CN109996110A (en) * 2017-12-29 2019-07-09 中兴通讯股份有限公司 A kind of video broadcasting method, terminal, server and storage medium
CN109996110B (en) * 2017-12-29 2021-10-22 中兴通讯股份有限公司 Video playing method, terminal, server and storage medium
CN109618008A (en) * 2019-01-29 2019-04-12 浪潮金融信息技术有限公司 A kind of Multi-media Material delivery method that distributed environment decline low network band width occupies
CN111510790A (en) * 2019-01-30 2020-08-07 上海哔哩哔哩科技有限公司 Video request method, system, computer device, and computer-readable storage medium
CN112543357A (en) * 2020-11-26 2021-03-23 郑州铁路职业技术学院 Streaming media data transmission method based on DASH protocol
CN112543357B (en) * 2020-11-26 2023-09-08 郑州铁路职业技术学院 Stream media data transmission method based on DASH protocol
CN113259688A (en) * 2021-05-12 2021-08-13 湖南快乐阳光互动娱乐传媒有限公司 Storage allocation method and device for video resources
CN114189701A (en) * 2021-11-29 2022-03-15 珠海迈越信息技术有限公司 Method for dynamically adjusting data receiving and sending of live broadcast server in P2P network
CN114189701B (en) * 2021-11-29 2024-04-02 珠海迈越信息技术有限公司 Method for dynamically adjusting receiving and transmitting data by live broadcast server in P2P network

Also Published As

Publication number Publication date
CN106961630B (en) 2019-08-16

Similar Documents

Publication Publication Date Title
JP6944485B2 (en) Requests for multiple chunks to a network node based on a single request message
CN106961630B (en) A kind of P2P streaming media video playback method based on DASH optimization
US9979771B2 (en) Adaptive variable fidelity media distribution system and method
JP5897134B2 (en) Mobile multimedia real-time transcoding system, apparatus, storage medium, and method
US10148716B1 (en) Dynamic generation of video manifest files
US10264093B2 (en) Systems and methods for partial video caching
JP4619353B2 (en) System for distributing multimedia content
JP6612249B2 (en) Targeted ad insertion for streaming media data
WO2017071228A1 (en) Hls protocol-based method and system for live broadcast and client
US20080037527A1 (en) Peer-to-Peer Interactive Media-on-Demand
Lederer et al. Towards peer-assisted dynamic adaptive streaming over HTTP
WO2007039576A1 (en) A content distribution system and a user request redirection method thereof
WO2008080343A1 (en) A method and apparatus for reducing delay of media play
CN104782147A (en) Communication receiver
CN1897588A (en) Mixed-mode network file transmitting method and system
CN102547478A (en) Triggered slice on-demand system and method of streaming media based on CDN (Content Distribution Network)
WO2017161757A1 (en) Method and system for distributing streaming media file
WO2015042962A1 (en) System and method of a link surfed http live streaming broadcasting system
WO2015109847A1 (en) Method for rapidly delivering segmented programs, server and client
Kumar et al. Edge assisted DASH video caching mechanism for multi-access edge computing
JPWO2018043134A1 (en) Delivery device, delivery method, receiving device, receiving method, program, and content delivery system
US9386056B1 (en) System, method and computer readable medium for providing media stream fragments
Barbosa et al. Towards the application of WebRTC peer-to-peer to scale live video streaming over the internet
Guo et al. Optimized streaming media proxy and its applications
CN109286856A (en) The P2P live broadcast system broadcast and method are opened in acceleration

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220729

Address after: Chengbei oak forest center, No. 88, Section 1, Jiefang Road, Jinniu District, Chengdu, Sichuan 610000

Patentee after: Sichuan Digital Economy Industry Development Research Institute

Address before: 710048 No. 5 Jinhua South Road, Shaanxi, Xi'an

Patentee before: XI'AN University OF TECHNOLOGY

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240826

Address after: Room 317, No. 9 Taihong Road, Jinniu District, Chengdu City, Sichuan Province 610000

Patentee after: Xijiao Chuanshu Institute (Sichuan) Digital Industry Development Co.,Ltd.

Country or region after: China

Address before: Chengbei oak forest center, No. 88, Section 1, Jiefang Road, Jinniu District, Chengdu, Sichuan 610000

Patentee before: Sichuan Digital Economy Industry Development Research Institute

Country or region before: China