CN111327924A - Code stream screening method and device and access equipment - Google Patents

Code stream screening method and device and access equipment Download PDF

Info

Publication number
CN111327924A
CN111327924A CN201910697071.4A CN201910697071A CN111327924A CN 111327924 A CN111327924 A CN 111327924A CN 201910697071 A CN201910697071 A CN 201910697071A CN 111327924 A CN111327924 A CN 111327924A
Authority
CN
China
Prior art keywords
media
media configuration
configuration file
group
value
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
CN201910697071.4A
Other languages
Chinese (zh)
Other versions
CN111327924B (en
Inventor
曲彤晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201910697071.4A priority Critical patent/CN111327924B/en
Publication of CN111327924A publication Critical patent/CN111327924A/en
Application granted granted Critical
Publication of CN111327924B publication Critical patent/CN111327924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25825Management of client data involving client display capabilities, e.g. screen resolution of a mobile phone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4516Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a code stream screening method, a code stream screening device and access equipment. The method is applied to the access equipment and comprises the following steps: acquiring a plurality of media configuration files provided by ONVIF equipment; determining the grading result of the code streams corresponding to the plurality of media configuration files; wherein, the grading result is: the video coding capability set associated with each media configuration file is calculated based on the coding format supported by each media configuration file in a plurality of media configuration files and the video coding capability set associated with the media configuration file, wherein the video coding capability set associated with each media configuration file is as follows: a set of encoding capability values of the same type supported by the media profile; determining a target media configuration file matched with the application requirement of the access equipment from the plurality of media configuration files based on the grading result; and acquiring a code stream corresponding to the target media configuration file from the ONVIF equipment. Compared with the prior art, the scheme provided by the embodiment of the invention can solve the problem that the code stream acquired by the access equipment from the ONVIF equipment is not matched with the application requirement.

Description

Code stream screening method and device and access equipment
Technical Field
The invention relates to the technical field of video monitoring systems, in particular to a code stream screening method, a code stream screening device and access equipment.
Background
ONVIF (Open Network Video Interface Forum) is an Open industry standard established based on Open and Open principles, and defines a general protocol for information exchange between Network Video devices, including device search, real-time Video, audio, metadata, control information, and the like. As a standard specification for equipment access, the ONVIF protocol plays an increasingly important role in the security industry. A number of manufacturers use the ONVIF protocol to specify their own production of monitoring devices such as video cameras, video recorders, etc., which may be referred to as ONVIF devices.
The access device establishing communication connection with the ONVIF device may acquire the code stream from the ONVIF device, and specifically, the access device acquires the code stream based on a media Profile (Profile) provided by the ONVIF device. The ONVIF protocol provides a plurality of media configuration files, and different media configuration files record different configuration contents corresponding to the code streams. Thus, when the access device acquires the code stream from the ONVIF device, the following problems may occur: the obtained code stream is not matched with the application requirement of the access equipment, so that the problems of video stream blockage, network blockage, storage resource waste and the like are caused. The application requirement of the access equipment is set based on the attribute information of the access equipment and/or manually given requirement information.
Therefore, a code stream screening method is needed to solve the problem that the code stream acquired by the access device from the ONVIF device is not matched with the application requirement of the access device.
Disclosure of Invention
Embodiments of the present invention provide a code stream screening method, an apparatus, an access device, and a computer-readable storage medium, so as to solve a problem that a code stream acquired by an access device from an ONVIF device is not matched with an application requirement of the access device. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a code stream screening method, which is applied to an access device, and the method includes:
after accessing ONVIF equipment, acquiring a plurality of media configuration files provided by the ONVIF equipment;
determining the grading result of the code streams corresponding to the plurality of media configuration files; wherein the ranking result is: based on the encoding format supported by each media configuration file in the plurality of media configuration files and the video encoding capability set associated with the media configuration file, the video encoding capability set associated with each media configuration file is: a set of encoding capability values of the same type supported by the media profile;
determining a target media configuration file matched with the application requirement of the access equipment from the plurality of media configuration files based on the grading result;
and acquiring the code stream corresponding to the target media configuration file from the ONVIF equipment.
In a second aspect, an embodiment of the present invention provides a code stream screening apparatus, which is applied to an access device, and the apparatus includes:
the file acquisition module is used for acquiring a plurality of media configuration files provided by the ONVIF equipment after the ONVIF equipment is accessed;
the result determining module is used for determining the grading result of the code streams corresponding to the plurality of media configuration files; wherein the ranking result is: based on the encoding format supported by each media configuration file in the plurality of media configuration files and the video encoding capability set associated with the media configuration file, the video encoding capability set associated with each media configuration file is: a set of encoding capability values of the same type supported by the media profile;
a file determining module, configured to determine, from the multiple media profiles, a target media profile matching an application requirement of the access device based on the ranking result;
and the code stream acquisition module is used for acquiring the code stream corresponding to the target media configuration file from the ONVIF equipment.
In a third aspect, an embodiment of the present invention provides an access device, which is characterized by including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any code stream screening method provided by the first aspect when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of any code stream screening method provided in the first aspect.
As can be seen from the above, by applying the scheme provided in the embodiment of the present invention, after obtaining a plurality of media profiles provided by ONVIF, a ranking result of a code stream corresponding to each media profile can be determined, where the ranking result is calculated based on a coding format supported by each media profile and a video coding capability set associated with the media profile. Therefore, as the coding format and the video coding capability set jointly determine the relevant attribute information of the code stream corresponding to the media configuration file, the target media configuration file matched with the application requirement is determined according to the grading result, and the code stream corresponding to the target media configuration file is obtained, so that the code stream obtained by the access equipment from the ONVIF equipment can be ensured to be matched with the application requirement of the access equipment, and the problem that the code stream obtained by the access equipment from the ONVIF equipment is not matched with the application requirement of the access equipment is solved. Furthermore, the situations of video stream blockage, network blockage, storage resource waste and the like caused by mismatching of the acquired code stream and the application requirement can be avoided.
In addition, by applying the scheme provided by the embodiment of the invention, when the access device acquires the code stream in the ONVIF device, when the application requirement changes, the access device can rapidly switch the determined target media configuration file according to the change of the application requirement so as to acquire the code stream matched with the changed application requirement, thereby bringing better application experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a code stream screening method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an embodiment of S102 in FIG. 1;
fig. 3 is a schematic flowchart of a calculation method of a hierarchical result of a code stream corresponding to a plurality of media configuration files according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another calculation method for a hierarchical result of a codestream corresponding to multiple media profiles according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a manner in which each media profile in each group is sorted based on a video coding capability set associated with each media profile in the group according to an embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating another manner of sorting each media profile in each group based on the video coding capability set associated with each media profile in the group according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a code stream screening apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an access device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the related art, the ONVIF protocol provides a plurality of media configuration files, and different media configuration files record different configuration contents corresponding to the code streams. Thus, when the access device acquires the code stream from the ONVIF device, the following problems may occur: the obtained code stream is not matched with the application requirement of the access equipment, so that the problems of video stream blockage, network blockage, storage resource waste and the like are caused. The application requirement of the access equipment is set based on the attribute information of the access equipment and/or manually given requirement information. In order to solve the above technical problem, an embodiment of the present invention provides a code stream screening method.
In order to better understand the scheme, before introducing the code stream screening method provided by the embodiment of the invention, a media configuration file provided by the ONVIF device is introduced first.
For an ONVIF device, the ONVIF device may provide at least one media profile. Wherein each media profile supports a coding format and is associated with at least one set of video coding capabilities (getvideoencorderconfigurationoptions). Furthermore, each media profile should at least include an identification of the media profile (Porfile Token), a video source configuration (videoresourceconfiguration) and a video coding capability configuration (videoencorderconfiguration).
The media configuration file may support an encoding format that is: h265, H264, MPEG (Moving pictures Experts Group) 4, MJPEG (Motion Joint Photographic Experts Group), which is a technique of Moving still images (or frame-by-frame) compression, and the like. Of course, it is reasonable that the encoding format supported by the media profile may be other formats, in addition to the above examples.
Each set of video coding capabilities associated with a media profile corresponds to one type of coding capabilities supported by the media profile, and thus each media profile is associated with a set of video coding capabilities that is: a set of encoding capability values of the same type supported by the media profile. Specifically, the set of video coding capabilities associated with the media profile may include: at least one of a resolution capability set, a frame rate capability set, a rate capability set, and the like. Of course, it is reasonable that the set of video coding capabilities associated with the media profile may include other sets of capabilities, in addition to the examples described above.
The video coding capability configuration of the media configuration file comprises the following steps: the Porfile corresponds to the attributes of the code stream such as the currently adopted coding format, resolution, frame rate, code rate and the like. Of course, it is reasonable that the video coding capability configuration of the media profile may include other attributes in addition to the above examples.
In addition, it should be noted that, after the access device accesses an ONVIF device, the ONVIF device only provides one media configuration file, and the code stream acquired by the access device in the ONVIF device is the code stream corresponding to the media configuration file, so that it is not necessary to grade the code stream corresponding to the media configuration file provided by the ONVIF device. That is to say, when the ONVIF device provides only one media configuration file, the code stream screening method provided by the embodiment of the present invention may not be adopted, and the access device may directly obtain the code stream corresponding to the media configuration file from the ONVIF device. In this case, the media profile corresponding codestream may be referred to as a main codestream provided by the ONVIF device.
Next, a code stream screening method provided in an embodiment of the present invention is described.
Fig. 1 is a schematic flow chart of a code stream screening method according to an embodiment of the present invention. The determining method may be applied to any electronic device that can be accessed to the ONVIF device, for example, a server, a NVR (network video recorder), a video monitoring platform, other electronic devices installed with device access management software, and the like.
As shown in fig. 1, the code stream screening method may include the following steps:
s101: after accessing the ONVIF equipment, acquiring a plurality of media configuration files provided by the ONVIF equipment;
after the access device is accessed to the ONVIF device, a plurality of media configuration files provided by the ONVIF device can be acquired.
The access device may access the ONVIF device in multiple ways, and may acquire multiple media configuration files provided by the ONVIF device in multiple ways, which is not limited in this embodiment of the present invention.
S102: determining the grading result of the code streams corresponding to the plurality of media configuration files;
wherein, the grading result is: the video coding capability set associated with each media configuration file is calculated based on the coding format supported by each media configuration file in a plurality of media configuration files and the video coding capability set associated with the media configuration file, wherein the video coding capability set associated with each media configuration file is as follows: a set of encoding capability values of the same type supported by the media profile;
after obtaining the multiple media configuration files provided by the ONVIF device, the access device may determine the classification result of the code stream corresponding to the obtained multiple media configuration files.
Because each media configuration file supports one coding format and is associated with at least one video coding capability set, and the coding format and the video coding capability set can represent the attribute of the code stream corresponding to the media configuration file from different angles, the grading result of the code stream corresponding to the media configuration file can be calculated based on the coding format supported by each media configuration file and the video coding capability set associated with the media configuration file.
Wherein, the video coding capability set associated with each media profile is: a set of encoding capability values of the same type supported by the media profile. That is, a set of video coding capabilities associated with a media profile corresponds to a type of coding capabilities supported by the media profile, and the media profile may support the type of coding capabilities for a plurality of coding capability values.
The access device may calculate the ranking result of the code stream corresponding to each media configuration file in multiple ways based on the coding format supported by each media configuration file and the video coding capability set associated with the media configuration file, which is not limited in this embodiment of the present invention. For clarity, a manner in which the access device calculates a ranking result of a codestream corresponding to each media profile based on a coding format supported by the media profile and a video coding capability set associated with the media profile will be described later.
S103: determining a target media configuration file matched with the application requirement of the access equipment from the plurality of media configuration files based on the grading result;
s104: and acquiring a code stream corresponding to the target media configuration file from the ONVIF equipment.
After determining the grading result of the code stream corresponding to the multiple media configuration files, in order to ensure that the code stream acquired from the ONVIF device matches the application requirement of the access device, the access device may determine, based on the grading result, a target media configuration file matching the application requirement of the access device among the multiple media configuration files. Furthermore, the access device can obtain the code stream corresponding to the target media configuration file from the ONVIF device.
For example, a target media configuration file with a supported coding format and resolution matched with the attribute information of the access device is determined, and then a code stream corresponding to the target media configuration file is acquired from the ONVIF device.
As can be seen from the above, by applying the scheme provided in the embodiment of the present invention, after obtaining a plurality of media profiles provided by ONVIF, a ranking result of a code stream corresponding to each media profile can be determined, where the ranking result is calculated based on a coding format supported by each media profile and a video coding capability set associated with the media profile. Therefore, as the coding format and the video coding capability set jointly determine the relevant attribute information of the code stream corresponding to the media configuration file, the target media configuration file matched with the application requirement is determined according to the grading result, and the code stream corresponding to the target media configuration file is obtained, so that the code stream obtained by the access equipment from the ONVIF equipment can be ensured to be matched with the application requirement of the access equipment, and the problem that the code stream obtained by the access equipment from the ONVIF equipment is not matched with the application requirement of the access equipment is solved. Furthermore, the situations of video stream blockage, network blockage, storage resource waste and the like caused by mismatching of the acquired code stream and the application requirement can be avoided.
In addition, by applying the scheme provided by the embodiment of the invention, when the access device acquires the code stream in the ONVIF device, when the application requirement changes, the access device can rapidly switch the determined target media configuration file according to the change of the application requirement so as to acquire the code stream matched with the changed application requirement, thereby bringing better application experience.
Next, an example of a manner in which the access device executes the step S102 to determine the hierarchical result of the codestream corresponding to the plurality of media profiles will be described.
Optionally, in a specific implementation manner, as shown in fig. 2, the step S102 may include the following steps:
s201: judging whether grading results of code streams corresponding to a plurality of media configuration files are stored locally; if yes, go to step S202; otherwise, executing step S203;
s202: obtaining grading results corresponding to a plurality of media configuration files from the local;
an access device may access the same ONVIF device multiple times, and for the ONVIF device, the multiple media profiles provided to the access device are the same each time access to the access device is completed.
For example, when the ONVIF device is accessed last time, the access device acquires media profile 1, media profile 2, and media profile 3, where media profile 1 supports encoding format H265 and is associated with a resolution capability set, media profile 2 supports encoding format H264 and is associated with a resolution capability set, and media profile 3 supports encoding format MJPEG and is associated with a resolution capability set;
then when accessing the ONVIF device this time, the access device also obtains media profile 1, media profile 2, and media profile 3, where media profile 1 supports encoding format H265 and is associated with a resolution capability set, media profile 2 supports encoding format H264 and is associated with a resolution capability set, and media profile 3 supports encoding format MJPEG and is associated with a resolution capability set.
And when the ONVIF device is accessed last time and this time, the encoding capability values included in the resolution capability set associated with the media configuration file 1 are the same, the encoding capability values included in the resolution capability set associated with the media configuration file 2 are also the same, and the encoding capability values included in the resolution capability set associated with the media configuration file 3 are also the same.
Therefore, after the access device accesses the ONVIF device each time and acquires the plurality of media configuration files provided by the ONVIF device, the determined grading results of the code streams corresponding to the plurality of media configuration files are the same.
Based on this, after determining the grading result of the code stream corresponding to the multiple media configuration files for the first time, the access device may store the grading result locally. Therefore, when the access device accesses the ONVIF device again and needs to determine the grading result of the code stream corresponding to the multiple media configuration files provided by the ONVIF device, whether the grading result of the code stream corresponding to the multiple media configuration files provided by the ONVIF device is stored locally can be directly judged.
Obviously, when the determination result is yes, the access device may directly obtain the grading result of the code stream corresponding to the multiple media configuration files provided by the ONVIF device from the local.
Specifically, the access device may store a corresponding relationship between the ONVIF device and the classification result, so that when the step S201 is executed, the access device may search the ONVIF device in the corresponding relationship, and when the ONVIF device is searched, it may be determined that the classification result of the code stream corresponding to the multiple media configuration files provided by the ONVIF device is locally stored. Further, the classification result corresponding to the ONVIF device, that is, the classification result of the code stream corresponding to the multiple media configuration files provided by the ONVIF device, may be obtained from the correspondence.
Obviously, when the determination result is negative, the access device may determine that the classification result of the code stream corresponding to the multiple media profiles provided by the ONVIF device is not locally stored, and therefore, the access device may determine, through subsequent steps S203 and S204, the classification result of the code stream corresponding to the multiple media profiles provided by the ONVIF device.
S203: acquiring a coding format supported by each media configuration file in a plurality of media configuration files and a video coding capability set associated with the media configuration file from ONVIF equipment;
s204: and calculating the grading result of the code streams corresponding to the plurality of media configuration files based on the coding format supported by each media configuration file and the video coding capability set associated with the media configuration file.
When the result of the classification of the code streams corresponding to the multiple media configuration files provided by the ONVIF device is not locally stored is judged, the access device may obtain, from the ONVIF device, the encoding format supported by each of the multiple media configuration files provided by the ONVIF device and the video encoding capability set associated with the media configuration file.
The access device may obtain, through signaling interaction with the ONVIF device, an encoding format supported by each of a plurality of media profiles provided by the ONVIF device and a video encoding capability set associated with the media profile.
Specifically, the access device may send a media profile acquisition instruction to the ONVIF device; thus, the access device can obtain the identification and related information of each provided media configuration file sent by the ONVIF device; wherein, the related information may include the coding format supported by each media configuration file and the video coding capability set associated with the media configuration file;
and in order to ensure that the coding format supported by each media configuration file acquired by the access device and the video coding capability set associated with the media configuration file are comprehensive and accurate. Thus, for each acquired identity of a media profile, the access device sends a video coding capability set acquisition instruction to the ONVIF device again; wherein the video coding capability set acquisition instruction comprises an identifier of the media configuration file; in this way, for the identifier of each media profile, the access device may obtain the encoding format supported by the media profile and the video encoding capability set associated with the media profile, which are sent by the ONVIF device.
Assuming that the number of media profiles provided by the ONVIF device is 10, in the interaction process of acquiring the encoding format supported by each media profile and the video encoding capability set associated with the media profile, the access device and the ONVIF device need to perform signaling interaction 1+ 10-11 times.
After the encoding format supported by each media configuration file and the video encoding capability set associated with the media configuration file are obtained, the access device may calculate the classification result of the corresponding code stream of the multiple media configuration files provided by the ONVIF device based on the encoding format supported by each media configuration file and the video encoding capability set associated with the media configuration file.
In the following, an example of a way for the access device to calculate the hierarchical result of the codestreams corresponding to the multiple media profiles is described.
Optionally, in a specific implementation manner, as shown in fig. 3, the calculation manner of the hierarchical result of the code stream corresponding to the multiple media configuration files may include the following steps:
s301: ranking the plurality of media profiles based on the encoding format supported by each media profile and the set of video encoding capabilities associated with the media profile;
s302: and for each media configuration file, determining the grading result of the code stream corresponding to the media configuration file based on the sequence position of the media configuration file in the sequence obtained by sequencing.
After the encoding format supported by each media configuration file and the video encoding capability set associated with the media configuration file are obtained, the access device may sort the plurality of media configuration files based on the encoding format supported by each media configuration file and the video encoding capability set associated with the media configuration file.
The access device may perform step S301 in multiple ways, which is not limited in this embodiment of the present invention. For clarity, a specific manner of executing the step S301 by the access device will be described in the following.
And then, for each media configuration file, determining a grading result of the code stream corresponding to the media configuration file based on the sequence position of the media configuration file in the sequence obtained by sequencing.
Similarly, the access device may also perform the step S302 in various ways, and the embodiment of the present invention is not limited in detail.
Preferably, in an embodiment, the manner for the access device to execute the step S302 may be:
when the sequence position of a media configuration file in the sequence obtained by sequencing is the first, determining that the grading result of the code stream corresponding to the media configuration file is the main code stream;
when the sequence position of one media configuration file in the sequence obtained by sequencing is the second, determining that the grading result of the code stream corresponding to the media configuration file is a subcode stream;
when the sequence position of one media configuration file in the sequence obtained by sequencing is the third, the grading result of the code stream corresponding to the media configuration file can be determined as the third code stream;
when the sequence position of one media configuration file in the sequence obtained by sequencing is the fourth, determining that the grading result of the code stream corresponding to the media configuration file is the fourth code stream;
and analogizing in sequence until determining the grading result of the code stream corresponding to the media configuration file with the last sequence position in the sequenced sequence.
Optionally, in another specific implementation manner, as shown in fig. 4, the calculation manner of the hierarchical result of the code stream corresponding to the multiple media configuration files may include the following steps:
s401: determining format priority corresponding to the coding format supported by each media configuration file;
s402: according to the determined format priority, sequencing each media configuration file in a descending or ascending order to obtain a target sequence;
after the coding formats supported by each media configuration file are obtained, the access device may determine a format priority corresponding to the coding format supported by each media configuration file, and then perform descending or ascending sorting on each media configuration file according to the determined format priority to obtain a target sequence.
For example, assume that the encoding formats supported by multiple media profiles provided by the ONVIF device are 4, which are: h265, H264, MPEG4, and MJPEG, and sorted by format priority from top to bottom as: h265 has a higher priority than H264, H264 has a higher priority than MPEG4, and MPEG4 has a higher priority than MJPEG.
Then, when there are 10 media profiles provided by the ONVIF device, and the encoding format supported by media profiles 1, 3, 5, 6, 9, and 10 is H265, the encoding format supported by media profiles 2 and 7 is H264, the encoding format supported by media profile 8 is MPEG4, and the encoding format supported by media profile 4 is MJPEG.
Then according to the determined format priority, sorting the media configuration files 1-10 provided by the ONVIF device in a descending order to obtain a target sequence:
media profile 1, media profile 3, media profile 5, media profile 6, media profile 9, media profile 10, media profile 2, media profile 7, media profile 8, media profile 4.
Since the encoding formats supported by the media profiles 1, 3, 5, 6, 9 and 10 are the same, the 6 media profiles may be arranged in any order on the premise that the 6 media profiles are arranged before the media profiles 2, 7, 8 and 4.
Similarly, because the encoding formats supported by the media configuration file 2 and the media configuration file 7 are the same, on the premise that it is ensured that the media configuration file 2 and the media configuration file 7 are both arranged before the media configuration file 8, the order of the media configuration file 2 and the media configuration file 7 may be that the media configuration file 2 is in front, the media configuration file 7 is behind, or the media configuration file 7 is in front and the media configuration file 2 is behind.
For another example, assume that the encoding formats supported by multiple media profiles provided by the ONVIF device are 4, which are: h265, H264, MPEG4, and MJPEG, and sorted by format priority from top to bottom as: h265 has a higher priority than H264, H264 has a higher priority than MPEG4, and MPEG4 has a higher priority than MJPEG.
Then, when there are 10 media profiles provided by the ONVIF device, and the encoding format supported by media profiles 1, 3, 5, 6, 9, and 10 is H265, the encoding format supported by media profiles 2 and 7 is H264, the encoding format supported by media profile 8 is MPEG4, and the encoding format supported by media profile 4 is MJPEG.
Then according to the determined format priority, the media configuration files 1-10 provided by the ONVIF device are sorted in ascending order, and the obtained target sequence is as follows:
media profile 4, media profile 8, media profile 2, media profile 7, media profile 1, media profile 3, media profile 5, media profile 6, media profile 9, media profile 10.
Since the encoding formats supported by the media profiles 1, 3, 5, 6, 9 and 10 are the same, the 6 media profiles may be arranged in any order on the premise that the 6 media profiles are arranged behind the media profiles 2, 7, 8 and 4.
Similarly, because the encoding formats supported by the media configuration file 2 and the media configuration file 7 are the same, on the premise that it is ensured that the media configuration file 2 and the media configuration file 7 are both arranged behind the media configuration file 8, the order of the media configuration file 2 and the media configuration file 7 may be that the media configuration file 2 is in front of the media configuration file 7, and the media configuration file 7 is behind the media configuration file 2.
S403: for each group of media configuration files with the same format priority in the target sequence, sequencing each media configuration file in the group based on a video coding capability set associated with each media configuration file in the group, and taking the target sequence after the last sequencing as a sequencing result of a plurality of media configuration files;
since there are multiple media profiles that have the same supported encoding format, in order to determine the sequence position of these media profiles that have the same supported encoding format in the resulting ranking result of the multiple media profiles, the following steps are performed. After the target sequence is obtained, for each group of media configuration files with the same format priority in the target sequence, based on the video coding capability set associated with each media configuration file in the group, each media configuration file in the group is sequenced, and the target sequence after the last sequencing is used as the sequencing result of the plurality of media configuration files.
For example, when the target sequence is: media profile 1, media profile 3, media profile 5, media profile 6, media profile 9, media profile 10, media profile 2, media profile 7, media profile 8, media profile 4. The encoding formats supported by the media configuration file 1, the media configuration file 3, the media configuration file 5, the media configuration file 6, the media configuration file 9 and the media configuration file 10 are the same and are all H265; the encoding formats supported by the media configuration files 2 and 7 are the same, and are both H264.
Then, for media profile 1, media profile 3, media profile 5, media profile 6, media profile 9, and media profile 10, the access device may reorder each of the 6 media profiles based on the video coding capability set associated with each of the 6 media profiles;
similarly, for media profile 2 and media profile 7, the access device may reorder media profile 2 and media profile 7 based on the video coding capability sets associated with media profile 2 and media profile 7, respectively.
And then, the target sequence after the last sorting is used as a sorting result of the plurality of media configuration files.
Of course, the present application does not limit the order of the above-mentioned two re-orderings.
Suppose that, for media profile 1, media profile 3, media profile 5, media profile 6, media profile 9, and media profile 10, the result of the ranking after the re-ranking is: media profile 1, media profile 3, media profile 9, media profile 10, media profile 5, media profile 6.
For the media configuration file 2 and the media configuration file 7, the obtained ranking result after ranking again is as follows: media profile 7, media profile 2.
Then the last sorted target sequence is:
media profile 1, media profile 3, media profile 9, media profile 10, media profile 5, media profile 6, media profile 7, media profile 2, media profile 8, media profile 4.
Then, the ordering result of the multiple media profiles provided by the ONVIF device finally determined by the access device is the last ordered target sequence, that is: media profile 1, media profile 3, media profile 9, media profile 10, media profile 5, media profile 6, media profile 7, media profile 2, media profile 8, media profile 4.
For step S403, the access device may sort each media profile in the group in a plurality of ways based on the video coding capability set associated with each media profile in the group, which is not limited in this embodiment of the present invention. For clarity, the manner in which the access device orders each media profile in the group based on the set of video coding capabilities associated with each media profile in the group will be illustrated subsequently.
S404: and for each media configuration file, determining the grading result of the code stream corresponding to the media configuration file based on the sequence position of the media configuration file in the sequencing result.
And then, for each media configuration file, determining the grading result of the code stream corresponding to the media configuration file based on the sequence position of the media configuration file in the obtained sequencing result.
Similarly, the access device may also perform the step S404 in various ways, and the embodiment of the present invention is not limited in particular.
Preferably, in an embodiment, the manner for the access device to execute the step S404 may be:
when the sequence position of one media configuration file in the sequencing result is the first, determining that the grading result of the code stream corresponding to the media configuration file is the main code stream;
when the sequence position of one media configuration file in the sequencing result is the second, determining that the grading result of the code stream corresponding to the media configuration file is a subcode stream;
when the sequence position of one media configuration file in the sequencing result is the third, determining that the grading result of the code stream corresponding to the media configuration file is the third code stream;
when the sequence position of one media configuration file in the sequencing result is the fourth, determining that the grading result of the code stream corresponding to the media configuration file is the fourth code stream;
and repeating the steps until the grading result of the code stream corresponding to the media configuration file with the last sequence position in the sequencing result is determined.
The manner in which the access device ranks each media profile in the group based on the set of video coding capabilities associated with each media profile in the group is illustrated below.
Where the access device ranks each media profile in the group based on the set of video coding capabilities with which each media profile is associated, it is desirable for the access device to be able to apply to only as many media profiles as possible in the set of video coding capabilities with which each media profile is associated, in order to ensure that the ranking is more accurate. And different types of video coding capability sets correspond to different types of coding capabilities, and the different types of coding capabilities are not comparable. Thus, the access device ranks each media profile in the group based on the set of video coding capabilities associated with each media profile that correspond to the same type of coding capability.
And when the number of video coding capability sets corresponding to the same type of coding capability associated with each media profile is different, the access device may also sort each media profile in the group in a different manner.
Optionally, in a specific implementation manner, each media profile in the group is associated with a target video coding capability set, where the target video coding capability set is: each media profile in the set is associated with a set of video coding capabilities corresponding to the same type of coding capability.
For example, there are 4 media profiles in the group, where each media profile is associated with a resolution capability set, and the types of encoding capabilities corresponding to the video encoding capability sets other than the resolution capability set associated with each media profile are different. Each media profile in the group is associated with a target set of video coding capabilities and the target set of video coding capabilities is a resolution capability set.
Thus, in this implementation, as shown in fig. 5, the manner in which the access device ranks each media profile in the group based on the video coding capability set associated with each media profile in the group may include the following steps:
s501: for each media configuration file in the group, sequencing a plurality of coding capacity numerical values in a target video coding capacity set associated with the media configuration file according to a descending order to obtain a capacity linked list of the media configuration file;
s502: taking each media configuration file in the group as a file to be sorted;
s503: aiming at each current file to be sorted, taking the first coding capacity value in the capacity linked list of the file to be sorted as the current evaluation value of the file to be sorted;
since each media profile is associated with a set of video coding capabilities: the media profile supports a set of coding capability values of the same type, and thus each video coding capability set associated with each media profile may include multiple coding capability values.
Therefore, for each media configuration file in the group, the access device may sort the plurality of coding capability values in the target video coding capability set associated with the media configuration file in descending order to obtain the capability linked list of the media configuration file.
When the coding capability type corresponding to the target video coding capability set is resolution, each coding capability value in the target video coding capability set is resolution expressed in the form of m × n. Then, for each resolution included in the target video coding capability set, the size of that resolution can be characterized by the product of m and n. That is, when the plurality of coding capability values in the target video coding capability set are sorted in the descending order, the sorting may be performed according to the size of the product of m and n.
After obtaining the capability linked list of each media configuration file in the group, the access device may determine each media configuration file in the group as a file to be sorted, that is, the current file to be sorted becomes all the media configuration files in the group. For each current file to be sorted, the access device may use the first encoding capacity value in the capacity linked list of the file to be sorted as the current evaluation value of the file to be sorted.
S504: judging the magnitude relation of each current judgment value; if each current evaluation value is different, executing S505, and if each current evaluation value has the same value, executing S506;
after determining the current evaluation value of each file to be sorted, the access device can determine the magnitude relationship of each current evaluation value, and further determine the subsequent steps to be executed according to the determination result, so as to realize the sorting of each media configuration file in the group.
When the determination result indicates that each current evaluation value is different, the access device may perform the subsequent step S505, and when the determination result indicates that each current evaluation value has the same value, the access device may perform the subsequent step S506.
S505: according to the size of each current evaluation value, sorting the current files to be sorted in a descending order to finish sorting;
when the access device performs the judgment result of the step S505 that each current evaluation value is different, the access device may perform descending sorting on the current file to be sorted according to the size of each current evaluation value, and complete the sorting.
For example, assuming that the group includes media profile 1, media profile 3, media profile 5, and media profile 6, the resulting capability linked list for each media profile is:
the capability linked list of media profile 1 is {15,12,9,6,3 };
the capability linked list of media profile 3 is {14,13,12,11,9 };
the capability linked list for media profile 5 is 20,18,16,14, 12;
the linked list of capabilities for media profile 6 is 7,6,5,4, 3.
The current files to be sorted are the media configuration file 1, the media configuration file 3, the media configuration file 5 and the media configuration file 6, and the current evaluation values of the current lists to be sorted are respectively: 15. 14, 20 and 7, according to the size of each current evaluation value, performing descending arrangement on the current file to be ordered, wherein the sequencing result is as follows:
media profile 5, media profile 1, media profile 3, media profile 6.
S506: and according to the size of each current evaluation value, performing descending order on the current file to be ordered, regarding each group of media configuration files with the same current evaluation value in the sequence obtained by the order, regarding each media configuration file in the group as the current file to be ordered, regarding the next coding capacity value of the current evaluation value in the capacity linked list of the file to be ordered as the current evaluation value of the file to be ordered, and returning to execute S504.
When the access device executes the judgment result of the step S505 to determine that the current evaluation values have the same value, the access device may sort the current files to be sorted in a descending order according to the size of the current evaluation value, and regarding each group of media configuration files with the same current evaluation value in the sequence obtained by sorting, regarding each media configuration file in the group as the current file to be sorted, regarding the next encoding capability value of the current evaluation value in the capability linked list of the file to be sorted as the current evaluation value of the file to be sorted, and returning to execute the step S504 to determine the size relationship of each current evaluation value.
For example, assuming that the group includes media profile 1, media profile 3, media profile 9, media profile 10, media profile 5, and media profile 4, the resulting capability linked list for each media profile is:
the capability linked list for media profile 1 is 20,18,16,14, 12;
the capability linked list of media profile 3 is 20,18,17,10, 2;
the capability linked list of the media profile 9 is 10,9,8,7, 6;
the capability linked list for media profile 10 is 20,19,15,11, 5;
the capability linked list for media profile 5 is 22,20,19,16, 11;
the linked list of capabilities for media profile 4 is 10,6,4,2, 1.
The current files to be sorted are the media configuration file 1, the media configuration file 3, the media configuration file 9, the media configuration file 10, the media configuration file 5 and the media configuration file 4, and the current evaluation values of each current list to be sorted are respectively: 20. 20, 10, 20, 22 and 10, according to the size of each current evaluation value, performing descending sorting on the current file to be sorted to obtain a sorting result as follows:
media profile 5, media profile 1, media profile 3, media profile 10, media profile 9, media profile 4.
Since the current evaluation values of the media profiles 1, 3 and 10 are the same and 20, it can only be determined that the media profiles 1, 3 and 10 are all arranged behind the media profile 5 and in front of the media profiles 9 and 4 in the sorting result, and the specific arrangement sequence among the media profiles 1, 3 and 10 cannot be determined.
Similarly, since the current evaluation values of the media profiles 9 and 4 are the same and 10, it can only be determined that the media profiles 9 and 4 are all arranged on the axes of the media profiles 1, 3, 10 and 5 in the sorting result, and the specific arrangement order between the media profiles 9 and 4 cannot be determined.
Two sets of media configuration files with the same current evaluation value exist in the sorting result. The first group is: media profile 1, media profile 3, and media profile 10 for which the current evaluation values are 20, the second group being: the current evaluation values are media profile 9 and media profile 4 of 10.
Therefore, for the first set of media profiles, the access device may determine the current files to be sorted as media profile 1, media profile 3, and media profile 10, and the current evaluation values of the current files to be sorted are: 18. 18 and 19. The magnitude relationship of each current evaluation value is judged again. Obviously, if the judgment result is that each current judgment value has the same value, the current files to be sorted are sorted in a descending order, and the obtained sorting result is:
media profile 10, media profile 1, media profile 3.
Further, it may be determined that the current files to be sorted are media configuration file 1 and media configuration file 3, and the current evaluation values of the current files to be sorted are respectively: 16 and 17. Judging the magnitude relation of each current evaluation value again, obviously, if the judgment result is that each current evaluation value is different, performing descending sorting on the current file to be sorted, and obtaining a sorting result as follows:
media profile 3, media profile 1.
Then for media profile 1, media profile 3, and media profile 10, the ranking results can be obtained as:
media profile 10, media profile 3, media profile 1.
Thus, for the second set of media profiles, the access device may determine the current files to be sorted as media profile 9 and media profile 4, and the current evaluation values of the respective current files to be sorted are 9 and 6, respectively. Judging the magnitude relation of each current evaluation value again, obviously, if the judgment result is that each current evaluation value is different, performing descending sorting on the current file to be sorted, and obtaining a sorting result as follows:
media profile 9, media profile 4.
Based on this, it can be determined that the ranking results of media profile 1, media profile 3, media profile 9, media profile 10, media profile 5, and media profiles included in the group are:
media profile 5, media profile 10, media profile 3, media profile 1, media profile 9, media profile 4.
In the implementation manner shown in fig. 5, the same capability linked list may exist in the plurality of capability linked lists obtained in S501, so that accurate ordering of the plurality of media configuration files having the same capability linked list for each group can be achieved.
Optionally, in a specific implementation manner, when the same capability linked list exists in the obtained multiple capability linked lists, before the target sequence sorted for the last time is used as the sorting result of the multiple media configuration files, the manner of sorting each media configuration file in the group based on the video coding capability set associated with each media configuration file in the group shown in fig. 5 may further include the following steps a1-a 4:
step A1: regarding each group of media configuration files with the same capability linked list, taking each media configuration file in the group as a file to be sorted, and acquiring a target coding capability value currently used by a code stream corresponding to each media configuration file in the group as a current judgment value;
wherein the target encoding capability value is: the value of the coding capability corresponding to the target video coding capability set;
step A2: comparing the magnitude relation of each current evaluation value; if each current evaluation value is different, executing the step A3; if the same value exists in each current evaluation value, executing the step A4;
and aiming at the media configuration files with the same capacity linked list in each group, the access equipment takes each media configuration file in the group as a file to be sorted, and obtains the target coding capacity value currently used by the code stream corresponding to each media configuration file in the group as a current judgment value. Namely, the value of the coding capability corresponding to the target video coding capability set currently used by the code stream corresponding to each media configuration file is determined as the current judgment value of the media configuration file.
For example, if the target video encoding capability set is a resolution capability set, the target encoding capability value is a resolution currently used by a code stream corresponding to the media configuration file.
Thus, for each group of media configuration files with the same capability linked list, after determining the evaluation value of each file to be sorted in the group, the access device can compare the current evaluation value, and further determine the subsequent steps to be executed according to the judgment result, thereby realizing the sorting of each media configuration file in the group.
When the judgment result indicates that each current judgment value is different, the subsequent step A3 is executed, and when the judgment result indicates that each current judgment value has the same value, the subsequent step a4 is executed.
Step A3: according to the size of each current evaluation value, sorting the current files to be sorted in a descending order to finish sorting;
when the access device performs the judgment result of the step a2 that each current judgment value is different, the access device may perform descending order arrangement on the current files to be sorted according to the current size of the judgment value, and complete the sorting.
For example, assume that media profile 1, media profile 2, and media profile 3 are included in a set of media profiles with the same capability chain table, and the target video coding capability set is a resolution capability set.
The access equipment determines that the target coding capacity value currently used by the code stream corresponding to the media configuration file 1 is 1024; the target coding capacity value of the media configuration file 2 corresponding to the code stream currently used is 512; the target coding capacity value of the media configuration file 3 corresponding to the code stream currently used is 256; the access device may determine that the ordering result of the media profile 1, the media profile 2, and the media profile 3 is:
media profile 1, media profile 2, media profile 3.
Step A4: and sequencing the current files to be sequenced in a descending order according to the size of each current judgment value, reserving one media configuration file in the group of media configuration files aiming at each group of media configuration files with the same judgment value in the sequence obtained by sequencing, deleting other media configuration files in the group of media configuration files, and finishing sequencing.
When the access device executes the judgment result of the step a2 to determine that the current evaluation values have the same value, the access device may sort the current files to be sorted in a descending order according to the size of the current evaluation value, and reserve one media configuration file in the group of media configuration files for each group of media configuration files with the same evaluation value in the sequence obtained by sorting, delete the other media configuration files in the group of media configuration files, and complete the sorting.
For example, assuming that the media profiles 4, 5, and 6 are included in the same set of media profiles of the capability chain table, the target video coding capability set is the resolution capability set.
The access equipment determines that the target coding capacity value currently used by the code stream corresponding to the media configuration file 4 is 1024; the target coding capacity value of the media configuration file 5 corresponding to the code stream currently used is 512; the target coding capacity value currently used by the code stream corresponding to the media configuration file 6 is 512;
thus, the access device may determine that the determined evaluation values of the media configuration file 4, the media configuration file 5, and the media configuration file 6 have the same value, and then the access device may perform descending sorting on the media configuration file 4, the media configuration file 5, and the media configuration file 6 according to the size of each current evaluation value, so as to obtain a sorting result:
media profile 4, media profile 5, media profile 6.
Wherein, since the respective evaluation values of the media profile 5 and the media profile 6 are the same, both are 512,
then preferably, in one embodiment, the access device may delete media profile 5 and retain media profile 6 to complete the ranking. Then, in this embodiment, it may be determined that the ranking results of the media profiles 4, 5, and 6 included in the group are:
media profile 4, media profile 6.
Preferably, in another embodiment, the access device may delete the media profile 6, and retain the media profile 5 to complete the ranking. Then, in this embodiment, it may be determined that the ranking results of the media profiles 4, 5, and 6 included in the group are:
media profile 4, media profile 5.
Optionally, in a specific implementation manner, each media profile in the group is associated with a plurality of target video coding capability sets, where a target video coding capability set is: each media profile in the set is associated with a set of video coding capabilities corresponding to the same type of coding capability.
For example, there are 4 media profiles in the group, where each media profile is associated with a resolution capability set and a bitrate capability set, and the types of encoding capabilities corresponding to the video encoding capability sets other than the resolution capability set and the bitrate capability set associated with each media profile are different. Each media profile in the group is associated with two target video coding capability sets, and the target video coding capability sets are a resolution capability set and a bitrate capability set.
Therefore, in this implementation, as shown in fig. 6, the manner in which the access device ranks each media profile in the group based on the video coding capability set associated with each media profile in the group may include the following steps:
s601: for each media configuration file in the group, determining a coding capability value with the maximum value in each target video coding capability set associated with the media configuration file, weighting each maximum value of the media configuration file, summing each value obtained by weighting, and taking the value obtained by summing as a judgment value of the media configuration file;
s602: judging the magnitude relation of each judgment value; if each evaluation value is different, executing S603; if the same value exists for each evaluation value, executing S604;
since different target video coding capability sets correspond to different types of coding capabilities, and the different types of coding capabilities have different effects on the bitstream quality, a weight is set for each target video coding capability set according to the effect of the coding capability type corresponding to each target video coding capability set on the bitstream quality.
Thus, for each media profile in the group, the access device may determine the coding capability value with the largest value in each target video coding capability set associated with the media profile, weight each maximum value of the media profile according to the set weight of each target video coding, and calculate the sum of each weighted value. Further, the sum is determined as a judgment value of the media profile.
Furthermore, after determining the evaluation value of each media profile in the group, the access device may determine the magnitude relationship of each evaluation value, and further determine the subsequent steps to be executed according to the determination result, so as to realize the sorting of each media profile in the group.
The access device may perform the subsequent step S603 when the determination result indicates that each evaluation value is different, and may perform the subsequent step S604 when the determination result indicates that each evaluation value has the same value.
S603: according to the size of each evaluation value, sorting each media configuration file in a descending order to finish sorting;
when the access device performs the judgment result of the step S602 that each judgment value is different, the access device may perform descending sorting on each media configuration file according to the size of each judgment value, and complete the sorting.
For example, assume that the group includes media profile 1, media profile 3, and media profile 6, the target video coding capability set is a resolution capability set, a bitrate capability set, and a frame rate capability set, and the weight of the resolution capability set is 0.6, the weight of the bitrate capability set is 0.1, and the weight of the frame rate capability set is 0.3.
For the media profile 1, the access device may determine that the maximum coding capability value in the resolution capability set associated with the media profile 1 is 512, the maximum coding capability value in the rate capability set is 100, and the maximum coding capability value in the frame rate capability set is 50, and then the access device may determine that the evaluation value of the media profile 1 is: 512 by 0.6+100 by 0.1+50 by 0.3-332.2;
for the media profile 3, the access device may determine that the maximum coding capability value in the resolution capability set associated with the media profile 3 is 1024, the maximum coding capability value in the rate capability set is 10, and the maximum coding capability value in the frame rate capability set is 5, and then the access device may determine that the evaluation value of the media profile 1 is: 1024 × 0.6+10 × 0.1+5 × 0.3 ═ 616.9;
for the media profile 6, the access device may determine that the maximum coding capability value in the resolution capability set associated with the media profile 6 is 512, the maximum coding capability value in the rate capability set is 500, and the maximum coding capability value in the frame rate capability set is 100, and then the access device may determine that the evaluation value of the media profile 1 is: 512 × 0.6+500 × 0.1+100 × 0.3 ═ 387.2.
Thus, the access device may determine that the respective evaluation values of the determined media configuration file 1, the determined media configuration file 3, and the determined media configuration file 6 are different, and the access device may perform descending sorting on the media configuration file 1, the determined media configuration file 3, and the determined media configuration file 6 according to the size of each evaluation value, and obtain a sorting result as follows:
media profile 3, media profile 6, media profile 1.
S604: and sequencing each media configuration file in the group in a descending order according to the size of each judgment value, reserving one media configuration file in the group of media configuration files aiming at the media configuration files with the same judgment value in each group in the sequence obtained by sequencing, deleting other media configuration files in the group of media configuration files, and finishing sequencing.
When the access device executes the judgment result of the step S602 to determine that each judgment value has the same value, the access device may perform descending sorting on each media configuration file in the group according to the size of each judgment value, and reserve one media configuration file in the group of media configuration files for each media configuration file with the same judgment value in the sequence obtained by sorting, delete the other media configuration files in the group of media configuration files, and complete the sorting.
For example, assume that the group includes media profile 2, media profile 4, and media profile 5, the target video coding capability set is a resolution capability set, a bitrate capability set, and a frame rate capability set, and the resolution capability set has a weight of 0.5, the bitrate capability set has a weight of 0.2, and the frame rate capability set has a weight of 0.3.
For the media profile 2, the access device may determine that the maximum coding capability value in the resolution capability set associated with the media profile 2 is 512, the maximum coding capability value in the rate capability set is 100, and the maximum coding capability value in the frame rate capability set is 100, and then the access device may determine that the evaluation value of the media profile 1 is: 512 × 0.5+100 × 0.2+100 × 0.3 ═ 306;
for the media profile 4, the access device may determine that the maximum coding capability value in the resolution capability set associated with the media profile 4 is 1024, the maximum coding capability value in the rate capability set is 50, and the maximum coding capability value in the frame rate capability set is 50, and then the access device may determine that the evaluation value of the media profile 1 is: 1024 × 0.5+50 × 0.2+50 × 0.3 ═ 537;
for the media profile 5, the access device may determine that the maximum coding capability value in the resolution capability set associated with the media profile 5 is 512, the maximum coding capability value in the rate capability set is 175, and the maximum coding capability value in the frame rate capability set is 50, and then the access device may determine that the evaluation value of the media profile 1 is: 512 × 0.5+175 × 0.2+50 × 0.3 ═ 306.
Thus, the access device may determine that the determined evaluation values of the media configuration file 2, the media configuration file 4, and the media configuration file 5 have the same value, and then the access device may perform descending sorting on the media configuration file 2, the media configuration file 4, and the media configuration file 5 according to the size of each evaluation value, and obtain a sorting result as follows:
media profile 4, media profile 2, media profile 5.
Wherein, since the respective evaluation values of the media configuration file 2 and the media configuration file 5 are the same, both are 306,
then preferably, in one embodiment, the access device may delete media profile 2 and retain media profile 5 to complete the ranking. Then, in this embodiment, it may be determined that the ranking results of the media profiles 2, 4, and 5 included in the group are:
media profile 4, media profile 5.
Preferably, in another embodiment, the access device may delete media profile 5, and retain media profile 2, completing the sorting. Then, in this embodiment, it may be determined that the ranking results of the media profiles 2, 4, and 5 included in the group are:
media profile 4, media profile 2.
In addition, optionally, in a specific implementation manner, when the access device ranks each media profile in the group based on a video coding capability set associated with each media profile in the group, and each media profile in the group is associated with multiple target video coding capability sets, the access device may execute the manner shown in fig. 5 for a target video coding capability set with the highest priority according to a preset video coding capability set priority.
Preferably, when the method shown in fig. 5 is performed for the target video coding capability set with the highest priority, and there are media profiles with the same capability linked list, the method shown in fig. 5 may be continuously performed for the target video coding capability set with the next priority. And so on until the sorting of each media profile is completed.
Wherein, when the target video coding capability set with the lowest priority still cannot complete the sorting of each media profile, the access device may perform the above-mentioned steps a1-a 4.
In the above description of the code stream screening method provided in the embodiment of the present invention, the ONVIF device provides a plurality of media configuration files. Correspondingly, when the ONVIF device provides only one media configuration file, the code stream screening method provided by the embodiment of the invention can also be adopted. In this case, the electronic device performs data processing on the encoding format supported by the unique media profile and the video encoding capability set associated with the media profile, and obtains a unique ranking result, which is the ranking result of only one media profile provided by the ONVIF device.
Corresponding to the code stream screening method provided by the embodiment of the invention, the embodiment of the invention provides a code stream screening device.
Fig. 7 is a schematic structural diagram of a code stream screening apparatus according to an embodiment of the present invention, where the apparatus is applied to an access device, and as shown in fig. 7, the apparatus may include the following modules:
a file obtaining module 710, configured to obtain, after accessing the ONVIF device, a plurality of media configuration files provided by the ONVIF device;
a result determining module 720, configured to determine a hierarchical result of the code streams corresponding to the multiple media configuration files; wherein, the grading result is: the video coding capability set associated with each media configuration file is calculated based on the coding format supported by each media configuration file in a plurality of media configuration files and the video coding capability set associated with the media configuration file, wherein the video coding capability set associated with each media configuration file is as follows: a set of encoding capability values of the same type supported by the media profile;
a file determining module 730, configured to determine, from the multiple media profiles, a target media profile matching an application requirement of the access device based on the ranking result;
and a code stream obtaining module 740, configured to obtain a code stream corresponding to the target media configuration file from the ONVIF device.
As can be seen from the above, by applying the scheme provided in the embodiment of the present invention, after obtaining a plurality of media profiles provided by ONVIF, a ranking result of a code stream corresponding to each media profile can be determined, where the ranking result is calculated based on a coding format supported by each media profile and a video coding capability set associated with the media profile. Therefore, as the coding format and the video coding capability set jointly determine the relevant attribute information of the code stream corresponding to the media configuration file, the target media configuration file matched with the application requirement is determined according to the grading result, and the code stream corresponding to the target media configuration file is obtained, so that the code stream obtained by the access equipment from the ONVIF equipment can be ensured to be matched with the application requirement of the access equipment, and the problem that the code stream obtained by the access equipment from the ONVIF equipment is not matched with the application requirement of the access equipment is solved. Furthermore, the situations of video stream blockage, network blockage, storage resource waste and the like caused by mismatching of the acquired code stream and the application requirement can be avoided.
In addition, by applying the scheme provided by the embodiment of the invention, when the access device acquires the code stream in the ONVIF device, when the application requirement changes, the access device can rapidly switch the determined target media configuration file according to the change of the application requirement so as to acquire the code stream matched with the changed application requirement, thereby bringing better application experience.
Optionally, in a specific implementation manner, the result determining module 720 may be configured to calculate a result of ranking of code streams corresponding to the multiple media configuration files; in this specific implementation manner, the result determining module 720 may include:
the format determining submodule is used for determining the format priority corresponding to the coding format supported by each media configuration file;
the first sequencing submodule is used for sequencing each media configuration file in a descending order according to the determined format priority to obtain a target sequence;
and the second sequencing submodule is used for sequencing each group of media configuration files with the same format priority in the target sequence based on the video coding capability set associated with each media configuration file in the group, and taking the target sequence after the last sequencing as the sequencing result of the plurality of media configuration files.
And the result determining submodule is used for determining the grading result of the code stream corresponding to each media configuration file based on the sequence position of the media configuration file in the sequencing result.
In an alternative specific implementation, the target video coding capability set is: the video coding capability set associated with each media profile in the group corresponds to a video coding capability set of the same type of coding capability; based on this, in this particular implementation:
the second sorting submodule may be specifically configured to:
each media configuration file in the group is associated with one target video coding capability set, and then a plurality of coding capability values in the target video coding capability set associated with the media configuration file are sequenced according to the sequence from large to small aiming at each media configuration file in the group to obtain a capability linked list of the media configuration file; taking each media configuration file in the group as a file to be sorted; aiming at each current file to be sorted, taking the first coding capacity value in the capacity linked list of the file to be sorted as the current evaluation value of the file to be sorted; judging the magnitude relation of each current judgment value; if each current evaluation value is different, sorting the current files to be sorted in a descending order according to the size of each current evaluation value to finish sorting; if each current evaluation value has the same value, performing descending order sorting on the current file to be sorted according to the size of each current evaluation value, regarding each group of media configuration files with the same current evaluation value in the sequence obtained by sorting, regarding each media configuration file in the group as the current file to be sorted, regarding the next coding capacity value of the current evaluation value in the capacity linked list of the file to be sorted as the current evaluation value of the file to be sorted, and returning to the step of judging the size relationship of each current evaluation value;
alternatively, the first and second electrodes may be,
the second ordering sub-module may be specifically configured to:
if each media configuration file in the group is associated with a plurality of target video coding capability sets, determining the coding capability value with the maximum value in each target video coding capability set associated with the media configuration file and weighting each maximum value of the media configuration file for each media configuration file in the group, summing each value obtained by weighting, and taking the value obtained by summing as the judgment value of the media configuration file; judging the magnitude relation of each judgment value; if each judgment value is different, sorting each media configuration file in a descending order according to the size of each judgment value to finish sorting; if each judgment value has the same value, each media configuration file in the group is sorted in a descending order according to the size of each judgment value, one media configuration file in the group of media configuration files is reserved aiming at the media configuration file with the same judgment value in each group of the sequence obtained by sorting, other media configuration files in the group of media configuration files are deleted, and sorting is completed.
Optionally, in a specific implementation manner, when the same capability linked lists exist in the obtained multiple capability linked lists, the second sorting unit may be further configured to: before the target sequence after the last sequencing is used as a sequencing result of a plurality of media configuration files, regarding each group of media configuration files with the same capability linked list as a file to be sequenced, and acquiring a target coding capability value currently used by a code stream corresponding to each media configuration file in the group as a current judgment value; wherein the target encoding capability value is: the value of the coding capability corresponding to the target video coding capability set; comparing the magnitude relation of each current evaluation value; if each current evaluation value is different, sorting the current files to be sorted in a descending order according to the size of each current evaluation value to finish sorting; if each current evaluation value has the same value, sorting the current files to be sorted in a descending order according to the size of each current evaluation value, reserving one media configuration file in each group of media configuration files aiming at each group of media configuration files with the same evaluation value in the sequence obtained by sorting, deleting other media configuration files in the group of media configuration files, and finishing sorting.
Corresponding to the code stream screening method provided by the above embodiment of the present invention, an embodiment of the present invention further provides an access device, as shown in fig. 8, including a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement any code stream screening method provided in the foregoing embodiments of the present invention when executing the program stored in the memory 803.
The communication bus mentioned in the above access device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the access equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Corresponding to the code stream screening method provided by the embodiment of the invention, the embodiment of the invention also provides a computer readable storage medium, and the computer program is executed by a processor to realize any code stream screening method provided by the embodiment of the invention.
It is 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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Each embodiment in this specification is described in a related manner, and the same and similar parts in each embodiment may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, the access device embodiment and the computer-readable storage medium embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A code stream screening method is applied to access equipment, and the method comprises the following steps:
after accessing ONVIF equipment, acquiring a plurality of media configuration files provided by the ONVIF equipment;
determining the grading result of the code streams corresponding to the plurality of media configuration files; wherein the ranking result is: based on the encoding format supported by each media configuration file in the plurality of media configuration files and the video encoding capability set associated with the media configuration file, the video encoding capability set associated with each media configuration file is: a set of encoding capability values of the same type supported by the media profile;
determining a target media configuration file matched with the application requirement of the access equipment from the plurality of media configuration files based on the grading result;
and acquiring the code stream corresponding to the target media configuration file from the ONVIF equipment.
2. The method of claim 1, wherein the computing of the scalable result of the codestream corresponding to the plurality of media profiles comprises:
determining format priority corresponding to the coding format supported by each media configuration file;
according to the determined format priority, sequencing each media configuration file in a descending or ascending order to obtain a target sequence;
for each group of media configuration files with the same format priority in the target sequence, sequencing each media configuration file in the group based on a video coding capability set associated with each media configuration file in the group, and taking the target sequence after the last sequencing as a sequencing result of the plurality of media configuration files;
and for each media configuration file, determining the grading result of the code stream corresponding to the media configuration file based on the sequence position of the media configuration file in the sequencing result.
3. The method of claim 2, wherein the target video coding capability set is: the video coding capability set associated with each media profile in the group corresponds to a video coding capability set of the same type of coding capability;
if each media profile in the group is associated with one of the target video coding capability sets, the step of ranking each media profile in the group based on the video coding capability set associated with each media profile in the group includes:
for each media configuration file in the group, sequencing a plurality of coding capacity numerical values in a target video coding capacity set associated with the media configuration file according to a descending order to obtain a capacity linked list of the media configuration file;
taking each media configuration file in the group as a file to be sorted;
aiming at each current file to be sorted, taking the first coding capacity value in the capacity linked list of the file to be sorted as the current evaluation value of the file to be sorted;
judging the magnitude relation of each current judgment value;
if each current evaluation value is different, sorting the current files to be sorted in a descending order according to the size of each current evaluation value to finish sorting;
if each current evaluation value has the same value, performing descending order sorting on the current file to be sorted according to the size of each current evaluation value, regarding each group of media configuration files with the same current evaluation value in the sequence obtained by sorting, regarding each media configuration file in the group as the current file to be sorted, regarding the next coding capacity value of the current evaluation value in the capacity linked list of the file to be sorted as the current evaluation value of the file to be sorted, and returning to the step of judging the size relationship of each current evaluation value; alternatively, the first and second electrodes may be,
if each media profile in the group is associated with multiple target video coding capability sets, the step of ranking each media profile in the group based on the video coding capability set associated with each media profile in the group includes:
for each media configuration file in the group, determining a coding capability value with the maximum value in each target video coding capability set associated with the media configuration file, weighting each maximum value of the media configuration file, summing each value obtained by weighting, and taking the value obtained by summing as a judgment value of the media configuration file;
judging the magnitude relation of each judgment value;
if each judgment value is different, sorting each media configuration file in a descending order according to the size of each judgment value to finish sorting;
if each judgment value has the same value, each media configuration file in the group is sorted in a descending order according to the size of each judgment value, one media configuration file in the group of media configuration files is reserved aiming at the media configuration file with the same judgment value in each group of the sequence obtained by sorting, other media configuration files in the group of media configuration files are deleted, and sorting is completed.
4. The method of claim 3, wherein when the same capability linked list exists in the obtained plurality of capability linked lists, before the step of using the last sorted target sequence as the sorting result of the plurality of media profiles, the method further comprises:
regarding each group of media configuration files with the same capability linked list, taking each media configuration file in the group as a file to be sorted, and acquiring a numerical value corresponding to a target coding capability set currently used by a code stream corresponding to each media configuration file in the group as a current judgment value;
comparing the magnitude relation of each current evaluation value;
if each current evaluation value is different, sorting the current files to be sorted in a descending order according to the size of each current evaluation value to finish sorting;
if each current evaluation value has the same value, sorting the current files to be sorted in a descending order according to the size of each current evaluation value, reserving one media configuration file in each group of media configuration files aiming at each group of media configuration files with the same evaluation value in the sequence obtained by sorting, deleting other media configuration files in the group of media configuration files, and finishing sorting.
5. A code stream screening device is applied to access equipment, and the device comprises:
the file acquisition module is used for acquiring a plurality of media configuration files provided by the ONVIF equipment after the ONVIF equipment is accessed;
the result determining module is used for determining the grading result of the code streams corresponding to the plurality of media configuration files; wherein the ranking result is: based on the encoding format supported by each media configuration file in the plurality of media configuration files and the video encoding capability set associated with the media configuration file, the video encoding capability set associated with each media configuration file is: a set of encoding capability values of the same type supported by the media profile;
a file determining module, configured to determine, from the multiple media profiles, a target media profile matching an application requirement of the access device based on the ranking result;
and the code stream acquisition module is used for acquiring the code stream corresponding to the target media configuration file from the ONVIF equipment.
6. The apparatus of claim 5, wherein the result determining module is configured to calculate a ranking result of the codestreams corresponding to the plurality of media profiles; the result determination module includes:
the format determining submodule is used for determining the format priority corresponding to the coding format supported by each media configuration file;
the first sequencing submodule is used for sequencing each media configuration file in a descending order according to the determined format priority to obtain a target sequence;
a second sorting submodule, configured to, for each group of media configuration files in the target sequence, sort each media configuration file in the group based on a video encoding capability set associated with each media configuration file in the group, and use a last sorted target sequence as a sorting result of the plurality of media configuration files;
and the result determining submodule is used for determining the grading result of the code stream corresponding to each media configuration file based on the sequence position of the media configuration file in the sequencing result.
7. The apparatus of claim 6, wherein the target video coding capability set is: the video coding capability set associated with each media profile in the group corresponds to a video coding capability set of the same type of coding capability;
the second sorting submodule is specifically configured to:
each media configuration file in the group is associated with one target video coding capability set, and then a plurality of coding capability values in the target video coding capability set associated with the media configuration file are sequenced according to the sequence from large to small aiming at each media configuration file in the group to obtain a capability linked list of the media configuration file; taking each media configuration file in the group as a file to be sorted; aiming at each current file to be sorted, taking the first coding capacity value in the capacity linked list of the file to be sorted as the current evaluation value of the file to be sorted; judging the magnitude relation of each current judgment value; if each current evaluation value is different, sorting the current files to be sorted in a descending order according to the size of each current evaluation value to finish sorting; if each current evaluation value has the same value, performing descending order sorting on the current file to be sorted according to the size of each current evaluation value, regarding each group of media configuration files with the same current evaluation value in the sequence obtained by sorting, regarding each media configuration file in the group as the current file to be sorted, regarding the next coding capacity value of the current evaluation value in the capacity linked list of the file to be sorted as the current evaluation value of the file to be sorted, and returning to the step of judging the size relationship of each current evaluation value; alternatively, the first and second electrodes may be,
the second sorting submodule is specifically configured to:
if each media configuration file in the group is associated with a plurality of target video coding capability sets, determining the coding capability value with the maximum value in each target video coding capability set associated with the media configuration file and weighting each maximum value of the media configuration file for each media configuration file in the group, summing each value obtained by weighting, and taking the value obtained by summing as the judgment value of the media configuration file; judging the magnitude relation of each judgment value; if each judgment value is different, sorting each media configuration file in a descending order according to the size of each judgment value to finish sorting; if each judgment value has the same value, each media configuration file in the group is sorted in a descending order according to the size of each judgment value, one media configuration file in the group of media configuration files is reserved aiming at the media configuration file with the same judgment value in each group of the sequence obtained by sorting, other media configuration files in the group of media configuration files are deleted, and sorting is completed.
8. The apparatus of claim 7, wherein when there is a same capability linked list in the obtained plurality of capability linked lists, the second ordering sub-module is further configured to:
before the target sequence after the last sequencing is used as the sequencing result of the plurality of media configuration files, regarding each group of media configuration files with the same capability linked list as a file to be sequenced, and acquiring the target coding capability value currently used by the code stream corresponding to each media configuration file in the group as a current judgment value; wherein the target encoding capability value is: the value of the coding capability corresponding to the target video coding capability set; comparing the magnitude relation of each current evaluation value; if each current evaluation value is different, sorting the current files to be sorted in a descending order according to the size of each current evaluation value to finish sorting; if each current evaluation value has the same value, sorting the current files to be sorted in a descending order according to the size of each current evaluation value, reserving one media configuration file in each group of media configuration files aiming at each group of media configuration files with the same evaluation value in the sequence obtained by sorting, deleting other media configuration files in the group of media configuration files, and finishing sorting.
9. An access device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN201910697071.4A 2019-07-30 2019-07-30 Code stream screening method and device and access equipment Active CN111327924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910697071.4A CN111327924B (en) 2019-07-30 2019-07-30 Code stream screening method and device and access equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910697071.4A CN111327924B (en) 2019-07-30 2019-07-30 Code stream screening method and device and access equipment

Publications (2)

Publication Number Publication Date
CN111327924A true CN111327924A (en) 2020-06-23
CN111327924B CN111327924B (en) 2022-08-05

Family

ID=71172470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910697071.4A Active CN111327924B (en) 2019-07-30 2019-07-30 Code stream screening method and device and access equipment

Country Status (1)

Country Link
CN (1) CN111327924B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364945A (en) * 2011-11-28 2012-02-29 杭州海康威视数字技术股份有限公司 Multi-picture image decoding display method and video monitoring terminal
CN103220577A (en) * 2012-01-18 2013-07-24 腾讯科技(深圳)有限公司 Method, device and system for video displaying
CN103686205A (en) * 2013-12-30 2014-03-26 浙江宇视科技有限公司 Method and device for code stream transfer on basis of open network video interface forum (ONVIF) protocol
CN104702976A (en) * 2015-02-10 2015-06-10 深圳创维数字技术有限公司 Video playing method and equipment
CN106791714A (en) * 2017-02-23 2017-05-31 青岛海信电器股份有限公司 The matching process and equipment of IP Camera and server device
EP3249920A1 (en) * 2016-05-27 2017-11-29 Hanwha Techwin Co., Ltd. Device and method for controlling osd protocol
CN108462899A (en) * 2018-03-19 2018-08-28 青岛海信电器股份有限公司 Stream media code stream adaptive transmission method, equipment and system based on capacity of equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364945A (en) * 2011-11-28 2012-02-29 杭州海康威视数字技术股份有限公司 Multi-picture image decoding display method and video monitoring terminal
CN103220577A (en) * 2012-01-18 2013-07-24 腾讯科技(深圳)有限公司 Method, device and system for video displaying
CN103686205A (en) * 2013-12-30 2014-03-26 浙江宇视科技有限公司 Method and device for code stream transfer on basis of open network video interface forum (ONVIF) protocol
CN104702976A (en) * 2015-02-10 2015-06-10 深圳创维数字技术有限公司 Video playing method and equipment
EP3249920A1 (en) * 2016-05-27 2017-11-29 Hanwha Techwin Co., Ltd. Device and method for controlling osd protocol
CN106791714A (en) * 2017-02-23 2017-05-31 青岛海信电器股份有限公司 The matching process and equipment of IP Camera and server device
CN108462899A (en) * 2018-03-19 2018-08-28 青岛海信电器股份有限公司 Stream media code stream adaptive transmission method, equipment and system based on capacity of equipment

Also Published As

Publication number Publication date
CN111327924B (en) 2022-08-05

Similar Documents

Publication Publication Date Title
EP2479684A1 (en) Method and evaluation server for evaluating a plurality of videos
US9609338B2 (en) Layered video encoding and decoding
CN107155093B (en) Video preview method, device and equipment
US20160098602A1 (en) Method for computing a similarity measure for video segments
CN106897295B (en) Hadoop-based power transmission line monitoring video distributed retrieval method
US20150100582A1 (en) Association of topic labels with digital content
CN101577818A (en) Apparatus and method for information processing and program
KR102472971B1 (en) Method, system, and computer program to optimize video encoding using artificial intelligence model
CN114584801B (en) Video resource caching method based on graph neural network recommendation algorithm
EP3890312A1 (en) Distributed image analysis method and system, and storage medium
CN111327924B (en) Code stream screening method and device and access equipment
TW201625010A (en) Method and apparatus for visualizing information of a digital video stream
WO2024114432A1 (en) Sample adaptive offset method and device in video coding
CN106162109A (en) A kind of remote monitoring method and monitoring device
CN113711619B (en) Multimedia data storage method, device, equipment, storage medium and program product
US20140115632A1 (en) Content management apparatus, content management method, program, and content display method
CN109167673B (en) Novel cloud service screening method integrating abnormal Qos data detection
CN102663715A (en) Super-resolution method and device
CN115129470A (en) Encoding and decoding resource allocation method and device and electronic equipment
CN110944211B (en) Interpolation filtering method, device, medium and electronic device for intra-frame prediction
US10885343B1 (en) Repairing missing frames in recorded video with machine learning
KR101572330B1 (en) Apparatus and method for near duplicate video clip detection
CN110413817B (en) Method and device for clustering pictures
CN115080843A (en) Monitoring scene video recommendation method, system, device and storage medium
CN111885417A (en) VR video playing method, device, equipment and storage medium

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