iphone - accelerate x264 encoding -


I am using x264 to encrypt raw data captured with an iPhone camera. But the encoding is too slow is. Anybody can help me speed up the encoding speed.

I use x264 lib:

// armv6

cc = / developer / platform / iPhoneOS to use the following settings. Plat / Developer / USR / Bin / GCC / Configure - host = Arm-Sep-Darwin - Serial = / Developer / Platforms / iPhoneOS Platform / Developer / SDK / iPhoneOSOS 4.3 SDK - prefix = 'dist' - accera-seflags = '- Command with armv6' --extra-ldflags = -L / Developer / Platforms / iPhoneOS Platform / Developer / SDK / iPhoneOSO 4.3 SDK / USR / Lib / System / - Extra-LD Flag = '- Command with armv6' --enable-pic --disable-asm

// for armv7 < / P>

cc = / developer / platform / iPhoneOS.platform / developer / usr / bin / gcc ./configure --host = arm-apple-darwin --sysroot = / developer / platform / iPhoneOS.platform / developer / SDKs / iPhoneOS4.3.sdk --prefix = 'dist' --extra-cflags = '-arch armv7' --extra-ldflags = -L / developer / platform / iPhoneOS Platform / Dev Lop / SDK / iPhoneOS 4.3.sdk / usr / lib / system / --extra-ldflags = '- Arm Arv7' - Enabled-Picture

I like using default presets like this I am:

  x264_param_default_preset (absolute, "slow", "zerolantation");  

And setting some parameters:

  param-> I_bframe = 0; Param-> gt; Analysis. I_me_method = X264_ME_HEX; Param-> gt; Analyse.i_subpel_refine = 2; Param- & gt; I_frame_reference = 1; Param-> gt; Analysis; B_micht_references = 0; Ultimate- gt; Analysis. I_trellis = 0; Ultimate-> RCB_MB_Tree = 0; Param- & gt; Analysis. I_weighted_pred = X264_WEIGHTP_NONE; Param-> gt; Rc.i_bitrate = 180; Param-> gt; Rc.i_qp_min = 20; Ultimate-> RCI_Copy_Max = 26; Ultimate-> i_keyint_max = 15; Param- & gt; I_keyint_min = 15; Param-> i_width = w; Ultimate-> i_height = h; X264_best_plus_profile (Ultimate, "Baseline"); X264_picture_alloc (& amp; (Anch-> photo), X264_CSP_I420, ultimate-> i_width, param-> i_height);  

If you use the default preset:

 < Code> X264_param_default_preset (Ultimate, "Forfast", "Zerolancy"); Maybe you will have some advantage in motion, yet I do not think an iPhone will be able to encode the video with X 264 at very high speeds. I have never developed anything for the iPhone, but usually those embedded systems have a hardware encoder that can be available for your application using the API. 


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -