CN114827640B - Secure real-time encoding and transcoding method and apparatus, device and storage medium - Google Patents
Secure real-time encoding and transcoding method and apparatus, device and storage medium Download PDFInfo
- Publication number
- CN114827640B CN114827640B CN202110120994.0A CN202110120994A CN114827640B CN 114827640 B CN114827640 B CN 114827640B CN 202110120994 A CN202110120994 A CN 202110120994A CN 114827640 B CN114827640 B CN 114827640B
- Authority
- CN
- China
- Prior art keywords
- signal
- gasket
- data
- frame buffer
- uncompressed
- 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 35
- 230000002159 abnormal effect Effects 0.000 claims abstract description 30
- 230000005856 abnormality Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 4
- 230000003068 static effect Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 abstract description 6
- 238000001514 detection method Methods 0.000 abstract description 5
- 238000007689 inspection Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000002411 adverse Effects 0.000 description 1
- 230000002547 anomalous effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000007704 transition 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
- 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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23106—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
-
- 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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/233—Processing of audio elementary streams
-
- 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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/233—Processing of audio elementary streams
- H04N21/2335—Processing of audio elementary streams involving reformatting operations of audio signals, e.g. by converting from one coding standard to another
-
- 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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
-
- 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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/234309—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The application discloses a safe real-time encoding and transcoding method, which comprises the steps of obtaining current data to be output from a program frame buffer, judging whether the data is abnormal or not, reading corresponding gasket signals from the gasket frame buffer when an abnormal state of the data is detected, and encoding and outputting the gasket signals as output data. Therefore, the functions of real-time video and audio coding, safety detection and 5-gasket switching can be integrated into one device, the structure of the existing system is greatly simplified, the reliability is improved, and the cost is reduced.
Description
Technical Field
The disclosure relates to the technical field of video coding, and in particular relates to a method, a device, equipment and a storage medium for safe real-time coding and transcoding.
Background
Secure real-time transcoding techniques are very widely used in the video field. Almost all video live broadcast, up to news live broadcast and large event live broadcast, and down to personal network video live broadcast are independent of the support of the safe real-time coding and transcoding technology. And (3) real-time coding: the uncompressed video and audio signals are input through interfaces SDI, HDMI, IP, compressed and encoded, and then the real-time compressed video and audio signals are output through interfaces ASI, IP, etc. Real-time transcoding: the compressed video and audio signals are input through interfaces such as ASI, IP and the like, decoded into uncompressed signals, subjected to necessary signal processing, compressed and encoded, and output through interfaces such as ASI, IP and the like.
With the increasing popularity of video applications, security supervision and security broadcasting are more and more important, in the traditional technical scheme, a security real-time encoding device (system) is specially responsible for video and audio compression processing, and security related work is then responsible for the independent device or system. The general method is that after encoding and transcoding, a real-time program stream is received by an independent device, decoded into an uncompressed signal, security checked by the device or manually, and if a problem is found, the final output stream is switched to a shim signal. The safe real-time coding and the safe detection are completed by independent equipment separately, and after the safe problem is detected, special equipment is needed to switch gasket signals, so that the whole system has a complex structure, and the cost is increased.
Disclosure of Invention
In view of this, the present disclosure proposes a secure real-time encoding and transcoding method, comprising:
acquiring current data to be output from a program frame buffer;
judging whether the data is abnormal or not;
when the abnormal state of the data is detected, corresponding gasket signals are read from gasket frame buffer, and the gasket signals are used as output data to be encoded and output.
In one possible implementation, the method further includes:
receiving an input signal in real time, and decoding the compressed signal to obtain an uncompressed signal if the input signal is the compressed signal;
the uncompressed signal is stored into the program frame buffer.
In one possible implementation, determining whether the data has an exception includes:
judging whether each frame of the data has technical safety problems or not;
wherein the technical safety issue includes at least one of an audio data anomaly and a video data anomaly.
In one possible implementation, the audio data anomalies include at least one of volume anomalies, frequency anomalies, noise anomalies, and channel anomalies;
the video data anomalies include at least one of black fields, color bars, static frames, and picture mosaics.
In one possible implementation, when detecting that the data has an abnormal state, the step of taking the pad signal as the output signal includes:
outputting the video frames in the gasket signal if the video frames in the data have the abnormal state;
and outputting the audio frame in the gasket signal if the abnormal state exists in the audio frame in the data.
In one possible implementation, the method further includes:
and when the data is interrupted, taking the gasket signal as an output signal.
In one possible implementation, the method further includes:
when the data is detected to be in a normal state, the data is encoded to obtain video data;
and outputting the video data.
According to an aspect of the present disclosure, there is provided a secure real-time encoding and transcoding device, which is characterized by comprising a data acquisition module, a video anomaly determination module and a video encoding module;
the data acquisition module is configured to acquire the data to be output currently from the program frame buffer;
the video abnormality judging module is configured to judge whether the data is abnormal or not;
the video coding module is configured to read corresponding pad signals from pad frame buffer when abnormal states of the data are detected, and code and output the pad signals as output data.
According to an aspect of the present disclosure, there is provided a secure real-time encoding and transcoding apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any of the preceding claims when executing the executable instructions.
According to an aspect of the present disclosure there is provided a non-transitory computer readable storage medium having stored thereon computer program instructions, characterized in that the computer program instructions, when executed by a processor, implement the method of any of the preceding.
And when detecting that the data has an abnormal state, reading a corresponding gasket signal from the gasket frame buffer, and taking the gasket signal as output data to carry out coding output. Therefore, the functions of real-time video and audio coding, safety detection and gasket switching can be integrated into one device, the structure of the existing system is greatly simplified, the reliability is improved, and the cost is reduced.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features and aspects of the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 illustrates a flow chart of a secure real-time encoding transcoding method of an embodiment of the present disclosure;
FIG. 2 illustrates another flow chart of a secure real-time encoding transcoding method of an embodiment of the present disclosure;
FIG. 3 illustrates a block diagram of a secure real-time encoding transcoding device according to an embodiment of the present disclosure;
fig. 4 shows a block diagram of a secure real-time encoding transcoding device of an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
In addition, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
Fig. 1 illustrates a flowchart of a secure real-time encoding transcoding method according to an embodiment of the present disclosure. As shown in fig. 1, the secure real-time encoding method includes:
step S100, obtaining the data to be output currently from the program frame buffer, step S200, judging whether the data is abnormal, step S300, reading the corresponding gasket signal from the gasket frame buffer when detecting that the data is abnormal, and taking the gasket signal as output data to carry out coding output.
And when detecting that the data has an abnormal state, reading a corresponding gasket signal from the gasket frame buffer, and taking the gasket signal as output data to carry out coding output. Therefore, the functions of real-time video and audio coding, safety detection and gasket switching can be integrated into one device, the structure of the existing system is greatly simplified, the reliability is improved, and the cost is reduced.
Specifically, referring to fig. 1, step S100 is performed to obtain the data to be output currently from the program frame buffer.
In one possible implementation, first acquiring the input signal and the pad signal includes: if the input signal is a compressed signal, the compressed signal is decoded to obtain an uncompressed signal, which is stored in a program frame buffer. For example, when the real-time video is used as an input signal, the input signal and the pad signal are input to the encoding and converting device at the same time, the input signal and the pad signal are obtained, and for the input signal, if the input signal is a compressed signal, referring to fig. 2, step S110 is performed, the input signal is decoded in real time into an uncompressed signal, and then the uncompressed signal is stored in a program frame buffer, and if the input signal is an uncompressed signal, the input signal is directly stored in the program frame buffer, and for the pad signal, step S120 is performed, the pad signal is decoded in real time into an uncompressed signal, and is stored in the pad frame buffer.
The pad signal may be input as a pad file or a real-time pad stream. In one possible implementation, the shim signal is a real-time shim stream, and more than one way of shim signal input may be provided to ensure reliability, illustratively two ways of real-time shim stream input, two ways of shim streams are decoded into uncompressed signals, and the decoded uncompressed signals are stored in the shim frame buffer.
In another possible implementation, the shim signal is a shim file, the shim signal is decoded into an uncompressed signal, and the decoded uncompressed signal is stored in a shim frame buffer.
Further, in another possible implementation, the shim signals are two types, including a real-time shim stream and a shim file, respectively, and support the shim stream and the shim file. That is, the unicast stream and the shim file are decoded simultaneously into an uncompressed file, and the decoded uncompressed signal is stored in the shim frame buffer.
Further, referring to fig. 1, step S200 is performed to determine whether there is an abnormality in the data.
In one possible implementation, determining whether there is an anomaly in the data includes: judging whether each frame of the data has technical safety problems, wherein the technical safety problems comprise audio data abnormality and video data abnormality. The audio data anomaly comprises at least one of volume anomaly, frequency anomaly, noise anomaly and channel anomaly, and the video data anomaly comprises at least one of black field, color bar, static frame and picture mosaic. For example, the real-time video is used as an input signal, the input signal and the pad signal are input into the encoding and converting device at the same time, the input signal and the pad signal are obtained, for the input signal, if the input signal is a compressed signal, the input signal is decoded in real time to be an uncompressed signal, then the uncompressed signal is stored into a program frame buffer, if the input signal is an uncompressed signal, the input signal is directly stored into the program frame buffer, for the pad signal, the pad signal is decoded in real time to be an uncompressed signal, and is stored into the pad frame buffer, wherein the pad signal is input into two real-time pad streams, the two real-time pad streams are decoded to be the uncompressed signal, the decoded uncompressed signal is stored into the pad frame buffer, then, referring to fig. 2, step S200 is executed, to check the potential technical safety problem in the uncompressed signal in the program frame buffer, ensure that the broadcast signal remains continuous and stable, each technical index meets the specification requirement, specifically, the following technical abnormal state can be automatically judged by the algorithm for the audio data: volume abnormality high, volume abnormality low, volume abnormality fixed, frequency abnormality fixed, noise abnormality state, stereo reversal, etc.; for video data, the following technical abnormal states can be automatically judged by an algorithm: black fields, color bars, static frames, picture mosaics, etc. Illustratively, after inspection, the audio frames in the input signal have a problem of stereo reversal, i.e. the left channel and the right channel are opposite, and a problem of abnormally low volume, i.e. the volume abnormality is less than a preset threshold.
In another possible implementation manner, the real-time video is used as an input signal, the input signal and the pad signal are input into the encoding and converting device at the same time, the input signal and the pad signal are obtained, if the input signal is a compressed signal, the input signal is decoded into an uncompressed signal in real time, then the uncompressed signal is stored into a program frame buffer, if the input signal is the uncompressed signal, the input signal is directly stored into the program frame buffer, the pad signal is decoded into the uncompressed signal in real time, and is stored into the pad frame buffer, wherein the pad signal is input into two paths of real-time pad streams, the two paths of pad streams are decoded into the uncompressed signal, the decoded uncompressed signal is stored into the pad frame buffer, and then whether adverse contents such as reaction, violence, pornography and the like are contained in the program content in the program frame buffer is automatically identified through an AI algorithm.
Similarly, manual inspection can be added in the process of inspecting technical safety problems, and when the manual inspection is performed, the manual inspection delay is relatively large, and the program frame buffer can be increased according to the requirement, so that enough time is available for switching to the gasket frame buffer through manual operation under the condition that the manual inspection finds problems.
It should be noted that, when checking whether the input signal has a technical safety problem, conventional technical means in the art may be used, which will not be described in detail in this disclosure.
Further, referring to fig. 1, step S300 is performed, when an abnormal state of the data is detected, a corresponding pad signal is read from the pad frame buffer, and the pad signal is encoded and output as output data.
In one possible implementation, when detecting that the data has an abnormal state, reading a corresponding pad signal from the pad frame buffer, and encoding and outputting the pad signal as output data includes: and if the video frame in the input signal has an abnormal state, outputting the video frame in the pad signal, and if the audio frame in the input signal has an abnormal state, replacing the audio frame with the audio frame in the pad signal. For example, the real-time video is used as an input signal, the input signal and the pad signal are input into the encoding and converting device at the same time, the input signal and the pad signal are obtained, if the input signal is a compressed signal, the input signal is decoded in real time to be an uncompressed signal, then the uncompressed signal is stored into the program frame buffer, if the input signal is an uncompressed signal, the input signal is directly stored into the program frame buffer, for the pad signal, the pad signal is decoded in real time to be an uncompressed signal, the pad signal is input into two paths of real-time pad streams, the two paths of pad streams are decoded to be the uncompressed signal, the decoded uncompressed signal is stored into the pad frame buffer, then the potential technical potential safety hazards in the uncompressed signal in the program frame buffer are checked, the broadcasting signal is ensured to be continuous and stable, each technical index meets the specification requirement, after the automatic check, the problem of stereo inversion of the input signal, namely, the left channel and the right channel is found, at this time, see fig. 2, the pad signal is output by using the data in the pad frame buffer, that is coded, that is the pad frame data is completely exchanged, and the real-time program frame content is completely replaced by the pad signal is output.
In another possible implementation manner, the real-time video is used as an input signal, the input signal and the pad signal are input into the encoding and converting device at the same time, the input signal and the pad signal are obtained, if the input signal is a compressed signal, the input signal is decoded in real time into an uncompressed signal, then the uncompressed signal is stored into a program frame buffer, if the input signal is the uncompressed signal, the input signal is directly stored into the program frame buffer, for the pad signal, the pad signal is decoded in real time into the uncompressed signal, and is stored into the pad frame buffer, wherein the pad signal is input into two paths of real-time pad streams, the two paths of pad streams are decoded into the uncompressed signal, the decoded uncompressed signal is stored into the pad frame buffer, then potential technical potential hazards in the uncompressed signal in the program frame buffer are checked, so that the broadcasting signal is kept continuous and stable, all technical indexes meet the specification requirements, after automatic checking, the problem of stereo inversion of the input signal, namely, the left channel and the right channel are found, at the moment, the audio frame data in the pad frame buffer are used for encoding, that is output, that is, the audio frame data in the audio frame buffer is replaced, and the original video frame data in the audio frame buffer is reserved for encoding is carried out.
In another possible implementation manner, the real-time video is used as an input signal, the input signal and the pad signal are input into the encoding and converting device at the same time, the input signal and the pad signal are obtained, if the input signal is a compressed signal, the input signal is decoded in real time into an uncompressed signal, then the uncompressed signal is stored into a program frame buffer, if the input signal is the uncompressed signal, the input signal is directly stored into the program frame buffer, for the pad signal, the pad signal is decoded in real time into the uncompressed signal, the pad signal is input into two paths of real-time pad broadcast streams, the two paths of pad broadcast streams are decoded into the uncompressed signal, the decoded uncompressed signal is stored into the pad frame buffer, then the potential technical hidden trouble in the uncompressed signal in the program frame buffer is checked, the broadcasting signal is ensured to be continuous and stable, each technical index meets the specification requirement, the problem of video mosaic is found after the input signal is automatically checked, at this time, the video frame data in the pad frame buffer is used for encoding and outputting, that is, the original video frame data in the pad frame buffer is encoded and the video frame data in the pad frame buffer is replaced, and the original video frame data is reserved. Thus, based on the switching of the frame buffer, the video or audio can be selected to be switched independently, and the flexibility is increased compared with the switching of the code stream.
Additionally, in one possible implementation manner, the secure real-time encoding and transcoding method of the present disclosure further includes: when the input signal is interrupted, the pad signal is taken as an output signal. That is, when the input signal is interrupted, the frame data in the pad frame buffer is encoded and output, so that the broadcast signal is ensured not to be interrupted.
Further, in one possible implementation manner, the secure real-time encoding and transcoding method of the present disclosure further includes: when the input signal is detected to be in a normal state, the input signal is encoded to obtain video data, and the video data is output. For example, after determining whether the input signal has technical safety problems, when the input signal is in a normal state, the data in the program frame buffer is normally encoded and output. In addition, if the video and audio are detected to be restored from the abnormal state to the normal state, the data in the program frame buffer is restored to be used for normal coding output, namely, the program frame buffer is switched from the gasket frame buffer. Based on video and audio frames, the problems possibly brought by the switching of the code stream layer surface are overcome, the smooth transition of the switching process is ensured, and the quality of broadcast signals is improved.
It should be noted that, although the secure real-time encoding method of the present disclosure is described above by way of example in the above steps, those skilled in the art will appreciate that the present disclosure should not be limited thereto. In fact, the user can flexibly set the safe real-time encoding and transcoding method according to personal preference and/or practical application scene, so long as the required functions are achieved.
In this way, the data to be output currently is obtained from the program frame buffer, whether the data is abnormal or not is judged, when the abnormal state of the data is detected, the corresponding gasket signal is read from the gasket frame buffer, and the gasket signal is used as output data for coding and outputting. Therefore, the functions of real-time video and audio coding, safety detection and gasket switching can be integrated into one device, the structure of the existing system is greatly simplified, the reliability is improved, and the cost is reduced.
Further, according to another aspect of the present disclosure, there is also provided a secure real-time encoding and transcoding apparatus 100. Since the working principle of the secure real-time encoding device 100 according to the embodiment of the present disclosure is the same as or similar to that of the secure real-time encoding method according to the embodiment of the present disclosure, the repetition is not repeated. Referring to fig. 3, the secure real-time encoding and transcoding apparatus 100 of the embodiment of the present disclosure includes a data acquisition module 110, a video anomaly determination module 120, and a video encoding module 130;
a data acquisition module 110 configured to acquire data to be currently output from the program frame buffer;
a video anomaly determination module 120 configured to determine whether the data is anomalous;
the video encoding module 130 is configured to read a corresponding pad signal from the pad frame buffer when an abnormal state of the data is detected, and encode and output the pad signal as output data.
Still further, in accordance with another aspect of the present disclosure, there is also provided a secure real-time encoding transcoding device 200. Referring to fig. 4, the secure real-time encoding apparatus 200 of the embodiment of the present disclosure includes a processor 210 and a memory 220 for storing instructions executable by the processor 210. Wherein the processor 210 is configured to implement any of the secure real-time encoding methods described above when executing the executable instructions.
Here, it should be noted that the number of processors 210 may be one or more. Meanwhile, in the secure real-time encoding apparatus 200 of the embodiment of the present disclosure, an input device 230 and an output device 240 may be further included. The processor 210, the memory 220, the input device 230, and the output device 240 may be connected by a bus, or may be connected by other means, which is not specifically limited herein.
The memory 220 is a computer-readable storage medium that can be used to store software programs, computer-executable programs, and various modules, such as: the embodiment of the disclosure provides a program or a module corresponding to a secure real-time encoding method. The processor 210 performs various functional applications and data processing of the secure real-time encoding device 200 by running software programs or modules stored in the memory 220.
The input device 230 may be used to receive an input digital or signal. Wherein the signal may be a key signal generated in connection with user settings of the device/terminal/server and function control. The output means 240 may comprise a display device such as a display screen.
According to another aspect of the present disclosure, there is also provided a non-transitory computer readable storage medium having stored thereon computer program instructions which, when executed by the processor 210, implement any of the secure real-time transcoding methods described in the foregoing.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvements in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Claims (8)
1. A secure real-time encoding and transcoding method, comprising:
acquiring current data to be output from a program frame buffer;
judging whether the data is abnormal or not;
when the data is detected to be in a normal state, encoding the data acquired from the program frame buffer to obtain video data;
outputting the video data;
when detecting that the data has an abnormal state, reading a corresponding gasket signal from a gasket frame buffer, and taking the gasket signal as output data to carry out coding output;
further comprises:
receiving an input signal in real time, and decoding the compressed signal to obtain an uncompressed signal if the input signal is the compressed signal;
storing said uncompressed signal in said program frame buffer;
the method comprises the steps that when a gasket signal is a real-time gasket stream, more than one path of gasket signal input is set, the gasket stream is decoded into an uncompressed signal, and the decoded uncompressed signal is stored in a gasket frame buffer;
when the pad signal is the pad file, decoding the pad signal into an uncompressed signal, and storing the decoded uncompressed signal into the pad frame buffer;
or the two gasket signals respectively comprise a real-time gasket broadcast stream and a gasket file, and support the gasket broadcast stream and the gasket file at the same time; that is, the unicast stream and the shim file are simultaneously decoded into uncompressed files, and the decoded uncompressed signals are stored in the shim frame buffer.
2. The method of claim 1, wherein determining whether the data has an anomaly comprises:
judging whether each frame of the data has technical safety problems or not;
wherein the technical safety issue includes at least one of an audio data anomaly and a video data anomaly.
3. The method of claim 2, wherein the audio data anomalies include at least one of volume anomalies, frequency anomalies, noise anomalies, and channel anomalies;
the video data anomalies include at least one of black fields, color bars, static frames, and picture mosaics.
4. The method of claim 1, wherein upon detecting the presence of an abnormal condition of the data, taking the shim signal as an output signal comprises:
outputting the video frames in the gasket signal if the video frames in the data have the abnormal state;
and outputting the audio frame in the gasket signal if the abnormal state exists in the audio frame in the data.
5. The method as recited in claim 1, further comprising:
and when the data is interrupted, taking the gasket signal as an output signal.
6. The safe real-time encoding and transcoding device is characterized by comprising a data acquisition module, a video abnormality judgment module and a video encoding module;
the data acquisition module is configured to acquire the data to be output currently from the program frame buffer;
the video abnormality judging module is configured to judge whether the data is abnormal or not;
the video coding module is configured to code the data acquired from the program frame buffer to obtain video data when the data is detected to be in a normal state; outputting the video data; when detecting that the data has an abnormal state, reading a corresponding gasket signal from a gasket frame buffer, and taking the gasket signal as output data to carry out coding output;
further comprises:
receiving an input signal in real time, and decoding the compressed signal to obtain an uncompressed signal if the input signal is the compressed signal;
storing said uncompressed signal in said program frame buffer;
the method comprises the steps that when a gasket signal is a real-time gasket stream, more than one path of gasket signal input is set, the gasket stream is decoded into an uncompressed signal, and the decoded uncompressed signal is stored in a gasket frame buffer;
when the pad signal is the pad file, decoding the pad signal into an uncompressed signal, and storing the decoded uncompressed signal into the pad frame buffer;
or the two gasket signals respectively comprise a real-time gasket broadcast stream and a gasket file, and support the gasket broadcast stream and the gasket file at the same time; that is, the unicast stream and the shim file are simultaneously decoded into uncompressed files, and the decoded uncompressed signals are stored in the shim frame buffer.
7. A secure real-time encoding and transcoding device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any one of claims 1 to 5 when executing the executable instructions.
8. A non-transitory computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110120994.0A CN114827640B (en) | 2021-01-28 | 2021-01-28 | Secure real-time encoding and transcoding method and apparatus, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110120994.0A CN114827640B (en) | 2021-01-28 | 2021-01-28 | Secure real-time encoding and transcoding method and apparatus, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114827640A CN114827640A (en) | 2022-07-29 |
CN114827640B true CN114827640B (en) | 2024-03-01 |
Family
ID=82526434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110120994.0A Active CN114827640B (en) | 2021-01-28 | 2021-01-28 | Secure real-time encoding and transcoding method and apparatus, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114827640B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101577827A (en) * | 2009-04-22 | 2009-11-11 | 北京大学 | Control method of delay playing and system |
CN205336414U (en) * | 2016-01-29 | 2016-06-22 | 广西电视台 | Automatic switch emergent terminal equipment |
CN107566890A (en) * | 2017-09-15 | 2018-01-09 | 深圳国微技术有限公司 | Handle audio stream broadcasting abnormal method, apparatus, computer installation and computer-readable recording medium |
CN110601971A (en) * | 2019-09-17 | 2019-12-20 | 南京林业大学 | Data transmission method and device, electronic equipment and storage medium |
CN110708564A (en) * | 2019-10-21 | 2020-01-17 | 上海网达软件股份有限公司 | Live transcoding method and system for dynamically switching video streams |
CN211209844U (en) * | 2020-03-23 | 2020-08-07 | 上海宁泰数码产品有限公司 | Embedded audio and video playing controller |
-
2021
- 2021-01-28 CN CN202110120994.0A patent/CN114827640B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101577827A (en) * | 2009-04-22 | 2009-11-11 | 北京大学 | Control method of delay playing and system |
CN205336414U (en) * | 2016-01-29 | 2016-06-22 | 广西电视台 | Automatic switch emergent terminal equipment |
CN107566890A (en) * | 2017-09-15 | 2018-01-09 | 深圳国微技术有限公司 | Handle audio stream broadcasting abnormal method, apparatus, computer installation and computer-readable recording medium |
CN110601971A (en) * | 2019-09-17 | 2019-12-20 | 南京林业大学 | Data transmission method and device, electronic equipment and storage medium |
CN110708564A (en) * | 2019-10-21 | 2020-01-17 | 上海网达软件股份有限公司 | Live transcoding method and system for dynamically switching video streams |
CN211209844U (en) * | 2020-03-23 | 2020-08-07 | 上海宁泰数码产品有限公司 | Embedded audio and video playing controller |
Also Published As
Publication number | Publication date |
---|---|
CN114827640A (en) | 2022-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100927967B1 (en) | Spatial scalable compression scheme using spatial sharpness enhancement techniques | |
US7474766B2 (en) | Motion image processor, motion image processing method and recording medium | |
JP3529305B2 (en) | Image quality analysis method and apparatus | |
US9414086B2 (en) | Partial frame utilization in video codecs | |
CN102833543B (en) | Video coding format detection device and method for video and audio media file | |
CN107683605B (en) | Encoding device, decoding device, and transmission control method | |
CN101184241A (en) | Image automatic detection method and apparatus | |
US8135076B2 (en) | Error concealment apparatus and method | |
US11849124B2 (en) | Device and method of video encoding with first and second encoding code | |
CN111182352A (en) | Adaptive code stream control device and method for video playing | |
US7912132B2 (en) | Moving image decoding apparatus | |
CN113709447B (en) | Method and device for detecting playing performance of terminal equipment | |
US20090141793A1 (en) | Dual channel encoding and detection | |
CN114827640B (en) | Secure real-time encoding and transcoding method and apparatus, device and storage medium | |
CN112468763B (en) | Video transmission and display method, device and equipment for conference television and storage medium | |
CN112887707A (en) | Video and audio rebroadcasting monitoring method and device, equipment and storage medium | |
US6369852B1 (en) | Analytical system for moving picture regeneration | |
CN110958468A (en) | Adaptation method and device of coder and decoder, computer readable medium and equipment | |
CN115914676A (en) | Real-time monitoring comparison method and system for ultra-high-definition video signals | |
Grbić et al. | Real-time video freezing detection for 4K UHD videos | |
US7995653B2 (en) | Method for finding the prediction direction in intraframe video coding | |
US20180054633A1 (en) | Video decoding device | |
US20060056627A1 (en) | Tunneling information in compressed audio and/or video bit streams | |
CN110855619A (en) | Processing method and device for playing audio and video data, storage medium and terminal equipment | |
KR100318840B1 (en) | Digital TV system capable of troubleshooting |
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 |