CN113852836B - Gasket signal output method and device, storage medium and electronic equipment - Google Patents
Gasket signal output method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113852836B CN113852836B CN202111117006.3A CN202111117006A CN113852836B CN 113852836 B CN113852836 B CN 113852836B CN 202111117006 A CN202111117006 A CN 202111117006A CN 113852836 B CN113852836 B CN 113852836B
- Authority
- CN
- China
- Prior art keywords
- gasket
- file
- signal
- server
- output
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000008569 process Effects 0.000 claims description 12
- 238000004891 communication Methods 0.000 claims description 3
- 230000009471 action Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/64—Addressing
- H04N21/6405—Multicasting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/812—Monomedia components thereof involving advertisement data
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
According to the method, the device, the storage medium and the electronic equipment for outputting the gasket signal, the first gasket file group can be obtained through each server in the first server cluster, wherein the first gasket file group comprises a plurality of gasket files with different output formats of the same video file, and the first server cluster at least comprises the first server; the method comprises the steps that a first server obtains a distributed lock of at least one gasket file in a first gasket file group, wherein one gasket file corresponds to one distributed lock; and the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed locks, wherein one gasket file outputs a corresponding gasket signal. According to the invention, a plurality of gasket signals of the same video file are directly output through the gasket file, the corresponding video format of each gasket signal is matched with the output format of the corresponding gasket file, the video file is not required to be recoded through an encoder, and the efficiency is high.
Description
Technical Field
The present invention relates to the field of video playback, and in particular, to a method and apparatus for outputting a gasket signal, a storage medium, and an electronic device.
Background
The shim signal is a piece of video that is played in a loop, such as a promotional piece or advertisement that is inserted during a live broadcast. Since different devices support different resolutions of video to be played, in order to obtain pad signals with different resolutions, an encoder is generally required to re-encode the same video segment and output a plurality of pad signals with different resolutions and different formats.
The above approach requires consuming a significant amount of encoder resources such that limited live encoder resources cannot be used to encode live video.
Disclosure of Invention
In view of the above, the present invention provides a method, apparatus, storage medium, and electronic device for outputting a shim signal that overcome or at least partially solve the above-described problems.
In a first aspect, a method for outputting a gasket signal includes:
each server in a first server cluster obtains a first gasket file group, wherein the first gasket file group comprises gasket files with different output formats of the same video file, and the first server cluster at least comprises a first server;
the first server obtains a distributed lock of at least one gasket file in the first gasket file group, wherein one gasket file corresponds to one distributed lock;
and the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed locks, wherein one gasket file output corresponds to one gasket signal, and the corresponding video format of the gasket signals is matched with the output format of the corresponding gasket file.
With reference to the first aspect, in certain optional embodiments, the output format includes: definition and/or encoding format;
the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed lock, and the method comprises the following steps:
if the output format includes the definition, the first server outputs a corresponding gasket signal through a corresponding gasket file according to the distributed lock, wherein the video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file;
if the output format comprises the coding format, the first server outputs a corresponding gasket signal through a corresponding gasket file according to the distributed lock, wherein a coding mode corresponding to the gasket signal is matched with the coding format of the corresponding gasket file;
and if the output format comprises the definition and the coding format, the first server outputs a corresponding gasket signal through the corresponding gasket file according to the distributed lock, wherein the video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file, and the coding mode corresponding to the gasket signal is matched with the coding format of the corresponding gasket file.
With reference to the first aspect, in some optional embodiments, each of the pad files is provided with a corresponding signal output manner;
the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed lock, and the method comprises the following steps:
and if the signal output mode is a multicast mode, the first server outputs a corresponding multicast signal through the corresponding gasket file according to the distributed lock, wherein the gasket file is matched with the multicast mode.
With reference to the first aspect, in certain optional embodiments, the method further comprises:
when a second server in the first server cluster fails, the second server releases a second distributed lock obtained by the second server;
and the other servers except the second server in the first server cluster acquire the second distributed lock released by the second server through distributed competition, wherein the other servers at least comprise the first server.
With reference to the first aspect, in certain optional embodiments, the method further comprises:
the first server encapsulates the gasket signal and outputs the encapsulated gasket signal to corresponding playing equipment;
or the first server outputs the gasket signal to an external process, so that the external process encapsulates the gasket signal and outputs the gasket signal to the playing device.
In a second aspect, an output device for a gasket signal includes: the device comprises a gasket file obtaining unit, a distributed lock obtaining unit and a gasket signal output unit;
the device comprises a gasket file obtaining unit, a distributed lock obtaining unit and a gasket signal output unit;
the gasket file obtaining unit is configured to execute each server in a first server cluster to obtain a first gasket file group, wherein the first gasket file group comprises a plurality of gasket files with different output formats of the same video file, and the first server cluster at least comprises a first server;
the distributed lock obtaining unit is configured to execute the first server to obtain the distributed lock of at least one gasket file in the first gasket file group, wherein one gasket file corresponds to one distributed lock;
the gasket signal output unit is configured to execute the first server to output corresponding gasket signals through corresponding gasket files according to the distributed lock, wherein one gasket file output corresponds to one gasket signal.
With reference to the second aspect, in certain optional embodiments, the pad signal output unit includes: a first output subunit, a second output subunit, and a third output subunit;
the first output subunit is configured to execute, if the output format includes definition, outputting, by the first server according to the distributed lock, a corresponding gasket signal through a corresponding gasket file, where video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file;
the second output subunit is configured to execute, if the output format includes the encoding format, outputting, by the first server according to the distributed lock, a corresponding gasket signal through a corresponding gasket file, where an encoding manner corresponding to the gasket signal matches the encoding format of the corresponding gasket file;
and the third output subunit is configured to execute the step of outputting, by the first server, a corresponding gasket signal according to the distributed lock through the corresponding gasket file if the output format includes the definition and the coding format, wherein the video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file, and the coding mode corresponding to the gasket signal is matched with the coding format of the corresponding gasket file.
With reference to the second aspect, in certain optional embodiments, the pad signal output unit includes: a fourth output subunit;
and the fourth output subunit is configured to execute the operation that if the signal output mode set by the gasket file is a multicast mode, the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed lock, wherein each gasket file is provided with a corresponding signal output mode, and the video signal output mode corresponding to the gasket signals is matched with the multicast mode.
In a third aspect, a storage medium has stored thereon a program that, when executed by a processor, implements the method of outputting a shim signal according to any one of the above.
In a fourth aspect, an electronic device includes at least one processor, at least one memory coupled to the processor, and a bus; the processor and the memory complete communication with each other through the bus; the processor is configured to invoke the program instructions in the memory to perform the method of outputting the shim signal as described in any one of the above.
By means of the technical scheme, the gasket signal output method, the gasket signal output device, the storage medium and the electronic equipment can obtain the first gasket file group through each server in the first server cluster, wherein the first gasket file group comprises a plurality of gasket files with different output formats of the same video file, and the first server cluster at least comprises a first server; the first server obtains a distributed lock of at least one gasket file in the first gasket file group, wherein one gasket file corresponds to one distributed lock; and the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed lock, wherein one gasket file output corresponds to one gasket signal. Therefore, the invention can directly output a plurality of gasket signals of the same video file through the gasket file, the corresponding video format of each gasket signal is matched with the output format of the corresponding gasket file, and the video file is not required to be recoded through an encoder. The invention can rapidly output a plurality of gasket signals in large quantity without occupying encoder resources, and has higher efficiency.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flow chart of a method for outputting a shim signal provided by the invention;
fig. 2 shows a schematic structural diagram of a gasket signal output device according to the present invention;
fig. 3 shows a schematic structural diagram of an electronic device provided by the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, the present invention provides a method for outputting a gasket signal, including:
s100, each server in a first server cluster obtains a first gasket file group, wherein the first gasket file group comprises gasket files with different output formats of the same video file, and the first server cluster at least comprises a first server;
alternatively, the first server cluster may include a plurality of independent servers, each of which may obtain the first gasket file group. For example, the first shim file set may be pre-generated and set on the first server cluster. Each server of the first server cluster may read the shim file, but based on the distributed lock mechanism, only one server may-may perform subsequent shim signal output, which the present invention is not limited to.
Optionally, when the shim file needs to be updated, the shim file in each server of the first server cluster is updated, that is, each server may preset the first shim file set so as to be convenient for updating, which is not limited in the present invention.
Optionally, if the gasket file is preset in each server, the corresponding gasket file may be set according to actual needs. That is, the shim files of the servers may be the same or different. But may be different for each shim file on a server, to which the invention is not limited.
Alternatively, the information carried by the pad file may represent outputting a specific video as one or more pad signals in different formats, which the present invention is not limited to.
Alternatively, one pad file may be correspondingly provided with an output format, that is, one pad file may output the original video as a video of another format, which is not limited in the present invention.
Such as live one live stream, provides H264 encoded shims of both 720p and 540p, and H265 also provides shims of both 720p and 540 p. Equivalent to this live stream can provide a total of 4-way shim signals.
S200, the first server obtains a distributed lock of at least one gasket file in the first gasket file group, wherein one gasket file corresponds to one distributed lock;
alternatively, the distributed lock described herein is a prior art concept, and reference is specifically made to the description of the distributed lock in the art, which is not described herein too much.
Alternatively, only the server that obtains the distributed lock corresponding to the gasket output signal may perform the subsequent operation of outputting the gasket signal. That is, the gasket output signals and the distributed locks can be in one-to-one correspondence, and only the server with the corresponding distributed lock can output the video file corresponding to the corresponding gasket output signal as the corresponding gasket signal.
Optionally, the shim file may include a video file, which indicates that the video file needs to be transcoded, that is, the subsequent step S300 is performed, which is not limited in this aspect of the invention.
Optionally, only one server can obtain one distributed lock, namely, a video file corresponding to a gasket output signal can be output by only one server, and more than two servers can not be output, so that the conflict caused by repeated output is avoided, and the reliability of the distributed lock is improved.
Alternatively, the distributed lock of the present invention may be obtained in advance by the corresponding server, which is not limited by the present invention.
And S300, the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed locks, wherein one gasket file output corresponds to one gasket signal, and the corresponding video format of the gasket signals is matched with the output format of the corresponding gasket file.
For example, in connection with the embodiment shown in fig. 1, in some alternative embodiments, the output format includes: definition and/or encoding format;
the S300 includes: step 310, step 311 and step 312;
step 310, if the output format includes the definition, the first server outputs a corresponding gasket signal through a corresponding gasket file according to the distributed lock, where the video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file;
alternatively, the shim signal may be output in a variety of ways, such as RTMP plug flow and HLS, without limitation.
Optionally, if the output format set in a specific one of the gasket files includes definition, it is indicated that the video file in the gasket file needs to be output as another video file, and the video definition of the transcoded video file is consistent with the definition, which is not limited in the present invention.
Alternatively, the video information and sharpness described herein may each include: 540P, 720P, and 1080P, to which the present invention is not limited.
Step 311, if the output format includes the encoding format, the first server outputs a corresponding gasket signal through a corresponding gasket file according to the distributed lock, where an encoding mode corresponding to the gasket signal is matched with the encoding format of the corresponding gasket file;
optionally, if the output format set in a specific one of the gasket files includes a coding format, it is indicated that the video file in the gasket file needs to be output as another video file, and the coding mode of the transcoded video file is matched with the coding format of the corresponding gasket file. The video files in the gasket files are output according to the coding formats in the output formats, and the invention is not limited to the video files.
Alternatively, the encoding format may include H264 and H265, which the present invention is not limited to.
Step 312, if the output format includes the definition and the coding format, the first server outputs a corresponding gasket signal through the corresponding gasket file according to the distributed lock, where the video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file, and the coding mode corresponding to the gasket signal is matched with the coding format of the corresponding gasket file.
Alternatively, the steps 310, 311 and 312 are not necessarily performed sequentially, but are characterized in different manners in different situations. I.e., step 310, step 311, and step 312, in a side-by-side relationship, the present invention may include at least one of step 310, step 311, and step 312, as the present invention is not limited in this regard.
In connection with the embodiment shown in fig. 1, in certain alternative embodiments, the method further comprises: each gasket file is provided with a corresponding signal output mode;
the S300 includes:
and if the signal output mode is a multicast mode, the first server outputs a corresponding multicast signal through the corresponding gasket file according to the distributed lock, wherein the gasket file is matched with the multicast mode.
Optionally, the signal output mode may be multiple, usually UDP multicast output, and also output by RTMP push, or HTTP HLS/DASH mode, but the downstream needs to select a corresponding server to pull the live stream, which is not limited in the present invention.
Optionally, in the multicast mode, the video file corresponding to the pad output signal needs to be output as a plurality of pad signals. The specific number of the gasket signals can be determined according to the actual needs and the number of the gasket files, and the specific number of the gasket signals does not exceed the number of the gasket files owned by the corresponding server at maximum, so that the invention is not limited.
Optionally, the pad signal may include: the output address, which characterizes which device or devices play the video file corresponding to the pad signal, is not limited in this regard.
In connection with the embodiment shown in fig. 1, in certain alternative embodiments, the method further comprises: step one and step two;
step one, when a second server in the first server cluster fails, the second server releases a second distributed lock obtained by the second server;
and step two, other servers except the second server in the first server cluster acquire the second distributed lock released by the second server through distributed competition, wherein the other servers at least comprise the first server.
Alternatively, when one server fails, the server cannot execute the method, so that the server can release the obtained distributed lock, so that other servers can obtain the released distributed lock, and the other servers can output the corresponding video files.
Optionally, the server with failure can ensure that the invention can timely output gasket signals of various video files by releasing the distributed lock, thereby improving the reliability of the invention, and the invention is not limited to the method.
In connection with the embodiment shown in fig. 1, in certain alternative embodiments, the method further comprises: the first server encapsulates the gasket signal and outputs the encapsulated gasket signal to corresponding playing equipment;
or the first server outputs the gasket signal to an external process, so that the external process encapsulates the gasket signal and outputs the gasket signal to the playing device.
Alternatively, packaging the pad signal for output is known in the art and is not described in any greater detail herein. The invention can be packaged by the gasket file or by an external process, thereby improving the fault tolerance and reliability of the invention, and the invention is not limited to the above.
Alternatively, the package format used in the packages described herein may be varied, including, for example: MPEG, AVI, nAVI, ASF, MOV, 3GP, WMV, divX, xviD, RM, RMVB, mp4, etc., to which the present invention is not limited.
As shown in fig. 2, the present invention provides a gasket signal output device, including: a gasket file obtaining unit 100, a distributed lock obtaining unit 200, and a gasket signal output unit 300;
the shim file obtaining unit 100 is configured to execute each server in a first server cluster to obtain a first shim file group, where the first shim file group includes a plurality of shim files with different output formats of the same video file, the first server cluster includes at least a first server, and a video format corresponding to the shim signal is matched with an output format of the corresponding shim file; the distributed lock obtaining unit 200 is configured to execute the first server to obtain a distributed lock of at least one shim file in the first shim file group, where one shim file corresponds to one distributed lock;
the gasket signal output unit 300 is configured to execute the first server to output corresponding gasket signals through corresponding gasket files according to the distributed lock, wherein one gasket file output corresponds to one gasket signal.
In connection with the embodiment shown in fig. 2, in some alternative embodiments, the pad signal output unit 300 includes: a first output subunit, a second output subunit, and a third output subunit;
the first output subunit is configured to execute, if the output format includes definition, outputting, by the first server according to the distributed lock, a corresponding gasket signal through a corresponding gasket file, where video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file;
the second output subunit is configured to execute, if the output format includes the encoding format, outputting, by the first server according to the distributed lock, a corresponding gasket signal through a corresponding gasket file, where an encoding manner corresponding to the gasket signal matches the encoding format of the corresponding gasket file;
and the third output subunit is configured to execute the step of outputting, by the first server, a corresponding gasket signal according to the distributed lock through the corresponding gasket file if the output format includes the definition and the coding format, wherein the video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file, and the coding mode corresponding to the gasket signal is matched with the coding format of the corresponding gasket file.
In connection with the embodiment shown in fig. 2, in some alternative embodiments, the pad signal output unit 300 includes: a fourth output subunit;
and the fourth output subunit is configured to execute the step that if the signal output mode is a multicast mode, the first server outputs a corresponding multicast signal through the corresponding gasket file according to the distributed lock, wherein the gasket file is matched with the multicast mode.
In connection with the embodiment shown in fig. 2, in certain alternative embodiments, the apparatus further comprises: releasing the lock unit and obtaining the lock unit;
the release lock unit is configured to execute, when a second server in the first server cluster fails, release a second distributed lock obtained by the second server;
the obtaining lock unit is configured to perform distributed contention for other servers in the first server cluster except the second server, so that the first server obtains the second distributed lock released by the second server, wherein the other servers at least comprise the first server.
In connection with the embodiment shown in fig. 2, in certain alternative embodiments, the method further comprises: a first package output unit or a second package output unit;
the first package output unit is configured to perform package on the pad signal by the first server and output the packaged pad signal to a corresponding playing device;
the second package output unit is configured to execute the first server to output the pad signal to an external process, so that the external process packages the pad signal and outputs the pad signal to the playing device.
The present invention provides a storage medium having stored thereon a program which, when executed by a processor, implements the method of outputting a shim signal as described in any one of the above.
As shown in fig. 3, the present invention provides an electronic device 70, said electronic device 70 comprising at least one processor 701, and at least one memory 702, bus 703 connected to said 701 processor; wherein, the processor 701 and the memory 702 complete communication with each other through the bus 703; the processor 701 is configured to invoke the program instructions in the memory 702 to perform the method for outputting a shim signal according to any of the above.
In this application, relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use 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.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (10)
1. A method of outputting a gasket signal, comprising:
each server in a first server cluster obtains a first gasket file group, wherein the first gasket file group comprises gasket files with different output formats of the same video file, and the first server cluster at least comprises a first server;
the first server obtains a distributed lock of at least one gasket file in the first gasket file group, wherein one gasket file corresponds to one distributed lock;
and the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed locks, wherein one gasket file output corresponds to one gasket signal, and the corresponding video format of the gasket signals is matched with the output format of the corresponding gasket file.
2. The method of claim 1, wherein the output format comprises: definition and/or encoding format;
the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed lock, and the method comprises the following steps:
if the output format includes the definition, the first server outputs a corresponding gasket signal through a corresponding gasket file according to the distributed lock, wherein the video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file;
if the output format comprises the coding format, the first server outputs a corresponding gasket signal through a corresponding gasket file according to the distributed lock, wherein a coding mode corresponding to the gasket signal is matched with the coding format of the corresponding gasket file;
and if the output format comprises the definition and the coding format, the first server outputs a corresponding gasket signal through the corresponding gasket file according to the distributed lock, wherein the video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file, and the coding mode corresponding to the gasket signal is matched with the coding format of the corresponding gasket file.
3. The method according to claim 1, wherein the method further comprises: each gasket file is provided with a corresponding signal output mode;
the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed lock, and the method comprises the following steps:
and if the signal output mode is a multicast mode, the first server outputs a corresponding multicast signal through the corresponding gasket file according to the distributed lock, wherein the gasket file is matched with the multicast mode.
4. The method according to claim 1, wherein the method further comprises:
when a second server in the first server cluster fails, the second server releases a second distributed lock obtained by the second server;
and the other servers except the second server in the first server cluster acquire the second distributed lock released by the second server through distributed competition, wherein the other servers at least comprise the first server.
5. The method according to claim 1, wherein the method further comprises:
the first server encapsulates the gasket signal and outputs the encapsulated gasket signal to corresponding playing equipment;
or the first server outputs the gasket signal to an external process, so that the external process encapsulates the gasket signal and outputs the gasket signal to the playing device.
6. A gasket signal output device, comprising: the device comprises a gasket file obtaining unit, a distributed lock obtaining unit and a gasket signal output unit;
the gasket file obtaining unit is configured to execute each server in a first server cluster to obtain a first gasket file group, wherein the first gasket file group comprises a plurality of gasket files with different output formats of the same video file, the first server cluster at least comprises a first server, and the video format corresponding to the gasket signal is matched with the output format of the corresponding gasket file;
the distributed lock obtaining unit is configured to execute the first server to obtain the distributed lock of at least one gasket file in the first gasket file group, wherein one gasket file corresponds to one distributed lock;
the gasket signal output unit is configured to execute the first server to output corresponding gasket signals through corresponding gasket files according to the distributed lock, wherein one gasket file output corresponds to one gasket signal.
7. The apparatus of claim 6, wherein the pad signal output unit comprises: a first output subunit, a second output subunit, and a third output subunit;
the first output subunit is configured to execute, if the output format includes definition, outputting, by the first server according to the distributed lock, a corresponding gasket signal through a corresponding gasket file, where video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file;
the second output subunit is configured to execute, if the output format includes a coding format, outputting, by the first server according to the distributed lock, a corresponding gasket signal through a corresponding gasket file, where a coding mode corresponding to the gasket signal matches the coding format of the corresponding gasket file;
and the third output subunit is configured to execute the step of outputting, by the first server, a corresponding gasket signal according to the distributed lock through the corresponding gasket file if the output format includes the definition and the coding format, wherein the video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file, and the coding mode corresponding to the gasket signal is matched with the coding format of the corresponding gasket file.
8. The apparatus of claim 6, wherein the pad signal output unit comprises: a fourth output subunit;
and the fourth output subunit is configured to execute the operation that if the signal output mode set by the gasket file is a multicast mode, the first server outputs corresponding gasket signals through corresponding gasket files according to the distributed lock, wherein each gasket file is provided with a corresponding signal output mode, and the video signal output mode corresponding to the gasket signals is matched with the multicast mode.
9. A storage medium having a program stored thereon, wherein the program, when executed by a processor, implements the output method of a shim signal according to any one of claims 1 to 5.
10. An electronic device comprising at least one processor, and at least one memory, bus coupled to the processor; the processor and the memory complete communication with each other through the bus; the processor is configured to invoke program instructions in the memory to perform the method of outputting a shim signal as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111117006.3A CN113852836B (en) | 2021-09-23 | 2021-09-23 | Gasket signal output method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111117006.3A CN113852836B (en) | 2021-09-23 | 2021-09-23 | Gasket signal output method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113852836A CN113852836A (en) | 2021-12-28 |
CN113852836B true CN113852836B (en) | 2024-01-30 |
Family
ID=78979029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111117006.3A Active CN113852836B (en) | 2021-09-23 | 2021-09-23 | Gasket signal output method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113852836B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109729370A (en) * | 2018-12-13 | 2019-05-07 | 上海众源网络有限公司 | A kind of net cast stream generating method, device and electronic equipment |
CN111212294A (en) * | 2018-11-22 | 2020-05-29 | 腾讯科技(深圳)有限公司 | Method and device for updating state of live broadcast room and readable storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008106749A1 (en) * | 2007-03-02 | 2008-09-12 | Vividas Technologies Pty Ltd | Method, system and software product for transferring content to a remote device |
US8391354B2 (en) * | 2007-05-14 | 2013-03-05 | Broadcom Corporation | Method and system for transforming uncompressed video traffic to network-aware ethernet traffic with A/V bridging capabilities and A/V bridging extensions |
CN109391825A (en) * | 2017-08-03 | 2019-02-26 | 腾讯科技(深圳)有限公司 | A kind of video transcoding method and its device, server, readable storage medium storing program for executing |
-
2021
- 2021-09-23 CN CN202111117006.3A patent/CN113852836B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111212294A (en) * | 2018-11-22 | 2020-05-29 | 腾讯科技(深圳)有限公司 | Method and device for updating state of live broadcast room and readable storage medium |
CN109729370A (en) * | 2018-12-13 | 2019-05-07 | 上海众源网络有限公司 | A kind of net cast stream generating method, device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113852836A (en) | 2021-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6903606B2 (en) | Content transmission / reception method and equipment | |
US7644103B2 (en) | MediaDescription data structures for carrying descriptive content metadata and content acquisition data in multimedia systems | |
US20130151493A1 (en) | Media service and method for delivery of stored media | |
US20080065691A1 (en) | Metadata for providing media content | |
JP2006503367A (en) | Method, system, apparatus, signal and computer program for metadata protection in TV-Anytime | |
CN110740391A (en) | method for repairing MP4 damaged files | |
CN113852836B (en) | Gasket signal output method and device, storage medium and electronic equipment | |
US8879581B2 (en) | Data transmitting device and data receiving device | |
JPWO2019188256A1 (en) | Information processing equipment, information processing methods, and programs | |
JP4730680B2 (en) | Content package generation apparatus and content package generation method | |
CN103475901A (en) | Unified-source network video system and network video design method | |
CN1759615A (en) | Method and apparatus for storing an interactive television program | |
JP2004166282A (en) | Method and apparatus for transmitting module information representing application resources in dase data broadcasting system utilizing data carousel protocol | |
JP2010508795A (en) | Compressed multimedia file control editing broadcast method and device | |
US20120269256A1 (en) | Apparatus and method for producing/regenerating contents including mpeg-2 transport streams using screen description | |
JP2005523502A (en) | Testing content in a conditional access system | |
WO2004068853A2 (en) | Storing repetition information for dsmcc carousel | |
US20030021438A1 (en) | Semiconductor device | |
US20060074811A1 (en) | System and method for distributing content | |
US20220217426A1 (en) | Time shift buffer via flash memory | |
KR101656102B1 (en) | Apparatus and method for generating/providing contents file | |
CN113784150A (en) | Video data distribution method and device, electronic equipment and storage medium | |
TWI653884B (en) | Digital signage system | |
CN112069356A (en) | Video archive storage method and device, electronic equipment and readable storage medium | |
KR100660024B1 (en) | Method and apparatus for addressing media resource, and recording medium thereof |
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 |