Abstract:
Provided are an apparatus and a method of encoding/decoding broadcast contents and spare contents. The method of decoding broadcast contents and spare contents includes determining whether a broadcast contents stream that is presently broadcasted can be decoded; and performing a decoding operation on the broadcast contents stream or previously stored spare contents stream selectively based on a result of determination in the determining step. The spare contents are reproduced when a receive failure happens, thus reducing an uncomfortable feeling of a user caused by watching inferior images and hearing inferior sounds.

Description:
BACKGROUND OF THE INVENTION  
       [0001]     This application claims the priority of Korean Patent Application No. 2003-54218, filed on Aug. 5, 2003, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety by reference.  
         [0002]     1. Field of the Invention  
         [0003]     The present invention relates to an apparatus and a method for encoding/decoding broadcast contents.  
         [0004]     2. Description of the Related Art  
         [0005]     Recently, attention has been given to digital multimedia broadcasting (DMB), which provides a user, who is moving in a vehicle or on foot, with multimedia services such as various video, audio, and data services. The DMB sends broadcasting signals considering that the user is in a moving condition. However, receive failure generally happens when the user encounters an artificial obstacle such as a building, a tunnel, or an overpass and a natural obstacle such as a tree, or a hill. Due to the receive failures, the user watches partially or totally broken images, or the sound may be temporarily stopped. This may cause the user to be uncomfortable. Especially, if the receive failure status lasts long, the user may attempt to adjust a DMB receiver, thereby increasing inconvenience and danger of accident.  
       SUMMARY OF THE INVENTION  
       [0006]     The present invention provides an apparatus and a method of playing spare contents including advertisements when a receive failure happens, so as to reduce uncomfortable feeling of a user caused by inferior images and sounds.  
         [0007]     According to an aspect of the present invention, there is provided a method of decoding broadcasting/spare contents, the method including the operations of determining whether a broadcast contents stream that is presently broadcasted can be decoded, and performing a decoding operation of the broadcast contents stream or previously stored spare contents stream selectively based on a result of determination in the determining step.  
         [0008]     According to another aspect of the present invention, there is provided an apparatus for decoding broadcasting/spare contents, the apparatus including a decoding director directing a decoding operation of a broadcast contents stream or a spare contents stream that is stored in advance according to whether the broadcast contents stream that is broadcasted presently can be decoded or not, and a spare contents stream decoding unit for decoding the spare contents stream, if the decoding operation of the spare contents stream is directed by the decoding director.  
         [0009]     According to still another aspect of the present invention, there is provided a method of decoding broadcast/spare contents, the method including the operations of generating a broadcast contents stream by decoding broadcast contents, generating a spare contents stream by decoding spare contents that are reproduced only when the broadcast contents stream cannot be decoded, and generating a transport stream including the broadcast contents stream and the spare contents stream.  
         [0010]     According to yet still another aspect of the present invention, there is provided a computer readable recording medium having embodied thereon a computer program for the method of decoding broadcast/spare contents.  
         [0011]     According to yet still another aspect of the present invention, there is provided a computer readable recording medium having embodied thereon a computer program for the method of decoding broadcast/spare contents. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0012]     The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings in which:  
         [0013]      FIG. 1  is a block diagram of an apparatus for encoding broadcasting/spare contents according to the present invention;  
         [0014]      FIG. 2  illustrates a format of a transport stream packet according to a motion picture experts group (MPEG) standard;  
         [0015]      FIG. 3  is a view of an example of a program ID (PID) allocation table including broadcast contents and spare contents of Korean broadcasting companies;  
         [0016]      FIG. 4  is a view of an example of a transport stream according to the PID allocation table shown in  FIG. 3 ;  
         [0017]      FIG. 5  is a view of a format of a program specific information (PSI) according to the MPEG standard;  
         [0018]      FIG. 6  is a block diagram of an apparatus for decoding broadcast/spare contents according to the present invention;  
         [0019]      FIG. 7  is a block diagram of a method of encoding broadcast/spare contents according to the present invention; and  
         [0020]      FIG. 8  is a flow chart of a method of decoding broadcast/spare contents according to the present invention. 
     
    
     DETAILED DESCRIPTION OF THE INVENTION  
       [0021]      FIG. 1  is a block diagram of an apparatus for encoding broadcast/spare contents according to an embodiment of the present invention.  
         [0022]     Referring to  FIG. 1 , the apparatus for encoding broadcast/spare contents includes a broadcast contents encoding unit  11 , a spare contents encoding unit  12 , a multiplexer  13 , and a transport stream sending unit  14 .  
         [0023]     The broadcast contents encoding unit  11  encodes broadcast contents to generate a broadcast contents stream. Here, the broadcast contents are contents that will be broadcasted by a broadcasting company, and include all kinds of video contents, audio contents, and data contents. If the broadcast content is compressed in a motion picture experts group (MPEG) form, the content is encoded after passing through processes of discrete cosine transform (DCT) and quantization. After the encoding process, the broadcast contents such as the video contents, audio contents, and the data contents are converted into compressed bit streams.  
         [0024]     The spare contents encoding unit  12  encodes the spare contents, which are reproduced only when the broadcast contents stream, which is encoded in the broadcast contents encoding unit  11 , can not be decoded, to generate a spare contents stream. The spare contents are encoded in the same way as that of the broadcast contents. However, the spare contents are not independent contents like the broadcast contents, but dependent contents, which are decoded and played only when the present broadcast contents stream can not be decoded and played due to a receive failure. Therefore, if the receiving status of the broadcast contents is good, the spare—contents may be discarded without being played. Thus, the spare contents generally includes advertisement contents, electronic program guide contents, or broadcasting company logo contents, which are not essentially provided to a user, and lengths of the contents are short since the receive failure generally does not last long.  
         [0025]     The multiplexer  13  generates a transport stream including the broadcast contents stream, which is generated by the broadcast contents encoding unit  11 , and the spare contents stream, which is generated by the spare contents encoding unit  12 . The broadcast contents stream generated by the broadcast contents encoding unit  11  and the spare contents stream generated by the spare contents encoding unit  12  are divided into a plurality of transport stream packets having appropriate sizes.  
         [0026]      FIG. 2  is a view of a format of the transport stream packet according to the MPEG standard.  
         [0027]     Referring to  FIG. 2 , a length of a transport stream packet is 188 bytes according to the MPEG standard, and the transport stream packet includes a header and a payload. The header carries information about the packet, and the payload includes a part of the broadcast contents stream or a part of the spare contents stream.  
         [0028]     The transport stream sending unit  14  transmits the transport stream generated by the multiplexer  13 . That is, the transport stream sending unit  14  transmits the transport stream including the transport stream packets shown in  FIG. 2 . In the digital multimedia broadcasting environment, the transport stream is transmitted wirelessly for the users in a moving condition.  
         [0029]      FIG. 3  is a view of an example of program ID (PID) allocation table including the broadcast contents and the spare contents of Korean broadcasting companies.  
         [0030]     Referring to  FIG. 3 , PIDs  101 ,  201 , and  301  are respectively allocated to the broadcast contents of programs KBS 1 , KBS 2 , and KBS 3  of the Korean broadcasting system (KBS), and PIDs  102 ,  202 , and  302  are allocated to the spare contents of the programs KBS 1 , KBS 2 , and KBS 3 . In addition, the broadcast contents and the spare contents are in relations of one-to-one correspondence. Referring to  FIG. 2 , a PID field is included in the header of the transport stream packet, and the PID value is recorded on the PID field. The PID is a value for identifying the packet, and same programs have same PID values. In a decoding process, the packets having same PID values are detected and combined to obtain the broadcast contents stream or the spare contents stream of undivided states. This process is referred to as a demultiplexing process.  
         [0031]      FIG. 4  is a view of an example of the transport stream according to the PID allocation table shown in  FIG. 3 .  
         [0032]     Referring to  FIG. 4 , each of the transport stream packets is represented by the PID value. As shown therein, the transport stream includes various mixed packets. In order to restore the broadcast contents of program MBC 2 , packets having PID value of 501 are detected and combined, and then decoded. In order to restore the spare contents of program MBC 2 , packets having PID value of 502 are detected and combined, and then decoded.  
         [0033]      FIG. 5  is a view of a format of a program specific information (PSI) according to the MPEG standard.  
         [0034]     According to the MPEG standard, the PID of the transport stream packets should be identified in order to encode and decode the transport stream. In addition to the PID, parameter information or link information of the bit stream recorded on the payload of the transport stream packet is identified. The information is recorded in the PSI format shown in  FIG. 5 , and the PSI is transmitted by a packet having the PD value of 0.  
         [0035]     If the broadcasting company wants to change the advertisement due to a reason such as changed sponsorship, the spare contents encoding unit  12  substitutes the previous spare contents with new spare contents, and encodes the updated spare contents. Referring to  FIG. 5 , there are a version number field and a current next indicator field, and update of the contents can be represented by those fields. The version number increases whenever the PSI is updated, and the current next indicator increases for representing whether the new version is valid or the old version is valid when the new version and the old version are transmitted simultaneously.  
         [0036]     If a receive failure happens during playback of a certain program, an advertisement of the sponsor of the program is generally played. The spare contents encoding unit  12  encodes the spare contents corresponding to the broadcast contents encoded in the broadcast contents encoding unit  11 , that is, the advertisement contents of the sponsor sponsoring the broadcast contents. The correspondence can be represented by making some parts of the PIDs the same as shown in  FIG. 3 . For example, since the PID of the broadcast contents of program KBS 1  is 101 and the PID of the spare contents of program KBS 1  is 102, first and second places are used to identify the program and third places of the PID values are used to identify the broadcast contents or the spare contents.  
         [0037]      FIG. 6  is a block diagram of an apparatus for decoding broadcasting/spare contents according to an embodiment of the present invention.  
         [0038]     Referring to  FIG. 6 , the broadcasting/spare contents decoding apparatus includes a transport stream receiving unit  61 , a demultiplexer  62 , a spare contents stream storage unit  63 , a decoding director  64 , a broadcast contents stream decoding unit  65 , a spare contents stream decoding unit  66 , and a broadcast/spare contents playback unit  67 .  
         [0039]     The transport stream receiving unit  61  receives the transport stream including the broadcast contents stream and the spare contents stream. That is, the transport stream receiving unit  61  receives the transport stream including the transport stream packets shown in  FIG. 2 . In the digital multimedia broadcasting environment, the transport stream is received wirelessly through a portable terminal of the user. Here, the spare contents are generally the advertisement contents, the electronic program guide contents, or the broadcasting company logo contents.  
         [0040]     The demultiplexer  62  detects the broadcast contents stream and the spare contents steam from the transport stream received by the transport stream receiving unit  61 . Referring to  FIG. 3 , the broadcast contents stream and the spare contents stream are detected based on the PIDs of the packets. For example, in order to detect the broadcast contents stream of program MBC 2 , the packets having the PID value of 501 are detected and combined. In order to detect the spare contents stream of program MBC 2 , the packets having the PID value of 502 are detected and combined.  
         [0041]     The spare contents stream storage unit  63  stores the spare contents stream detected by the demultiplexer  62 . When the receive failure of the broadcast contents happens, the stored spare contents are played during the receive failure. In an exemplary embodiment, the spare contents stream is stored in a non-volatile memory so that the stored contents can be reserved without regarding turn-on/turn-off states of the receiving terminal. In a case where the spare contents stream detected by the demultiplexer  62  is a new spare contents stream updating the spare contents stream stored in the spare contents stream storage unit  63 , the spare contents stream storage unit  63  deletes the stored spare contents stream and stores the detected spare contents stream. As shown in  FIG. 5 , the new spare contents stream is decided with reference to the value of version number field and the value of current next indicator field.  
         [0042]     The decoding director  64  directs to decode the broadcast contents stream if it is decided that the broadcast contents stream detected by the demultiplexer  62  can be decoded. In addition, if it is decided that the broadcast contents stream detected by the demultiplexer cannot be decoded, the decoding director  64  directs to decode the spare contents stream. Here, whether the broadcast contents stream can be decoded or not can be decided through an electric field strength or a loss degree of the transport stream. That is, if there is the receive failure, the electric field strength of the received transport stream becomes weak, or loss of the broadcast contents stream included in the transport stream increases.  
         [0043]     The decoding director  64  decides that the broadcast contents stream included in the received transport stream can be decoded, in a case where the electric field strength of the transport stream received by the transport stream receiving unit  61  is a certain threshold or more. In addition, in a case where the electric field strength of the transport stream received by the transport stream receiving unit  61  is smaller than the threshold, the decoding director  64  decides that the broadcast contents stream included in the received transport stream cannot be decoded. For performing the decision, an electric field measuring device can be used.  
         [0044]     Also, in a case where the degree of lost broadcast contents stream detected by the demultiplexer  62  is a certain threshold value or more, the decoding director  64  decided that the broadcast contents stream included in the received transport stream can be decoded. In addition, if the loss degree of the broadcast contents stream detected by the demultiplexer  62  is less than the threshold value, the decoding director  64  decides that the broadcast contents stream included in the received transport stream cannot be decoded. The decision process is performed using a value recorded on a discontinuity indicator field of the transport stream packet shown in  FIG. 2 .  
         [0045]     The broadcast contents stream decoding unit  65  decodes the broadcast contents stream detected by the demultiplexer  62  to recover the broadcast contents, in a case where the decoding of the broadcast contents stream is directed by the decoding director  64 , that is, in a case where the broadcast contents stream included in the received transport stream can be decoded. The decoding process is made by performing the encoding process inversely, that is, through inverse-quantization or inverse DCT (IDCT) process.  
         [0046]     The spare contents stream decoding unit  66  decodes the spare contents stream stored in the spare contents stream storage unit  63  to restore the spare contents, in a case where the decoding of the spare contents stream is directed by the decoding director  64 , that is, in a case where the broadcast contents stream included in the received transport stream cannot be decoded. The spare contents stream decoding unit  66  decodes the spare contents stream, which is stored in the spare contents stream storage unit  63 , corresponding to the broadcast contents stream that is decided not to be decoded by the broadcast contents stream decoding unit  65 . As shown in  FIG. 3 , if the receive failure of a certain broadcast contents stream happens, the spare contents decoded from the spare contents stream, which is recorded on the packet having the PID value of same first and second places as those of the PID value on the packet, on which the broadcast contents stream is recorded.  
         [0047]     The broadcasting/spare content reproducing unit  67  reproduces the broadcast contents detected by the broadcast contents stream decoding unit  65 , or the spare contents decoded by the spare contents stream decoding unit  66 . That is, the broadcasting/spare contents reproducing unit  67  reproduces the broadcast contents when the broadcast contents are received smoothly, and reproduces the spare contents when the receive failure of the broadcast contents happens. The video contents are played through a display panel, and the audio contents are played through a speaker. Generally, according to the MPEG standard, the video contents and the audio contents are played simultaneously based on a program clock reference (PCR), decoding time stamp (DTS), and presentation time stamp (PTS).  
         [0048]      FIG. 7  is a block diagram of a method of encoding broadcasting/spare contents according to an embodiment of the present invention.  
         [0049]     Referring to  FIG. 7 , the method of encoding broadcasting/spare contents generates the broadcast contents stream by encoding the broadcast contents (step  71 ), generates spare contents stream by encoding the spare contents, which are played when the encoded broadcast contents stream cannot be decoded (step  72 ). Here, the encoded spare contents are updated by new spare contents, and the new spare contents are encoded. Also, the spare contents corresponding to the encoded broadcast contents are encoded. In addition, the transport stream including the broadcast contents stream and the spare contents stream is generated (step  73 ). In addition, the generated transport stream is transmitted (step  74 ). Here, the spare contents are generally the advertisement contents, electronic program guide contents, or broadcasting company logo contents.  
         [0050]      FIG. 8  is a flow chart of a method of decoding broadcasting/spare contents according to an embodiment of the present invention.  
         [0051]     Referring to  FIG. 8 , according to the method of decoding the broadcasting/spare contents, the transport stream including the broadcast contents stream and the spare contents stream is received (step  81 ). The broadcast contents stream and the spare contents stream are detected from the received transport stream (step  82 ). In addition, the detected spare contents stream is stored in a storage unit (step  83 ). Here, if the detected spare contents stream is a new spare contents stream updating the stored spare contents stream, the stored spare contents stream is deleted and the new spare contents stream is stored.  
         [0052]     When it is decided that the detected broadcast contents stream can be decoded (step  84 ), the decoding of the broadcast contents stream is directed by a decoding director. When the decoding of the broadcast contents stream is directed, the detected broadcast contents stream is decoded to restore the broadcast contents (step  86 ). If it is decided that the detected broadcast contents stream cannot be decoded (step  84 ), decoding of the spare contents stream is directed by the decoding director (step  87 ). In addition, when the decoding of the spare contents stream is directed, the stored spare contents stream is decoded to restore the spare contents (step  88 ). Here, the stored spare contents stream, which is corresponded to the broadcast contents stream decided not to be decoded, is decoded. In addition, the restored broadcast contents, or restored spare contents are played (step  89 ). Here, the spare contents are generally advertisement contents, electronic program guide contents, or broadcasting company logo contents.  
         [0053]     In step  84 , if the electric field strength of the received transport stream is a certain threshold value or more, it is decided that the broadcast contents stream included in the received transport stream can be decoded. If the electric field strength of the received transport stream is smaller than the threshold value, it is decided that the broadcast contents stream included in the transport stream cannot be decoded. Also, if the loss degree of the detected broadcast contents stream is a certain threshold value or more, it is decided that the broadcast contents stream included in the received transport stream can be decoded. If the loss degree of the broadcast contents stream is less than the threshold value, it is decided that the broadcasting stream included in the received transport stream cannot be decoded.  
         [0054]     On the other hand, the method of the present invention can be performed through a program, which can be performed in a computer, and can be realized in a general-purpose digital computer, which operates the program using a recording medium readable by the computer.  
         [0055]     The computer-readable recording medium includes a storage medium such as a magnetic storing medium (for example, a ROM, a floppy disk, and a hard disk), an optical read-out medium (for example, a CD-ROM, DVD), and a carrier wave (for example, transmission through internet).  
         [0056]     According to the present invention, the spare contents including such the advertisement contents are played, in a case where the receive failure is generated while the digital multimedia broadcasting is being received, to reduce the uncomfortable feeling of the user since the user should watch/listen the image and sound having inferior receiving quality. Also, inconvenience or danger, which is caused since the user controls the digital multimedia receiver when the receive failure lasts long, can be removed. Furthermore, the present invention suggests new advertisement form in the digital multimedia broadcasting receiver is suggested.  
         [0057]     While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims.