Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
47795206
Commit
47795206
authored
Nov 03, 2020
by
Jerome Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add zlib and its build scripts
parent
3011d509
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
1 deletion
+30
-1
.gitmodules
.gitmodules
+3
-0
build.sh
build.sh
+2
-0
zlib
third_party/zlib
+1
-0
build-ffmpeg.sh
wasm/build-scripts/build-ffmpeg.sh
+1
-1
build-zlib.sh
wasm/build-scripts/build-zlib.sh
+22
-0
configure-ffmpeg.sh
wasm/build-scripts/configure-ffmpeg.sh
+1
-0
No files found.
.gitmodules
View file @
47795206
...
...
@@ -31,3 +31,6 @@
[submodule "third_party/aom"]
path = third_party/aom
url = https://github.com/ffmpegwasm/aom
[submodule "third_party/zlib"]
path = third_party/zlib
url = https://github.com/ffmpegwasm/zlib
build.sh
View file @
47795206
...
...
@@ -8,6 +8,8 @@ SCRIPT_ROOT=$(dirname $0)/wasm/build-scripts
emcc
-v
# install dependencies
$SCRIPT_ROOT
/install-deps.sh
# build zlib
$SCRIPT_ROOT
/build-zlib.sh
# build x264
$SCRIPT_ROOT
/build-x264.sh
# build x265
...
...
zlib
@
cacf7f1d
Subproject commit cacf7f1d4e3d44d871b605da3b647f07d718623f
wasm/build-scripts/build-ffmpeg.sh
View file @
47795206
...
...
@@ -9,7 +9,7 @@ FLAGS=(
-I
.
-I
./fftools
-I
$BUILD_DIR
/include
-Llibavcodec
-Llibavdevice
-Llibavfilter
-Llibavformat
-Llibavresample
-Llibavutil
-Llibpostproc
-Llibswscale
-Llibswresample
-L
$BUILD_DIR
/lib
-Wno-deprecated-declarations
-Wno-pointer-sign
-Wno-implicit-int-float-conversion
-Wno-switch
-Wno-parentheses
-Qunused-arguments
-lavdevice
-lavfilter
-lavformat
-lavcodec
-lswresample
-lswscale
-lavutil
-lpostproc
-lm
-lx264
-lx265
-lvpx
-lwavpack
-lmp3lame
-lfdk-aac
-lvorbis
-lvorbisenc
-lvorbisfile
-logg
-ltheora
-ltheoraenc
-ltheoradec
-pthread
-lavdevice
-lavfilter
-lavformat
-lavcodec
-lswresample
-lswscale
-lavutil
-lpostproc
-lm
-lx264
-lx265
-lvpx
-lwavpack
-lmp3lame
-lfdk-aac
-lvorbis
-lvorbisenc
-lvorbisfile
-logg
-ltheora
-ltheoraenc
-ltheoradec
-
lz
-
pthread
fftools/ffmpeg_opt.c fftools/ffmpeg_filter.c fftools/ffmpeg_hw.c fftools/cmdutils.c fftools/ffmpeg.c
-o
wasm/dist/ffmpeg-core.js
-s
USE_SDL
=
2
# use SDL2
...
...
wasm/build-scripts/build-zlib.sh
0 → 100755
View file @
47795206
#!/bin/bash
set
-euo
pipefail
source
$(
dirname
$0
)
/var.sh
LIB_PATH
=
third_party/zlib
CXXFLAGS
=
"-s USE_PTHREADS=1
$OPTIM_FLAGS
"
CM_FLAGS
=(
-DCMAKE_INSTALL_PREFIX
=
$BUILD_DIR
-DCMAKE_TOOLCHAIN_FILE
=
$TOOLCHAIN_FILE
-DBUILD_SHARED_LIBS
=
OFF
)
echo
"CM_FLAGS=
${
CONF_FLAGS
[@]
}
"
cd
$LIB_PATH
rm
-rf
build zconf.h
mkdir
-p
build
cd
build
emmake cmake ..
-DCMAKE_C_FLAGS
=
"
$CXXFLAGS
"
${
CM_FLAGS
[@]
}
emmake make clean
emmake make
install
cd
$ROOT_DIR
wasm/build-scripts/configure-ffmpeg.sh
View file @
47795206
...
...
@@ -7,6 +7,7 @@ FLAGS=(
"
${
FFMPEG_CONFIG_FLAGS_BASE
[@]
}
"
--enable-gpl
# required by x264
--enable-nonfree
# required by fdk-aac
--enable-zlib
# enable zlib
--enable-libx264
# enable x264
--enable-libx265
# enable x265
--enable-libvpx
# enable libvpx / webm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment