From 6865199f8fc716733f0c43c218c988e240aba8c8 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sat, 11 May 2024 21:32:49 +0900 Subject: [PATCH] Create compile-ffmpeg.md --- compile-ffmpeg.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 compile-ffmpeg.md diff --git a/compile-ffmpeg.md b/compile-ffmpeg.md new file mode 100644 index 0000000..102150d --- /dev/null +++ b/compile-ffmpeg.md @@ -0,0 +1,28 @@ +# Compile FFmpeg for ffmpeg-api + +This article is an FFmpeg compilation guide that is used as a reference when you want to run it in a non-container environment. + +## Required packages +* X264-devel (yum), libx264-dev (apt): available in major Linux distributions +* [mstorsjo/fdk-aac](https://github.com/mstorsjo/fdk-aac) (No GPL, Need compile from the source code) + +## Download FFmpeg source code +* https://ffmpeg.org/download.html +* Direct link: https://ffmpeg.org/releases/ffmpeg-7.0.tar.xz + +## Compile FFmpeg (Minimal options) + +```bash +wget https://ffmpeg.org/releases/ffmpeg-7.0.tar.xz +tar xvf ffmpeg-7.0.tar.xz +cd FFmpeg-7.0 +mkdir build +cd build +../configure --disable-static --enable-shared --enable-gpl --enable-libx264 --enable-nonfree +make +make install +``` + +## Report abuse +* ActivityPub [@gnh1201@catswords.social](https://catswords.social/@gnh1201) +* abuse@catswords.net