On a whim today, I suddenly want to start studying the source code of ffmpeg. After downloading all the dependent libraries, I use the command configure
sh configure --prefix=/usr/local/ffmpeg \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
--enable-postproc \
--enable-libass \
--disable-libcelt \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-libopenjpeg \
--enable-openssl \
--enable-libopus \
--enable-libspeex \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libxvid \
--disable-static \
--disable-x86asm \
--enable-shared
appear. Error: an error is reported when OpenSSL is not found. The version of OpenSSL I use is
Then the solution is seen from here
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
After writing, configure succeeded!
If you encounter some other problems, such as the following, you only need to delete the corresponding file and reconfigure it
config.h is unchanged
libavutil/avconfig.h is unchanged
libavfilter/filter_list.c is unchanged
libavcodec/codec_list.c is unchanged
libavcodec/parser_list.c is unchanged
libavcodec/bsf_list.c is unchanged
libavformat/demuxer_list.c is unchanged
libavformat/muxer_list.c is unchanged
libavdevice/indev_list.c is unchanged
libavdevice/outdev_list.c is unchanged
libavformat/protocol_list.c is unchanged
ffbuild/config.sh is unchanged
Read More:
- [Solved] ffmpeg Enable https Error: “ERROR: openssl not found”
- [Solved] ffmpeg error reporting: subprocess. Calledprocesserror: Command ‘ffmpeg, unknown encoder: “libx264″“
- [Solved] ORB_SLAM3 Compile Error: opencv4.0 not found four
- [Solved] MAC Compile Error: fatal error: ‘endian.h‘ file not found
- ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
- [Solved] Compile Error: AAPT: error: resource android:attr/lStar not found
- [Solved] Rust Compile Error: error: linker `cc` not found
- Error: Your CLT does not support macOS 11.6 [How to Solve]
- [Solved] OpenCV VideoWriter Error: FFMPEG: tag ‘MP4V‘ is not supported with codec id 12 and format mp4
- ffmpeg:error while loading shared libraries: libopenh264.so.5
- Solution of adding H264 error in ffmpeg compilation
- QT calls the API of ffmpeg error [How to Solve]
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- [Solved] OpenSSL ssL_read: Connection was aborted,errno 10053
- MacOS Mojave uses SMB LAN share as backup disk of timemachine time machine. Disk does not support time machine backups. (error 45)
- [Solved] Android Studio Compile Error: Could not determine java version from ‘11.0.8‘.
- [Solved] FFMPEG live encoding 2. session more error: [nvenc @ 0xa00480] OpenEncodeSessionEx failed: 0xa – invalid license key?
- [Solved] QT cmak Compile Error: CMake Error: The source.. does not match the soused
- Apache Altas Compile Error: [ERROR] Failed to execute goal on project atlas-testtools: Could not resolve
- [Solved] A-LOAM Ceres Compile Error: error: ‘integer_sequence’ is not a member of ‘std‘