-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathffmpeg.sh
40 lines (27 loc) · 996 Bytes
/
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
#!/bin/bash
source $(pwd)/functions.sh
echo_info $0 $@
cd ~/mpv-winbuild-cmake/
#replace_option freetype2 "GIT_SHALLOW 1" "GIT_TAG VER-2-12-1"
add_option ffmpeg "GIT_SHALLOW 1" "GIT_TAG release/7.1"
append_option ffmpeg -pkg-config-flags=--static --disable-debug
append_option ffmpeg -pkg-config-flags=--static --disable-static
append_option ffmpeg -pkg-config-flags=--static --enable-shared
comment_line ffmpeg --disable-ffplay
comment_line ffmpeg --disable-ffprobe
# OpenAL
comment_line CMakeLists.txt "openal-soft"
comment_line ffmpeg "openal-soft"
comment_line ffmpeg "--enable-openal"
comment_line mpv openal-soft
comment_line mpv "-Dopenal=enabled"
comment_line mpv-release openal-soft
comment_line mpv-release "-Dopenal=enabled"
cd build64
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 *.*