File tree Expand file tree Collapse file tree 3 files changed +68
-42
lines changed Expand file tree Collapse file tree 3 files changed +68
-42
lines changed Original file line number Diff line number Diff line change 1+ name : build test
2+
3+ on :
4+ push :
5+ paths-ignore :
6+ - ' *.md'
7+ pull_request :
8+ branches : [ master ]
9+
10+ env :
11+ DOCKER_BUILDKIT : 1
12+ DOCKER_CLI_EXPERIMENTAL : enabled
13+
14+ jobs :
15+ build-linux :
16+ name : native build in linux
17+ runs-on : ubuntu-20.04
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v2
21+ - name : build ffmpeg
22+ run : |
23+ while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
24+ SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
25+ kill %1
26+ - name : clean up
27+ run : |
28+ ./build-ffmpeg --cleanup
29+
30+ build-macos :
31+ name : native build in macos
32+ runs-on : macos-10.15
33+ steps :
34+ - name : Checkout code
35+ uses : actions/checkout@v2
36+ - name : build ffmpeg
37+ run : |
38+ while sleep 300; do echo "=====[ $SECONDS seconds still running ]====="; done &
39+ SKIPINSTALL=yes VERBOSE=yes ./build-ffmpeg --build
40+ kill %1
41+ - name : clean up
42+ run : |
43+ ./build-ffmpeg --cleanup
44+
45+ build-docker :
46+ name : build in docker
47+ runs-on : ubuntu-20.04
48+ steps :
49+ - name : Checkout code
50+ uses : actions/checkout@v2
51+ - name : build ffmpeg
52+ run : |
53+ docker build -t ffmpeg:ubuntu -f Dockerfile .
54+ docker run --rm ffmpeg:ubuntu
55+
56+ build-cuda-docker :
57+ name : build in docker with cuda
58+ runs-on : ubuntu-20.04
59+ steps :
60+ - name : Checkout code
61+ uses : actions/checkout@v2
62+ - name : build ffmpeg
63+ run : |
64+ docker build -t ffmpeg:cuda -f cuda-ubuntu.dockerfile .
65+ docker run --rm ffmpeg:cuda
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- [ ![ Build Status ] ( https://travis-ci.org /markus-perl/ffmpeg-build-script.svg?branch=master )] ( https://travis-ci.org/markus-perl/ffmpeg-build-script )
1+ ![ build test ] ( https://github.com /markus-perl/ffmpeg-build-script/workflows/build%20test/badge .svg?branch=master )
22
33![ FFmpeg build script] ( https://raw.github.com/markus-perl/ffmpeg-build-script/master/ffmpeg-build-script.png )
44
@@ -44,7 +44,7 @@ because I don't have the resources and the time to maintain other systems.
4444 * VP8 ` vp8_cuvid `
4545 * VP9 ` vp9_cuvid `
4646 * Encoders
47- * H264 ` nvenc nvenc_h264`
47+ * H264 ` nvenc_h264 `
4848 * H265 ` nvenc_hevc `
4949
5050## Continuos Integration
@@ -95,7 +95,7 @@ docker run ffmpeg -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm
9595git clone https://github.com/markus-perl/ffmpeg-build-script.git
9696cd ffmpeg-build-script
9797docker build --tag=ffmpeg-cuda -f cuda-ubuntu.dockerfile .
98- docker run ffmpeg-cuda -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -f webm - c:v libvpx -c:a libvorbis - > /tmp/test.mp4
98+ docker run --gpus all ffmpeg-cuda -hwaccel cuvid -c:v h264_cuvid - i https://files.coconut.co.s3.amazonaws.com/test.mp4 -c:v hevc_nvenc -vf scale_npp=-1:1080 - > /tmp/test.mp4
9999```
100100
101101### Common installation
You can’t perform that action at this time.
0 commit comments