CN110753237B - Method and device for saving upstream bandwidth flow of streaming media server - Google Patents

Method and device for saving upstream bandwidth flow of streaming media server Download PDF

Info

Publication number
CN110753237B
CN110753237B CN201911070889.XA CN201911070889A CN110753237B CN 110753237 B CN110753237 B CN 110753237B CN 201911070889 A CN201911070889 A CN 201911070889A CN 110753237 B CN110753237 B CN 110753237B
Authority
CN
China
Prior art keywords
streaming media
media server
time period
camera equipment
channel
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
CN201911070889.XA
Other languages
Chinese (zh)
Other versions
CN110753237A (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.)
Beijing Jinher Software Co Ltd
Original Assignee
Beijing Jinher Software 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 Beijing Jinher Software Co Ltd filed Critical Beijing Jinher Software Co Ltd
Priority to CN201911070889.XA priority Critical patent/CN110753237B/en
Publication of CN110753237A publication Critical patent/CN110753237A/en
Application granted granted Critical
Publication of CN110753237B publication Critical patent/CN110753237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • 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/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • H04N21/64738Monitoring network characteristics, e.g. bandwidth, congestion level

Abstract

The invention discloses a method for saving the uplink bandwidth flow of a streaming media server, which comprises the following steps: receiving a channel watching request of a client, determining corresponding camera equipment according to the channel watching request, judging whether the camera equipment is online or not, if so, enabling a streaming media server to transmit streaming media data to the client, and if not, sending a stream pushing starting instruction to the camera equipment; and acquiring the number of watching people of the channel on the streaming media server, and if the number of watching people is less than a preset value, stopping the stream pushing of the camera equipment corresponding to the channel to the streaming media server. The invention also provides a device for saving the upstream bandwidth flow of the streaming media server. The invention can realize that the flow is not generated under the condition that no user or few users watch the video.

Description

