CN111159586A - Video query method and device based on video network - Google Patents

Video query method and device based on video network Download PDF

Info

Publication number
CN111159586A
CN111159586A CN201911177128.4A CN201911177128A CN111159586A CN 111159586 A CN111159586 A CN 111159586A CN 201911177128 A CN201911177128 A CN 201911177128A CN 111159586 A CN111159586 A CN 111159586A
Authority
CN
China
Prior art keywords
video
query request
web page
target
server
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
CN201911177128.4A
Other languages
Chinese (zh)
Other versions
CN111159586B (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201911177128.4A priority Critical patent/CN111159586B/en
Publication of CN111159586A publication Critical patent/CN111159586A/en
Application granted granted Critical
Publication of CN111159586B publication Critical patent/CN111159586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a video query method and device based on a video network. The video query request carries the UCL in the form of character strings, so that under the condition that the video server stores a large number of videos, the speed of the video server searching the videos according to the UCL in the form of character strings is higher, and is usually higher than the speed of table lookup in databases such as mysql or oracle and the like, and therefore the searching efficiency of the video query request is higher. Secondly, the UCL records the rich semantic information and management information of the video, the voice information and the management information of the video are easier to remember and distinguish by the user, compared with the URL of the video which needs to be remembered and distinguished by the user, the difficulty of the user in inquiring the video is reduced by inquiring the video through the UCL, the user can inquire the wanted video more easily according to the voice information and the management information, the method is more friendly to the user, and the user experience can be improved.

Description

Video query method and device based on video network
Technical Field
The invention relates to the technical field of information processing, in particular to a video query method and device based on a video network.
Background
With the rapid development of the technology, the more videos on the network, each video on the network has a respective URL (Uniform Resource Locator), and if a user needs to watch a video on the network, the user usually needs to search for the video on the network by using the URL as an index and then play the video.
However, the inventor found that the URL emphasizes defining the address of the video, and the URL is usually composed of more letters and numbers, so that it is difficult for the user to remember and partition the URLs of a plurality of videos, and if the URL of the video cannot be remembered and distinguished, the user cannot accurately search for the video to be watched on the network.
Disclosure of Invention
In order to solve the above problem, an embodiment of the present invention shows a video query method and apparatus based on a video network.
In a first aspect, an embodiment of the present invention shows a video query method based on a video network, which is applied to a video network device, and the method includes:
receiving a video query request sent through an Internet Web page, wherein the video query request carries a target unified content label UCL in a character string form;
sending the video query request to the video server so that the video server searches for the video matched with the target UCL according to the video query request and returns the video to the video networking equipment;
receiving the video returned by the video server;
and sending the video to the Internet Web page.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the method further comprises the following steps:
receiving ordering information among a plurality of videos sent by the video server, wherein the ordering information is generated according to a number corresponding to each video in an order of at least more, and the number corresponding to the video comprises the number of target UCLs which are matched with the inherent UCLs of the videos in a plurality of target UCLs;
and sending the sequencing information to the Internet Web page, and further enabling the Internet Web page to display the searched videos according to the sequencing information.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the method further comprises the following steps:
receiving sequencing information among a plurality of videos sent by the video server, wherein the sequencing information is generated according to the sequence of the matching degree between each video and a plurality of target UCLs carried by the video query request from high to low, and the matching degree corresponding to the video is determined according to the weight of each target UCL matched with the inherent UCL of the video in the plurality of target UCLs;
and sending the sequencing information to the Internet Web page, and further enabling the Internet Web page to display the searched videos according to the sequencing information.
In an optional implementation, the target UCL includes at least: a content description attribute and a content management attribute;
the content description attributes include at least: title of video content, type of video content, detailed abstract of video content, author of video content, mark information of video content, copyright information of video, originality declaration of video, attribute information of video, content object of video and associated UCL of video;
the content management attributes include: content provenance of the video, content name of the video, propagation path of the video, digital signature of content of the video, security level of the video, and chain of responsibility of the video.
In a second aspect, an embodiment of the present invention shows a video query method based on a video network, which is applied in a video server, and the method includes:
receiving a video query request sent by the video networking equipment, wherein the video query request carries a target uniform content label UCL in a character string form, and the video query request is sent to the video networking equipment through an Internet Web page;
searching a video matched with the target UCL according to the video query request;
and sending the video to the video networking equipment so that the video networking equipment sends the video to the Internet Web page.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the method further comprises the following steps:
for each found video, determining the number of target UCLs matched with the inherent UCLs of the video in a plurality of target UCLs;
generating sequencing information among the searched videos according to the sequence of at least more than one corresponding number of each video;
and sending the sequencing information to the video networking equipment so that the video networking equipment sends the sequencing information to an Internet Web page, and further the Internet Web page displays the searched videos according to the sequencing information.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the method further comprises the following steps:
for each found video, determining a target UCL matched with the inherent UCL of the video in a plurality of target UCLs, acquiring the weight of each matched target UCL, and determining the matching degree between the video and the plurality of target UCLs carried by the video query request according to the weight of each matched target UCL;
generating sequencing information among the searched videos according to the sequence of the matching degree corresponding to each video from high to low;
and sending the sequencing information to the video networking equipment so that the video networking equipment sends the sequencing information to an Internet Web page, and further the Internet Web page displays the searched videos according to the sequencing information.
In an optional implementation, the target UCL includes at least: a content description attribute and a content management attribute;
the content description attributes include at least: title of video content, type of video content, detailed abstract of video content, author of video content, mark information of video content, copyright information of video, originality declaration of video, attribute information of video, content object of video and associated UCL of video;
the content management attributes include: content provenance of the video, content name of the video, propagation path of the video, digital signature of content of the video, security level of the video, and chain of responsibility of the video.
In a third aspect, an embodiment of the present invention shows a video query apparatus based on a video network, which is applied to a video network device, and the apparatus includes:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a video query request sent by an Internet Web page, and the video query request carries a target unified content label UCL in a character string form;
the first sending module is used for sending the video query request to the video server so that the video server searches for a video matched with the target UCL according to the video query request and returns the video to the video networking equipment;
the second receiving module is used for receiving the video returned by the video server;
and the second sending module is used for sending the video to the Internet Web page.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the device further comprises:
a third receiving module, configured to receive ordering information between the multiple videos sent by the video server, where the ordering information is generated in an order of at least a number of videos, where the number of videos includes a number of target UCLs that match inherent UCLs of the videos among multiple target UCLs;
and the third sending module is used for sending the sequencing information to the Internet Web page so as to enable the Internet Web page to display the searched videos according to the sequencing information.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the device further comprises:
a fourth receiving module, configured to receive ranking information between the multiple videos sent by the video server, where the ranking information is generated according to a descending order of matching degrees between each video and multiple target UCLs carried by the video query request, and a matching degree corresponding to a video is determined according to weights of each target UCL, which is matched with an inherent UCL of the video, in the multiple target UCLs;
and the fourth sending module is used for sending the sequencing information to the Internet Web page so as to enable the Internet Web page to display the searched videos according to the sequencing information.
In an optional implementation, the target UCL includes at least: a content description attribute and a content management attribute;
the content description attributes include at least: title of video content, type of video content, detailed abstract of video content, author of video content, mark information of video content, copyright information of video, originality declaration of video, attribute information of video, content object of video and associated UCL of video;
the content management attributes include: content provenance of the video, content name of the video, propagation path of the video, digital signature of content of the video, security level of the video, and chain of responsibility of the video.
In a fourth aspect, an embodiment of the present invention shows a video query apparatus based on a video network, applied to a video server, where the apparatus includes:
a fifth receiving module, configured to receive a video query request sent by the video networking device, where the video query request carries a target uniform content label UCL in a character string form, and the video query request is sent to the video networking device through an internet Web page;
the searching module is used for searching the video matched with the target UCL according to the video searching request;
and the fifth sending module is used for sending the video to the video networking equipment so that the video networking equipment sends the video to the Internet Web page.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the device further comprises:
a first determining module, configured to determine, for each found video, a number of target UCLs that match an inherent UCL of the video, among a plurality of target UCLs;
the first generation module is used for generating the searched sequencing information among the plurality of videos according to the at least more sequence of the number corresponding to each video;
a sixth sending module, configured to send the sorting information to the video networking device, so that the video networking device sends the sorting information to an internet Web page, and the internet Web page displays the found videos according to the sorting information.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the device further comprises:
the second determining module is used for determining a target UCL matched with the inherent UCL of the video in a plurality of target UCLs for each found video, the obtaining module is used for obtaining the weight of each matched target UCL, and the third determining module is used for determining the matching degree between the video and the plurality of target UCLs carried by the video query request according to the weight of each matched target UCL;
the second generation module is used for generating the searched sequencing information among the plurality of videos according to the sequence of the matching degree corresponding to each video from high to low;
a seventh sending module, configured to send the sorting information to the video networking device, so that the video networking device sends the sorting information to an internet Web page, and the internet Web page displays the found videos according to the sorting information.
In an optional implementation, the target UCL includes at least: a content description attribute and a content management attribute;
the content description attributes include at least: title of video content, type of video content, detailed abstract of video content, author of video content, mark information of video content, copyright information of video, originality declaration of video, attribute information of video, content object of video and associated UCL of video;
the content management attributes include: content provenance of the video, content name of the video, propagation path of the video, digital signature of content of the video, security level of the video, and chain of responsibility of the video.
In a fifth aspect, the embodiment of the present invention shows an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the video query method based on the video network according to the first aspect is implemented.
In a sixth aspect, the present invention shows a computer-readable storage medium, on which a computer program is stored, the computer program causing a processor to execute the video query method based on the video network according to the first aspect.
In a seventh aspect, an embodiment of the present invention shows an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor, when executing the computer program, implements the video query method based on the video network according to the second aspect.
In an eighth aspect, the embodiment of the present invention shows a computer-readable storage medium, on which a computer program is stored, the computer program causing a processor to execute the video query method based on the video network according to the second aspect.
In a ninth aspect, an embodiment of the present invention shows a video query method based on a video network, where the method includes:
a Web page generates a video query request, wherein the video query request carries a target unified content label UCL in a character string form; calling an API (application programming interface) and sending the video query request to a video networking storage gateway based on TCP (transmission control protocol) connection;
the video network storage gateway receives the video query request, and sends the video query request to a video network server based on a bottom layer transmission channel established by the C + + code;
the video networking server receives the video query request, and sends the video query request to the video networking cat based on a bottom layer transmission channel established by the C + + code;
the cat receives the video query request and sends the video query request to a video server;
the video server receives the video query request, searches for a video matched with the target UCL, and sends the video to the cat in the video network;
the cat receives the video, and a bottom layer transmission channel established based on the C + + code sends the video to the video networking server;
the video networking server receives the video, and a bottom layer transmission channel established based on the C + + code sends the video to the video networking storage gateway;
the video network storage gateway receives the video and sends the video to the Web page through the API based on TCP connection;
and the Web page receives the video through the API interface and then plays the video on the Web page based on the JAVA code in the Web page.
In a tenth aspect, an embodiment of the present invention shows a video query system based on a video network, where the system includes:
the system comprises a Web page, a video network storage gateway, a video network server, a video network modem and a video server;
the Web page is used for generating a video query request, and the video query request carries a target unified content label UCL in a character string form; calling an API (application programming interface) and sending the video query request to a video networking storage gateway based on TCP (transmission control protocol) connection;
the video network storage gateway is used for receiving the video query request and sending the video query request to a video network server based on a bottom layer transmission channel established by the C + + code;
the video networking server is used for receiving the video query request and sending the video query request to the video networking cat based on a bottom layer transmission channel established by the C + + code;
the video network modem is used for receiving the video query request and sending the video query request to a video server;
the video server is used for receiving the video query request, searching for a video matched with the target UCL, and sending the video to the cat in the video network;
the Internet of things is also used for receiving the video, and sending the video to the Internet of things server through a bottom layer transmission channel established based on C + + codes;
the video networking server is also used for receiving the video and sending the video to the video networking storage gateway based on a bottom layer transmission channel established by the C + + code;
the video network storage gateway is also used for receiving the video and sending the video to the Web page through the API based on TCP connection;
the Web page is also used for receiving the video through the API interface and then playing the video on the Web page based on the JAVA code in the Web page.
The embodiment of the invention has the following advantages:
in the application, the video query request carries the character string-form UCL, so that under the condition that the video server stores a large amount of videos, the rate of the video server searching for the videos according to the character string-form UCL is higher, and is usually higher than the rate of searching for the videos in databases such as mysql or oracle, and therefore the searching efficiency of the application is higher.
Secondly, the UCL records the rich semantic information and management information of the video, the voice information and the management information of the video are easier to remember and distinguish by the user, compared with the URL of the video which needs to be remembered and distinguished by the user, the difficulty of the user in inquiring the video is reduced by inquiring the video through the UCL, the user can inquire the wanted video more easily according to the voice information and the management information, the method is more friendly to the user, and the user experience can be improved.
In addition, when the video in the video server in the internet is inquired on the internet Web page, no matter the video inquiry request sent to the video server in the internet through the internet Web page or the video returned to the internet Web page by the video server in the internet, the video can be forwarded through the video network instead of the internet.
Drawings
Fig. 1 is a block diagram of a video query system based on a video network according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps of a video query method based on a video network according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating steps of a video query method based on a video network according to an embodiment of the present invention.
Fig. 4 is a flowchart illustrating steps of a video query method based on a video network according to an embodiment of the present invention.
Fig. 5 is a flowchart illustrating steps of a video query method based on a video network according to an embodiment of the present invention.
Fig. 6 is a block diagram of a video query apparatus based on a video network according to an embodiment of the present invention.
Fig. 7 is a block diagram of a video query apparatus based on a video network according to an embodiment of the present invention.
Fig. 8 is a networking schematic of a video network of the present invention.
Fig. 9 is a schematic diagram of a hardware structure of a node server according to the present invention.
Fig. 10 is a schematic diagram of a hardware structure of an access switch of the present invention.
Fig. 11 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a block diagram of a video query system based on a video network according to an embodiment of the present invention is shown, the system at least includes: video server 01 that is located the internet and be located the video networking equipment in the video networking, video networking equipment includes video networking gateway 02, video networking server 03 and video networking 04.
The video server 01 stores therein a plurality of videos.
The user can access the video network via the video network gateway 02 on the internet Web page, that is, the video network gateway 02 can be an interactive interface between the video network and the internet Web page.
The video server 01 can perform data interaction with the video network through the cat 04, that is, the cat 04 can be an interactive interface between the video network and the video server.
Namely, the internet Web page is in communication connection with the video networking gateway 02, and the video server 01 is in communication connection with the video modem 04.
Interaction data between devices in the video network during data interaction often needs to be forwarded via the video network server 03.
Therefore, the video networking gateway 02 is in communication connection with the video networking server 03 based on a video networking protocol, and the video networking server 03 is in communication connection with the video networking cat 04 based on the video networking protocol.
Referring to fig. 2, a flowchart illustrating steps of a video query method based on a video network according to an embodiment of the present invention is shown, where the method is applied to the system shown in fig. 1, and the method may specifically include the following steps:
in step S101, the video networking device receives a video query request sent via an internet Web page, where the video query request carries a target UCL (Uniform Content Label) in the form of a character string;
in the present application, when a user needs to search for a video in a video server in an internet Web page, the user may not search for the video based on the URL of the video, but may search for the video based on the UCL of the video,
the UCL includes at least: a content description attribute and a content management attribute;
the content description attributes include at least: title of video content, type of video content, detailed abstract of video content, author of video content, mark information of video content, copyright information of video, originality declaration of video, attribute information of video, content object of video and associated UCL of video;
the content management attributes include: content provenance of the video, content name of the video, propagation path of the video, digital signature of content of the video, security level of the video, and chain of responsibility of the video.
In which, whenever a video is stored in a video server in advance, the UCL of the video can be set in the video server, and the UCL of the video can be one or more.
Therefore, a user can input a video query request on an internet Web page, where the video query request carries a target unified content label UCL in the form of a character string, and then send the video query request to a video networking gateway included in a video networking device via the internet Web page.
The video query request is received by a video networking gateway in the video networking device.
In step S102, the video networking device sends the video query request to the video server;
in the application, a user queries videos in video servers located in the internet in an internet Web page, and needs to query the videos in the video servers located in the internet through the video network. And the Internet Web page sends the video query request to the video networking gateway, wherein the video query request is a video query request of an Internet protocol.
Therefore, in order to enable the video query request to smoothly reach the video server after being relayed in the video network, the video network gateway needs to convert the video query request of the internet protocol into the query request of the video network protocol.
In the video network, the video modem can perform data interaction with the video server, so that the video network gateway needs to send the query request of the video network protocol to the video modem, so that the video modem converts the query request of the video network protocol into the video query request of the internet protocol, and then sends the video query request of the internet protocol to the video server.
However, since the internet of vision gateway and the internet of vision cat are not directly connected in communication, but indirectly connected in communication via the internet of vision server, the internet of vision gateway first needs to send the query request of the internet of vision protocol to the internet of vision server, so that the internet of vision server forwards the query request of the internet of vision protocol to the internet of vision cat, and then the internet of vision cat converts the query request of the internet of vision protocol into the video query request of the internet protocol, and sends the video query request of the internet protocol to the video server.
In step S103, the video server receives the video query request;
in step S104, the video server searches for a video matching the target UCL according to the video query request;
in one embodiment, if the target UCL is one, then the database is looked up for videos for which the UCL includes the target UCL.
In another embodiment, if the number of target UCLs is at least two, for any one target UCL, the video including the target UCL may be searched in the database, the above operation is performed for each other target UCL as well, then whether duplicate videos exist in all searched videos is detected, if duplicate videos exist, the searched videos are deduplicated, and the remaining videos are videos matched with the target UCL.
Alternatively, in yet another embodiment, if the target UCLs are at least two, videos in which the UCLs include at least two target UCLs at the same time, and the like, can be searched in the database.
In step S105, the video server sends the found video to the video networking device;
in order to make the internet Web page get the video found by the video server, the video server needs to send the found video to the internet Web page via the video network. The video cat in the video network can perform data interaction with the video server, so that the video server can send the searched video to the video cat in the video network equipment, and then the video cat receives the searched video.
However, the video server is located in the internet, so the video stored in the video server is often an internet protocol video, and thus the video searched by the video server in the database is also often an internet protocol video, so in order to enable the internet protocol video to smoothly reach an internet Web page after the internet is relayed, it is necessary for each device in the internet to be able to identify relevant information in the searched video, such as a destination address and the like, and therefore, the cat needs to convert the searched internet protocol video into the internet protocol video,
and then sending the video of the video networking protocol to the video networking server, and after receiving the video of the video networking protocol, the video networking server forwards the video of the video networking protocol to the video networking equipment.
In step S106, the video networking device receives the found video;
in step S107, the video networking device transmits the found video to the internet Web page.
In the application, the internet Web page does not support the video networking protocol and supports the internet protocol, so that after receiving the video of the video networking protocol, the video networking device needs to convert the video of the video networking protocol into the video of the internet protocol and then send the video of the internet protocol to the internet Web page.
And then, the Internet Web page can display the searched video for the user to select to play or store and the like.
In the application, the video query request carries the character string-form UCL, so that under the condition that the video server stores a large amount of videos, the rate of the video server searching for the videos according to the character string-form UCL is higher, and is usually higher than the rate of searching for the videos in databases such as mysql or oracle, and therefore the searching efficiency of the application is higher.
Secondly, the UCL records the rich semantic information and management information of the video, the voice information and the management information of the video are easier to remember and distinguish by the user, compared with the URL of the video which needs to be remembered and distinguished by the user, the difficulty of the user in inquiring the video is reduced by inquiring the video through the UCL, the user can inquire the wanted video more easily according to the voice information and the management information, the method is more friendly to the user, and the user experience can be improved.
In addition, when the video in the video server in the internet is inquired on the internet Web page, no matter the video inquiry request sent to the video server in the internet through the internet Web page or the video returned to the internet Web page by the video server in the internet, the video can be forwarded through the video network instead of the internet.
In an embodiment of the present application, the number of target UCLs carried by the video query request is multiple, and the number of videos found by the video server is multiple.
As such, for each video found, among the plurality of target UCLs, the video server may determine the number of target UCLs that match the native UCLs of that video.
For example, assuming that the target UCL carried by the video query request includes UCL1, UCL2, and UCL3, if the inherent UCL in the video found in the video server includes UCL1, but does not include UCL2 and UCL3, the number of target UCLs matching the inherent UCL of the video is 1, and if the inherent UCL in one video found in the video server includes UCL1 and UCL3, but does not include UCL2, the number of target UCLs matching the inherent UCL of the video is 2.
And then generating sequencing information among the searched videos according to the sequence of at least the number corresponding to each video, wherein the number corresponding to the video comprises the number of target UCLs matched with the inherent UCLs of the videos in the target UCLs.
For example, assuming that the found video includes video a, video B, and video C, and the number of target UCLs matching the inherent UCL of video a is 1, the number of target UCLs matching the inherent UCL of video B is 2, and the number of target UCLs matching the inherent UCL of video C is 3, the ordering information between video a, video B, and video C is: video C precedes video B, which precedes video a.
Then, the sequencing information is sent to the video networking equipment, the video networking equipment receives the sequencing information among the videos sent by the video server, and then the sequencing information can be sent to an internet Web page, so that the internet Web page can display the searched videos according to the sequencing information.
When the number of the target UCLs matched with the inherent UCL of one video is larger, the possibility that the video is the video which is most desired to be inquired by the user is higher, and therefore, the searched videos are displayed according to the sequencing information, so that the user can quickly find the video which is most desired to be inquired by the user, the time for the user to manually search the video which is most desired to be inquired by the user in the searched videos can be saved, the user operation can be simplified, and the user experience can be improved.
In one embodiment of the application, a plurality of target UCLs are carried by the video query request, and a plurality of videos are found by the video server;
thus, for each found video, in a plurality of target UCLs, the video server may determine a target UCL matched with the inherent UCL of the video, and then obtain the weight of each matched target UCL, wherein in the present application, when a user inputs a video query request in an internet Web page, the weight of each target UCL is specified in the video query request, and the higher the weight of the UCL is for the user to query the video, the lower the weight of the UCL is for the user to query the video is, so that the weight of each matched target UCL can be directly obtained from the video query request.
And determining the matching degree between the video and the multiple target UCLs carried by the video query request according to the weights of the matched target UCLs, for example, adding the weights of the matched target UCLs to obtain the matching degree between the video and the multiple target UCLs carried by the video query request.
And then generating the searched sequencing information among the plurality of videos according to the sequence of the matching degree corresponding to each video from high to low, wherein the matching degree corresponding to the video is determined according to the weight of each target UCL matched with the inherent UCL of the video in the plurality of target UCLs.
And then, sending sequencing information to the video networking equipment, receiving the sequencing information among the videos sent by the video server by the video networking equipment, and then sending the sequencing information to an Internet Web page, so that the Internet Web page displays the searched videos according to the sequencing information.
When the matching degree between one video and a plurality of target UCLs carried by the video query request is higher, the possibility that the video is the video which is most desired to be queried by a user is higher, and therefore, the searched videos are displayed according to the sequencing information, so that the user can quickly find the video which is most desired to be queried by the user, the time for the user to manually search the video which is most desired to be queried in the searched videos can be saved, the user operation is simplified, and the user experience is improved.
Referring to fig. 3, a flowchart illustrating steps of a video query method based on a video network according to an embodiment of the present invention is shown, where the method is applied to the video network device shown in fig. 1, and the method may specifically include the following steps:
in step S201, receiving a video query request sent via an internet Web page, where the video query request carries a target uniform content label UCL in the form of a character string;
in step S202, sending the video query request to the video server, so that the video server searches for a video matching the target UCL according to the video query request, and returns the video to the video networking device;
in step S203, receiving the video returned by the video server;
in step S204, the video is transmitted to the internet Web page.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the method further comprises the following steps:
receiving ordering information among a plurality of videos sent by the video server, wherein the ordering information is generated according to a number corresponding to each video in an order of at least more, and the number corresponding to the video comprises the number of target UCLs which are matched with the inherent UCLs of the videos in a plurality of target UCLs;
and sending the sequencing information to the Internet Web page, and further enabling the Internet Web page to display the searched videos according to the sequencing information.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the method further comprises the following steps:
receiving sequencing information among a plurality of videos sent by the video server, wherein the sequencing information is generated according to the sequence of the matching degree between each video and a plurality of target UCLs carried by the video query request from high to low, and the matching degree corresponding to the video is determined according to the weight of each target UCL matched with the inherent UCL of the video in the plurality of target UCLs;
and sending the sequencing information to the Internet Web page, and further enabling the Internet Web page to display the searched videos according to the sequencing information.
In an optional implementation, the target UCL includes at least: a content description attribute and a content management attribute;
the content description attributes include at least: title of video content, type of video content, detailed abstract of video content, author of video content, mark information of video content, copyright information of video, originality declaration of video, attribute information of video, content object of video and associated UCL of video;
the content management attributes include: content provenance of the video, content name of the video, propagation path of the video, digital signature of content of the video, security level of the video, and chain of responsibility of the video.
In the application, the video query request carries the character string-form UCL, so that under the condition that the video server stores a large amount of videos, the rate of the video server searching for the videos according to the character string-form UCL is higher, and is usually higher than the rate of searching for the videos in databases such as mysql or oracle, and therefore the searching efficiency of the application is higher.
Secondly, the UCL records the rich semantic information and management information of the video, the voice information and the management information of the video are easier to remember and distinguish by the user, compared with the URL of the video which needs to be remembered and distinguished by the user, the difficulty of the user in inquiring the video is reduced by inquiring the video through the UCL, the user can inquire the wanted video more easily according to the voice information and the management information, the method is more friendly to the user, and the user experience can be improved.
In addition, when the video in the video server in the internet is inquired on the internet Web page, no matter the video inquiry request sent to the video server in the internet through the internet Web page or the video returned to the internet Web page by the video server in the internet, the video can be forwarded through the video network instead of the internet.
Referring to fig. 4, a flowchart illustrating steps of a video query method based on a video network according to an embodiment of the present invention is shown, where the method is applied to the video server 01 shown in fig. 1, and the method may specifically include the following steps:
in step S301, a video query request sent by the video networking device is received, where the video query request carries a target uniform content label UCL in the form of a character string, and the video query request is sent to the video networking device via an internet Web page;
in step S302, a video matching the target UCL is searched according to the video query request;
in step S303, the video is sent to the video networking device, so that the video networking device sends the video to the internet Web page.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the method further comprises the following steps:
for each found video, determining the number of target UCLs matched with the inherent UCLs of the video in a plurality of target UCLs;
generating sequencing information among the searched videos according to the sequence of at least more than one corresponding number of each video;
and sending the sequencing information to the video networking equipment so that the video networking equipment sends the sequencing information to an Internet Web page, and further the Internet Web page displays the searched videos according to the sequencing information.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the method further comprises the following steps:
for each found video, determining a target UCL matched with the inherent UCL of the video in a plurality of target UCLs, acquiring the weight of each matched target UCL, and determining the matching degree between the video and the plurality of target UCLs carried by the video query request according to the weight of each matched target UCL;
generating sequencing information among the searched videos according to the sequence of the matching degree corresponding to each video from high to low;
and sending the sequencing information to the video networking equipment so that the video networking equipment sends the sequencing information to an Internet Web page, and further the Internet Web page displays the searched videos according to the sequencing information.
In an optional implementation, the target UCL includes at least: a content description attribute and a content management attribute;
the content description attributes include at least: title of video content, type of video content, detailed abstract of video content, author of video content, mark information of video content, copyright information of video, originality declaration of video, attribute information of video, content object of video and associated UCL of video;
the content management attributes include: content provenance of the video, content name of the video, propagation path of the video, digital signature of content of the video, security level of the video, and chain of responsibility of the video.
In the application, the video query request carries the character string-form UCL, so that under the condition that the video server stores a large amount of videos, the rate of the video server searching for the videos according to the character string-form UCL is higher, and is usually higher than the rate of searching for the videos in databases such as mysql or oracle, and therefore the searching efficiency of the application is higher.
Secondly, the UCL records the rich semantic information and management information of the video, the voice information and the management information of the video are easier to remember and distinguish by the user, compared with the URL of the video which needs to be remembered and distinguished by the user, the difficulty of the user in inquiring the video is reduced by inquiring the video through the UCL, the user can inquire the wanted video more easily according to the voice information and the management information, the method is more friendly to the user, and the user experience can be improved.
In addition, when the video in the video server in the internet is inquired on the internet Web page, no matter the video inquiry request sent to the video server in the internet through the internet Web page or the video returned to the internet Web page by the video server in the internet, the video can be forwarded through the video network instead of the internet.
Referring to fig. 5, a flowchart illustrating steps of a video query method based on a video network according to an embodiment of the present invention is shown, where the method specifically includes the following steps:
in step S401, a Web page generates a video query request, where the video query request carries a target unified content label UCL in the form of a character string; calling an API (application programming interface) and sending a video query request to a video networking storage gateway based on TCP (transmission control protocol) connection;
in step S402, the storage gateway of the video network receives the video query request, and sends the video query request to the video network server through a bottom layer transmission channel established based on the C + + code;
in step S403, the video networking server receives the video query request, and sends the video query request to the cat based on the bottom layer transmission channel established by the C + + code;
in step S404, the cat receives the video query request and sends the video query request to the video server;
in step S405, the video server receives the video query request, searches for a video matching the target UCL, and sends the video to the internet of things cat;
in step S406, the cat receives the video, and sends the video to the internet-of-view server through a bottom layer transmission channel established based on the C + + code;
in step S407, the video networking server receives the video, and sends the video to the video networking storage gateway through the underlying transmission channel established based on the C + + code;
in step S408, the video networking storage gateway receives the video, and transmits the video to the Web page via the API interface based on the TCP connection;
in step S409, the Web page receives the video via the API interface, and then plays the video on the Web page based on the JAVA code in the Web page.
In the application, the video query request carries the character string-form UCL, so that under the condition that the video server stores a large amount of videos, the rate of the video server searching for the videos according to the character string-form UCL is higher, and is usually higher than the rate of searching for the videos in databases such as mysql or oracle, and therefore the searching efficiency of the application is higher.
Secondly, the UCL records the rich semantic information and management information of the video, the voice information and the management information of the video are easier to remember and distinguish by the user, compared with the URL of the video which needs to be remembered and distinguished by the user, the difficulty of the user in inquiring the video is reduced by inquiring the video through the UCL, the user can inquire the wanted video more easily according to the voice information and the management information, the method is more friendly to the user, and the user experience can be improved.
In addition, when the video in the video server in the internet is inquired on the internet Web page, no matter the video inquiry request sent to the video server in the internet through the internet Web page or the video returned to the internet Web page by the video server in the internet, the video can be forwarded through the video network instead of the internet.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 6, a block diagram of a video query apparatus based on a video network according to an embodiment of the present invention is shown, where the apparatus may specifically include the following modules:
the system comprises a first receiving module 11, a second receiving module, a third receiving module and a fourth receiving module, wherein the first receiving module is used for receiving a video query request sent through an internet Web page, and the video query request carries a target unified content label UCL in a character string form;
a first sending module 12, configured to send the video query request to the video server, so that the video server searches for a video matching the target UCL according to the video query request, and returns the video to the video networking device;
a second receiving module 13, configured to receive the video returned by the video server;
and a second sending module 14, configured to send the video to the internet Web page.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the device further comprises:
a third receiving module, configured to receive ordering information between the multiple videos sent by the video server, where the ordering information is generated in an order of at least a number of videos, where the number of videos includes a number of target UCLs that match inherent UCLs of the videos among multiple target UCLs;
and the third sending module is used for sending the sequencing information to the Internet Web page so as to enable the Internet Web page to display the searched videos according to the sequencing information.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the device further comprises:
a fourth receiving module, configured to receive ranking information between the multiple videos sent by the video server, where the ranking information is generated according to a descending order of matching degrees between each video and multiple target UCLs carried by the video query request, and a matching degree corresponding to a video is determined according to weights of each target UCL, which is matched with an inherent UCL of the video, in the multiple target UCLs;
and the fourth sending module is used for sending the sequencing information to the Internet Web page so as to enable the Internet Web page to display the searched videos according to the sequencing information.
In an optional implementation, the target UCL includes at least: a content description attribute and a content management attribute;
the content description attributes include at least: title of video content, type of video content, detailed abstract of video content, author of video content, mark information of video content, copyright information of video, originality declaration of video, attribute information of video, content object of video and associated UCL of video;
the content management attributes include: content provenance of the video, content name of the video, propagation path of the video, digital signature of content of the video, security level of the video, and chain of responsibility of the video.
In the application, the video query request carries the character string-form UCL, so that under the condition that the video server stores a large amount of videos, the rate of the video server searching for the videos according to the character string-form UCL is higher, and is usually higher than the rate of searching for the videos in databases such as mysql or oracle, and therefore the searching efficiency of the application is higher.
Secondly, the UCL records the rich semantic information and management information of the video, the voice information and the management information of the video are easier to remember and distinguish by the user, compared with the URL of the video which needs to be remembered and distinguished by the user, the difficulty of the user in inquiring the video is reduced by inquiring the video through the UCL, the user can inquire the wanted video more easily according to the voice information and the management information, the method is more friendly to the user, and the user experience can be improved.
In addition, when the video in the video server in the internet is inquired on the internet Web page, no matter the video inquiry request sent to the video server in the internet through the internet Web page or the video returned to the internet Web page by the video server in the internet, the video can be forwarded through the video network instead of the internet.
Referring to fig. 7, a block diagram of a video query apparatus based on a video network according to an embodiment of the present invention is shown, where the apparatus may specifically include the following modules:
a fifth receiving module 21, configured to receive a video query request sent by the video networking device, where the video query request carries a target uniform content label UCL in a character string form, and the video query request is sent to the video networking device through an internet Web page;
the searching module 22 is configured to search for a video matched with the target UCL according to the video query request;
a fifth sending module 23, configured to send the video to the video networking device, so that the video networking device sends the video to the internet Web page.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the device further comprises:
a first determining module, configured to determine, for each found video, a number of target UCLs that match an inherent UCL of the video, among a plurality of target UCLs;
the first generation module is used for generating the searched sequencing information among the plurality of videos according to the at least more sequence of the number corresponding to each video;
a sixth sending module, configured to send the sorting information to the video networking device, so that the video networking device sends the sorting information to an internet Web page, and the internet Web page displays the found videos according to the sorting information.
In an optional implementation manner, a plurality of target UCLs are provided, and a plurality of searched videos are provided;
the device further comprises:
the second determining module is used for determining a target UCL matched with the inherent UCL of the video in a plurality of target UCLs for each found video, the obtaining module is used for obtaining the weight of each matched target UCL, and the third determining module is used for determining the matching degree between the video and the plurality of target UCLs carried by the video query request according to the weight of each matched target UCL;
the second generation module is used for generating the searched sequencing information among the plurality of videos according to the sequence of the matching degree corresponding to each video from high to low;
a seventh sending module, configured to send the sorting information to the video networking device, so that the video networking device sends the sorting information to an internet Web page, and the internet Web page displays the found videos according to the sorting information.
In an optional implementation, the target UCL includes at least: a content description attribute and a content management attribute;
the content description attributes include at least: title of video content, type of video content, detailed abstract of video content, author of video content, mark information of video content, copyright information of video, originality declaration of video, attribute information of video, content object of video and associated UCL of video;
the content management attributes include: content provenance of the video, content name of the video, propagation path of the video, digital signature of content of the video, security level of the video, and chain of responsibility of the video.
In the application, the video query request carries the character string-form UCL, so that under the condition that the video server stores a large amount of videos, the rate of the video server searching for the videos according to the character string-form UCL is higher, and is usually higher than the rate of searching for the videos in databases such as mysql or oracle, and therefore the searching efficiency of the application is higher.
Secondly, the UCL records the rich semantic information and management information of the video, the voice information and the management information of the video are easier to remember and distinguish by the user, compared with the URL of the video which needs to be remembered and distinguished by the user, the difficulty of the user in inquiring the video is reduced by inquiring the video through the UCL, the user can inquire the wanted video more easily according to the voice information and the management information, the method is more friendly to the user, and the user experience can be improved.
In addition, when the video in the video server in the internet is inquired on the internet Web page, no matter the video inquiry request sent to the video server in the internet through the internet Web page or the video returned to the internet Web page by the video server in the internet, the video can be forwarded through the video network instead of the internet.
The embodiment of the invention also discloses a video query system based on the video network, which comprises:
the system comprises a Web page, a video network storage gateway, a video network server, a video network modem and a video server;
the Web page is used for generating a video query request, and the video query request carries a target unified content label UCL in a character string form; calling an API (application programming interface) and sending the video query request to a video networking storage gateway based on TCP (transmission control protocol) connection;
the video network storage gateway is used for receiving the video query request and sending the video query request to a video network server based on a bottom layer transmission channel established by the C + + code;
the video networking server is used for receiving the video query request and sending the video query request to the video networking cat based on a bottom layer transmission channel established by the C + + code;
the video network modem is used for receiving the video query request and sending the video query request to a video server;
the video server is used for receiving the video query request, searching for a video matched with the target UCL, and sending the video to the cat in the video network;
the Internet of things is also used for receiving the video, and sending the video to the Internet of things server through a bottom layer transmission channel established based on C + + codes;
the video networking server is also used for receiving the video and sending the video to the video networking storage gateway based on a bottom layer transmission channel established by the C + + code;
the video network storage gateway is also used for receiving the video and sending the video to the Web page through the API based on TCP connection;
the Web page is also used for receiving the video through the API interface and then playing the video on the Web page based on the JAVA code in the Web page.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiment of the present invention also shows an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the video query method based on the video network shown in fig. 3 is implemented.
An embodiment of the present invention further illustrates a computer-readable storage medium, on which a computer program is stored, where the computer program enables a processor to execute the video query method based on the video network illustrated in fig. 3.
The embodiment of the present invention also shows an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the video query method based on the video network shown in fig. 4 is implemented.
An embodiment of the present invention further illustrates a computer-readable storage medium, on which a computer program is stored, where the computer program enables a processor to execute the video query method based on the video network illustrated in fig. 4.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved the traditional Ethernet (Ethernet) to face the potentially huge first video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 8, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 9, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 10, the network interface module (downlink network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304 are mainly included;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues and may include two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 11, the system mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of 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, embodiments of 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.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (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 terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, 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 terminal 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal 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 of these 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 embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The video query method and device based on the video network provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A video query method based on video network is applied to video network equipment, and the method comprises the following steps:
receiving a video query request sent through an Internet Web page, wherein the video query request carries a target unified content label UCL in a character string form;
sending the video query request to the video server so that the video server searches for a video matched with the target UCL according to the video query request;
and receiving the video returned by the video server, and sending the video to the Internet Web page.
2. The method of claim 1, wherein there are a plurality of target UCLs and a plurality of found videos;
the method further comprises the following steps:
receiving ordering information among a plurality of videos sent by the video server, wherein the ordering information is generated according to a number corresponding to each video in an order of at least more, and the number corresponding to the video comprises the number of target UCLs which are matched with the inherent UCLs of the videos in a plurality of target UCLs;
sending the sequencing information to the Internet Web page, and further enabling the Internet Web page to display the searched videos according to the sequencing information;
alternatively, the first and second electrodes may be,
the method further comprises the following steps:
receiving sequencing information among a plurality of videos sent by the video server, wherein the sequencing information is generated according to the sequence of the matching degree between each video and a plurality of target UCLs carried by the video query request from high to low, and the matching degree corresponding to the video is determined according to the weight of each target UCL matched with the inherent UCL of the video in the plurality of target UCLs;
and sending the sequencing information to the Internet Web page, and further enabling the Internet Web page to display the searched videos according to the sequencing information.
3. A video query method based on video network is applied to a video server, and the method comprises the following steps:
receiving a video query request sent by the video networking equipment, wherein the video query request carries a target uniform content label UCL in a character string form, and the video query request is sent to the video networking equipment through an Internet Web page;
searching a video matched with the target UCL according to the video query request;
and sending the video to the video networking equipment so that the video networking equipment sends the video to the Internet Web page.
4. The method of claim 3, wherein there are a plurality of target UCLs and a plurality of found videos;
the method further comprises the following steps:
for each found video, determining the number of target UCLs matched with the inherent UCLs of the video in a plurality of target UCLs;
generating sequencing information among the searched videos according to the sequence of at least more than one corresponding number of each video;
sending the sequencing information to the video networking equipment so that the video networking equipment sends the sequencing information to an Internet Web page, and further the Internet Web page displays the searched videos according to the sequencing information;
alternatively, the first and second electrodes may be,
the method further comprises the following steps:
for each found video, determining a target UCL matched with the inherent UCL of the video in a plurality of target UCLs, acquiring the weight of each matched target UCL, and determining the matching degree between the video and the plurality of target UCLs carried by the video query request according to the weight of each matched target UCL;
generating sequencing information among the searched videos according to the sequence of the matching degree corresponding to each video from high to low;
and sending the sequencing information to the video networking equipment so that the video networking equipment sends the sequencing information to an Internet Web page, and further the Internet Web page displays the searched videos according to the sequencing information.
5. A video query method based on video network is characterized by comprising the following steps:
a Web page generates a video query request, wherein the video query request carries a target unified content label UCL in a character string form; calling an API (application programming interface) and sending the video query request to a video networking storage gateway based on TCP (transmission control protocol) connection;
the video network storage gateway receives the video query request, and sends the video query request to a video network server based on a bottom layer transmission channel established by the C + + code;
the video networking server receives the video query request, and sends the video query request to the video networking cat based on a bottom layer transmission channel established by the C + + code;
the cat receives the video query request and sends the video query request to a video server;
the video server receives the video query request, searches for a video matched with the target UCL, and sends the video to the cat in the video network;
the cat receives the video, and a bottom layer transmission channel established based on the C + + code sends the video to the video networking server;
the video networking server receives the video, and a bottom layer transmission channel established based on the C + + code sends the video to the video networking storage gateway;
the video network storage gateway receives the video and sends the video to the Web page through the API based on TCP connection;
and the Web page receives the video through the API interface and then plays the video on the Web page based on the JAVA code in the Web page.
6. A video query system based on a video network, the system comprising:
the system comprises a Web page, a video network storage gateway, a video network server, a video network modem and a video server;
the Web page is used for generating a video query request, and the video query request carries a target unified content label UCL in a character string form; calling an API (application programming interface) and sending the video query request to a video networking storage gateway based on TCP (transmission control protocol) connection;
the video network storage gateway is used for receiving the video query request and sending the video query request to a video network server based on a bottom layer transmission channel established by the C + + code;
the video networking server is used for receiving the video query request and sending the video query request to the video networking cat based on a bottom layer transmission channel established by the C + + code;
the video network modem is used for receiving the video query request and sending the video query request to a video server;
the video server is used for receiving the video query request, searching for a video matched with the target UCL, and sending the video to the cat in the video network;
the Internet of things is also used for receiving the video, and sending the video to the Internet of things server through a bottom layer transmission channel established based on C + + codes;
the video networking server is also used for receiving the video and sending the video to the video networking storage gateway based on a bottom layer transmission channel established by the C + + code;
the video network storage gateway is also used for receiving the video and sending the video to the Web page through the API based on TCP connection;
the Web page is also used for receiving the video through the API interface and then playing the video on the Web page based on the JAVA code in the Web page.
7. A video inquiry device based on video network is characterized in that the device is applied to video network equipment, and the device comprises:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a video query request sent by an Internet Web page, and the video query request carries a target unified content label UCL in a character string form;
the first sending module is used for sending the video query request to the video server so that the video server searches for a video matched with the target UCL according to the video query request and returns the video to the video networking equipment;
the second receiving module is used for receiving the video returned by the video server;
and the second sending module is used for sending the video to the Internet Web page.
8. A video inquiry device based on video network is characterized in that the device is applied to a video server and comprises:
a fifth receiving module, configured to receive a video query request sent by the video networking device, where the video query request carries a target uniform content label UCL in a character string form, and the video query request is sent to the video networking device through an internet Web page;
the searching module is used for searching the video matched with the target UCL according to the video searching request;
and the fifth sending module is used for sending the video to the video networking equipment so that the video networking equipment sends the video to the Internet Web page.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the video networking based video query method according to any one of claims 1 to 2 or the video networking based video query method according to any one of claims 3 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which causes a processor to execute the video network-based video query method according to any one of claims 1 to 2 or the video network-based video query method according to any one of claims 3 to 4.
CN201911177128.4A 2019-11-26 2019-11-26 Video query method and device based on video network Active CN111159586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911177128.4A CN111159586B (en) 2019-11-26 2019-11-26 Video query method and device based on video network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911177128.4A CN111159586B (en) 2019-11-26 2019-11-26 Video query method and device based on video network

Publications (2)

Publication Number Publication Date
CN111159586A true CN111159586A (en) 2020-05-15
CN111159586B CN111159586B (en) 2023-04-07

Family

ID=70556175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911177128.4A Active CN111159586B (en) 2019-11-26 2019-11-26 Video query method and device based on video network

Country Status (1)

Country Link
CN (1) CN111159586B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110078718A1 (en) * 2009-09-29 2011-03-31 Google Inc. Targeting videos for advertisements by audience or content
CN105407359A (en) * 2015-11-18 2016-03-16 中国传媒大学 Intelligent television programme retrieving and recommending system based on classification label system
CN106227874A (en) * 2016-07-29 2016-12-14 中国传媒大学 A kind of mobile news client based on UCL
CN107995069A (en) * 2016-10-26 2018-05-04 北京视联动力国际信息技术有限公司 A kind of method and apparatus of terminal video push
CN108810579A (en) * 2017-07-26 2018-11-13 北京视联动力国际信息技术有限公司 A kind of video data requesting method, association turn server and regard networked server
CN108965912A (en) * 2017-12-29 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method, client and the server of video data processing
CN109842519A (en) * 2018-12-25 2019-06-04 视联动力信息技术股份有限公司 A kind of method and apparatus of preview video stream
CN110072126A (en) * 2019-03-19 2019-07-30 视联动力信息技术股份有限公司 Data request method, association turn server and computer readable storage medium
CN110087028A (en) * 2019-04-17 2019-08-02 视联动力信息技术股份有限公司 A kind of web video component obtains the method and system of video flowing
CN110121116A (en) * 2018-02-06 2019-08-13 上海全土豆文化传播有限公司 Video generation method and device
CN110457266A (en) * 2019-07-08 2019-11-15 视联动力信息技术股份有限公司 Document retrieval method, device and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110078718A1 (en) * 2009-09-29 2011-03-31 Google Inc. Targeting videos for advertisements by audience or content
CN105407359A (en) * 2015-11-18 2016-03-16 中国传媒大学 Intelligent television programme retrieving and recommending system based on classification label system
CN106227874A (en) * 2016-07-29 2016-12-14 中国传媒大学 A kind of mobile news client based on UCL
CN107995069A (en) * 2016-10-26 2018-05-04 北京视联动力国际信息技术有限公司 A kind of method and apparatus of terminal video push
CN108810579A (en) * 2017-07-26 2018-11-13 北京视联动力国际信息技术有限公司 A kind of video data requesting method, association turn server and regard networked server
CN108965912A (en) * 2017-12-29 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method, client and the server of video data processing
CN110121116A (en) * 2018-02-06 2019-08-13 上海全土豆文化传播有限公司 Video generation method and device
CN109842519A (en) * 2018-12-25 2019-06-04 视联动力信息技术股份有限公司 A kind of method and apparatus of preview video stream
CN110072126A (en) * 2019-03-19 2019-07-30 视联动力信息技术股份有限公司 Data request method, association turn server and computer readable storage medium
CN110087028A (en) * 2019-04-17 2019-08-02 视联动力信息技术股份有限公司 A kind of web video component obtains the method and system of video flowing
CN110457266A (en) * 2019-07-08 2019-11-15 视联动力信息技术股份有限公司 Document retrieval method, device and storage medium

Also Published As

Publication number Publication date
CN111159586B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109348171B (en) Video networking monitoring video acquisition method and device
CN110647698B (en) Page loading method and device, electronic equipment and readable storage medium
CN111193788A (en) Audio and video stream load balancing method and device
CN111092863B (en) Method, client, server, device and medium for accessing internet website
CN109672857B (en) Information processing method and device for monitoring resources
CN109743550B (en) Method and device for monitoring data flow regulation
CN110602039A (en) Data acquisition method and system
CN110475131B (en) Terminal connection method, server and terminal
CN110619066B (en) Information acquisition method and device based on directory tree
CN110839142B (en) Monitoring directory sharing method and device
CN110134892B (en) Loading method and system of monitoring resource list
CN110012063B (en) Data packet processing method and system
CN110289974B (en) Data stream processing method, system and device and storage medium
CN109743585B (en) Method and device for collecting monitoring videos and cloning favorites
CN109743360B (en) Information processing method and device
CN110418169B (en) Monitoring data carousel method and device
CN108965219B (en) Data processing method and device based on video network
CN108574655B (en) Conference monitoring and broadcasting method and device
CN110677392A (en) Video data transmission method and device
CN111031090B (en) Data processing method and device, electronic equipment and readable storage medium
CN110557411A (en) video stream processing method and device based on video network
CN109756476B (en) User-defined nickname setting method and system based on video network
CN110516141B (en) Data query method and device, electronic equipment and readable storage medium
CN109450995B (en) Method and system for acquiring server data
CN110557372B (en) Data acquisition method and system

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