CN108419046B - Monitoring method and device for multi-channel video - Google Patents

Monitoring method and device for multi-channel video Download PDF

Info

Publication number
CN108419046B
CN108419046B CN201810146206.3A CN201810146206A CN108419046B CN 108419046 B CN108419046 B CN 108419046B CN 201810146206 A CN201810146206 A CN 201810146206A CN 108419046 B CN108419046 B CN 108419046B
Authority
CN
China
Prior art keywords
video
channel
current time
video stream
videos
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
CN201810146206.3A
Other languages
Chinese (zh)
Other versions
CN108419046A (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201810146206.3A priority Critical patent/CN108419046B/en
Publication of CN108419046A publication Critical patent/CN108419046A/en
Application granted granted Critical
Publication of CN108419046B publication Critical patent/CN108419046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The invention relates to the technical field of networks, in particular to a monitoring method and a device of multi-channel videos, wherein the method comprises the steps of respectively obtaining video streams of the current time period from video channels of the multi-channel videos; intercepting a cartoon file from the video stream of each current time period; the method comprises the steps of establishing corresponding relations between a plurality of captured dynamic image files and corresponding video names of video channels of multiple paths of videos respectively, and packaging the corresponding relations into a playing page, so that a monitoring terminal displays the dynamic image files and the video names of the video channels of the multiple paths of videos by loading the playing page.

Description

Monitoring method and device for multi-channel video
Technical Field
The invention relates to the technical field of networks, in particular to a method and a device for monitoring multiple paths of videos.
Background
For network video signals, the current whole process usually includes that a video signal source receives video signals from a satellite receiving side, and the video signals are accessed to a scheduling layer, an encoding layer and a trans-encapsulation layer, and then stored and pulled to be used by systems such as live video broadcasting, on-demand video or editing, but the whole process has more nodes and the processing of each node is more complex, for example, the scheduling and encoding modes are more diverse and complex, which is not beneficial to monitoring, therefore, the network video signals used by the system of live video broadcasting, on-demand video or editing are usually monitored after all the processing. In addition, with the development of networks, the number of video channels corresponding to network video signals is also increasing, and the network video signals of a large number of multiple video channels need to be monitored.
In the prior art, the monitoring of the network video is mainly realized by monitoring the network video signal of one video channel through one monitoring terminal, and the monitoring mode can only be realized through a plurality of monitoring terminals for monitoring the multiple video channels, so that the consumed resources and the cost are high, monitoring managers may not monitor abnormal conditions in time, and the efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a method and a device for monitoring multiple paths of videos, and aims to solve the problem of low video monitoring efficiency in the prior art.
The embodiment of the invention provides the following specific technical scheme:
according to a first aspect of the embodiments of the present invention, there is provided a method for monitoring multiple channels of videos, including:
respectively acquiring video streams of the current time period from the video channels of the multiple paths of videos;
intercepting a cartoon file from the video stream of each current time period;
and respectively establishing corresponding relations between the captured multiple moving picture files and the corresponding video names of the video channels of the multiple paths of videos, and packaging the corresponding relations into a playing page, so that the monitoring terminal can display the moving picture files and the video names of the video channels of the multiple paths of videos by loading the playing page.
In combination with the first aspect of the embodiments of the present invention, the method further includes: and acquiring the identifiers of the video channels of the multi-channel videos, naming the corresponding motion picture files of the video channels of the multi-channel videos respectively according to the identifiers of the video channels of the multi-channel videos, and storing the named motion picture files. Therefore, the names of the corresponding motion picture files are named according to the identifiers of the video channels, so that the names of all the motion picture files corresponding to the same video channel have the same characteristics.
In combination with the first aspect of the embodiments of the present invention, the method further includes: and acquiring the video channel name corresponding to the video channel of the multi-channel video according to the identifier of the video channel of the multi-channel video. Therefore, the name of the corresponding video channel can be accurately pulled according to the identification, and can be associated with the motion picture file.
In combination with the first aspect of the embodiments of the present invention, the method further includes: and detecting the video stream of each current time interval, and giving an alarm if a preset abnormal event is detected. Therefore, when the moving picture file display monitoring is carried out, the video stream detection alarm function is linked at the same time, and the effectiveness and the reliability of the monitoring are improved.
With reference to the first aspect of the embodiment of the present invention, the detecting the video stream of each current time interval, where the detecting the video stream of any current time interval specifically includes: if the video stream of the next time period of the video channel corresponding to the video stream of any current time period is determined not to be acquired, determining that the flow-cutoff abnormal event of the video stream of the corresponding video channel is detected; or, if it is determined that the audio data in the video stream of any current time period is not detected, determining that a mute abnormal event of the video stream of any current time period is detected; or, if it is determined that the pixel color values of the pictures of the continuous preset frames of the video stream at any current time interval are all characterized by black, determining that a black screen abnormal event of the video stream at any current time interval is detected; or, if it is determined that the pictures of each frame of the video stream in any current time period are detected to be the same, determining that the static frame abnormal event of the video stream in any current time period is detected. Therefore, by detecting the video stream, more abnormal events can be detected, and the monitoring effect is improved.
According to a second aspect of the embodiments of the present invention, there is provided a monitoring apparatus for multiple videos, including:
the first acquisition module is used for respectively acquiring video streams of the current time period from the video channels of the multi-channel videos;
the intercepting module is used for intercepting the animation file from the video stream of each current time interval;
and the packaging module is used for respectively establishing the corresponding relation between the captured multiple moving picture files and the video names of the video channels of the corresponding multi-channel videos and packaging the corresponding relation into a playing page so that the monitoring terminal can display the moving picture files and the video names of the video channels of the multi-channel videos by loading the playing page.
In combination with the second aspect of the embodiment of the present invention, the method further includes: and the naming storage module is used for acquiring the identifiers of the video channels of the multi-channel videos, naming the motion picture files corresponding to the video channels of the multi-channel videos respectively according to the identifiers of the video channels of the multi-channel videos, and storing the named motion picture files.
In combination with the second aspect of the embodiment of the present invention, the method further includes: and the second acquisition module is used for acquiring the video channel name corresponding to the video channel of the multi-channel video according to the identifier of the video channel of the multi-channel video.
In combination with the second aspect of the embodiment of the present invention, the method further includes: and the alarm module is used for detecting the video stream of each current time interval and giving an alarm if a preset abnormal event is detected.
With reference to the second aspect of the embodiment of the present invention, the video stream of each current time period is detected, where the video stream of any current time period is detected, and the alarm module is specifically configured to: if the video stream of the next time period of the video channel corresponding to the video stream of any current time period is determined not to be acquired, determining that the flow-cutoff abnormal event of the video stream of the corresponding video channel is detected; or, if it is determined that the audio data in the video stream of any current time period is not detected, determining that a mute abnormal event of the video stream of any current time period is detected; or, if it is determined that the pixel color values of the pictures of the continuous preset frames of the video stream at any current time interval are all characterized by black, determining that a black screen abnormal event of the video stream at any current time interval is detected; or, if it is determined that the pictures of each frame of the video stream in any current time period are detected to be the same, determining that the static frame abnormal event of the video stream in any current time period is detected.
According to a third aspect of embodiments of the present invention, there is provided a computer apparatus comprising:
at least one memory for storing program instructions;
and the at least one processor is used for calling the program instructions stored in the memory and executing the monitoring method of the multi-channel video in the embodiment of the invention according to the obtained program instructions.
According to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the steps of the method for monitoring multiple videos.
In the embodiment of the invention, video streams of the current time period are respectively obtained from the video channels of the multi-channel videos; intercepting a cartoon file from the video stream of each current time period; respectively establishing corresponding relations between the captured multiple moving picture files and the video names of the video channels of the corresponding multi-channel videos, packaging the corresponding relations into a playing page, so that the monitoring terminal displays the motion picture file and the video name of the video channel of the multi-channel video by loading the playing page, thus, by intercepting the moving picture file from the video stream of the video channel of the multi-channel video, the multi-screen monitoring of the multi-channel video on one monitoring terminal is realized, and when the multi-screen display is carried out, the moving picture file and the corresponding video name are displayed simultaneously, so that a user can conveniently check which video channel is, the monitoring effect is improved, the configuration and the cost of the monitoring terminal and monitoring personnel are reduced in the multi-screen monitoring, the monitoring personnel can conveniently carry out abnormal troubleshooting and positioning, the abnormal condition can be monitored in time, and the monitoring efficiency is improved.
Drawings
Fig. 1 is an application scene architecture diagram of a monitoring method for multiple videos in an embodiment of the present invention;
FIG. 2 is a diagram illustrating an overall architecture of a video stream flow according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for monitoring multiple videos according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating the effect of a multi-channel video monitoring method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating the actual effect of the multi-channel video monitoring method according to the embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a multi-channel video monitoring apparatus according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a server architecture according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a monitoring terminal in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
To facilitate an understanding of the embodiments of the present invention, a few concepts are briefly introduced below:
video streaming: refers to the transmission of video data, for example, which can be handled as a steady and continuous stream through a network. Because of the streaming, the client browser or plug-in is able to display the multimedia data before the entire file is transferred.
Video live broadcast: when a user sends a live broadcast request, the server informs the user of a broadcast address of a live broadcast channel, generally a multicast URL (uniform resource locator), instead of a multicast file, according to live broadcast information, and the user adds a corresponding multicast group according to the address, namely, the user can receive a code stream of the live broadcast television.
Video on demand: the video-on-demand system, which plays programs according to the requirements of the viewer, transmits the video contents clicked or selected by the user to the requested user.
Referring to fig. 1, a view of an application scenario architecture of the monitoring method for multiple videos in the embodiment of the present invention at least includes a monitoring server, a monitoring terminal, and a video server.
The video server provides video services such as video on demand and live broadcast for a user terminal (not shown in fig. 1), and can send a video stream to the user terminal so that a user can watch videos through the user terminal.
The monitoring server provides network service for the monitoring terminal, communicates with the video server, and can acquire video stream data from the video server to monitor the video stream.
The method for monitoring multiple channels of videos provided in the embodiments of the present invention may be applicable to monitoring video streams of various video channels, such as a live channel, an on-demand channel, and a clip channel, and the embodiments of the present invention are not limited thereto. In a possible implementation manner, if the video stream of the live channel is monitored, the video server is a background video server of the video live system accordingly.
The monitoring server is connected with the video service through the internet, and the internet can be a corresponding specific network for different video channels, which is not limited in the embodiment of the invention.
The monitoring server may be a server, a server cluster formed by a plurality of servers, or a cloud computing center.
The monitoring terminal is a device on the user side, can provide a monitoring display interface, can acquire corresponding monitoring result data from the monitoring server and display the monitoring result data on the display interface, and can determine different display modes according to the indication of the monitoring server, so that the user can check the video stream condition of each video channel through the display interface of the monitoring terminal.
The monitoring terminal is connected with the monitoring server through the internet, and communication between the monitoring terminal and the monitoring server is achieved.
In practice, for network video signals, a video signal source receives video signals from a satellite receiving side to a user layer, so that a user can watch the video signals, and the whole process is the full flow of the network video signals and comprises the following steps: receiving, dispatching, coding, package conversion, storage, pulling, downloading and other logics, a video signal received from a satellite receiving side is, for example, a broadcast and television signal, because the broadcast and television signal cannot be directly watched by a user, a series of processing is required to be performed, and the broadcast and television signal is converted into a network video signal, in the prior art, when the broadcast and television signal is monitored, a picture splitter is generally adopted to realize multi-screen monitoring, namely, hardware equipment is adopted to realize the multi-screen monitoring, but for the network video signal for the user to view, the nodes of the whole process are more and more complicated, and generally only the network video signal obtained after the processing needs to be monitored, however, in the prior art, the network video signal monitoring can only be realized by a plurality of different monitoring terminals, each monitoring terminal monitors one path of network video signal, and for the monitoring of a plurality of paths of network video signals, the consumed resources and cost are large, the efficiency is low, and a plurality of monitoring terminals need to be watched manually, so that the efficiency is low, and abnormal conditions cannot be detected timely.
In order to solve the problem of low video monitoring efficiency in the prior art, the embodiment of the invention provides a monitoring method for multiple paths of videos, and in a possible implementation manner, a monitoring server acquires video streams of current time periods from video channels of multiple paths of videos respectively; intercepting a moving picture file from the video stream of each current time period, respectively establishing the corresponding relation between the intercepted moving picture files and the video names of the video channels of the corresponding multi-channel videos, and packaging the corresponding relation into a playing page; the monitoring terminal reads the dynamic image files and the video names encapsulated in the playing page from the monitoring server through loading the playing page and displays the dynamic image files and the video names, so that the captured dynamic image files of a plurality of video channels can be displayed on the monitoring terminal at the same time through capturing the video streams of the plurality of video channels, multi-screen monitoring of the plurality of video channels is realized, monitoring is performed through the dynamic image files, the monitoring effect is better, more abnormal conditions can be monitored, and for example, as the dynamic image files comprise videos of a plurality of frames, static frame abnormal events of the video channels can be monitored.
In the embodiment of the present invention, a possible implementation manner is provided in a manner of capturing a moving picture file, where the moving picture file with a preset duration is captured from a video stream of a video channel according to the preset duration, for example, the preset duration is 2 s. In the embodiment of the present invention, another possible implementation manner is further provided, where a moving picture file with a preset frame number is intercepted from a video stream of a video channel, for example, the preset frame number is 50 frames. For the screenshot mode, the embodiment of the present invention is not limited.
In order to further improve monitoring efficiency, in the embodiment of the present invention, a possible implementation manner is further provided, where a monitoring server detects a video stream of each current time period acquired from a video channel of multiple videos, and performs an alarm if a preset abnormal event is determined to be detected, so that by monitoring and alarming the video stream, not only more abnormal events, such as abnormal events like static frames and flow-out, can be detected, but also monitoring efficiency can be improved.
It should be noted that, in the embodiment of the present invention, the process of detecting and alarming a video stream and the process of monitoring a screenshot may be two parallel processes, the video stream is detected after the video stream of the video channel of multiple channels of videos is acquired, or an alarm, such as prompting an abnormal message, is given when an abnormal event is detected before the screenshot. In addition, in the embodiment of the present invention, when the motion picture file is displayed, the abnormal event information may be displayed, where the displayed motion picture file is an abnormal picture.
Optionally, in the alarm implementation manner provided in the embodiment of the present invention, the alarm may be performed to the user through the monitoring terminal, and the alarm may also be performed to the user through other terminal devices.
Optionally, the internet described above uses standard communication techniques and/or protocols. The internet is typically the internet, but can be any Network including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), any combination of mobile, wireline or wireless networks, private or virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including Hypertext Mark-up Language (HTML), Extensible Markup Language (XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec). In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above.
The monitoring method of the multi-channel video provided by the embodiment of the invention can be suitable for monitoring the whole process of the network video signals of various video channels. For the convenience of understanding, the overall architecture diagram of the video stream overall flow process in the embodiment of the present invention is shown in fig. 2.
Referring to fig. 2, the present invention provides a full flow architecture for four different video signal sources, wherein the full flow architecture is roughly divided into four parts, namely receiving, scheduling, encoding, live video broadcasting or on-demand pulling.
The method comprises the steps that a video signal source receives a video signal from a satellite receiving side, the video signal is accessed to a scheduling layer through a Serial Digital Interface (SDI) or an Internet Protocol (IP) network interconnected among networks, the video signal is output by the scheduling layer and then enters a coding layer through the SDI or the IP network to be coded and then converted into an IP data stream, the output network video signal is finally entered into a live broadcast or on-demand layer through the IP network, and the IP data stream is converted, packaged, stored and pulled to be used by a live video broadcast or on-demand system on the live broadcast or on-demand layer.
Wherein 1) the receiving section. The reception of four different video signal sources is shown in fig. 2. 2) The scheduling layer uses different scheduling modes for different video signal sources to distribute, for example, for live video, a multicast network mode is generally adopted to implement. For another example, for video on demand, the received video signal may be scheduled by matrixing. 3) The coding layer may adopt different coding modes, such as hard packet broadcast coding, hard Time Messaging Protocol (RTMP) push stream, and the like. 4) And the live broadcast or on-demand layer is used for carrying out conversion packaging, storage and the like on the coded video signal for a live video broadcast or on-demand system.
In order to monitor the whole flow of a video channel of a multi-channel video and further improve the monitoring efficiency, the embodiment of the invention also provides other auxiliary monitoring methods, such as the monitoring link in fig. 2, and the method can also comprise the functions of link segment monitoring, equipment base monitoring, audio/video signal source detection, FLV stream monitoring analysis, stream slice detection and screenshot preview.
In order to solve the problem of low video monitoring efficiency in the prior art, in the embodiment of the present invention, a video stream of a plurality of video channels is subjected to screenshot, and a moving picture file corresponding to the plurality of captured video channels is displayed, so as to implement multi-screen monitoring on the plurality of video channels, based on the above-mentioned embodiment, referring to fig. 3, which is a flowchart of a monitoring method for multiple videos in the embodiment of the present invention, the method includes:
step 300: and the monitoring server acquires video streams of the current time period from the video channels of the multi-channel videos respectively.
Optionally, in the embodiment of the present invention, the video stream of the video channel of the multiple channels of videos may be acquired according to a preset period.
In the embodiment of the present invention, the monitoring server may communicate with a plurality of types of video servers, and the video servers may transmit video channels of multiple videos, such as video channel 1, video channel 2, video channel 3, and the like.
In practice, to reduce the volume of a video file, the video file is usually fragmented, and for different Streaming media protocols, there are different fragmentation manners and storage manners, for example, a dynamic bitrate adaptive technology (HTTP Live Streaming, HLS) protocol, and finally, a ts file (fragmented file) and an m3u8 file (index file) are stored on a video server, taking the HLS protocol as an example, when the monitoring server obtains a video stream from a corresponding video server, that is, when step 300 is executed, the method specifically includes:
first, the identification of the video channels of the multi-channel video and the download addresses of the video streams are obtained.
For example, the monitoring server may obtain the identification of each video channel and the download address of the video stream from the database.
In addition, in the embodiment of the invention, the video channel to be monitored can be selected in advance, and the identifier of the video channel selected in advance and the download address of the video stream can be further acquired.
And then, acquiring an index file of the video stream according to the download address of the video stream.
Optionally, in the embodiment of the present invention, the index file may be obtained according to a first preset period, for example, the index file is pulled every minute at regular time.
And finally, acquiring the fragment file of the video stream according to the index file of the video stream.
Specifically, the index file is an m3u8 file, and the m3u8 file records an index plain text file, obtains the index therein by parsing the m3u8 file, and can pull the corresponding ts file, i.e., the fragment file, according to the index.
Further, in the embodiment of the present invention, the fragmented file may also be stored. Preferably, the corresponding slice file is named and stored using the identification of the video channel.
Step 301: and the monitoring server detects the video stream of each current time period and judges whether a preset abnormal event is detected.
Taking the detection of the video stream of any one of the current time periods as an example, the step 301 can be divided into the following cases:
in the first case: and if the video stream of the next time period of the video channel corresponding to the video stream of any current time period is determined not to be acquired, determining that the cut-off abnormal event of the video stream of the corresponding video channel is detected.
Preferably, if the video stream is acquired periodically, it may be determined whether there is a situation in which the video stream is not acquired in two consecutive periods, and if so, it is determined that the cut-off abnormal event is detected.
In the second case: and if the audio data in the video stream of any current time period is determined not to be detected, determining that the mute abnormal event of the video stream of any current time period is detected.
In the third case: and if the pixel color values of the pictures of the continuous preset frames of the video stream at any current time interval are determined to represent black, determining that the black screen abnormal event of the video stream at any current time interval is detected.
In a fourth case: if the fact that the pictures of each frame of the video stream in any current time period are the same is determined to be detected, the fact that the static frame abnormal event of the video stream in any current time period is detected is determined.
Of course, by detecting the abnormal event of the video stream, other abnormal events, for example, an abnormal screen splash event, etc., may also be detected, and the embodiment of the present invention is not limited.
Step 302: and if the monitoring server determines that the preset abnormal event is detected, sending an alarm instruction to the monitoring terminal so that the monitoring terminal gives an alarm.
Specifically, the alarm may be given by a preset alarm manner, for example, by text or by sound.
It should be noted that the execution sequence of each step in the embodiment of the present invention is not limited, and the embodiment of the present invention provides only one possible implementation manner, that is, monitoring a video stream may be performed before screenshot, or may be performed after screenshot.
Preferably, in the embodiment of the present invention, the video stream is detected before the screenshot, and if an abnormal event of the video stream is detected, the warning information is sent to the relevant person, so that the efficiency can be improved, and if the abnormal event is detected, the abnormal information is also displayed in the motion picture file. For example, if a static frame abnormal event is detected, an alarm is given, and when the screenshot is completed and a moving picture file is displayed on the monitoring terminal, static frame abnormal information is also displayed in the moving picture file.
Step 303: the monitoring server intercepts the animation file from the video stream of each current time period.
If the acquired fragment file is a video stream, executing step 303 specifically includes: and intercepting the moving picture file from the fragment file of the video stream.
The format of the motion picture file is, for example, a GIF format.
In the embodiment of the present invention, when intercepting a moving picture file, the moving picture file with a preset duration may be intercepted, and the moving picture file with a preset number of frames may also be intercepted, which is not limited.
For example, if there are 3 video channels, which are respectively a video channel 1, a video channel 2, and a video channel 3, and the video channel 1 corresponds to a slice file 1, the video channel 2 corresponds to a slice file 2, and the video channel 3 corresponds to a slice file 3, corresponding moving picture files are respectively captured from the slice file 1, the slice file 2, and the slice file 3.
Further, in order to ensure the quality and definition of the motion picture file, the resolution of the motion picture file may be set, for example, set to 320 × 240 in the embodiment of the present invention.
Further, still include: acquiring identifiers of video channels of multiple videos, naming corresponding motion picture files of the video channels of the multiple videos respectively according to the identifiers of the video channels of the multiple videos, and storing the named motion picture files.
Therefore, naming is carried out according to the identification of the video channel, so that the names of the motion picture files corresponding to the same video channel can have the same identification information, the fragment files, the motion picture files, the names and the like of the same video channel can be easily found according to the identification, and the fragment files, the motion picture files, the names and the like can be distinguished from the related files of other video channels.
Step 304: the monitoring server respectively establishes the corresponding relation between the captured multiple moving picture files and the video names of the video channels of the corresponding multi-channel videos, and encapsulates the corresponding relation into a playing page, so that the monitoring terminal loads the playing page.
When step 304 is executed, the method specifically includes:
firstly, according to the identification of the video channels of the multi-channel videos, the video channel names corresponding to the video channels of the multi-channel videos are obtained.
Then, according to the identification of the video channel, a moving picture file corresponding to the video stream of the video channel of the multi-channel video is searched, and a corresponding relation between the plurality of moving picture files which are cut and taken out and the video names of the video channels of the corresponding multi-channel video is established.
For example, the obtained names of the video channel 1, the video channel 2, and the video channel 3 are respectively the Hunan satellite television, the Jiangsu satellite television, and the Zhejiang satellite television, and since the moving picture file is named and stored according to the identifier of the video channel, the name and the corresponding moving picture file can be associated according to the identifier of the video channel.
And finally, writing the corresponding relation between the video names of the video channels of the multi-channel videos and the moving picture files into a playing page.
For example, the dynamic image file is written into an html + css page, so that the monitoring terminal can display the dynamic image files of a plurality of video channels in a page loading mode, and the names of the video channels corresponding to the dynamic image files can be displayed according to the established corresponding relation between the video names and the dynamic image files, so that the display effect of the dynamic image files and the corresponding names is realized, and the display effect is more intuitive.
Further, in order to ensure that the latest moving picture file can be displayed on the monitoring terminal in real time, the embodiment of the present invention further provides an updating method, wherein the playing page is set to be updated according to a second preset period, wherein the second preset period is greater than the first preset period, because the first preset period is an execution period for acquiring the video stream and performing the screenshot, and the second preset period is greater than the first preset period, the latest moving picture file can be intercepted each time the playing page is refreshed, and therefore, the latest moving picture file can be displayed each time the playing page is refreshed.
Step 305: and the monitoring terminal displays the moving picture files and the video names of the video channels of the multiple paths of videos in the playing page by loading the playing page.
Optionally, an embodiment of the present invention provides a display implementation manner, where the monitor terminal displays a moving picture file and a video name of a video channel of multiple videos according to a preset display manner. For example, the display screen is divided into a corresponding number of presentation areas according to the number of video channels, and a moving picture file and a corresponding video name are respectively presented in each presentation area.
Fig. 4 is a schematic view of video monitoring effect according to an embodiment of the present invention. For example, there are 4 video channels, and the names of the video channels are video channel 1, video channel 2, video channel 3, and video channel 4, respectively, so that the display screen of the monitoring terminal can be divided into 4 display areas and displayed respectively.
Specifically, referring to fig. 5, which is a diagram illustrating an actual effect of video monitoring in an embodiment of the present invention, it can be seen from fig. 5 that multiple video channels, such as the Hunan satellite television, the Jiangsu satellite television, and the Zhejiang satellite television, can be simultaneously monitored on one display screen.
Optionally, in the embodiment of the present invention, an alarm implementation manner is further provided, and if the monitoring terminal determines that the displayed motion picture file is abnormal, an alarm is performed. That is to say, in the embodiment of the present invention, the video stream may be subjected to the anomaly detection and the alarm, or the moving picture file may be subjected to the anomaly detection and the alarm.
Therefore, in the embodiment of the invention, the video streams of the current time period are respectively obtained from the video channels of the multi-channel videos, so that the multi-screen monitoring can be performed on the video channels of the multi-channel videos on the monitoring terminal, the number and the cost of the monitoring terminal are reduced, and monitoring personnel can check whether the plurality of video channels are abnormal or not only on one display screen, so that the monitoring efficiency is improved, the configuration and the cost of the monitoring personnel can be reduced, and the abnormal conditions can be monitored in time. Furthermore, in the embodiment of the present invention, a moving picture file is captured, and an anomaly detection is performed on a video stream, so that the detected anomaly conditions are more various and more flexible, and the moving picture file is displayed for monitoring, and more abnormal events can be monitored, for example, abnormal events such as a static frame, a black screen, silence, and a cut-off of the video stream can be detected.
Based on the foregoing embodiments, referring to fig. 6, in an embodiment of the present invention, a monitoring apparatus for multiple videos specifically includes:
a first obtaining module 60, configured to obtain video streams of a current time period from video channels of the multiple channels of videos respectively;
an intercepting module 61, configured to intercept an animation file from the video stream of each current time period;
and the encapsulation module 62 is configured to establish a corresponding relationship between the captured multiple moving picture files and the video names of the video channels of the multiple videos, and encapsulate the corresponding relationship into a playing page, so that the monitoring terminal displays the moving picture files and the video names of the video channels of the multiple videos by loading the playing page.
Optionally, further comprising:
and the naming storage module 63 is configured to acquire identifiers of the video channels of the multiple videos, name the motion picture files corresponding to the video channels of the multiple videos respectively according to the identifiers of the video channels of the multiple videos, and store the named motion picture files.
Optionally, further comprising:
the second obtaining module 64 is configured to obtain, according to the identifier of the video channel of the multiple videos, a video channel name corresponding to the video channel of the multiple videos.
Optionally, further comprising:
and an alarm module 65, configured to detect the video stream of each current time period, and alarm if it is determined that a preset abnormal event is detected.
Optionally, the video stream of each current time period is detected, wherein the alarm module 65 is specifically configured to:
if the video stream of the next time period of the video channel corresponding to the video stream of any current time period is determined not to be acquired, determining that the flow-cutoff abnormal event of the video stream of the corresponding video channel is detected; or the like, or, alternatively,
if the audio data in the video stream of any current time period is determined not to be detected, determining that a mute abnormal event of the video stream of any current time period is detected; or the like, or, alternatively,
if it is determined that the pixel color values of the frames of the continuous preset frames of the video stream at any current time interval are all characterized by black, determining that a black screen abnormal event of the video stream at any current time interval is detected; or the like, or, alternatively,
and if the fact that the pictures of each frame of the video stream in any current time period are the same is determined to be detected, determining that the static frame abnormal event of the video stream in any current time period is detected.
Based on the above embodiments, referring to fig. 7, a schematic structural diagram of a server in an embodiment of the present invention is shown.
Embodiments of the present invention provide a server, which may include a processor 710 (CPU), a memory 720, an input device 730, an output device 740, and the like, wherein the input device 730 may include a keyboard, a mouse, a touch screen, and the like, and the output device 740 may include a Display device, such as a Liquid Crystal Display (LCD), a Cathode Ray Tube (CRT), and the like.
Memory 720 may include Read Only Memory (ROM) and Random Access Memory (RAM), and provides processor 710 with program instructions and data stored in memory 720. In an embodiment of the present invention, the memory 720 may be used to store a program of a monitoring method for multiple videos.
By calling the program instructions stored in the memory 720, the processor 710 is configured to perform the following steps according to the obtained program instructions:
respectively acquiring video streams of the current time period from the video channels of the multiple paths of videos;
intercepting a cartoon file from the video stream of each current time period;
and respectively establishing corresponding relations between the captured multiple moving picture files and the corresponding video names of the video channels of the multiple paths of videos, and packaging the corresponding relations into a playing page, so that the monitoring terminal can display the moving picture files and the video names of the video channels of the multiple paths of videos by loading the playing page.
Optionally, the processor 710 is further configured to: and acquiring the identifiers of the video channels of the multi-channel videos, naming the corresponding motion picture files of the video channels of the multi-channel videos respectively according to the identifiers of the video channels of the multi-channel videos, and storing the named motion picture files.
Optionally, the processor 710 is further configured to: and acquiring the video channel name corresponding to the video channel of the multi-channel video according to the identifier of the video channel of the multi-channel video.
Optionally, the processor 710 is further configured to: and detecting the video stream of each current time interval, and giving an alarm if a preset abnormal event is detected.
Optionally, the processor 710 is specifically configured to detect the video stream of each current time period, where the processor is configured to: if the video stream of the next time period of the video channel corresponding to the video stream of any current time period is determined not to be acquired, determining that the flow-cutoff abnormal event of the video stream of the corresponding video channel is detected; or, if it is determined that the audio data in the video stream of any current time period is not detected, determining that a mute abnormal event of the video stream of any current time period is detected; or, if it is determined that the pixel color values of the pictures of the continuous preset frames of the video stream at any current time interval are all characterized by black, determining that a black screen abnormal event of the video stream at any current time interval is detected; or, if it is determined that the pictures of each frame of the video stream in any current time period are detected to be the same, determining that the static frame abnormal event of the video stream in any current time period is detected. Therefore, by detecting the video stream, more abnormal events can be detected, and the monitoring effect is improved.
Referring to fig. 8, a schematic structural diagram of a monitoring terminal in an embodiment of the present invention is shown.
The embodiment of the invention provides a monitoring terminal which can be but is not limited to a mobile phone, a tablet computer, a computer and the like. The monitoring terminal may include: memory 810, input module 820, transmission module 830, reception module 840, output module 850, wireless communication module 860, processor 870, and/or the like. The method specifically comprises the following steps:
the memory 810 may include a Read Only Memory (ROM) and a Random Access Memory (RAM), and provides the processor 870 with program instructions and data stored in the memory 810, and may also store an operating system of the monitoring terminal, Application programs (APPs), modules, various data used by the monitoring terminal, and the like.
The input module 820 may include a keyboard, a mouse, a touch screen, etc. for receiving numbers, character information or touch operations input by a user, and generating input of key signals related to user settings and function control of the monitoring terminal, for example, in an embodiment of the present invention, the input module 820 may receive an opening operation of a playing page on the monitoring terminal by the user, etc.
The transmitting module 830 may provide an interface between the monitoring terminal and the server.
The receiving module 840 also provides an interface between the monitoring terminal and the server.
The output module 850 may include a Display module, such as a Liquid Crystal Display (LCD), a Cathode Ray Tube (CRT), etc., wherein the Display module may be used to Display information input by a user or information provided to the user, or an operation interface of various monitoring terminals, etc. For example, the embodiment of the invention can be used for showing a motion picture file of a plurality of video channels to a user.
The wireless communication module 860 includes, but is not limited to, a wireless fidelity (WiFi) module, a bluetooth module, an infrared communication module, and the like.
The processor 870 is a control center of the monitoring terminal, connects various parts of the entire monitoring terminal using various interfaces and lines, and performs various functions of the monitoring terminal and processes data by operating or executing software programs and/or modules stored in the memory 810 and calling data stored in the memory 810, thereby performing overall monitoring of the monitoring terminal.
Of course, the configuration of the monitoring terminal shown in FIG. 8, which is merely one example, may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
Based on the foregoing embodiments, in an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for monitoring multiple channels of videos in any of the above-described method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (12)