Method and device for saving upstream bandwidth flow of streaming media server
Technical Field
The invention relates to the technical field of flow control. More particularly, the present invention relates to a method and an apparatus for saving upstream bandwidth traffic of a streaming media server.
Background
After the camera device is registered and authenticated, the corresponding streaming media server is connected to start streaming, the bandwidth cost of the traffic generated by streaming is usually high, and some video streams are not continuously watched by the user, so the cost can be completely saved. Therefore, it is desirable to design a method and apparatus that overcomes the above-mentioned drawbacks.
Disclosure of Invention
An object of the present invention is to provide a method and an apparatus for saving upstream bandwidth traffic of a streaming media server, which can achieve no traffic generated under the condition that no user or few users watch videos.
To achieve these objects and other advantages in accordance with the purpose of the invention, there is provided a method for saving upstream bandwidth traffic of a streaming media server, comprising:
receiving a channel watching request of a client, determining corresponding camera equipment according to the channel watching request, judging whether the camera equipment is online or not, if so, enabling a streaming media server to transmit streaming media data to the client, and if not, sending a stream pushing starting instruction to the camera equipment;
and acquiring the number of watching people of the channel on the streaming media server, and if the number of watching people is less than a preset value, stopping the stream pushing of the camera equipment corresponding to the channel to the streaming media server.
Preferably, the method for saving the upstream bandwidth traffic of the streaming media server further includes:
establishing an intermediate table, and adding camera equipment information capable of stopping plug flow in the intermediate table;
and reading the intermediate table at intervals of set time periods, and determining the camera equipment for stopping pushing the stream to the streaming media server according to the number of watching people of the channel on the streaming media server.
Preferably, the method for saving the upstream bandwidth traffic of the streaming media server further includes:
and if the information of a certain channel on the streaming media server cannot be acquired, stopping the stream pushing of the camera equipment corresponding to the channel to the streaming media server.
Preferably, the method for saving the upstream bandwidth traffic of the streaming media server further includes:
and when the flow contained in the flow package of the camera equipment is not less than the preset flow threshold value, the camera equipment is not added into the intermediate table.
Preferably, the method for saving the upstream bandwidth traffic of the streaming media server further includes:
and when the flow contained in the flow package of the camera equipment in the middle table is not less than the preset flow threshold value, moving the camera equipment out of the middle table.
Preferably, the method for saving the upstream bandwidth traffic of the streaming media server further includes:
recording channel watching requests corresponding to all the camera devices within set historical time, counting time distribution of the channel watching requests every day, and determining a first time period, a second time period and a third time period;
intermittently stopping the plug flow of the image pickup apparatus at a first frequency for a first period of time, intermittently stopping the plug flow of the image pickup apparatus at a second frequency for a second period of time, and intermittently stopping the plug flow of the image pickup apparatus at a third frequency for a third period of time;
the first time period, the second time period and the third time period are updated once a day;
the first time period is a time period in which the average request frequency in the set historical time accounts for 80% of the average total request frequency per day, the second time period is a time period in which the average request frequency in the set historical time accounts for 60-80% of the average total request frequency per day, the third time period is the rest time period, the first frequency is smaller than the second frequency, and the second frequency is smaller than the third frequency.
The invention also provides a device for saving the uplink bandwidth flow of the streaming media server, which comprises the following steps:
a processor;
a memory storing executable instructions;
wherein the processor is configured to execute the executable instructions to perform the method for saving upstream bandwidth traffic of the streaming media server.
The invention at least comprises the following beneficial effects:
the invention can detect the number of watching people of each channel, and execute the plug flow stopping operation by taking the number of watching people as the standard, thereby avoiding the flow generation under the condition that no user or few users watch the video and reducing the flow cost. The invention distinguishes the camera equipment which can limit the current and can not limit the current by using the intermediate table, checks the intermediate table and detects the number of the watching persons at intervals of set time period, and reduces the waste of the flow under the condition of not influencing the plug flow of the important camera equipment.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The present invention is further described in detail below with reference to the attached drawings so that those skilled in the art can implement the invention by referring to the description text.
It will be understood that terms such as "having," "including," and "comprising," as used herein, do not preclude the presence or addition of one or more other elements or groups thereof.
In a technical solution, as shown in fig. 1, a method for saving upstream bandwidth traffic of a streaming media server includes:
receiving a channel watching request of a client, determining corresponding camera equipment according to the channel watching request, judging whether the camera equipment is online or not, if so, enabling a streaming media server to transmit streaming media data to the client, and if not, sending a stream pushing starting instruction to the camera equipment;
and acquiring the number of watching people of the channel on the streaming media server, and if the number of watching people is less than a preset value, stopping the stream pushing of the camera equipment corresponding to the channel to the streaming media server.
In the above technical solution, the camera device pushes a stream to the streaming media server, the streaming media server sends streaming media data to the client, and the user watches a video using the client. The streaming media server comprises a plurality of channels, and each channel corresponds to one camera device. The method comprises the steps that a user sends a watching request for a certain channel on a client, at the moment, whether a camera device corresponding to the channel is on line or not is judged, and if the camera device corresponding to the channel is on line, the streaming media server is directly enabled to send streaming media data to the client for the user to watch the channel. If the channel is not on line, a stream pushing starting instruction is sent to the camera equipment corresponding to the channel, so that the camera equipment starts stream pushing, and further the stream media server transmits stream media data to the client, so that the user watches the channel. The number of watching people of each channel on the streaming media server is obtained in real time, when the number of watching people is small, namely less than a preset value, the image pickup device stops pushing the stream to the streaming media server, the preset value is preferably 1, and the preset value can be determined according to actual conditions. Therefore, the technical scheme can avoid the flow generation under the condition that no user or few users watch videos, and reduce the flow cost.
In another technical solution, the method for saving upstream bandwidth traffic of a streaming media server further includes:
establishing an intermediate table, and adding camera equipment information capable of stopping plug flow in the intermediate table;
and reading the intermediate table at intervals of set time periods, and determining the camera equipment for stopping pushing the stream to the streaming media server according to the number of watching people of the channel on the streaming media server.
Among the above-mentioned technical scheme, camera equipment has the difference in the aspect of live priority, and some camera equipment need push stream in real time, and convenience of customers watches in real time, and some then do not need. And adding the camera equipment information which does not need real-time stream pushing in the intermediate table, so that the camera equipment stream pushing on the intermediate table can be stopped according to the number of the watching persons. The intermediate table is read at intervals of set time periods, and the camera equipment capable of stopping plug flow is conveniently obtained in real time.
In another technical solution, the method for saving upstream bandwidth traffic of a streaming media server further includes:
and if the information of a certain channel on the streaming media server cannot be acquired, stopping the stream pushing of the camera equipment corresponding to the channel to the streaming media server. And when the channel information on the streaming media server cannot be acquired, if the number of the watching persons indicates that the camera equipment is probably not on line, stopping the stream pushing operation of the camera equipment.
In another technical solution, the method for saving upstream bandwidth traffic of a streaming media server further includes:
and when the flow contained in the flow package of the camera equipment is not less than the preset flow threshold value, the camera equipment is not added into the intermediate table. Here, when the image pickup apparatus purchases the traffic and satisfies the plug flow requirement, the image pickup apparatus is not added to the intermediate table, and no instruction to stop the plug flow is made to the image pickup apparatus.
In another technical solution, the method for saving upstream bandwidth traffic of a streaming media server further includes:
and when the flow contained in the flow package of the camera equipment in the middle table is not less than the preset flow threshold value, moving the camera equipment out of the middle table. Here, when the image pickup apparatus in the intermediate table purchases the traffic and satisfies the plug flow requirement, the image pickup apparatus is moved out of the intermediate table so that the image pickup apparatus is no longer stopped from being pushed. .
In another technical solution, the method for saving upstream bandwidth traffic of a streaming media server further includes:
recording channel watching requests corresponding to all the camera devices within set historical time, counting time distribution of the channel watching requests every day, and determining a first time period, a second time period and a third time period;
intermittently stopping the plug flow of the image pickup apparatus at a first frequency for a first period of time, intermittently stopping the plug flow of the image pickup apparatus at a second frequency for a second period of time, and intermittently stopping the plug flow of the image pickup apparatus at a third frequency for a third period of time;
the first time period, the second time period and the third time period are updated once a day;
the first time period is a time period in which the average request frequency in the set historical time accounts for 80% of the average total request frequency per day, the second time period is a time period in which the average request frequency in the set historical time accounts for 60-80% of the average total request frequency per day, the third time period is the rest time period, the first frequency is smaller than the second frequency, and the second frequency is smaller than the third frequency.
The technical scheme provides a further preferable scheme for limiting the plug flow of the camera equipment, and preferably aims at sunshine catering, the watching demands of the user on each camera of the restaurant are different, and the watching time of the user on each camera of the restaurant is different. And counting channel watching requests within the set historical time, and determining a first time period, a second time period and a third time period according to the distribution of the requests. And stopping the plug flow intermittently in the first time period, the second time period and the third time period, wherein the time for stopping the plug flow every time is the same, and the stop frequency is different, and the stop frequency refers to the number of times of stopping in one hour. The first time period and the second time period are respectively the time of 80% of the request demand and the time period of 60-80%, the third time period is the rest time period, and the first time period, the second time period and the third time period all take 60 minutes, 30 minutes and the like as the minimum segments. The technical scheme can push the flow according to the actual needs of the user, further reduces unnecessary push flow and reduces flow waste.
The invention also provides a device for saving the upstream bandwidth flow of the streaming media server based on the same inventive concept as the method for saving the upstream bandwidth flow of the streaming media server, which comprises the following steps: a processor; a memory storing executable instructions; wherein the processor is configured to execute the executable instructions to perform the method for saving upstream bandwidth traffic of the streaming media server. For understanding the technical solution, refer to the description of the method for saving the upstream bandwidth traffic of the streaming media server.
The number of apparatuses and the scale of the process described herein are intended to simplify the description of the present invention. Applications, modifications and variations of the method for saving upstream bandwidth traffic of a streaming media server of the present invention will be apparent to those skilled in the art.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.

Claims (5)

1. The method for saving the upstream bandwidth flow of the streaming media server is characterized by comprising the following steps:
receiving a channel watching request of a client, determining corresponding camera equipment according to the channel watching request, judging whether the camera equipment is online or not, if so, enabling a streaming media server to transmit streaming media data to the client, and if not, sending a stream pushing starting instruction to the camera equipment;
acquiring the number of watching persons of a channel on the streaming media server, and if the number of watching persons is less than a preset value, stopping the stream pushing of the camera equipment corresponding to the channel to the streaming media server;
further comprising:
establishing an intermediate table, and adding camera equipment information capable of stopping plug flow in the intermediate table;
reading the intermediate table at intervals of a set time period, and determining the camera equipment for stopping pushing the stream to the streaming media server according to the number of watching people of the channel on the streaming media server;
further comprising:
recording channel watching requests corresponding to all the camera devices within set historical time, counting time distribution of the channel watching requests every day, and determining a first time period, a second time period and a third time period;
intermittently stopping the plug flow of the image pickup apparatus at a first frequency for a first period of time, intermittently stopping the plug flow of the image pickup apparatus at a second frequency for a second period of time, and intermittently stopping the plug flow of the image pickup apparatus at a third frequency for a third period of time;
the first time period, the second time period and the third time period are updated once a day;
the first time period is a time period in which the average request frequency in the set historical time accounts for 80% of the average total request frequency per day, the second time period is a time period in which the average request frequency in the set historical time accounts for 60-80% of the average total request frequency per day, the third time period is the rest time period, the first frequency is smaller than the second frequency, and the second frequency is smaller than the third frequency.
2. The method for conserving upstream bandwidth traffic of a streaming media server of claim 1, further comprising:
and if the information of a certain channel on the streaming media server cannot be acquired, stopping the stream pushing of the camera equipment corresponding to the channel to the streaming media server.
3. The method for conserving upstream bandwidth traffic of a streaming media server of claim 1, further comprising:
and when the flow contained in the flow package of the camera equipment is not less than the preset flow threshold value, the camera equipment is not added into the intermediate table.
4. The method for conserving upstream bandwidth traffic of a streaming media server of claim 1, further comprising:
and when the flow contained in the flow package of the camera equipment in the middle table is not less than the preset flow threshold value, moving the camera equipment out of the middle table.
5. The device for saving the upstream bandwidth flow of the streaming media server is characterized by comprising the following steps:
a processor;
a memory storing executable instructions;
wherein the processor is configured to execute the executable instructions to perform the method for saving upstream bandwidth traffic of the streaming media server according to any one of claims 1 to 4.
CN201911070889.XA 2019-11-05 2019-11-05 Method and device for saving upstream bandwidth flow of streaming media server Active CN110753237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911070889.XA CN110753237B (en) 2019-11-05 2019-11-05 Method and device for saving upstream bandwidth flow of streaming media server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911070889.XA CN110753237B (en) 2019-11-05 2019-11-05 Method and device for saving upstream bandwidth flow of streaming media server

