CN104519369B - Solve the method based on many streaming media server crossfire phenomenons of udp protocol - Google Patents

Solve the method based on many streaming media server crossfire phenomenons of udp protocol Download PDF

Info

Publication number
CN104519369B
CN104519369B CN201410819718.3A CN201410819718A CN104519369B CN 104519369 B CN104519369 B CN 104519369B CN 201410819718 A CN201410819718 A CN 201410819718A CN 104519369 B CN104519369 B CN 104519369B
Authority
CN
China
Prior art keywords
stream
client
streaming media
media server
stream information
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
CN201410819718.3A
Other languages
Chinese (zh)
Other versions
CN104519369A (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.)
TIANJIN TIANAN YIHE INFORMATION TECHNOLOGY Co Ltd
Original Assignee
TIANJIN TIANAN YIHE INFORMATION 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 TIANJIN TIANAN YIHE INFORMATION TECHNOLOGY Co Ltd filed Critical TIANJIN TIANAN YIHE INFORMATION TECHNOLOGY Co Ltd
Priority to CN201410819718.3A priority Critical patent/CN104519369B/en
Publication of CN104519369A publication Critical patent/CN104519369A/en
Application granted granted Critical
Publication of CN104519369B publication Critical patent/CN104519369B/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23103Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion using load balancing strategies, e.g. by placing or distributing content on different disks, different memories or different servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network 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/63Control 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/643Communication protocols

Abstract

A kind of method for solving to be based on many streaming media server crossfire phenomenons of udp protocol, including:Client video control is initialized when successfully, and the video control of client obtains client ip;The crossfire that the IP of acquisition is sent to JAVA servers is detected instruction interface by client;Stream information is retrieved:The interface that JAVA servers are reserved by streaming media server, obtain the stream information sent in current streaming media server, and whether be examined in the IP of transmitted stream information identical with the IP of the client for being received, if identical, the stream information for sending is considered as the exception stream for needing to close;Close the transmission of stream information:In the non-normal switching-off stream result of stream information retrieval, JAVA servers send the instruction for closing stream to streaming media server, and the stream to non-normal switching-off sends out code successively, and the stream of the non-normal switching-off is closed.The present invention solves the generation of crossfire phenomenon, can well be interacted each independent streaming media service.

Description

Solve the method based on many streaming media server crossfire phenomenons of udp protocol
Technical field
The present invention relates to a kind of many streaming media servers.It is more particularly to a kind of to solve based on many Streaming Media clothes of udp protocol The method of device crossfire phenomenon of being engaged in.
Background technology
With the popularization of internet and developing rapidly for electronic equipment, stream media technology turns into indispensable during people live Few part, such as major internet music websites, online cinema and monitoring system are all that one kind of stream media technology should With.Particular for monitor in real time field, because udp protocol occupies absolute excellent in the very strong data transportation requirements of real-time Gesture, therefore the alternating transmission of Media Stream is carried out using udp protocol to the monitoring of real-time video.But because udp protocol is deposited in itself Client is sent data in the non-intellectual of one kind, i.e. server, server is not aware that client, either with or without normally receiving, is serviced After device receives transmission order, just constantly data are sent toward the client specified.So when client is anticipated for some reason During outer stopping, server is not known, and still adheres to sending data toward the client, when the client again requires that reception clothes During business device data, the data for sending together twice will be now received, this scene is referred to as crossfire in video monitoring shows As.
In streaming media service, crossfire is that, using a kind of phenomenon of udp protocol generally existing, crossfire on-the-spot meeting occur and cause There is Huaping phenomenon in monitored picture, and image cannot almost be watched, and how to effectively eliminate the crossfire phenomenon based on udp protocol for journey Sequence develops problem in the urgent need to address.
Streaming media server major function is in the form of streaming by audio files information transfer to client, for client End viewing;Can also from the collection of video, compression, receive live video stream, it is then live to client with stream protocol, supervised in real time In control system, due to using the mechanism transmitted nearby, multiple streaming media servers, each Streaming Media clothes can be disposed in different places Business device is only used as the treatment and forwarding of Media Stream, and the maintenance of business datum is not related to, i.e., be independent between each streaming media server Exist, will not be interacted between each streaming media server.
Client video is had access to, and client can select a certain video to send instructions to streaming media server to be carried out taking stream sight See, what each client can be apparent from knows the stream transmission information for having access to situation and each streaming media server of itself.
The content of the invention
The technical problems to be solved by the invention are to provide and a kind of can carry out each independent streaming media service well Interactive method of the solution based on many streaming media server crossfire phenomenons of udp protocol.
The technical solution adopted in the present invention is:It is a kind of to solve to be based on many streaming media server crossfire phenomenons of udp protocol Method, comprises the following steps:
1) client video control is initialized when successfully, and the video control of client obtains client ip;
2) crossfire that the IP of acquisition is sent to JAVA servers is detected instruction interface by client;
3) stream information retrieval:The interface that JAVA servers are reserved by streaming media server, obtains current streaming media service The stream information sent in device, and be examined in transmitted stream information IP whether the IP phases with the client for being received Together, if identical, the stream information for sending is considered as the exception stream for needing to close;
4) transmission of stream information is closed:In the non-normal switching-off stream result of stream information retrieval, JAVA servers are to stream matchmaker Body server sends the instruction for closing stream, and the stream to non-normal switching-off sends out code successively, by the non-normal switching-off Stream is closed.
During client initialization success, it is confirmed that the client does not ask to receive any stream information, as long as therefore stream matchmaker The stream information that oriented described client sends in body server belongs to the stream of non-normal switching-off, is now turned off.
It is of the invention to solve the method based on many streaming media server crossfire phenomenons of udp protocol, with following features:
1st, it is combination by server and client, the generation of crossfire phenomenon is solved well;
2nd, streaming media server is that convection current makes requests on and forwards, and some business datums are safeguarded and are not placed on streaming media service In device, its complexity can be so reduced, ensure the durability and the independence with other systems of streaming media service, reach low coupling The effect of conjunction;
3rd, each independent streaming media service can well be interacted.
Also, the present invention can reach following beneficial effect:
1st, streaming media service Focus, independent:Streaming media service only focuses on acquisition and the forwarding capability of Media Stream, without Go to be concerned about some operational control logics, be so more beneficial for the independence of intermodule, improve the durability of streaming media service.
2nd, server resource consumption is reduced:One platform, because the rule of life of people result in platform and also have and people Same enlivens rule, and platform can process more users' operations when general daytime, but to evening, platform is almost located In idle condition, and it is in fact now not need timed task to go to detect some stream informations again, causes unnecessary resource consumption, This ingenious utilization client of invention is initialized every time goes to detect stream information instead of timed task, so when customer volume is little, Naturally also just reduce resource consumption
3rd, it is interactive between enhancing streaming media server:The principle of stream is taken due to storing nearby, stream week is reduced as far as possible then is lost More bags, therefore multiple streaming media services are often disposed in a platform, and it is mutually only when between these streaming media services Vertical, they are simultaneously unaware of the presence of other streaming media servers, and detection module is placed on java service ends by the present invention, because only Have java service ends just know this platform which streaming media server, therefore java service ends can preferably manage these moneys Source, the resource all unification related to business is placed on java service ends, centralized management treatment.
Brief description of the drawings
Fig. 1 is present system overall structure diagram;
Fig. 2 is present system overall flow figure.
Specific embodiment
It is existing based on many streaming media server crossfires of udp protocol to a kind of solution of the invention with reference to embodiment and accompanying drawing The method of elephant is described in detail.
A kind of method for solving to be based on many streaming media server crossfire phenomenons of udp protocol of the invention, is as shown in Figure 1 System in realize, comprise the following steps:
1) client video control is initialized when successfully, and the video control of client obtains client ip:Detection client Which stream is belonging to the foundation of normal switching-off stream information in IP, is foundation stone of the invention, during due to client initialization success, just Can confirm that the client does not ask to receive any stream information, as long as therefore oriented described client in streaming media server The stream information of transmission belongs to the stream of non-normal switching-off, should now be turned off;
2) crossfire that the IP of acquisition is sent to JAVA servers is detected instruction interface by client:This part major responsibility is By client ip identity by being sent to JAVA servers, streaming media server is set to know that client needs to detect stream information Transmission situation;
3) stream information retrieval:The interface that JAVA servers are reserved by streaming media server, obtains current streaming media service The stream information sent in device, and be examined in transmitted stream information IP whether the IP phases with the client for being received Together, if identical, the stream information for sending is considered as the exception stream for needing to close;
4) transmission of stream information is closed:In the non-normal switching-off stream result of stream information retrieval, JAVA servers are to stream matchmaker Body server sends the instruction for closing stream, and the stream to non-normal switching-off sends out code successively, by the non-normal switching-off Stream is closed:The stream information of the non-normal switching-off is closed, the client is thus effectively prevented before video is had access to There is no unnecessary stream, the generation of crossfire phenomenon is prevented well.
Application of the invention is illustrated with the example in Fig. 2 below.
1st, during the success of client video plug-in initialization, it may be determined that the client does not have access to any video, now obtains Client ip address;
2nd, client sends to the crossfire detection interface of background java server the IP address of 1 Procedure Acquisition;
3rd, JAVA servers send a command to each streaming media server, obtain the stream sent in each streaming media server Information;
4th, JAVA servers receive the stream information that each stream matchmaker server is replied;
5th, the client ip address obtained in the IP address and 2 of the stream for sending that JAVA servers are received 4 is compared, If identical, the stream is the exception stream of last time non-normal switching-off;
6th, JAVA servers are sent and close stream instruction to streaming media server, and the exception stream being not turned off that 5 detect is closed Close.
7th, after detection is finished, you can remove the exception stream that the client is normal switching-off, effectively prevent from being normal switching-off The crossfire phenomenon that stream is caused.

