CN113852836A - Output method and device of gasket signal, storage medium and electronic equipment - Google Patents

Output method and device of gasket signal, storage medium and electronic equipment Download PDF

Info

Publication number
CN113852836A
CN113852836A CN202111117006.3A CN202111117006A CN113852836A CN 113852836 A CN113852836 A CN 113852836A CN 202111117006 A CN202111117006 A CN 202111117006A CN 113852836 A CN113852836 A CN 113852836A
Authority
CN
China
Prior art keywords
shim
file
gasket
signal
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111117006.3A
Other languages
Chinese (zh)
Other versions
CN113852836B (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.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202111117006.3A priority Critical patent/CN113852836B/en
Publication of CN113852836A publication Critical patent/CN113852836A/en
Application granted granted Critical
Publication of CN113852836B publication Critical patent/CN113852836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network 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/63Control 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/64Addressing
    • H04N21/6405Multicasting
    • 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/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data

Abstract

According to the output method and device of the gasket signal, the storage medium and the electronic device, 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 of the same video file in different output formats, and the first server cluster at least comprises the first server; the method comprises the steps that a first server obtains distributed locks of at least one shim file in a first shim file group, wherein one shim file corresponds to one distributed lock; 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. According to the invention, a plurality of gasket signals of the same video file are directly output through the gasket file, the video format corresponding to each gasket signal is matched with the output format of the corresponding gasket file, the video file is not required to be recoded by an encoder, and the efficiency is higher.

Description

Output method and device of gasket signal, storage medium and electronic equipment
Technical Field
The present invention relates to the field of video playing, and in particular, to a method and an apparatus for outputting a gasket signal, a storage medium, and an electronic device.
Background
The shim signal is a cyclically played video, such as a trailer or advertisement, inserted during the live broadcast. Since different devices support different resolutions of the played video, in order to obtain gasket signals with different resolutions, an encoder is generally required to re-encode the same video segment and output a plurality of gasket signals with different resolutions and different formats.
The above approach requires the consumption of a large amount of encoder resources, so 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, an apparatus, a storage medium, and an electronic device for outputting a shim signal that overcome or at least partially solve the above problems.
In a first aspect, a method for outputting a pad signal includes:
each server in a first server cluster obtains a first shim file group, wherein the first shim file group comprises a plurality of shim files of the same video file in different output formats, and the first server cluster at least comprises a first server;
the first server obtains a distributed lock of at least one shim file in the first shim file group, wherein one shim 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 video format corresponding to the gasket signal is matched with the output format of the corresponding gasket file.
With reference to the first aspect, in some optional embodiments, the output format includes: definition and/or coding format;
the first server outputting, according to the distributed lock, a corresponding shim signal through the corresponding shim file, including:
if the output format comprises the definition, 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;
if the output format comprises the encoding format, the first server outputs a corresponding gasket signal through the corresponding gasket file according to the distributed lock, wherein the encoding mode corresponding to the gasket signal is matched with the encoding format of the corresponding gasket file;
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 shim file is provided with a corresponding signal output means;
the first server outputting, according to the distributed lock, a corresponding shim signal through the corresponding shim file, including:
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 enabling other servers except the second server in the first server cluster to obtain 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 packages the gasket signals and outputs the packaged gasket signals to corresponding playing equipment;
or the first server outputs the gasket signal to an external process, so that the external process packages the gasket signal and outputs the gasket signal to the playing device.
In a second aspect, an output device of a pad 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 shim file obtaining unit 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 shim files in a plurality of different output formats of the same video file, and the first server cluster at least includes a first server;
the distributed lock obtaining unit is configured to execute the first server to obtain a distributed lock of at least one shim file in the first shim file group, wherein one shim file corresponds to one distributed lock;
the shim signal output unit is configured to execute the first server to output a corresponding shim signal through a corresponding shim file according to the distributed lock, wherein one shim file output corresponds to one shim signal.
With reference to the second aspect, in some optional embodiments, the gasket 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 a definition, the first server to output a corresponding shim signal through the corresponding shim file according to the distributed lock, where a video definition corresponding to the shim signal is consistent with the definition of the corresponding shim file;
the second output subunit is configured to execute, if the output format includes the encoding format, the first server, according to the distributed lock, to output a corresponding shim signal through the corresponding shim file, where an encoding manner corresponding to the shim signal matches the encoding format of the corresponding shim file;
the third output subunit is configured to execute, if the output format includes the definition and the encoding format, the first server outputs a corresponding shim signal through the corresponding shim file according to the distributed lock, where a video definition corresponding to the shim signal is consistent with the definition of the corresponding shim file, and a coding manner corresponding to the shim signal matches the encoding format of the corresponding shim file.
With reference to the second aspect, in some optional embodiments, the gasket signal output unit includes: a fourth output subunit;
the fourth output subunit is configured to execute, if the signal output mode set by the shim file is a multicast mode, the first server outputs a corresponding shim signal through the corresponding shim file according to the distributed lock, where each shim file is provided with a corresponding signal output mode, and the video signal output mode corresponding to the shim signal matches the multicast mode.
In a third aspect, a storage medium stores thereon a program that realizes the output method of the shim signal according to any one of the above when executed by a processor.
In a fourth aspect, an electronic device includes at least one processor, and at least one memory, a bus, connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instructions in the memory so as to execute any one of the above-mentioned gasket signal output methods.
By means of the technical scheme, the method, the device, the storage medium and the electronic device for outputting the gasket signal provided by the invention can obtain a first gasket file group through each server in a first server cluster, wherein the first gasket file group comprises a plurality of gasket files of the same video file in different output formats, and the first server cluster at least comprises the first server; the first server obtains a distributed lock of at least one shim file in the first shim file group, wherein one shim 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 video format corresponding to each gasket signal is matched with the output format of the corresponding gasket file, and the video file is not required to be recoded by an encoder. The invention can rapidly output a plurality of gasket signals in large quantity without occupying the resources of the encoder, and has higher efficiency.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a method for outputting a shim signal according to the present invention;
FIG. 2 is a schematic diagram illustrating an output device of a pad signal according to the present invention;
fig. 3 shows a schematic structural diagram of an electronic device provided by the present 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 pad signal, including:
s100, each server in a first server cluster obtains a first shim file group, wherein the first shim file group comprises a plurality of shim files of the same video file in different output formats, and the first server cluster at least comprises a first server;
optionally, the first server cluster may include a plurality of independent servers, and each server may obtain the first shim file group. For example, a first shim file group may be generated in advance and set on a first server cluster. Each server of the first server cluster may read the shim file, but only one server may perform subsequent shim signal output based on the distributed lock mechanism, which is not limited in the present invention.
Optionally, when the shim file needs to be updated, the shim file in each server of the first server cluster may be updated, that is, each server may preset the first shim file group for updating, which is not limited in the present invention.
Optionally, if the shim file is preset in each server, the corresponding shim file may be set according to actual needs. That is, the shim files for each server may or may not be the same. However, the shim files on a server may be different, and the invention is not limited in this regard.
Optionally, the information carried in the pad file may represent that a specific video is output as one or more pad signals with different formats, which is not limited in the present invention.
Optionally, one shim file may be correspondingly provided with an output format, that is, one shim file may output an original video as a video in another format, which is not limited in the present invention.
For example, one live broadcast and one live broadcast stream, H264 coded shims of two definitions, 720p and 540p, are provided, and H265 also provides two definitions, 720p and 540 p. Corresponding to this live stream, a total of 4 gasket signals can be provided.
S200, the first server obtains a distributed lock of at least one shim file in the first shim file group, wherein one shim 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 in any greater detail.
Optionally, only the server that obtains the distributed lock corresponding to the shim output signal may perform subsequent operations of outputting the shim signal. That is, the gasket output signals and the distributed locks may correspond to each other one to one, and only the server having the corresponding distributed lock may output the video file corresponding to the 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 executed, which is not limited by the present invention.
Optionally, only one server can obtain one distributed lock, that is, a video file corresponding to one gasket output signal can be output by only one server, and cannot be output by more than two servers, so that collision caused by repeated output is avoided, and the reliability of the invention is improved.
Optionally, the distributed lock according to the present invention may be obtained in advance by a corresponding server, which is not limited by the present invention.
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 video format corresponding to the gasket signal 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 coding 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 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;
alternatively, the pad signal may be output in various manners, such as an RTMP plug flow manner, an HLS manner, and the like, which is not limited by the invention.
Optionally, if the output format set in a specific shim file includes a definition, it indicates that the video file in the shim 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.
Optionally, the video information level and the definition level described herein may each include: 540P, 720P, and 1080P, as the present invention is not limited in this respect.
Step 311, if the output format includes the encoding format, the first server outputs a corresponding shim signal through the corresponding shim file according to the distributed lock, where an encoding manner corresponding to the shim signal matches the encoding format of the corresponding shim file;
optionally, if the output format set in a specific shim file includes a coding format, it indicates that the video file in the shim file needs to be output as another video file, and the coding mode of the transcoded video file matches with the coding format of the corresponding shim file. That is, the video file in the shim file is output according to the encoding format in the output format, which is not limited in the present invention.
Optionally, the encoding format may include H264 and H265, which is not limited in the present invention.
Step 312, if the output format includes the definition and the encoding format, the first server outputs a corresponding gasket signal through the corresponding gasket file according to the distributed lock, where a video definition corresponding to the gasket signal is consistent with the definition of the corresponding gasket file, and a coding mode corresponding to the gasket signal matches with the encoding format of the corresponding gasket file.
Optionally, there is no necessarily sequential execution order among step 310, step 311, and step 312, but the steps are characterized by being executed in different manners under different conditions. I.e., step 310, step 311, and step 312 are in a parallel relationship, the present invention may include at least one of step 310, step 311, and step 312, which is not limited by the present invention.
In some alternative embodiments, in combination with the embodiment shown in fig. 1, 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, there may be multiple signal output modes, usually UDP multicast output, and output through an RTMP push stream or HTTP HLS/DASH mode, but a downstream needs to select a corresponding server to pull a live stream, which is not limited in the present invention.
Optionally, in the multicast mode, the video file corresponding to the gasket output signal needs to be output as a plurality of gasket signals. The specific number of the shim signals may be determined according to actual needs and the number of the shim files, and the specific number of the shim signals does not exceed the number of the shim files owned by the corresponding server at most, which is not limited by the present invention.
Optionally, the pad signal may include: and an output address, which represents which specific device or devices play the video file corresponding to the gasket signal, which is not limited by the present invention.
In some alternative embodiments, in combination with the embodiment shown in fig. 1, 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 make the first server obtain the second distributed lock released by the second server through distributed competition, wherein the other servers at least comprise the first server.
Optionally, when there is a server failure, the server may not execute the present invention, so that the server may release the distributed lock obtained by the server, so that other servers may obtain the released distributed lock, and thus other servers may output the corresponding video file, which is not limited by the present invention.
Optionally, the server with the fault can ensure that the gasket signals of various video files can be output in time by releasing the distributed lock, so that the reliability of the invention is improved, and the invention is not limited to this.
In some alternative embodiments, in combination with the embodiment shown in fig. 1, the method further comprises: the first server packages the gasket signals and outputs the packaged gasket signals to corresponding playing equipment;
or the first server outputs the gasket signal to an external process, so that the external process packages the gasket signal and outputs the gasket signal to the playing device.
Optionally, packaging and outputting the pad signal is prior art and will not be described herein. The invention can be packaged by the gasket file and can also be packaged by an external process, thereby improving the fault tolerance performance and the reliability of the invention, and the invention does not limit the invention.
Optionally, the encapsulation format used for the encapsulation described herein may be various, including, for example: MPEG, AVI, nAII, ASF, MOV, 3GP, WMV, DivX, XVID, RM, RMVB, and mp4, and the like, which are not intended to limit the present invention.
As shown in fig. 2, the present invention provides a pad signal output device, including: a shim file obtaining unit 100, a distributed lock obtaining unit 200, and a shim signal output unit 300;
the shim file obtaining unit 100 is configured to perform obtaining, by each server in a first server cluster, a first shim file group, where the first shim file group includes shim files in a plurality of different output formats of a same video file, the first server cluster includes at least a first server, and a video format corresponding to the shim signal matches an output format of a 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 shim signal output unit 300 is configured to execute the first server to output corresponding shim signals through corresponding shim files according to the distributed lock, where one shim file output corresponds to one shim signal.
In some optional embodiments, in combination with the embodiment shown in fig. 2, 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 a definition, the first server to output a corresponding shim signal through the corresponding shim file according to the distributed lock, where a video definition corresponding to the shim signal is consistent with the definition of the corresponding shim file;
the second output subunit is configured to execute, if the output format includes the encoding format, the first server, according to the distributed lock, to output a corresponding shim signal through the corresponding shim file, where an encoding manner corresponding to the shim signal matches the encoding format of the corresponding shim file;
the third output subunit is configured to execute, if the output format includes the definition and the encoding format, the first server outputs a corresponding shim signal through the corresponding shim file according to the distributed lock, where a video definition corresponding to the shim signal is consistent with the definition of the corresponding shim file, and a coding manner corresponding to the shim signal matches the encoding format of the corresponding shim file.
In some optional embodiments, in combination with the embodiment shown in fig. 2, the pad signal output unit 300 includes: a fourth output subunit;
the fourth output subunit is configured to execute, if the signal output mode is a multicast mode, the first server outputs a corresponding multicast signal through the corresponding shim file according to the distributed lock, where the shim file is matched with the multicast mode.
In some alternative embodiments, in combination with the embodiment shown in fig. 2, the apparatus further comprises: releasing the lock unit and obtaining the lock unit;
the lock releasing unit is configured to release a second distributed lock obtained by a second server in the first server cluster when the second server fails;
the lock obtaining unit is configured to execute distributed contention among 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, where the other servers at least include the first server.
In some optional embodiments, in combination with the embodiment shown in fig. 2, the method further comprises: a first package output unit or a second package output unit;
the first packaging output unit is configured to execute the first server to package the gasket signal and output the packaged gasket signal to corresponding playing equipment;
the second packaging output unit is configured to execute the first server to output the gasket signal to an external process, so that the external process packages the gasket signal and outputs the gasket 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 according to any one of the above.
As shown in fig. 3, the present invention provides an electronic device 70, wherein the electronic device 70 comprises at least one processor 701, at least one memory 702 connected to the processor 701, and a bus 703; the processor 701 and the memory 702 complete communication with each other through the bus 703; the processor 701 is configured to call the program instructions in the memory 702 to execute any one of the above-mentioned pad signal output methods.
In this application, 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
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 above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for outputting a pad signal, comprising:
each server in a first server cluster obtains a first shim file group, wherein the first shim file group comprises a plurality of shim files of the same video file in different output formats, and the first server cluster at least comprises a first server;
the first server obtains a distributed lock of at least one shim file in the first shim file group, wherein one shim 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 video format corresponding to the gasket signal 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 coding format;
the first server outputting, according to the distributed lock, a corresponding shim signal through the corresponding shim file, including:
if the output format comprises the definition, 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;
if the output format comprises the encoding format, the first server outputs a corresponding gasket signal through the corresponding gasket file according to the distributed lock, wherein the encoding mode corresponding to the gasket signal is matched with the encoding format of the corresponding gasket file;
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 of claim 1, further comprising: each gasket file is provided with a corresponding signal output mode;
the first server outputting, according to the distributed lock, a corresponding shim signal through the corresponding shim file, including:
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 of claim 1, further comprising:
when a second server in the first server cluster fails, the second server releases a second distributed lock obtained by the second server;
and enabling other servers except the second server in the first server cluster to obtain 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 of claim 1, further comprising:
the first server packages the gasket signals and outputs the packaged gasket signals to corresponding playing equipment;
or the first server outputs the gasket signal to an external process, so that the external process packages the gasket signal and outputs the gasket signal to the playing device.
6. An apparatus for outputting a pad signal, comprising: the device comprises a gasket file obtaining unit, a distributed lock obtaining unit and a gasket signal output unit;
the shim file obtaining unit 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 shim files in a plurality of different output formats of the same video file, the first server cluster at least includes a first server, and a video format corresponding to the shim signal matches an output format of a corresponding shim file;
the distributed lock obtaining unit is configured to execute the first server to obtain a distributed lock of at least one shim file in the first shim file group, wherein one shim file corresponds to one distributed lock;
the shim signal output unit is configured to execute the first server to output a corresponding shim signal through a corresponding shim file according to the distributed lock, wherein one shim file output corresponds to one shim 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 a definition, the first server to output a corresponding shim signal through the corresponding shim file according to the distributed lock, where a video definition corresponding to the shim signal is consistent with the definition of the corresponding shim file;
the second output subunit is configured to execute, if the output format includes the encoding format, the first server, according to the distributed lock, to output a corresponding shim signal through the corresponding shim file, where an encoding manner corresponding to the shim signal matches the encoding format of the corresponding shim file;
the third output subunit is configured to execute, if the output format includes the definition and the encoding format, the first server outputs a corresponding shim signal through the corresponding shim file according to the distributed lock, where a video definition corresponding to the shim signal is consistent with the definition of the corresponding shim file, and a coding manner corresponding to the shim signal matches the encoding format of the corresponding shim file.
8. The apparatus of claim 6, wherein the pad signal output unit comprises: a fourth output subunit;
the fourth output subunit is configured to execute, if the signal output mode set by the shim file is a multicast mode, the first server outputs a corresponding shim signal through the corresponding shim file according to the distributed lock, where each shim file is provided with a corresponding signal output mode, and the video signal output mode corresponding to the shim signal matches the multicast mode.
9. A storage medium on which a program is stored, the program realizing an output method of a shim signal according to any one of claims 1 to 5 when executed by a processor.
10. An electronic device comprising at least one processor, and at least one memory, bus connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform the output method of the gasket signal according to any one of claims 1 to 5.
CN202111117006.3A 2021-09-23 2021-09-23 Gasket signal output method and device, storage medium and electronic equipment Active CN113852836B (en)

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 true CN113852836A (en) 2021-12-28
CN113852836B 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080284621A1 (en) * 2007-05-14 2008-11-20 Wael William Diab Method and system for keyboard, sound and mouse (ksm) over lan a/v bridging and a/v bridging extensions for graphics thin client applications
US20100228975A1 (en) * 2007-03-02 2010-09-09 Vividas Technologies Pty. Ltd. Method, system and software product for transferring content to a remote device
CN109729370A (en) * 2018-12-13 2019-05-07 上海众源网络有限公司 A kind of net cast stream generating method, device and electronic equipment
US20190320002A1 (en) * 2017-08-03 2019-10-17 Tencent Technology (Shenzhen) Company Limited Video transcoding method and apparatus, a server system, and storage medium
CN111212294A (en) * 2018-11-22 2020-05-29 腾讯科技(深圳)有限公司 Method and device for updating state of live broadcast room and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100228975A1 (en) * 2007-03-02 2010-09-09 Vividas Technologies Pty. Ltd. Method, system and software product for transferring content to a remote device
US20080284621A1 (en) * 2007-05-14 2008-11-20 Wael William Diab Method and system for keyboard, sound and mouse (ksm) over lan a/v bridging and a/v bridging extensions for graphics thin client applications
US20190320002A1 (en) * 2017-08-03 2019-10-17 Tencent Technology (Shenzhen) Company Limited Video transcoding method and apparatus, a server system, and storage medium
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
CN113852836B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN1172529C (en) Apparatus and method for enhanced audio/video services with watermarks and associated data
CN110062262B (en) Transcoding control method and device for video data, electronic equipment and storage medium
CN103210655A (en) Device for generating content data, method for generating content data, computer program, and recording medium
CN106303430A (en) The method playing monitoring in real time without plug-in unit in browser
US20080291209A1 (en) Encoding Multi-media Signals
CN100596194C (en) ITV trick playing method and equipment over digital interface
CN108322808A (en) A kind of video record processing method and processing device, computer installation, storage medium
CN102802022A (en) Coding and decoding system and method
CN110740391A (en) method for repairing MP4 damaged files
CN114040232A (en) Screen projection system, method, electronic device and storage medium
CN113852836A (en) Output method and device of gasket signal, storage medium and electronic equipment
JP2008054298A (en) Content storage system, storage apparatus for use in the system, and method of controlling storage of content
CN111918074A (en) Live video fault early warning method and related equipment
JPWO2019188256A1 (en) Information processing equipment, information processing methods, and programs
CN105611427A (en) Method and device for play control of audio and video
JP4128939B2 (en) Method and apparatus for transmitting module information representing application resources in a DASE data broadcasting system using a data carousel protocol
CN113660442B (en) Video restoration method and device, electronic equipment and readable medium
CN112069356B (en) Video file storage method and device, electronic equipment and readable storage medium
KR101362788B1 (en) Multi-media file structure, method and apparatus for generating and playing a multi-media file thereof
JP2017055203A (en) Information apparatus
CN113965778B (en) Pseudo live broadcast method, device and equipment for online education and readable medium
CN115955576B (en) Video data access method, device, storage node and storage medium
CN113784150A (en) Video data distribution method and device, electronic equipment and storage medium
US20120269256A1 (en) Apparatus and method for producing/regenerating contents including mpeg-2 transport streams using screen description
JP2007526707A (en) Signal processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant