CN112235651B - Configuration parameter selection method, device, equipment and storage medium - Google Patents

Configuration parameter selection method, device, equipment and storage medium Download PDF

Info

Publication number
CN112235651B
CN112235651B CN202011086715.5A CN202011086715A CN112235651B CN 112235651 B CN112235651 B CN 112235651B CN 202011086715 A CN202011086715 A CN 202011086715A CN 112235651 B CN112235651 B CN 112235651B
Authority
CN
China
Prior art keywords
multimedia stream
indication information
parameters
identification
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011086715.5A
Other languages
Chinese (zh)
Other versions
CN112235651A (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.)
Kingsoft Cloud Shenzhen Edge Computing Technology Co ltd
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202011086715.5A priority Critical patent/CN112235651B/en
Publication of CN112235651A publication Critical patent/CN112235651A/en
Application granted granted Critical
Publication of CN112235651B publication Critical patent/CN112235651B/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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8455Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of 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/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/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests

Abstract

The application relates to a method, a device, equipment and a storage medium for selecting configuration parameters, wherein the method comprises the following steps: acquiring identification parameters of the multimedia stream; obtaining a characterization value for uniquely identifying the multimedia stream according to the identification parameter; acquiring indication information of the multimedia stream according to the representation value and a gray scale release threshold, wherein the indication information is used for indicating that an original configuration parameter or a new configuration parameter is selected for the multimedia stream, and the gray scale release threshold is a critical value used for selecting the original configuration parameter or the new configuration parameter in gray scale release; and sending the corresponding relation between the identification parameters and the indication information to a streaming media server. The method and the device are used for solving the problem that the same configuration cannot be guaranteed to be used by the same multimedia stream due to the existing gray scale release, so that the multimedia stream is damaged.

Description

Configuration parameter selection method, device, equipment and storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a method, an apparatus, a device, and a storage medium for selecting a configuration parameter.
Background
In recent years, the streaming media technology is rapidly developed, and the streaming media protocol is widely applied to industries such as video live broadcast, short video, interactive live broadcast and the like. There is a concept of stream in a live scene, and a complete process from the beginning to the end of the live is called a multimedia stream, and the stream is in a form existing in a multimedia server.
In the live streaming, Real Time Message Protocol (RTMP) is mostly used for the push streaming, and the RTMP is divided into several stages, i.e. connection (connect), push (push), update (update), and push _ done.
In a service platform for live streaming, function gray scale publishing may be adopted when a new function is on-line, most of the current function gray scale publishing is implemented by cutting a domain name and a machine, and taking domain name cutting as an example, because a binding relationship does not exist between the domain name and a stream, configurations required to be used by one stream at different stages are different, thereby affecting the normal function of the same stream.
For example, if the configuration a is used in the push phase of a stream, a period of time elapses after the push stream is successfully pushed, and a request for the push _ done phase of the stream arrives after the configuration a is modified, the configuration B is used in the push _ done phase, resulting in different configurations being used in the push phase and the push _ done phase of the stream.
Disclosure of Invention
The application provides a configuration parameter selection method, a configuration parameter selection device, a configuration parameter selection equipment and a storage medium, which are used for solving the problem that the same configuration cannot be guaranteed to be used by the same multimedia stream in the existing gray release, so that the multimedia stream is damaged.
In a first aspect, an embodiment of the present application provides a configuration parameter selection method, including:
acquiring identification parameters of the multimedia stream;
obtaining a characterization value for uniquely identifying the multimedia stream according to the identification parameter;
acquiring indication information of the multimedia stream according to the characterization value and a gray level release threshold, wherein the indication information is used for indicating that an original configuration parameter or a new configuration parameter is selected for the multimedia stream, and the gray level release threshold is a critical value used for selecting the original configuration parameter or the new configuration parameter in gray level release;
and sending the corresponding relation between the identification parameters and the indication information to a streaming media server.
Optionally, the identification parameters of the multimedia stream include: a user unique identification of the multimedia stream, a service name of the multimedia stream, and a name of the multimedia stream.
Optionally, the obtaining, according to the identification parameter, a characterizing value for uniquely representing the multimedia stream includes:
and calculating by adopting a consistent hash algorithm to obtain a hash value of the identification parameter, obtaining a mapping value obtained by mapping the hash value onto a hash ring, and taking the mapping value as a characterization value for uniquely representing the multimedia stream.
Optionally, the gray level release threshold belongs to a value range of the hash ring, and is not equal to a maximum value and a minimum value in the value range;
the obtaining of the indication information of the multimedia stream according to the characterization value and the gray release threshold includes:
judging whether the representation value is smaller than the gray release threshold value or not;
if so, acquiring indication information for selecting the new configuration parameters for the multimedia stream;
otherwise, obtaining the indication information for selecting the original configuration parameters for the multimedia stream.
Optionally, the obtaining the identification parameter of the multimedia stream includes:
acquiring a publishing request or a playing request sent by a streaming media server;
and acquiring the identification parameters from the issuing request or the playing request.
In a second aspect, an embodiment of the present application provides a configuration parameter selection method, including:
acquiring a request message of a multimedia stream;
extracting the identification parameters of the multimedia stream carried in the request message;
acquiring indication information corresponding to the extracted identification parameters, wherein the indication information is used for indicating the multimedia stream to select original configuration parameters or new configuration parameters;
and selecting the configuration parameters indicated by the indication information for the multimedia stream.
Optionally, the obtaining of the indication information corresponding to the extracted identification parameter includes:
judging whether the stored corresponding relation between the identification parameters and the indication information contains the extracted indication information corresponding to the identification parameters;
if yes, acquiring indication information corresponding to the extracted identification parameters from the corresponding relation;
otherwise, generating the indication information corresponding to the identification parameters.
Optionally, the generating the indication information corresponding to the identification parameter includes:
judging whether the request message is a publishing request or a playing request;
if yes, sending the request message of the multimedia stream to a service processing server, and obtaining indication information which is returned by the service processing server according to the request message and corresponds to the extracted identification parameter;
otherwise, the indication information for indicating the selection of the original configuration parameters is used as the indication information corresponding to the identification parameters.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: the method provided by the embodiment of the application obtains the characterization value for uniquely identifying the multimedia stream according to the identification parameter of the multimedia stream, according to the representation value and the gray level release threshold value, obtaining indication information for indicating to select original configuration parameters or new configuration parameters for the multimedia stream, sending the identification parameters and the indication information to a streaming media server, establishing a corresponding relationship between the identification parameters of the multimedia stream and the indication information, the stream media server can obtain the indication information according to the identification parameter carried in the multimedia stream related message obtained at each stage, select the configuration parameter for the multimedia stream according to the indication information, therefore, the same configuration parameters are used in each stage of one multimedia stream in the gray level release process, and the problem that the multimedia stream is damaged due to different configuration parameters used in each stage is solved.
Correspondingly, after the request message of the multimedia stream is obtained, the indication information corresponding to the identification parameter of the multimedia stream carried in the request message is obtained, and the original configuration parameter or the new configuration parameter is selected for the multimedia stream according to the indication information, so that the request messages belonging to different stages of the same multimedia stream can be ensured to correspond to the same indication information, the same configuration parameter is selected for the multimedia stream, the same configuration parameter is ensured to be used in different stages of the same stream in the gray level release process, and the problem that the multimedia stream is damaged due to different configuration parameters used in each stage is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic diagram of a configuration parameter selection system according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for a service processing server to perform multimedia stream configuration parameter selection according to an embodiment of the present application;
FIG. 3 is a diagram of a hash ring according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for a streaming media server to perform multimedia stream configuration parameter selection according to an embodiment of the present application;
fig. 5 is a schematic flowchart illustrating processing of an issue request or a play request in an embodiment of the present application;
fig. 6 is a schematic flowchart illustrating processing of an update request or an issue end request in an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a configuration parameter selection apparatus according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of another configuration parameter selection apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
In the embodiment of the application, in order to solve the problem that the streaming media are damaged due to the fact that the same streaming media use different configuration parameters at different stages in the gray scale issuing process, a configuration parameter selection method for the streaming media is provided to ensure that the same streaming media use the same configuration parameters at different stages in the gray scale issuing process.
The configuration parameter selection method provided in the embodiment of the present application has a main application scenario as shown in fig. 1, and a system related to the application scenario mainly includes: a streaming media server 101 and a service processing server 102.
The streaming media server 101 is mainly used for acquiring a request of each stage of a multimedia stream sent by a client in a process of pushing or pulling the stream, and forwarding the request after processing the request. The service processing server 102 is mainly configured to generate, according to a request of a multimedia stream forwarded by the streaming media server, indication information for indicating selection of an original configuration parameter or a new configuration for the multimedia stream, and return the indication information to the streaming media server, so that the streaming media server selects the configuration parameter for the multimedia stream according to the indication information, and it is ensured that the multimedia stream uses the same configuration parameter in the whole process.
During the process of calculating the indication information of the multimedia stream, the service processing server 102 may call the data cached in the caching service 103 as needed.
Specifically, as shown in fig. 2, the service processing server 102 mainly performs the following processes in the process of selecting the configuration parameters of the multimedia stream:
step 201, obtaining the identification parameter of the multimedia stream.
In one embodiment, the identification parameters of the multimedia stream include: a user unique identification of the multimedia stream, a service name of the multimedia stream, and a name of the multimedia stream. It should be noted that, the identification parameter here refers to a parameter capable of uniquely identifying a multimedia stream, and any parameter or combination of multiple parameters capable of uniquely identifying a multimedia stream may be used as the identification parameter of the multimedia stream, and the selection of the identification parameter is not limited to the above listed cases.
In a specific embodiment, in order to ensure that the configuration parameters used by a multimedia stream at each stage are the same, the identification parameters are obtained from the request initially obtained in the push flow process or the pull flow process, and the processes from step 201 to step 203 are not performed for other requests in the push flow process or the pull flow process. The request initially obtained in the process of pushing or pulling may be a request which is obtained first and carries an identification parameter of the multimedia stream, for example, a publishing request (publish) in the process of pushing or a playing request (play) in the process of pulling.
For other requests, the streaming media server selects configuration parameters according to the stored indication information without recalculating the indication information by the service processing server, and the streaming media server directly selects the original configuration parameters for the multimedia stream under the condition that the indication information is not stored, so as to avoid that two configuration parameters occur in the whole process of the multimedia stream under the condition that the calculated indication information indicates to select new configuration parameters, so that the multimedia stream is damaged.
Specifically, for the stream pushing process, when acquiring a publishing request sent by the streaming media server, step 201 is executed to acquire the identification parameter from the publishing request. For the pull stream process, when acquiring the play request sent by the streaming media server, step 201 is executed to acquire the identification parameter from the play request.
Step 202, according to the identification parameter of the multimedia stream, a characterization value for uniquely identifying the multimedia stream is obtained.
It should be noted that, the representation value of the multimedia stream needs to satisfy the following two points: first, a multimedia stream is uniquely identified; second, the token values of the multimedia stream calculated for the same multimedia stream at different stages are unique. It is understood that the token value calculated according to the identification parameter of the multimedia stream is not limited to the specific manner of calculating the token value, as long as the above two points can be satisfied.
In a specific embodiment, a consistent hashing algorithm is used to calculate a characterizing value of a multimedia stream, and the specific process includes: and calculating a hash value of the identification parameter of the multimedia stream by adopting a consistent hash algorithm, obtaining a mapping value obtained by mapping the hash value onto a hash ring, and taking the mapping value as a characterization value for uniquely representing the multimedia stream.
In a specific embodiment, for a play request in a service processing server, a key (key value) dedicated to the play request is used to record an identification parameter carried in the play request, and a hash value is calculated according to the identification parameter recorded in the key. Similarly, for the issue request in the service processing server, a key dedicated to the issue request is used to record the identification parameter carried in the issue request, and the hash value is calculated according to the identification parameter recorded in the key. The playing request and the issuing request use the special keys respectively, so that the problems that under the condition of sharing the keys, the playing request is suddenly increased, the shared keys are greatly occupied by the playing request, the parameter identifiers of the issuing request in the keys cannot be obtained in time, and the new functions cannot be used for the issuing request in time can be avoided.
Wherein, the key format corresponding to the playing request is expressed as: play, user unique identification, user application type and user pull flow domain name. The key format corresponding to the issue request is expressed as: publish, user unique identification, user application type, and user plug-flow domain name.
Step 203, obtaining the indication information of the multimedia stream according to the representation value and the gray release threshold value of the multimedia stream.
In this specific embodiment, the gray level issue threshold belongs to a value range of the hash ring, and is not equal to the maximum value and the minimum value in the value range of the hash value.
The indication information is used for indicating that the original configuration parameters or the new configuration parameters are selected for the multimedia stream, and the gray level release threshold is a critical value used for selecting the original configuration parameters or the new configuration parameters in the gray level release.
Obtaining the indication information of the multimedia stream by comparing the representation value of the multimedia stream with the gray release threshold, specifically comprising: judging whether the representation value of the multimedia stream is smaller than the gray release threshold value or not; if yes, obtaining indication information for selecting new configuration parameters for the multimedia stream; otherwise, obtaining the indication information for selecting the original configuration parameters for the multimedia stream.
In a specific embodiment, a gray-scale function switch field is added in a task table of a service processing server and is represented as gray _ threshold, the gray-scale function switch field is turned off when the value is 0, and is turned on when the value is greater than 0, and the value when the value is greater than 0 is the upper limit value of the gray scale ratio, that is, the gray scale release threshold.
Assuming that a hash ring as shown in fig. 3 is used, the hash ring is composed of 100 points, that is, an integer with a value range of 1-100 is taken, if the value of the gray _ threshold is 20, it indicates that the indication information for selecting the new configuration parameter is obtained when the characteristic value is less than 20, and the indication information for selecting the original configuration parameter is obtained when the characteristic value is not less than 20; if the value of the gray _ threshold is 50, it indicates that the indication information for selecting the new configuration parameter is obtained when the characteristic value is less than 50, and the indication information for selecting the original configuration parameter is obtained when the characteristic value is not less than 50.
The grayscale release threshold may be stored in a key value as: { "gray _ threshold": 20} and the key value is saved in a cache (dit).
The obtained indication information may be represented as stream _ gray, and is used to indicate that a new configuration parameter is selected for the multimedia stream during the gray scale distribution process when the stream _ gray is 1, and is used to indicate that an original configuration parameter is selected for the multimedia stream during the gray scale distribution process when the stream _ gray is 0. If the value of the gray _ threshold is 20, setting the stream _ gray corresponding to the multimedia stream to be 1 when the representation value of the multimedia stream is less than 20, and setting the stream _ gray corresponding to the multimedia stream to be 0 when the representation value of the multimedia stream is not less than 20.
Step 204, the corresponding relation between the identification parameter of the multimedia stream and the indication information is sent to the streaming media server.
It should be noted that the manner of sending the corresponding relationship between the identification parameter of the multimedia stream and the indication information to the streaming media server is not limited, and a message carrying the corresponding relationship may be sent to the streaming media server separately, and the streaming media server extracts the corresponding relationship from the message and stores the corresponding relationship in the streaming media server, or stores the corresponding relationship in a specified cache.
In the embodiment of the application, according to the identification parameter and the gray level release threshold value of the multimedia stream, the indication information for indicating that the original configuration parameter or the new configuration parameter is selected for the multimedia stream is obtained, the identification parameter and the indication information are sent to the streaming media server, and the corresponding relationship between the identification parameter of the multimedia stream and the indication information is established, so that the streaming media server can obtain the indication information according to the identification parameter carried in the multimedia stream related message obtained at each stage, and select the configuration parameter for the multimedia stream according to the indication information, thereby ensuring that each stage of one multimedia stream in the gray level release process uses the same configuration parameter, and avoiding the problem that the multimedia stream is damaged due to different configuration parameters used at each stage.
Based on the same concept, as shown in fig. 4, the streaming media server 101 mainly performs the following processes in the configuration parameter selection process of the multimedia stream:
step 401, a request message of a multimedia stream is obtained.
Specifically, the acquired request message of the multimedia stream may be any one of push stream and pull stream processes. For example, a distribution request, a play request, an update request (update), a distribution end request (publish _ done), and the like.
Step 402, extracting the identification parameter of the multimedia stream carried in the request message of the multimedia stream.
The request message of the multimedia stream carries a parameter capable of uniquely identifying the multimedia stream, such as a user unique identifier of the multimedia stream, a service name of the multimedia stream, a name of the multimedia stream, and the like. The parameter that can uniquely identify the multimedia stream here can be one parameter or a combination of parameters.
The identification parameter extracted here is identical to the identification parameter used when the instruction information is stored.
And step 403, acquiring indication information corresponding to the extracted identification parameter, wherein the indication information is used for indicating the multimedia stream to select the original configuration parameter or the new configuration parameter.
In a specific embodiment, the obtaining of the indication information corresponding to the extracted identification parameter includes: judging whether the stored corresponding relation between the identification parameters and the indication information contains the indication information corresponding to the extracted identification parameters; if yes, acquiring indication information corresponding to the extracted identification parameters from the corresponding relation; otherwise, generating the indication information corresponding to the identification parameter.
In the case that the correspondence does not include the indication information corresponding to the extracted identification parameter, the indication information corresponding to the identification parameter needs to be generated according to the type of the request message. The specific generation process comprises the following steps: judging whether the request message of the multimedia stream is a publishing request or a playing request; if yes, sending the request message of the multimedia stream to a service processing server, and obtaining indication information which is returned by the service processing server according to the request message of the multimedia stream and corresponds to the extracted identification parameter; otherwise, the indication information for indicating the selection of the original configuration parameter is used as the indication information corresponding to the identification parameter.
This ensures that the configuration is performed according to the configuration parameters indicated by the indication information at the initial stage of the push stream or the pull stream, and the configuration parameters indicated by the indication information are still used at the subsequent stage, thereby ensuring that the same configuration parameters are used for the entire multimedia stream. For the multimedia stream without indication information in the initial stage, namely, the gray scale issue does not exist in the initial stage, the original configuration parameters are directly selected for the multimedia stream, so that the condition that the gray scale issue does not exist in the initial stage of the multimedia stream is ensured, namely when the original configuration parameters are adopted, the original configuration parameters are also adopted subsequently.
In step 404, the configuration parameters indicated by the indication information are selected for the multimedia stream.
In the embodiment of the application, after the request message of the multimedia stream is obtained, the indication information corresponding to the identification parameter of the multimedia stream carried in the request message is obtained, and the original configuration parameter or the new configuration parameter is selected for the multimedia stream according to the indication information, so that the request messages belonging to different stages of the same multimedia stream can be ensured to correspond to the same indication information, the same configuration parameter is selected for the multimedia stream, the same configuration parameter is ensured to be used in different stages of the same stream in the gray level publishing process, and the problem that the multimedia stream is damaged due to different configuration parameters used in each stage is avoided.
In a specific embodiment, as shown in fig. 5, a process of processing a service processing server for issuing a request in a stream pushing process and a service processing server for playing a request in a stream pulling process is as follows:
step 501, the process starts;
step 502, judging whether the flow is a push flow process or a pull flow process, if the flow is a push flow process, executing step 503, and if the flow is a pull flow process, executing step 508;
step 503, judging whether the public _ domain gray-scale switch is in an on state or an off state, if so, executing step 504, and if so, executing step 507;
step 504, judging whether a key corresponding to the issuing request stores a gray _ threshold value, if so, executing step 505, otherwise, executing step 506;
step 505, after obtaining the value of gray _ threshold, execute step 512;
step 506, after creating a gray _ threshold in the key and acquiring a value of the gray _ threshold from the pre-stored configuration information, executing step 512;
507, carrying out step 516 after the gray scale upgrading does not exist and the processing is carried out according to the original flow;
step 508, determining whether the application gray switch is in an on state or an off state, if yes, executing step 509, and if yes, executing step 511;
step 509, judging whether a key corresponding to the play request stores a value of gray _ threshold, if so, executing step 510, otherwise, executing step 506;
step 510, after obtaining the value of gray _ threshold, executing step 512;
step 511, no gray scale upgrading exists, and step 516 is executed after the processing according to the original flow;
step 512, calculating a hash value according to the identification parameter carried in the request, and obtaining a mapping value hash _ val of the hash value on a hash ring;
step 513, determining whether hash _ val is smaller than gray _ threshold, if not, executing step 515, if yes, executing step 514;
step 514, returning indication information, which is used for indicating that the new configuration parameters are adopted, of the request end of the push stream or the pull stream, and is represented as Imds _ stream _ gray being 1, and executing step 516;
step 515, returning to the request end of the push stream or the pull stream, indicating information indicating that the original configuration parameters are adopted, which is denoted as ids _ stream _ gray is 0, and executing step 516;
step 516, the process ends.
In a specific embodiment, as shown in fig. 6, a flow of processing an update request or an issue end request in the push flow process is as follows:
step 601, starting the process;
step 602, the streaming media server determines whether the public _ domain grayscale switch is in an on state or an off state, if so, step 603 is executed, and if so, step 606 is executed;
step 603, the streaming media server determines whether there is an ids _ stream _ gray corresponding to the identifier parameter carried in the request, if not, step 604 is executed, and if so, step 605 is executed;
step 604, after the streaming media server uses the original configuration parameters for the requested multimedia stream, step 608 is executed;
step 605, determining whether the value of the ids _ stream _ gray is equal to 0 or 1, if so, executing step 607, and if so, executing step 606;
step 606, after the streaming media server uses the original configuration parameters for the requested multimedia stream, step 608 is executed;
step 607, after the streaming media server uses the new configuration parameters for the requested multimedia stream, step 608 is executed;
at step 608, the process ends.
Based on the same concept, an embodiment of the present application provides a configuration parameter selection apparatus, and specific implementation of the apparatus may refer to description of a method embodiment portion corresponding to a service processing server, and repeated parts are not described again, as shown in fig. 7, the apparatus mainly includes:
an obtaining module 701, configured to obtain an identifier parameter of a multimedia stream;
a conversion module 702, configured to obtain, according to the identification parameter, a characterization value for uniquely identifying the multimedia stream;
a processing module 703, configured to obtain indication information of the multimedia stream according to the characterization value and a gray scale release threshold, where the indication information is used to indicate that an original configuration parameter or a new configuration parameter is selected for the multimedia stream, and the gray scale release threshold is a critical value used to select the original configuration parameter or the new configuration parameter in gray scale release;
a sending module 704, configured to send the corresponding relationship between the identification parameter and the indication information to a streaming media server.
In this embodiment, the conversion module 702 obtains a characterizing value characterizing a multimedia stream for uniquely identifying the multimedia stream according to an identifying parameter of the multimedia stream, the processing module 703 obtains indicating information indicating that an original configuration parameter or a new configuration parameter is selected for the multimedia stream according to the characterizing value and a gray scale publishing threshold, the sending module 704 sends the identifying parameter and the indicating information to the streaming media server, and establishes a corresponding relationship between the identifying parameter of the multimedia stream and the indicating information, so that the streaming media server can obtain the indicating information according to the identifying parameter carried in a related message of the multimedia stream obtained at each stage, and select the configuration parameter for the multimedia stream according to the indicating information, thereby ensuring that each stage of a piece of multimedia stream in a gray scale publishing process uses the same configuration parameter, and avoiding different configuration parameters used at each stage, leading to the problem of multimedia stream corruption.
Based on the same concept, an embodiment of the present application provides a configuration parameter selection apparatus, and specific implementation of the apparatus may refer to description of a method embodiment portion corresponding to a streaming media server, and repeated details are not repeated, as shown in fig. 8, the apparatus mainly includes:
an obtaining module 801, configured to obtain a request message of a multimedia stream;
an extracting module 802, configured to extract an identifier parameter of the multimedia stream carried in the request message;
a processing module 803, configured to obtain indication information corresponding to the extracted identification parameter, where the indication information is used to indicate that the multimedia stream selects an original configuration parameter or a new configuration parameter;
a selecting module 804, configured to select the configuration parameter indicated by the indication information for the multimedia stream.
In this embodiment, after the obtaining module 801 obtains the request message of the multimedia stream, the processing module 803 obtains the indication information corresponding to the identifier parameter of the multimedia stream carried in the request message, and the selecting module 804 selects the original configuration parameter or the new configuration parameter for the multimedia stream according to the indication information, so as to ensure that the request messages belonging to different stages of the same multimedia stream all correspond to the same indication information, select the same configuration parameter for the multimedia stream, ensure that the same configuration parameter is used in different stages of the same stream in the gray scale publishing process, and avoid the problem that the multimedia stream is damaged due to different configuration parameters used in each stage.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 9, the electronic device mainly includes: a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902 and the memory 903 are in communication with each other through the communication bus 904. The memory 903 stores a program executable by the processor 901, and the processor 901 executes the program stored in the memory 903, so as to implement the following steps: acquiring identification parameters of the multimedia stream; obtaining a characterization value for uniquely identifying the multimedia stream according to the identification parameter; acquiring indication information of the multimedia stream according to the characterization value and a gray level release threshold, wherein the indication information is used for indicating that an original configuration parameter or a new configuration parameter is selected for the multimedia stream, and the gray level release threshold is a critical value used for selecting the original configuration parameter or the new configuration parameter in gray level release; and sending the corresponding relation between the identification parameters and the indication information to a streaming media server.
Or, the following steps are implemented:
acquiring a request message of a multimedia stream; extracting the identification parameters of the multimedia stream carried in the request message; acquiring indication information corresponding to the extracted identification parameters, wherein the indication information is used for indicating the multimedia stream to select original configuration parameters or new configuration parameters; and selecting the configuration parameters indicated by the indication information for the multimedia stream.
The communication bus 904 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 904 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
The communication interface 902 is used for communication between the electronic device and other devices.
The Memory 903 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one storage device located remotely from the processor 901.
The Processor 901 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the configuration parameter selection method described in the above embodiment.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, 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.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for selecting configuration parameters is applied to a service processing server and comprises the following steps:
acquiring identification parameters of the multimedia stream; the identification parameters of the multimedia stream include: the user unique identification of the multimedia stream, the service name of the multimedia stream and the name of the multimedia stream;
obtaining a characterization value for uniquely identifying the multimedia stream according to the identification parameter;
acquiring indication information of the multimedia stream according to the characterization value and a gray level release threshold, wherein the indication information is used for indicating that an original configuration parameter or a new configuration parameter is selected for the multimedia stream, and the gray level release threshold is a critical value used for selecting the original configuration parameter or the new configuration parameter in gray level release;
sending the corresponding relation between the identification parameters and the indication information to a streaming media server;
the original configuration parameters are the configuration parameters for the multimedia stream in the streaming media server before the upgrade, and the new configuration parameters are the configuration parameters for the multimedia stream in the streaming media server after the upgrade.
2. The method according to claim 1, wherein obtaining the characterization value uniquely representing the multimedia stream according to the identification parameter comprises:
and calculating by adopting a consistent hash algorithm to obtain a hash value of the identification parameter, obtaining a mapping value obtained by mapping the hash value onto a hash ring, and taking the mapping value as a representation value for uniquely representing the multimedia stream.
3. The configuration parameter selection method according to claim 2, wherein the gray scale release threshold belongs to a value range of the hash ring and is not equal to a maximum value and a minimum value in the value range;
the obtaining of the indication information of the multimedia stream according to the characterization value and the gray release threshold includes:
judging whether the representation value is smaller than the gray release threshold value or not;
if so, acquiring indication information for selecting the new configuration parameters for the multimedia stream;
otherwise, obtaining the indication information for selecting the original configuration parameters for the multimedia stream.
4. The method according to any of claims 1 to 3, wherein the obtaining the identification parameter of the multimedia stream comprises:
acquiring a publishing request or a playing request sent by a streaming media server;
and acquiring the identification parameters from the issuing request or the playing request.
5. A method for selecting configuration parameters is applied to a streaming media server and comprises the following steps:
acquiring a request message of a multimedia stream;
extracting the identification parameters of the multimedia stream carried in the request message; the identification parameters of the multimedia stream include: the user unique identification of the multimedia stream, the service name of the multimedia stream and the name of the multimedia stream;
acquiring indication information corresponding to the extracted identification parameters, wherein the indication information is used for indicating the multimedia stream to select original configuration parameters or new configuration parameters; the original configuration parameters are the configuration parameters for the multimedia stream in the streaming media server before upgrading, and the new configuration parameters are the configuration parameters for the multimedia stream in the streaming media server after upgrading;
selecting the configuration parameters indicated by the indication information for the multimedia stream;
wherein the obtaining of the indication information corresponding to the extracted identification parameter includes:
judging whether the stored corresponding relation between the identification parameters and the indication information contains the extracted indication information corresponding to the identification parameters; if yes, acquiring indication information corresponding to the extracted identification parameters from the corresponding relation; otherwise, generating indication information corresponding to the identification parameters;
wherein the generating of the indication information corresponding to the identification parameter includes:
judging whether the request message is a publishing request or a playing request; if yes, sending the request message of the multimedia stream to a service processing server, and obtaining indication information which is returned by the service processing server according to the request message and corresponds to the extracted identification parameters;
otherwise, the indication information for indicating the selection of the original configuration parameters is used as the indication information corresponding to the identification parameters.
6. A configuration parameter selection device applied to a service processing server includes:
the acquisition module is used for acquiring the identification parameters of the multimedia stream; the identification parameters of the multimedia stream include: the user unique identification of the multimedia stream, the service name of the multimedia stream and the name of the multimedia stream;
the conversion module is used for obtaining a characterization value for uniquely identifying the multimedia stream according to the identification parameter;
a processing module, configured to obtain indication information of the multimedia stream according to the characterization value and a gray scale release threshold, where the indication information is used to indicate that an original configuration parameter or a new configuration parameter is selected for the multimedia stream, and the gray scale release threshold is a critical value used to select the original configuration parameter or the new configuration parameter in gray scale release;
a sending module, configured to send the correspondence between the identifier parameter and the indication information to a streaming media server;
the original configuration parameters are the configuration parameters for the multimedia stream in the streaming media server before the upgrade, and the new configuration parameters are the configuration parameters for the multimedia stream in the streaming media server after the upgrade.
7. A configuration parameter selection device applied to a streaming media server comprises:
the acquisition module is used for acquiring a request message of the multimedia stream;
an extraction module, configured to extract an identifier parameter of a multimedia stream carried in the request message; the identification parameters of the multimedia stream include: the user unique identification of the multimedia stream, the service name of the multimedia stream and the name of the multimedia stream;
a processing module, configured to obtain indication information corresponding to the extracted identification parameter, where the indication information is used to indicate that the multimedia stream selects an original configuration parameter or a new configuration parameter; the original configuration parameters are the configuration parameters for the multimedia stream in the streaming media server before upgrading, and the new configuration parameters are the configuration parameters for the multimedia stream in the streaming media server after upgrading;
a selection module, configured to select the configuration parameters indicated by the indication information for the multimedia stream;
wherein the obtaining of the indication information corresponding to the extracted identification parameter includes:
judging whether the stored corresponding relation between the identification parameters and the indication information contains the extracted indication information corresponding to the identification parameters; if yes, acquiring indication information corresponding to the extracted identification parameters from the corresponding relation; otherwise, generating indication information corresponding to the identification parameters;
wherein the generating the indication information corresponding to the identification parameter includes:
judging whether the request message is a publishing request or a playing request; if yes, sending the request message of the multimedia stream to a service processing server, and obtaining indication information which is returned by the service processing server according to the request message and corresponds to the extracted identification parameters; and otherwise, using the indication information for indicating the selection of the original configuration parameters as the indication information corresponding to the identification parameters.
8. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute a program stored in the memory, to implement the configuration parameter selection method of any one of claims 1 to 4.
9. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute the program stored in the memory, to implement the configuration parameter selection method of claim 5.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the configuration parameter selection method of any of claims 1 to 4, or the configuration parameter selection method of claim 5.
CN202011086715.5A 2020-10-12 2020-10-12 Configuration parameter selection method, device, equipment and storage medium Active CN112235651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011086715.5A CN112235651B (en) 2020-10-12 2020-10-12 Configuration parameter selection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011086715.5A CN112235651B (en) 2020-10-12 2020-10-12 Configuration parameter selection method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112235651A CN112235651A (en) 2021-01-15
CN112235651B true CN112235651B (en) 2022-08-12

Family

ID=74112234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011086715.5A Active CN112235651B (en) 2020-10-12 2020-10-12 Configuration parameter selection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112235651B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103283209A (en) * 2011-04-18 2013-09-04 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
WO2013127469A1 (en) * 2012-03-02 2013-09-06 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for media transmission in telecommunications networks
CN104378304A (en) * 2013-08-14 2015-02-25 腾讯科技(深圳)有限公司 Gray scale issuing control method, device and system
CN108696381A (en) * 2017-04-12 2018-10-23 腾讯科技(深圳)有限公司 A kind of protocol configuration method and device
CN109121005A (en) * 2018-09-30 2019-01-01 联想(北京)有限公司 The processing method and electronic equipment of multi-medium data
CN110647335A (en) * 2019-07-26 2020-01-03 平安科技(深圳)有限公司 Software gray level release method and device, electronic equipment and storage medium
CN110750278A (en) * 2019-09-24 2020-02-04 苏宁云计算有限公司 Gray scale distribution method and device, routing equipment and storage medium
CN110958470A (en) * 2019-12-09 2020-04-03 北京字节跳动网络技术有限公司 Multimedia content processing method, device, medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103283209A (en) * 2011-04-18 2013-09-04 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
WO2013127469A1 (en) * 2012-03-02 2013-09-06 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for media transmission in telecommunications networks
CN104378304A (en) * 2013-08-14 2015-02-25 腾讯科技(深圳)有限公司 Gray scale issuing control method, device and system
CN108696381A (en) * 2017-04-12 2018-10-23 腾讯科技(深圳)有限公司 A kind of protocol configuration method and device
CN109121005A (en) * 2018-09-30 2019-01-01 联想(北京)有限公司 The processing method and electronic equipment of multi-medium data
CN110647335A (en) * 2019-07-26 2020-01-03 平安科技(深圳)有限公司 Software gray level release method and device, electronic equipment and storage medium
CN110750278A (en) * 2019-09-24 2020-02-04 苏宁云计算有限公司 Gray scale distribution method and device, routing equipment and storage medium
CN110958470A (en) * 2019-12-09 2020-04-03 北京字节跳动网络技术有限公司 Multimedia content processing method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN112235651A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN112087644B (en) Pull stream request processing method, device and system, electronic equipment and storage medium
JP2020523654A5 (en)
CN106649446B (en) Information pushing method and device
CN111784462B (en) Transaction processing method, client, processing terminal and system based on blockchain
CN110213653B (en) Method and device for playing video
CN112837088B (en) Advertisement putting method, advertisement putting device, advertisement putting medium and electronic equipment
WO2021179156A1 (en) Message processing method, device and system, and server
CN110740353B (en) Request identification method and device
US20230291772A1 (en) Filtering video content items
WO2023116219A1 (en) Cdn node distribution method and apparatus, electronic device, medium and program product
CN112331202A (en) Voice screen projection method and device, electronic equipment and computer readable storage medium
CN111901695A (en) Video content interception method, device and equipment and computer storage medium
CN111416844A (en) Service start-stop method, system, device and storage medium
CN112235651B (en) Configuration parameter selection method, device, equipment and storage medium
CN111787054B (en) Cloud game input method, device, equipment and medium
US9223782B2 (en) System for performing instructions that are dependent upon received media-based messages and associated methods and components
CN111049912A (en) Debugging method, test development device, and computer-readable storage medium
CN113473247B (en) Video playing request processing method, device and system and electronic equipment
CN113342595B (en) Gray scale verification method, device, equipment and storage medium
CN114491653A (en) Data content tamper-proof system, method and device
US11700285B2 (en) Filtering video content items
US9559929B2 (en) Network bandwidth measurement
CN107656728B (en) Application program instance creating method and cloud server
CN114979770B (en) Video playing method and device, electronic equipment and storage medium
CN111770051B (en) Cloud game sharing method, device, equipment and 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221214

Address after: No.006, 6th floor, building 4, No.33 yard, middle Xierqi Road, Haidian District, Beijing 100085

Patentee after: BEIJING KINGSOFT CLOUD NETWORK TECHNOLOGY Co.,Ltd.

Patentee after: Kingsoft Cloud (Shenzhen) Edge Computing Technology Co.,Ltd.

Address before: No.006, 6th floor, building 4, No.33 yard, middle Xierqi Road, Haidian District, Beijing 100085

Patentee before: BEIJING KINGSOFT CLOUD NETWORK TECHNOLOGY Co.,Ltd.