>> Hi,<br><div><br></div><div>>> I am attempting to add a scaling list for 8x8 Intra Frame Luminance<br></div>>> (Sl_8x8_Intra_Y in scaling list index 6, as per ITU-T H.264 table<br>>> 7-2) encoding for a video I am encoding in x264 (compiled for 10-bit)<br>
<br><br>>> According to <a href="http://mewiki.project357.com/wiki/X264_Settings#cqm" target="_blank">http://mewiki.project357.com/wiki/X264_Settings#cqm</a><br>>> there should be a --cqm8iy switch available, but attempting to run<br>
>> x264 with the following parameter:<br>>> "--cqm8iy<br>>> 16,19,20,23,24,26,32,42,18,19,22,24,26,32,36,42,18,20,23,24,26,32,36,63,19,20,23,26,32,36,42,63,20,22,24,26,32,36,59,63,22,23,24,26,32,36,59,68,22,23,24,26,32,42,59,68,22,23,24,26,36,42,59,72<br>
<br>>> throws the following error message:<br><br>>> "x264: unrecognized option '--cqm8iy'"<br><br>>Look careful there is no such option in your link because there is no<br>>such option in x264 cli.<br>
<div><br></div><div><br></div><div>--cqm4iy, --cqm4ic, --cqm4py, --cqm4pc: Set individual quant matrices. Same switches exist for cqm8 </div><div>Suggests that there should be a --cqm8iy.</div><div><br></div><div><br></div>
>> Running with<br><br>>> "--cqm8i<br>>> 16,19,20,23,24,26,32,42,18,19,22,24,26,32,36,42,18,20,23,24,26,32,36,63,19,20,23,26,32,36,42,63,20,22,24,26,32,36,59,63,22,23,24,26,32,36,59,68,22,23,24,26,32,42,59,68,22,23,24,26,36,42,59,72<br>
<br>>> runs fine, however, when running h264_parse, the following is observed:<br><br>>> " Pic Scaling List[3] Present Flag: 0<br>>> Pic Scaling List[4] Present Flag: 0<br>>> Pic Scaling List[5] Present Flag: 0<br>
>> Pic Scaling List[6] Present Flag: 0<br>>> Pic Scaling List[7] Present Flag: 0"<br><br><br>>> How does one set Pic_Scaling_List[6] from the commandline?<br><br> It works here <a href="http://privatepaste.com/25a4861dde" target="_blank">http://privatepaste.com/25a4861dde</a> . I used command line:<br>
x264 foreman_cif_352x288.yuv -o test.h264 --cqm8i 16,19,20,23,24,26,32,42,18,19,22,24,26,32,36,42,18,20,23,24,26,32,36,63,19,20,23,26,32,36,42,63,20,22,24,26,32,36,59,63,22,23,24,26,32,36,59,68,22,23,24,26,32,42,59,68,22,23,24,26,36,42,59,72<br>
<div>
Post your full command line.<br></div><div><br></div><div><br></div><div>x264 --profile high422 --level 4.1 -I 1 -i 1 -b 0 -r 0 --no-cabac --bitrate 100000 --8x8dct --partitions i8x8 --nr 100 --videoformat component --range pc --colorprim bt709 --colormatrix bt709 --transfer bt709 --overscan show --tff --chroma-qp-offset 5 --cqm4ic 16,20,26,32,20,26,32,38,26,32,38,44,32,38,44,50 --cqm8i 16,19,20,23,24,26,32,42,18,19,22,24,26,32,36,42,18,20,23,24,26,32,36,63,19,20,23,26,32,36,42,63,20,22,24,26,32,36,59,63,22,23,24,26,32,36,59,68,22,23,24,26,32,42,59,68,22,23,24,26,36,42,59,72 --nal-hrd cbr --pic-struct --aud --fps 25 -v --muxer raw -o $2 $1</div>
<div><br></div><div>Which gives the following Picture Parameter Set:</div><div>Nal length 25 start code 4 bytes <br> ref 3 type 8 Picture parameter set<br> pic_parameter_set_id: 0<br> seq_parameter_set_id: 0<br> entropy_coding_mode_flag: 0<br>
pic_order_present_flag: 1<br> num_slice_groups_minus1: 0<br> num_ref_idx_l0_active_minus1: 0<br> num_ref_idx_l1_active_minus1: 0<br> weighted_pred_flag: 0<br> weighted_bipred_idc: 0<br> pic_init_qp_minus26: 0<br>
pic_init_qs_minus26: 0<br> chroma_qp_index_offset: 3<br> deblocking_filter_control_present_flag: 1<br> constrained_intra_pred_flag: 0<br> redundant_pic_cnt_present_flag: 0<br> transform_8x8_mode_flag: 1<br> pic_scaling_matrix_present_flag: 1<br>
Pic Scaling List[0] Present Flag: 0<br> Pic Scaling List[1] Present Flag: 1<br> delta: 8<br> scaling list[1][0]: 16<br> delta: 4<br> scaling list[1][1]: 20<br> delta: 0<br> scaling list[1][2]: 20<br>
delta: 6<br> scaling list[1][3]: 26<br> delta: 0<br> scaling list[1][4]: 26<br> delta: 0<br> scaling list[1][5]: 26<br> delta: 6<br> scaling list[1][6]: 32<br> delta: 0<br> scaling list[1][7]: 32<br>
delta: 0<br> scaling list[1][8]: 32<br> delta: 0<br> scaling list[1][9]: 32<br> delta: 6<br> scaling list[1][10]: 38<br> delta: 0<br> scaling list[1][11]: 38<br> delta: 0<br> scaling list[1][12]: 38<br>
delta: 6<br> scaling list[1][13]: 44<br> delta: 0<br> scaling list[1][14]: 44<br> delta: 6<br> scaling list[1][15]: 50<br> Pic Scaling List[2] Present Flag: 1<br> delta: 8<br> scaling list[2][0]: 16<br>
delta: 4<br> scaling list[2][1]: 20<br> delta: 0<br> scaling list[2][2]: 20<br> delta: 6<br> scaling list[2][3]: 26<br> delta: 0<br> scaling list[2][4]: 26<br> delta: 0<br> scaling list[2][5]: 26<br>
delta: 6<br> scaling list[2][6]: 32<br> delta: 0<br> scaling list[2][7]: 32<br> delta: 0<br> scaling list[2][8]: 32<br> delta: 0<br> scaling list[2][9]: 32<br> delta: 6<br> scaling list[2][10]: 38<br>
delta: 0<br> scaling list[2][11]: 38<br> delta: 0<br> scaling list[2][12]: 38<br> delta: 6<br> scaling list[2][13]: 44<br> delta: 0<br> scaling list[2][14]: 44<br> delta: 6<br> scaling list[2][15]: 50<br>
Pic Scaling List[3] Present Flag: 0<br> Pic Scaling List[4] Present Flag: 0<br> Pic Scaling List[5] Present Flag: 0<br> Pic Scaling List[6] Present Flag: 0<br> Pic Scaling List[7] Present Flag: 0<br> second_chroma_qp_index_offset: 0</div>
<div><br></div>