Audio and video recognition system based on Internet
The present application is a divisional application of the following applications: the invention relates to an internet-based audio and video identification system and a method thereof, wherein the application date is 2016, 12 and 12 months, and the application number is 201611137782.9.
Technical Field
The invention belongs to the technical field of internet, relates to an audio and video identification method, and particularly relates to an audio and video identification system based on the internet.
Background
Along with the increasing popularization of the Internet, more and more audios and videos are published on the Internet, the domestic websites represent online video websites such as a heat network, a potato network, a Tencent video network and the like, the video websites provide service items such as video on demand, audio on demand, MTV playing, music playing and the like for users, the rise of the Internet audio and video websites enables the personalized requirements of the users to be fully met, the audio and video playing programs not only improve the life pleasure of people, but also increase the knowledge of people, and the supervision difficulty is brought while massive audio and video programs are uploaded and shared.
At present, the main internet audio and video identification mostly adopts a search engine mode, namely, a searcher is used for capturing web pages of audio and video programs on the internet, an index database of the programs is established through the operation of the search engine, a user searches information meeting the requirements of the user in the program search database and plays the information, and the internet audio and video identification method adopting the search engine mode can obtain a large number of audio and video web pages by using smaller network resources, but cannot monitor audio and video data transmitted by the internet in real time.
Disclosure of Invention
The invention aims to provide an internet-based audio and video identification system, which analyzes and decodes the protocols of audio and video through a data acquisition module, so that a video playing module can play audio and video with different protocols, and the problem that the audio and video information in internet transmission data streams cannot be monitored in real time is solved by monitoring the played audio and video information through a video monitoring module.
The purpose of the invention can be realized by the following technical scheme:
the audio and video identification system based on the Internet comprises a data acquisition module, a data playing module, a video monitoring module, a video storage module, a video retrieval module and a video statistics module;
the data acquisition module is connected with the data playing module and comprises an audio and video extraction unit, a protocol analysis unit, a media decoding unit and a user management unit, wherein the audio and video extraction unit is used for extracting a transmission protocol of the played audio and video and sending the extracted transmission protocol to the protocol analysis unit; the protocol analysis unit is used for analyzing the transmission protocol of the received audio and video information; the media decoding unit is used for decoding the protocol of the received audio and video information; the user management unit is used for managing the credit of the user;
the data playing module is respectively connected with the video monitoring module and the video storage module, and is used for playing the audio and video stored in the video storage module according to the division of each protocol;
the video monitoring module is used for monitoring the played audio and video information in real time and storing the monitored audio and video information to the video storage module;
the video storage module is respectively connected with the video retrieval module and the video statistics module and is used for storing the acquired audio and video information;
the video retrieval module is used for screening the audio and video information stored in the video storage module;
the video counting module is used for counting the audios and videos stored in the video storage module under each protocol and counting the quantity of all the audios and videos in the video storage module.
Furthermore, the user management unit comprises user registration, user login, inquiry and editing, and is used for identity registration of the user, verifying the identity of a registrant after successful registration, inquiring the authority of the user and editing audio and video contents in the authority range.
Furthermore, the playing modes of the video playing module include random playing, alternate playing and repeated playing.
Further, the types of protocols are TP, UDP, TCP, HTTP and RTP protocols.
An internet-based audio and video recognition method comprises the following steps:
s1, acquiring a data packet of the network;
s2, the protocol analysis unit analyzes and judges the acquired protocol;
s3, if the data packets are valid, sequencing the audio and video information according to the size of the acquired data packets; if the obtained data packet is an invalid data packet, no sequencing processing is carried out;
s4, storing the effective audio and video;
s5, carrying out statistical analysis on the audio and video quantity of different protocol packets in the audio and video storage module every 10S, and updating the user information of the online client every 30S;
s6, sending the audio and video data packet to a user client, and buffering the received audio and video by the client;
s7, selecting an audio and video playing mode at the client by the user;
and S8, after the audio and video playing is finished, sending a finishing instruction to the client, and selecting to play a new audio and video or pause by the client.
The invention has the beneficial effects that: according to the invention, different protocols of the audio and video can be analyzed through the data acquisition module, and the protocols can be decoded, so that the audio and video of different protocols can be played at the client of the user; the video playing module can play the acquired audio and video information, and has a sequential, random and repeated diversified playing mode, so that the monotonicity of the video playing mode is improved; the functions of video query and statistics can be increased by storing, retrieving and counting the audio and video; through the video monitoring module, the audio and video programs transmitted by the internet can be monitored, and the management of the audio and video contents is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a diagram of an internet-based audio and video recognition system according to 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.
Referring to fig. 1, the invention relates to an internet-based audio/video recognition system, which comprises a data acquisition module, a data playing module, a video monitoring module, a video storage module, a video retrieval module and a video statistics module;
the data acquisition module is connected with the data playing module and comprises an audio and video extraction unit, a protocol analysis unit, a media decoding unit and a user management unit, wherein the audio and video extraction unit is used for extracting a transmission protocol of the played audio and video and sending the extracted audio and video protocol to the protocol analysis unit; the protocol analysis unit is used for analyzing the transmission protocol of the received audio and video information, ensuring that different protocols can be disclosed, and simultaneously sending the analysis result to the media decoding unit; the media decoding unit is used for decoding the protocol of the received audio and video information; the user management unit is used for managing the information of the user, and the managed content comprises user registration and login, inquiry and editing, wherein the user registration and login is used for identity registration of the user, after the registration is successful, the identity of a registrant is verified, and meanwhile, the user authority can be inquired and the audio and video content which can be collected in the user authority range can be edited.
The data playing module is respectively connected with the video monitoring module and the video storage module, and is used for playing the audio and video stored in the video storage module according to the division of each protocol, and the playing adopts the modes of random playing, alternate playing and repeated playing;
the video monitoring module is used for monitoring the played audio and video information in real time and storing the monitored audio and video information to the video storage module;
the video storage module is respectively connected with the video retrieval module and the video statistics module, and is used for storing the acquired audio and video information and dividing the stored audio and video according to the types of protocols, wherein the stored audio and video comprises TP, UDP, TCP, HTTP and RTP protocols;
the video retrieval module is used for screening the audio and video information stored in the video storage module;
the video counting module is used for counting the audios and videos under each protocol stored in the video storage module and counting the quantity of all the audios and videos in the video storage module.
An audio and video recognition method based on the Internet comprises the following steps:
s1, acquiring a data packet of the network;
s2, the protocol analysis unit analyzes and judges the acquired protocol;
s3, if the data packets are valid, sequencing the audio and video information according to the size of the acquired data packets; if the obtained data packet is an invalid data packet, no sequencing processing is carried out;
s4, storing the effective audio and video;
s5, carrying out statistical analysis on the audio and video quantity of different protocol packets in the audio and video storage module every 10S, and updating the user information of the online client every 30S;
s6, sending the audio and video data packet to a user client, and buffering the received audio and video by the client;
s7, selecting an audio and video playing mode at the client by the user;
and S8, after one of the audios and videos is played, sending a completion instruction to the client, and selecting to play a new audio and video or pause by the client.
And for different time when any audio/video data packet is sent to the user client, buffering is performed according to the arrival time, so that the problem of poor playing fluency caused by directly playing the audio/video information is avoided.
According to the invention, different protocols of the audio and video can be analyzed through the data acquisition module, and the protocols can be decoded, so that the audio and video of different protocols can be played at the client of the user; the video playing module can play the acquired audio and video information, and has a sequential, random and repeated diversified playing mode, so that the monotonicity of the video playing mode is improved; the functions of video query and statistics can be increased by storing, retrieving and counting the audio and video; through the video monitoring module, the audio and video programs transmitted by the internet can be monitored, and the management of the audio and video contents is improved.
The foregoing is merely exemplary and illustrative of the principles of the present invention and various modifications, additions and substitutions of the specific embodiments described herein may be made by those skilled in the art without departing from the principles of the present invention or exceeding the scope of the claims set forth herein.