WO2007013183A1 - Video trouble detection device - Google Patents

Video trouble detection device Download PDF

Info

Publication number
WO2007013183A1
WO2007013183A1 PCT/JP2005/014246 JP2005014246W WO2007013183A1 WO 2007013183 A1 WO2007013183 A1 WO 2007013183A1 JP 2005014246 W JP2005014246 W JP 2005014246W WO 2007013183 A1 WO2007013183 A1 WO 2007013183A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
freeze
picture
area
detection device
Prior art date
Application number
PCT/JP2005/014246
Other languages
French (fr)
Japanese (ja)
Inventor
Kouzou Kameda
Yasuaki Nishida
Kunihiro Kotaki
Atsushi Oda
Yukio Iwahana
Naruo Takizawa
Tomoyuki Morita
Koei Kawamura
Takahiro Hamada
Original Assignee
Japan Broadcasting Corporation
Nhk Engineering Services, Inc.
Kddi Media Will Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Japan Broadcasting Corporation, Nhk Engineering Services, Inc., Kddi Media Will Corporation filed Critical Japan Broadcasting Corporation
Priority to PCT/JP2005/014246 priority Critical patent/WO2007013183A1/en
Priority to JP2007526803A priority patent/JPWO2007013183A1/en
Publication of WO2007013183A1 publication Critical patent/WO2007013183A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems

Definitions

  • the present invention relates to a video failure detection apparatus that detects a video failure or the like in an encoded video signal.
  • Background Art Recent improvements in video processing technology have made it possible to transmit high-quality images such as high-vision television broadcasts.
  • digital video signals for high-definition broadcasting are transmitted to each home via wireless or wired transmission means.
  • digital video signals with a large data capacity are often transmitted after being compressed.
  • MPEG Motion Picture Experi- ences Group
  • MPEG Moving Picture Experi- ences Group
  • the present invention has been made in view of such problems, and an object thereof is to provide a video failure detection apparatus suitable for detecting a video defect from an encoded video signal.
  • the video failure detection device of the present invention is a video failure detection device that detects a video failure based on encoded information included in an encoded video signal according to MP EG (Moving Picture Export Group Group) standards.
  • Video failure is detected based on the amount of data of one picture extracted from the input encoded video signal and the QS (Quantizer Scale) value used in MPE G encoding. .
  • a marker is set in advance. Failure detection is possible for existing video signals that need not be embedded.
  • the video failure is a video freeze, and if the average value of the QS values in units of pictures is less than the first freeze predetermined value, it is determined that there is a low possibility that a central image freeze has occurred. preferable.
  • the video failure is a video freeze
  • the average value of the QS values per picture is less than a first freeze predetermined value
  • the amount of data for one picture is a second freeze predetermined. If the value is less than the value, it is preferable that it is determined that the possibility that the video has been frozen is low.
  • the number of skipped macroblocks is counted without encoding the macroblock data, and the number of counted macroblocks relative to the total number of macroblocks in one picture is If the first freeze predetermined percentage is exceeded, it is preferable to determine that the picture is frozen.
  • a video failure detection device is a video failure detection device that detects video failure based on code information included in a video signal that conforms to the MP EG (Moving Picture Export Group) group.
  • the feature is to detect the video failure based on the QS (Quantiser Scale) value in the divided area.
  • the video failure is block distortion
  • the average value of the QS value in units of pictures is less than a first block distortion predetermined value
  • the decoded signal of one picture is converted into a luminance signal.
  • the sum of the value obtained by adding the second block distortion predetermined value and the absolute value of the color difference signal is averaged, and if the average value is equal to or greater than the third block distortion predetermined value, it is preferable to determine that the block distortion has occurred.
  • the video failure is video freeze, and it is preferable to determine that the possibility of video freeze is low when the average value of the QS values in divided area units is less than the third freeze predetermined position.
  • macro block data is not encoded in the divided areas adjacent to the top and bottom of the screen, and the number of blocked macroblocks is counted. For the upper area, the lower half of the macro is counted. In the block, count the number of skipped macroblocks, and for the lower area, count the number of skipped macroblocks in the upper half of the area.
  • the ratio of skipped macroblocks in the upper half area or the lower half area is less than the third freeze predetermined ratio, it is preferable that it is determined that the possibility of the B center image freeze occurring is low.
  • the proportion of skipped macroblocks in the upper half macroblock line of the area exceeds the third freeze predetermined ratio, the skipped portion included in the two macroblock lines from the top of the area is skipped.
  • the number of macroblocks is counted, and the percentage of the total number of skipped macroblocks in the area is equal to or greater than the predetermined ratio of the fourth freeze. I ’m going to count the number of macroblocks,
  • the ratio of the skipped Mac mouth block in the upper area is equal to or less than the fifth freeze predetermined ratio, it is preferable to determine that a video freeze has occurred in the area.
  • the skipped macros included in the two macroblock lines from the bottom of the area exceeds the third freeze predetermined ratio
  • the skipped macros included in the two macroblock lines from the bottom of the area The number of blocks is counted, and the percentage of the total number of skipped mac block blocks in the area is equal to or greater than the fourth freeze predetermined ratio, and skipped in the 2 macroblock lines from the top in the adjacent lower area
  • the number of macroblocks is counted and the ratio of the total number of skipped macroblocks in the lower area is equal to or less than the fifth freeze predetermined ratio, it is determined that video freeze has occurred in that area. preferable.
  • the encoded audio signal multiplexed on the encoded video signal is decoded, and the number of consecutive samples in which the audio signal level is equal to or lower than the first audio predetermined value in a predetermined interval is counted, and the count is
  • the audio signal is equal to or greater than the predetermined audio value of 2
  • FIG. 1 is a block diagram showing a video analysis apparatus 10 according to the present embodiment.
  • FIG. 2 is a diagram schematically showing the configuration of the encoded video signal.
  • FIG. 3 is a diagram for explaining the freeze macroblock line.
  • FIG. 4 is a flowchart showing a process for determining a freeze picture performed in the video processing apparatus 10.
  • FIG. 5 is a flowchart showing a process for determining the block distortion performed in the video processing apparatus 10.
  • FIG. 6 is a flowchart showing a process for determining mute performed in the B center image processing apparatus 10.
  • FIG. 7 is a diagram for explaining the freeze macroblock line.
  • FIG. 8 is a flowchart showing a process for determining a freeze picture area performed in the video processing apparatus 10.
  • FIG. 8 is a flowchart showing a process for determining a freeze picture area performed in the video processing apparatus 10.
  • FIG. 9 is a diagram showing an example of a voice sample. BEST MODE FOR CARRYING OUT THE INVENTION
  • the TS input interface 1 1 has an encoded video signal and audio signal (specifically, a digital signal).
  • the video signal is compressed and encoded with MP EG-2
  • the digital audio signal is compressed and encoded with MPEG-2 Advanced Audio Coding and multiplexed with the video signal to form a transport stream.
  • FIG. 2 is a diagram schematically showing the configuration of the encoded video signal.
  • the encoded video signal has a structure in which a sequence header SH including control information and a picture loop GOP including video information are alternately connected.
  • a picture group GOP is composed of at least one I picture, B picture, and P picture. Taking an I picture as an example, one picture consists of multiple slices S. slice
  • One slice S is the data divided so that it is cut horizontally on one picture for the video signal for one picture.
  • One slice S consists of multiple macroblocks MB.
  • the number of macroblocks included in one slice S may not be constant, and there may be multiple slices in the horizontal direction.
  • the slice in the horizontal direction is treated as one unit, and this is called a macroblock line.
  • One macroblock MB has one luminance signal Y consisting of 16X16 pixels and one color difference signal Cb, Cr consisting of 8X8 pixels when the sampling format of luminance signal and color difference signal is 4: 2: 0. Consists of On the other hand, if the sampling format of the luminance signal and chrominance signal is 4: 2: 2, it is 16X16 pixels.
  • the luminance signal Y is composed of two color difference signals Cb and Cr composed of 8 X 8 pixels.
  • Figure 3 shows the distinction between a normal macro block line and a freeze macro block line in one picture.
  • one macro block line is arranged horizontally in one row. It is assumed that 1 picture consists of 16 macroblock lines arranged vertically.
  • one square represents one macroblock, which is composed of 16 ⁇ 16 pixels as shown in FIG. Hatched macroblocks are so-called skipped macroblocks (specific macroblocks) with no coding data, and whiteout macroblocks are normal macroblocks. In the still image, almost all macro blocks are skipped. On the other hand, there are a large number of skipped macroblocks in freeze pictures, so the separation is an important issue.
  • the macroblock line when the number of skipped macroblocks in one macroblock line exceeds the first freeze predetermined ratio X, the macroblock line is determined to be a frozen macroblock line (for example, FIG. 3). 10th macro block line), otherwise, it is determined to be a normal Mac mouth block line.
  • a normal macro block line sandwiched between freeze macro block lines is regarded as a freeze macro block line (eg, the first macro block line in FIG. 3).
  • the number of freeze mask block lines in one picture exceeds the second freeze predetermined ratio Y, it is determined that the picture is a frozen picture in which the video is frozen.
  • FIG. 4 is a flowchart showing processing for determining a freeze picture performed in the B-center image processing apparatus 10.
  • the codes used in the flow chart have the following meanings.
  • mb_ idth Total number of macroblocks in one macroblock line
  • mb_height Total number of macroblock lines in one picture
  • the average value is calculated using the Quantizer Scale of the slice header as the Quantizer Scale of the macroblock in that slice.
  • lb is obtained by counting the number of bits of PES—packet_data—by te included in the video PES packet that is input to the encoding parameter extraction unit. Further, in step S104, it is determined whether or not the determined M (Q s) is 50 (first freeze predetermined value) or more and the obtained I b is 150,000 (second freeze predetermined value) or more. to decide.
  • step S116 until it is determined that i ⁇ mb_height (that is, until the total number of macroblock lines is determined)
  • step S1 Repeat 13-S115.
  • step S125 the number of frozen macroblocks to the total number of macroblock lines in one picture, mbjieight, and the ratio of line_cnt (f_line_cntX100 / mb height) is 20 (second freeze predetermined ratio) or more It is determined whether or not there is.
  • FIG. 7 is a flowchart showing a process for determining a freeze picture area performed in the B-center image processing apparatus 10.
  • MQs (i, j) Average value of Quantizer Sale of divided area (i, j)
  • SL_cnt Number of macroblock lines in divided area (i, j)
  • Sk_mb_cnt (i, j) Total number of skipped macroblocks in segment (i, j)
  • TSk_mb_c ntl (i, j): Number of skipped macroblocks in the 2 macroblock lines from the top of the segment (i, j)
  • BSk_mb_cn tl (i, j): Number of skipped macroblocks in the 2 macroblock lines from the bottom of the segment (i, j)
  • TSk_mb_cnt2 (i, j): Number of skipped macroblocks in ⁇ SL_cnt (i, j) / 2 ⁇ macroblock line from above divided area (i,] ')
  • BSk_mb_cnt2 (i, j): Number of skipped macroblocks in ⁇ SL_cnt (i, j) / 2 ⁇ macroblock line from the bottom of the segment (U)
  • RT (i, j) The occurrence rate of skipped macroblocks in the 2 macroblock lines from the top of the segmented area (i, j)
  • RB (i, j) The occurrence rate of skipped macroblocks in the 2 macroblock lines from the bottom of the segmented area (i, j)
  • RST (i, j) Percentage of skipped macroblocks in segment (i, j) that are present in the ⁇ SL_cnt (i, j) / 2 ⁇ macroblock line from the top
  • RSB (i, j) Percentage of skipped macroblocks in segment (i, j) that are present in ⁇ SL_cnt (i, j) / 2 ⁇ macroblock lines from the bottom
  • N Number of screen divisions in the vertical direction
  • i 0 to N—1
  • j 0 to M— 1 1 ⁇ 13 ⁇ 4 (1,; 0, 1 ⁇ (1,] ')
  • 1 ⁇ 8 (1,; 1) are expressed by the following equations.
  • RT (i, j) ⁇ TSk—mb— cn t Hi, j) / SL2_mb_cnt (i, j) ⁇ X 100
  • RB (i, j) ⁇ BSk_mb_cntl (i, j) / SL2_mb_cnt (i, j) ⁇ X100
  • RST (i, j) ⁇ TSk_ib_cnt2 (i, j) / Sk_mb_cnt (i, j) ⁇ X 100
  • step S401 in FIG. 8 it is determined whether the determination target is a P picture or a B picture.
  • the processing flow ends.
  • the counter is initialized in step S 402
  • MQ s (i, j) is calculated in step S 403.
  • MQ s (i, j) is 70 or more
  • RST (i, j) and RSB (i, j) are calculated in step S405. Further, in step S 406, if i is 1 or more, in step S 407,
  • step S406 determines whether i ⁇ 1 or if it is determined in step S407 that RST (i, j) ⁇ 80, or in step S409.
  • RT (i, j) is If it is determined that it is not 10 or more and RB (i-1,] ′) is not 5 or less, the flow proceeds to step S 411, where it is determined whether i ⁇ N ⁇ 2. If it is determined that i ⁇ N—2 is not satisfied, the flow proceeds to step S 416, but if it is determined that i ⁇ N—2, RSB (i, j) is set to 80 ( Compare with the first freeze predetermined ratio).
  • step S416 If RSB (i, j) is not 80 or more, the flow proceeds to step S416. If RSB (U) is 80 or more, in step S413, RB (i, j), RT (i + Calculate l, j). Further, in step S414, it is determined whether RB (i, j) is 10 (fourth freeze predetermined ratio) or more and RT (i + l, j) is five (fifth freeze predetermined ratio) or less. Is done.
  • RT (i, j) and RB (i, j) may be defined as follows, where the number of macroblocks in the divided area is mb-cnt (i, j).
  • RT (i, j ') ⁇ TSk_mb— cntl (i, j) / mb_cnt (i,] ⁇ ) ⁇ X100
  • RB (i, j) ⁇ BSk_mb_cntl (i, j) / mb_cnt (i,] ⁇ ) ⁇ X100
  • RT (i, j) and RB (i, j) in steps S409 and S414 TSk_mb_cntl (i, j) BSkjnb—cntl (i, j) may be compared with a threshold value.
  • steps S 403 and S 404 the average value of the Quan tiser scale is obtained for all macroblocks of one picture, instead of the average value of the quantizer scale of the divided region (i, j). Also good.
  • FIG. 5 is a flowchart showing processing for determining block distortion performed in the B center image processing apparatus 10.
  • the symbols used in the flowchart have the following meanings.
  • Q S value Quant iser Scale (represents the quantization step size of a macroblock) Value
  • sum_cb Sum of absolute values of decoded color difference signal Cb
  • step S201 of FIG. 5 an average QS value M (Qs) is obtained.
  • step S204 it is determined whether the sampling of the color difference signal is 4: 2: 0, and if it is determined that it is 4: 2: 0, in step S205, the color difference signal is calculated based on the following equation. Calculate the number of samples for the issue.
  • step S206 the sampling of the chrominance signal is 4: 2: 2 or not. If it is determined that the ratio is 4: 2: 2, the number of samples of the color difference signal is calculated based on the following equation in step S207.
  • step S 2 1 7 sum-cb and sum-cr of the color difference signals are calculated.
  • step S 2 1 i + 1, and in step S 2 1 9, until i> cn and c (the total number of samples of the color difference signal) is determined to be satisfied, step S 2 1 Repeat steps 6 to S 2 1 8. If i> cnt_c, it is determined in step S 2 20 that the average value of the luminance 'color difference signal (the value obtained by adding the second block distortion predetermined value to the luminance signal for the decoded data of one picture) And the sum of the color difference signal and the value of the color difference signal are calculated by the following formula.
  • def_dat (sum—y + sum 1 cb + sum—cr) I (cnt—y + cnt 1 c X 2)
  • FIG. 6 is a flowchart showing a mute determination process performed in the B center image processing apparatus 10.
  • cnt_sf Number of scale factors existing in a certain voice section
  • cnt_al exceeds 2623, the number of scale factors cn and sf are counted for each predetermined section included in 2623 in step S309.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A video trouble is detected by a data amount of one picture extracted from an inputted encoded video signal and a QS value indicating the signal thinning degree. Accordingly, there is no need of embedding a marker in advance and it is also detect an existing video in which no marker is embedded.

