CN105049938B - A kind of video broadcasting method based on Spice and memory sharing - Google Patents
A kind of video broadcasting method based on Spice and memory sharing Download PDFInfo
- Publication number
- CN105049938B CN105049938B CN201510545170.2A CN201510545170A CN105049938B CN 105049938 B CN105049938 B CN 105049938B CN 201510545170 A CN201510545170 A CN 201510545170A CN 105049938 B CN105049938 B CN 105049938B
- Authority
- CN
- China
- Prior art keywords
- spice
- server
- client
- memory
- video
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4437—Implementing a Virtual Machine [VM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
Abstract
The invention discloses a kind of video broadcasting methods based on Spice and memory sharing, comprise the following steps:Step 1: Spice Server and all Spice Client are configured as a cluster, all physics memory expansions in cluster into total address space and are established dynamic memory pool;Step 2: Spice Client apply playing video to Spice Server, whether the physical display card for judging Spice Client by Spice Server has the ability of decoding broadcasting video;If Step 3: not decoding ability to play, video processing is image one by one by Spice Server, and Spice Client are sent to after compression;If Step 4: there is decoding ability to play, Spice Client send request to HTTP websites and establish connection, HTTP websites download to video in the physical memory that Spice Client are allocated, and the physical display card of the virtual machine VM combination Spice Client of Spice Server generations plays video.The present invention selects different transmission of video and broadcast mode, effectively increases the rate of clients request video broadcasting, while alleviate the load of Spice Server according to the broadcast performance of Spice Client ends physical display card itself.
Description
Technical field
The present invention relates to the video method for downloading and playing under desktop virtualization agreement more particularly to it is a kind of based on Spice and
The video broadcasting method of memory sharing.
Background technology
Spice(Simple Protocol for Independent Computing Environment)It is one complete
The desktop services displaying agreement in standard-sized sheet source, is also to provide a desktop virtualization frame of remote desktop experience, can by Spice
Client is made to access remote machine desktop and equipment as using local computer, so as to the work of the intensity such as CPU, GPU
Make to transfer long-range high-performance machine to from client.Spice is made of three essential parts:Spice Server、Spice
Client and Spice agreements, Spice Server support Spice agreements, and acute pyogenic infection of finger tip installs the server of spice_server,
Spice Client support Spice agreements, and acute pyogenic infection of finger tip installs the client of spice_client.Pass through between server and client side
Spice agreements communicate, and the two is correspondingly provided with multiple passages, realize different functions respectively.
When Spice Client applications are connected to order video on Spice Server, Spice Server are firstly generated
One virtual machine VM, and the desktop of virtual machine VM is passed into Spice Client by coding, after Spice Client decodings
The desktop of virtual machine VM is shown on its screen using virtual video card VGPA.But at present for, much using Spice
Company or the physical display card of client its own client installation just possess the energy that decoding plays high definition picture and video completely
Power, therefore when playing video completely without by Spice Server.
The content of the invention
It is an object of the invention to provide a kind of video broadcasting methods based on Spice and memory sharing, being capable of basis
The ability to play of Spice Client ends physical display card itself, appropriately selects different transmission of video and broadcast mode, effectively carries
The rate that high clients request video plays, and alleviate the load of Spice Server.
To achieve the above object, the technical solution adopted by the present invention is:
A kind of video broadcasting method based on Spice and memory sharing, comprises the following steps:
Step 1: Spice Server and all Spice Client are configured as a cluster, in the cluster
All physical memories by logical extension become a total address space, establish Dram on total address space
Pond, and pass through and change virtual machine monitor VMM to upper level applications one unified memory management interfaces of offer;
Step 2: Spice Client send the request of application broadcasting video, Spice Server to Spice Server
The ability whether physical display card of Spice Client there is decoding to play the video is judged after receiving request, if not decoding
Ability to play then enters step three, if there is decoding ability to play, enters step four;
Step 3: the video processing that Spice Client applications play is one using Spice agreements by Spice Server
The image of one frame of frame carries out decompression broadcasting by being sent to Spice Client by Spice Server after MJPEG compression algorithms;
Step 4: Spice Client send request to HTTP websites establishes connection, the Spice Server in cluster from
Physical memory is distributed for Spice Client in dynamic memory pool, video is directly downloaded to by HTTP websites by RTMFP agreements
In the physical memory that Spice Client are allocated, the virtual machine VM of Spice Server generations finds the physical memory and calls
Flash plug-in units on itself player or video web-pages play video with reference to the physical display card of Spice Client.
Spice Server in the cluster are each Spice Client in memory pages as inner server
Unique server_ID is defined, Spice Server distribute physical memory from dynamic memory pool for Spice Client
When, Spice Client first compare the server_ID in the memory pages being assigned to the server_ID of itself, if
The two is identical, accesses own physical memory, and the server_ID in memory pages is submitted to Spice if the two difference
Server by the address of cache table search dynamic memory pool preserved in Spice Server, obtains Spice Client and wants
It accesses the physical address of memory and accesses the memory.
The process that connection is established in the Spice Client and HTTP websites is as follows:Spice Client are to HTTP websites
Send application establish connection request, HTTP websites receive request after to Spice Server send handshake request data packet,
The handshake request data packet that Spice Server are received to Spice Client forwardings, Spice Client are received to shake hands and asked
It asks and sends response data packet to HTTP websites after data packet, HTTP websites are built after receiving response data packet with Spice Client
Vertical connection communicates.
The present invention asks video playing to provide two ways on the basis of Spice services, for Spice Client:It is first
Spice Server and all Spice Client are first configured as a cluster, all physical memories in cluster are expanded
It opens up as dynamic memory pool, Spice Server serve as inner server in the cluster.When the physical display card of client does not possess solution
When code plays the ability of video, using the conventional transmission of video playback method of Spice services;When the physical display card of client possesses
When decoding plays the ability of video, specified memory, the visitor are distributed for the client by Spice Server from dynamic memory pool
Video is directly downloaded in specified memory by family end after establishing connection with HTTP websites, the virtual machine VM of Spice Server generations
The Flash plug-in units on itself player or video web-pages are called, play video with reference to the physical display card of client, the process is not
Spice Server is needed to be decoded video stream data, and are transferred to after re-starting coding, compression according to spice agreements
Spice Client shorten time delay during client terminal playing video, and alleviate the load of server.
Description of the drawings
Fig. 1 is the flow diagram of the present invention.
Specific embodiment
As shown in Figure 1, a kind of video broadcasting method based on Spice and memory sharing of the present invention, including following
Step:
Step 1: Spice Server and all Spice Client are configured as a cluster, in the cluster
All physical memories by logical extension become a total dynamic memory pool, and pass through change virtual machine monitor VMM to
Upper level applications provide a unified memory management interfaces.
Each Spice Client nodes are as memory client in cluster, and Spice Server are both the same as other Spice
Client nodes equally as memory client, can be used to provide memory, while again as inner server, for distributing other
Memory and equally loaded between memory client.It, need to be interior to inner server application memory when virtual machine VM needs memory
The batch operation that server initiates memory by remote system call to memory client is deposited, storage clothes are provided for virtual machine VM
Business.In order to distinguish the memory in cluster between each memory client node, Spice Server are as inner server, in memory
It is that each Spice Client define unique server_ID in the page, as its mark in the cluster.Inner server
The node of memory can be provided according to the IP address dynamic adjustment for the Spice Client for calling virtual machine VM, positioned at same local
The node memory of net can be distributed preferentially.
Step 2: Spice Client send the request of application broadcasting video, Spice Server to Spice Server
The ability whether physical display card of Spice Client there is decoding to play the video is judged after receiving request, if not decoding
Ability to play then enters step three, if there is decoding ability to play, enters step four.
Step 3: the video processing that Spice Client applications play is one using Spice agreements by Spice Server
The image of one frame of frame carries out decompression broadcasting by being sent to Spice Client by Spice Server after MJPEG compression algorithms.
It is connected Step 4: Spice Client send request foundation to HTTP websites, the Spice Server profits in cluster
Physical memory is distributed for Spice Client from dynamic memory pool with virtual machine VM, HTTP websites will be regarded by RTMFP agreements
Frequency is directly downloaded in the physical memory that Spice Client are allocated, and during being somebody's turn to do, Spice Client will be assigned to first
Memory pages in server_ID compared with the server_ID of itself, own physical memory is accessed if the two is identical,
The server_ID in memory pages is submitted into Spice Server if the two difference, by being preserved in Spice Server
Address of cache table search dynamic memory pool, obtain to access memory physical address and access the memory.Virtual machine VM is found
The physical memory simultaneously calls the Flash plug-in units on itself player or video web-pages, is shown with reference to the physics of Spice Client
Card plays video.Wherein, it is Spice Client allotments from dynamic memory pool to utilize virtual machine VM in Spice Server
During managing memory, inner server can adjust the node for providing memory, position according to the IP address dynamic of Spice Client
It can preferentially be distributed in the node memory of same LAN.
Since Spice Client are in Intranet, it is impossible to direct interaction is carried out with HTTP websites, so needing Spice
Server serves as forwarder progress NAT and penetrates herein.The process that connection is established in Spice Client and HTTP websites is as follows:
Spice Client send the request of application foundation connection to HTTP websites, and HTTP websites receive the backward Spice of request
Server sends handshake request data packet, the handshake request data that Spice Server are received to Spice Client forwardings
Bag, Spice Client are received and are sent response data packet to HTTP websites after handshake request data packet, and HTTP websites receive
Connection is established after response data packet with Spice Client to communicate.
Spice Server and all Spice Client are formed cluster by the present invention on the basis of Spice services
Interior all physics memory expansions are into shared drive, according to the broadcast performance of Spice Client ends physical display card itself, appropriately
Different transmission of video and broadcast mode are selected, the rate of clients request video broadcasting is effectively increased, alleviates simultaneously
The load of Spice Server.
Claims (1)
1. a kind of video broadcasting method based on Spice and memory sharing, which is characterized in that comprise the following steps:
Step 1: Spice Server and all Spice Client are configured as a cluster, the institute in the cluster
There is physical memory to become a total address space by logical extension, dynamic memory pool is established on total address space, and
By changing virtual machine monitor VMM a unified memory management interfaces are provided to upper level applications;
Step 2: Spice Client send the request of application broadcasting video to Spice Server, Spice Server are received
The ability whether physical display card of Spice Client there is decoding to play the video is judged after to request, if not decoding broadcasting
Ability then enters step three, if there is decoding ability to play, enters step four;
Step 3: the video processing that Spice Client applications play is a frame one using Spice agreements by Spice Server
The image of frame carries out decompression broadcasting by being sent to Spice Client by Spice Server after MJPEG compression algorithms;
It is connected Step 4: Spice Client send request foundation to HTTP websites, the Spice Server in cluster are from dynamically
Physical memory is distributed for Spice Client in memory pool, video is directly downloaded to Spice by HTTP websites by RTMFP agreements
In the physical memory that Client is allocated, the virtual machine VM of Spice Server generations, which finds the physical memory and calls, itself to be broadcast
The Flash plug-in units on device or video web-pages are put, video is played with reference to the physical display card of Spice Client;
Wherein, the Spice Server in the cluster are each Spice in memory pages as inner server
Client defines unique server_ID, and Spice Server distribute physics from dynamic memory pool for Spice Client
During memory, Spice Client are first by the server_ID in the memory pages being assigned to compared with the server_ID of itself
Compared with own physical memory being accessed if the two is identical, if the two difference submits to the server_ID in memory pages
Spice Server by the address of cache table search dynamic memory pool preserved in Spice Server, obtain Spice
The physical address of the Client memories of being accessed simultaneously accesses the memory;
The process that connection is established in the Spice Client and HTTP websites is as follows:Spice Client send Shen to HTTP websites
It please establish the request of connection, HTTP websites receive and send handshake request data packet, Spice to Spice Server after request
The handshake request data packet that Server is received to Spice Client forwardings, Spice Client receive handshake request data
Response data packet is sent to HTTP websites after bag, HTTP websites connect after receiving response data packet with Spice Client foundation
It communicates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510545170.2A CN105049938B (en) | 2015-08-31 | 2015-08-31 | A kind of video broadcasting method based on Spice and memory sharing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510545170.2A CN105049938B (en) | 2015-08-31 | 2015-08-31 | A kind of video broadcasting method based on Spice and memory sharing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105049938A CN105049938A (en) | 2015-11-11 |
CN105049938B true CN105049938B (en) | 2018-06-01 |
Family
ID=54456058
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510545170.2A Active CN105049938B (en) | 2015-08-31 | 2015-08-31 | A kind of video broadcasting method based on Spice and memory sharing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105049938B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106970798A (en) * | 2017-03-31 | 2017-07-21 | 山东超越数控电子有限公司 | A kind of remote desktop figure accelerated method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102387187A (en) * | 2011-07-28 | 2012-03-21 | 中兴通讯股份有限公司 | Server, client as well as method and system for remotely playing video file by using client |
CN102761603A (en) * | 2012-06-07 | 2012-10-31 | 福建升腾资讯有限公司 | Webpage flash video redirection method in VDI environment |
CN102821309A (en) * | 2011-06-08 | 2012-12-12 | 鸿富锦精密工业(深圳)有限公司 | System and method for transferring streaming media based on desktop sharing |
CN104053019A (en) * | 2013-03-12 | 2014-09-17 | 中兴通讯股份有限公司 | Video playing and processing method and device based on virtual desktop |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6912251B1 (en) * | 1998-09-25 | 2005-06-28 | Sarnoff Corporation | Frame-accurate seamless splicing of information streams |
US7171444B2 (en) * | 2001-11-14 | 2007-01-30 | Sharp Laboratories Of America, Inc. | Remote desktop protocol compression system |
TW589880B (en) * | 2003-03-07 | 2004-06-01 | Asustek Comp Inc | Processing method and system for real-time video stream |
US8208799B2 (en) * | 2005-03-01 | 2012-06-26 | Broadcom Corporation | Method and system for PVR software buffer management to support software passage |
CN101110750A (en) * | 2007-08-20 | 2008-01-23 | 阳术国 | Processing method for implementing resource sharing of built-in equipment based on p2p technology |
CN101382958A (en) * | 2008-10-21 | 2009-03-11 | 深圳华为通信技术有限公司 | Web page loading method and device |
CN101742238A (en) * | 2008-11-26 | 2010-06-16 | 深圳市彪骐数码科技有限公司 | Streaming media on-demand method and device combining RTS with P2P |
CN103139634B (en) * | 2011-11-30 | 2017-03-15 | 国云科技股份有限公司 | Cloud terminal virtual desktop video broadcasting method |
CN102497433B (en) * | 2011-12-16 | 2015-04-15 | 乐视网信息技术(北京)股份有限公司 | System and method realizing P2P for web page flash player |
CN102594915B (en) * | 2012-03-19 | 2014-12-03 | 烽火通信科技股份有限公司 | Browser-based media play system and method |
CN103593243B (en) * | 2013-11-01 | 2017-05-10 | 浪潮电子信息产业股份有限公司 | Dynamic extensible trunked system for increasing virtual machine resources |
-
2015
- 2015-08-31 CN CN201510545170.2A patent/CN105049938B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102821309A (en) * | 2011-06-08 | 2012-12-12 | 鸿富锦精密工业(深圳)有限公司 | System and method for transferring streaming media based on desktop sharing |
CN102387187A (en) * | 2011-07-28 | 2012-03-21 | 中兴通讯股份有限公司 | Server, client as well as method and system for remotely playing video file by using client |
CN102761603A (en) * | 2012-06-07 | 2012-10-31 | 福建升腾资讯有限公司 | Webpage flash video redirection method in VDI environment |
CN104053019A (en) * | 2013-03-12 | 2014-09-17 | 中兴通讯股份有限公司 | Video playing and processing method and device based on virtual desktop |
Non-Patent Citations (1)
Title |
---|
基于SPICE协议的桌面虚拟化技术研究与改进方案;徐浩等;《计算机工程与科学》;20131215;第35卷(第12期);摘要,第3部分SPICE协议研究分析,第4部分SPICE协议改进 * |
Also Published As
Publication number | Publication date |
---|---|
CN105049938A (en) | 2015-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11813521B2 (en) | Memory management in gaming rendering | |
US11909820B2 (en) | Method and apparatus for execution of applications in a cloud system | |
JP5730914B2 (en) | System and method for bidirectional communication and content control in a web browser | |
US10341251B2 (en) | Method and system for securely transmitting volumes into cloud | |
US9495308B2 (en) | Offloading of computation for rack level servers and corresponding methods and systems | |
US20130137511A1 (en) | Distributed server system and method for streaming game service | |
CN111988392B (en) | Resource allocation method based on cloud service, related device, equipment and system | |
JP2015515660A (en) | Multiple media devices accessing cloud computing service storage via a gateway server or service | |
US10334003B2 (en) | Mobile terminal and method for achieving cloud streaming medium file sharing based on DLNA | |
JP6970356B2 (en) | Dynamic network storage for cloud console servers | |
JP7386990B2 (en) | Video playback methods, devices, equipment and computer programs | |
CN104850463A (en) | Application program sharing method and application program sharing device | |
US11863832B2 (en) | Start-up performance improvement for remote computer application | |
US9421464B2 (en) | System and method for providing performance in a personal gaming cloud | |
CN109068153A (en) | Video broadcasting method, device and computer readable storage medium | |
WO2014089793A1 (en) | Method, device, and system for video redirection and computer readable medium | |
CN107920042B (en) | Optimized transmission method and server for live broadcast room page | |
CN105282624A (en) | Desktop cloud video play processing method and device | |
CN105049938B (en) | A kind of video broadcasting method based on Spice and memory sharing | |
CN111586437A (en) | Barrage message processing method, system, computing device and storage medium | |
CN113783869A (en) | Sharing link-based cloud application sharing method and device, storage medium and equipment | |
US10848838B2 (en) | Method and system for generating a time-lapse video | |
US20150215415A1 (en) | Data pushing method, apparatus, and system | |
US20160088079A1 (en) | Streaming playout of media content using interleaved media players | |
JP7395020B2 (en) | How to find media service entries for uplink and downlink streaming in 5G network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |