-
Notifications
You must be signed in to change notification settings - Fork 1
/
ffmpeg.sh
54 lines (36 loc) · 1.17 KB
/
ffmpeg.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
source $(pwd)/functions.sh
clear && echo $0 $@
./1-download-mpv-winbuild-cmake.sh
cd ~/mpv-winbuild-cmake/
set -x #echo on
add_option ffmpeg "GIT_SHALLOW 1" "GIT_TAG n5.1"
add_option ffmpeg -pkg-config-flags=--static --disable-debug
add_option ffmpeg -pkg-config-flags=--static --enable-shared
comment_line packages/CMakeLists.txt libbs2b
comment_line ffmpeg libbs2b
comment_line ffmpeg --enable-libbs2b
# Mod format support
comment_line packages/CMakeLists.txt libopenmpt
comment_line ffmpeg libopenmpt
comment_line ffmpeg --enable-libopenmpt
comment_line packages/CMakeLists.txt libmodplug
comment_line ffmpeg libmodplug
comment_line ffmpeg --enable-libmodplug
# The Speex codec has been obsoleted by Opus
comment_line packages/CMakeLists.txt speex
comment_line ffmpeg speex
comment_line ffmpeg --enable-libspeex
mkdir build64
cd build64
cmake -DTARGET_ARCH=x86_64-w64-mingw32 -G Ninja ..
ninja gcc
ninja libass
ninja libjxl
ninja ffmpeg
mkdir ffmpeg
find packages/ffmpeg-prefix/src/ffmpeg-build/ -name *.exe -type f -exec cp {} ffmpeg \;
find packages/ffmpeg-prefix/src/ffmpeg-build/ -name *.dll -type f -exec cp {} ffmpeg \;
cd ffmpeg
rm *_g.exe
strip -s *.*