Claims (2)

1. it is a kind of to solve the method based on many streaming media server crossfire phenomenons of udp protocol, it is characterised in that including following step Suddenly:
1)Client video control is initialized when successfully, and the video control of client obtains client ip;
2)The crossfire that the IP of acquisition is sent to JAVA servers is detected instruction interface by client;
3)Stream information is retrieved:The interface that JAVA servers are reserved by streaming media server, in the current streaming media server of acquisition The stream information for sending, and whether be examined in the IP of transmitted stream information identical with the IP of the client for being received, such as Really identical, then the stream information for sending is considered as the exception stream for needing to close;
4)Close the transmission of stream information:In the exception stream result closed the need for stream information is retrieved, JAVA servers are to stream Media server sends the instruction for closing stream, sends out code to the exception stream for needing to close successively, needs to close by described Exception stream close.
2. according to claim 1 to solve the method based on many streaming media server crossfire phenomenons of udp protocol, its feature exists In, during client initialization success, it is confirmed that the client does not ask to receive any stream information, as long as therefore streaming media service The stream information that oriented described client sends in device belongs to the exception stream for needing to close, and is now turned off.
CN201410819718.3A 2014-12-24 2014-12-24 Solve the method based on many streaming media server crossfire phenomenons of udp protocol Active CN104519369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410819718.3A CN104519369B (en) 2014-12-24 2014-12-24 Solve the method based on many streaming media server crossfire phenomenons of udp protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410819718.3A CN104519369B (en) 2014-12-24 2014-12-24 Solve the method based on many streaming media server crossfire phenomenons of udp protocol

Publications (2)

Publication Number Publication Date
CN104519369A CN104519369A (en) 2015-04-15
CN104519369B true CN104519369B (en) 2017-07-07

Family

ID=52793993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410819718.3A Active CN104519369B (en) 2014-12-24 2014-12-24 Solve the method based on many streaming media server crossfire phenomenons of udp protocol

Country Status (1)

Country Link
CN (1) CN104519369B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301883B (en) * 2021-12-29 2023-07-04 中电福富信息科技有限公司 Anti-streaming method for national standard equipment video stream based on UDP protocol transmission
CN114448949B (en) * 2022-02-18 2024-03-01 小视科技(江苏)股份有限公司 Method and system for solving streaming phenomenon of client

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933408A (en) * 2005-09-14 2007-03-21 年代数位媒体股份有限公司 Intelligent interactive multimedia system
CN102158389A (en) * 2010-06-25 2011-08-17 青岛海信传媒网络技术有限公司 Asynchronous data transmission method, device and system
CN103731758A (en) * 2013-12-20 2014-04-16 北京欧迈特数字技术有限责任公司 Video stream transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933408A (en) * 2005-09-14 2007-03-21 年代数位媒体股份有限公司 Intelligent interactive multimedia system
CN102158389A (en) * 2010-06-25 2011-08-17 青岛海信传媒网络技术有限公司 Asynchronous data transmission method, device and system
CN103731758A (en) * 2013-12-20 2014-04-16 北京欧迈特数字技术有限责任公司 Video stream transmission method and device

Also Published As

Publication number Publication date
CN104519369A (en) 2015-04-15

Similar Documents

Publication Publication Date Title
US11425439B2 (en) Processing content streaming
CN104539977B (en) Method for previewing and device is broadcast live
CN105306413B (en) A kind of information issuing method and system, depending on networked server and issue terminal
CN105828046B (en) A kind of transmission method and device of data flow
CN104137146A (en) Method and system for video coding with noise filtering of foreground object segmentation
US20140298368A1 (en) Authentication system and method of operating the same
CN108964963A (en) A method of warning system and realization alarm based on view networking
CN109640191A (en) A kind of method and apparatus of even wheat live streaming
CN105165019B (en) Method and apparatus for sending and receiving additional information in broadcast communication system
CN101710979A (en) Method for managing video monitoring system and central management server
CN106572382A (en) Multi-screen interaction method and system and extensible messaging and presence protocol (XMPP) system
US11297482B2 (en) Peripheral video presence detection
CN103929623A (en) Method for processing video data in video monitoring system
CN104519369B (en) Solve the method based on many streaming media server crossfire phenomenons of udp protocol
CN110113558B (en) Data processing method, device, system and computer readable storage medium
CN110300278A (en) Video transmission method and equipment
CN102439946B (en) Data transmission method and device
CN105812839B (en) Video stream data acquisition, page data transmission method, system and network server
CN110113298A (en) Data transmission method, device, signal server and computer-readable medium
CN106791714B (en) The matching process and equipment of IP Camera and server device
CN103179457B (en) Fault determination method in a kind of set-top box service interaction and equipment
CN111212043A (en) Multimedia file generation method and device
CN103905777A (en) Meeting minute obtaining method and providing method, device and system
CN106358001A (en) Information processing method, information processing apparatus and information processing system
CN109561076A (en) It is embedded in the RTSP retransmission method of real-time monitoring system

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