-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (41 loc) · 1.62 KB
/
Makefile
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
build: builddir
ninja -C builddir
builddir:
meson builddir
tests/builddir:
cd tests && meson builddir
clean: builddir
ninja -C builddir clean
format:
clang-format -i src/*.[ch] tests/elements/*.[ch]
inspect: build
gst-inspect-1.0 builddir/libgstebur128.so
inspect-ebur128: build
GST_PLUGIN_PATH=$(realpath builddir) gst-inspect-1.0 ebur128
inspect-ebur128graph: build
GST_PLUGIN_PATH=$(realpath builddir) gst-inspect-1.0 ebur128graph
run-tests: builddir
cd builddir && meson test -v
run-example-py: builddir
GST_PLUGIN_PATH=$(realpath builddir) examples/example.py
run-ebur128: build
GST_PLUGIN_PATH=$(realpath builddir) gst-launch-1.0 -m \
filesrc location=examples/music.mp3 ! mpegaudioparse ! mpg123audiodec ! \
ebur128 momentary=true shortterm=true global=true window=5000 range=true sample-peak=true true-peak=true interval=100000000 ! \
autoaudiosink
run-ebur128-with-seek: build
GST_PLUGIN_PATH=$(realpath builddir) gst-launch-1.0 -m \
filesrc location=examples/music.mp3 ! \
mpegaudioparse ! mpg123audiodec ! \
ebur128 ! \
navseek ! \
tee name=t \
\
t. ! queue ! audioconvert ! wavescope ! ximagesink \
t. ! queue ! autoaudiosink
run-ebur128graph: build
GST_PLUGIN_PATH=$(realpath builddir) gst-launch-1.0 \
filesrc location=examples/music.mp3 ! mpegaudioparse ! mpg123audiodec ! tee name=t \
t. ! queue ! ebur128graph short-term-gauge=true momentary-gauge=true peak-gauge=true scale-from=1 ! videoconvert ! ximagesink \
t. ! queue ! autoaudiosink
.PHONY: build clean format inspect inspect-ebur128 inspect-ebur128graph run-tests run-example-py run-ebur128 run-ebur128-with-seek run-ebur128graph