Note that there are some explanatory texts on larger screens.

plurals
  1. POaccelerate x264 encoding
    text
    copied!<p>i am making use of x264 to encode raw data captured from the iphone camera .. but the encoding is very slow .Can anyone help me accelerate the encoding speed.</p> <p>I have used following settings to build x264 lib:</p> <p>//for armv6</p> <p>CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk --prefix='dist' --extra-cflags='-arch armv6' --extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/system/ --extra-ldflags='-arch armv6' --enable-pic --disable-asm </p> <p>//for armv7</p> <p>CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk --prefix='dist' --extra-cflags='-arch armv7' --extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/system/ --extra-ldflags='-arch armv7' --enable-pic</p> <p>I am using default preset like this:</p> <pre><code>x264_param_default_preset(param, "slow", "zerolatency"); </code></pre> <p>and setting few perameters:</p> <pre><code>param-&gt;i_bframe = 0; param-&gt;analyse.i_me_method = X264_ME_HEX; param-&gt;analyse.i_subpel_refine = 2; param-&gt;i_frame_reference = 1; param-&gt;analyse.b_mixed_references = 0; param-&gt;analyse.i_trellis = 0; param-&gt;rc.b_mb_tree = 0; param-&gt;analyse.i_weighted_pred = X264_WEIGHTP_NONE; param-&gt;rc.i_bitrate = 180; param-&gt;rc.i_qp_min = 20; param-&gt;rc.i_qp_max = 26; param-&gt;i_keyint_max = 15; param-&gt;i_keyint_min = 15; param-&gt;i_width = w; param-&gt;i_height = h; x264_param_apply_profile(param, "baseline"); x264_picture_alloc( &amp;(enc-&gt;pic), X264_CSP_I420, param-&gt;i_width, param-&gt;i_height ); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload