摘要: yum install gcc gcc-objc install make libpng libpng-devel libtiff libtiff-devel libobjc libxml2 libxml2-devel libX11-devel libXt-devel libjpeg libjpeg 阅读全文
posted @ 2017-04-23 09:59 bGl1bGVp 阅读(201) 评论(0) 推荐(0) 编辑
摘要: #import double MachTimeToSecs(uint64_t time){ mach_timebase_info_data_t timebase; mach_timebase_info(&timebase); return (double)time * (doubl... 阅读全文
posted @ 2015-12-23 12:50 bGl1bGVp 阅读(272) 评论(0) 推荐(0) 编辑
摘要: #include #include clock_serv_t cclock; mach_timespec_t mts; host_get_clock_service(mach_host_self(), SYSTEM_CLOCK, &cclock); clock_get_ti... 阅读全文
posted @ 2015-12-14 17:05 bGl1bGVp 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 首先编译出libx265.a,然后移动x265.pc到pkgconfig目录下,修改Libs: -L${libdir} -lx265 -lstdc++。export PKG_CONFIG_PATH=/Users/liulei/Downloads/test/FFmpeg-iOS-build-scrip... 阅读全文
posted @ 2015-09-24 13:51 bGl1bGVp 阅读(944) 评论(0) 推荐(0) 编辑
摘要: 在CMakeLists.txt里面添加option(ENABLE_ASSEMBLY OFF)(2017-3-7下载的版本已经不在需要) CMAKE_OSX_ARCHITECTURES armv7 CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/D 阅读全文
posted @ 2015-09-14 11:50 bGl1bGVp 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 修改ffmpeg->libavcodec->libx265.cctx->params->bOpenGOP = 0; //可不要ctx->params->keyframeMax = avctx->gop_size; 阅读全文
posted @ 2015-09-14 11:48 bGl1bGVp 阅读(538) 评论(0) 推荐(0) 编辑