Description

明細書 映像障害検出装置  Description Image failure detection device
技術分野 本発明は、 符号化映像信号における映像障害等を検出する映像障害検出装置 に関する。 背景技術 近年の映像処理技術の向上により、 ハイビジヨンテレビ放送など高画質な映 像が伝送可能となってきている。 ここで、 ハイビジョン放送にかかるデジタル 映像信号は、 無線或いは有線の伝送手段を介して各家庭に伝送されることとな る。 しかるに、 伝送手段の伝送容量が限られていることから、 データ容量が大 きいデジタル映像信号は、 圧縮されて伝送されることが多い。 圧縮の手法とし ては、いわゆる MPEG(Mo V i n g P i c t u r e Expe r t s G r oup) に従う手法が知られている。 ところが、 圧縮されたデジタル映像を伸長したときに、 画面の一部や全体が 静止するフリーズや、 モザィク状のノィズが生じるブロック歪などの映像欠陥 が生じる恐れがある。 かかる欠陥は、 符号化映像を規定の伝送レートに収める ために画像の情報量を削減することが、 その原因の 1つと考えられる。 これに 対し、 特開 2002— 247606に開示された技術によれば、 符号化前の画 像にマーカを埋め込み、 復号化画像におけるマーカ検出結果に基づいて画質評 価を行なっている。 しかしながら、 かかる従来技術によれば、 画質評価を行なうには、 予め符号 化前の画像にマーカを埋め込む処理が必要であり、 埋め込まれていない画像に つレては画質評価できないという問題がある。 発明の開示 本発明は、 かかる問題点に鑑みてなされたものであり、 符号化映像信号から 映像の欠陥を検出するのに適した映像障害検出装置を提供することを目的とす る。 本発明の映像障害検出装置は、 MP EG (Mov i ng P i c t u r e E xpe r t s Gr oup) 規格に従う符号化映像信号に含まれる符号化情報 に基づいて映像障害を検出する映像障害検出装置において、 TECHNICAL FIELD The present invention relates to a video failure detection apparatus that detects a video failure or the like in an encoded video signal. Background Art Recent improvements in video processing technology have made it possible to transmit high-quality images such as high-vision television broadcasts. Here, digital video signals for high-definition broadcasting are transmitted to each home via wireless or wired transmission means. However, since the transmission capacity of the transmission means is limited, digital video signals with a large data capacity are often transmitted after being compressed. As a compression method, a method according to the so-called MPEG (Moving Picture Experi- ences Group) is known. However, when compressed digital video is decompressed, there may be video defects such as a freeze that partially or entirely freezes the screen, or block distortion that produces mosaic-like noise. One of the reasons for this defect is that the amount of image information is reduced in order to keep the encoded video within the specified transmission rate. On the other hand, according to the technique disclosed in Japanese Patent Laid-Open No. 2002-247606, a marker is embedded in an image before encoding, and image quality evaluation is performed based on the marker detection result in the decoded image. However, according to such a conventional technique, in order to perform image quality evaluation, it is necessary to previously embed a marker in an image before encoding, and there is a problem that image quality evaluation cannot be performed for an unembedded image. DISCLOSURE OF THE INVENTION The present invention has been made in view of such problems, and an object thereof is to provide a video failure detection apparatus suitable for detecting a video defect from an encoded video signal. The video failure detection device of the present invention is a video failure detection device that detects a video failure based on encoded information included in an encoded video signal according to MP EG (Moving Picture Export Group Group) standards.
入力された符号化映像信号から抽出された 1ピクチャのデータ量と、 MPE Gの符号化において用いられる QS (Qu an t i s e r Sc a l e) 値と に基づいて、 映像障害を検出することを特徴とする。 本発明によれば、 入力された符号ィ匕映像信号から抽出された 1ピクチャのデ 一夕量と、 MPEG符号化で用いられる QS値とに基づいて、 映像障害を検出 するので、予めマーカを埋め込む必要はなぐ既存の符号ィ匕映像信号に対して障 害検出が可能になる。 、 更に、 前記映像障害は映像のフリーズであり、 ピクチャ単位での前記 QS値 の平均値が、 第 1のフリーズ所定値未満の場合、 日央像のフリーズが生じた可能 性が低いと判断すると好ましい。 更に、 前記映像障害は映像のフリーズであり、 ピクチャ単位での前記 QS値 の平均値が、 第 1のフリーズ所定値未満であり、 なおかつ、 1ピクチャのデー 夕量が第 2のフリ一ズ所定値未満の場合、 映像のフリ一ズが生じた可能性が低 いと判断すると好ましい。 更に、 1ピクチャを構成するマクロブロックにおいて、 マクロブロックデ一 夕が符号化されず、 スキップされたマクロブロック数をカウントし、 1ピクチ ャのマクロブロック全数に対する、 カウントされた前記マクロブロックの数が 第 1のフリーズ所定割合を超えた場合、 そのピクチャがフリ一ズしていると判 断すると好ましい。 更に、 1ピクチャの横方向のマクロブロックを 1マクロブロックラインとし て、 1マクロブロックラインにおいて、 スキップされたマクロブロック数を力 ゥントし、 その数が第 2のフリーズ所定割合を超えた場合、 そのマクロブロッ クラインはフリ一ズしていると判断すると好ましい。 更に、 1ピクチャのマクロブロックライン全数に対する、 前記フリーズした マク口プロックラインの数が第 3のフリーズ所定割合を超えた場合、 そのピク チヤがフリ一ズしていると判断すると好ましい。 本発明の映像障害検出装置は、 MP EG (Mov i ng P i c t u r e E xpe r t s Gr oup) 規格に従う符号ィ匕映像信号に含まれる符号ィ匕情報 に基づいて映像障害を検出する映像障害検出装置において、 Video failure is detected based on the amount of data of one picture extracted from the input encoded video signal and the QS (Quantizer Scale) value used in MPE G encoding. . According to the present invention, since a video failure is detected based on the amount of one picture extracted from the input encoded video signal and the QS value used in MPEG encoding, a marker is set in advance. Failure detection is possible for existing video signals that need not be embedded. Furthermore, the video failure is a video freeze, and if the average value of the QS values in units of pictures is less than the first freeze predetermined value, it is determined that there is a low possibility that a central image freeze has occurred. preferable. Further, the video failure is a video freeze, the average value of the QS values per picture is less than a first freeze predetermined value, and the amount of data for one picture is a second freeze predetermined. If the value is less than the value, it is preferable that it is determined that the possibility that the video has been frozen is low. Furthermore, in the macroblocks constituting one picture, the number of skipped macroblocks is counted without encoding the macroblock data, and the number of counted macroblocks relative to the total number of macroblocks in one picture is If the first freeze predetermined percentage is exceeded, it is preferable to determine that the picture is frozen. Furthermore, if the macroblock in the horizontal direction of one picture is defined as one macroblock line, the number of skipped macroblocks is counted in one macroblock line, and if that number exceeds the second freeze predetermined ratio, It is preferable to judge that the macroblock line is frozen. Further, when the number of frozen Mac mouth block lines with respect to the total number of macroblock lines of one picture exceeds the third freeze predetermined ratio, it is preferable to determine that the picture is frozen. A video failure detection device according to the present invention is a video failure detection device that detects video failure based on code information included in a video signal that conforms to the MP EG (Moving Picture Export Group) group. ,
入力された符号化映像信号が画面を複数に分割して符号化されている場合、 分割された領域における QS (Quan t i s e r Sc a l e) 値に基づい て、 映像障害を検出することを特徵とする。 更に、 前記映像障害はブロック歪であり、 ピクチャ単位での前記 Q S値の平 均値が、 第 1のブロック歪所定値未満であり、 なおかつ、 1ピクチャの復号デ 一夕に対し、 輝度信号に第 2のブロック歪所定値を加算した値と、 色差信号の 絶対値との総和を平均化し、その平均値が第 3のプロック歪所定値以上の場合、 プロック歪が生じたと判断すると好ましい。 更に、 前記映像障害は映像フリーズであり、 分割された領域単位での前記 Q S値の平均値が、 第 3のフリーズ所定置未満の場合、 映像のフリーズが生じた 可能性が低いと判断すると好ましい。 更に、 画面の上下で隣接する分割された領域において、 マクロブロックデー 夕が符号化されず、 スキップされたマク口プロック数をそれぞれカウントし、 上の領域に対しては、 領域の下半分のマクロブロックにおいて、 スキップされ たマクロブロック数をカウントし、 下の領域に対しては、 領域の上半分のマク ロブ口ックにおいて、 スキップされたマクロブ口ックの数をカウントするとと もに、 それぞれの領域において、 上半分又は下半分の領域におけるスキップさ れたマクロブロックの割合が、 第 3のフリーズ所定割合未満であるとき、 B央像 のフリーズが生じた可能性が低いと判断すると好ましい。 更に、 当該領域の上半分のマクロプロックラインにおけるスキップされたマ ク口プロックの割合が第 3のフリ一ズ所定割合を超えるとき、 当該領域の上か ら 2マクロブロックラインに含まれるスキップされたマクロブロックの数を力 ゥントし、 当該領域のスキップされたマクロプロックの全数に対する割合が第 4のフリーズ所定割合以上であり、 隣接する上の領域において下から 2マクロ ブロックラインに含まれるスキップされたマクロブロックの数を力ゥントし、 上の領域におけるスキップされたマク口プロックの全数に対する割合が第 5の フリーズ所定割合以下であるとき、 当該領域において映像のフリーズが発生し たと判断すると好ましい。 更に、 当該領域の下半分のマクロブロックラインにおけるスキップされたマ クロブロックの割合が第 3のフリ一ズ所定割合を超えるとき、 当該領域の下か ら 2マクロブロックラインに含まれるスキップされたマクロブロックの数を力 ゥントし、 当該領域のスキップされたマク口プロックの全数に対する割合が第 4のフリーズ所定割合以上であり、 隣接する下の領域において上から 2マクロ ブロックラインに含まれるスキップされたマクロブロックの数をカウントし、 下の領域におけるスキップされたマクロプロックの全数に対する割合が第 5の フリーズ所定割合以下であるとき、 当該領域において映像のフリーズが発生し たと判断することを特徴とすると好ましい。 更に、 前記符号化映像信号に多重化された符号化音声信号を復号し、 所定の 区間で音声信号レベルが第 1の音声所定値以下となる連続するサンプル数を力 ゥントし、 そのカウントが第 2の音声所定値以上であるとき、 その区間の音声 信号に対するスケールファクタにおいて、 スケールファクタ値がゼロであり且 つスケールファクタの個数が 1の音声信号が存在する場合、 その区間に無音状 態があると判断し、 スケールファクタ値がゼロ以外であり且つスケールファク 夕の個数が 2以上の音声信号が存在する場合、 その区間にミュートが発生した と判断すると好ましい。 図面の簡単な説明 図 1は、 本実施の形態にかかる映像解析装置 1 0を示すブロック図である。 図 2は、 符号化映像信号の構成を概略的に示す図である。 図 3は、 フリーズマクロプロックラインを説明するための図である。 図 4は、 映像処理装置 1 0において行われるフリ一ズピクチャを判定する処 理を示すフローチヤ一トである。 図 5は、 映像処理装置 1 0において行われるプロック歪を判定する処理を示 すフローチャートである。 図 6は、 B央像処理装置 1 0において行われるミュートを判定する処理を示す フローチヤ一トである。 図 7は、 フリーズマクロブロックラインを説明するための図である。 図 8は、 映像処理装置 1 0において行われるフリーズピクチャ領域を判定す る処理を示すフローチヤ一トである。 図 9は、 音声サンプルの例を示す図である。 発明を実施するための最良の形態 以下、 実施の形態を参照して本発明を説明する。 図 1は、 本実施の形態にか かる映像処理装置 1 0を示すブロック図である。 図 1において、 T S入力イン ターフェース 1 1には、 符号化された映像信号と音声信号 (具体的にはデジ夕 ル映像信号を MP EG— 2により圧縮符号化し、 また、 デジタル音声信号を M PEG— 2 Advanc ed Aud i o C o d i n gにより圧縮符号化 し、 映像信号と多重ィ匕してトランスポート 'ストリームにした信号) が入力さ れ、 これは TS処理部 12において処理される。 エンコードパラメ一夕抽出部 13により、 処理された符号化映像信号からデ —夕量や QS値が抽出され、 これらに基づいてエンコードパラメ一夕解析部 1 4で解析が行われ、 その解析結果に基づいて画質 ·音質判定部 15で、 画質劣 化や音質劣化が判断されるようになっている。 図 2は、符号化映像信号の構成を概略的に示す図である。符号化映像信号は、 制御用の情報を含むシーケンスへッダ S Hと、 映像情報からなるピクチャダル ープ GOPとを交互に連結した構成をとる。 ピクチャグループ GOPは、 少な くとも 1枚の Iピクチャ、さらに Bピクチャや Pピクチヤによって構成される。 Iピクチャを例に取ると、 1ピクチャは複数のスライス Sからなる。 スライスIn the case where the input encoded video signal is encoded by dividing the screen into a plurality of parts, the feature is to detect the video failure based on the QS (Quantiser Scale) value in the divided area. Further, the video failure is block distortion, and the average value of the QS value in units of pictures is less than a first block distortion predetermined value, and the decoded signal of one picture is converted into a luminance signal. Preferably, the sum of the value obtained by adding the second block distortion predetermined value and the absolute value of the color difference signal is averaged, and if the average value is equal to or greater than the third block distortion predetermined value, it is preferable to determine that the block distortion has occurred. Further, the video failure is video freeze, and it is preferable to determine that the possibility of video freeze is low when the average value of the QS values in divided area units is less than the third freeze predetermined position. . In addition, macro block data is not encoded in the divided areas adjacent to the top and bottom of the screen, and the number of blocked macroblocks is counted. For the upper area, the lower half of the macro is counted. In the block, count the number of skipped macroblocks, and for the lower area, count the number of skipped macroblocks in the upper half of the area. When the ratio of skipped macroblocks in the upper half area or the lower half area is less than the third freeze predetermined ratio, it is preferable that it is determined that the possibility of the B center image freeze occurring is low. Furthermore, when the proportion of skipped macroblocks in the upper half macroblock line of the area exceeds the third freeze predetermined ratio, the skipped portion included in the two macroblock lines from the top of the area is skipped. The number of macroblocks is counted, and the percentage of the total number of skipped macroblocks in the area is equal to or greater than the predetermined ratio of the fourth freeze. I ’m going to count the number of macroblocks, When the ratio of the skipped Mac mouth block in the upper area is equal to or less than the fifth freeze predetermined ratio, it is preferable to determine that a video freeze has occurred in the area. Furthermore, when the proportion of skipped macroblocks in the lower half macroblock line of the area exceeds the third freeze predetermined ratio, the skipped macros included in the two macroblock lines from the bottom of the area The number of blocks is counted, and the percentage of the total number of skipped mac block blocks in the area is equal to or greater than the fourth freeze predetermined ratio, and skipped in the 2 macroblock lines from the top in the adjacent lower area When the number of macroblocks is counted and the ratio of the total number of skipped macroblocks in the lower area is equal to or less than the fifth freeze predetermined ratio, it is determined that video freeze has occurred in that area. preferable. Further, the encoded audio signal multiplexed on the encoded video signal is decoded, and the number of consecutive samples in which the audio signal level is equal to or lower than the first audio predetermined value in a predetermined interval is counted, and the count is When the audio signal is equal to or greater than the predetermined audio value of 2, if there is an audio signal with a scale factor of zero and the number of scale factors of 1 for the audio signal in that interval, there is no silence in that interval. If it is determined that there is an audio signal with a scale factor value other than zero and the number of scale factors being 2 or more, it is preferable to determine that mute has occurred in that interval. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a video analysis apparatus 10 according to the present embodiment. FIG. 2 is a diagram schematically showing the configuration of the encoded video signal. FIG. 3 is a diagram for explaining the freeze macroblock line. FIG. 4 is a flowchart showing a process for determining a freeze picture performed in the video processing apparatus 10. FIG. 5 is a flowchart showing a process for determining the block distortion performed in the video processing apparatus 10. FIG. 6 is a flowchart showing a process for determining mute performed in the B center image processing apparatus 10. FIG. 7 is a diagram for explaining the freeze macroblock line. FIG. 8 is a flowchart showing a process for determining a freeze picture area performed in the video processing apparatus 10. FIG. 9 is a diagram showing an example of a voice sample. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described with reference to embodiments. FIG. 1 is a block diagram showing a video processing apparatus 10 according to the present embodiment. In FIG. 1, the TS input interface 1 1 has an encoded video signal and audio signal (specifically, a digital signal). The video signal is compressed and encoded with MP EG-2, and the digital audio signal is compressed and encoded with MPEG-2 Advanced Audio Coding and multiplexed with the video signal to form a transport stream. ) Is input and processed in the TS processing unit 12. The encoding parameter overnight extraction unit 13 extracts the amount of data and the QS value from the processed encoded video signal, and based on these, the encoding parameter overnight analysis unit 14 analyzes the result. Based on this, the image quality / sound quality determination unit 15 determines whether the image quality is deteriorated or the sound quality is deteriorated. FIG. 2 is a diagram schematically showing the configuration of the encoded video signal. The encoded video signal has a structure in which a sequence header SH including control information and a picture loop GOP including video information are alternately connected. A picture group GOP is composed of at least one I picture, B picture, and P picture. Taking an I picture as an example, one picture consists of multiple slices S. slice
Sは、 1ピクチャ分の映像信号に対して、 1ピクチャ上で横方向に切るように 分割されたデータをいう。 一つのスライス Sは複数のマクロブロック M Bから 構成されている。 一つのスライス Sに含まれるマクロブロック数が一定でない 場合もあり、 横方向に複数のスライスが存在する場合もある。 ここでは横方向 のスライスを 1つの単位として扱い、 これをマクロブロックラインと呼ぶこと にする。 一つのマクロブロック MBは、 輝度信号と色差信号のサンプリングフォーマ ットが 4 : 2 : 0の場合、 16X 16画素から成る輝度信号 Yと、 8 X 8画素 から成る色差信号 Cb、 Crそれぞれ一つから構成される。 一方、 輝度信号と 色差信号のサンプリングフォーマツトが 4: 2 : 2の場合、 16X16画素か ら成る輝度信号 Yと、 8 X 8画素から成る色差信号 C b、 C rそれぞれ 2つか ら構成される。 図 3は、 1ピクチャにおける正常なマクロブロックラインとフリーズマクロ ブロックラインを区別して示す図であり、 簡 匕するために、 1マクロブロッ クラインは、 1列で横に並んだ 3 2個のマクロブロックから構成され、 1ピク チヤは縦に並んだ 1 6本のマクロブロックラインからなるものとする。 図 3に おいて、 1マスは 1つのマクロブロックを示し、 これは図 2に示すように 1 6 X 1 6画素で構成されている。 ハッチングされたマクロブロックは、 符号化デ —夕のない、 いわゆるスキップされたマクロブロック (特定マクロブロック) であり、 白抜きのマクロブロックは正常なマクロブロックである。 静止画像では、 ほとんど全てがスキップされたマクロブロックから構成され る。 一方、 フリーズピクチャにおいても、 スキップされたマクロブロックが多 数存在するので、 その切り分けが重要な課題となっている。 本実施の形態では、 1マクロブロックライン中におけるスキップされたマク ロブロック数が、 第 1のフリーズ所定割合 Xを超えたときに、 そのマクロプロ ックラインはフリーズマクロブロックラインと判断し (例えば図 3で、 1 0番 目のマクロプロックライン)、それ以外は正常マク口プロックラインと判断する。 又、 フリーズマクロブロックラインに挟まれた正常マクロプロックラインは、 フリーズマクロブロックラインと見なす (例えば図 3で、 1 1番目のマクロブ ロックライン)。 1ピクチャにおけるフリ一ズマク口プロックラインの数が第 2 のフリーズ所定割合 Yを超えたとき、 そのピクチャは映像がフリ一ズしたフリ —ズピクチャであると判断する。 ここでは、 X= 8 0 %、 Y= 2 0 %と設定す ると、 5, 6番目のフリーズマクロブロックラインに加え、 9〜1 6番目のマ ク口プロックラインがフリ一ズマクロブロックラインとみなされるので、 この ピクチャはフリーズピクチャであると判定できる。 図 4は、 B央像処理装置 10において行われるフリーズピクチャを判定する処 理を示すフローチャートである。 ここで、 フローチヤ一ト内で用いる符号は以 下の意味を持つ。 S is the data divided so that it is cut horizontally on one picture for the video signal for one picture. One slice S consists of multiple macroblocks MB. The number of macroblocks included in one slice S may not be constant, and there may be multiple slices in the horizontal direction. Here, the slice in the horizontal direction is treated as one unit, and this is called a macroblock line. One macroblock MB has one luminance signal Y consisting of 16X16 pixels and one color difference signal Cb, Cr consisting of 8X8 pixels when the sampling format of luminance signal and color difference signal is 4: 2: 0. Consists of On the other hand, if the sampling format of the luminance signal and chrominance signal is 4: 2: 2, it is 16X16 pixels. The luminance signal Y is composed of two color difference signals Cb and Cr composed of 8 X 8 pixels. Figure 3 shows the distinction between a normal macro block line and a freeze macro block line in one picture. For simplicity, one macro block line is arranged horizontally in one row. It is assumed that 1 picture consists of 16 macroblock lines arranged vertically. In FIG. 3, one square represents one macroblock, which is composed of 16 × 16 pixels as shown in FIG. Hatched macroblocks are so-called skipped macroblocks (specific macroblocks) with no coding data, and whiteout macroblocks are normal macroblocks. In the still image, almost all macro blocks are skipped. On the other hand, there are a large number of skipped macroblocks in freeze pictures, so the separation is an important issue. In this embodiment, when the number of skipped macroblocks in one macroblock line exceeds the first freeze predetermined ratio X, the macroblock line is determined to be a frozen macroblock line (for example, FIG. 3). 10th macro block line), otherwise, it is determined to be a normal Mac mouth block line. A normal macro block line sandwiched between freeze macro block lines is regarded as a freeze macro block line (eg, the first macro block line in FIG. 3). When the number of freeze mask block lines in one picture exceeds the second freeze predetermined ratio Y, it is determined that the picture is a frozen picture in which the video is frozen. Here, if X = 80% and Y = 20%, in addition to the 5th and 6th freeze macroblock lines, the 9th to 16th macros Since the block block line is regarded as a freeze macroblock line, it can be determined that this picture is a freeze picture. FIG. 4 is a flowchart showing processing for determining a freeze picture performed in the B-center image processing apparatus 10. Here, the codes used in the flow chart have the following meanings.
Q S値: Quan t i ser Sea 1 e (マクロブロックの量子化ステツプ'サイズを表す) 値  Q S value: Quant i ser Sea 1 e (represents the macroblock quantization step size) Value
M (Qs): QS値の平均値  M (Qs): Average QS value
l b :符号化映像信号の 1ピクチャのデ一夕量 (単位はビット)  l b: The amount of data for one picture of the encoded video signal (unit: bits)
し line一 cnt:連続するフリーズマクロブロックラインの数  Line one cnt: Number of consecutive freeze macroblock lines
し 1 ine_max:連続するフリ一ズマク口ブロックラインの最大数  1 ine_max: Maximum number of continuous freeze-up block lines
f_mb_cnt:スキップされたマクロブロックの数  f_mb_cnt: Number of skipped macroblocks
mb_ idth: 1マクロブロックラインにおけるマクロブロックの全数 mb_height: 1ピクチャにおけるマクロブロックラインの全数  mb_ idth: Total number of macroblocks in one macroblock line mb_height: Total number of macroblock lines in one picture
bl_stat[i] : i番目のマクロブロックラインの状態 (0:正常マクロブロック ライン、 1: フリーズマクロブロックライン)  bl_stat [i]: Status of i-th macroblock line (0: normal macroblock line, 1: freeze macroblock line)
result :判定結果 (0=正常ピクチャ、 1=フリーズピクチャ) 図 4のステップ S 101において、 判定対象が Pピクチャもしくは Bピクチ ャか否かを判断する。 ここで、 判定対象が Pピクチャもしくは Bピクチャでな レ^判断すれば、 ステップ S 129に進んで、 映像障害はないとする判断結果 (0 = r e s u 1 t) を出力して処理フローを終了する。 一方、 判定対象が Pピクチャもしくは Bピクチャであると判断した場合、 ス テツプ S 102で M (Qs) を計算し、 ステップ S 103で I bを計算する。 Quan t i s e r Se a l eの平均値は、 スキップされたマクロブロック を除く全マクロブロックの Qu an t i s e r Se a l eを平均して求める。 マクロブロックに Qu an t i s e r Se a l eが設定されていない場合は、 スライスヘッダの Qu an t i s e r Sc a l eを、 そのスライス内のマク ロブロックの Qu an t i s e r S c a 1 eとして平均値を計算する。 l b は、 エンコードパラメータ抽出部に入力されるビデオの PES (Packe t i z ed E l emen t a ry S t r e am) パケットに含まれる P E S — p a c k e t_d a t a— by t eのビット数をカウントして求める。 更にステツプ S 104で、求めた M (Q s )が 50 (第 1のフリーズ所定値) 以上であり且つ求めた I bが 150, 000 (第 2のフリーズ所定値) 以上で あるか否かを判断する。 求めた M (Qs) が 50未満であり或いは求めた I b が 150, 000未満であれば、 静止画像である可能性が高いので、 ステップ S 129に進んで、 映像障害はないとする判断結果 (0 = r e s u 1 t) を出 力して処理フローを終了する。 これに対し、 求めた M (Q s) が 50以上であり且つ求めた I bが 150, 000以上であれば、 ステップ S 105で、 マクロブロックラインのカウン夕 を初期化 (i = l) として、 ステップ S 106で、 スキップされたマクロプロ ックのカウントを行う。 ステップ S 107において、 1マクロブロックラインのマクロブロック全数 mb_width に対するスキップされたマクロブロックの数 fjnb— cnt の割合 (f_mb_cntX100/mb_width)を、 80 (第 1のフリーズ所定割合)と比較する。 (fjnb— cnt X100/mb— width) < 80である場合、 正常マクロブロックラインと 判断するが、 この場合、 処理されたマクロブロックラインは正常マクロブロッ クラインである (bl—stat[i] = 0) というフラッグをたてる (ステップ S 10 9)。 一方、 (し mb_cntxiOO/mb_width) ≥80である場合、 フリーズマクロブロ ックラインと判断し、 更にステップ S 108で、 前マクロブロックラインがフ リーズマクロブロックラインである (bl— stat[i] = 1) というフラッグをたて る (ステップ S 109)。ステップ S 110で、 i = i + 1とし、 ステップ S 1 11で、 i>mb_height であると判断されるまで (即ちマクロブロックライン 全数を判定するまで)、 ステップ S 106〜S 110を繰り返す。 なお、 図示していないが、 1ピクチャを構成するマクロブロックにおいて、 マクロブロックデ一夕が符号ィ匕されず、 スキップされたマクロプロック数を力 ゥントし、 1ピクチャのマクロブロック全数に対する、 カウントされた前記マ クロブロックの数が第 1のフリーズ所定割合を超えた場合、 そのピクチャがフ リーズしていると判断するようにしても良い。 その後、 ステップ S 112において、 マクロブロックラインのカウンタを i =2とする。続くステップ S 113において、 bし stat[i- l] = l&bl— staUi+l] か否かを判断する。 bl— stat[i- 1]= 1 &bl_stat[i+l]であるということは、 判 定対象となるマクロプロックラインが、 フリーズマクロプロックラインに挟ま れていることを示している。 従って、 この場合には、 判定対象であるマクロブ ロックラインを正常であってもフリーズマクロブロックラインとみなし、 ステ ップ S 114で bl— stat[i]= 1とフラッグをたてる。一方、 bl_stat [i-l]= 1 &bし stat [i+1]でなければ、 正常なマクロブロックラインとする。 ステップ S 115で、 i = i + lとし、 ステップ S 116で、 i≥mb_height であると判 断されるまで(即ちマクロブロックライン全数を判定するまで)、ステップ S 1 13〜S 115を繰り返す。 ステップ S I 17で、 マクロブロックラインのカウンタを初期化 (i = l) として、更にステップ S 118で、フリーズカウン夕を初期ィ匕する(し line_cnt =0 : f— line— max=0)。 ステップ S 119で、 bl— stat [i] = 1か否か判断し、 bl—stat[i] = 0ならば、 ステップ S 120で i = i + 1とした上で、 ステップ S 118で、 フリーズカウンタを初期化する。 一方、 bl_stat[i] = lならば、 ステップ S 121で、 f— line— cnt = f— line— max= 1とし、 i = i + 1とする。 更にステップ S I 22で、 bl_stat[i]=lか否か判断し、 bl— stat [i] = 1な らば、 ステップ S 123で、 f— line— cnt = f— line— max = 1とし、 i = i + 1と して、 ステップ S 124で、 i>mb— height であると判断されるまで (即ちマ クロブロックライン全数を判定するまで)、ステップ S 122〜S 123を繰り 返す。 一方、 ステップ S 122で、 bl— stat[i] = 0ならば、 ステップ S 126で、 し 1 ine_cnt>f_l inejnaxか否かが判断される。し 1 ine— cnt>し 1 inejnaxである と判断されれば、 ステップ S 128で i = i + lとし、 ステップ S 118へと 戻る。 一方、 し line— cnt>f_l inejnaxでないと判断されれば、 ステップ S 12 7でし line_cnt = f— 1 inejnaxとされ、ステップ S 128で i = i + lとし、ス テツプ S 118へと戻る。 このようにして、 1ピクチャにおけるフリーズした マク口ブロックラインの数を求めることができる。 ステップ S 125において、 1ピクチャにおけるマクロブロックラインの全 数 mbjieight に対するフリーズしたマクロブロックの数 し line_cnt の割合 (f_line_cntX100/mb height) が、 20 (第 2のフリーズ所定割合) 以上で あるか否かを判定する。 (f_l ine_cnt X 100 mb_height) ≥2 0である場合、 ステップ S 1 3 0で、 映像のフリーズがあるとする判断結果 ( l = r e s u 1 t ) を出力して処理フローを終了する。 これに対し、 (し l ine_cnt x iOOZ mb_height) < 2 0である場合には、ステップ S 1 2 9に進んで、 B央像のフリー ズはないとする判断結果 ( 0 = r e s u 1 t ) を出力して処理フローを終了す る。 次に、 画面の複数箇所に分散してフリーズが発生する場合の検出方法につい て説明する。 result: Judgment result (0 = normal picture, 1 = freeze picture) In step S 101 of FIG. 4, it is judged whether or not the judgment target is a P picture or a B picture. If it is judged that the judgment target is a P picture or B picture, the process proceeds to step S129, and a judgment result (0 = resu 1 t) indicating that there is no video failure is output and the processing flow is ended. . On the other hand, if it is determined that the determination target is a P picture or a B picture, M (Qs) is calculated in step S102, and Ib is calculated in step S103. The average value of Quantizer Size is obtained by averaging the Quantizer Size of all macroblocks excluding skipped macroblocks. If Quantizer Scale is not set for a macroblock, the average value is calculated using the Quantizer Scale of the slice header as the Quantizer Scale of the macroblock in that slice. lb is obtained by counting the number of bits of PES—packet_data—by te included in the video PES packet that is input to the encoding parameter extraction unit. Further, in step S104, it is determined whether or not the determined M (Q s) is 50 (first freeze predetermined value) or more and the obtained I b is 150,000 (second freeze predetermined value) or more. to decide. If the obtained M (Qs) is less than 50 or the obtained I b is less than 150,000, it is highly possible that the image is a still image, so that the process proceeds to step S129, and the judgment result is that there is no video failure. (0 = resu 1 t) is output to end the processing flow. On the other hand, if the obtained M (Q s) is 50 or more and the obtained I b is 150,000 or more, the macro block line count is initialized (i = l) in step S 105. In step S106, the skipped macro block is counted. In step S107, the ratio of the number of skipped macroblocks fjnb—cnt (f_mb_cntX100 / mb_width) to the total number of macroblocks mb_width of one macroblock line is compared with 80 (first freeze predetermined ratio). (fjnb—cnt X100 / mb—width) If it is <80, it is determined as a normal macro block line. In this case, the processed macro block line is a normal macro block line. A flag “bl—stat [i] = 0” is set (step S 10 9). On the other hand, if (and mb_cntxiOO / mb_width) ≥80, it is determined as a freeze macroblock line, and in step S108, the previous macroblock line is a free macroblock line (bl—stat [i] = 1). (Step S109). In step S110, i = i + 1 is set, and steps S106 to S110 are repeated until it is determined in step S111 that i> mb_height (that is, until the total number of macroblock lines is determined). Although not shown in the figure, in the macroblocks constituting one picture, the macroblock data is not coded, and the number of skipped macroblocks is entered, and the total number of macroblocks in one picture is counted. If the number of macroblocks exceeds the first freeze predetermined ratio, it may be determined that the picture is frozen. Thereafter, in step S112, the macroblock line counter is set to i = 2. In the following step S113, it is determined whether or not b and stat [i-l] = l & bl—staUi + l]. bl— stat [i- 1] = 1 & bl_stat [i + l] indicates that the macro block line to be judged is sandwiched between the freeze macro block lines. Therefore, in this case, the macro block line to be judged is regarded as a frozen macro block line even if it is normal, and a flag “bl—stat [i] = 1” is set in step S114. On the other hand, if bl_stat [il] = 1 & b and stat [i + 1] is not satisfied, a normal macro block line is assumed. In step S115, i = i + l, and in step S116, until it is determined that i≥mb_height (that is, until the total number of macroblock lines is determined), step S1 Repeat 13-S115. In step SI17, the macroblock line counter is initialized (i = l), and in step S118, the freeze count is initialized (line_cnt = 0: f-line-max = 0). In step S119, it is determined whether bl—stat [i] = 1. If bl—stat [i] = 0, then in step S120, i = i + 1, and then in step S118, freeze. Initialize the counter. On the other hand, if bl_stat [i] = l, in step S121, f—line—cnt = f—line—max = 1 and i = i + 1. Further, in step SI 22, it is determined whether bl_stat [i] = l. If bl-stat [i] = 1, then in step S123, f-line-cnt = f-line-max = 1, As i = i + 1, steps S122 to S123 are repeated until it is determined in step S124 that i> mb—height (that is, until the total number of macroblock lines is determined). On the other hand, if bl-stat [i] = 0 in step S122, it is determined in step S126 whether or not 1 ine_cnt> f_l inejnax. If it is determined that 1 ine—cnt> and 1 inejnax, i = i + l is set in step S128, and the process returns to step S118. On the other hand, if it is determined that line-cnt> f_l inejnax is not satisfied, it is determined in step S127 that line_cnt = f-1 inejnax, i = i + l is set in step S128, and the process returns to step S118. In this way, the number of frozen mouth block lines in one picture can be obtained. In step S125, the number of frozen macroblocks to the total number of macroblock lines in one picture, mbjieight, and the ratio of line_cnt (f_line_cntX100 / mb height) is 20 (second freeze predetermined ratio) or more It is determined whether or not there is. When (f_line_cnt X 100 mb_height) ≥2 0, in step S 1 3 0, a determination result (l = resu 1 t) indicating that there is a video freeze is output and the processing flow ends. On the other hand, if (and l ine_cnt x iOOZ mb_height) <2 0, the process proceeds to step S 1 29 and the judgment result (0 = resu 1 t) is determined that there is no freezing of the B center image. Output and end the processing flow. Next, we will explain the detection method when freezes occur at multiple locations on the screen.
MP E Gエンコード時に、 画面を複数に分割して処理する場合があり、 分割 された領域内でフリ一ズが発生する。 図 7にその例を示す。 図 7において、 ハッチングされたマクロブロックは、 符号化データのないス キップされたマクロブロック、 白抜きは正常なマクロブロックを表す。 この例 では、 画面が水平方向に 9分割されており、 フリーズの原因となるスキップさ れたマクロプロックは、 分割された領域内の下から 2マクロプロックラインに 存在する。 画面の分割方式は、 水平方向に 3分割や、 格子状に 6分割などがあり、 また スキップされたマクロプロックも分割領域の上から数スライスに発生する場合 がある。 図 8は、 B央像処理装置 1 0において行われるフリーズピクチャ領域を判定す る処理を示すフローチャートである。 ここで、 フローチャート内で用いる符号 は以下の意味をもつ。 MQs(i, j) :分割領域(i, j)の Qu an t i s e r Se a l eの平均値 SL_cnt :分割領域 (i, j )のマクロブロックラインの数 During MP EG encoding, the screen may be divided into multiple parts and processing may occur, causing a freeze in the divided area. Figure 7 shows an example. In Fig. 7, hatched macroblocks represent skipped macroblocks with no encoded data, and white blocks represent normal macroblocks. In this example, the screen is divided horizontally into nine, and skipped macroblocks that cause freezing are present in the two macroblock lines from the bottom in the divided area. There are three screen division methods, such as 3 divisions in the horizontal direction and 6 divisions in a grid, and skipped macroblocks may also occur in several slices from the top of the division area. FIG. 8 is a flowchart showing a process for determining a freeze picture area performed in the B-center image processing apparatus 10. Here, the symbols used in the flowchart have the following meanings. MQs (i, j): Average value of Quantizer Sale of divided area (i, j) SL_cnt: Number of macroblock lines in divided area (i, j)
SL2_mb_cnt (i, j) :分割領域(i, ]')の 2マクロプロックラインのマクロプロッ ク数  SL2_mb_cnt (i, j): Number of macro-blocks for 2 macro block lines in the divided area (i,] ')
Sk_mb_cnt(i, j) :分割領域(i,j)のスキップされたマクロブロックの全数 Sk_mb_cnt (i, j): Total number of skipped macroblocks in segment (i, j)
TSk_mb_c ntl(i, j):分割領域(i,j)の上から 2マクロブロックラインにおける スキップされたマクロブロックの数 TSk_mb_c ntl (i, j): Number of skipped macroblocks in the 2 macroblock lines from the top of the segment (i, j)
BSk_mb_cn tl(i,j):分割領域( i, j )の下から 2マクロブロックラインにおける スキップされたマクロブロックの数  BSk_mb_cn tl (i, j): Number of skipped macroblocks in the 2 macroblock lines from the bottom of the segment (i, j)
TSk_mb_cnt2(i, j):分割領域(i, ]')の上から {SL_cnt (i, j)/2 }マクロブロック ラインにおけるスキップされたマクロブロックの数  TSk_mb_cnt2 (i, j): Number of skipped macroblocks in {SL_cnt (i, j) / 2} macroblock line from above divided area (i,] ')
BSk_mb_cnt2(i, j) :分割領域(U)の下から {SL_cnt (i, j)/2}マクロブロック ラインにおけるスキップされたマクロブロックの数  BSk_mb_cnt2 (i, j): Number of skipped macroblocks in {SL_cnt (i, j) / 2} macroblock line from the bottom of the segment (U)
RT(i, j):分割領域(i, j )の上から 2マクロブロックラインにおけるスキップ されたマクロブロックの発生率  RT (i, j): The occurrence rate of skipped macroblocks in the 2 macroblock lines from the top of the segmented area (i, j)
RB(i, j):分割領域(i, j)の下から 2マクロブロックラインにおけるスキップ されたマクロブロックの発生率  RB (i, j): The occurrence rate of skipped macroblocks in the 2 macroblock lines from the bottom of the segmented area (i, j)
RST(i,j) :分割領域(i,j)のスキップされたマクロブロックのうち、 上から {SL_cnt (i, j)/2}マクロプロックラインに存在する割合  RST (i, j): Percentage of skipped macroblocks in segment (i, j) that are present in the {SL_cnt (i, j) / 2} macroblock line from the top
RSB(i, j) :分割領域(i, j)のスキップされたマクロブロックのうち、 下から {SL_cnt (i, j)/2}マクロプロックラインに存在する割合  RSB (i, j): Percentage of skipped macroblocks in segment (i, j) that are present in {SL_cnt (i, j) / 2} macroblock lines from the bottom
M:横方向の画面分割数  M: Number of horizontal screen divisions
N:縦方向の画面分割数  N: Number of screen divisions in the vertical direction
result:判定結果 (0=正常ピクチャ領域、 1 =フリーズピクチャ領域) ただし i=0〜N— 1, j=0〜M— 1 1^ 1¾(1,;0、1^(1,]')、1^8(1,;1)は以下の式で表される。 result: Judgment result (0 = normal picture area, 1 = freeze picture area) where i = 0 to N—1, j = 0 to M— 1 1 ^ 1¾ (1,; 0, 1 ^ (1,] '), 1 ^ 8 (1,; 1) are expressed by the following equations.
RT ( i , j ) = {TSk—mb— cn t Hi, j) /SL2_mb_cnt ( i, j ) } X 100  RT (i, j) = {TSk—mb— cn t Hi, j) / SL2_mb_cnt (i, j)} X 100
RB(i, j) = {BSk_mb_cntl (i, j)/SL2_mb_cnt (i, j)}X100  RB (i, j) = {BSk_mb_cntl (i, j) / SL2_mb_cnt (i, j)} X100
RST (i , j ) = {TSk_ib_cnt2 (i, j) /Sk_mb_cnt (i, j ) } X 100  RST (i, j) = {TSk_ib_cnt2 (i, j) / Sk_mb_cnt (i, j)} X 100
RSB ( i, j ) = {BSk_mb_cn t2(i, j) /Sk_ b_cnt (i, j)}xiOO 以下のパラメータから次の判定を行ない、 フリーズを検出する。 まず、 図 8 のステップ S 401で、 判定対象が Pピクチャもしくは Bピクチャか否かを判 断する。 ここで、 判定対象が Pピクチャもしくは Bピクチャでないと判断すれ ば、 処理フローを終了する。 一方、 判定対象が Pピクチャもしくは Bピクチャであると判断した場合、 ス テツプ S 402でカウンタの初期化を行い、 ステップ S 403で MQ s (i, j) を計算する。続くステップ S 404で、 MQs (i,j)を 70 (第 3のフリーズ所 定値) と比較し、 これが 70未満であれば、 フリーズピクチャ領域ではないと 見なし、 ステップ S 415で、 該当領域で映像のフリーズがないとする判断結 果 (0 = r e s u l t) を出力する。 一方、 MQ s (i, j)が 70以上であれば、 ステップ S405で、 RST(i,j)、 RSB(i, j)を計算する。 更にステップ S 406で、 iが 1以上であれば、 ステップ S 407で、 RSB (i, j) = {BSk_mb_cn t2 (i, j) / Sk_b_cnt (i, j)} xiOO The following judgment is performed from the following parameters to detect freeze. First, in step S401 in FIG. 8, it is determined whether the determination target is a P picture or a B picture. Here, if it is determined that the determination target is not a P picture or a B picture, the processing flow ends. On the other hand, if it is determined that the determination target is a P picture or a B picture, the counter is initialized in step S 402, and MQ s (i, j) is calculated in step S 403. In subsequent step S404, MQs (i, j) is compared with 70 (the third freeze value), and if it is less than 70, it is considered not to be a freeze picture area, and in step S415, video is displayed in the corresponding area. The judgment result (0 = result) that there is no freeze is output. On the other hand, if MQ s (i, j) is 70 or more, RST (i, j) and RSB (i, j) are calculated in step S405. Further, in step S 406, if i is 1 or more, in step S 407,
RST(i,j)を 80 (第 3のフリーズ所定割合) と比較し、 RST(i,j)が 80以上で あれば、 ステップ S 408で、 1^( ;|')、1^(卜1,;1)を計算する。更に、 ステップ S409で、 RT(i,jW 0 (第 4のフリーズ所定割合)以上で、且つ RB (卜 1, j) が 5 (第 5のフリーズ所定割合)以下であるか否か判定する。 RT(i,j)が 10以 上で、且つ RB(i- 1,]')が 5以下である場合、 ステップ S 410で、該当領域で映 像のフリーズがあるとする判断結果 (l = r e s u 1 t) を出力し、 フローは ステップ S 416へと進む。 一方、 ステップ S 406で、 i < 1であると判定された場合、 又はステップ S407で、 RST(i,j)<80と判定された場合、 或いはステップ S 409で、 RT(i,j)が 10以上でなく、また RB(i- 1,]')が 5以下でないと判断された場合、 フローはステップ S 411へと進み、 ここで i≤N— 2であるか否か判断され る。 i≤N— 2でないと判断されれば、フローはステップ S 416へと進むが、 i≤N— 2であると判断されれば、 続くステップ S 412で、 RSB(i,j)を 80 (第 1のフリーズ所定割合) と比較する。 RSB(i,j)が 80以上でなければ、 フ ローはステップ S 416へと進むが、 RSB(U)が 80以上であれば、 ステップ S413で、 RB(i, j)、RT(i+l, j)を計算する。 更にステップ S414で、 RB(i,j)が 10 (第 4のフリーズ所定割合)以上で、 且つ RT (i+l, j)が 5 (第 5のフリーズ所定割合)以下であるか否か判断される。 RB(i,j)が 10以上でなぐ或いは RT(i+U)が 5以下でないと判断されれば、 フローはステップ S 416へと進むが、 RB(i,j)が 10以上で、且つ RT(i+l,j) が 5以下であると判断されれば、 ステップ S 410で、 該当領域で映像のフリ ーズがあるとする判断結果 (l = r e s u 1 t) を出力し、 フローはステップ S 416へと進む。 ステップ S 416では、 jが M— 1以上か否か判断し、 j <M— 1であれば、 ステップ S 417で jを 1つカウントアップしてフローをステップ S 403へ と戻す。一方、 j≥ M— 1であれば、 ステップ S 418で、 iが N— 1以上か 否か判断し、 i<N— 1であれば、 ステップ S 419で iを 1つカウントアツ プしてフローをステップ S 403へと戻す。一方、 i≥ N— 1であれば、 1画 面分の検出が終了したものとしてフローを終了する。 なお、 RT(i,j)、 RB(i,j)は、 分割領域のマクロブロックの数を mb— cnt(i,j) として、 以下のように定義しても良い。 Compare RST (i, j) with 80 (the third freeze predetermined ratio). If RST (i, j) is 80 or more, in step S408, 1 ^ (; | '), 1 ^ (卜1,; 1) is calculated. In step S409, it is determined whether RT (i, jW 0 (fourth freeze predetermined ratio) or more and RB (卜 1, j) is five (fifth freeze predetermined ratio) or less. If RT (i, j) is 10 or more and RB (i-1,] ') is 5 or less, it is determined in step S410 that there is a video freeze in the corresponding area (l = resu 1 t) Proceed to step S416. On the other hand, if it is determined in step S406 that i <1, or if it is determined in step S407 that RST (i, j) <80, or in step S409, RT (i, j) is If it is determined that it is not 10 or more and RB (i-1,] ′) is not 5 or less, the flow proceeds to step S 411, where it is determined whether i ≦ N−2. If it is determined that i≤N—2 is not satisfied, the flow proceeds to step S 416, but if it is determined that i ≦ N—2, RSB (i, j) is set to 80 ( Compare with the first freeze predetermined ratio). If RSB (i, j) is not 80 or more, the flow proceeds to step S416.If RSB (U) is 80 or more, in step S413, RB (i, j), RT (i + Calculate l, j). Further, in step S414, it is determined whether RB (i, j) is 10 (fourth freeze predetermined ratio) or more and RT (i + l, j) is five (fifth freeze predetermined ratio) or less. Is done. If it is determined that RB (i, j) is not greater than 10 or RT (i + U) is not less than 5, the flow proceeds to step S416, but RB (i, j) is greater than 10 and If RT (i + l, j) is determined to be 5 or less, in step S410, a determination result (l = resu 1 t) indicating that there is a video freeze in the corresponding area is output, and the flow Advances to step S416. In step S416, it is determined whether j is M−1 or more. If j <M−1, j is incremented by 1 in step S417, and the flow is returned to step S403. On the other hand, if j≥ M−1, in step S418, it is determined whether i is N−1 or more. If i <N−1, i is incremented by 1 in step S419. Return the flow to step S403. On the other hand, if i ≥ N−1, the flow is terminated assuming that one screen has been detected. RT (i, j) and RB (i, j) may be defined as follows, where the number of macroblocks in the divided area is mb-cnt (i, j).
RT(i, j') = {TSk_mb— cntl (i, j)/mb_cnt (i, ]·)} X100  RT (i, j ') = {TSk_mb— cntl (i, j) / mb_cnt (i,] ·)} X100
RB(i, j) = {BSk_mb_cntl (i, j)/mb_cnt (i, ]·)} X100 又、 ステップ S 409, S414において、 RT(i,j)、 RB(i, j)を用いずに、 TSk_mb_cntl(i, j) BSkjnb— cntl (i, j)を閾値と比較しても良い。 更に、ステップ S 403, S404においては、分割領域(i,j)の Quan t i s e r Se a l eの平均値に替えて、 1ピクチャの全マクロブロックに対 して Q uan t i s e r Sc a l eの平均値を求めても良い。 次に、 ピクチャにおいてブロック歪が生じたか否かを検出する方法について 説明する。 ブロック歪とは、 1つのマクロブロック内が一様な色となり、 原画 が再生できない状態をいう。 図 5は、 B央像処理装置 10において行われるブロック歪を判定する処理を示 すフローチャートである。 ここで、 フローチャート内で用いる符号は以下の意 味を持つ。  RB (i, j) = {BSk_mb_cntl (i, j) / mb_cnt (i,] ·)} X100 Also, without using RT (i, j) and RB (i, j) in steps S409 and S414 TSk_mb_cntl (i, j) BSkjnb—cntl (i, j) may be compared with a threshold value. Further, in steps S 403 and S 404, the average value of the Quan tiser scale is obtained for all macroblocks of one picture, instead of the average value of the quantizer scale of the divided region (i, j). Also good. Next, a method for detecting whether block distortion has occurred in a picture will be described. Block distortion is a condition in which the original picture cannot be played back because the color inside a single macroblock is uniform. FIG. 5 is a flowchart showing processing for determining block distortion performed in the B center image processing apparatus 10. Here, the symbols used in the flowchart have the following meanings.
Q S値: Quant iser Scale (マクロブロックの量子化ステツプ ·サイズを表す) 値  Q S value: Quant iser Scale (represents the quantization step size of a macroblock) Value
M (Qs): QS値の平均値  M (Qs): Average QS value
cnt_y:復号された輝度信号のサンプル数  cnt_y: Number of decoded luminance signal samples
cnt— c:復号された輝度信号 Cb, Crのそれぞれのサンプル数  cnt— c: number of samples of decoded luminance signals Cb and Cr
def.dat:輝度、 色差信号の平均値の合計 suraj:復号された輝度信号の合計 def.dat: Sum of average values of luminance and color difference signals suraj: Total decoded luminance signal
sum_cb:復号された色差信号 Cbの絶対値の合計  sum_cb: Sum of absolute values of decoded color difference signal Cb
sum— cr:復号された色差信号 Crの絶対値の合計  sum—cr: Sum of absolute values of decoded color difference signal Cr
mb— width: 1マクロブロックラインにおけるマクロブロックの全数 mb— height: 1ピクチャにおけるマクロブロックラインの全数  mb— width: the total number of macroblocks in one macroblock line mb— height: the total number of macroblock lines in one picture
result :判定結果 (0=正常ピクチャ、 1=ブロック歪ピクチャ) 図 5のステップ S 201において、 QS値の平均値 M (Qs) を求める。 続 くステップ S 202で、 求めた M (Qs) を 25 (第 1のブロック歪所定値) と比較する。 M (Qs) が 25未満であれば、 静止画像である可能性が高いの で、 ステップ S 223に進んで、 ブロック歪はないとする判断結果 (0= r e s u i t) を出力して処理フローを終了する。 これに対し、 M (Qs) が 25以上であれば、 ステップ S 203で、 輝度信 号のサンプル数を計算する (cntj=mb_widthXmb_height)。 更にステップ S 204で、 色差信号のサンプリングが 4: 2 : 0か否かを判断し、 4 : 2 : 0 であると判断した場合には、 ステップ S 205で、 以下の式に基づいて色差信 号のサンプル数を計算する。  result: Judgment result (0 = normal picture, 1 = block distortion picture) In step S201 of FIG. 5, an average QS value M (Qs) is obtained. In subsequent step S202, the obtained M (Qs) is compared with 25 (first block distortion predetermined value). If M (Qs) is less than 25, there is a high possibility that the image is a still image, so proceed to step S223 to output the judgment result (0 = resuit) that there is no block distortion and end the processing flow. To do. On the other hand, if M (Qs) is 25 or more, the number of samples of the luminance signal is calculated (cntj = mb_widthXmb_height) in step S203. Further, in step S204, it is determined whether the sampling of the color difference signal is 4: 2: 0, and if it is determined that it is 4: 2: 0, in step S205, the color difference signal is calculated based on the following equation. Calculate the number of samples for the issue.
cnt_y=mb_wid t h X mb— he ight/4 一方、 色差信号のサンプリングが 4: 2 : 0でないと判断した場合、 更にス テツプ S 206で、色差信号のサンプリングが 4: 2: 2か否かを判断し、 4: 2 : 2であると判断した場合、 ステップ S 207で、 以下の式に基づいて色差 信号のサンプル数を計算する。  cnt_y = mb_wid th X mb—height / 4 On the other hand, if it is determined that the sampling of the chrominance signal is not 4: 2: 0, then in step S206, the sampling of the chrominance signal is 4: 2: 2 or not. If it is determined that the ratio is 4: 2: 2, the number of samples of the color difference signal is calculated based on the following equation in step S207.
cnt v=mb_ idthXmb_height/2 これに対し、 色差信号のサンプリングが 4: 2 : 2でないと判断した場合、 S 2 0 8で、 以下の式に基づいて色差信号のサンプル数を計算する。 cnt v = mb_ idthXmb_height / 2 On the other hand, if it is determined that the sampling of the chrominance signal is not 4: 2: 2, the sample number of the chrominance signal is calculated based on the following formula in S208.
cn t_y=mb_w idthx rab_ e i gh t その後、 ステップ S 2 0 9でカウンタを初期化 (i = 0 ) とし、 ステップ S 2 1 0において、判定対象が Pピクチャもしくは Bピクチャか否かを判断する。 ここで、 判定対象が Pピクチャもしくは Bピクチャであると判断すれば、 ステ ップ S 2 1 2に進み、 判定対象が Pピクチャもしくは Bピクチャであると判断 すれば、 ステップ S 2 1 1で、 復号された輝度信号に 1 2 8を加算する。 ステップ S 2 1 2において、 輝度信号の合計 sum— yを計算する。 更にステツ プ S 2 1 3で、 i = i + 1とし、 ステップ S 2 1 4で、 i >cnt_y (輝度信号の 全てのサンプル数) であると判断されるまで、 ステップ S 2 1 0〜S 2 1 3を 繰り返す。 i >cnt_yであると判断されたときは、 ステップ S 2 1 5でカウンタを初期 化し(i = 1 )、ステップ S 2 1 6で復号された色差信号 C b、 C rの絶対値を 計算し、 ステップ S 2 1 7で、色差信号の合計 sum— cb、 sum— crを計算する。更 にステップ S 2 1 8で、 i = i + 1とし、 ステップ S 2 1 9で、 i >cnし c (色 差信号の全てのサンプル数) であると判断されるまで、 ステップ S 2 1 6〜S 2 1 8を繰り返す。 i >cnt_c であると判断されたときは、 ステップ S 2 2 0で、 輝度'色差信 号の平均値 (1ピクチャの復号データに対し、 輝度信号に第 2のブロック歪所 定値を加算した値と、 色差信号の; ίβΜ値との総和を平均ィ匕した値) を、 以下の 式により計算する。 def_dat= (sum— y+sum一 cb+sum— cr) I (cnt— y+cnt一 c X 2 ) ステップ S 2 2 1において、 deし dat が 1 3 1 (第 3のブロック歪所定値) 以上か否かを判断する。 deし dat が 1 3 1未満であれば、 ステップ S 2 2 3に 進んで、 ブロック歪はないとする判断結果 ( 0 = r e s u 1 t ) を出力して処 理フローを終了する。 これに対し、 def—dat が 1 3 1以上であれば、 ステップ S 2 2 2に進んで、 ブロック歪が生じたとする判断結果 ( l = r e s u 1 t ) を出力して処理フローを終了する。 次に、 符号化映像信号に付随する音声信号 (音声に限らない) において、 ミ ユートが生じたか否かを判定する。 ミュートとは、 符号^:された音声信号を複 号したときに、 無音状態で再生される現象をいう。 図 6は、 B央像処理装置 1 0において行われるミュートを判定する処理を示す フローチャートである。 cn t_y = mb_w idthx rab_ei gh t Thereafter, the counter is initialized (i = 0) in step S 2 0 9, and in step S 2 1 0, it is determined whether or not the determination target is a P picture or a B picture. If it is determined that the determination target is a P picture or a B picture, the process proceeds to step S 2 1 2. If it is determined that the determination target is a P picture or a B picture, in step S 2 1 1, Add 1 2 8 to the decoded luminance signal. In step S 2 1 2, the sum of luminance signals sum—y is calculated. Further, in step S 2 1 3, i = i + 1, and in step S 2 1 4, until it is determined that i> cnt_y (the total number of luminance signal samples), steps S 2 1 0 to S 2 1 3 Repeat. When it is determined that i> cnt_y, the counter is initialized at step S 2 15 (i = 1), and the absolute values of the color difference signals C b and C r decoded at step S 2 16 are calculated. In step S 2 1 7, sum-cb and sum-cr of the color difference signals are calculated. Further, in step S 2 1 8, i = i + 1, and in step S 2 1 9, until i> cn and c (the total number of samples of the color difference signal) is determined to be satisfied, step S 2 1 Repeat steps 6 to S 2 1 8. If i> cnt_c, it is determined in step S 2 20 that the average value of the luminance 'color difference signal (the value obtained by adding the second block distortion predetermined value to the luminance signal for the decoded data of one picture) And the sum of the color difference signal and the value of the color difference signal are calculated by the following formula. def_dat = (sum—y + sum 1 cb + sum—cr) I (cnt—y + cnt 1 c X 2) In step S 2 2 1, de dat is 1 3 1 (the third block distortion predetermined value) It is determined whether or not this is the case. If de and dat is less than 1 3 1, the process proceeds to step S 2 2 3, and a determination result (0 = resu 1 t) indicating that there is no block distortion is output and the processing flow is terminated. On the other hand, if def-dat is equal to or greater than 1 3 1, the process proceeds to step S 2 2 2, and a determination result (l = resu 1 t) indicating that block distortion has occurred is output and the processing flow is terminated. Next, it is determined whether or not a muting has occurred in an audio signal (not limited to audio) accompanying the encoded video signal. Mute is a phenomenon that is played without sound when a coded audio signal is decoded. FIG. 6 is a flowchart showing a mute determination process performed in the B center image processing apparatus 10.
ALi: i番目の音声信号  ALi: i-th audio signal
cnし al:絶対値 10以下の音声信号が連続するサンプル数  cn and al: Number of consecutive audio signals with an absolute value of 10 or less
cnt_sf :ある音声区間に存在するスケ一ルファクタの数  cnt_sf: Number of scale factors existing in a certain voice section
Sf :前記音声区間のスケールファクタ値  Sf: Scale factor value of the voice interval
resul t:判定結果 (0 =無音、 1 =ミュート) 本実施の形態においては、 符号化信号よりサンプルごとに各値を抽出し、 以 下の処理を行っている。まず、 図 6のステップ S 3 0 1において、 カウン夕を 初期化し (cnし al = 0 )、 ステップ S 3 0 2で、 音声レベルの絶対値 | ALi |が 1 0 (第 1の音声所定値) 以下か否かを判断する。 ここで、 音声レベルの慰寸 値 I ALi Iが 1 0を超えているとすれば、音声レベルが比較的高いと判断できる ので、 ステップ S 303で i = i +1とし、 ステップ S 301へ戻って次の信 号をチェックする。 一方、音声レベルの絶対値 I ALi Iが 10未満であるとすれば、ステップ S 3 04で、 cnt— al=cnt_al+ 1、 i = i + lとし、 ステップ S 302で、 次の信 号について音声レベルの絶対値 I ALi Iが 10 (第 2の音声所定値)以下か否か を判断する。音声レベルの絶対値 I ALi Iが 10を超えているとすれば、ステツ プ S 306で i = i + 1とし、 ステップ S 301へ戻って次の信号をチェック する。 これに対し、音声レベルの絶対値 I ALi Iが 10未満であるとすれば、ステツ プ S 307で、 cnt— al=cnt—al+ 1、 i = i + lとし、 ステップ S 308で、 cnt_alが 2623 (所定の区間:ただし 1024サンプルを 1つの集合として 判定する) を超えるまで、 ステップ S 305〜S 307を繰り返す。 cnt_alが 2623を超えたとき、ステップ S 309で、 2623に含まれる 所定の区間ごとにスケールファクタの個数 cnし sf をカウントする。続くステツ プ S 310で、各区間に cnし sf= 1且つ S ί = 0となる区間があるか判定する。 cnt— si=l且つ S ί = 0である場合には、 無音状態であると判断できるので、 ステップ S311で、 無音であるとする判断結果 (0 = r e s u 1 t) を出力 して処理フローを終了する。 一方、 cnし sf=l且つ S f = 0でない場合には、 ステップ S312で、 ミュートであるとする判断結果 (l = r e s u 1 t) を 出力して処理フ口一を終了する。 図 9に示すように、所定区間の音声レベルの絶対値 I ALi Iがすべて 10未満 であり、その前後に隣接して 576の I ALi I≤10となるサンプルがある場合、 この 2区間に cnt— sf= l且つ S: f = 0となる区間があるときは、無音であると 判断することができる。 result: Determination result (0 = silence, 1 = mute) In this embodiment, each value is extracted for each sample from the encoded signal, and the following processing is performed. First, in step S 3 0 1 of FIG. 6, the countdown is initialized (cn and al = 0), and in step S 3 0 2, the absolute value of the audio level | ALi | is 1 0 (the first predetermined audio value). Judge whether or not: Here, if the comfort level I ALi I of the audio level exceeds 10, it can be determined that the audio level is relatively high. Therefore, i = i + 1 is set in step S303, and the process returns to step S301 to check the next signal. On the other hand, if the absolute value I ALi I of the audio level is less than 10, in step S 3 04 cnt—al = cnt_al + 1, i = i + l, and in step S 302, the audio for the next signal Judge whether the absolute value of the level I ALi I is less than or equal to 10 (second predetermined audio value). If the absolute value I ALi I of the sound level exceeds 10, i = i + 1 is set in step S306, and the process returns to step S301 to check the next signal. On the other hand, if the absolute value of the audio level I ALi I is less than 10, in step S307, cnt—al = cnt—al + 1, i = i + l, and in step S308, cnt_al is Steps S305 to S307 are repeated until 2623 (predetermined interval: 1024 samples are judged as one set) is exceeded. When cnt_al exceeds 2623, the number of scale factors cn and sf are counted for each predetermined section included in 2623 in step S309. In subsequent step S310, it is determined whether or not there is a section in which each section has cn and sf = 1 and S ί = 0. cnt—If si = l and S ί = 0, it can be determined that there is no sound, so in step S311, a determination result (0 = resu 1 t) indicating that there is no sound is output and the processing flow is performed. finish. On the other hand, if cn and sf = l and S f = 0 are not satisfied, a judgment result (l = resu 1 t) indicating that mute is output is output in step S312, and the processing flow ends. As shown in Fig. 9, if the absolute values of the audio levels I ALi I for a given section are all less than 10 and there are 576 I ALi I≤10 adjacent to the front and back, If there is a section where cnt—sf = l and S: f = 0 in these two sections, it can be determined that there is no sound.