Publications (2)

Publication Number Publication Date
CN110753237A CN110753237A (en) 2020-02-04
CN110753237B true CN110753237B (en) 2021-09-07

Family

ID=69282263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911070889.XA Active CN110753237B (en) 2019-11-05 2019-11-05 Method and device for saving upstream bandwidth flow of streaming media server

Country Status (1)

Country Link
CN (1) CN110753237B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112423012B (en) * 2020-11-18 2023-05-09 青岛华升联信智慧科技有限公司 Multi-stage load live broadcast method
CN113422969B (en) * 2021-05-25 2023-08-08 北京达佳互联信息技术有限公司 Information pulling method, device and server
CN114679598B (en) * 2022-03-24 2023-11-21 上海哔哩哔哩科技有限公司 Live broadcast pushing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412626A (en) * 2016-10-31 2017-02-15 武汉斗鱼网络科技有限公司 Live video processing method and device
CN107027045A (en) * 2017-04-11 2017-08-08 广州华多网络科技有限公司 Pushing video streaming control method, device and video flowing instructor in broadcasting end
CN107979578A (en) * 2016-10-25 2018-05-01 深圳市保千里科技有限公司 A kind of net cast processing method and system
CN108055264A (en) * 2017-12-13 2018-05-18 平安科技(深圳)有限公司 Dispatching device, method and the computer readable storage medium of stream pushing server
CN109640123A (en) * 2018-11-27 2019-04-16 平安科技(深圳)有限公司 Method for pushing, device, computer equipment and the storage medium of live stream

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10701018B2 (en) * 2015-08-27 2020-06-30 Mobilitie, Llc System and method for customized message delivery
US20170171579A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and Device for Transcoding Live Video
CN107465679A (en) * 2017-08-07 2017-12-12 郑州仁峰软件开发有限公司 A kind of streaming media control method
CN109729397A (en) * 2019-01-29 2019-05-07 网宿科技股份有限公司 A kind of plug-flow method, system and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107979578A (en) * 2016-10-25 2018-05-01 深圳市保千里科技有限公司 A kind of net cast processing method and system
CN106412626A (en) * 2016-10-31 2017-02-15 武汉斗鱼网络科技有限公司 Live video processing method and device
CN107027045A (en) * 2017-04-11 2017-08-08 广州华多网络科技有限公司 Pushing video streaming control method, device and video flowing instructor in broadcasting end
CN108055264A (en) * 2017-12-13 2018-05-18 平安科技(深圳)有限公司 Dispatching device, method and the computer readable storage medium of stream pushing server
CN109640123A (en) * 2018-11-27 2019-04-16 平安科技(深圳)有限公司 Method for pushing, device, computer equipment and the storage medium of live stream

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Nginx技术的直播平台;陆亮;《视听界(广播电视技术)》;20180630;22-30 *

