CN117676229A - Signal compensation device and method for dynamically compensating signal - Google Patents
Signal compensation device and method for dynamically compensating signal Download PDFInfo
- Publication number
- CN117676229A CN117676229A CN202211040696.1A CN202211040696A CN117676229A CN 117676229 A CN117676229 A CN 117676229A CN 202211040696 A CN202211040696 A CN 202211040696A CN 117676229 A CN117676229 A CN 117676229A
- Authority
- CN
- China
- Prior art keywords
- transport stream
- stream packet
- buffer
- signal
- processing circuit
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 239000000872 buffer Substances 0.000 claims abstract description 152
- 238000012545 processing Methods 0.000 claims abstract description 63
- 230000003139 buffering effect Effects 0.000 claims abstract description 26
- 230000004044 response Effects 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 abstract description 9
- 108091023242 Internal transcribed spacer Proteins 0.000 description 24
- 238000010586 diagram Methods 0.000 description 14
- 230000006978 adaptation Effects 0.000 description 13
- 125000004122 cyclic group Chemical group 0.000 description 9
- 101000651958 Crotalus durissus terrificus Snaclec crotocetin-1 Proteins 0.000 description 6
- 238000012937 correction Methods 0.000 description 4
- 101100258328 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) crc-2 gene Proteins 0.000 description 3
- 230000002950 deficient Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012360 testing method Methods 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/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/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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A signal compensation apparatus and a method for dynamically compensating a signal. The signal compensation device comprises a first receiving device, a second receiving device, a first buffer, a second buffer, a third buffer and a processing circuit. The first receiving device is used for receiving a first video signal from a first video source. The second receiving device is used for receiving a second video signal from a second video source, wherein the first video signal and the second video signal correspond to the same program. The first buffer is used for buffering a first transport stream packet group corresponding to a first video signal. The second buffer is used for buffering a second transport stream packet group corresponding to a second video signal. The processing circuit is used for responding to the transmission flow packet state according to a preset source to dynamically buffer a first transmission flow packet in the first transmission flow packet group or a second transmission flow packet in the second transmission flow packet group into the third buffer.
Description
Technical Field
The present invention relates to signal compensation, and more particularly, to a signal compensation apparatus and related method, which can enable a user to have better viewing quality by recovering a transport stream packet (transport stream packet, TS packet) when the signal quality of a digital signal or a network signal is poor.
Background
In general, when a user views a program of a digital signal received from a tuner (tuner) through a mobile device (e.g., a mobile phone or a tablet), the viewing quality is sometimes affected due to the bad quality of the digital signal, and when the user views a program of a network signal received from a network protocol television (Internet Protocol Television, IPTV) through the mobile device, the viewing quality is sometimes affected due to the bad quality of the network signal, so a novel signal compensation device and related method, which can automatically switch to the image quality with the best viewing quality for the user through an algorithm, are highly desired.
Disclosure of Invention
Therefore, an objective of the present invention is to provide a signal compensation device and related method, which can recover the transport stream packets to provide users with better viewing quality when the signal quality of the digital signal or the network signal is poor, so as to solve the above-mentioned problems.
According to an embodiment of the present invention, there is provided a signal compensation apparatus. The signal compensation device can comprise a first receiving device, a second receiving device, a first buffer, a second buffer, a third buffer and a processing circuit. The first receiving device is configured to receive a first video signal from a first video source. The second receiving device is configured to receive a second video signal from a second video source different from the first video source, wherein the first video signal and the second video signal both correspond to the same program. The first buffer is used for buffering a first transport stream packet group corresponding to the first video signal. The second buffer is used for buffering a second transport stream packet group corresponding to the second video signal. The processing circuit is configured to dynamically buffer a first transport stream packet of the first transport stream packet group or a second transport stream packet of the second transport stream packet group into the third buffer in response to the transport stream packet status according to a predetermined source, wherein the predetermined source is one of the first video source and the second video source.
According to an embodiment of the present invention, a method of dynamically compensating a signal is provided. The method may comprise: receiving a first video signal from a first video source; receiving a second video signal from a second video source different from the first video source, wherein the first video signal and the second video signal both correspond to the same program; buffering a first transport stream packet group corresponding to the first video signal into a first buffer; buffering a second transport stream packet group corresponding to the second video signal into a second buffer; and dynamically buffering a first transport stream packet of the first transport stream packet group or a second transport stream packet of the second transport stream packet group into a third buffer in response to the transport stream packet status according to a predetermined source, wherein the predetermined source is one of the first video source and the second video source.
One of the benefits of the present invention is that, by the signal compensation device and the related method of the present invention, a transport stream packet of a plurality of transport stream packets corresponding to a digital signal or a transport stream packet of a plurality of transport stream packets corresponding to a network signal can be dynamically buffered in a buffer according to a predetermined source in response to a transport stream packet status (e.g. whether the transport stream packet is damaged or discontinuous), so that a user can have better viewing quality by recovering the transport stream packet when the signal quality of the digital signal or the network signal is poor.
Drawings
Fig. 1 is a schematic diagram of a signal compensation device according to an embodiment of the invention.
Fig. 2 is a schematic diagram of a format of a transport stream packet in units of packetized elementary streams.
Fig. 3 is a schematic diagram illustrating the dynamic buffering of transport stream packets by the signal compensation apparatus shown in fig. 1 according to the first embodiment of the present invention.
Fig. 4 is a schematic diagram of dynamically buffering transport stream packets by the signal compensation apparatus shown in fig. 1 according to a second embodiment of the present invention.
Fig. 5 is a schematic diagram of dynamically buffering transport stream packets by the signal compensation apparatus shown in fig. 1 according to a third embodiment of the present invention.
Fig. 6 is a schematic diagram of dynamically buffering transport stream packets by the signal compensation apparatus shown in fig. 1 according to a fourth embodiment of the present invention.
Fig. 7 is a schematic diagram of dynamically buffering transport stream packets by the signal compensation apparatus shown in fig. 1 according to a fifth embodiment of the present invention.
FIG. 8 is a flow chart of a method for dynamically compensating a signal according to an embodiment of the invention.
Symbol description
10: signal compensation device
100,110: receiving device
120,130,140: buffer device
150,160,170: demultiplexer
180: processing circuit
181: server device
D_signal: digital signal
I_SIGNAL: network signal
Dts_1 to dts_n, its_1 to_n: transport stream packets
CRC0: first checking result
CRC1: second test results
CRC2: third checking result
200: transport stream packets
S800-812: step (a)
Detailed Description
Fig. 1 is a schematic diagram of a signal compensation device 10 according to an embodiment of the invention. As shown in fig. 1, the signal compensation device 10 may include a plurality of receiving devices 100 and 110, a plurality of buffers 120,130 and 140, a plurality of demultiplexers (demultiplexers) 150,160 and 170, and a processing circuit 180. The receiving device 100 may be configured to receive a first video SIGNAL (e.g., a digital SIGNAL d_signal) from a first video source (e.g., a tuner), and the receiving device 110 may be configured to receive a second video SIGNAL (e.g., a network SIGNAL i_signal) from a second video source (e.g., a network television (Internet Protocol Television, IPTV)) different from the tuner, wherein the digital SIGNAL d_signal and the network SIGNAL i_signal both correspond to the same program (program). Next, the buffer 120 may be used to buffer a plurality of transport stream packets (transport stream packet, TS packets) dts_1 to dts_n (n≡1) corresponding to the digital SIGNAL d_signal from the receiving device 100, and the buffer 130 may be used to buffer a plurality of transport stream packets its_1 to its_m (m≡1) corresponding to the network SIGNAL i_signal from the receiving device 110 through the user packet protocol (user datagram protocol, UDP), note that the units of the transport stream packets dts_1 to dts_n and the transport stream packets its_1 to its_m are packetized elementary streams (packetized elementary stream, PES), and in addition, the transport stream packets dts_1 to dts_n may be regarded as a first transport stream packet group, and the transport stream packets its_1 to its_m may be regarded as a second transport stream packet group.
Referring to fig. 2 in conjunction, fig. 2 is a schematic diagram of a format of a transport stream packet 200 in units of packetized elementary streams, wherein the transport stream packets dts_1 to dts_n and the transport stream packets its_1 to its_m shown in fig. 1 can be implemented by the transport stream packet 200. As shown in fig. 2, the transport stream packet 200 may include a header (header) and a payload (payload), wherein the header of the transport stream packet 200 may include a plurality of fields defined by the ISO/IEC 13818-1 standard and the Recommendation ITU-T h.222.0 standard, and the plurality of fields may include an 8-bit synchronization byte (sync byte), a 1-bit transmission error indicator bit (transport error indicator, TEI), a 1-bit payload start indicator bit (payload unit start indicator), a 1-bit transmission priority (transport priority), a 13-bit Packet ID (PID), a 2-bit transmission scrambling control (transport scrambling control, TSC), a 2-bit adaptation field control (adaptation field control), a 4-bit continuity counter (continuity counter), and an adaptation field (adaptation field). The content of the adaptation field is determined by the packet ID field and the adaptation field control field, and the adaptation field contains a cyclic redundancy check (cyclic redundancy check, CRC) result (not shown). Since the contents and actions of the fields can be referred to the standard contents of ISO/IEC 13818-1 and Recommendation ITU-T h.222.0, and are well known to those skilled in the art, details thereof will not be described again.
Referring back to fig. 1, after the buffer 120 buffers the transport stream packets dts_1 to dts_n, the demultiplexer 150 may be configured to perform cyclic redundancy check on the cyclic redundancy check result of the adaptation field in each of the transport stream packets dts_1 to dts_n to generate a first check result CRC0, and the first check result CRC0 may be buffered in the buffer 120. Similarly, after the buffer 130 buffers the transport stream packets its_1 to its_m, the demultiplexer 160 may be configured to perform cyclic redundancy check on the cyclic redundancy check result of the adaptation field in each of the transport stream packets its_1 to its_m to generate a second check result CRC1, and the second check result CRC1 may be buffered in the buffer 130. It should be noted that the transport stream packets dts_1 to dts_n may have respective numbers (index) according to the first check result CRC0, and the transport stream packets its_1 to its_m may also have respective numbers according to the second check result CRC1, wherein the transport stream packets dts_1 to dts_n may correspond to the transport stream packets its_1 to its_m, respectively, according to the numbers, and the corresponding transport stream packets may be mutually recovered. For example, the transport stream packet dts_1 may correspond to the transport stream packet its_1, that is, when the transport stream packet dts_1 is damaged, the transport stream packet its_1 may be used to recover the transport stream packet dts_1, and similarly, when the transport stream packet its_1 is damaged, the transport stream packet dts_1 may also be used to recover the transport stream packet its_1.
The processing circuit 180 may implement signal compensation by an algorithm to automatically switch to the image quality with the best viewing degree for the user, for example, the processing circuit 180 is a processor, and the processor may load and execute software program codes to implement the algorithm to control the output of the transport stream packets, but the invention is not limited thereto. In this embodiment, the processing circuit 180 can determine whether each of the transport stream packets dts_1 to dts_n and the transport stream packets its_1 to its_m is damaged according to the cyclic redundancy check result of the adaptation field in the transport stream packet. The processing circuit 180 may further determine whether each of the transport stream packets dts_1 to dts_n and the transport stream packets its_1 to its_m is continuous for the previous transport stream packet according to the continuity counter field in the header of the transport stream packet. In addition, the processing circuit 180 may be configured to dynamically buffer a transport stream packet of the first transport stream packet group (i.e., transport stream packets dts_1 to dts_n) or a transport stream packet of the second transport stream packet group (i.e., transport stream packets its_1 to its_m) into the buffer 140 according to a predetermined source in response to a state of the transport stream packet (e.g., whether the transport stream packet is damaged or discontinuous), wherein the predetermined source is one of the tuner and the network protocol television. The demultiplexer 170 may then be configured to perform cyclic redundancy check on the cyclic redundancy check result of the adaptation field in each transport stream packet buffered in the buffer 140 to generate a third check result CRC2, and parse (burst) the transport stream packet in the buffer 140 to output the content of the same program, where the third check result CRC2 may be buffered in the buffer 140.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a dynamic buffering of transport stream packets by the signal compensation apparatus 10 shown in fig. 1 according to a first embodiment of the present invention. In this embodiment, the tuner is configured as a default source, and each of the buffers 120,130 and 140 has at least one memory space with a size of S transport stream packets (e.g. 10 transport stream packets, i.e. s=10). The buffer 120 buffers a first transport stream packet group including transport stream packets dts_1 to dts_9 (i.e., n=9) and a correction packet including a first check result CRC0, and the buffer 130 buffers a second transport stream packet group including transport stream packets its_1 to its_9 (i.e., m=9) and a correction packet including a second check result CRC1, wherein the transport stream packet dts_1 corresponds to the transport stream packet its_1, the transport stream packet dts_2 corresponds to the transport stream packet its_2, the transport stream packet dts_3 corresponds to the transport stream packet its_3, and so on. In addition, the transport stream packets dts_2, dts_6, and dts_9 are determined to be defective transport stream packets, and the transport stream packets its_3 and its_8 are determined to be defective transport stream packets. In the case that the predetermined source is the tuner, if a transport stream packet (e.g., transport stream packets dts_1, dts_3 to dts_5, dts_7, and dts_8) in the buffer 120 is not damaged, the processing circuit 180 directly buffers the transport stream packet into the buffer 140; and if a transport stream packet (e.g., transport stream packets dts_2, dts_6, and dts_9) in the buffer 120 is damaged, the processing circuit 180 buffers a corresponding transport stream packet (e.g., its_2, its_6, and its_9) in the buffer 130 into the buffer 140. As shown in fig. 3, in the case that the predetermined source is the tuner and the transport stream packet dts_1 is not damaged, the processing circuit 180 directly buffers the transport stream packet dts_1 into the buffer 140; in the case that the predetermined source is the tuner and the transport stream packet dts_2 is damaged, the processing circuit 180 buffers the transport stream packet its_2 corresponding to the transport stream packet dts_2 into the buffer 140; and in case that the predetermined source is the tuner and the transport stream packet dts_3 is not damaged, the processing circuit 180 directly buffers the transport stream packet dts_3 into the buffer 140; for brevity, the operation of the processing circuit 180 for the transport stream packets dts_4 to dts_9 and the corresponding transport stream packets its_4 to its_9 will not be repeated here. In another embodiment, buffers 120,130, and 140 may be designed to have different sizes of storage space.
In some embodiments, the ip tv may be set as a default source, and in the case that the default source is the ip tv, if a transport stream packet in the buffer 130 is not damaged, the processing circuit 180 directly buffers the transport stream packet in the buffer 140; and if a transport stream packet in the buffer 130 is damaged, the processing circuit 180 buffers a corresponding transport stream packet in the buffer 120 into the buffer 140. For brevity, the description of these embodiments will not be repeated here.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a dynamic buffering of transport stream packets by the signal compensation apparatus 10 shown in fig. 1 according to a second embodiment of the present invention. The second embodiment shown in fig. 4 is different from the first embodiment shown in fig. 3 in that the transport stream packet dts_2 in the buffer 120 and the corresponding transport stream packet its_2 in the buffer 130 are both damaged at the same time, in which case the processing circuit 180 may find a transport stream packet sts_2 corresponding to the transport stream packet dts_2 and the transport stream packet its_2 from a server (e.g. the server 181 shown in fig. 1) through the transport control protocol (transmission control protocol, TCP) according to the adaptation field (especially the program clock reference (program clock reference, PCR) value) in the header of the transport stream packet, and download and buffer the transport stream packet sts_2 in the buffer 140. In some embodiments, the processing circuit 180 may also download and buffer the transport stream packet sts_2 into the buffer 130, and then buffer the same into the buffer 140. The operations for the processing circuit 180 to process other transport stream packets (i.e., the transport stream packets dts_1 and dts_3 to dts_9 and the corresponding transport stream packets its_1 and its_3 to its_9) in the second embodiment may refer to the first embodiment shown in fig. 3, and will not be repeated here.
It should be noted that, in the case that the number of transport stream packets in the first transport stream packet group (i.e., the transport stream packets dts_1 to dts_9) and the number of transport stream packets in the second transport stream packet group (i.e., the transport stream packets its_1 to its_9) are both greater than a proportion (e.g., half the size (e.g., S number) of the storage space (S number of transport stream packets)) of the storage space (S) of the plurality of buffers 120,130 and 140, it is quite time-consuming to find the corresponding transport stream packets from the server 181 by the tcp protocol, so that the processing circuit 180 directly discards all the transport stream packets currently buffered to the buffers 120 and 130, and fig. 5 is a schematic diagram of dynamically buffering the transport stream packets by the signal compensation device 10 shown in fig. 1 according to the third embodiment of the present invention. The third embodiment shown in fig. 5 is different from the first embodiment shown in fig. 3 in that all of the transport stream packets dts_1 to dts_9 in the buffer 120 shown in fig. 5 and the corresponding transport stream packets its_1 to its_9 in the buffer 130 are damaged at the same time, and the number of transport stream packets damaged in the transport stream packets dts_1 to dts_9 (i.e. 9 transport stream packets) and the number of corresponding transport stream packets damaged in the transport stream packets its_1 to its_9 (i.e. 9 transport stream packets) are greater than half the size (e.g. 10 transport stream packets) of the storage space of the plurality of buffers 120,130 and 140 (10/2=5), so the processing circuit 180 directly discards all the transport stream packets currently buffered in the buffers 120 and 130.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating a dynamic buffering of transport stream packets by the signal compensation apparatus 10 shown in fig. 1 according to a fourth embodiment of the present invention. The fourth embodiment shown in fig. 6 is different from the first embodiment shown in fig. 3 in that all the transport stream packets dts_1 to dts_9 in the buffer 120 shown in fig. 6 are judged to be non-damaged transport stream packets, in which case the processing circuit 180 directly buffers all the transport stream packets dts_1 to dts_9 in the buffer 140. In some embodiments, the network protocol television may be set as a default source, and in the case that the default source is the network protocol television, if all the transport stream packets in the buffer 130 are not damaged, the processing circuit 180 directly buffers all the transport stream packets in the buffer 130 into the buffer 140. For brevity, the description of these embodiments will not be repeated here.
Referring to fig. 7, fig. 7 is a schematic diagram illustrating a method for dynamically buffering transport stream packets by the signal compensation apparatus 10 shown in fig. 1 according to a fifth embodiment of the present invention. In this embodiment, the tuner is set as a predetermined source, the buffer 120, the buffer 130 and the buffer 140 have at least one storage space, the size of the storage space is S transport stream packets (e.g. 10 transport stream packets, i.e. s=10), the buffer 120 stores a first transport stream packet group including the transport stream packets dts_1 to dts_3, dts_6 to dts_7 and dts_9 to dts_12 and a correction packet including the first check result CRC0, and the buffer 130 stores a second transport stream packet group including the transport stream packets its_1 to its_6 and its_8 to its_10 and a correction packet including the second check result CRC1, wherein the transport stream packets dts_1 to dts_3, dts_6 to dts_7 and dts_12 and the transport stream packets its_1 to dts_6 and s_8 to s_10 are determined as lossless transport streams. At the beginning, the processing circuit 180 buffers the transport stream packets dts_1 to dts_3 directly into the buffer 140, however, the processing circuit 180 determines that the transport stream packet dts_6 is discontinuous for the previous transport stream packet dts_3 according to the continuity counter field in the header of the transport stream packet, so the processing circuit 180 may buffer the transport stream packet its_4 in the buffer 130 having continuity with the transport stream packet dts_3 into the buffer 140, and it is noted that, in some embodiments, if the transport stream packet its_4 in the buffer 130 is damaged, the processing circuit 180 may request a transport stream packet having continuity with the transport stream packet dts_3 from the server 181 through the transport control protocol and download and buffer the transport stream packet into the buffer 130 or 140.
Next, the processing circuit 180 buffers the transport stream packets its_5 and its_6 into the buffer 140, however, the processing circuit 180 determines that the transport stream packet its_8 is discontinuous with respect to the previous transport stream packet its_6 according to the continuity counter field in the header of the transport stream packet, so that the processing circuit 180 may buffer the transport stream packet dts_7 in the buffer 120 having continuity with the transport stream packet its_6 into the buffer 140, and it should be noted that, in some embodiments, the processing circuit 180 may request a transport stream packet in the buffer 181 having continuity with the transport stream packet its_6 through the transport control protocol and download and buffer the transport stream packet into the buffer 130 or 140 if the transport stream packet dts_7 in the buffer 120 is damaged. The operation of the processing circuit 180 for subsequent transport stream packets can be known from the above operation, and thus, for brevity, the description will not be repeated here.
FIG. 8 is a flow chart of a method for dynamically compensating a signal according to an embodiment of the invention. If the same result is obtained, the steps are not necessarily performed in sequence completely in accordance with the flow shown in fig. 8, for example, the method shown in fig. 8 may be implemented by the signal compensation device 10 shown in fig. 1, and in this embodiment, the tuner is set as a predetermined source for better understanding.
In step S800, the first transport stream packet group corresponding to the digital SIGNAL d_signal is buffered from the receiving apparatus 100 through the buffer 120, and the second transport stream packet group corresponding to the network SIGNAL i_signal is buffered from the receiving apparatus 110 through the buffer 130 by the user packet protocol.
In step S802, the processing circuit 180 determines whether a transport stream packet DTS in the buffer 120 is damaged or discontinuous, and if so (i.e. damaged or discontinuous), step S804 is performed; if not (i.e., no damage and continuity), step S806 is entered.
In step S804, the processing circuit 180 determines whether there is a recoverable transport stream packet ITS in the buffer 130, and if so, step S806 is performed; if not, step S808 is entered. For example, if the processing circuit 180 determines that the transport stream packet DTS is damaged, the processing circuit 180 determines whether there is a corresponding transport stream packet ITS (corresponding to the first embodiment shown in fig. 3 or the second embodiment shown in fig. 4) in the buffer 130, and if so, step S806 (corresponding to the first embodiment shown in fig. 3) is performed; if not, step S808 (corresponding to the second embodiment shown in FIG. 4) is entered. For another example, if the processing circuit 180 determines that the transport stream packet DTS is discontinuous with respect to the previous transport stream packet, the processing circuit 180 determines whether there is a transport stream packet ITS in the buffer 130 that has continuity with the previous transport stream packet (corresponding to the fifth embodiment shown in fig. 7), if so, step S806 is proceeded with; if not, step S808 is entered.
In step S806, the processing circuit 180 buffers the transport stream packets DTS or the recoverable transport stream packets ITS that are not damaged and have continuity into the buffer 140. For example, if the processing circuit 180 determines that the transport stream packet DTS is damaged, the processing circuit 180 buffers the corresponding transport stream packet ITS in the buffer 130 into the buffer 140. For another example, if the processing circuit 180 determines that the transport stream packet DTS is discontinuous with respect to the previous transport stream packet, the processing circuit 180 buffers the transport stream packet ITS in the buffer 130 having continuity with the previous transport stream packet into the buffer 140.
In step S808, the processing circuit 180 may search for a transport stream packet corresponding to the transport stream packet DTS from the server 181 according to the adaptation field (especially the program clock reference value) in the header of the transport stream packet, or request a transport stream packet having continuity with the previous transport stream packet of the transport stream packet DTS from the server 181 according to the transport control protocol, and download and buffer the transport stream packet in the buffer 130 or 140, and the processing circuit 180 may increase a reset value N (which is a preset value of 0) by 1 (i.e. n=n+1).
In step S810, the processing circuit 180 determines whether the reset value N is greater than a proportion of the size of the storage space (e.g. S transport stream packets) of the plurality of buffers 120,130 and 140, and if so, the step S812 is performed; if not, go back to step S800.
In step S812, the processing circuit 180 directly discards all the transport stream packets currently buffered in the buffers 120 and 130, and sets the reset value N to 0.
Since the person skilled in the art can easily understand the operation of each step shown in fig. 8 through the above description, the description of the similar contents in this embodiment is not repeated here for brevity.
In summary, by the signal compensation device and the related method of the present invention, a transport stream packet of a plurality of transport stream packets corresponding to a digital signal or a transport stream packet of a plurality of transport stream packets corresponding to a network signal can be dynamically buffered in a buffer according to a predetermined source in response to a transport stream packet status (e.g. whether the transport stream packet is damaged or discontinuous), so that a user can have better viewing quality by recovering the transport stream packet when the signal quality of the digital signal or the network signal is poor.
The foregoing description is only of the preferred embodiments of the present invention, and all equivalent changes and modifications made in the claims should be construed to fall within the scope of the present invention.
Claims (10)
1. A signal compensation device, comprising:
a first receiving device for receiving a first video signal from a first video source;
a second receiving device for receiving a second video signal from a second video source different from the first video source, wherein the first video signal and the second video signal both correspond to the same program;
a first buffer for buffering a first transport stream packet group corresponding to the first video signal;
a second buffer for buffering a second transport stream packet group corresponding to the second video signal;
a third buffer; and
a processing circuit for dynamically buffering a first transport stream packet of the first transport stream packet group or a second transport stream packet of the second transport stream packet group into the third buffer in response to a transport stream packet status according to a predetermined source, wherein the predetermined source is one of the first video source and the second video source.
2. The signal compensation device of claim 1, wherein the first video source is a tuner and the first video signal is a digital signal; the second video source is a network protocol television, and the second video signal is a network signal; and the units of the first transport stream packet group and the second transport stream packet group are packetized elementary streams.
3. The signal compensation device of claim 1, wherein the first transport stream packet corresponds to the second transport stream packet; if the predetermined source is the first video source, the first transport stream packet is damaged and the second transport stream packet is not damaged, the processing circuit buffers the second transport stream packet into the third buffer; and if the predetermined source is the second video source, the second transport stream packet is corrupted and the first transport stream packet is not corrupted, the processing circuit buffers the first transport stream packet into the third buffer.
4. The signal compensation device of claim 1, wherein the first transport stream packet corresponds to the second transport stream packet, and the processing circuit is coupled to a server; and if the first transport stream packet and the second transport stream packet are damaged, the processing circuit downloads and buffers a transport stream packet corresponding to the first transport stream packet and the second transport stream packet from the server into the second buffer or the third buffer.
5. The signal compensation device of claim 4, wherein the first buffer and the second buffer have at least one memory space, and the processing circuit directly discards all transport stream packets currently buffered to the first buffer and the second buffer if the number of transport stream packets corrupted in the first transport stream packet group and the number of transport stream packets corrupted in the second transport stream packet group are both greater than a proportion of the memory space.
6. The signal compensation device of claim 1, wherein the first transport stream packet corresponds to the second transport stream packet; if the predetermined source is the first video source and the first transport stream packet group is not damaged, the processing circuit buffers all of the first transport stream packet group into the third buffer; and if the predetermined source is the second video source and the second transport stream packet group is not damaged, the processing circuit buffers all of the second transport stream packet group into the third buffer.
7. The signal compensation device of claim 1, wherein if the first transport stream packet is discontinuous with respect to a previous transport stream packet of the first transport stream packet, the processing circuit buffers a third transport stream packet of the second transport stream packet group having continuity with the previous transport stream packet of the first transport stream packet into the third buffer; and if the second transport stream packet is discontinuous with respect to a preceding transport stream packet of the second transport stream packet, the processing circuit buffers a fourth transport stream packet of the first transport stream packet group having continuity with the preceding transport stream packet of the second transport stream packet into the third buffer.
8. The signal compensation device of claim 7, wherein the processing circuit is coupled to a server; if the third transport stream packet is damaged, the processing circuit requests a transport stream packet having continuity with a previous transport stream packet of the first transport stream packet to the server; and if the fourth transport stream packet is damaged, the processing circuit requests a transport stream packet to the server that has continuity with a preceding transport stream packet of the second transport stream packet.
9. A method for dynamically compensating a signal, comprising:
receiving a first video signal from a first video source;
receiving a second video signal from a second video source different from the first video source, wherein the first video signal and the second video signal both correspond to the same program;
buffering a first transport stream packet group corresponding to the first video signal into a first buffer;
buffering a second transport stream packet group corresponding to the second video signal into a second buffer; and
dynamically buffering a first transport stream packet of the first transport stream packet group or a second transport stream packet of the second transport stream packet group into a third buffer in response to a transport stream packet status according to a predetermined source, wherein the predetermined source is one of the first video source and the second video source.
10. The method of claim 9, wherein the first transport stream packet corresponds to the second transport stream packet, and the step of dynamically buffering the first transport stream packet of the first transport stream packet group or the second transport stream packet of the second transport stream packet group into the third buffer in response to a transport stream packet status according to the predetermined source comprises:
responding to the preset source being the first video source and the first transport stream packet damaged and the second transport stream packet not damaged, and buffering the second transport stream packet into the third buffer; and
and in response to the predetermined source being the second video source and the second transport stream packet corrupted and the first transport stream packet being uncorrupted, buffering the first transport stream packet in the third buffer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211040696.1A CN117676229A (en) | 2022-08-29 | 2022-08-29 | Signal compensation device and method for dynamically compensating signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211040696.1A CN117676229A (en) | 2022-08-29 | 2022-08-29 | Signal compensation device and method for dynamically compensating signal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117676229A true CN117676229A (en) | 2024-03-08 |
Family
ID=90066790
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211040696.1A Pending CN117676229A (en) | 2022-08-29 | 2022-08-29 | Signal compensation device and method for dynamically compensating signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117676229A (en) |
-
2022
- 2022-08-29 CN CN202211040696.1A patent/CN117676229A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7545794B2 (en) | Timestamping network controller for streaming media applications | |
US9930570B2 (en) | Method and apparatus for packet header compression | |
TW517498B (en) | System for program specific information error management in a video decoder | |
US8631143B2 (en) | Apparatus and method for providing multimedia content | |
JP2012533213A (en) | Backward looking robust header compression receiver | |
US20040008736A1 (en) | Apparatus and method for inserting null packet in digital broadcasting transmission system | |
JPH11252062A (en) | Method and device for effectively executing synchronization and cyclic redundancy check of signal in communication system | |
EP2309668A1 (en) | A digital receiver and corresponding digital transmission system server | |
US6111924A (en) | Error-correction-code synchronization in a videoconferencing gateway | |
US8861519B2 (en) | Data filtering apparatus and data filtering method | |
US8599933B2 (en) | Robust PID filtering for DVB-H | |
US20080225942A1 (en) | Contents reproducing apparatus | |
US7197688B2 (en) | Method of detecting broadcasting table change | |
CN117676229A (en) | Signal compensation device and method for dynamically compensating signal | |
TWI520597B (en) | Signal processing apparatuses | |
TWI825928B (en) | Signal compensation device and method for dynamically compensating signal | |
JP5032179B2 (en) | Stream reproducing apparatus and media data decoding method | |
JP2005012452A (en) | Device, method, and program for receiving digital signal | |
CN105338426A (en) | Correction method for time stamp in transport stream and device thereof | |
US20050195857A1 (en) | Method and apparatus for extracting payload from a packetized elementary stream packet | |
JP2007049707A (en) | Method, device and program for receiving data stream | |
KR100390812B1 (en) | PSI data filtering device for MPEG-2 system and control method thereof | |
JP2005020437A (en) | Contents correction system and reception device | |
CN107017964B (en) | Method and apparatus for detecting packet loss in staggercasting | |
JP6911989B2 (en) | Receiver and communication 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 |