1. A monitoring method of multi-channel videos is applied to network videos and comprises the following steps:
respectively acquiring video streams of the current time period from the video channels of the multiple paths of videos;
intercepting a cartoon file from the video stream of each current time period;
respectively establishing corresponding relations between a plurality of captured motion picture files and the video names of the video channels of the multi-channel videos, and packaging the corresponding relations into a playing page, so that a monitoring terminal displays the motion picture files and the video names of the video channels of the multi-channel videos by loading the playing page, and monitors and detects abnormal events of the motion picture files by displaying the motion picture files.
2. The method of claim 1, further comprising:
and acquiring the identifiers of the video channels of the multi-channel videos, naming the corresponding motion picture files of the video channels of the multi-channel videos respectively according to the identifiers of the video channels of the multi-channel videos, and storing the named motion picture files.
3. The method of claim 2, further comprising:
and acquiring the video channel name corresponding to the video channel of the multi-channel video according to the identifier of the video channel of the multi-channel video.
4. The method of claim 1, 2, or 3, further comprising:
and detecting the video stream of each current time interval, and giving an alarm if a preset abnormal event is detected.
5. The method of claim 4, wherein detecting the video stream of each of the current time periods, wherein detecting the video stream of any one of the current time periods specifically comprises:
if the video stream of the next time period of the video channel corresponding to the video stream of any current time period is determined not to be acquired, determining that the flow-cutoff abnormal event of the video stream of the corresponding video channel is detected; or the like, or, alternatively,
if the audio data in the video stream of any current time period is determined not to be detected, determining that a mute abnormal event of the video stream of any current time period is detected; or the like, or, alternatively,
if it is determined that the pixel color values of the frames of the continuous preset frames of the video stream at any current time interval are all characterized by black, determining that a black screen abnormal event of the video stream at any current time interval is detected; or the like, or, alternatively,
and if the fact that the pictures of each frame of the video stream in any current time period are the same is determined to be detected, determining that the static frame abnormal event of the video stream in any current time period is detected.
6. A monitoring device of multi-channel videos is applied to network videos and comprises the following components:
the first acquisition module is used for respectively acquiring video streams of the current time period from the video channels of the multi-channel videos;
the intercepting module is used for intercepting the animation file from the video stream of each current time interval;
and the packaging module is used for respectively establishing the corresponding relations between the captured multiple moving picture files and the video names of the video channels of the corresponding multi-channel videos, packaging the corresponding relations into a playing page, so that the monitoring terminal can display the moving picture files and the video names of the video channels of the multi-channel videos by loading the playing page, and monitor and detect abnormal events of the moving picture files by displaying the moving picture files.
7. The apparatus of claim 6, further comprising:
and the naming storage module is used for acquiring the identifiers of the video channels of the multi-channel videos, naming the motion picture files corresponding to the video channels of the multi-channel videos respectively according to the identifiers of the video channels of the multi-channel videos, and storing the named motion picture files.
8. The apparatus of claim 7, further comprising:
and the second acquisition module is used for acquiring the video channel name corresponding to the video channel of the multi-channel video according to the identifier of the video channel of the multi-channel video.
9. The apparatus of claim 6, 7 or 8, further comprising:
and the alarm module is used for detecting the video stream of each current time interval and giving an alarm if a preset abnormal event is detected.
10. The apparatus of claim 9, wherein the video stream for each of the current time periods is detected, and wherein the alert module is specifically configured to:
if the video stream of the next time period of the video channel corresponding to the video stream of any current time period is determined not to be acquired, determining that the flow-cutoff abnormal event of the video stream of the corresponding video channel is detected; or the like, or, alternatively,
if the audio data in the video stream of any current time period is determined not to be detected, determining that a mute abnormal event of the video stream of any current time period is detected; or the like, or, alternatively,
if it is determined that the pixel color values of the frames of the continuous preset frames of the video stream at any current time interval are all characterized by black, determining that a black screen abnormal event of the video stream at any current time interval is detected; or the like, or, alternatively,
and if the fact that the pictures of each frame of the video stream in any current time period are the same is determined to be detected, determining that the static frame abnormal event of the video stream in any current time period is detected.
11. A server, comprising:
at least one memory for storing program instructions;
at least one processor for calling program instructions stored in said memory and for executing the method of any of the preceding claims 1-5 in accordance with the program instructions obtained.
12. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program realizing the steps of the method according to any of claims 1-5 when executed by a processor.
CN201810146206.3A 2018-02-12 2018-02-12 Monitoring method and device for multi-channel video Active CN108419046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810146206.3A CN108419046B (en) 2018-02-12 2018-02-12 Monitoring method and device for multi-channel video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810146206.3A CN108419046B (en) 2018-02-12 2018-02-12 Monitoring method and device for multi-channel video

Publications (2)

Publication Number Publication Date
CN108419046A CN108419046A (en) 2018-08-17
CN108419046B true CN108419046B (en) 2021-01-12

Family

ID=63128643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810146206.3A Active CN108419046B (en) 2018-02-12 2018-02-12 Monitoring method and device for multi-channel video

Country Status (1)

Country Link
CN (1) CN108419046B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413411B (en) * 2018-09-06 2020-08-11 腾讯数码(天津)有限公司 Black screen identification method and device of monitoring line and server
CN110072155A (en) * 2018-12-03 2019-07-30 贵州广播电视台 The monitoring method and system of audio-video signal
CN110062292A (en) * 2019-05-09 2019-07-26 晶晨半导体(上海)股份有限公司 Channel list display methods and system
CN110446005A (en) * 2019-07-09 2019-11-12 南京速瑞特信息科技有限公司 Power system monitor video receiving apparatus and method for processing video frequency

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917257A (en) * 2012-09-14 2013-02-06 北京金山安全软件有限公司 Channel selection processing method, client, server and system
CN103139599A (en) * 2011-11-29 2013-06-05 人民网股份有限公司 Network multi-image live broadcast system
WO2015139450A1 (en) * 2014-03-18 2015-09-24 深圳市九洲电器有限公司 Program browsing method and system, and set top box
CN205050498U (en) * 2015-09-25 2016-02-24 苏州工业园区小步电子科技有限公司 Information display combined system
CN105376092A (en) * 2015-11-19 2016-03-02 杭州当虹科技有限公司 HLS flow real-time monitoring and alarming system based on switch port mirroring

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754423B (en) * 2013-12-30 2018-12-21 深圳键桥通讯技术股份有限公司 The MINI CMTS of integrated IPQAM and DOCSIS
CN106131668A (en) * 2016-06-30 2016-11-16 杭州当虹科技有限公司 A kind of audio-video monitoring warning system pushing alarm based on mobile device message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139599A (en) * 2011-11-29 2013-06-05 人民网股份有限公司 Network multi-image live broadcast system
CN102917257A (en) * 2012-09-14 2013-02-06 北京金山安全软件有限公司 Channel selection processing method, client, server and system
WO2015139450A1 (en) * 2014-03-18 2015-09-24 深圳市九洲电器有限公司 Program browsing method and system, and set top box
CN205050498U (en) * 2015-09-25 2016-02-24 苏州工业园区小步电子科技有限公司 Information display combined system
CN105376092A (en) * 2015-11-19 2016-03-02 杭州当虹科技有限公司 HLS flow real-time monitoring and alarming system based on switch port mirroring

Also Published As

Publication number Publication date
CN108419046A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
CN108419046B (en) Monitoring method and device for multi-channel video
US10863247B2 (en) Receiving device and data processing method
CN102263959B (en) Direct broadcast transfer method and system
CN107852516B (en) Method and apparatus for transmitting broadcast signal
US20090055519A1 (en) Method and system for media adaption
CN110933449A (en) Method, system and device for synchronizing external data and video pictures
AU2010294783B2 (en) Method and device for providing complementary information
US20110321062A1 (en) Capturing events from and providing targeted messages to a digital media device
CN112671697B (en) Data processing method, device and system of comprehensive monitoring system
US20200128303A1 (en) Watermark-based metadata acquisition and processing
TWI646833B (en) System and method for signaling emergency alert
US10313739B2 (en) Terminal device, relay device, information processing method, program, and content identification system
WO2015180446A1 (en) System and method for maintaining connection channel in multi-device interworking service
KR102518817B1 (en) Broadcast signal transmission apparatus, broadcast signal reception apparatus, broadcast signal transmission method, and broadcast signal reception method
CN115665474A (en) Live broadcast method and device, electronic equipment and storage medium
WO2017038494A1 (en) Communication device and data processing method
US20210160566A1 (en) System for service usage reporting
US10567833B2 (en) Reception apparatus, reception method, transmission apparatus and transmission method
JP2019506098A (en) Content related information providing method and apparatus for multimedia service
CN111800649A (en) Method and device for storing video and method and device for generating video
KR101398995B1 (en) Apparatus and method for controlling broadcasting service, recordable medium which program for executing method is recorded
KR102290430B1 (en) Method and device for requesting notification of product sales broadcast
US20230188234A1 (en) Remote Multichannel Audio and Video Monitoring and Diagnostics for Broadcast Signals
CN110087101B (en) Interactive video quality monitoring method and device
US20200186741A1 (en) Advanced television systems committee (atsc) 3.0 latency-free display of content attribute

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