Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

H264 NTSC Parameter encoder file

Intel_C_Intel
Employee
695 Views

I'm trying to use the Intel H264 Encoder to encode a raw 720x480 yuv 420 video stream to H264 compressed stream. I'm baffled by the poor documentation about the encoding parameters file. When I try to decode the encoded stream with the JM10.1a test model I end with an error message: "An unintentional loss of pictures occurs".

Could someone from Intel double check my parameters or provide me with parameters value that does work for encoding 720x480 video stream

This is the parameters I used:

ntsc_420.yuv /* name of source files */
120 /* number of frames to encode */
1 10 2 /* 1(reserved) , N (# of frames in between I frames), IDR interval. */
1 0 /* Number of B frames between I (or P) and next P, treat B as a reference (only 0 is supported!) */
3 1 1 /* num_ref_frames (2-16), minimum length of list1 for backward prediction (only 1 is supported!), number of slices. */
77 40 /* profile_idc (77-main, 100-high); level_idc (set 0 for automatic selection) (check that num_ref_frames and frame size are in accordance with the level) */
720 /* horizontal_size */
480/* vertical_size */
5/* frame_rate_code */
1 8 8/* chroma_format_idc (0 - monochrom, 1 - 420), bit_depth_luma [8,12], bit_depth_chroma [8,12] */
8 0 0 0/* bit_depth_aux: [8,12], alpha_incr_flag: 0, 1; alpha_opaque_value: [0, 2^(bit_depth_aux + 9) -1]; alpha_transparent_value: [0, 2^(bit_depth_aux + 9) - 1] */
3 0 0 0 1000000 /* RC method(0 - quant_codes, 1 - CBR MBwise, 2 - CBR framewise, 3 - Debug); start qp values for I, P, B slices; bitrate (bits per second) */
3 1 23 15/* ME method (1-6), subblock split, search x,search_y */
0 0 0/* weighted prediction, weighted biprediction implicit weighted biprediction (not supported!)*/
0 1/* direct type (0 - temporal 1 - spatial); direct_inference_flag */
0 -1 2/* disable_deblocking_idc: 1-- off, 0 - on, 2 -- on(without crossing slice boundaries); deblocking_filter_alpha [-6,6]; deblocking_filter_beta [-6,6] */
0/* transform_8x8_mode: 0 -- off, 1 - on. Is only possible for High profiles. */
720&nbs p;/* display_horizontal_size */
480/* display_vertical_size */
0 0/* entropy coding mode (0-cavlc,1-cabac); cabac_init_idc (0,1,2) */
1/* picture coding type (0 - only FRM, 1 - only FLD , 2 - only AFRM, 3 - pure PicAFF(no MBAFF) 4 PicAFF + MBAFF). Only 0 (FRM) is supported! */
0 sample.log /* log mask and template filename of log-file (0 and "any value" for none) (not supported!) */

0 Kudos
2 Replies
Vladimir_Dudnik
Employee
695 Views

Hello,

do you use our the latest H.264 encoder from IPP 5.2 beta media sample?

Vladimir

0 Kudos
Intel_C_Intel
Employee
695 Views

I'm using 5.1. I believe I might have found a compatibility issue with the H264 specification. I have submitted an issue to premiere.intel.com. and they are investigating.

Thanks

0 Kudos
Reply