Claims

請求の範囲 The scope of the claims
(1) MPEG (Mo v i ng P i c t u r e Ex e r t s G r oup) 規格に従う符号化映像信号に含まれる符号化情報に基づいて映像障 害を検出する映像障害検出装置において、 (1) In a video failure detection device that detects a video failure based on encoded information included in an encoded video signal that complies with the MPEG (Moving Picute Extruts Group) standard,
入力された符号化映像信号から抽出された 1ピクチャのデータ量と、 MPE Gの符号化において用いられる QS (Quan t i s e r Sc a l e) 値と に基づいて、 B央像障害を検出することを特徴とする映像障害検出装置。  It is characterized by detecting the B center image defect based on the amount of data of one picture extracted from the input encoded video signal and the QS (Quantiser Scale) value used in MPE G encoding. Video failure detection device.
(2) 前記映像障害は映像のフリーズであり、 ピクチャ単位での前記 Q(2) The video failure is a video freeze, and the Q in picture units
S値の平均値が、 第 1のフリーズ所定値未満であり、 なおかつ、 1ピクチャの データ量が第 2のフリ一ズ所定値未満の場合、 映像のフリ一ズが生じた可能性 が低いと判断することを特徴とする請求項 1に記載の映像障害検出装置。 If the average value of the S values is less than the first freeze predetermined value and the data amount of one picture is less than the second freeze predetermined value, it is unlikely that a video freeze has occurred. The video failure detection device according to claim 1, wherein the video failure detection device makes a determination.
(3) 1ピクチャを構成するマクロブロックにおいて、 マクロブロック データが符号化されず、 スキップされたマクロブロック数をカウントし、 1ピ クチャのマクロブロック全数に対する、 カウントされた前記マクロブロックの 数が第 1のフリーズ所定割合を超えた場合、 そのピクチャがフリーズしている と判断することを特徴とする請求項 1又は 2に記載の映像障害検出装置。 (3) In a macro block constituting one picture, macro block data is not encoded and the number of skipped macro blocks is counted, and the number of counted macro blocks with respect to the total number of macro blocks of one picture is the first. 3. The video failure detection device according to claim 1, wherein when the predetermined freeze ratio of 1 is exceeded, it is determined that the picture is frozen.
(4) 1ピクチャの横方向のマクロブロックを 1マクロブロックライン として、 1マクロブロックラインにおいて、 スキップされたマクロブロック数 をカウントし、 その数が第 2のフリーズ所定割合を超えた場合、 そのマクロブ ロックラインはフリ一ズしていると判断することを特徴とする請求項 1〜 3の いずれかに記載の映像障害検出装置。 (4) A macroblock in the horizontal direction of one picture is regarded as one macroblock line, and the number of skipped macroblocks in one macroblock line is counted, and if that number exceeds the second freeze predetermined ratio, that macroblock is counted. 4. The video failure detection device according to claim 1, wherein the lock line is determined to be frozen.
(5) 1ピクチャのマクロブロックライン全数に対する、 前記フリーズ したマクロプロックラインの数が第 3のフリ一ズ所定割合を超えた場合、 その ピクチャがフリーズしていると判断することを特徴とする請求項:!〜 4のいず れかに記載の映像障害検出装置。 (5) When the number of frozen macro block lines with respect to the total number of macro block lines of one picture exceeds a third freeze predetermined ratio, it is determined that the picture is frozen. Section :! The video failure detection device according to any one of to 4.
(6) 前記フリーズしたマクロブロックラインが複数ある場合、 前記フ リーズしたマクロプロックライン間に存在するマクロプロックラインは、 フリ —ズしていると判断することを特徴とする請求項 4又は 5に記載の映像障害検 出装置。 (6) When there are a plurality of the frozen macroblock lines, it is determined that the macroblock lines existing between the frozen macroblock lines are frozen. The described video failure detection device.
(7) MPEG (Mo v i n g P i c t u r e Expe r t s G r oup) 規格に従う符号化映像信号に含まれる符号化情報に基づいて映像障 害を検出する映像障害検出装置において、 (7) In a video failure detection device that detects a video failure based on encoded information contained in an encoded video signal that complies with the MPEG (Mov ng Pic Expe r Exp rts Group) standard,
入力された符号ィ匕映像信号が画面を複数に分割して符号化されている場合、 分割された領域における QS (Quan t i s e r Sc a l e) 値に基づい て、 映像障害を検出することを特徴とする映像障害検出装置。  When the input video signal is coded by dividing the screen into multiple parts, the video failure is detected based on the QS (Quantiser Scale) value in the divided area. Video failure detection device.
(8) 前記映像障害はブロック歪であり、 ピクチャ単位での前記 QS値 の平均値が、 第 1のブロック歪所定値未満であり、 なおかつ、 1ピクチャの復 号データに対し、 輝度信号に第 2のブロック歪所定値を加算した値と、 色差信 号の絶対値との総和を平均化し、 その平均値が第 3のプロック歪所定値以上の ±易合、 ブロック歪が生じたと判断することを特徴とする請求項 7のいずれかに 記載の映像障害検出装置。 (9) 前記映像障害は映像フリーズであり、 分割された領域単位での前 記 Q S値の平均値が、 第 3のフリ一ズ所定置未満の場合、 映像のフリ一ズが生 じた可能性が低いと判断することを特徴とする請求項 7記載の映像障害検出装 置。 (8) The video failure is block distortion, and an average value of the QS values in units of pictures is less than a first block distortion predetermined value. Average the sum of the value obtained by adding the block distortion predetermined value of 2 and the absolute value of the color difference signal, and determine that the average value is greater than or equal to the third block distortion predetermined value, or that block distortion has occurred. The video failure detection device according to claim 7, wherein (9) The video failure is a video freeze, and if the average QS value in the divided area unit is less than the third freeze predetermined position, a video freeze occurs. The video failure detection device according to claim 7, wherein the video failure detection device determines that there is a low possibility that the video failure has occurred.
( 1 0 ) 画面の上下で隣接する分割された領域において、 マクロブロッ クデ一夕が符号化されず、 スキップされたマクロプロック数をそれぞれカウン トし、 上の領域に対しては、 領域の下半分のマクロブロックにおいて、 スキッ プされたマクロブロック数をカウントし、 下の領域に対しては、 領域の上半分 のマクロブロックにおいて、 スキップされたマクロブロックの数を力ゥントす るとともに、 それぞれの領域において、 上半分又は下半分の領域におけるスキ ップされたマクロブロックの割合が、第 3のフリーズ所定割合未満であるとき、 映像のフリーズが生じた可能性が低いと判断することを特徴とする請求項 7記 載の映像障害検出装置。 (1 0) In the divided areas adjacent to the top and bottom of the screen, the number of skipped macroblocks is not counted and the number of skipped macroblocks is counted. In the lower half of the macroblock, the number of skipped macroblocks is counted, and for the lower area, the number of skipped macroblocks in the upper half of the area is incremented. When the ratio of skipped macroblocks in the upper half area or lower half area is less than the third freeze predetermined ratio, it is determined that the possibility of video freeze is low. The video failure detection device according to claim 7.
( 1 1 ) 当該領域の上半分のマクロブロックラインにおけるスキップさ れたマクロブロックの割合が第 3のフリーズ所定割合を超えるとき、 当該領域 の上から 2マクロブロックラインに含まれるスキップされたマクロブロックの 数を力ゥントし、 当該領域のスキップされたマク口プロックの全数に対する割 合が第 4のフリーズ所定割合以上であり、 隣接する上の領域において下から 2 マクロブロックラインに含まれるスキップされたマク口ブロックの数を力ゥン トし、 上の領域におけるスキップされたマクロプロックの全数に対する割合が 第 5のフリーズ所定割合以下であるとき、 当該領域において映像のフリ一ズが 発生したと判断することを特徴とする請求項 1 0に記載の映像障害検出装置。 (1 1) When the proportion of skipped macroblocks in the upper half macroblock line of the area exceeds the third freeze predetermined ratio, the skipped macroblocks included in the two macroblock lines from the top of the area The percentage of the total number of skipped Mac mouth blocks in the area is equal to or greater than the fourth freeze predetermined ratio, and the skipped area included in the two macroblock lines from the bottom in the adjacent upper area When the number of block blocks is counted up and the ratio of the total number of skipped macroblocks in the upper area is equal to or lower than the fifth freeze predetermined ratio, it is determined that the video has been frozen in that area. The video failure detection apparatus according to claim 10, wherein:
( 1 2 ) 当該領域の下半分のマクロブロックラインにおけるスキップさ れたマクロプロックの割合が第 3のフリーズ所定割合を超えるとき、 当該領域 の下から 2マクロブロックラインに含まれるスキップされたマク口ブロックの 数を力ゥントし、 当該領域のスキップされたマク口プロックの全数に対する割 合が第 4のフリーズ所定割合以上であり、 隣接する下の領域において上から 2 マクロブロックラインに含まれるスキップされたマクロブロックの数をカウン トし、 下の領域におけるスキップされたマクロブロックの全数に対する割合が 第 5のフリーズ所定割合以下であるとき、 当該領域において映像のフリーズが 発生したと判断することを特徴とする請求項 1 0又は 1 1に記載の映像障害検 出装置。 (1 2) When the proportion of skipped macroblocks in the lower half macroblock line of the area exceeds the third freeze predetermined ratio, the skipped macro mouth included in the two macroblock lines from the bottom of the area Block The number of skipped macros included in the two macroblock lines from the top in the adjacent lower region is greater than the fourth freeze predetermined percentage, and the percentage of the total number of skipped Mac mouth blocks in the region is counted. The number of blocks is counted, and when the ratio of the total number of skipped macroblocks in the lower area is equal to or lower than the fifth freeze predetermined ratio, it is determined that video freeze has occurred in that area. The video failure detection device according to claim 10 or 11.
( 1 3 ) 前記符号化映像信号に多重化された符号化音声信号を復号し、 音声信号レベルが第 1の音声所定値以下となる連続するサンカレ数をカウント し、 そのカウントが第 2の音声所定値以上であるとき、 その連続するサンプル 内に含まれる所定区間において、 音声信号に対するスケールファクタ値がゼロ であり且つスケールファクタの個数が 1の所定区間が存在する場合、 そのサン プル内に無音状態があると判断し、 スケールファク夕値がゼロ以上であり且つ スケールファクタの個数が 2以上の所定区間が存在する場合、 そのサンプルに ミユートが発生したと判断することを特徴とする請求項 1〜 7のいずれかに記 載の映像障害検出装置。 (1 3) Decode the encoded audio signal multiplexed with the encoded video signal, count the number of consecutive samples where the audio signal level is equal to or lower than the first audio predetermined value, and the count is the second audio When the value is greater than or equal to a predetermined value, if there is a predetermined interval with a scale factor value of zero for the audio signal and the number of scale factors in the predetermined interval included in the consecutive samples, there is no silence in that sample. It is determined that there is a state, and when there is a predetermined interval in which the scale factor value is zero or more and the number of scale factors is two or more, it is determined that a mute has occurred in the sample. The video failure detection device described in any one of ~ 7.
PCT/JP2005/014246 2005-07-28 2005-07-28 Video trouble detection device WO2007013183A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2005/014246 WO2007013183A1 (en) 2005-07-28 2005-07-28 Video trouble detection device
JP2007526803A JPWO2007013183A1 (en) 2005-07-28 2005-07-28 Video failure detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2005/014246 WO2007013183A1 (en) 2005-07-28 2005-07-28 Video trouble detection device

