[x264-devel] So many NAL units per call
Zubair Ali Khan
zkhan at d2tech.com
Mon May 17 21:13:04 CEST 2010
My issue. Some uninitialized memory was being processed.
It will be nice if someone can comment if the params specified here are
sufficient for ~ 80 kbps encoding for a real time application.
I am not a H.264 expert so several parameter are hard for me to
understand and configure.
Thanks
Zubair
On 05/17/2010 02:34 PM, Zubair Ali Khan wrote:
> Hi
>
> I am getting hundreds and sometimes more than 1000 NAL units in a
> single call to X264 encode function. I am encoding a QVGA sequence.
>
> I remember when I was using x264 through FFMPEG interface, I was
> getting a few NAL units per call.
>
> Wondering whats the reason for that and is there is a way to get a few
> NAL units per call so they are easier to handle?
>
> Parameters are:
>
> x264_param_t *p_ptr = &obj_ptr->params;
> memset(p_ptr, 0, sizeof(obj_ptr->params));
> x264_param_default(p_ptr);
> if (x264_param_default_preset(p_ptr, "fast", "zerolatency") < 0) {
> return;
> }
> if (x264_param_apply_profile(p_ptr, "baseline") < 0) {
> return;
> }
> p_ptr->i_width = 320;
> p_ptr->i_height = 240;
> p_ptr->i_csp = 1;
> p_ptr->i_level_idc = 12;
> p_ptr->rc.i_bitrate = 80;
> p_ptr->i_frame_total = 0;
>
>
> Thanks
>
--
Zubair Khan
Director of Technology
SB Office: 104 W Anapamu St, Suite J, Santa Barbara, CA 93110
MA Office: 105 Woodside Rd, Sudbury, MA 01776
Phone: +1-805-564-3424 x 420
Fax: +1-805-966-2144
Skype: d2_zkhan
Yahoo: d2.zkhan
Web: http://www.d2tech.com
More information about the x264-devel
mailing list