CN110139063A - A kind of determining equipment supports the method, device and equipment of video flowing number - Google Patents

A kind of determining equipment supports the method, device and equipment of video flowing number Download PDF

Info

Publication number
CN110139063A
CN110139063A CN201810132859.6A CN201810132859A CN110139063A CN 110139063 A CN110139063 A CN 110139063A CN 201810132859 A CN201810132859 A CN 201810132859A CN 110139063 A CN110139063 A CN 110139063A
Authority
CN
China
Prior art keywords
video flowing
time
play
play parameter
adjusted
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
CN201810132859.6A
Other languages
Chinese (zh)
Other versions
CN110139063B (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810132859.6A priority Critical patent/CN110139063B/en
Publication of CN110139063A publication Critical patent/CN110139063A/en
Application granted granted Critical
Publication of CN110139063B publication Critical patent/CN110139063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • 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/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Abstract

The embodiment of the invention provides the method and devices that a kind of determining equipment supports video flowing number, method includes: to increase to play the road N video flowing, it determines and this time increases the play parameter after playing, judge whether play parameter meets exceptional condition, if met, this is increased to the video flowing number played before playing and is determined as the video flowing number of equipment support, plays the road N video flowing if conditions are not met, continuing growing;Or, it reduces and plays the road N video flowing, it determines and this time reduces the play parameter after playing, judge whether play parameter meets exceptional condition, if met, continue to reduce and play the road N video flowing, if conditions are not met, this is reduced the video flowing number that the video flowing number played after broadcasting is determined as equipment support.In the present solution, without the concern for the various factors for influencing equipment support video flowing number, it is only necessary to which equipment adjust automatically plays video flowing number, judges automatically whether play parameter adjusted meets exceptional condition, does not need manually to participate in.

Description

A kind of determining equipment supports the method, device and equipment of video flowing number
Technical field
The present invention relates to monitoring technology fields, and method, the dress of video flowing number are supported more particularly to a kind of determining equipment It sets, equipment and system.
Background technique
In video monitoring scene, more image capture devices are usually provided with, for example, IP Camera, that is, network Video camera.For every IP Camera by itself collected video stream all the way to host, host receives multi-path video stream, And this multi-path video stream is played out.
It can play the number of video flowing it is generally desirable to predefine a host at most, then further according to the number, The quantity for the image capture device connecting with host is set.In existing scheme, generally by manual testing, determine that host is supported Video flowing number.
Influence many because being known as of the video flowing number that host is supported, such as host performance, coding quality, image resolution Rate, code rate etc. need to comprehensively consider these influence factors during manual testing, and test process is complicated, efficiency is lower.
Summary of the invention
Method, apparatus, the equipment for being designed to provide a kind of determining equipment support video flowing number of the embodiment of the present invention And system, to improve the efficiency for the video flowing number for determining that equipment is supported.
In order to achieve the above objectives, the embodiment of the invention provides a kind of method that determining equipment supports video flowing number, packets It includes:
Using preset adjustment mode, currently playing video flowing number is adjusted;Wherein, the adjustment side Formula are as follows: increase play the road N video flowing every time, or reduce play the road N video flowing every time, the N is positive integer;
It determines this time play parameter adjusted, judges whether the play parameter meets exceptional condition;
If the adjustment mode is to increase to play the road N video flowing every time, and the play parameter is unsatisfactory for exceptional condition, It is described using preset adjustment mode then to return to execution, the step of being adjusted to currently playing video flowing number;
If the adjustment mode is to increase to play the road N video flowing every time, and the play parameter meets exceptional condition, then The video flowing number played before this is adjusted is determined as the video flowing number of equipment support;
If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter meets exceptional condition, then It is described using preset adjustment mode to return to execution, the step of being adjusted to currently playing video flowing number;
If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter is unsatisfactory for exceptional condition, Then by this adjust after the video flowing number that plays be determined as the video flowing number of equipment support.
Optionally, the determination this time play parameter adjusted, may include:
The brightness and coloration of data block in the video frame played after this adjustment are analyzed, using analysis result as this Secondary play parameter adjusted.
Optionally, the determination this time play parameter adjusted, may include:
The video flowing played after this is adjusted is divided into the timeslice of preset length;
For each timeslice, default first quantity time sampling is carried out, sampling obtains a sampled data every time;Judgement is every Whether part sampled data is abnormal, and counts the number of abnormal sample data in the timeslice;If counting obtained number to be greater than in advance If first threshold, then timeslice exception is determined;
Abnormal timeslice quantity is counted, as this play parameter adjusted;
It is described to judge whether the play parameter meets exceptional condition, may include:
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than preset first threshold value, if so, broadcasting described in determining It puts parameter and meets exceptional condition.
Optionally, whether the abnormal timeslice quantity for judging that statistics obtains is greater than preset first threshold value, can wrap It includes:
The corresponding relationship of video flowing number and threshold value according to the pre-stored data determines the video stream played after this time adjusting The corresponding first threshold of number,
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than identified first threshold.
Optionally, described to utilize preset adjustment mode, currently playing video flowing number is adjusted, it can be with Include:
Increase the preview video stream for reading image capture device acquisition, plays the preview video stream;
Alternatively, increasing the playback video flowing for reading storage server storage, the playback video flowing is played.
Optionally, the determination this time play parameter adjusted, may include:
The delayed data occurred in playing process after this time adjusting is determined, as this play parameter adjusted;
Alternatively, judging to determine after this time adjustment picture exception information whether occur in playing process, and judging result is made For this play parameter adjusted;
Alternatively, the data packet serial number exception information whether occurred in playing process after judgement this time adjustment, and judgement is tied Fruit is as this play parameter adjusted.
Optionally, the delayed data occurred in playing process after the determination this time adjusts may include:
Every road video flowing and the preset time baseline played after this is adjusted compares, and determines this according to comparing result The delayed data occurred in playing process after secondary adjustment.
Optionally, the determination this time play parameter adjusted, may include:
Default second quantity time sampling is carried out to the video flowing played after this adjustment, sampling obtains a hits every time According to;
Whether abnormal judge every part of sampled data, and count the number of abnormal sample data, adjusted is broadcast as this Put parameter;
It is described to judge whether the play parameter meets exceptional condition, comprising:
Judge whether the number for the abnormal sample data that statistics obtains is greater than default second threshold, if so, described in determining Play parameter meets exceptional condition.
Optionally, during determining this time play parameter adjusted, can also include:
If detecting network interruption, this time play parameter adjusted is redefined.
In order to achieve the above objectives, the embodiment of the invention also provides the device that a kind of determining equipment supports video flowing number, Include:
Module is adjusted, for utilizing preset adjustment mode, currently playing video flowing number is adjusted;Its In, the adjustment mode are as follows: increase play the road N video flowing every time, or reduce play the road N video flowing every time, the N is positive whole Number;
First determining module, for determining this time play parameter adjusted;
Judgment module, for judging whether the play parameter meets exceptional condition;If the adjustment mode is to increase every time Add and play the road N video flowing, and the play parameter is unsatisfactory for exceptional condition, then triggers the adjustment module;If the adjustment Mode is to increase to play the road N video flowing every time, and the play parameter meets exceptional condition, then triggers the second determining module; If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter meets exceptional condition, then described in triggering Adjust module;If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter is unsatisfactory for abnormal item Part then triggers third determining module;
Second determining module, for this to be adjusted the video stream that the preceding video flowing number played is determined as equipment support Number;
Third determining module, for by this adjust after the video flowing number that plays be determined as the video stream of equipment support Number.
Optionally, first determining module, specifically can be used for: to data block in the video frame played after this adjustment Brightness and coloration analyzed, will analysis result as this play parameter adjusted.
Optionally, first determining module, specifically can be used for: the video flowing played after this is adjusted is divided into pre- If the timeslice of length;
For each timeslice, default first quantity time sampling is carried out, sampling obtains a sampled data every time;Judgement is every Whether part sampled data is abnormal, and counts the number of abnormal sample data in the timeslice;If counting obtained number to be greater than in advance If first threshold, then timeslice exception is determined;
Abnormal timeslice quantity is counted, as this play parameter adjusted;
The judgment module, specifically can be used for:
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than preset first threshold value, if so, broadcasting described in determining It puts parameter and meets exceptional condition.
Optionally, the judgment module, specifically can be used for:
The corresponding relationship of video flowing number and threshold value according to the pre-stored data determines the video stream played after this time adjusting The corresponding first threshold of number,
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than identified first threshold.
Optionally, the adjustment module, specifically can be used for:
Increase the preview video stream for reading image capture device acquisition, plays the preview video stream;
Alternatively, increasing the playback video flowing for reading storage server storage, the playback video flowing is played.
Optionally, first determining module, specifically can be used for:
The delayed data occurred in playing process after this time adjusting is determined, as this play parameter adjusted;
Alternatively, judging to determine after this time adjustment picture exception information whether occur in playing process, and judging result is made For this play parameter adjusted;
Alternatively, the data packet serial number exception information whether occurred in playing process after judgement this time adjustment, and judgement is tied Fruit is as this play parameter adjusted.
Optionally, first determining module can be also used for:
Every road video flowing and the preset time baseline played after this is adjusted compares, and determines this according to comparing result The delayed data occurred in playing process after secondary adjustment.
Optionally, first determining module, specifically can be used for:
Default second quantity time sampling is carried out to the video flowing played after this adjustment, sampling obtains a hits every time According to;Whether abnormal judge every part of sampled data, and count the number of abnormal sample data, joins as this broadcasting adjusted Number;
The judgment module, specifically can be used for: it is pre- to judge whether the number for the abnormal sample data that statistics obtains is greater than If second threshold, if so, determining that the play parameter meets exceptional condition.
Optionally, described device can also include:
Detection module, if interrupted, triggers first determining module for detecting whether network interrupts.
In order to achieve the above objectives, the embodiment of the invention also provides a kind of electronic equipment, including processor and memory;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes that any of the above-described kind of determining equipment supports video The method of flow path number.
In order to achieve the above objectives, the embodiment of the invention also provides the system that a kind of determining equipment supports video flowing number, It include: Devices to test and video streaming apparatus, wherein the Devices to test and the video streaming apparatus communicate to connect;
The video streaming apparatus, for that will acquire or store video flowing;
The Devices to test for reading and playing the video flowing in the video streaming apparatus, and utilizes preset Adjustment mode is adjusted currently playing video flowing number;Wherein, the adjustment mode are as follows: increase play the road N view every time Frequency flows, or reduces play the road N video flowing every time, and the N is positive integer;It determines this time play parameter adjusted, judges institute State whether play parameter meets exceptional condition;If the adjustment mode is that increase every time plays the road N video flowing, and the broadcasting Parameter is unsatisfactory for exceptional condition, then returns and execute the preset adjustment mode of the utilization, to currently playing video stream The step of number is adjusted;If the adjustment mode be every time increase play the road N video flowing, and the play parameter meet it is different This is then adjusted the video flowing number that the preceding video flowing number played is determined as equipment support by normal condition;If the adjustment side Formula is to reduce to play the road N video flowing every time, and the play parameter meets exceptional condition, then it is described using preparatory to return to execution The adjustment mode of setting, the step of being adjusted to currently playing video flowing number;If the adjustment mode is to reduce every time Play the road N video flowing, and the play parameter is unsatisfactory for exceptional condition, then by this adjust after the video flowing number that plays it is true It is set to the video flowing number of equipment support.
Optionally, the Devices to test is client, and the video streaming apparatus is image capture device or storage service Device.
In order to achieve the above objectives, the embodiment of the invention also provides a kind of computer readable storage medium, the computers Computer program is stored in readable storage medium storing program for executing, the computer program realizes any of the above-described kind of determination when being executed by processor The method of equipment support video flowing number.
Using the embodiment of the present invention, without the concern for the various factors for influencing equipment support video flowing number, it is only necessary to set Extremely whether standby adjust automatically plays video flowing number, judge automatically after adjusting, and first aspect process is simple, improves efficiency, Second aspect realizes automatic test, does not need manually to participate in, the third aspect, sets exceptional condition in this programme, if after adjustment Play parameter meet exceptional condition, then determine abnormal after adjustment, exceptional condition can be adjusted according to actual scene, or Say, be to the tolerance of intensity of anomaly in this programme it is adjustable, this programme is preferable to the adaptability of different scenes.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the first process signal for the method that determining equipment provided in an embodiment of the present invention supports video flowing number Figure;
Fig. 2 is one of embodiment of the present invention application scenarios schematic diagram;
Fig. 3 is second of process signal for the method that determining equipment provided in an embodiment of the present invention supports video flowing number Figure;
Fig. 4 is the structural schematic diagram for the device that a kind of determining equipment provided in an embodiment of the present invention supports video flowing number;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram for the system that a kind of determining equipment provided in an embodiment of the present invention supports video flowing number.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides the sides that a kind of determining equipment supports video flowing number Method and device, this method and device can be applied to the equipment for playing video flowing, and the embodiment of the present invention is it needs to be determined that the equipment branch The video flowing number held, in other words tests the equipment, therefore the equipment can also be known as Devices to test.
Devices to test can be host, or can be client etc., specifically without limitation.If Devices to test is client End, then the client can be the client of C/S (Client/Server) structure, or B/S (Browser/Server) The client of structure;If it is the client of B/S structure, video flowing can be played in software and executes implementation of the present invention Example, if it is the client of C/S structure, can play video flowing in webpage and execute the embodiment of the present invention.
The method that a kind of determining equipment provided in an embodiment of the present invention supports video flowing number includes:
Using preset adjustment mode, currently playing video flowing number is adjusted;Wherein, the adjustment side Formula are as follows: increase play the road N video flowing every time, or reduce play the road N video flowing every time, the N is positive integer;
It determines this time play parameter adjusted, judges whether the play parameter meets exceptional condition;
If the adjustment mode is to increase to play the road N video flowing every time, and the play parameter is unsatisfactory for exceptional condition, It is described using preset adjustment mode then to return to execution, the step of being adjusted to currently playing video flowing number;
If the adjustment mode is to increase to play the road N video flowing every time, and the play parameter meets exceptional condition, then The video flowing number played before this is adjusted is determined as the video flowing number of equipment support;
If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter meets exceptional condition, then It is described using preset adjustment mode to return to execution, the step of being adjusted to currently playing video flowing number;
If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter is unsatisfactory for exceptional condition, Then by this adjust after the video flowing number that plays be determined as the video flowing number of equipment support.
In a kind of application scenarios, before executing the present embodiment, video flowing is not played in Devices to test, then it is preset Adjustment mode can play the road N video flowing to increase every time.
In another application scenarios, before executing the present embodiment, the road X video flowing is playing in Devices to test, X is pre- The value first set, X are greater than the video flowing number that Devices to test is supported, X is the positive integer greater than N.In this case, it presets Adjustment mode can for every time reduce play the road N video flowing.
It is appreciated that not can determine that Devices to test supports the specific number of video flowing number before executing the present embodiment Value, but can determine a rough range, a rough order of magnitude can be determined in other words, it can be according to the rough model It encloses and X is set.For example, the video flowing number for predefining Devices to test support can then set X substantially between 5-15 It is set to 20 or other numerical value, specifically without limitation.
In another application scenarios, before executing the present embodiment, it is playing in Devices to test all the way or multichannel regards Frequency flows, and video flowing number being played on is one compared with fractional value, the video flowing number supported less than Devices to test.This feelings Under condition, preset adjustment mode can play the road N video flowing to increase every time, that is, play this all the way or multichannel On the basis of video flowing, increases play the road N video flowing every time.
As described above, not can determine that Devices to test supports the specific number of video flowing number before executing the present embodiment Value, but can determine a rough range, a rough order of magnitude can be determined in other words.It is to be measured before executing S101 Video flowing number being played on can be set according to the rough range in equipment.For example, predefining Devices to test branch The video flowing number held is substantially between 5-15, then before executing S101, video flowing number being played on can in Devices to test Think 1,2,3 etc., specifically without limitation.
It is first below that the embodiment that increase plays the road N video flowing every time is described in detail to adjustment mode.
Fig. 1 is the first process signal for the method that determining equipment provided in an embodiment of the present invention supports video flowing number Figure, comprising:
S101: increasing and play the road N video flowing, and the N is positive integer.
If be playing in Devices to test before executing S101 all the way or multi-path video stream, play this all the way or On the basis of person's multi-path video stream, it is further added by and plays the road N video flowing.If not playing video in Devices to test before executing S101 Stream, then Devices to test plays this road N video flowing.
For example, video flowing can be preview video stream, or playback video flowing.Preview video stream can be figure As the video flowing that acquisition equipment acquires in real time, playback video flowing can be the video flowing stored in storage server.S101 can be with Include: to increase the preview video stream for reading image capture device acquisition, plays the preview video stream;It is deposited alternatively, increasing and reading The playback video flowing for storing up server storage, plays the playback video flowing.
Than as shown in Figure 2, Devices to test is connected with more IP Camera and storage server, and Devices to test both can be with The preview video stream for reading IP Camera acquisition can also read the playback video flowing of storage server storage.
S102: the play parameter this time increased after playing is determined.
As an implementation, the brightness and coloration of data block in video frame played after playing can be increased this It is analyzed, result will be analyzed as this and increase the play parameter after playing.
For example, one or more video frames can be extracted in the video flowing played after this increases and plays, for The each video frame extracted, to the YUV of each data block in the video frame (Y indicates brightness, and U and V indicate coloration) component into Row analysis will analyze result as this and increase the play parameter after playing.
In other embodiments, play parameter can there are many, such as the delayed data, the picture that occur in playing process Exception information, data packet serial number exception information etc., correspondingly, determine there are many modes of play parameter, below in content into Row is described in detail.
S103: judging whether the play parameter meets exceptional condition, if so, executing S104, executes if not, returning S101。
In the present embodiment, exceptional condition is set for play parameter in advance, for example, the exceptional condition can be with are as follows: prolongs When information be greater than threshold value, abnormal data packet quantity is greater than threshold value, etc., below be described in detail in content.
S104: this is increased to the video flowing number that the video flowing number played before playing is determined as equipment support.
In embodiments of the present invention, if play parameter is still unsatisfactory for exceptional condition, then after increasing the broadcasting road N video flowing It continues growing and plays the road N video flowing, until play parameter meets exceptional condition after certain increases the broadcasting road N video flowing, then should The secondary video flowing number for increasing the video flowing number played before playing and being determined as equipment support.
N can be a fixed numbers, such as 1 or 2, or may be other positive integers, specifically without limitation.It is with 1 For example, increase play 1 road video flowing every time, it is assumed that play parameter is unsatisfactory for exceptional condition when playing 3 road video flowing, and increase is broadcast Play parameter meets exceptional condition after putting 1 road video flowing, that is, when playing 4 road video flowing, this time increases play before play Video flowing number be 3, equipment support video flowing number be 3.
Alternatively, N can also be not fixed, that is to say, that increasing the video flowing number played every time can be different, for example, first Secondary increase plays 3 road video flowings, and determines that play parameter is unsatisfactory for exceptional condition after increasing broadcasting for the first time, increases for the second time 2 road video flowings are played, and determine that play parameter is also unsatisfactory for exceptional condition after increasing broadcasting second, third time, which increases, to be played 1 road video flowing, play parameter meets exceptional condition after determining third time increase broadcasting, and third time increases the view for playing broadcasting before Frequency flow path number is 3+2, and the video flowing number that equipment is supported is 5.
Using embodiment illustrated in fig. 1 of the present invention, Devices to test increases every time plays the road N video flowing, and judgement, which this time increases, to be broadcast Whether the play parameter after putting meets exceptional condition;The road N video flowing is played if conditions are not met, then continuing growing, continues judgement and increases Add whether the play parameter after playing meets exceptional condition;If this time increasing the play parameter after playing meets exceptional condition, This is increased to the video flowing number that the video flowing number played before playing is determined as the support of this equipment;As it can be seen that in the present solution, Without the concern for the various factors for influencing equipment support video flowing number, it is only necessary to equipment adjust automatically plays video flowing number, Whether extremely it to judge automatically after adjusting, first aspect process is simple, improves efficiency, and second aspect realizes automatic test, no It needs manually to participate in, the third aspect, sets exceptional condition in this programme, if play parameter adjusted meets exceptional condition, Determine exception after adjusting, exceptional condition can be adjusted according to actual scene, in other words, to the appearance of intensity of anomaly in this programme Degree of bearing be it is adjustable, this programme is preferable to the adaptability of different scenes.
It is below that the embodiment that reduction plays the road N video flowing every time is described in detail to adjustment mode.
Fig. 3 is second of process signal for the method that determining equipment provided in an embodiment of the present invention supports video flowing number Figure, comprising:
S301: reducing and play the road N video flowing, and the N is positive integer.
Before executing the present embodiment, the road X video flowing is playing in Devices to test, X is preset value, and X is greater than The video flowing number that Devices to test is supported, X are the positive integer greater than N.
It is appreciated that not can determine that Devices to test supports the specific number of video flowing number before executing the present embodiment Value, but can determine a rough range, a rough order of magnitude can be determined in other words, it can be according to the rough model It encloses and X is set.For example, the video flowing number for predefining Devices to test support can then set X substantially between 5-15 It is set to 20 or other numerical value, specifically without limitation.
For example, video flowing can be preview video stream, or playback video flowing.Preview video stream can be figure As the video flowing that acquisition equipment acquires in real time, playback video flowing can be the video flowing stored in storage server.It can in S301 To reduce the preview video stream for reading image capture device acquisition, the playback video for reading storage server storage can also be reduced Stream.
Than as shown in Figure 2, Devices to test is connected with more IP Camera and storage server, and Devices to test both can be with The preview video stream for reading IP Camera acquisition is reduced, the playback video flowing for reading storage server storage can also be reduced.
S302: the play parameter this time reduced after playing is determined.
As an implementation, the brightness and coloration of data block in the video frame played after playing can be reduced to this It is analyzed, result will be analyzed as this and reduce the play parameter after playing.
For example, one or more video frames can be extracted in the video flowing played after this reduces and plays, for The each video frame extracted, to the YUV of each data block in the video frame (Y indicates brightness, and U and V indicate coloration) component into Row analysis will analyze result as this and reduce the play parameter after playing.
In other embodiments, play parameter can there are many, such as the delayed data, the picture that occur in playing process Exception information, data packet serial number exception information etc., correspondingly, determine there are many modes of play parameter, below in content into Row is described in detail.
S303: judging whether the play parameter meets exceptional condition, executes S301 if so, returning, if not, executing S304。
In the present embodiment, exceptional condition is set for play parameter in advance, for example, the exceptional condition can be with are as follows: prolongs When information be greater than threshold value, abnormal data packet quantity is greater than threshold value, etc., below be described in detail in content.
S304: this is reduced to the video flowing number that the video flowing number played after playing is determined as equipment support.
In embodiments of the present invention, if reduce play the road N video flowing after, play parameter still meets exceptional condition, then after Continuous reduce plays the road N video flowing, until certain, which reduces play parameter after playing the road N video flowing, is unsatisfactory for exceptional condition, then should The secondary video flowing number for reducing the video flowing number for playing and playing later and being determined as equipment support.
N can be a fixed numbers, such as 1 or 2, or may be other positive integers, specifically without limitation.It is with 1 It for example, reduces play 1 road video flowing every time, it is assumed that play parameter meets exceptional condition when playing 4 road video flowing, reduces and plays Play parameter no longer meets exceptional condition after 1 road video flowing, that is, when playing 3 road video flowing, this time is reduced play after broadcasts The video flowing number put is 3, and the video flowing number that equipment is supported is 3.
Alternatively, N can also be not fixed, that is to say, that reducing the video flowing number played every time can be different.For example, X is 10,10 road video flowing of Devices to test initial play reduces play 3 road video flowings for the first time, that is, plays 7 road video flowings, sentences Play parameter still meets exceptional condition after the fixed broadcasting of reduction for the first time;Second of reduction plays 2 road video flowings, that is, plays 5 Road video flowing determines that play parameter still meets exceptional condition after reducing broadcasting second, and third time, which is reduced, plays 1 road video flowing, 4 road video flowings are namely played, play parameter no longer meets exceptional condition after determining third time reduction broadcasting, and third time is reduced and broadcast The video flowing number played after putting is 4, and the video flowing number that equipment is supported is 4.
Using embodiment illustrated in fig. 3 of the present invention, Devices to test is reduced every time plays the road N video flowing, and judgement is this time reduced and broadcast Whether the play parameter after putting meets exceptional condition;If still met, continues to reduce playing the road N video flowing, continue judgement and subtract Whether the play parameter after few broadcasting meets exceptional condition;If this time reducing the play parameter after playing is unsatisfactory for abnormal item This is reduced the video flowing number that the video flowing number played after playing is determined as the support of this equipment by part;As it can be seen that this programme In, without the concern for the various factors for influencing equipment support video flowing number, it is only necessary to which equipment adjust automatically plays video stream It is several, whether extremely to judge automatically after adjusting, first aspect process is simple, improves efficiency, and second aspect realizes automatic test, It does not need manually to participate in, the third aspect, sets exceptional condition in this programme, if play parameter adjusted meets exceptional condition, Then determine exception after adjusting, exceptional condition can be adjusted according to actual scene, in other words, to intensity of anomaly in this programme Tolerance be it is adjustable, this programme is preferable to the adaptability of different scenes.
In Fig. 1 and embodiment illustrated in fig. 3, the play parameter after this time adjusting and (increasing to play or reduce and play) is determined, And judge whether the play parameter meets exceptional condition can be there are many judgment mode, for example:
The first judgment mode determines the delayed data occurred in playing process after this time adjusting, after this adjustment Play parameter, judge whether the delayed data is less than delay threshold, if it is less, it is different to determine that the play parameter is unsatisfactory for Normal condition.
As an implementation, every road video flowing for playing after this being adjusted and preset time baseline carry out pair Than determining the delayed data occurred in playing process after this time adjusting according to comparing result.For example, video will can be received The time interval of data packet and the step-length of the preset time baseline are made poor in stream, and whether the difference judged is less than delay threshold Value, if it is lower, foot exceptional condition with thumb down.
The delay threshold can be set according to the actual situation, such as the situation lower in some delay tolerances In, which is set it is smaller, such as 1 second, and in the higher situation of some delay tolerances, by the delay threshold What is set is more larger, which is usually more than the time tolerance between two adjacent video frames.
Second of judgment mode, judge to determine this time adjust after whether occur picture exception information in playing process, and will Judging result is as this play parameter adjusted, that is to say, that if occurring picture exception in playing process, determines this Secondary play parameter adjusted meets exceptional condition.
It as an implementation, can be to the brightness and coloration progress of data block in the video frame played after this adjustment Analysis judges whether the video frame is abnormal, if the video frame is abnormal, determines occur picture in playing process based on the analysis results Face is abnormal.
For example, one or more video frames can be extracted, for extraction in the video flowing played after this adjustment Each video frame, the YUV of each data block in the video frame (Y indicates brightness, and U and V indicate coloration) component is divided Analysis judges whether the video frame is abnormal based on the analysis results, determines occur picture in playing process if the video frame is abnormal It is abnormal.
For example, can be with each GOP (Group of Pictures) one video frame of decimation in time.In general, one If there is a video frame picture is abnormal in GOP, then the subsequent video frame in the GOP is all abnormal.Therefore, every GOP extracts one Video frame can accurately judge whether picture exception occur.
Alternatively, a threshold value can be set if having extracted multiple video frames, reach the threshold value in the quantity of anomalous video frame In the case where, determine occur picture exception in playing process.
The third judgment mode, the data packet serial number exception information whether occurred in playing process after judgement this time adjusts, And using judging result as this play parameter adjusted, that is to say, that if there are data packet serial number is different in playing process Normal situation then determines that this time play parameter adjusted meets exceptional condition.
The case where the case where situation of data packet serial number exception may include lost data packets, data packet disorder etc..Data Packet serial number is tactic, an act simply example, it is assumed that the number of data packet serial number 0-100 cycle arrangement, if gone out The case where existing serial number interruption, for example, after receiving the data packet of serial number 50, and continue to serial number 52,53 and it Data packet afterwards, then it represents that the data-bag lost of serial number 51;For another example, after the data packet for receiving serial number 50, and after Continued access receives serial number 52,51 and data packet later, then it represents that the data packet of serial number 51 and the data packet of serial number 52 are suitable Sequence is reverse, that is, out-of-order situation has occurred.In this case, it is possible to determine that this time play parameter adjusted meets abnormal Condition.
(the first sample mode) as an implementation determines this time play parameter adjusted, may include: pair The video flowing played after this time adjusting carries out default second quantity time sampling, and sampling obtains a sampled data every time;For institute Whether abnormal every part of obtained sampled data judges this part of sampled data, and counts the number of abnormal sample data, as this Play parameter adjusted;
Judge whether the play parameter meets exceptional condition, may include: the abnormal sample data that judgement statistics obtains Number whether be greater than default second threshold, if so, determining that the play parameter meets exceptional condition.
In the present embodiment, it is sampled for the video flowing played after this adjustment, specifically, can be to broadcasting It is all sampled per video flowing all the way, perhaps the video flowing played only can also be increased to this and sampled or can also be with The stochastical sampling in the multi-path video stream of broadcasting, specifically without limitation.
It can use the first above-mentioned judgment mode, second of judgment mode, any one in the third judgment mode is come It determines this time play parameter adjusted, and judges whether the play parameter meets exceptional condition;Alternatively, can also be by these three Judgment mode is combined to judge whether play parameter meets exceptional condition, such as a sampled data, first determines it Delayed data, then judge whether it picture exception occurs, if delayed data is less than delay threshold and determines that not occur picture different Often, then determine that this part of sampled data be not abnormal;The combination of above-mentioned several judgment modes without limitation, can with combination of two, It can also be combined with three kinds of judgment modes, built-up sequence is without limitation.
For example, it may include a video frame in a sampled data, if utilizing above-mentioned second of judgment mode Judge whether sampled data abnormal, can brightness to the data block in a video frame in the sampled data and coloration carry out Analysis judges whether the video frame is abnormal, if the video frame is abnormal, determines this part of sampled data exception based on the analysis results.
Second threshold in present embodiment can be a fixed value, be also possible to unfixed.For example, can deposit in advance The corresponding relationship for storing up video flowing number and threshold value first determines the video flowing number played after this time adjusting according to the corresponding relationship Corresponding second threshold, then judge whether the number for the abnormal sample data that statistics obtains is greater than identified second threshold.It should Corresponding relationship can be set according to the actual situation.
Using present embodiment, judge whether play parameter meets exceptional condition, not by once being sentenced Break as a result, but multiple repairing weld, multiple judgement can reduce interference of the occasional case to judging result, judging result is more in this way Accurately.
(second of sample mode) as another embodiment determines this time play parameter adjusted, may include:
The video flowing played after this is adjusted is divided into the timeslice of preset length;
For each timeslice, default first quantity time sampling is carried out, sampling obtains a sampled data every time;Judgement is every Whether part sampled data is abnormal, and counts the number of abnormal sample data in the timeslice;If counting obtained number to be greater than in advance If first threshold, then timeslice exception is determined;
Abnormal timeslice quantity is counted, as this play parameter adjusted;
Judge whether the play parameter meets exceptional condition, may include:
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than preset first threshold value, if so, broadcasting described in determining It puts parameter and meets exceptional condition.
For example, one minute video flowing can be divided into a timeslice, 10 are carried out to video flowing per minute Secondary sampling.The specific length of timeslice and the sampling number of each timeslice can be set according to the actual situation, specifically Without limitation.
Can be to the division for all carrying out timeslice per video flowing all the way of broadcasting, or only this can also be increased and played Video flowing carry out the division of timeslice, or the division of timeslice can also be carried out at random in the multi-path video stream of broadcasting, Specifically without limitation.To simplify the description, it is only illustrated for dividing timeslice to video flowing all the way below.
In the present embodiment, after being adjusted every time to currently playing video flowing number, a period can be reserved To judge playing whether exception occur after this time adjusting.Assuming that the period is 5 minutes, it is assumed that divide one minute video flowing For a timeslice, that is, 5 timeslices are divided, has needed to judge whether this 5 timeslices exception occur.Set a threshold Value, it is assumed that be 3, if the quantity of abnormal time piece is more than threshold value 3, judgement plays after this time adjusting exception occurs.
For example, judge whether each timeslice occurs abnormal may include: to assume to carry out each timeslice 10 times Sampling sets a threshold value, it is assumed that and it is 5, if in 10 sampled datas of a timeslice, if the quantity of abnormal sample data More than threshold value 5, then it is abnormal to determine that the video flowing of the timeslice occurs.
It can use the first above-mentioned judgment mode, second of judgment mode, any one in the third judgment mode is come Judge whether a sampled data is abnormal;Alternatively, these three judgment modes can also be combined to judge a hits According to whether extremely, such as a sampled data, first judge whether its delayed data is less than delay threshold, then whether judge it It is abnormal to there is picture, in the case that judging result is all no twice, determines that this part of sampled data be not abnormal;The combination of judgment mode Mode without limitation, can also be combined, built-up sequence is without limitation with combination of two with three kinds of judgment modes.Citing comes It says, may include a video frame in a sampled data, if judging that sampled data is using above-mentioned second of judgment mode No exception, can brightness to the data block in a video frame in the sampled data and coloration analyze, according to analysis As a result judge whether the video frame is abnormal, if the video frame is abnormal, determines this part of sampled data exception.
The second preset threshold in present embodiment can be a fixed value, be also possible to unfixed.For example, can be pre- The corresponding relationship for first storing video flowing number and threshold value first determines the video flowing played after this time adjusting according to the corresponding relationship Whether the corresponding first threshold of number, then the abnormal timeslice quantity for judging that statistics obtains are greater than identified first threshold. The corresponding relationship can be set according to the actual situation.
Using present embodiment, judge whether play parameter meets exceptional condition, not by once being sentenced Break as a result, but multiple repairing weld, multiple judgement can reduce interference of the occasional case to judging result, judging result is more in this way Accurately.
Judging whether this play parameter adjusted meets the embodiment party of exceptional condition above by multiple repairing weld In formula, if detecting network interruption in the judgment process, this time play parameter adjusted is redefined, this is rejudged Whether play parameter meets exceptional condition.
As an example it is assumed that N is 1, increase plays video flowing all the way every time, this time increases to play and broadcast for the 4th increase It puts, plays three road video flowings before increasing, four road video flowings are played after increase, 5 minutes are reserved after increase to determine the 4th increase Play parameter after broadcasting, and judge whether the play parameter meets exceptional condition.
In this 5 minutes, any one in above two embodiment (two kinds of sample modes) can use, to video flowing It is sampled, and counts the quantity of abnormal sample data, or the quantity of statistics abnormal time piece, the quantity obtained according to statistics Whether the play parameter for judging that the 4th time increases after playing meets exceptional condition.
If after increasing and play at the 4th time, until obtaining judging result (judges the 4th broadcasting ginseng increased after playing Whether number meets the judging results of exceptional condition) before any moment, detect network interruption, all re-execute determining broadcasting Parameter and judge whether play parameter meets the process of exceptional condition.Specifically, being returned in a kind of above-mentioned embodiment The step of " default second quantity time sampling is carried out to the video flowing of broadcasting ";In above-mentioned another embodiment, return to The step of " video flowing of broadcasting is divided into the timeslice of preset length ".
As another example, it is assumed that N 1 is reduced play video flowing all the way every time, is this time reduced to play to reduce for third time and be broadcast It puts, plays four road video flowings before reducing, three road video flowings are played after reduction, 5 minutes are reserved after reduction to determine that third time is reduced Play parameter after broadcasting, and judge whether the play parameter meets exceptional condition.
In this 5 minutes, any one in above two embodiment (two kinds of sample modes) can use, to video flowing It is sampled, and counts the quantity of abnormal sample data, or the quantity of statistics abnormal time piece, the quantity obtained according to statistics Whether the play parameter for judging that third time is reduced after playing meets exceptional condition.
If after third time is reduced and played, until obtaining judging result, (judgement third time reduces the broadcasting ginseng after playing Whether number meets the judging results of exceptional condition) before any moment, detect network interruption, all re-execute determining broadcasting Parameter and judge whether play parameter meets the process of exceptional condition.Specifically, being returned in a kind of above-mentioned embodiment The step of " default second quantity time sampling is carried out to the video flowing of broadcasting ";In above-mentioned another embodiment, return to The step of " video flowing of broadcasting is divided into the timeslice of preset length ".
Using present embodiment, the case where in case of network interruption, only this adjustment is had an impact, if not to before The judgement of dry adjustment has an impact, and compared to the scheme for adjusting video flowing from the beginning and being judged, simplifies process, mentions High efficiency.
Corresponding with above method embodiment, the embodiment of the present invention also provides a kind of determining equipment and supports video flowing number Device, as shown in Figure 4, comprising:
Module 401 is adjusted, for utilizing preset adjustment mode, currently playing video flowing number is adjusted It is whole;Wherein, the adjustment mode are as follows: increase play the road N video flowing every time, or reduce play the road N video flowing, the N every time For positive integer;
First determining module 402, for determining this time play parameter adjusted;
Judgment module 403, for judging whether the play parameter meets exceptional condition;If the adjustment mode is each Increase and play the road N video flowing, and the play parameter is unsatisfactory for exceptional condition, then triggers adjustment module 401;If the adjustment Mode is to increase to play the road N video flowing every time, and the play parameter meets exceptional condition, then triggers the second determining module 404;If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter meets exceptional condition, then triggers Adjust module 401;If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter is unsatisfactory for exception Condition then triggers third determining module 405;
Second determining module 404, for this to be adjusted the video that the preceding video flowing number played is determined as equipment support Flow path number;
Third determining module 405, for by this adjust after the video flowing number that plays be determined as the video of equipment support Flow path number.
As an implementation, the first determining module 402, specifically can be used for: to the video played after this adjustment The brightness of data block and coloration are analyzed in frame, using analysis result as this play parameter adjusted.
As an implementation, the first determining module 402, specifically can be used for: the video played after this is adjusted Stream is divided into the timeslice of preset length;
For each timeslice, default first quantity time sampling is carried out, sampling obtains a sampled data every time;Judgement is every Whether part sampled data is abnormal, and counts the number of abnormal sample data in the timeslice;If counting obtained number to be greater than in advance If first threshold, then timeslice exception is determined;
Abnormal timeslice quantity is counted, as this play parameter adjusted;
Judgment module 403, specifically can be used for:
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than preset first threshold value, if so, broadcasting described in determining It puts parameter and meets exceptional condition.
As an implementation, judgment module 403 specifically can be used for:
The corresponding relationship of video flowing number and threshold value according to the pre-stored data determines the video stream played after this time adjusting The corresponding first threshold of number,
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than identified first threshold.
As an implementation, module 401 is adjusted, specifically can be used for:
Increase the preview video stream for reading image capture device acquisition, plays the preview video stream;
Alternatively, increasing the playback video flowing for reading storage server storage, the playback video flowing is played.
As an implementation, the first determining module 402, specifically can be used for:
The delayed data occurred in playing process after this time adjusting is determined, as this play parameter adjusted;
Alternatively, judging to determine after this time adjustment picture exception information whether occur in playing process, and judging result is made For this play parameter adjusted;
Alternatively, the data packet serial number exception information whether occurred in playing process after judgement this time adjustment, and judgement is tied Fruit is as this play parameter adjusted.
As an implementation, the first determining module 402 can be also used for:
Every road video flowing and the preset time baseline played after this is adjusted compares, and determines this according to comparing result The delayed data occurred in playing process after secondary adjustment.
As an implementation, the first determining module 402, specifically can be used for:
Default second quantity time sampling is carried out to the video flowing played after this adjustment, sampling obtains a hits every time According to;Whether abnormal judge every part of sampled data, and count the number of abnormal sample data, joins as this broadcasting adjusted Number;
Judgment module 403, specifically can be used for: it is default to judge whether the number for the abnormal sample data that statistics obtains is greater than Second threshold, if so, determining that the play parameter meets exceptional condition.
Using embodiment illustrated in fig. 4 of the present invention, without the concern for the various factors for influencing equipment support video flowing number, only It needs equipment adjust automatically to play video flowing number, whether extremely to judge automatically after adjusting, first aspect process is simple, improves Efficiency, second aspect realize automatic test, do not need manually to participate in, the third aspect, set exceptional condition in this programme, if adjusting Play parameter after whole meets exceptional condition, then determines that exception after adjustment, exceptional condition can be adjusted according to actual scene, In other words, be to the tolerance of intensity of anomaly in this programme it is adjustable, this programme is preferable to the adaptability of different scenes.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 5, including processor 501 and memory 502,
Memory 502, for storing computer program;
Processor 501 when for executing the program stored on memory 502, realizes any of the above-described kind of determining equipment branch The method for holding video flowing number.
The memory that above-mentioned electronic equipment is mentioned may include random access memory (Random Access Memory, It RAM), also may include nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a disk storage Device.Optionally, memory can also be that at least one is located remotely from the storage device of aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
The embodiment of the present invention also provides a kind of system that determining equipment supports video flowing number, as shown in Figure 6, comprising: to Measurement equipment and video streaming apparatus.In Fig. 6, which includes more video streaming apparatus, and Devices to test is logical with every video streaming apparatus Letter connection.
The video streaming apparatus, for that will acquire or store video flowing;
The Devices to test for reading and playing the video flowing in the video streaming apparatus, and utilizes preset Adjustment mode is adjusted currently playing video flowing number;Wherein, the adjustment mode are as follows: increase play the road N view every time Frequency flows, or reduces play the road N video flowing every time, and the N is positive integer;It determines this time play parameter adjusted, judges institute State whether play parameter meets exceptional condition;If the adjustment mode is that increase every time plays the road N video flowing, and the broadcasting Parameter is unsatisfactory for exceptional condition, then returns and execute the preset adjustment mode of the utilization, to currently playing video stream The step of number is adjusted;If the adjustment mode be every time increase play the road N video flowing, and the play parameter meet it is different This is then adjusted the video flowing number that the preceding video flowing number played is determined as equipment support by normal condition;If the adjustment side Formula is to reduce to play the road N video flowing every time, and the play parameter meets exceptional condition, then it is described using preparatory to return to execution The adjustment mode of setting, the step of being adjusted to currently playing video flowing number;If the adjustment mode is to reduce every time Play the road N video flowing, and the play parameter is unsatisfactory for exceptional condition, then by this adjust after the video flowing number that plays it is true It is set to the video flowing number of equipment support.
As an implementation, the Devices to test be client, the video streaming apparatus be image capture device or Person's storage server.
Devices to test can be host, or can be client etc., specifically without limitation.If Devices to test is client End, then the client can be the client of C/S (Client/Server) structure, or B/S (Browser/Server) The client of structure;If it is the client of B/S structure, video flowing can be played in software and executes implementation of the present invention Example, if it is the client of C/S structure, can play video flowing in webpage and execute the embodiment of the present invention.
The method that any of the above-described kind of determining equipment supports video flowing number may be implemented in Devices to test.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer readable storage medium memory Computer program is contained, the computer program realizes that any of the above-described kind of determining equipment supports video stream when being executed by processor Several methods.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for Fig. 4 institute Show Installation practice, the electronic equipment embodiment shown in fig. 5, determination shown in fig. 6 of locking equipment support video flowing number really For equipment supports the system embodiment and above-mentioned computer readable storage medium embodiment of video flowing number, due to its base Originally it is similar to shown in Fig. 1-3 and determines that equipment supports the embodiment of the method for video flowing number, so be described relatively simple, it is related Place is referring to the part explanation for determining that equipment supports the embodiment of the method for video flowing number shown in Fig. 1-3.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (21)

1. a kind of method that determining equipment supports video flowing number characterized by comprising
Using preset adjustment mode, currently playing video flowing number is adjusted;Wherein, the adjustment mode Are as follows: increase play the road N video flowing every time, or reduce play the road N video flowing every time, the N is positive integer;
It determines this time play parameter adjusted, judges whether the play parameter meets exceptional condition;
If the adjustment mode is to increase to play the road N video flowing every time, and the play parameter is unsatisfactory for exceptional condition, then returns Preset adjustment mode is utilized described in receipt row, the step of being adjusted to currently playing video flowing number;
If the adjustment mode is to increase to play the road N video flowing every time, and the play parameter meets exceptional condition, then by this The video flowing number played before secondary adjustment is determined as the video flowing number of equipment support;
If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter meets exceptional condition, then returns The preset adjustment mode of the utilization is executed, the step of being adjusted to currently playing video flowing number;
If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter is unsatisfactory for exceptional condition, then will The video flowing number played after this time adjusting is determined as the video flowing number of equipment support.
2. the method according to claim 1, wherein this play parameter adjusted of the determination, comprising:
The brightness and coloration of data block in the video frame played after this adjustment are analyzed, using analysis result as this tune Play parameter after whole.
3. the method according to claim 1, wherein this play parameter adjusted of the determination, comprising:
The video flowing played after this is adjusted is divided into the timeslice of preset length;
For each timeslice, default first quantity time sampling is carried out, sampling obtains a sampled data every time;Judge that every part is adopted Whether sample data are abnormal, and count the number of abnormal sample data in the timeslice;If counting obtained number is greater than default the One threshold value then determines timeslice exception;
Abnormal timeslice quantity is counted, as this play parameter adjusted;
It is described to judge whether the play parameter meets exceptional condition, comprising:
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than preset first threshold value, if so, determining the broadcasting ginseng Number meets exceptional condition.
4. according to the method described in claim 3, it is characterized in that, the abnormal timeslice quantity that the judgement statistics obtains is It is no to be greater than preset first threshold value, comprising:
The corresponding relationship of video flowing number and threshold value according to the pre-stored data determines the video flowing number pair played after this time adjusting The first threshold answered,
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than identified first threshold.
5. the method according to claim 1, wherein described utilize preset adjustment mode, to currently broadcasting The video flowing number put is adjusted, comprising:
Increase the preview video stream for reading image capture device acquisition, plays the preview video stream;
Alternatively, increasing the playback video flowing for reading storage server storage, the playback video flowing is played.
6. the method according to claim 1, wherein this play parameter adjusted of the determination, comprising:
The delayed data occurred in playing process after this time adjusting is determined, as this play parameter adjusted;
Alternatively, judging to determine after this time adjustment picture exception information whether occur in playing process, and using judging result as this Secondary play parameter adjusted;
Alternatively, the data packet serial number exception information whether occurred in playing process after judgement this time adjustment, and judging result is made For this play parameter adjusted.
7. according to the method described in claim 6, it is characterized in that, what is occurred in playing process after the determination this time adjustment prolongs When information, comprising:
Every road video flowing and the preset time baseline played after this is adjusted compares, and is determined according to comparing result and is this time adjusted The delayed data occurred in playing process after whole.
8. the method according to claim 1, wherein this play parameter adjusted of the determination, comprising:
Default second quantity time sampling is carried out to the video flowing played after this adjustment, sampling obtains a sampled data every time;
Whether abnormal judge every part of sampled data, and count the number of abnormal sample data, joins as this broadcasting adjusted Number;
It is described to judge whether the play parameter meets exceptional condition, comprising:
Judge whether the number for the abnormal sample data that statistics obtains is greater than default second threshold, if so, determining the broadcasting Parameter meets exceptional condition.
9. the method according to claim 3 or 8, which is characterized in that in the process for determining this time play parameter adjusted In, further includes:
If detecting network interruption, this time play parameter adjusted is redefined.
10. the device that a kind of determining equipment supports video flowing number characterized by comprising
Module is adjusted, for utilizing preset adjustment mode, currently playing video flowing number is adjusted;Wherein, The adjustment mode are as follows: increase play the road N video flowing every time, or reduce play the road N video flowing every time, the N is positive integer;
First determining module, for determining this time play parameter adjusted;
Judgment module, for judging whether the play parameter meets exceptional condition;If the adjustment mode is that increase is broadcast every time The road N video flowing is put, and the play parameter is unsatisfactory for exceptional condition, then triggers the adjustment module;If the adjustment mode The road N video flowing is played to increase every time, and the play parameter meets exceptional condition, then triggers the second determining module;If institute Stating adjustment mode is to reduce to play the road N video flowing every time, and the play parameter meets exceptional condition, then triggers the adjustment Module;If the adjustment mode is to reduce to play the road N video flowing every time, and the play parameter is unsatisfactory for exceptional condition, then Trigger third determining module;
Second determining module, for this to be adjusted the video flowing number that the preceding video flowing number played is determined as equipment support;
Third determining module, for by this adjust after the video flowing number that plays be determined as the video flowing number of equipment support.
11. device according to claim 10, which is characterized in that first determining module is specifically used for: to this tune The brightness of data block and coloration are analyzed in the video frame played after whole, are joined analysis result as this broadcasting adjusted Number.
12. device according to claim 10, which is characterized in that first determining module is specifically used for: this is adjusted The video flowing played after whole is divided into the timeslice of preset length;
For each timeslice, default first quantity time sampling is carried out, sampling obtains a sampled data every time;Judge that every part is adopted Whether sample data are abnormal, and count the number of abnormal sample data in the timeslice;If counting obtained number is greater than default the One threshold value then determines timeslice exception;
Abnormal timeslice quantity is counted, as this play parameter adjusted;
The judgment module, is specifically used for:
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than preset first threshold value, if so, determining the broadcasting ginseng Number meets exceptional condition.
13. device according to claim 12, which is characterized in that the judgment module is specifically used for:
The corresponding relationship of video flowing number and threshold value according to the pre-stored data determines the video flowing number pair played after this time adjusting The first threshold answered,
Whether the abnormal timeslice quantity for judging that statistics obtains is greater than identified first threshold.
14. according to the method described in claim 10, it is characterized in that, the adjustment module, is specifically used for:
Increase the preview video stream for reading image capture device acquisition, plays the preview video stream;
Alternatively, increasing the playback video flowing for reading storage server storage, the playback video flowing is played.
15. device according to claim 10, which is characterized in that first determining module is specifically used for:
The delayed data occurred in playing process after this time adjusting is determined, as this play parameter adjusted;
Alternatively, judging to determine after this time adjustment picture exception information whether occur in playing process, and using judging result as this Secondary play parameter adjusted;
Alternatively, the data packet serial number exception information whether occurred in playing process after judgement this time adjustment, and judging result is made For this play parameter adjusted.
16. device according to claim 15, which is characterized in that first determining module is also used to:
Every road video flowing and the preset time baseline played after this is adjusted compares, and is determined according to comparing result and is this time adjusted The delayed data occurred in playing process after whole.
17. device according to claim 10, which is characterized in that first determining module is specifically used for:
Default second quantity time sampling is carried out to the video flowing played after this adjustment, sampling obtains a sampled data every time; Whether abnormal judge every part of sampled data, and count the number of abnormal sample data, as this play parameter adjusted;
The judgment module, is specifically used for: judging whether the number for the abnormal sample data that statistics obtains is greater than default second threshold Value, if so, determining that the play parameter meets exceptional condition.
18. device described in 2 or 17 according to claim 1, which is characterized in that described device further include:
Detection module, if interrupted, triggers first determining module for detecting whether network interrupts.
19. a kind of electronic equipment, which is characterized in that including processor and memory;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-9.
20. a kind of system that determining equipment supports video flowing number characterized by comprising Devices to test and video streaming apparatus, Wherein, the Devices to test and the video streaming apparatus communicate to connect;
The video streaming apparatus, for that will acquire or store video flowing;
The Devices to test for reading and playing the video flowing in the video streaming apparatus, and utilizes preset adjustment Mode is adjusted currently playing video flowing number;Wherein, the adjustment mode are as follows: increase play the road N video every time Stream, or reduce play the road N video flowing every time, the N is positive integer;This time play parameter adjusted is determined, described in judgement Whether play parameter meets exceptional condition;If the adjustment mode is to increase to play the road N video flowing every time, and the broadcasting is joined It counts and is unsatisfactory for exceptional condition, then return and execute the preset adjustment mode of the utilization, to currently playing video flowing number The step of being adjusted;If the adjustment mode is to increase to play the road N video flowing every time, and play parameter satisfaction is abnormal This is then adjusted the video flowing number that the preceding video flowing number played is determined as equipment support by condition;If the adjustment mode The road N video flowing is played to reduce every time, and the play parameter meets exceptional condition, then returns to described utilize of execution and set in advance Fixed adjustment mode, the step of being adjusted to currently playing video flowing number;If the adjustment mode is that reduction is broadcast every time Put the road N video flowing, and the play parameter is unsatisfactory for exceptional condition, then by this adjust after the video flowing number that plays determine The video flowing number supported for equipment.
21. system according to claim 20, which is characterized in that the Devices to test is client, and the video flowing is set Standby is image capture device or storage server.
CN201810132859.6A 2018-02-09 2018-02-09 Method, device and equipment for determining number of video streams supported by equipment Active CN110139063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810132859.6A CN110139063B (en) 2018-02-09 2018-02-09 Method, device and equipment for determining number of video streams supported by equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810132859.6A CN110139063B (en) 2018-02-09 2018-02-09 Method, device and equipment for determining number of video streams supported by equipment

Publications (2)

Publication Number Publication Date
CN110139063A true CN110139063A (en) 2019-08-16
CN110139063B CN110139063B (en) 2020-12-18

Family

ID=67567909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810132859.6A Active CN110139063B (en) 2018-02-09 2018-02-09 Method, device and equipment for determining number of video streams supported by equipment

Country Status (1)

Country Link
CN (1) CN110139063B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117156189A (en) * 2023-02-27 2023-12-01 荣耀终端有限公司 Screen-throwing display method and electronic equipment

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1575448A (en) * 2001-09-06 2005-02-02 高通股份有限公司 Generating and implementing a communication protocol and interface for high data rate signal transfer
US7039074B1 (en) * 2000-09-14 2006-05-02 Agiletv Corporation N-way demultiplexer
US7130362B2 (en) * 2001-12-18 2006-10-31 Vixs, Inc. Method and apparatus for establishing non-standard data rates in a wireless communication system
CN101039270A (en) * 2007-03-12 2007-09-19 杭州华为三康技术有限公司 Data transmission apparatus and method for supporting multi-channel data transmission
WO2009042049A2 (en) * 2007-09-27 2009-04-02 Lucent Technologies Inc. Method and apparatus for controlling video streams
CN101534431A (en) * 2008-03-10 2009-09-16 中国移动通信集团公司 Overvoltage testing method of video service system and system and device thereof
CN102014313A (en) * 2009-09-08 2011-04-13 华为技术有限公司 Method and device for realizing link information publishing by nodes
CN102708842A (en) * 2012-06-08 2012-10-03 宁波Gqy视讯股份有限公司 Image processor for mosaic screen
US8345545B2 (en) * 2009-01-28 2013-01-01 Nec Laboratories America, Inc. Methods and systems for rate matching and rate shaping in a wireless network
CN103021438A (en) * 2012-12-25 2013-04-03 创新科软件技术(深圳)有限公司 Method and device for simulating writing of video data into disk arrays
CN104349106A (en) * 2014-10-31 2015-02-11 广东威创视讯科技股份有限公司 Method and system for processing and acquiring multiple video signals
CN104932996A (en) * 2014-03-20 2015-09-23 英特尔公司 A method, apparatus, and system for controlling power consumption of unused hardware of a link interface
CN105407323A (en) * 2015-11-17 2016-03-16 浙江大华技术股份有限公司 Screen splitting method and device of monitor video
CN106571859A (en) * 2015-10-09 2017-04-19 华为技术有限公司 MIMO transmission method and apparatus
US9716913B2 (en) * 2014-12-19 2017-07-25 Texas Instruments Incorporated Generation of a video mosaic display
CN206948504U (en) * 2017-06-19 2018-01-30 厦门视诚科技有限公司 Realize the device of 32 road picture taking turns

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7039074B1 (en) * 2000-09-14 2006-05-02 Agiletv Corporation N-way demultiplexer
CN1575448A (en) * 2001-09-06 2005-02-02 高通股份有限公司 Generating and implementing a communication protocol and interface for high data rate signal transfer
US7130362B2 (en) * 2001-12-18 2006-10-31 Vixs, Inc. Method and apparatus for establishing non-standard data rates in a wireless communication system
CN101039270A (en) * 2007-03-12 2007-09-19 杭州华为三康技术有限公司 Data transmission apparatus and method for supporting multi-channel data transmission
WO2009042049A2 (en) * 2007-09-27 2009-04-02 Lucent Technologies Inc. Method and apparatus for controlling video streams
CN101534431A (en) * 2008-03-10 2009-09-16 中国移动通信集团公司 Overvoltage testing method of video service system and system and device thereof
US8345545B2 (en) * 2009-01-28 2013-01-01 Nec Laboratories America, Inc. Methods and systems for rate matching and rate shaping in a wireless network
CN102014313A (en) * 2009-09-08 2011-04-13 华为技术有限公司 Method and device for realizing link information publishing by nodes
CN102708842A (en) * 2012-06-08 2012-10-03 宁波Gqy视讯股份有限公司 Image processor for mosaic screen
CN103021438A (en) * 2012-12-25 2013-04-03 创新科软件技术(深圳)有限公司 Method and device for simulating writing of video data into disk arrays
CN104932996A (en) * 2014-03-20 2015-09-23 英特尔公司 A method, apparatus, and system for controlling power consumption of unused hardware of a link interface
CN104349106A (en) * 2014-10-31 2015-02-11 广东威创视讯科技股份有限公司 Method and system for processing and acquiring multiple video signals
US9716913B2 (en) * 2014-12-19 2017-07-25 Texas Instruments Incorporated Generation of a video mosaic display
CN106571859A (en) * 2015-10-09 2017-04-19 华为技术有限公司 MIMO transmission method and apparatus
CN105407323A (en) * 2015-11-17 2016-03-16 浙江大华技术股份有限公司 Screen splitting method and device of monitor video
CN206948504U (en) * 2017-06-19 2018-01-30 厦门视诚科技有限公司 Realize the device of 32 road picture taking turns

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘锋光.: "基于VPN的水电站远程监控系统的研究与应用", 《中国优秀硕士学位论文全文数据库》 *
杨玉糯.: "高清监控存储系统的应用部署", 《中国公共安全》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117156189A (en) * 2023-02-27 2023-12-01 荣耀终端有限公司 Screen-throwing display method and electronic equipment

Also Published As

Publication number Publication date
CN110139063B (en) 2020-12-18

Similar Documents

Publication Publication Date Title
US6856758B2 (en) Method and apparatus for insuring complete recording of a television program
US7948558B2 (en) Audio video timing measurement and synchronization
US10931975B2 (en) Techniques for detecting media playback errors
CN103686414B (en) Internet video playback method and device
US20030133511A1 (en) Summarizing videos using motion activity descriptors correlated with audio features
US10362264B2 (en) Profile for frame rate conversion
CN107613314B (en) A kind of method and device detecting brush popularity behavior in live streaming
CN108933938A (en) A kind of video quality method of inspection, device and electronic equipment
CN110139063A (en) A kind of determining equipment supports the method, device and equipment of video flowing number
US6943828B1 (en) Method and apparatus for providing adaptive horizontal sync detection
CN109600653A (en) Playback method, device and the electronic equipment of video file
EP2725578A1 (en) Loudness log for recovery of gated loudness measurements and associated analyzer
CN110324707A (en) A kind of video starts broadcasting time-consuming test method and device
EP1647139B1 (en) Method and system for detecting weak or invalid signals in data streams
US6845331B2 (en) Data processing system and method included within an oscilloscope for independently testing an input signal
JP2001509986A (en) Digital synchronization signal separator
CN112423124A (en) Dynamic playing method, device and system based on large-screen video player
CN104469495A (en) Method and device for monitoring clicks for video playing
CN110908887A (en) Method and system for automatically testing response speed of application program
WO2023240927A1 (en) Terminal capability test system, method, device, and storage medium
CN116781975A (en) Media stream detection method, device, terminal equipment and storage medium
CA1177156A (en) Television ghost signal detection during the video information interval
JPH0642745B2 (en) Color noise detector
JP2000101960A (en) Automatic still image capture device and method for automatically capturing still images
JPH01309492A (en) Color noise evaluation method

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