@@ -61,7 +61,8 @@ tar -xf ffmpeg.tar.gz --strip-components 1
61
61
--enable-avfilter \
62
62
--enable-avformat \
63
63
--enable-avutil \
64
- --enable-swscale
64
+ --enable-swscale \
65
+ --enable-swresample
65
66
66
67
make -j install
67
68
ls ${prefix} /*
@@ -78,27 +79,31 @@ if [[ "$(uname)" == Darwin ]]; then
78
79
avdevice=libavdevice.58
79
80
avfilter=libavfilter.7
80
81
swscale=libswscale.5
82
+ swresample=libswresample.3
81
83
elif [[ ${major_ver} == 5 ]]; then
82
84
avutil=libavutil.57
83
85
avcodec=libavcodec.59
84
86
avformat=libavformat.59
85
87
avdevice=libavdevice.59
86
88
avfilter=libavfilter.8
87
89
swscale=libswscale.6
90
+ swresample=libswresample.4
88
91
elif [[ ${major_ver} == 6 ]]; then
89
92
avutil=libavutil.58
90
93
avcodec=libavcodec.60
91
94
avformat=libavformat.60
92
95
avdevice=libavdevice.60
93
96
avfilter=libavfilter.9
94
97
swscale=libswscale.7
98
+ swresample=libswresample.4
95
99
elif [[ ${major_ver} == 7 ]]; then
96
100
avutil=libavutil.59
97
101
avcodec=libavcodec.61
98
102
avformat=libavformat.61
99
103
avdevice=libavdevice.61
100
104
avfilter=libavfilter.10
101
105
swscale=libswscale.8
106
+ swresample=libswresample.5
102
107
else
103
108
printf " Error: unexpected FFmpeg major version: %s\n" ${major_ver}
104
109
exit 1;
@@ -120,7 +125,7 @@ if [[ "$(uname)" == Darwin ]]; then
120
125
fi
121
126
122
127
# list up the paths to fix
123
- for lib in ${avcodec} ${avdevice} ${avfilter} ${avformat} ${avutil} ${swscale} ; do
128
+ for lib in ${avcodec} ${avdevice} ${avfilter} ${avformat} ${avutil} ${swscale} ${swresample} ; do
124
129
${otool} -l ${prefix} /lib/${lib} .dylib | grep -B2 ${prefix}
125
130
done
126
131
@@ -155,6 +160,13 @@ if [[ "$(uname)" == Darwin ]]; then
155
160
${prefix} /lib/${swscale} .dylib
156
161
${otool} -l ${prefix} /lib/${swscale} .dylib | grep -B2 ${prefix}
157
162
163
+ ${install_name_tool} \
164
+ -change ${prefix} /lib/${avutil} .dylib @rpath/${avutil} .dylib \
165
+ -delete_rpath ${prefix} /lib \
166
+ -id @rpath/${swresample} .dylib \
167
+ ${prefix} /lib/${swresample} .dylib
168
+ ${otool} -l ${prefix} /lib/${swresample} .dylib | grep -B2 ${prefix}
169
+
158
170
${install_name_tool} \
159
171
-change ${prefix} /lib/${avcodec} .dylib @rpath/${avcodec} .dylib \
160
172
-change ${prefix} /lib/${avutil} .dylib @rpath/${avutil} .dylib \
0 commit comments