[x264-devel] x264 output invalid stream (--interlaced --crf --8x8dct)

MOGI, Kazuhiro kazhiro at marumo.ne.jp
Thu Jul 5 16:42:27 CEST 2007


Hi. I encounted x264's bug. details below.

What's I do: 
  encode RAW420 file with --interlaced, --crf and --8x8dct options.

What's I get:
  x264 successfully finished encode, but JM(12.2) output abnormal
  (almost all green) frame.

The bug detail and reproduction step:

  - output stream

    http://www.marumo.ne.jp/junk/img/x264/interlaced_crf_8x8dct_error.264

  - input source

    http://www.marumo.ne.jp/junk/img/x264/football.420
    # the file is converted from VQEG src19_ref__525.yuv
    # clip bottom 6 lines, and UYVY -> RAW420

  - using binary

    http://mirror01.x264.nl/x264/revision663/x264.exe

  - running enviroment

    winxp sp2 (japanease) 

  - command line

    x264 \
    --keyint 300 --min-keyint 5 --bframes 2 --ref 3 \
    --interlaced --crf 20.0 --8x8dct \
    --ipratio 1.2 --pbratio 1.1 --direct spatial \
    --weightb --me umh --subme 7 \
    --no-chroma-me --bime --mixed-refs --b-rdo \
    --no-fast-pskip --no-dct-decimate --cqm jvt \
    --verbose \
    -o test.264 football.420 720x480 > enc.log 2>&1

  - JM decode error detail

    frame #205 (2nd GOP, POC:248) is almost all green.

  - JM trace.log error point

Annex B NALU w/ long startcode, len 14831, forbidden_bit 0, nal_reference_idc 0, nal_unit_type 1

@9832   SH: first_mb_in_slice                                        1  (  0)
@9833   SH: slice_type                                           00111  (  6)
@9838   SH: pic_parameter_set_id                                     1  (  0)
@9839   SH: frame_num                                       0001100001  ( 97)
@9849   SH: field_pic_flag                                           0  (  0)
@9850   SH: pic_order_cnt_lsb                              00011111000  (248)
@9861   SH: direct_spatial_mv_pred_flag                              1  (  1)
@9862   SH: num_ref_idx_override_flag                                1  (  1)
@9863   SH: num_ref_idx_l0_active_minus1                           011  (  2)
@9866   SH: num_ref_idx_l1_active_minus1                             1  (  0)
@9867   SH: ref_pic_list_reordering_flag_l0                          0  (  0)
@9868   SH: ref_pic_list_reordering_flag_l1                          0  (  0)
@9869   SH: cabac_init_idc                                           1  (  0)
@9870   SH: slice_qp_delta                                     0001100  (  6)
@9877   SH: disable_deblocking_filter_idc                            1  (  0)
@9878   SH: slice_alpha_c0_offset_div2                               1  (  0)
@9879   SH: slice_beta_offset_div2                                   1  (  0)

*********** POC: 248 (I/P) MB: 0 Slice: 0 Type 1 **********
@11178867 mb_skip_flag		0	0 0
@11178868 mb_skip_flag (of following bottom MB)		1	0 0
@11178869 mb_field_decoding_flag (of following bottom MB)		1

*********** POC: 248 (I/P) MB: 1 Slice: 0 Type 1 **********
@11178870 mb_skip_flag		1	0 0
@11178871 mb_field_decoding_flag		1
@11178872 mb_type			0
@11178873 coded_block_pattern			3
@11178874 transform size 8x8 flag		1	0 0
@11178875 mb_qp_delta			0
@11178876 Luma8x8 sng 			1	0
@11178877 Luma8x8 sng 			-1	0
@11178878 Luma8x8 sng 			-2	0
@11178879 Luma8x8 sng 			-1	2
@11178880 Luma8x8 sng 			-1	0
@11178881 Luma8x8 sng 			-2	3
@11178882 Luma8x8 sng 			-1	1
@11178883 Luma8x8 sng 			-1	4
@11178884 Luma8x8 sng 			0	0
@11178885 Luma8x8 sng 			-1	0
@11178886 Luma8x8 sng 			1	4
@11178887 Luma8x8 sng 			0	0
@11178888 Decode Sliceterm		0

*********** POC: 248 (I/P) MB: 2 Slice: 0 Type 1 **********
@11178889 mb_skip_flag		0	0 0
@11178890 mb_skip_flag (of following bottom MB)		0	1 0

*********** POC: 248 (I/P) MB: 3 Slice: 0 Type 1 **********
@11178891 mb_skip_flag		0	1 0
@11178892 Decode Sliceterm		0

*********** POC: 248 (I/P) MB: 4 Slice: 0 Type 1 **********
@11178893 mb_skip_flag		0	0 0
@11178894 mb_skip_flag (of following bottom MB)		1	0 0
@11178895 mb_field_decoding_flag (of following bottom MB)		0

*********** POC: 248 (I/P) MB: 5 Slice: 0 Type 1 **********
@11178896 mb_skip_flag		1	0 0
@11178897 mb_field_decoding_flag		0
@11178898 mb_type			2
@11178899 mvd_l1			-2 
@11178900 mvd_l1			0 
@11178901 coded_block_pattern			0
@11178902 Decode Sliceterm		1

    JM found "Decode Sliceterm=1" on MB: 5 and ignored all remain
    slice data.

Best regards.
--------
MOGI, Kazuhiro
kazhiro at marumo.ne.jp
_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
http://mailman.videolan.org/listinfo/x264-devel


More information about the x264-devel mailing list