Publications (1)

Publication Number Publication Date
WO2007013183A1 true WO2007013183A1 (en) 2007-02-01

Family

ID=37683091

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2005/014246 WO2007013183A1 (en) 2005-07-28 2005-07-28 Video trouble detection device

Country Status (2)

Country Link
JP (1) JPWO2007013183A1 (en)
WO (1) WO2007013183A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220210415A1 (en) * 2020-12-28 2022-06-30 Advanced Micro Devices, Inc. Still frame detection in video data

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06133250A (en) * 1992-10-15 1994-05-13 Hitachi Ltd Voice mute detection circuit
JPH06165075A (en) * 1992-11-20 1994-06-10 Hitachi Ltd Voice mute detecting circuit
JP2000115766A (en) * 1998-09-29 2000-04-21 Ando Electric Co Ltd Moving picture reproduction analyzer
JP2001186514A (en) * 1999-12-07 2001-07-06 Tektronix Inc Method and device for detecting repeated frame of video signal
JP2002262312A (en) * 2001-02-06 2002-09-13 Tektronix Inc Method and device for detection of frozen field
JP2002359847A (en) * 2001-06-01 2002-12-13 K Solution:Kk Device for monitoring moving image
JP2003204562A (en) * 2001-07-19 2003-07-18 Kdd Media Will Corp Signal monitoring system
JP2003204561A (en) * 2001-10-31 2003-07-18 Kddi Corp Apparatus for detecting image quality deterioration

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06133250A (en) * 1992-10-15 1994-05-13 Hitachi Ltd Voice mute detection circuit
JPH06165075A (en) * 1992-11-20 1994-06-10 Hitachi Ltd Voice mute detecting circuit
JP2000115766A (en) * 1998-09-29 2000-04-21 Ando Electric Co Ltd Moving picture reproduction analyzer
JP2001186514A (en) * 1999-12-07 2001-07-06 Tektronix Inc Method and device for detecting repeated frame of video signal
JP2002262312A (en) * 2001-02-06 2002-09-13 Tektronix Inc Method and device for detection of frozen field
JP2002359847A (en) * 2001-06-01 2002-12-13 K Solution:Kk Device for monitoring moving image
JP2003204562A (en) * 2001-07-19 2003-07-18 Kdd Media Will Corp Signal monitoring system
JP2003204561A (en) * 2001-10-31 2003-07-18 Kddi Corp Apparatus for detecting image quality deterioration

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220210415A1 (en) * 2020-12-28 2022-06-30 Advanced Micro Devices, Inc. Still frame detection in video data
US11706415B2 (en) * 2020-12-28 2023-07-18 Advanced Micro Devices, Inc. Still frame detection in video data

Also Published As

Publication number Publication date
JPWO2007013183A1 (en) 2009-02-05

Similar Documents

Publication Publication Date Title
JP4261508B2 (en) Video decoding device
US20030123841A1 (en) Commercial detection in audio-visual content based on scene change distances on separator boundaries
KR101488548B1 (en) Video indexing method, and video indexing device
JP4196726B2 (en) Image processing apparatus, image processing method, recording medium, and program
US20060256868A1 (en) Methods and systems for repositioning mpeg image content without recoding
US20070002953A1 (en) Encoded stream reproducing apparatus
AU719060B2 (en) Motion picture converting apparatus
WO1994022268A1 (en) Method for coding or decoding time-varying image, and apparatuses for coding/decoding
CN110312163B (en) Video static frame detection method and system
US6219067B1 (en) Measures for characterizing compressed bitstreams
KR20070119254A (en) Video watermarking apparatus in compression domain and method using the same
US8244061B1 (en) Automated detection of source-based artifacts in an information signal
US7729425B2 (en) Image processing apparatus and method, program, and recording medium
WO2013004167A1 (en) Method and device for determining chromaticity prediction mode candidate set
WO2012011340A1 (en) Image processor and image processing method
JP2002027469A (en) Bit stream converting method and device, and program recording medium
WO2007013183A1 (en) Video trouble detection device
JPH11275590A (en) Inter-image compression coder and coding method
JP4295861B2 (en) Transcoder device
JP2002010254A (en) Feature point detection method and record reproduction device
US20100054326A1 (en) Method and apparatus for detecting start and end of a video sequence
JP2006060358A (en) Digital broadcast receiver
CN114422735B (en) Video recorder, video data processing method and device and electronic equipment
US20050084008A1 (en) Image processing apparatus and method, information processing apparatus and method, program, recording medium, and information processing system
CN114422734B (en) Video recorder, video data processing method and device and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2007526803

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 05780170

Country of ref document: EP

Kind code of ref document: A1