-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for compiling ffmpeg
- Loading branch information
Showing
5 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
diff --git a/build.sh b/build.sh | ||
index 5199d9b..5a4a661 100755 | ||
--- a/build.sh | ||
+++ b/build.sh | ||
@@ -273,7 +273,7 @@ cd $BUILD_DIR/x265* | ||
cd build/linux | ||
[ $rebuild -eq 1 ] && find . -mindepth 1 ! -name 'make-Makefiles.bash' -and ! -name 'multilib.sh' -exec rm -r {} + | ||
PATH="$BIN_DIR:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$TARGET_DIR" -DENABLE_SHARED:BOOL=OFF -DSTATIC_LINK_CRT:BOOL=ON -DENABLE_CLI:BOOL=OFF ../../source | ||
-sed -i '' 's/-lgcc_s/-lgcc_eh/g' x265.pc | ||
+sed -i 's/-lgcc_s/-lgcc_eh/g' x265.pc | ||
make -j $jval | ||
make install | ||
|
||
@@ -341,7 +341,7 @@ if [ "$platform" = "linux" ]; then | ||
sed -i "s/prefix=.*/prefix=${TARGET_DIR_SED}\nINC=-I\$(prefix)\/include/" ./Makefile | ||
sed -i "s/SHARED=.*/SHARED=no/" ./Makefile | ||
elif [ "$platform" = "darwin" ]; then | ||
- sed -i "" "s/prefix=.*/prefix=${TARGET_DIR_SED}/" ./Makefile | ||
+ sed -i "s/prefix=.*/prefix=${TARGET_DIR_SED}/" ./Makefile | ||
fi | ||
make install_base | ||
|
||
@@ -358,7 +358,7 @@ cd $BUILD_DIR/vid.stab-release-* | ||
if [ "$platform" = "linux" ]; then | ||
sed -i "s/vidstab SHARED/vidstab STATIC/" ./CMakeLists.txt | ||
elif [ "$platform" = "darwin" ]; then | ||
- sed -i "" "s/vidstab SHARED/vidstab STATIC/" ./CMakeLists.txt | ||
+ sed -i "s/vidstab SHARED/vidstab STATIC/" ./CMakeLists.txt | ||
fi | ||
PATH="$BIN_DIR:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$TARGET_DIR" | ||
make -j $jval | ||
@@ -426,35 +426,10 @@ if [ "$platform" = "linux" ]; then | ||
--extra-libs="-lpthread -lm -lz" \ | ||
--extra-ldexeflags="-static" \ | ||
--bindir="$BIN_DIR" \ | ||
- --enable-pic \ | ||
- --enable-ffplay \ | ||
- --enable-fontconfig \ | ||
- --enable-frei0r \ | ||
--enable-gpl \ | ||
- --enable-version3 \ | ||
- --enable-libass \ | ||
- --enable-libfribidi \ | ||
- --enable-libfdk-aac \ | ||
- --enable-libfreetype \ | ||
- --enable-libmp3lame \ | ||
- --enable-libopencore-amrnb \ | ||
- --enable-libopencore-amrwb \ | ||
- --enable-libopenjpeg \ | ||
- --enable-libopus \ | ||
--enable-librtmp \ | ||
- --enable-libsoxr \ | ||
- --enable-libspeex \ | ||
- --enable-libtheora \ | ||
- --enable-libvidstab \ | ||
- --enable-libvo-amrwbenc \ | ||
- --enable-libvorbis \ | ||
- --enable-libvpx \ | ||
- --enable-libwebp \ | ||
- --enable-libx264 \ | ||
- --enable-libx265 \ | ||
- --enable-libxvid \ | ||
- --enable-libzimg \ | ||
--enable-nonfree \ | ||
+ --enable-libx264 \ | ||
--enable-openssl | ||
elif [ "$platform" = "darwin" ]; then | ||
[ ! -f config.status ] && PATH="$BIN_DIR:$PATH" \ | ||
@@ -466,33 +441,10 @@ elif [ "$platform" = "darwin" ]; then | ||
--extra-ldflags="-L$TARGET_DIR/lib" \ | ||
--extra-ldexeflags="-Bstatic" \ | ||
--bindir="$BIN_DIR" \ | ||
- --enable-pic \ | ||
- --enable-ffplay \ | ||
- --enable-fontconfig \ | ||
- --enable-frei0r \ | ||
--enable-gpl \ | ||
- --enable-version3 \ | ||
- --enable-libass \ | ||
- --enable-libfribidi \ | ||
- --enable-libfdk-aac \ | ||
- --enable-libfreetype \ | ||
- --enable-libmp3lame \ | ||
- --enable-libopencore-amrnb \ | ||
- --enable-libopencore-amrwb \ | ||
- --enable-libopenjpeg \ | ||
- --enable-libopus \ | ||
--enable-librtmp \ | ||
- --enable-libsoxr \ | ||
- --enable-libspeex \ | ||
- --enable-libvidstab \ | ||
- --enable-libvorbis \ | ||
- --enable-libvpx \ | ||
- --enable-libwebp \ | ||
- --enable-libx264 \ | ||
- --enable-libx265 \ | ||
- --enable-libxvid \ | ||
- --enable-libzimg \ | ||
--enable-nonfree \ | ||
+ --enable-libx264 \ | ||
--enable-openssl | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters