ijkplayer 大佬提供一下集成x264编码以及aac的详细步骤
- Dominant language
- C
- Stars
- 33.2k
- Forks
- 8.2k
- PR merge metrics
- No merged PRs in 30d
Description
我按照https://www.jianshu.com/p/ce67fed1cf09这条简书上的步骤编译,出现错误
这是编译时报的错误
use_pkg_config libx264 x264 stdint.h x264.h x264_encoder_encode
check_pkg_config libx264 x264 stdint.h x264.h x264_encoder_encode
pkg-config --exists --print-errors x264
Package x264 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x264.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x264' found
require libx264 stdint.h x264.h x264_encoder_encode -lx264
check_lib libx264 stdint.h x264.h x264_encoder_encode -lx264
check_func_headers stdint.h x264.h x264_encoder_encode -lx264
check_ld cc -lx264
check_cc
BEGIN /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c
1 #include
2 #include
3 #include
4 long check_x264_encoder_encode(void) { return (long) x264_encoder_encode; }
5 int main(void) { int ret = 0;
6 ret |= ((intptr_t)check_x264_encoder_encode) & 0xFFFF;
7 return ret; }
END /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c
xcrun -sdk iphoneos clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I$(SRC_PATH)/compat/dispatch_semaphore -DPIC -arch arm64 -miphoneos-version-min=7.0 -fembed-bitcode -std=c11 -fomit-frame-pointer -fPIC -pthread -c -o /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.o /var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c
/var/folders/jh/yghbn3m92knb_2vsbw10vw1w0000gn/T//ffconf.BrukQ9IK/test.c:2:10: fatal error: 'x264.h' file not found
#include
^~~~~~~~
1 error generated.
ERROR: libx264 not found
Contributor guide
No contributing guide indexed for this repository
Research direction
Begin with the linked Jianshu build instructions and the reported FFmpeg configure output; trace how the iOS build discovers x264 through pkg-config and x264.h. Confirm the required x264 and AAC integration steps for ijkplayer, documenting reproducible commands and the expected successful checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, ios
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100