-
Notifications
You must be signed in to change notification settings - Fork 2
/
common.sh
45 lines (37 loc) · 900 Bytes
/
common.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
#!/bin/bash
DOCKER_DIR_FLAGS=(
--prefix="/ffmpeg/build"
--bindir="/ffmpeg/bin"
--logfile="/ffmpeg/bin/log.txt"
)
NATIVE_DIR_FLAGS=(
--prefix="${OUT_DIR}/build"
--bindir="${OUT_DIR}/output"
--logfile="${OUT_DIR}/output/log.txt"
)
FFMPEG_CONFIGURE_FLAGS=(
# System libraries
--disable-autodetect
--disable-iconv
# External libraries
--enable-libdav1d
# FFMpeg components
--disable-programs
--enable-ffprobe
--disable-avdevice
--disable-swresample
--disable-swscale
--disable-postproc
--disable-avfilter
# FFMpeg options - disable all
--disable-network
--disable-everything
# FFMpeg options - enable what we need
--enable-protocol=file
--enable-demuxers
--enable-parsers
--enable-decoders
--enable-bsf=av1_frame_split
--enable-bsf=av1_frame_merge
--enable-bsf=av1_metadata
)