Unlock instant, AI-driven research and patent intelligence for your innovation.

Streaming media processing method and system

A processing method and a processing system technology, applied in the field of streaming media processing methods and systems, can solve the problems of limited number of client terminals, waste of CPU time, delay, etc., and achieve the effect of improving user experience

Active Publication Date: 2018-07-10
VISIONVERA INFORMATION TECH CO LTD
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the rapid development of network technology, enterprises have higher and higher performance requirements for high-performance servers, especially in the peak period, facing tens of thousands of users accessing at the same time, in order to ensure real-time performance, it is generally completed by multi-threading, that is, When a client connects, at least one new thread needs to be started to communicate with the client, so the system has to perform context switching among all runnable threads, and thread switching is quite a waste of CPU time; if connecting to a client terminal Too many will result in poor real-time performance of audio and video, and the number of client terminals is also limited by the number of threads
[0003] The existing technical solution is to use IOCP (I / O Completion Port, I / O completion port, referred to as the completion port), through the mode of asynchronous transmission and reception, use as few threads as possible to handle all communications with a large number of clients, but because of the use of Asynchronous processing, so the processing of signaling and media streams is not timely, there is a large delay, and the user experience is not good

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Streaming media processing method and system
  • Streaming media processing method and system
  • Streaming media processing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] refer to image 3 As shown, the embodiment of the present invention provides a streaming media processing method, including steps 301-304:

[0053] Step 301: Monitor each communication handle corresponding to the completion port; the communication handles are bound to the streaming media server port, and are bound to the completion port after establishing a connection with the client; the completion port includes tasks to be processed Queue, used to cache pending packets.

[0054] The streaming media server listens to each communication handle corresponding to the completion port; the communication handles are bound to the streaming media server port, and are bound to the completion port after establishing a connection with the client; equivalent to the completion port Bind with each corresponding client through each communication handle; the completion port includes a pending task queue for buffering data packets to be processed, that is, the data packets sent by each...

Embodiment 2

[0071] refer to Figure 4 As shown, the embodiment of the present invention provides a streaming media processing method, including steps 401-412:

[0072] Step 401: Monitor each communication handle, and bind the corresponding communication handle to the completion port if a client connection is detected.

[0073] The streaming media server monitors each communication handle, if it monitors the connection of the client, obtains the network address of the client, binds the network address of the client to the corresponding communication handle, and completes the Port binding is equivalent to binding the completion port to each client through each communication handle.

[0074] First, with reference to the description of step 301, the streaming media server needs to create a port, a communication handle and a thread pool, the communication handle has been bound with the port of the streaming media server, and the threads in the thread pool have been connected to the Complete ...

Embodiment 3

[0108] refer to Figure 5 As shown, the embodiment of the present invention provides a streaming media processing system, the system includes a streaming media server 50, and the streaming media server 50 includes:

[0109] The monitoring module 501 is used to monitor each communication handle corresponding to the completion port; the communication handles are bound to the streaming media server port, and are bound to the completion port after establishing a connection with the client; the completion port includes Pending task queue, used to buffer pending data packets;

[0110] The thread running judging module 502 is used to judge whether there is a working thread running if the data packet sent by the client is monitored;

[0111] Thread enabling module 503 is used to enable an idle thread in the thread pool to be a working thread if no working thread is running;

[0112] The processing module 504 is used for the worker thread to poll the pending task queue of the complet...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiments of the invention relate to the streaming media server field and especially relate to a streaming media processing method and a system. The method comprises the following steps of monitoring each communication handle corresponding to a completion port, wherein each communication handle is bound to a streaming media server port and is bound to the completion port after establishing connection with a client, and the completion port includes a task queue to be processed and is used for caching a data packet to be processed; if the data packet sent by the client is monitored, determining whether there is a work thread which operates; if there is no work thread which operates, starting to use one idle thread in a thread pool as the work thread; and when the work thread polls thetask queue to be processed of the completion port, and if the data packet exists in the task queue to be processed, analyzing and processing the data packet. In the embodiments of the invention, signaling and a media stream can be timely processed and a user experience is improved.

Description

technical field [0001] The invention relates to the field of streaming media servers, in particular to a streaming media processing method and system. Background technique [0002] With the rapid development of network technology, enterprises have higher and higher performance requirements for high-performance servers, especially in the peak period, when faced with simultaneous access by tens of thousands of users, in order to ensure real-time performance, it is generally completed in a multi-threaded manner, that is, When a client connects, at least one new thread needs to be started to communicate with the client, so the system has to perform context switching among all runnable threads, and thread switching is quite a waste of CPU time; if connecting to a client terminal Too many will lead to poor real-time performance of audio and video, and the number of client terminals is also limited by the number of threads. [0003] The existing technical solution is to use IOCP (...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L67/2876H04L67/34H04L69/162H04L65/765H04L67/568H04L67/133
Inventor 谢文龙袁庆宁李云鹏
Owner VISIONVERA INFORMATION TECH CO LTD