-
Notifications
You must be signed in to change notification settings - Fork 962
/
Makefile
41 lines (31 loc) · 1.91 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
usage:
echo "make fetch_small_bunny_video && make run_hello"
all: clean fetch_bbb_video make_hello run_hello make_remuxing run_remuxing_ts run_remuxing_fragmented_mp4 make_transcoding
.PHONY: all
clean:
@rm -rf ./build/*
fetch_small_bunny_video:
./fetch_bbb_video.sh
make_hello: clean
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel:4.4 \
gcc -L/opt/ffmpeg/lib -I/opt/ffmpeg/include/ /files/0_hello_world.c \
-lavcodec -lavformat -lavfilter -lavdevice -lswresample -lswscale -lavutil \
-o /files/build/hello
run_hello: make_hello
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel:4.4 /files/build/hello /files/small_bunny_1080p_60fps.mp4
make_remuxing: clean
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel:4.4 \
gcc -L/opt/ffmpeg/lib -I/opt/ffmpeg/include/ /files/2_remuxing.c \
-lavcodec -lavformat -lavfilter -lavdevice -lswresample -lswscale -lavutil \
-o /files/build/remuxing
run_remuxing_ts: make_remuxing
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel:4.4 /files/build/remuxing /files/small_bunny_1080p_60fps.mp4 /files/remuxed_small_bunny_1080p_60fps.ts
run_remuxing_fragmented_mp4: make_remuxing
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel:4.4 /files/build/remuxing /files/small_bunny_1080p_60fps.mp4 /files/fragmented_small_bunny_1080p_60fps.mp4 fragmented
make_transcoding: clean
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel:4.4 \
gcc -g -Wall -L/opt/ffmpeg/lib -I/opt/ffmpeg/include/ /files/3_transcoding.c /files/video_debugging.c \
-lavcodec -lavformat -lavfilter -lavdevice -lswresample -lswscale -lavutil \
-o /files/build/3_transcoding
run_transcoding: make_transcoding
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel:4.4 ./build/3_transcoding /files/small_bunny_1080p_60fps.mp4 /files/bunny_1s_gop.mp4