Install ffmpeg under mac

1. Install ffmpeg

brew install ffmpeg  

Execute several times if it fails once, and finally succeeds, record it,

2. Check whether the installation is successful

mac-deMacBook-Pro:InnerAppCodeSample xx$ ffmpeg -version

ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers

built with Apple clang version 14.0.0 (clang-1400.0.29.202)

configuration: --prefix=/usr/local/Cellar/ffmpeg/5.1.2_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox

libavutil 57. 28.100 / 57. 28.100

libavcodec     59. 37.100 / 59. 37.100

libavformat 59.27.100 / 59.27.100

libavdevice    59.  7.100 / 59.  7.100

libavfilter     8. 44.100 /  8. 44.100

libswscale 6.7.100 / 6.7.100

libswresample   4.  7.100 /  4.  7.100

libpostproc 56.6.100 / 56.6.100

3. Call ffmpeg with java and execute it with shell script

Java project-ProcessBuilder executes commands or calls scripts

Refer to the following website

java project - ProcessBuilder executes commands or calls scripts

Guess you like

Origin blog.csdn.net/s_ongfei/article/details/128254886