Also Published As

Publication number Publication date
CN110753237A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN110753237B (en) Method and device for saving upstream bandwidth flow of streaming media server
CA2538451C (en) Upstream bandwidth management methods and apparatus
US20130290556A1 (en) Systems and Methods for Controlling Client Behavior in Adaptive Streaming
EP3448041A1 (en) Video player client, system, and method for live broadcast video synchronization
US11184671B2 (en) Dynamic content ratings
CN105359479A (en) Apparatus and method for controlling adaptive streaming of media
US20240080510A1 (en) Adaptive Multicast Streaming
US20230297612A1 (en) Method and systems for providing personalized supplemental audio streams
WO2022052566A1 (en) Video bitrate adjustment method and apparatus, and electronic device and machine-readable storage medium
CN104038775B (en) A kind of channel information recognition methods and device
CN111010584A (en) Live broadcast data processing method and device, server and storage medium
KR101769115B1 (en) System, media play device and server for providing cue-tone advertisement service
CN113242437A (en) RTSP (real time streaming protocol) video plug-in-free playing method, system, device and storage medium
US10498787B2 (en) Communication apparatus, communication method, and program
US11172262B2 (en) Enabling interactive control of live television broadcast streams
US11863823B2 (en) Systems and methods for providing recording of a blacked-out media content item
US20220070535A1 (en) Predictive detection of real-time and future viewability
US20210281892A1 (en) Employing Automatic Content Recognition to Allow Resumption of Watching Interrupted Media Program From Television Broadcast
CN110798713B (en) Time-shifted television on-demand method, terminal, server and system
US10193949B2 (en) Communication apparatus, communication method, and storage medium
CN105959789B (en) A kind of program channel determines method and device
US11166055B2 (en) Fast video stream startup
EP2603012B1 (en) Notification relating to broadcast content
US20240147003A1 (en) Systems and methods for providing media content
CN104519299A (en) A method and a system for controlling parameters of data network access via a cable television network terminal

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