mirror of
https://github.com/linuxserver/docker-ffmpeg.git
synced 2026-02-20 04:56:23 +08:00
Compare commits
470 Commits
4.2.2-cli-
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f35f0c9720 | ||
|
|
d424516bec | ||
|
|
7100fa33c6 | ||
|
|
7b414e7bd9 | ||
|
|
118ea9dee1 | ||
|
|
3d3a0f3fdf | ||
|
|
37bfd69cfb | ||
|
|
ab5fede4d2 | ||
|
|
c52f067a11 | ||
|
|
839170000d | ||
|
|
79cbc25e01 | ||
|
|
77ad03e76c | ||
|
|
237805303e | ||
|
|
c01a2f7787 | ||
|
|
5803a9b64f | ||
|
|
c6a0f2b929 | ||
|
|
91b626f2c2 | ||
|
|
80b1900f78 | ||
|
|
259227e5dd | ||
|
|
eee4a1436a | ||
|
|
33269ab474 | ||
|
|
306cf13333 | ||
|
|
2f3d26d118 | ||
|
|
1272de2b43 | ||
|
|
8492517284 | ||
|
|
289dae9395 | ||
|
|
15fadb5862 | ||
|
|
e7b350bddc | ||
|
|
f197ab858d | ||
|
|
4759516f0f | ||
|
|
ae0f517118 | ||
|
|
8f5d687dcb | ||
|
|
6aae044a04 | ||
|
|
7dfa233d6d | ||
|
|
7388bdf50b | ||
|
|
188c92bdaf | ||
|
|
28b3269bc9 | ||
|
|
b846a21cc9 | ||
|
|
eb0817433d | ||
|
|
5f93798531 | ||
|
|
a72a94cb41 | ||
|
|
ad4b9919af | ||
|
|
57996e79f4 | ||
|
|
772a3b66a0 | ||
|
|
1ae2b33b3a | ||
|
|
84b0fc67c6 | ||
|
|
e4e39e0ed6 | ||
|
|
bfc8160fb6 | ||
|
|
75cbcfc925 | ||
|
|
fd5a5b386d | ||
|
|
ac3554a86c | ||
|
|
cb233c8241 | ||
|
|
52ab84a072 | ||
|
|
70df6eb677 | ||
|
|
884b9c5b00 | ||
|
|
970a7d035c | ||
|
|
50dc5d8696 | ||
|
|
ccaf335ca8 | ||
|
|
07756e90ff | ||
|
|
b81ddb65b8 | ||
|
|
c38dac6d51 | ||
|
|
158a5b8f57 | ||
|
|
8b98868c40 | ||
|
|
2b5a969177 | ||
|
|
1f4153c29a | ||
|
|
161def8c4e | ||
|
|
3f0a626bce | ||
|
|
daf525ef35 | ||
|
|
23b4cea876 | ||
|
|
98a8c9aedd | ||
|
|
402bd7b486 | ||
|
|
87f4661467 | ||
|
|
3819b379f6 | ||
|
|
c3ce08ae34 | ||
|
|
314ce6a11f | ||
|
|
224fb37cb9 | ||
|
|
b6478ffcc4 | ||
|
|
363e904e38 | ||
|
|
17de168698 | ||
|
|
311f8b6e90 | ||
|
|
aedfa9f62c | ||
|
|
6198408c9a | ||
|
|
b93ae37877 | ||
|
|
ff419663fc | ||
|
|
89a77204b5 | ||
|
|
8751eb564a | ||
|
|
134a162732 | ||
|
|
bfa40dc2eb | ||
|
|
ca191ead02 | ||
|
|
60b97dd62e | ||
|
|
498763439e | ||
|
|
f10c7eadc7 | ||
|
|
2ca7ccc425 | ||
|
|
abb8c19e8a | ||
|
|
e79ff22f4e | ||
|
|
4761c8f632 | ||
|
|
96c924aa9e | ||
|
|
d053c8356b | ||
|
|
453bda289f | ||
|
|
b47e188ba2 | ||
|
|
be503f4140 | ||
|
|
b312e5b51c | ||
|
|
bafb2b2687 | ||
|
|
eb951ebe1e | ||
|
|
e04bf66482 | ||
|
|
4d253bbc09 | ||
|
|
215717e653 | ||
|
|
fe080f075e | ||
|
|
3859482e15 | ||
|
|
d4446d8b18 | ||
|
|
7750c2c265 | ||
|
|
d1c62038b3 | ||
|
|
955938eb08 | ||
|
|
0a8da448da | ||
|
|
73c4f3a8b8 | ||
|
|
6ada8e17a0 | ||
|
|
b50a8ac7c3 | ||
|
|
d08d635018 | ||
|
|
f9066156ce | ||
|
|
8403937aca | ||
|
|
76844c6044 | ||
|
|
239fc19a68 | ||
|
|
246fa3ed2c | ||
|
|
2f3a3ee9b1 | ||
|
|
3ce61ce364 | ||
|
|
860db17b7c | ||
|
|
3102ecf182 | ||
|
|
44c3009567 | ||
|
|
144427e782 | ||
|
|
bc42c1361d | ||
|
|
34f736f4ce | ||
|
|
afb90c2b40 | ||
|
|
aea62bfe05 | ||
|
|
c214f6e0a5 | ||
|
|
2151324e8b | ||
|
|
a75ba24def | ||
|
|
2b75c6a033 | ||
|
|
fb135d8dc9 | ||
|
|
f6fdf870c9 | ||
|
|
a5d5db31a1 | ||
|
|
df61ef7193 | ||
|
|
ff55333586 | ||
|
|
25ee456115 | ||
|
|
548a2dc764 | ||
|
|
df2575e71e | ||
|
|
1b87339f67 | ||
|
|
21f618c5e5 | ||
|
|
9eb59666a2 | ||
|
|
8f11643416 | ||
|
|
1f304eb7e1 | ||
|
|
ceb131af90 | ||
|
|
f8a0a62c0c | ||
|
|
151222a8e4 | ||
|
|
ec388155a1 | ||
|
|
aadc708f4f | ||
|
|
7af66d82af | ||
|
|
3f1410baea | ||
|
|
a20bc94792 | ||
|
|
8e604391f1 | ||
|
|
7fb2938a54 | ||
|
|
b437430677 | ||
|
|
2b9597f60f | ||
|
|
56c70c9acc | ||
|
|
3e436b2682 | ||
|
|
ae7cc02e06 | ||
|
|
d2d435a770 | ||
|
|
5bb7b704c2 | ||
|
|
394dd69b10 | ||
|
|
9c0e59f386 | ||
|
|
3ed7ab907a | ||
|
|
5fd88762df | ||
|
|
df89ca0f27 | ||
|
|
c1ea5aafdf | ||
|
|
7d1fe8432c | ||
|
|
0a5e0b3755 | ||
|
|
881a15fc12 | ||
|
|
5150cb2824 | ||
|
|
5d246a2610 | ||
|
|
2ceabf1f55 | ||
|
|
d234aeeff1 | ||
|
|
9d0819692b | ||
|
|
80690a7f0b | ||
|
|
9c14a476aa | ||
|
|
9ba830f3b9 | ||
|
|
d95a5e50f8 | ||
|
|
f5eee658fa | ||
|
|
fa15e895b0 | ||
|
|
d4b323b8bf | ||
|
|
15de6e85f9 | ||
|
|
b4d9925ae7 | ||
|
|
a996a78f38 | ||
|
|
a644c98b87 | ||
|
|
6d9c61d8cc | ||
|
|
49bc50acde | ||
|
|
fb9eeef31c | ||
|
|
0fd6f6eb09 | ||
|
|
3584858c51 | ||
|
|
bcf329aac1 | ||
|
|
7c25c3c1d7 | ||
|
|
5615702358 | ||
|
|
4c23248abe | ||
|
|
ec678f8ac1 | ||
|
|
9017824489 | ||
|
|
87d985f3fb | ||
|
|
5ff16e4038 | ||
|
|
925c2856ed | ||
|
|
501c05892a | ||
|
|
6b33b046bd | ||
|
|
6f01501876 | ||
|
|
7f55eaa35f | ||
|
|
8403d18f4c | ||
|
|
34e2662e25 | ||
|
|
cd4474c96a | ||
|
|
e175b91140 | ||
|
|
7f065e2284 | ||
|
|
dbb3b6047e | ||
|
|
4d28b9bfbd | ||
|
|
af6c982e1e | ||
|
|
e57589ced4 | ||
|
|
2cbd3772a3 | ||
|
|
66d3f3d8c9 | ||
|
|
741fe799fa | ||
|
|
e07cb8fcec | ||
|
|
a8aca108be | ||
|
|
3635efa0cc | ||
|
|
afeaf414bc | ||
|
|
6f75579f1f | ||
|
|
e4849bb353 | ||
|
|
34b08b79ae | ||
|
|
37afd12ff0 | ||
|
|
4bb1d44c03 | ||
|
|
24b18df49c | ||
|
|
e23a6693f4 | ||
|
|
4f3d863660 | ||
|
|
23abf40371 | ||
|
|
5334d8c604 | ||
|
|
0dc2103432 | ||
|
|
e93387acf9 | ||
|
|
5bee405c60 | ||
|
|
b8f38a128f | ||
|
|
63a0415c1d | ||
|
|
8f049b3db9 | ||
|
|
e35de124c8 | ||
|
|
2f7a805bce | ||
|
|
154a0501da | ||
|
|
984c133179 | ||
|
|
aee010fdc2 | ||
|
|
6ac8954336 | ||
|
|
35056fa371 | ||
|
|
50383413e4 | ||
|
|
a6f0f0edce | ||
|
|
26c3226534 | ||
|
|
0a4521de56 | ||
|
|
80430190d2 | ||
|
|
e56d263891 | ||
|
|
f153b395b5 | ||
|
|
3b529cd2aa | ||
|
|
a39d399d5f | ||
|
|
2212963a37 | ||
|
|
cd263a29b8 | ||
|
|
6b7693bf8b | ||
|
|
5091d851b7 | ||
|
|
2543362f36 | ||
|
|
af9cea012c | ||
|
|
77720f84b1 | ||
|
|
77134e839e | ||
|
|
a94934fc16 | ||
|
|
d5ce8293a3 | ||
|
|
728c74ca50 | ||
|
|
9f18e8b180 | ||
|
|
a2544cc770 | ||
|
|
b88dba5619 | ||
|
|
da56b00644 | ||
|
|
cc64e698bb | ||
|
|
ced90f84f2 | ||
|
|
79a5961a52 | ||
|
|
42ecf13202 | ||
|
|
23de3863c4 | ||
|
|
5bfd5cefdc | ||
|
|
29eed4c452 | ||
|
|
0e6ea15303 | ||
|
|
876f6de8d6 | ||
|
|
728b07b92f | ||
|
|
01dd1521c0 | ||
|
|
0142fe0cc1 | ||
|
|
ed03900a95 | ||
|
|
a15aebe905 | ||
|
|
3ac15fdb63 | ||
|
|
1f230ba852 | ||
|
|
9ed6a68b7f | ||
|
|
ab5a0a69e4 | ||
|
|
8d29d99e77 | ||
|
|
c3aa17e975 | ||
|
|
e696dc5a57 | ||
|
|
0784623989 | ||
|
|
605b433fa6 | ||
|
|
db5c63b4a5 | ||
|
|
472e0aab35 | ||
|
|
8e22a434fe | ||
|
|
2e909accce | ||
|
|
61c7fdd493 | ||
|
|
0264cca0f3 | ||
|
|
7cc09101a3 | ||
|
|
f20595d0c5 | ||
|
|
08109809be | ||
|
|
485759ea45 | ||
|
|
72f12e7239 | ||
|
|
b2045d7674 | ||
|
|
e7a21f9d3c | ||
|
|
1b12c6d04e | ||
|
|
c80ea76970 | ||
|
|
9a965ee0b6 | ||
|
|
048827f205 | ||
|
|
5754e1c899 | ||
|
|
1d5b70a7af | ||
|
|
ca0231e0ff | ||
|
|
45fb0a0f9c | ||
|
|
a89c86a881 | ||
|
|
e6abfd5e50 | ||
|
|
008e1244fa | ||
|
|
0caab023c4 | ||
|
|
da79d2a82e | ||
|
|
e16fa924bc | ||
|
|
ab61712937 | ||
|
|
44bae619cc | ||
|
|
2c4dd8955f | ||
|
|
6742d755ff | ||
|
|
04718601d9 | ||
|
|
3d81da5642 | ||
|
|
c7705715f4 | ||
|
|
abb5679c87 | ||
|
|
66bc15cb0e | ||
|
|
87d48de7ac | ||
|
|
2cd2471451 | ||
|
|
e6773e1015 | ||
|
|
b612a41a15 | ||
|
|
46ea072b6c | ||
|
|
b3fdb2d2ba | ||
|
|
042b14aab0 | ||
|
|
b0ff670aae | ||
|
|
7d431fb4a4 | ||
|
|
fd60f00733 | ||
|
|
e8d91726d9 | ||
|
|
d90192cd1a | ||
|
|
e4595c6ed4 | ||
|
|
b638a13688 | ||
|
|
ddd3862a5d | ||
|
|
6499d3f9c5 | ||
|
|
9da86d3b2e | ||
|
|
631738b6a7 | ||
|
|
c10f946b75 | ||
|
|
bd393e05cf | ||
|
|
034a857e99 | ||
|
|
6343f0fd51 | ||
|
|
b042b61684 | ||
|
|
cb67a236d8 | ||
|
|
a6bc7e4d14 | ||
|
|
8c4474487c | ||
|
|
3cdc4e7a9a | ||
|
|
ea397b56b5 | ||
|
|
23fc6283ab | ||
|
|
ed02a927bf | ||
|
|
0514c2c0ad | ||
|
|
0db0f55663 | ||
|
|
0fcbe61600 | ||
|
|
4eed232b91 | ||
|
|
aff975a04b | ||
|
|
e20e03a33d | ||
|
|
063f705a46 | ||
|
|
8e9f2b3916 | ||
|
|
bacaab9179 | ||
|
|
8cdca35736 | ||
|
|
d4b8e80ced | ||
|
|
46a1943faf | ||
|
|
226ddf020a | ||
|
|
df1975c685 | ||
|
|
7bacd0720a | ||
|
|
903487b503 | ||
|
|
2e0ba23ad5 | ||
|
|
7f24a69293 | ||
|
|
dd68b90568 | ||
|
|
650a3f5b3a | ||
|
|
e63c095c8f | ||
|
|
23402112b0 | ||
|
|
b80e61c880 | ||
|
|
10a19a4ea5 | ||
|
|
8dbcf3a0e4 | ||
|
|
5d49083b3d | ||
|
|
6116a9d6a8 | ||
|
|
65d6b530f7 | ||
|
|
0ad10a7812 | ||
|
|
c7c71daf33 | ||
|
|
18b532e817 | ||
|
|
b61fc15f4b | ||
|
|
fa4d67a9e3 | ||
|
|
c545cb79fe | ||
|
|
a61106ab25 | ||
|
|
ab0abd0c5a | ||
|
|
a52b291b66 | ||
|
|
44a2f05fb1 | ||
|
|
1480303dc1 | ||
|
|
49653531e9 | ||
|
|
b71b79804c | ||
|
|
c09431683c | ||
|
|
3132a14147 | ||
|
|
9faaac9408 | ||
|
|
c89387a086 | ||
|
|
3d5b778d74 | ||
|
|
41a50c1277 | ||
|
|
018fb6244d | ||
|
|
a0eb83405e | ||
|
|
f1de48e05e | ||
|
|
ae9058e9e2 | ||
|
|
84d59b94eb | ||
|
|
a3891bbe79 | ||
|
|
315400e357 | ||
|
|
9a4260a38f | ||
|
|
ccbddfdf88 | ||
|
|
c58f6d6cd2 | ||
|
|
db7926cc53 | ||
|
|
a1c363a2d7 | ||
|
|
798330d7bc | ||
|
|
e3e1760a68 | ||
|
|
5db5abdd30 | ||
|
|
85c6a74f2f | ||
|
|
afc9f67763 | ||
|
|
454a285a53 | ||
|
|
209266635f | ||
|
|
18d67b5de7 | ||
|
|
07142dd811 | ||
|
|
2818dc886e | ||
|
|
b96f3d0feb | ||
|
|
94b61bdca8 | ||
|
|
f10e1ae1d1 | ||
|
|
98304b0231 | ||
|
|
5cfcca04ec | ||
|
|
2b66e1168d | ||
|
|
64a5e88d33 | ||
|
|
57e2647d4c | ||
|
|
76c5ee89b9 | ||
|
|
30fc44bf98 | ||
|
|
6f67574719 | ||
|
|
b899a3c1ed | ||
|
|
86a8c2e7de | ||
|
|
4539dc263a | ||
|
|
3126048913 | ||
|
|
0e15c55b25 | ||
|
|
582671e8c6 | ||
|
|
fcedc389a3 | ||
|
|
a43cfbc821 | ||
|
|
d27b4c49f8 | ||
|
|
86112c35fc | ||
|
|
75ed844b4c | ||
|
|
23db2c6413 | ||
|
|
e86aeb0843 | ||
|
|
d5ccf941db | ||
|
|
eee0dcf4ad | ||
|
|
37ca8aba30 | ||
|
|
7164e28472 | ||
|
|
cebdf9defc | ||
|
|
31e9ab088c | ||
|
|
58ef4d6915 | ||
|
|
e8e6d12e3a | ||
|
|
b883c20ae2 | ||
|
|
de12cce0c8 | ||
|
|
599dd50851 | ||
|
|
231ebae9cd | ||
|
|
1a18c7b681 | ||
|
|
0a81a02660 | ||
|
|
90e8885bec |
20
.editorconfig
Normal file
20
.editorconfig
Normal file
@ -0,0 +1,20 @@
|
||||
# This file is globally distributed to all container image projects from
|
||||
# https://github.com/linuxserver/docker-jenkins-builder/blob/master/.editorconfig
|
||||
|
||||
# top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
# trim_trailing_whitespace may cause unintended issues and should not be globally set true
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[{Dockerfile*,**.yml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[{**.sh,root/etc/s6-overlay/s6-rc.d/**,root/etc/cont-init.d/**,root/etc/services.d/**}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
123
.github/CONTRIBUTING.md
vendored
Normal file
123
.github/CONTRIBUTING.md
vendored
Normal file
@ -0,0 +1,123 @@
|
||||
# Contributing to ffmpeg
|
||||
|
||||
## Gotchas
|
||||
|
||||
* While contributing make sure to make all your changes before creating a Pull Request, as our pipeline builds each commit after the PR is open.
|
||||
* Read, and fill the Pull Request template
|
||||
* If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR
|
||||
* If the PR is addressing an existing issue include, closes #\<issue number>, in the body of the PR commit message
|
||||
* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://linuxserver.io/discord)
|
||||
|
||||
## Common files
|
||||
|
||||
| File | Use case |
|
||||
| :----: | --- |
|
||||
| `Dockerfile` | Dockerfile used to build amd64 images |
|
||||
| `Dockerfile.aarch64` | Dockerfile used to build 64bit ARM architectures |
|
||||
| `Dockerfile.armhf` | Dockerfile used to build 32bit ARM architectures |
|
||||
| `Jenkinsfile` | This file is a product of our builder and should not be edited directly. This is used to build the image |
|
||||
| `jenkins-vars.yml` | This file is used to generate the `Jenkinsfile` mentioned above, it only affects the build-process |
|
||||
| `package_versions.txt` | This file is generated as a part of the build-process and should not be edited directly. It lists all the installed packages and their versions |
|
||||
| `README.md` | This file is a product of our builder and should not be edited directly. This displays the readme for the repository and image registries |
|
||||
| `readme-vars.yml` | This file is used to generate the `README.md` |
|
||||
|
||||
## Readme
|
||||
|
||||
If you would like to change our readme, please __**do not**__ directly edit the readme, as it is auto-generated on each commit.
|
||||
Instead edit the [readme-vars.yml](https://github.com/linuxserver/docker-ffmpeg/edit/master/readme-vars.yml).
|
||||
|
||||
These variables are used in a template for our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) as part of an ansible play.
|
||||
Most of these variables are also carried over to [docs.linuxserver.io](https://docs.linuxserver.io)
|
||||
|
||||
### Fixing typos or clarify the text in the readme
|
||||
|
||||
There are variables for multiple parts of the readme, the most common ones are:
|
||||
|
||||
| Variable | Description |
|
||||
| :----: | --- |
|
||||
| `project_blurb` | This is the short excerpt shown above the project logo. |
|
||||
| `app_setup_block` | This is the text that shows up under "Application Setup" if enabled |
|
||||
|
||||
### Parameters
|
||||
|
||||
The compose and run examples are also generated from these variables.
|
||||
|
||||
We have a [reference file](https://github.com/linuxserver/docker-jenkins-builder/blob/master/vars/_container-vars-blank) in our Jenkins Builder.
|
||||
|
||||
These are prefixed with `param_` for required parameters, or `opt_param` for optional parameters, except for `cap_add`.
|
||||
Remember to enable param, if currently disabled. This differs between parameters, and can be seen in the reference file.
|
||||
|
||||
Devices, environment variables, ports and volumes expects its variables in a certain way.
|
||||
|
||||
### Devices
|
||||
|
||||
```yml
|
||||
param_devices:
|
||||
- { device_path: "/dev/dri", device_host_path: "/dev/dri", desc: "For hardware transcoding" }
|
||||
opt_param_devices:
|
||||
- { device_path: "/dev/dri", device_host_path: "/dev/dri", desc: "For hardware transcoding" }
|
||||
```
|
||||
|
||||
### Environment variables
|
||||
|
||||
```yml
|
||||
param_env_vars:
|
||||
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London." }
|
||||
opt_param_env_vars:
|
||||
- { env_var: "VERSION", env_value: "latest", desc: "Supported values are LATEST, PLEXPASS or a specific version number." }
|
||||
```
|
||||
|
||||
### Ports
|
||||
|
||||
```yml
|
||||
param_ports:
|
||||
- { external_port: "80", internal_port: "80", port_desc: "Application WebUI" }
|
||||
opt_param_ports:
|
||||
- { external_port: "80", internal_port: "80", port_desc: "Application WebUI" }
|
||||
```
|
||||
|
||||
### Volumes
|
||||
|
||||
```yml
|
||||
param_volumes:
|
||||
- { vol_path: "/config", vol_host_path: "</path/to/appdata/config>", desc: "Configuration files." }
|
||||
opt_param_volumes:
|
||||
- { vol_path: "/config", vol_host_path: "</path/to/appdata/config>", desc: "Configuration files." }
|
||||
```
|
||||
|
||||
### Testing template changes
|
||||
|
||||
After you make any changes to the templates, you can use our [Jenkins Builder](https://github.com/linuxserver/docker-jenkins-builder) to have the files updated from the modified templates. Please use the command found under `Running Locally` [on this page](https://github.com/linuxserver/docker-jenkins-builder/blob/master/README.md) to generate them prior to submitting a PR.
|
||||
|
||||
## Dockerfiles
|
||||
|
||||
We use multiple Dockerfiles in our repos, this is because sometimes some CPU architectures needs different packages to work.
|
||||
If you are proposing additional packages to be added, ensure that you added the packages to all the Dockerfiles in alphabetical order.
|
||||
|
||||
### Testing your changes
|
||||
|
||||
```bash
|
||||
git clone https://github.com/linuxserver/docker-ffmpeg.git
|
||||
cd docker-ffmpeg
|
||||
docker build \
|
||||
--no-cache \
|
||||
--pull \
|
||||
-t linuxserver/ffmpeg:latest .
|
||||
```
|
||||
|
||||
The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`
|
||||
|
||||
```bash
|
||||
docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset
|
||||
```
|
||||
|
||||
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.
|
||||
|
||||
## Update the changelog
|
||||
|
||||
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-ffmpeg/tree/master/root), add an entry to the changelog
|
||||
|
||||
```yml
|
||||
changelogs:
|
||||
- { date: "DD.MM.YY:", desc: "Added some love to templates" }
|
||||
```
|
||||
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1 +1,2 @@
|
||||
github: linuxserver
|
||||
open_collective: linuxserver
|
||||
|
||||
34
.github/ISSUE_TEMPLATE.md
vendored
34
.github/ISSUE_TEMPLATE.md
vendored
@ -1,34 +0,0 @@
|
||||
[linuxserverurl]: https://linuxserver.io
|
||||
[][linuxserverurl]
|
||||
|
||||
If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support.
|
||||
|
||||
<!--- Provide a general summary of the issue in the Title above -->
|
||||
|
||||
------------------------------
|
||||
|
||||
## Expected Behavior
|
||||
<!--- Tell us what should happen -->
|
||||
|
||||
## Current Behavior
|
||||
<!--- Tell us what happens instead of the expected behavior -->
|
||||
|
||||
## Steps to Reproduce
|
||||
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
|
||||
<!--- reproduce this bug. Include code to reproduce, if relevant -->
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
4.
|
||||
|
||||
## Environment
|
||||
**OS:**
|
||||
**CPU architecture:** x86_64/arm32/arm64
|
||||
**How docker service was installed:**
|
||||
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
|
||||
|
||||
## Command used to create docker container (run/create/compose/screenshot)
|
||||
<!--- Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container -->
|
||||
|
||||
## Docker logs
|
||||
<!--- Provide a full docker log, output of "docker logs ffmpeg" -->
|
||||
13
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
13
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Discord chat support
|
||||
url: https://linuxserver.io/discord
|
||||
about: Realtime support / chat with the community and the team.
|
||||
|
||||
- name: Discourse discussion forum
|
||||
url: https://discourse.linuxserver.io
|
||||
about: Post on our community forum.
|
||||
|
||||
- name: Documentation
|
||||
url: https://docs.linuxserver.io
|
||||
about: Documentation - information about all of our containers.
|
||||
68
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Normal file
68
.github/ISSUE_TEMPLATE/issue.bug.yml
vendored
Normal file
@ -0,0 +1,68 @@
|
||||
# Based on the issue template
|
||||
name: Bug report
|
||||
description: Create a report to help us improve
|
||||
title: "[BUG] <title>"
|
||||
labels: [Bug]
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Is there an existing issue for this?
|
||||
description: Please search to see if an issue already exists for the bug you encountered.
|
||||
options:
|
||||
- label: I have searched the existing issues
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Current Behavior
|
||||
description: Tell us what happens instead of the expected behavior.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Expected Behavior
|
||||
description: Tell us what should happen.
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Steps To Reproduce
|
||||
description: Steps to reproduce the behavior.
|
||||
placeholder: |
|
||||
1. In this environment...
|
||||
2. With this config...
|
||||
3. Run '...'
|
||||
4. See error...
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Environment
|
||||
description: |
|
||||
examples:
|
||||
- **OS**: Ubuntu 20.04
|
||||
- **How docker service was installed**: distro's packagemanager
|
||||
value: |
|
||||
- OS:
|
||||
- How docker service was installed:
|
||||
render: markdown
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Docker creation
|
||||
description: |
|
||||
Command used to create docker container
|
||||
Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container
|
||||
render: bash
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
description: |
|
||||
Provide a full docker log, output of "docker logs ffmpeg"
|
||||
label: Container logs
|
||||
placeholder: |
|
||||
Output of `docker logs ffmpeg`
|
||||
render: bash
|
||||
validations:
|
||||
required: true
|
||||
31
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Normal file
31
.github/ISSUE_TEMPLATE/issue.feature.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
# Based on the issue template
|
||||
name: Feature request
|
||||
description: Suggest an idea for this project
|
||||
title: "[FEAT] <title>"
|
||||
labels: [enhancement]
|
||||
body:
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Is this a new feature request?
|
||||
description: Please search to see if a feature request already exists.
|
||||
options:
|
||||
- label: I have searched the existing issues
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Wanted change
|
||||
description: Tell us what you want to happen.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Reason for change
|
||||
description: Justify your request, why do you want it, what is the benefit.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Proposed code change
|
||||
description: Do you have a potential code change in mind?
|
||||
validations:
|
||||
required: false
|
||||
10
.github/PULL_REQUEST_TEMPLATE.md
vendored
Executable file → Normal file
10
.github/PULL_REQUEST_TEMPLATE.md
vendored
Executable file → Normal file
@ -2,11 +2,11 @@
|
||||
|
||||
[linuxserverurl]: https://linuxserver.io
|
||||
[][linuxserverurl]
|
||||
|
||||
|
||||
|
||||
<!--- Before submitting a pull request please check the following -->
|
||||
|
||||
<!--- If this is a fix for a typo in code or documentation in the README please file an issue and let us sort it out we do not need a PR -->
|
||||
<!--- If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR -->
|
||||
<!--- Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
|
||||
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
|
||||
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
|
||||
@ -21,7 +21,11 @@
|
||||
|
||||
------------------------------
|
||||
|
||||
We welcome all PR’s though this doesn’t guarantee it will be accepted.
|
||||
- [ ] I have read the [contributing](https://github.com/linuxserver/docker-ffmpeg/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications
|
||||
|
||||
------------------------------
|
||||
|
||||
<!--- We welcome all PR’s though this doesn’t guarantee it will be accepted. -->
|
||||
|
||||
## Description:
|
||||
<!--- Describe your changes in detail -->
|
||||
|
||||
19
.github/workflows/call_issue_pr_tracker.yml
vendored
Normal file
19
.github/workflows/call_issue_pr_tracker.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: Issue & PR Tracker
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened,reopened,labeled,unlabeled,closed]
|
||||
pull_request_target:
|
||||
types: [opened,reopened,review_requested,review_request_removed,labeled,unlabeled,closed]
|
||||
pull_request_review:
|
||||
types: [submitted,edited,dismissed]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
manage-project:
|
||||
permissions:
|
||||
issues: write
|
||||
uses: linuxserver/github-workflows/.github/workflows/issue-pr-tracker.yml@v1
|
||||
secrets: inherit
|
||||
16
.github/workflows/call_issues_cron.yml
vendored
Normal file
16
.github/workflows/call_issues_cron.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
name: Mark stale issues and pull requests
|
||||
on:
|
||||
schedule:
|
||||
- cron: '15 0 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
uses: linuxserver/github-workflows/.github/workflows/issues-cron.yml@v1
|
||||
secrets: inherit
|
||||
147
.github/workflows/external_trigger.yml
vendored
Normal file
147
.github/workflows/external_trigger.yml
vendored
Normal file
@ -0,0 +1,147 @@
|
||||
name: External Trigger Main
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
external-trigger-master:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.1
|
||||
|
||||
- name: External Trigger
|
||||
if: github.ref == 'refs/heads/master'
|
||||
env:
|
||||
SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }}
|
||||
run: |
|
||||
printf "# External trigger for docker-ffmpeg\n\n" >> $GITHUB_STEP_SUMMARY
|
||||
if grep -q "^ffmpeg_master_" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
|
||||
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`ffmpeg_master_\`; will skip trigger if version matches." >> $GITHUB_STEP_SUMMARY
|
||||
elif grep -q "^ffmpeg_master" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`ffmpeg_master\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
|
||||
exit 0
|
||||
fi
|
||||
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> External trigger running off of master branch. To disable this trigger, add \`ffmpeg_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
|
||||
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
|
||||
EXT_RELEASE=$(echo 8.0.1-cli)
|
||||
echo "Type is \`custom_version_command\`" >> $GITHUB_STEP_SUMMARY
|
||||
if grep -q "^ffmpeg_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY
|
||||
exit 0
|
||||
fi
|
||||
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Can't retrieve external version, exiting" >> $GITHUB_STEP_SUMMARY
|
||||
FAILURE_REASON="Can't retrieve external version for ffmpeg branch master"
|
||||
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-ffmpeg/actions/runs/${{ github.run_id }}"
|
||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
|
||||
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n**Trigger URL:** '"${GHA_TRIGGER_URL}"' \n"}],
|
||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||
exit 1
|
||||
fi
|
||||
EXT_RELEASE_SANITIZED=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g')
|
||||
echo "Sanitized external version: \`${EXT_RELEASE_SANITIZED}\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "Retrieving last pushed version" >> $GITHUB_STEP_SUMMARY
|
||||
image="linuxserver/ffmpeg"
|
||||
tag="latest"
|
||||
token=$(curl -sX GET \
|
||||
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fffmpeg%3Apull" \
|
||||
| jq -r '.token')
|
||||
multidigest=$(curl -s \
|
||||
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
||||
--header "Accept: application/vnd.oci.image.index.v1+json" \
|
||||
--header "Authorization: Bearer ${token}" \
|
||||
"https://ghcr.io/v2/${image}/manifests/${tag}")
|
||||
if jq -e '.layers // empty' <<< "${multidigest}" >/dev/null 2>&1; then
|
||||
# If there's a layer element it's a single-arch manifest so just get that digest
|
||||
digest=$(jq -r '.config.digest' <<< "${multidigest}")
|
||||
else
|
||||
# Otherwise it's multi-arch or has manifest annotations
|
||||
if jq -e '.manifests[]?.annotations // empty' <<< "${multidigest}" >/dev/null 2>&1; then
|
||||
# Check for manifest annotations and delete if found
|
||||
multidigest=$(jq 'del(.manifests[] | select(.annotations))' <<< "${multidigest}")
|
||||
fi
|
||||
if [[ $(jq '.manifests | length' <<< "${multidigest}") -gt 1 ]]; then
|
||||
# If there's still more than one digest, it's multi-arch
|
||||
multidigest=$(jq -r ".manifests[] | select(.platform.architecture == \"amd64\").digest?" <<< "${multidigest}")
|
||||
else
|
||||
# Otherwise it's single arch
|
||||
multidigest=$(jq -r ".manifests[].digest?" <<< "${multidigest}")
|
||||
fi
|
||||
if digest=$(curl -s \
|
||||
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
|
||||
--header "Accept: application/vnd.oci.image.manifest.v1+json" \
|
||||
--header "Authorization: Bearer ${token}" \
|
||||
"https://ghcr.io/v2/${image}/manifests/${multidigest}"); then
|
||||
digest=$(jq -r '.config.digest' <<< "${digest}");
|
||||
fi
|
||||
fi
|
||||
image_info=$(curl -sL \
|
||||
--header "Authorization: Bearer ${token}" \
|
||||
"https://ghcr.io/v2/${image}/blobs/${digest}")
|
||||
if [[ $(echo $image_info | jq -r '.container_config') == "null" ]]; then
|
||||
image_info=$(echo $image_info | jq -r '.config')
|
||||
else
|
||||
image_info=$(echo $image_info | jq -r '.container_config')
|
||||
fi
|
||||
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
|
||||
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
|
||||
if [ -z "${IMAGE_VERSION}" ]; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "Can't retrieve last pushed version, exiting" >> $GITHUB_STEP_SUMMARY
|
||||
FAILURE_REASON="Can't retrieve last pushed version for ffmpeg tag latest"
|
||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
|
||||
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
|
||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||
exit 1
|
||||
fi
|
||||
echo "Last pushed version: \`${IMAGE_VERSION}\`" >> $GITHUB_STEP_SUMMARY
|
||||
if [ "${EXT_RELEASE_SANITIZED}" == "${IMAGE_VERSION}" ]; then
|
||||
echo "Sanitized version \`${EXT_RELEASE_SANITIZED}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
|
||||
exit 0
|
||||
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ffmpeg/job/master/lastBuild/api/json | jq -r '.building') == "true" ]; then
|
||||
echo "New version \`${EXT_RELEASE}\` found; but there already seems to be an active build on Jenkins; exiting" >> $GITHUB_STEP_SUMMARY
|
||||
exit 0
|
||||
else
|
||||
if [[ "${artifacts_found}" == "false" ]]; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY
|
||||
FAILURE_REASON="New version ${EXT_RELEASE} for ffmpeg tag latest is detected, however not all artifacts are uploaded to upstream release yet. Will try again later."
|
||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
||||
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
|
||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||
else
|
||||
printf "\n## Trigger new build\n\n" >> $GITHUB_STEP_SUMMARY
|
||||
echo "New sanitized version \`${EXT_RELEASE_SANITIZED}\` found; old version was \`${IMAGE_VERSION}\`. Triggering new build" >> $GITHUB_STEP_SUMMARY
|
||||
if [[ "${artifacts_found}" == "true" ]]; then
|
||||
echo "All artifacts seem to be uploaded." >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
response=$(curl -iX POST \
|
||||
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ffmpeg/job/master/buildWithParameters?PACKAGE_CHECK=false \
|
||||
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
|
||||
echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY
|
||||
echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY
|
||||
sleep 10
|
||||
buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url')
|
||||
buildurl="${buildurl%$'\r'}"
|
||||
echo "Jenkins job [build url](${buildurl})" >> $GITHUB_STEP_SUMMARY
|
||||
echo "Attempting to change the Jenkins job description" >> $GITHUB_STEP_SUMMARY
|
||||
curl -iX POST \
|
||||
"${buildurl}submitDescription" \
|
||||
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \
|
||||
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
||||
--data-urlencode "Submit=Submit"
|
||||
echo "**** Notifying Discord ****"
|
||||
TRIGGER_REASON="A version change was detected for ffmpeg tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE_SANITIZED}"
|
||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
||||
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
|
||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||
fi
|
||||
fi
|
||||
48
.github/workflows/external_trigger_scheduler.yml
vendored
Normal file
48
.github/workflows/external_trigger_scheduler.yml
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
name: External Trigger Scheduler
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '1 * * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
external-trigger-scheduler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.1
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
|
||||
- name: External Trigger Scheduler
|
||||
run: |
|
||||
printf "# External trigger scheduler for docker-ffmpeg\n\n" >> $GITHUB_STEP_SUMMARY
|
||||
printf "Found the branches:\n\n%s\n" "$(git for-each-ref --format='- %(refname:lstrip=3)' refs/remotes)" >> $GITHUB_STEP_SUMMARY
|
||||
for br in $(git for-each-ref --format='%(refname:lstrip=3)' refs/remotes)
|
||||
do
|
||||
if [[ "${br}" == "HEAD" ]]; then
|
||||
printf "\nSkipping %s.\n" ${br} >> $GITHUB_STEP_SUMMARY
|
||||
continue
|
||||
fi
|
||||
printf "\n## Evaluating \`%s\`\n\n" ${br} >> $GITHUB_STEP_SUMMARY
|
||||
ls_jenkins_vars=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-ffmpeg/${br}/jenkins-vars.yml)
|
||||
ls_branch=$(echo "${ls_jenkins_vars}" | yq -r '.ls_branch')
|
||||
ls_trigger=$(echo "${ls_jenkins_vars}" | yq -r '.external_type')
|
||||
if [[ "${br}" == "${ls_branch}" ]] && [[ "${ls_trigger}" != "os" ]]; then
|
||||
echo "Branch appears to be live and trigger is not os; checking workflow." >> $GITHUB_STEP_SUMMARY
|
||||
if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-ffmpeg/${br}/.github/workflows/external_trigger.yml > /dev/null 2>&1; then
|
||||
echo "Triggering external trigger workflow for branch." >> $GITHUB_STEP_SUMMARY
|
||||
curl -iX POST \
|
||||
-H "Authorization: token ${{ secrets.CR_PAT }}" \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
-d "{\"ref\":\"refs/heads/${br}\"}" \
|
||||
https://api.github.com/repos/linuxserver/docker-ffmpeg/actions/workflows/external_trigger.yml/dispatches
|
||||
else
|
||||
echo "Skipping branch due to no external trigger workflow present." >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
else
|
||||
echo "Skipping branch due to being detected as dev branch or having no external version." >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
done
|
||||
19
.github/workflows/greetings.yml
vendored
Normal file
19
.github/workflows/greetings.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: Greetings
|
||||
|
||||
on: [pull_request_target, issues]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
greeting:
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/first-interaction@v1
|
||||
with:
|
||||
issue-message: 'Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.'
|
||||
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-ffmpeg/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
103
.github/workflows/package_trigger_scheduler.yml
vendored
Normal file
103
.github/workflows/package_trigger_scheduler.yml
vendored
Normal file
@ -0,0 +1,103 @@
|
||||
name: Package Trigger Scheduler
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '59 21 * * 4'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
package-trigger-scheduler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.1
|
||||
with:
|
||||
fetch-depth: '0'
|
||||
|
||||
- name: Package Trigger Scheduler
|
||||
env:
|
||||
SKIP_PACKAGE_TRIGGER: ${{ vars.SKIP_PACKAGE_TRIGGER }}
|
||||
run: |
|
||||
printf "# Package trigger scheduler for docker-ffmpeg\n\n" >> $GITHUB_STEP_SUMMARY
|
||||
printf "Found the branches:\n\n%s\n" "$(git for-each-ref --format='- %(refname:lstrip=3)' refs/remotes)" >> $GITHUB_STEP_SUMMARY
|
||||
for br in $(git for-each-ref --format='%(refname:lstrip=3)' refs/remotes)
|
||||
do
|
||||
if [[ "${br}" == "HEAD" ]]; then
|
||||
printf "\nSkipping %s.\n" ${br} >> $GITHUB_STEP_SUMMARY
|
||||
continue
|
||||
fi
|
||||
printf "\n## Evaluating \`%s\`\n\n" ${br} >> $GITHUB_STEP_SUMMARY
|
||||
JENKINS_VARS=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-ffmpeg/${br}/jenkins-vars.yml)
|
||||
if ! curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-ffmpeg/${br}/Jenkinsfile >/dev/null 2>&1; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> No Jenkinsfile found. Branch is either deprecated or is an early dev branch." >> $GITHUB_STEP_SUMMARY
|
||||
skipped_branches="${skipped_branches}${br} "
|
||||
elif [[ "${br}" == $(yq -r '.ls_branch' <<< "${JENKINS_VARS}") ]]; then
|
||||
echo "Branch appears to be live; checking workflow." >> $GITHUB_STEP_SUMMARY
|
||||
README_VARS=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-ffmpeg/${br}/readme-vars.yml)
|
||||
if [[ $(yq -r '.project_deprecation_status' <<< "${README_VARS}") == "true" ]]; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Branch appears to be deprecated; skipping trigger." >> $GITHUB_STEP_SUMMARY
|
||||
skipped_branches="${skipped_branches}${br} "
|
||||
elif [[ $(yq -r '.skip_package_check' <<< "${JENKINS_VARS}") == "true" ]]; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Skipping branch ${br} due to \`skip_package_check\` being set in \`jenkins-vars.yml\`." >> $GITHUB_STEP_SUMMARY
|
||||
skipped_branches="${skipped_branches}${br} "
|
||||
elif grep -q "^ffmpeg_${br}" <<< "${SKIP_PACKAGE_TRIGGER}"; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Github organizational variable \`SKIP_PACKAGE_TRIGGER\` contains \`ffmpeg_${br}\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
|
||||
skipped_branches="${skipped_branches}${br} "
|
||||
elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ffmpeg/job/${br}/lastBuild/api/json | jq -r '.building' 2>/dev/null) == "true" ]; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> There already seems to be an active build on Jenkins; skipping package trigger for ${br}" >> $GITHUB_STEP_SUMMARY
|
||||
skipped_branches="${skipped_branches}${br} "
|
||||
else
|
||||
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Triggering package trigger for branch ${br}" >> $GITHUB_STEP_SUMMARY
|
||||
printf "> To disable, add \`ffmpeg_%s\` into the Github organizational variable \`SKIP_PACKAGE_TRIGGER\`.\n\n" "${br}" >> $GITHUB_STEP_SUMMARY
|
||||
triggered_branches="${triggered_branches}${br} "
|
||||
response=$(curl -iX POST \
|
||||
https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ffmpeg/job/${br}/buildWithParameters?PACKAGE_CHECK=true \
|
||||
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|")
|
||||
if [[ -z "${response}" ]]; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Jenkins build could not be triggered. Skipping branch."
|
||||
continue
|
||||
fi
|
||||
echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY
|
||||
echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY
|
||||
sleep 10
|
||||
buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url')
|
||||
buildurl="${buildurl%$'\r'}"
|
||||
echo "Jenkins job [build url](${buildurl})" >> $GITHUB_STEP_SUMMARY
|
||||
echo "Attempting to change the Jenkins job description" >> $GITHUB_STEP_SUMMARY
|
||||
if ! curl -ifX POST \
|
||||
"${buildurl}submitDescription" \
|
||||
--user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \
|
||||
--data-urlencode "description=GHA package trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
||||
--data-urlencode "Submit=Submit"; then
|
||||
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
|
||||
echo "> Unable to change the Jenkins job description."
|
||||
fi
|
||||
sleep 20
|
||||
fi
|
||||
else
|
||||
echo "Skipping branch ${br} due to being detected as dev branch." >> $GITHUB_STEP_SUMMARY
|
||||
fi
|
||||
done
|
||||
if [[ -n "${triggered_branches}" ]] || [[ -n "${skipped_branches}" ]]; then
|
||||
if [[ -n "${triggered_branches}" ]]; then
|
||||
NOTIFY_BRANCHES="**Triggered:** ${triggered_branches} \n"
|
||||
NOTIFY_BUILD_URL="**Build URL:** https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-ffmpeg/activity/ \n"
|
||||
echo "**** Package check build(s) triggered for branch(es): ${triggered_branches} ****"
|
||||
fi
|
||||
if [[ -n "${skipped_branches}" ]]; then
|
||||
NOTIFY_BRANCHES="${NOTIFY_BRANCHES}**Skipped:** ${skipped_branches} \n"
|
||||
fi
|
||||
echo "**** Notifying Discord ****"
|
||||
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
|
||||
"description": "**Package Check Build(s) for ffmpeg** \n'"${NOTIFY_BRANCHES}"''"${NOTIFY_BUILD_URL}"'"}],
|
||||
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
|
||||
fi
|
||||
12
.github/workflows/permissions.yml
vendored
Normal file
12
.github/workflows/permissions.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
name: Permission check
|
||||
on:
|
||||
pull_request_target:
|
||||
paths:
|
||||
- '**/run'
|
||||
- '**/finish'
|
||||
- '**/check'
|
||||
- 'root/migrations/*'
|
||||
|
||||
jobs:
|
||||
permission_check:
|
||||
uses: linuxserver/github-workflows/.github/workflows/init-svc-executable-permissions.yml@v1
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.jenkins-external
|
||||
1077
Dockerfile
1077
Dockerfile
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,716 @@
|
||||
FROM lsiobase/ffmpeg:arm64v8-bin as binstage
|
||||
FROM lsiobase/ubuntu:arm64v8-bionic
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
# build stage
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-noble AS buildstage
|
||||
|
||||
# set version label
|
||||
ARG FFMPEG_VERSION
|
||||
|
||||
# common env
|
||||
ENV \
|
||||
DEBIAN_FRONTEND="noninteractive" \
|
||||
MAKEFLAGS="-j4" \
|
||||
CMAKE_POLICY_VERSION_MINIMUM="3.5" \
|
||||
PATH="/root/.cargo/bin:${PATH}"
|
||||
|
||||
# versions
|
||||
ENV \
|
||||
AOM=v3.13.1 \
|
||||
FDKAAC=2.0.3 \
|
||||
FFMPEG_HARD=8.0.1 \
|
||||
FONTCONFIG=2.16.0 \
|
||||
FREETYPE=2.14.1 \
|
||||
FRIBIDI=1.0.16 \
|
||||
HARFBUZZ=12.3.0 \
|
||||
KVAZAAR=2.3.2 \
|
||||
LAME=3.100 \
|
||||
LIBASS=0.17.4 \
|
||||
LIBDAV1D=1.5.3 \
|
||||
LIBDRM=2.4.131 \
|
||||
LIBLC3=1.1.3 \
|
||||
LIBPNG=1.6.53 \
|
||||
LIBVA=2.23.0 \
|
||||
LIBVDPAU=1.5 \
|
||||
LIBVIDSTAB=1.1.1 \
|
||||
LIBVMAF=3.0.0 \
|
||||
NVCODEC=n13.0.19.0 \
|
||||
OGG=1.3.6 \
|
||||
OPENCOREAMR=0.1.6 \
|
||||
OPENJPEG=2.5.4 \
|
||||
OPUS=1.6 \
|
||||
RAV1E=0.8.1 \
|
||||
RIST=0.2.11 \
|
||||
SRT=1.5.4 \
|
||||
SVTAV1=3.1.2 \
|
||||
THEORA=1.2.0 \
|
||||
VORBIS=1.3.7 \
|
||||
VPX=1.15.2 \
|
||||
VVENC=1.13.1 \
|
||||
WEBP=1.6.0 \
|
||||
X265=4.1 \
|
||||
XVID=1.3.7 \
|
||||
ZIMG=3.0.6 \
|
||||
ZMQ=v4.3.5
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
autoconf \
|
||||
automake \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
cmake \
|
||||
clang \
|
||||
diffutils \
|
||||
g++ \
|
||||
gcc \
|
||||
git \
|
||||
gperf \
|
||||
libasound2-dev \
|
||||
libcairo2-dev \
|
||||
libexpat1-dev \
|
||||
libgcc-10-dev \
|
||||
libglib2.0-dev \
|
||||
libgomp1 \
|
||||
libharfbuzz-dev \
|
||||
libpciaccess-dev \
|
||||
libssl-dev \
|
||||
libtool \
|
||||
libv4l-dev \
|
||||
libx11-dev \
|
||||
libxext-dev \
|
||||
libxml2-dev \
|
||||
llvm-18-dev \
|
||||
make \
|
||||
nasm \
|
||||
perl \
|
||||
pkg-config \
|
||||
python3-venv \
|
||||
x11proto-xext-dev \
|
||||
xxd \
|
||||
yasm \
|
||||
zlib1g-dev && \
|
||||
mkdir -p /tmp/rust && \
|
||||
RUST_VERSION=$(curl -fsX GET https://api.github.com/repos/rust-lang/rust/releases/latest | jq -r '.tag_name') && \
|
||||
curl -fo /tmp/rust.tar.gz -L "https://static.rust-lang.org/dist/rust-${RUST_VERSION}-aarch64-unknown-linux-gnu.tar.gz" && \
|
||||
tar xf /tmp/rust.tar.gz -C /tmp/rust --strip-components=1 && \
|
||||
cd /tmp/rust && \
|
||||
./install.sh && \
|
||||
cargo install cargo-c --locked && \
|
||||
python3 -m venv /lsiopy && \
|
||||
pip install -U --no-cache-dir \
|
||||
pip \
|
||||
setuptools \
|
||||
wheel && \
|
||||
pip install --no-cache-dir cmake==3.31.6 meson ninja
|
||||
|
||||
# compile 3rd party libs
|
||||
RUN \
|
||||
echo "**** grabbing aom ****" && \
|
||||
mkdir -p /tmp/aom && \
|
||||
git clone \
|
||||
--branch ${AOM} \
|
||||
--depth 1 https://aomedia.googlesource.com/aom \
|
||||
/tmp/aom
|
||||
RUN \
|
||||
echo "**** compiling aom ****" && \
|
||||
cd /tmp/aom && \
|
||||
rm -rf \
|
||||
CMakeCache.txt \
|
||||
CMakeFiles && \
|
||||
mkdir -p \
|
||||
aom_build && \
|
||||
cd aom_build && \
|
||||
cmake \
|
||||
-DBUILD_STATIC_LIBS=0 .. && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing fdk-aac ****" && \
|
||||
mkdir -p /tmp/fdk-aac && \
|
||||
curl -Lf \
|
||||
https://github.com/mstorsjo/fdk-aac/archive/v${FDKAAC}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/fdk-aac
|
||||
RUN \
|
||||
echo "**** compiling fdk-aac ****" && \
|
||||
cd /tmp/fdk-aac && \
|
||||
autoreconf -fiv && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libfdk-aac.so
|
||||
RUN \
|
||||
echo "**** grabbing ffnvcodec ****" && \
|
||||
mkdir -p /tmp/ffnvcodec && \
|
||||
git clone \
|
||||
--branch ${NVCODEC} \
|
||||
--depth 1 https://github.com/FFmpeg/nv-codec-headers.git \
|
||||
/tmp/ffnvcodec
|
||||
RUN \
|
||||
echo "**** compiling ffnvcodec ****" && \
|
||||
cd /tmp/ffnvcodec && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing freetype ****" && \
|
||||
mkdir -p /tmp/freetype && \
|
||||
curl -Lf \
|
||||
https://downloads.sourceforge.net/project/freetype/freetype2/${FREETYPE}/freetype-${FREETYPE}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/freetype
|
||||
RUN \
|
||||
echo "**** compiling freetype ****" && \
|
||||
cd /tmp/freetype && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libfreetype.so
|
||||
RUN \
|
||||
echo "**** grabbing fontconfig ****" && \
|
||||
mkdir -p /tmp/fontconfig && \
|
||||
curl -Lf \
|
||||
https://www.freedesktop.org/software/fontconfig/release/fontconfig-${FONTCONFIG}.tar.xz | \
|
||||
tar -xJ --strip-components=1 -C /tmp/fontconfig
|
||||
RUN \
|
||||
echo "**** compiling fontconfig ****" && \
|
||||
cd /tmp/fontconfig && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libfontconfig.so
|
||||
RUN \
|
||||
echo "**** grabbing fribidi ****" && \
|
||||
mkdir -p /tmp/fribidi && \
|
||||
curl -Lf \
|
||||
https://github.com/fribidi/fribidi/archive/v${FRIBIDI}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/fribidi
|
||||
RUN \
|
||||
echo "**** compiling fribidi ****" && \
|
||||
cd /tmp/fribidi && \
|
||||
./autogen.sh && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make -j 1 && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libfribidi.so
|
||||
RUN \
|
||||
echo "**** grabbing harfbuzz ****" && \
|
||||
mkdir -p /tmp/harfbuzz && \
|
||||
curl -Lf \
|
||||
https://github.com/harfbuzz/harfbuzz/archive/${HARFBUZZ}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/harfbuzz
|
||||
RUN \
|
||||
echo "**** compiling harfbuzz ****" && \
|
||||
cd /tmp/harfbuzz && \
|
||||
meson build && \
|
||||
ninja -C build install && \
|
||||
strip -d /usr/local/lib/aarch64-linux-gnu/libharfbuzz*.so
|
||||
RUN \
|
||||
echo "**** grabbing kvazaar ****" && \
|
||||
mkdir -p /tmp/kvazaar && \
|
||||
curl -Lf \
|
||||
https://github.com/ultravideo/kvazaar/archive/v${KVAZAAR}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/kvazaar
|
||||
RUN \
|
||||
echo "**** compiling kvazaar ****" && \
|
||||
cd /tmp/kvazaar && \
|
||||
./autogen.sh && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libkvazaar.so
|
||||
RUN \
|
||||
echo "**** grabbing lame ****" && \
|
||||
mkdir -p /tmp/lame && \
|
||||
curl -Lf \
|
||||
http://downloads.sourceforge.net/project/lame/lame/${LAME}/lame-${LAME}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/lame
|
||||
RUN \
|
||||
echo "**** compiling lame ****" && \
|
||||
cd /tmp/lame && \
|
||||
cp \
|
||||
/usr/share/automake-1.16/config.guess \
|
||||
config.guess && \
|
||||
cp \
|
||||
/usr/share/automake-1.16/config.sub \
|
||||
config.sub && \
|
||||
./configure \
|
||||
--disable-frontend \
|
||||
--disable-static \
|
||||
--enable-nasm \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing libass ****" && \
|
||||
mkdir -p /tmp/libass && \
|
||||
curl -Lf \
|
||||
https://github.com/libass/libass/archive/${LIBASS}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/libass
|
||||
RUN \
|
||||
echo "**** compiling libass ****" && \
|
||||
cd /tmp/libass && \
|
||||
./autogen.sh && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libass.so
|
||||
RUN \
|
||||
echo "**** grabbing libdav1d ****" && \
|
||||
mkdir -p /tmp/libdav1d && \
|
||||
git clone \
|
||||
--branch ${LIBDAV1D} \
|
||||
https://code.videolan.org/videolan/dav1d \
|
||||
/tmp/libdav1d
|
||||
RUN \
|
||||
echo "**** compiling libdav1d ****" && \
|
||||
mkdir -p /tmp/libdav1d/build && \
|
||||
cd /tmp/libdav1d/build && \
|
||||
meson setup .. && \
|
||||
ninja install
|
||||
RUN \
|
||||
echo "**** grabbing libdrm ****" && \
|
||||
mkdir -p /tmp/libdrm && \
|
||||
curl -Lf \
|
||||
https://dri.freedesktop.org/libdrm/libdrm-${LIBDRM}.tar.xz | \
|
||||
tar -xJ --strip-components=1 -C /tmp/libdrm
|
||||
RUN \
|
||||
echo "**** compiling libdrm ****" && \
|
||||
cd /tmp/libdrm && \
|
||||
meson setup \
|
||||
--prefix=/usr --libdir=/usr/local/lib/aarch64-linux-gnu \
|
||||
-Dvalgrind=disabled \
|
||||
. build && \
|
||||
ninja -C build && \
|
||||
ninja -C build install && \
|
||||
strip -d /usr/local/lib/aarch64-linux-gnu/libdrm*.so
|
||||
RUN \
|
||||
echo "**** grabbing liblc3 ****" && \
|
||||
mkdir -p /tmp/liblc3 && \
|
||||
git clone \
|
||||
--branch v${LIBLC3} \
|
||||
--depth 1 \
|
||||
https://github.com/google/liblc3.git \
|
||||
/tmp/liblc3
|
||||
RUN \
|
||||
echo "**** compiling liblc3 ****" && \
|
||||
cd /tmp/liblc3 && \
|
||||
meson setup build && \
|
||||
meson install -C build --strip
|
||||
RUN \
|
||||
echo "**** grabbing vmaf ****" && \
|
||||
mkdir -p /tmp/vmaf && \
|
||||
curl -Lf \
|
||||
https://github.com/Netflix/vmaf/archive/refs/tags/v${LIBVMAF}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/vmaf
|
||||
RUN \
|
||||
echo "**** compiling libvmaf ****" && \
|
||||
cd /tmp/vmaf/libvmaf && \
|
||||
meson setup \
|
||||
--prefix=/usr --libdir=/usr/local/lib \
|
||||
--buildtype release \
|
||||
build && \
|
||||
ninja -vC build && \
|
||||
ninja -vC build install
|
||||
RUN \
|
||||
echo "**** grabbing ogg ****" && \
|
||||
mkdir -p /tmp/ogg && \
|
||||
curl -Lf \
|
||||
http://downloads.xiph.org/releases/ogg/libogg-${OGG}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/ogg
|
||||
RUN \
|
||||
echo "**** compiling ogg ****" && \
|
||||
cd /tmp/ogg && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing opencore-amr ****" && \
|
||||
mkdir -p /tmp/opencore-amr && \
|
||||
curl -Lf \
|
||||
http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-${OPENCOREAMR}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/opencore-amr
|
||||
RUN \
|
||||
echo "**** compiling opencore-amr ****" && \
|
||||
cd /tmp/opencore-amr && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libopencore-amr*.so
|
||||
RUN \
|
||||
echo "**** grabbing openjpeg ****" && \
|
||||
mkdir -p /tmp/openjpeg && \
|
||||
curl -Lf \
|
||||
https://github.com/uclouvain/openjpeg/archive/v${OPENJPEG}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/openjpeg
|
||||
RUN \
|
||||
echo "**** compiling openjpeg ****" && \
|
||||
cd /tmp/openjpeg && \
|
||||
rm -Rf \
|
||||
thirdparty/libpng/* && \
|
||||
curl -Lf \
|
||||
https://download.sourceforge.net/libpng/libpng-${LIBPNG}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C thirdparty/libpng/ && \
|
||||
cmake \
|
||||
-DBUILD_STATIC_LIBS=0 \
|
||||
-DBUILD_THIRDPARTY:BOOL=ON . && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing opus ****" && \
|
||||
mkdir -p /tmp/opus && \
|
||||
curl -Lf \
|
||||
https://downloads.xiph.org/releases/opus/opus-${OPUS}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/opus
|
||||
RUN \
|
||||
echo "**** compiling opus ****" && \
|
||||
cd /tmp/opus && \
|
||||
autoreconf -fiv && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libopus.so
|
||||
RUN \
|
||||
echo "**** grabbing rav1e ****" && \
|
||||
mkdir -p /tmp/rav1e && \
|
||||
git clone \
|
||||
--branch v${RAV1E} \
|
||||
https://github.com/xiph/rav1e.git \
|
||||
/tmp/rav1e
|
||||
RUN \
|
||||
echo "**** compiling rav1e ****" && \
|
||||
cd /tmp/rav1e && \
|
||||
cargo cinstall --release && \
|
||||
strip -d /usr/local/lib/aarch64-linux-gnu/librav1e.so
|
||||
RUN \
|
||||
echo "**** grabbing rist ****" && \
|
||||
mkdir -p /tmp/rist && \
|
||||
git clone \
|
||||
--branch v${RIST} \
|
||||
--depth 1 https://code.videolan.org/rist/librist.git \
|
||||
/tmp/rist
|
||||
RUN \
|
||||
echo "**** compiling rist ****" && \
|
||||
cd /tmp/rist && \
|
||||
mkdir -p \
|
||||
rist_build && \
|
||||
cd rist_build && \
|
||||
meson setup \
|
||||
--default-library=shared .. && \
|
||||
ninja && \
|
||||
ninja install && \
|
||||
strip -d /usr/local/lib/librist.so
|
||||
RUN \
|
||||
echo "**** grabbing srt ****" && \
|
||||
mkdir -p /tmp/srt && \
|
||||
git clone \
|
||||
--branch v${SRT} \
|
||||
--depth 1 https://github.com/Haivision/srt.git \
|
||||
/tmp/srt
|
||||
RUN \
|
||||
echo "**** compiling srt ****" && \
|
||||
cd /tmp/srt && \
|
||||
mkdir -p \
|
||||
srt_build && \
|
||||
cd srt_build && \
|
||||
cmake \
|
||||
-DBUILD_SHARED_LIBS:BOOL=on .. && \
|
||||
make && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libsrt.so
|
||||
RUN \
|
||||
echo "**** grabbing SVT-AV1 ****" && \
|
||||
mkdir -p /tmp/svt-av1 && \
|
||||
curl -Lf \
|
||||
https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v${SVTAV1}/SVT-AV1-v${SVTAV1}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/svt-av1
|
||||
RUN \
|
||||
echo "**** compiling SVT-AV1 ****" && \
|
||||
cd /tmp/svt-av1/Build && \
|
||||
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Release && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing theora ****" && \
|
||||
mkdir -p /tmp/theora && \
|
||||
curl -Lf \
|
||||
http://downloads.xiph.org/releases/theora/libtheora-${THEORA}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/theora
|
||||
RUN \
|
||||
echo "**** compiling theora ****" && \
|
||||
cd /tmp/theora && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing vid.stab ****" && \
|
||||
mkdir -p /tmp/vid.stab && \
|
||||
curl -Lf \
|
||||
https://github.com/georgmartius/vid.stab/archive/v${LIBVIDSTAB}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/vid.stab
|
||||
RUN \
|
||||
echo "**** compiling vid.stab ****" && \
|
||||
cd /tmp/vid.stab && \
|
||||
echo "" > \
|
||||
CMakeModules/FindSSE.cmake && \
|
||||
cmake . && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing vorbis ****" && \
|
||||
mkdir -p /tmp/vorbis && \
|
||||
curl -Lf \
|
||||
http://downloads.xiph.org/releases/vorbis/libvorbis-${VORBIS}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/vorbis
|
||||
RUN \
|
||||
echo "**** compiling vorbis ****" && \
|
||||
cd /tmp/vorbis && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing vpx ****" && \
|
||||
mkdir -p /tmp/vpx && \
|
||||
curl -Lf \
|
||||
https://github.com/webmproject/libvpx/archive/v${VPX}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/vpx
|
||||
RUN \
|
||||
echo "**** compiling vpx ****" && \
|
||||
cd /tmp/vpx && \
|
||||
./configure \
|
||||
--disable-debug \
|
||||
--disable-docs \
|
||||
--disable-examples \
|
||||
--disable-install-bins \
|
||||
--disable-static \
|
||||
--disable-unit-tests \
|
||||
--enable-pic \
|
||||
--enable-shared \
|
||||
--enable-vp8 \
|
||||
--enable-vp9 \
|
||||
--enable-vp9-highbitdepth && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing vvenc ****" && \
|
||||
mkdir -p /tmp/vvenc && \
|
||||
git clone \
|
||||
--branch v${VVENC} \
|
||||
--depth 1 https://github.com/fraunhoferhhi/vvenc.git \
|
||||
/tmp/vvenc
|
||||
RUN \
|
||||
echo "**** compiling vvenc ****" && \
|
||||
cd /tmp/vvenc && \
|
||||
make install install-prefix=/usr/local && \
|
||||
strip -d /usr/local/lib/libvvenc.so
|
||||
RUN \
|
||||
echo "**** grabbing webp ****" && \
|
||||
mkdir -p /tmp/webp && \
|
||||
curl -Lf \
|
||||
https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-${WEBP}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/webp
|
||||
RUN \
|
||||
echo "**** compiling webp ****" && \
|
||||
cd /tmp/webp && \
|
||||
./configure && \
|
||||
make && \
|
||||
make install && \
|
||||
strip -d /usr/local/lib/libweb*.so
|
||||
RUN \
|
||||
echo "**** grabbing x264 ****" && \
|
||||
mkdir -p /tmp/x264 && \
|
||||
curl -Lf \
|
||||
https://code.videolan.org/videolan/x264/-/archive/master/x264-stable.tar.bz2 | \
|
||||
tar -jx --strip-components=1 -C /tmp/x264
|
||||
RUN \
|
||||
echo "**** compiling x264 ****" && \
|
||||
cd /tmp/x264 && \
|
||||
./configure \
|
||||
--disable-cli \
|
||||
--disable-static \
|
||||
--enable-pic \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing x265 ****" && \
|
||||
mkdir -p /tmp/x265 && \
|
||||
curl -Lf \
|
||||
https://bitbucket.org/multicoreware/x265_git/downloads/x265_${X265}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/x265
|
||||
RUN \
|
||||
echo "**** compiling x265 ****" && \
|
||||
cd /tmp/x265/build/linux && \
|
||||
export CXXFLAGS="-fPIC" && \
|
||||
./multilib.sh && \
|
||||
make -C 8bit install
|
||||
RUN \
|
||||
echo "**** grabbing xvid ****" && \
|
||||
mkdir -p /tmp/xvid && \
|
||||
curl -Lf \
|
||||
https://downloads.xvid.com/downloads/xvidcore-${XVID}.tar.gz | \
|
||||
tar -zx --strip-components=1 -C /tmp/xvid
|
||||
RUN \
|
||||
echo "**** compiling xvid ****" && \
|
||||
cd /tmp/xvid/build/generic && \
|
||||
./configure && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing zimg ****" && \
|
||||
mkdir -p /tmp/zimg && \
|
||||
git clone \
|
||||
--branch release-${ZIMG} --depth 1 \
|
||||
https://github.com/sekrit-twc/zimg.git \
|
||||
/tmp/zimg
|
||||
RUN \
|
||||
echo "**** compiling zimg ****" && \
|
||||
cd /tmp/zimg && \
|
||||
./autogen.sh && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install
|
||||
RUN \
|
||||
echo "**** grabbing zmq ****" && \
|
||||
mkdir -p /tmp/zmq && \
|
||||
git clone \
|
||||
--branch ${ZMQ} --depth 1 \
|
||||
https://github.com/zeromq/libzmq.git \
|
||||
/tmp/zmq
|
||||
RUN \
|
||||
echo "**** compiling zmq ****" && \
|
||||
cd /tmp/zmq && \
|
||||
./autogen.sh && \
|
||||
./configure \
|
||||
--disable-static \
|
||||
--enable-shared && \
|
||||
make && \
|
||||
make install-strip
|
||||
|
||||
# main ffmpeg build
|
||||
RUN \
|
||||
echo "**** Versioning ****" && \
|
||||
if [ -z ${FFMPEG_VERSION+x} ]; then \
|
||||
FFMPEG=${FFMPEG_HARD}; \
|
||||
else \
|
||||
FFMPEG=${FFMPEG_VERSION%-cli}; \
|
||||
fi && \
|
||||
echo "**** grabbing ffmpeg ****" && \
|
||||
mkdir -p /tmp/ffmpeg && \
|
||||
echo "https://ffmpeg.org/releases/ffmpeg-${FFMPEG}.tar.bz2" && \
|
||||
curl -Lf \
|
||||
https://ffmpeg.org/releases/ffmpeg-${FFMPEG}.tar.bz2 | \
|
||||
tar -jx --strip-components=1 -C /tmp/ffmpeg
|
||||
|
||||
RUN \
|
||||
echo "**** compiling ffmpeg ****" && \
|
||||
cd /tmp/ffmpeg && \
|
||||
./configure \
|
||||
--disable-debug \
|
||||
--disable-doc \
|
||||
--disable-ffplay \
|
||||
--enable-alsa \
|
||||
--enable-cuda-llvm \
|
||||
--enable-cuvid \
|
||||
--enable-ffprobe \
|
||||
--enable-gpl \
|
||||
--enable-libaom \
|
||||
--enable-libass \
|
||||
--enable-libdav1d \
|
||||
--enable-libfdk_aac \
|
||||
--enable-libfontconfig \
|
||||
--enable-libfreetype \
|
||||
--enable-libfribidi \
|
||||
--enable-libharfbuzz \
|
||||
--enable-libkvazaar \
|
||||
--enable-liblc3 \
|
||||
--enable-libmp3lame \
|
||||
--enable-libopencore-amrnb \
|
||||
--enable-libopencore-amrwb \
|
||||
--enable-libopenjpeg \
|
||||
--enable-libopus \
|
||||
--enable-librav1e \
|
||||
--enable-librist \
|
||||
--enable-libsrt \
|
||||
--enable-libsvtav1 \
|
||||
--enable-libtheora \
|
||||
--enable-libv4l2 \
|
||||
--enable-libvidstab \
|
||||
--enable-libvmaf \
|
||||
--enable-libvorbis \
|
||||
--enable-libvpx \
|
||||
--enable-libvvenc \
|
||||
--enable-libwebp \
|
||||
--enable-libx264 \
|
||||
--enable-libx265 \
|
||||
--enable-libxml2 \
|
||||
--enable-libxvid \
|
||||
--enable-libzimg \
|
||||
--enable-libzmq \
|
||||
--enable-nonfree \
|
||||
--enable-nvdec \
|
||||
--enable-nvenc \
|
||||
--enable-openssl \
|
||||
--enable-stripping \
|
||||
--enable-version3 \
|
||||
&& \
|
||||
make
|
||||
|
||||
RUN \
|
||||
echo "**** arrange files ****" && \
|
||||
/usr/local/lib/rustlib/uninstall.sh && \
|
||||
ldconfig && \
|
||||
mkdir -p \
|
||||
/buildout/usr/local/bin \
|
||||
/buildout/usr/local/etc/fonts \
|
||||
/buildout/usr/local/lib/aarch64-linux-gnu \
|
||||
/buildout/usr/share/fonts && \
|
||||
cp \
|
||||
/tmp/ffmpeg/ffmpeg \
|
||||
/buildout/usr/local/bin && \
|
||||
cp \
|
||||
/tmp/ffmpeg/ffprobe \
|
||||
/buildout/usr/local/bin && \
|
||||
cp -a \
|
||||
/usr/local/etc/fonts/* \
|
||||
/buildout/usr/local/etc/fonts/ && \
|
||||
cp -a \
|
||||
/usr/local/lib/lib*so* \
|
||||
/buildout/usr/local/lib/ && \
|
||||
cp -a \
|
||||
/usr/local/lib/aarch64-linux-gnu/lib*so* \
|
||||
/buildout/usr/local/lib/aarch64-linux-gnu/ && \
|
||||
cp -a \
|
||||
/usr/share/fonts/* \
|
||||
/buildout/usr/share/fonts/
|
||||
|
||||
# runtime stage
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-noble
|
||||
|
||||
# Add files from binstage
|
||||
COPY --from=binstage / /
|
||||
COPY --from=buildstage /buildout/ /
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -10,24 +718,36 @@ ARG VERSION
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="thelamer"
|
||||
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
|
||||
ENV \
|
||||
NVIDIA_DRIVER_CAPABILITIES="compute,video,utility" \
|
||||
NVIDIA_VISIBLE_DEVICES="all"
|
||||
|
||||
RUN \
|
||||
echo "**** install runtime ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
libexpat1 \
|
||||
libfontconfig1 \
|
||||
libglib2.0-0 \
|
||||
libgomp1 \
|
||||
libharfbuzz0b \
|
||||
libv4l-0 \
|
||||
libx11-6 \
|
||||
libxcb1 \
|
||||
libxext6 \
|
||||
libxml2 && \
|
||||
echo "**** clean up ****" && \
|
||||
rm -rf \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
echo "**** install runtime ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
libasound2t64 \
|
||||
libexpat1 \
|
||||
libglib2.0-0 \
|
||||
libgomp1 \
|
||||
libllvm18 \
|
||||
libv4l-0 \
|
||||
libx11-6 \
|
||||
libxcb1 \
|
||||
libxcb-shm0 \
|
||||
libxext6 \
|
||||
libxml2 \
|
||||
ocl-icd-libopencl1 && \
|
||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||
echo "**** clean up ****" && \
|
||||
rm -rf \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/* && \
|
||||
echo "**** quick test ffmpeg ****" && \
|
||||
ldd /usr/local/bin/ffmpeg && \
|
||||
/usr/local/bin/ffmpeg -version
|
||||
|
||||
COPY /root /
|
||||
|
||||
|
||||
@ -1,34 +0,0 @@
|
||||
FROM lsiobase/ffmpeg:arm32v7-bin as binstage
|
||||
FROM lsiobase/ubuntu:arm32v7-bionic
|
||||
|
||||
# Add files from binstage
|
||||
COPY --from=binstage / /
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="thelamer"
|
||||
|
||||
RUN \
|
||||
echo "**** install runtime ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
libexpat1 \
|
||||
libfontconfig1 \
|
||||
libglib2.0-0 \
|
||||
libgomp1 \
|
||||
libharfbuzz0b \
|
||||
libv4l-0 \
|
||||
libx11-6 \
|
||||
libxcb1 \
|
||||
libxext6 \
|
||||
libxml2 && \
|
||||
echo "**** clean up ****" && \
|
||||
rm -rf \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
|
||||
COPY /root /
|
||||
|
||||
ENTRYPOINT ["/ffmpegwrapper.sh"]
|
||||
991
Jenkinsfile
vendored
991
Jenkinsfile
vendored
File diff suppressed because it is too large
Load Diff
182
README.md
182
README.md
@ -1,65 +1,82 @@
|
||||
<!-- DO NOT EDIT THIS FILE MANUALLY -->
|
||||
<!-- Please read https://github.com/linuxserver/docker-ffmpeg/blob/master/.github/CONTRIBUTING.md -->
|
||||
[](https://linuxserver.io)
|
||||
|
||||
[](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
|
||||
[](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
|
||||
[](https://discourse.linuxserver.io "post on our community forum.")
|
||||
[](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
|
||||
[](https://anchor.fm/linuxserverio "on hiatus. Coming back soon (late 2018).")
|
||||
[](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
|
||||
[](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
|
||||
[](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
|
||||
[](https://discourse.linuxserver.io "post on our community forum.")
|
||||
[](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
|
||||
[](https://github.com/linuxserver "view the source for all of our repositories.")
|
||||
[](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
|
||||
|
||||
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring :-
|
||||
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring:
|
||||
|
||||
* regular and timely application updates
|
||||
* easy user mappings (PGID, PUID)
|
||||
* custom base image with s6 overlay
|
||||
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
|
||||
* regular security updates
|
||||
* regular and timely application updates
|
||||
* easy user mappings (PGID, PUID)
|
||||
* custom base image with s6 overlay
|
||||
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
|
||||
* regular security updates
|
||||
|
||||
Find us at:
|
||||
|
||||
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
|
||||
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
|
||||
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
|
||||
* [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images.
|
||||
* [Podcast](https://anchor.fm/linuxserverio) - on hiatus. Coming back soon (late 2018).
|
||||
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
|
||||
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
|
||||
|
||||
# [linuxserver/ffmpeg](https://github.com/linuxserver/docker-ffmpeg)
|
||||
[](https://github.com/linuxserver/docker-ffmpeg/releases)
|
||||
[](https://microbadger.com/images/linuxserver/ffmpeg "Get your own version badge on microbadger.com")
|
||||
[](https://microbadger.com/images/linuxserver/ffmpeg "Get your own version badge on microbadger.com")
|
||||
[](https://hub.docker.com/r/linuxserver/ffmpeg)
|
||||
[](https://hub.docker.com/r/linuxserver/ffmpeg)
|
||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ffmpeg/job/master/)
|
||||
|
||||
[](https://scarf.sh)
|
||||
[](https://github.com/linuxserver/docker-ffmpeg)
|
||||
[](https://github.com/linuxserver/docker-ffmpeg/releases)
|
||||
[](https://github.com/linuxserver/docker-ffmpeg/packages)
|
||||
[](https://gitlab.com/linuxserver.io/docker-ffmpeg/container_registry)
|
||||
[](https://quay.io/repository/linuxserver.io/ffmpeg)
|
||||
[](https://hub.docker.com/r/linuxserver/ffmpeg)
|
||||
[](https://hub.docker.com/r/linuxserver/ffmpeg)
|
||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ffmpeg/job/master/)
|
||||
|
||||
[FFmpeg](https://ffmpeg.org) - A complete, cross-platform solution to record, convert and stream audio and video.
|
||||
|
||||
|
||||
[](https://ffmpeg.org)
|
||||
|
||||
## Supported Architectures
|
||||
|
||||
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||
|
||||
Simply pulling `linuxserver/ffmpeg` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
||||
Simply pulling `lscr.io/linuxserver/ffmpeg:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
||||
|
||||
The architectures supported by this image are:
|
||||
|
||||
| Architecture | Tag |
|
||||
| :----: | --- |
|
||||
| x86-64 | amd64-latest |
|
||||
| arm64 | arm64v8-latest |
|
||||
| armhf | arm32v7-latest |
|
||||
| Architecture | Available | Tag |
|
||||
| :----: | :----: | ---- |
|
||||
| x86-64 | ✅ | amd64-\<version tag\> |
|
||||
| arm64 | ✅ | arm64v8-\<version tag\> |
|
||||
| armhf | ❌ | |
|
||||
|
||||
## Usage
|
||||
|
||||
Unlike most of our container library this image is meant to be run ephemerally from the command line parsing user input for a custom FFmpeg command. You will need to understand some Docker basics to use this image and be familiar with how to construct an FFmpeg command. In the commands below we will be bind mounting our current working directory from the CLI to /config, the assumption is that input.mkv is in your current working directory.
|
||||
|
||||
If an input file is detected we will run FFmpeg as that user/group so the output file will match it's permissions.
|
||||
If an input file is detected we will run FFmpeg as that user/group so the output file will match its permissions.
|
||||
The image supports Hardware acceleration on x86 pay close attention to the variables for the examples below.
|
||||
|
||||
### Included Intel Drivers (latest versions compiled):
|
||||
|
||||
* iHD Driver: Supports gen8+ (default for Intel)
|
||||
* i965 Driver: Supports gen5+ (for gen5-gen9.5 it can be enabled by setting env var `LIBVA_DRIVER_NAME=i965` in docker arguments)
|
||||
* Libva (VAAPI): Supports gen5+ with i965 driver and gen8+ with iHD driver
|
||||
* Qsv Dispatcher: OneVPL (supports both OneVPL and MSDK runtimes and should automatically switch)
|
||||
* Qsv Runtime:
|
||||
|
||||
* OneVPL: Supports gen12+
|
||||
* MSDK (libmfx): Supports gen8 - gen12
|
||||
|
||||
### Basic Transcode
|
||||
|
||||
```
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
-v $(pwd):/config \
|
||||
linuxserver/ffmpeg \
|
||||
@ -71,9 +88,9 @@ docker run --rm -it \
|
||||
/config/output.mkv
|
||||
```
|
||||
|
||||
### Hardware accelerated (VAAPI)
|
||||
### Hardware accelerated (VAAPI) ([click for more info](https://trac.ffmpeg.org/wiki/Hardware/VAAPI))
|
||||
|
||||
```
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
--device=/dev/dri:/dev/dri \
|
||||
-v $(pwd):/config \
|
||||
@ -87,9 +104,26 @@ docker run --rm -it \
|
||||
/config/output.mkv
|
||||
```
|
||||
|
||||
### Nvidia Hardware accelerated
|
||||
### Hardware accelerated (QSV) ([click for more info](https://trac.ffmpeg.org/wiki/Hardware/QuickSync))
|
||||
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
--device=/dev/dri:/dev/dri \
|
||||
-v $(pwd):/config \
|
||||
linuxserver/ffmpeg \
|
||||
-hwaccel qsv \
|
||||
-c:v h264_qsv \
|
||||
-i /config/input.mkv \
|
||||
-c:v h264_qsv \
|
||||
-global_quality 25 \
|
||||
/config/output.mkv
|
||||
```
|
||||
|
||||
### Nvidia Hardware accelerated ([click for more info](https://trac.ffmpeg.org/wiki/HWAccelIntro#CUDANVENCNVDEC))
|
||||
|
||||
Nvidia support __requires__ [Nvidia container toolkit](https://github.com/NVIDIA/nvidia-container-toolkit) and the Nvidia drivers installed on the host.
|
||||
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
--runtime=nvidia \
|
||||
-v $(pwd):/config \
|
||||
@ -103,20 +137,45 @@ docker run --rm -it \
|
||||
/config/output.mkv
|
||||
```
|
||||
|
||||
### Vulkan support
|
||||
|
||||
Vulkan support has been added to x86_64 (tested with Intel and AMD iGPU) ([click for more info](https://trac.ffmpeg.org/wiki/HWAccelIntro#Vulkan)).
|
||||
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
--device=/dev/dri:/dev/dri \
|
||||
-v $(pwd):/config \
|
||||
-e ANV_VIDEO_DECODE=1 \
|
||||
linuxserver/ffmpeg \
|
||||
-init_hw_device "vulkan=vk:0" \
|
||||
-hwaccel vulkan \
|
||||
-hwaccel_output_format vulkan \
|
||||
-i /config/input.mkv \
|
||||
-f null - -benchmark
|
||||
```
|
||||
|
||||
#### Vulkan supports three drivers
|
||||
|
||||
* ANV: To enable for Intel, set the env var `ANV_VIDEO_DECODE=1`
|
||||
* RADV: To enable on AMD, set the env var `RADV_PERFTEST=video_decode`
|
||||
* NVIDIA: To enable on Nvidia, install Nvidia Vulkan Beta drivers on the host per [this article](https://lynne.ee/vulkan-video-decoding.html#driver-support)
|
||||
|
||||
## Building locally
|
||||
|
||||
If you want to make local modifications to these images for development purposes or just to customize the logic:
|
||||
```
|
||||
|
||||
```bash
|
||||
git clone https://github.com/linuxserver/docker-ffmpeg.git
|
||||
cd docker-ffmpeg
|
||||
docker build \
|
||||
--no-cache \
|
||||
--pull \
|
||||
-t linuxserver/ffmpeg:latest .
|
||||
-t lscr.io/linuxserver/docker-ffmpeg:latest .
|
||||
```
|
||||
|
||||
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
|
||||
```
|
||||
|
||||
```bash
|
||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
```
|
||||
|
||||
@ -124,4 +183,57 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **06.01.26:** - Remove mpp from aarch64 build due to upstream DMCA removal. Bump harfbuzz, libdav1d, libdrm, libpng, libva, libvpl, mesa, opus, shaderc and vulkan-sdk.
|
||||
* **01.12.25:** - Bump ffmpeg to 8.0.1.
|
||||
* **19.11.25:** - Bump aom, freetype, harfbuzz, Intel drivers and libs, kvazaar, libdav1d, libdrm, mesa, mpp, openjpeg, shaderc, svt-av1 and vulkan-sdk.
|
||||
* **23.08.25:** - Bump ffmpeg to 8.0. Bump harfbuzz, Intel drivers and libs, libdovi, libdrm, libpng, mesa, ogg, rav1e, shaderc, svt-av1, vulkan-sdk, webp and zimg.
|
||||
* **06.08.25:** - Bump svt-av1.
|
||||
* **07.06.25:** - Bump harfbuzz, libass, libdovi, libplacebo, libpng, mesa, rav1e, shaderc, libvpx and vulkan-sdk.
|
||||
* **04.06.25:** - Add libdrm and rkmpp to arm64 image.
|
||||
* **21.04.25:** - Bump aom, Intel drivers and libs, harfbuzz, mesa, svt-av1, libvpx, libtheora, vulkan-sdk and vvenc.
|
||||
* **07.03.25:** - Bump ffmpeg to 7.1.1, Bump aom, fontconfig, Intel drivers and libs, harfbuzz, libdav1d, libdovi, libdrm, liblc3, libpng, mesa, openjpeg, shaderc, svt-av1, vulkan-sdk, vvenc and webp.
|
||||
* **26.11.24:** - Bump libaom, mesa, rist, srt and libx265.
|
||||
* **07.11.24:** - Bump harfbuzz, Intel drivers and libs, libdav1d, mesa, svtav1, vpx, vulkan sdk and vvenc.
|
||||
* **05.10.24:** - Add support for libvvenc on aarch64. Bump mesa.
|
||||
* **30.09.24:** - Bump ffmpeg for 7.1. Add support for libvvenc (amd64 only) and liblc3. Bump libfribidi and libharfbuzz.
|
||||
* **24.09.24:** - Let ffmpeg terminate gracefully on docker stop/restart. Bump libharfbuzz, libpng, mesa, shaderc and libx265.
|
||||
* **09.09.24:** - Add libzmq.
|
||||
* **31.08.24:** - Bump libaom, libdrm, libvpl, mesa and svtav1. Enable nvdec/nvenc on arm64 (untested).
|
||||
* **17.08.24:** - Bump ffmpeg, freetype, libdovi and mesa.
|
||||
* **14.08.24:** - Add SRT and libRIST.
|
||||
* **01.08.24:** - Add libdav1d. Bump libharfbuzz, various Intel drivers and libs, libass, libdrm, libplacebo, libva, mesa, svtav1, and vulkan sdk.
|
||||
* **21.06.24:** - Bump mesa and libaom. Update lib path for rav1e.
|
||||
* **08.06.24:** - Bump ffmpeg, fribidi, libdrm, mesa and vpx.
|
||||
* **26.05.24:** - Rebase to Ubuntu Noble. Bump libass, libharfbuzz and vulkan-sdk.
|
||||
* **22.05.24:** - Bump Mesa to 24.1.0.
|
||||
* **20.05.24:** - Bump libsvtav1.
|
||||
* **09.05.24:** - Bump libaom, fribidi, kvazaar, various Intel drivers and libs, Mesa, opus, shaderc, webp and x265.
|
||||
* **11.04.24:** - Explicitly disable libdrm on aarch64, add new lib `libxcb-shm0`. Add quick test at the end of build.
|
||||
* **10.04.24:** - Compile ffmpeg with `libfribidi`, `libharfbuzz` and `libfontconfig`, compile libharfbuzz.
|
||||
* **05.04.24:** - Bump ffmpeg to 7.0, bump libdovi, libva, mesa and vulkan-sdk.
|
||||
* **16.03.24:** - Bump libaom, mesa, openjpeg, opus, shaderc and svtav1.
|
||||
* **11.02.24:** - Add Zimg support.
|
||||
* **09.02.24:** - Bump ffmpeg to 6.1.1, bump other deps.
|
||||
* **08.02.24:** - Enable cuda-llvm, clean up rustc.
|
||||
* **01.02.24:** - Bump Mesa to v24.
|
||||
* **21.01.24:** - Add alsa support.
|
||||
* **18.01.24:** - Let the wrapper pass the ffmpeg exit code to docker run. Bump various libs.
|
||||
* **01.01.24:** - Add rav1e support. Bump libaom, fdkaac, libdrm, libvmaf, libvpl, mesa and svt-av1.
|
||||
* **06.12.23:** - Add libplacebo and libdobi to x86_64.
|
||||
* **05.12.23:** - Bump Mesa. Fix vdpau. Fix AMD VAAPI.
|
||||
* **25.11.23:** - Compile Mesa from source. Add proper Vulkan support (env var `ENABLE_VULKAN=true` no longer needed)(tested with Intel).
|
||||
* **22.11.23:** - Add shaderc and (preliminary) Vulkan support (via env var `ENABLE_VULKAN=true`) to x86_64. Bump Intel drivers and other libs.
|
||||
* **13.11.23:** - Bump FFmpeg to 6.1.
|
||||
* **02.11.23:** - Remove `--enable-small` from ffmpeg build options to add back some features.
|
||||
* **05.10.23:** - Add support for SVT-AV1. Update various libraries.
|
||||
* **16.08.23:** - Added support for WebP formats.
|
||||
* **11.08.23:** - Add optional i965 driver for gen5+ support.
|
||||
* **14.06.23:** - Switch to latest iHD for Intel, add qsv support.
|
||||
* **13.06.23:** - Bump to 6.0, update shared libraries, deprecate armhf, combine bin stage.
|
||||
* **14.12.22:** - Rebase to Jammy, bump to 5.1.2.
|
||||
* **19.06.22:** - Rebase to Focal.
|
||||
* **26.08.21:** - Add support for libOpenCL.
|
||||
* **01.07.21:** - Bump to 4.4.
|
||||
* **17.06.20:** - Bump to 4.3.
|
||||
* **16.06.20:** - Add support for libvmaf.
|
||||
* **01.08.19:** - Initial release.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
# jenkins variables
|
||||
project_name: docker-ffmpeg
|
||||
external_type: na
|
||||
custom_version_command: "echo 4.2.2-cli"
|
||||
custom_version_command: "echo 8.0.1-cli"
|
||||
release_type: stable
|
||||
release_tag: latest
|
||||
ls_branch: master
|
||||
|
||||
@ -1,162 +1,181 @@
|
||||
adduser3.116ubuntu1
|
||||
apt1.6.12
|
||||
apt-utils1.6.12
|
||||
base-files10.1ubuntu2.7
|
||||
base-passwd3.5.44
|
||||
bash4.4.18-2ubuntu1.2
|
||||
bsdutils1:2.31.1-0.4ubuntu3.4
|
||||
bzip21.0.6-8.1ubuntu0.2
|
||||
ca-certificates20180409
|
||||
coreutils8.28-1ubuntu1
|
||||
curl7.58.0-2ubuntu3.8
|
||||
dash0.5.8-2.10
|
||||
debconf1.5.66ubuntu1
|
||||
debianutils4.8.4
|
||||
diffutils1:3.6-1
|
||||
dpkg1.19.0.5ubuntu2.3
|
||||
e2fsprogs1.44.1-1ubuntu1.2
|
||||
fdisk2.31.1-0.4ubuntu3.4
|
||||
findutils4.6.0+git+20170828-2
|
||||
gcc-8-base8.3.0-6ubuntu1~18.04.1
|
||||
gpgv2.2.4-1ubuntu1.2
|
||||
grep3.1-2build1
|
||||
gzip1.6-5ubuntu1
|
||||
hostname3.20
|
||||
i965-va-driver2.1.0-0ubuntu1
|
||||
init-system-helpers1.51
|
||||
krb5-locales1.16-2ubuntu0.1
|
||||
libacl12.2.52-3build1
|
||||
libapt-inst2.01.6.12
|
||||
libapt-pkg5.01.6.12
|
||||
libasn1-8-heimdal7.5.0+dfsg-1
|
||||
libattr11:2.4.47-2build1
|
||||
libaudit11:2.8.2-1ubuntu1
|
||||
libaudit-common1:2.8.2-1ubuntu1
|
||||
libblkid12.31.1-0.4ubuntu3.4
|
||||
libbsd00.8.7-1
|
||||
libbz2-1.01.0.6-8.1ubuntu0.2
|
||||
libc62.27-3ubuntu1
|
||||
libcap-ng00.7.7-3.1
|
||||
libc-bin2.27-3ubuntu1
|
||||
libcom-err21.44.1-1ubuntu1.2
|
||||
libcurl47.58.0-2ubuntu3.8
|
||||
libdb5.35.3.28-13.1ubuntu1.1
|
||||
libdebconfclient00.213ubuntu1
|
||||
libdrm22.4.99-1ubuntu1~18.04.1
|
||||
libdrm-amdgpu12.4.99-1ubuntu1~18.04.1
|
||||
libdrm-common2.4.99-1ubuntu1~18.04.1
|
||||
libdrm-intel12.4.99-1ubuntu1~18.04.1
|
||||
libdrm-nouveau22.4.99-1ubuntu1~18.04.1
|
||||
libdrm-radeon12.4.99-1ubuntu1~18.04.1
|
||||
libedit23.1-20170329-1
|
||||
libelf10.170-0.4ubuntu0.1
|
||||
libexpat12.2.5-3ubuntu0.2
|
||||
libext2fs21.44.1-1ubuntu1.2
|
||||
libfdisk12.31.1-0.4ubuntu3.4
|
||||
libffi63.2.1-8
|
||||
libfreetype62.8.1-2ubuntu2
|
||||
libgcc11:8.3.0-6ubuntu1~18.04.1
|
||||
libgcrypt201.8.1-4ubuntu1.1
|
||||
libgl1-mesa-dri19.2.1-1ubuntu1~18.04.1
|
||||
libglapi-mesa19.2.1-1ubuntu1~18.04.1
|
||||
libglib2.0-02.56.4-0ubuntu0.18.04.4
|
||||
libglib2.0-data2.56.4-0ubuntu0.18.04.4
|
||||
libgmp102:6.1.2+dfsg-2
|
||||
libgnutls303.5.18-1ubuntu1.2
|
||||
libgomp18.3.0-6ubuntu1~18.04.1
|
||||
libgpg-error01.27-6
|
||||
libgraphite2-31.3.11-2
|
||||
libgssapi3-heimdal7.5.0+dfsg-1
|
||||
libgssapi-krb5-21.16-2ubuntu0.1
|
||||
libharfbuzz0b1.7.2-1ubuntu1
|
||||
libhcrypto4-heimdal7.5.0+dfsg-1
|
||||
libheimbase1-heimdal7.5.0+dfsg-1
|
||||
libheimntlm0-heimdal7.5.0+dfsg-1
|
||||
libhogweed43.4-1
|
||||
libhx509-5-heimdal7.5.0+dfsg-1
|
||||
libicu6060.2-3ubuntu3
|
||||
libidn2-02.0.4-1.1ubuntu0.2
|
||||
libjpeg88c-2ubuntu8
|
||||
libjpeg-turbo81.5.2-0ubuntu5.18.04.3
|
||||
libk5crypto31.16-2ubuntu0.1
|
||||
libkeyutils11.5.9-9.2ubuntu2
|
||||
libkrb5-26-heimdal7.5.0+dfsg-1
|
||||
libkrb5-31.16-2ubuntu0.1
|
||||
libkrb5support01.16-2ubuntu0.1
|
||||
libldap-2.4-22.4.45+dfsg-1ubuntu1.4
|
||||
libldap-common2.4.45+dfsg-1ubuntu1.4
|
||||
libllvm91:9-2~ubuntu18.04.1
|
||||
liblz4-10.0~r131-2ubuntu3
|
||||
liblzma55.2.2-1.3
|
||||
libmount12.31.1-0.4ubuntu3.4
|
||||
libncurses56.1-1ubuntu1.18.04
|
||||
libncursesw56.1-1ubuntu1.18.04
|
||||
libnettle63.4-1
|
||||
libnghttp2-141.30.0-1ubuntu1
|
||||
libp11-kit00.23.9-2
|
||||
libpam0g1.1.8-3.6ubuntu2.18.04.1
|
||||
libpam-modules1.1.8-3.6ubuntu2.18.04.1
|
||||
libpam-modules-bin1.1.8-3.6ubuntu2.18.04.1
|
||||
libpam-runtime1.1.8-3.6ubuntu2.18.04.1
|
||||
libpciaccess00.14-1
|
||||
libpcre32:8.39-9
|
||||
libpng16-161.6.34-1ubuntu0.18.04.2
|
||||
libprocps62:3.3.12-3ubuntu1.2
|
||||
libpsl50.19.1-5build1
|
||||
libroken18-heimdal7.5.0+dfsg-1
|
||||
librtmp12.4+20151223.gitfa8646d.1-1
|
||||
libsasl2-22.1.27~101-g0780600+dfsg-3ubuntu2
|
||||
libsasl2-modules2.1.27~101-g0780600+dfsg-3ubuntu2
|
||||
libsasl2-modules-db2.1.27~101-g0780600+dfsg-3ubuntu2
|
||||
libseccomp22.4.1-0ubuntu0.18.04.2
|
||||
libselinux12.7-2build2
|
||||
libsemanage12.7-2build2
|
||||
libsemanage-common2.7-2build2
|
||||
libsensors41:3.4.0-4
|
||||
libsepol12.7-1
|
||||
libsmartcols12.31.1-0.4ubuntu3.4
|
||||
libsqlite3-03.22.0-1ubuntu0.2
|
||||
libss21.44.1-1ubuntu1.2
|
||||
libssl1.11.1.1-1ubuntu2.1~18.04.5
|
||||
libstdc++68.3.0-6ubuntu1~18.04.1
|
||||
libsystemd0237-3ubuntu10.33
|
||||
libtasn1-64.13-2
|
||||
libtinfo56.1-1ubuntu1.18.04
|
||||
libudev1237-3ubuntu10.33
|
||||
libunistring20.9.9-0ubuntu2
|
||||
libuuid12.31.1-0.4ubuntu3.4
|
||||
libv4l-01.14.2-1
|
||||
libv4lconvert01.14.2-1
|
||||
libva22.1.0-3
|
||||
libwind0-heimdal7.5.0+dfsg-1
|
||||
libx11-62:1.6.4-3ubuntu0.2
|
||||
libx11-data2:1.6.4-3ubuntu0.2
|
||||
libxau61:1.0.8-1
|
||||
libxcb11.13-2~ubuntu18.04
|
||||
libxdmcp61:1.1.2-3
|
||||
libxext62:1.3.3-1
|
||||
libxml22.9.4+dfsg1-6.1ubuntu1.2
|
||||
libzstd11.3.3+dfsg-2ubuntu1.1
|
||||
locales2.27-3ubuntu1
|
||||
login1:4.5-1ubuntu2
|
||||
lsb-base9.20170808ubuntu1
|
||||
mawk1.3.3-17ubuntu3
|
||||
mount2.31.1-0.4ubuntu3.4
|
||||
multiarch-support2.27-3ubuntu1
|
||||
ncurses-base6.1-1ubuntu1.18.04
|
||||
ncurses-bin6.1-1ubuntu1.18.04
|
||||
openssl1.1.1-1ubuntu2.1~18.04.5
|
||||
passwd1:4.5-1ubuntu2
|
||||
perl-base5.26.1-6ubuntu0.3
|
||||
procps2:3.3.12-3ubuntu1.2
|
||||
publicsuffix20180223.1310-1
|
||||
sed4.4-2
|
||||
sensible-utils0.0.12
|
||||
shared-mime-info1.9-2
|
||||
sysvinit-utils2.88dsf-59.10ubuntu1
|
||||
tar1.29b-2ubuntu0.1
|
||||
tzdata2019c-0ubuntu0.18.04
|
||||
ubuntu-keyring2018.09.18.1~18.04.0
|
||||
util-linux2.31.1-0.4ubuntu3.4
|
||||
xdg-user-dirs0.17-1ubuntu1
|
||||
zlib1g1:1.2.11.dfsg-0ubuntu2
|
||||
NAME VERSION TYPE
|
||||
adduser 3.137ubuntu1 deb
|
||||
alsa-topology-conf 1.2.5.1-2 deb
|
||||
alsa-ucm-conf 1.2.10-1ubuntu5.9 deb
|
||||
apt 2.8.3 deb
|
||||
apt-utils 2.8.3 deb
|
||||
base-files 13ubuntu10.4 deb
|
||||
base-passwd 3.6.3build1 deb
|
||||
bash 5.2.21-2ubuntu4 deb
|
||||
bsdutils 1:2.39.3-9ubuntu6.4 deb
|
||||
ca-certificates 20240203 deb
|
||||
catatonit 0.1.7-1 deb
|
||||
coreutils 9.4-3ubuntu6.1 deb
|
||||
cron 3.0pl1-184ubuntu2 deb
|
||||
cron-daemon-common 3.0pl1-184ubuntu2 deb
|
||||
curl 8.5.0-2ubuntu10.6 deb
|
||||
dash 0.5.12-6ubuntu5 deb
|
||||
debconf 1.5.86ubuntu1 deb
|
||||
debianutils 5.17build1 deb
|
||||
diffutils 1:3.10-1build1 deb
|
||||
dirmngr 2.4.4-2ubuntu17.4 deb
|
||||
dpkg 1.22.6ubuntu6.5 deb
|
||||
e2fsprogs 1.47.0-2.4~exp1ubuntu4.1 deb
|
||||
findutils 4.9.0-5build1 deb
|
||||
gcc-14-base 14.2.0-4ubuntu2~24.04 deb
|
||||
gnupg 2.4.4-2ubuntu17.4 deb
|
||||
gnupg-l10n 2.4.4-2ubuntu17.4 deb
|
||||
gnupg-utils 2.4.4-2ubuntu17.4 deb
|
||||
gpg 2.4.4-2ubuntu17.4 deb
|
||||
gpg-agent 2.4.4-2ubuntu17.4 deb
|
||||
gpg-wks-client 2.4.4-2ubuntu17.4 deb
|
||||
gpgconf 2.4.4-2ubuntu17.4 deb
|
||||
gpgsm 2.4.4-2ubuntu17.4 deb
|
||||
gpgv 2.4.4-2ubuntu17.4 deb
|
||||
grep 3.11-4build1 deb
|
||||
gzip 1.12-1ubuntu3.1 deb
|
||||
hostname 3.23+nmu2ubuntu2 deb
|
||||
init-system-helpers 1.66ubuntu1 deb
|
||||
jq 1.7.1-3ubuntu0.24.04.1 deb
|
||||
keyboxd 2.4.4-2ubuntu17.4 deb
|
||||
krb5-locales 1.20.1-6ubuntu2.6 deb
|
||||
libacl1 2.3.2-1build1.1 deb
|
||||
libapt-pkg6.0t64 2.8.3 deb
|
||||
libasound2-data 1.2.11-1ubuntu0.1 deb
|
||||
libasound2t64 1.2.11-1ubuntu0.1 deb
|
||||
libassuan0 2.5.6-1build1 deb
|
||||
libattr1 1:2.5.2-1build1.1 deb
|
||||
libaudit-common 1:3.1.2-2.1build1.1 deb
|
||||
libaudit1 1:3.1.2-2.1build1.1 deb
|
||||
libblkid1 2.39.3-9ubuntu6.4 deb
|
||||
libbrotli1 1.1.0-2build2 deb
|
||||
libbsd0 0.12.1-1build1.1 deb
|
||||
libbz2-1.0 1.0.8-5.1build0.1 deb
|
||||
libc-bin 2.39-0ubuntu8.7 deb
|
||||
libc6 2.39-0ubuntu8.7 deb
|
||||
libcap-ng0 0.8.4-2build2 deb
|
||||
libcap2 1:2.66-5ubuntu2.2 deb
|
||||
libcom-err2 1.47.0-2.4~exp1ubuntu4.1 deb
|
||||
libcrypt1 1:4.4.36-4build1 deb
|
||||
libcurl4t64 8.5.0-2ubuntu10.6 deb
|
||||
libdb5.3t64 5.3.28+dfsg2-7 deb
|
||||
libdebconfclient0 0.271ubuntu3 deb
|
||||
libedit2 3.1-20230828-1build1 deb
|
||||
libelf1t64 0.190-1.1ubuntu0.1 deb
|
||||
libexpat1 2.6.1-2ubuntu0.3 deb
|
||||
libext2fs2t64 1.47.0-2.4~exp1ubuntu4.1 deb
|
||||
libffi8 3.4.6-1build1 deb
|
||||
libgcc-s1 14.2.0-4ubuntu2~24.04 deb
|
||||
libgcrypt20 1.10.3-2build1 deb
|
||||
libglib2.0-0t64 2.80.0-6ubuntu3.8 deb
|
||||
libglib2.0-data 2.80.0-6ubuntu3.8 deb
|
||||
libgmp10 2:6.3.0+dfsg-2ubuntu6.1 deb
|
||||
libgnutls30t64 3.8.3-1.1ubuntu3.4 deb
|
||||
libgomp1 14.2.0-4ubuntu2~24.04 deb
|
||||
libgpg-error0 1.47-3build2.1 deb
|
||||
libgssapi-krb5-2 1.20.1-6ubuntu2.6 deb
|
||||
libhogweed6t64 3.9.1-2.2build1.1 deb
|
||||
libicu74 74.2-1ubuntu3.1 deb
|
||||
libidn2-0 2.3.7-2build1.1 deb
|
||||
libjpeg-turbo8 2.1.5-2ubuntu2 deb
|
||||
libjpeg8 8c-2ubuntu11 deb
|
||||
libjq1 1.7.1-3ubuntu0.24.04.1 deb
|
||||
libk5crypto3 1.20.1-6ubuntu2.6 deb
|
||||
libkeyutils1 1.6.3-3build1 deb
|
||||
libkrb5-3 1.20.1-6ubuntu2.6 deb
|
||||
libkrb5support0 1.20.1-6ubuntu2.6 deb
|
||||
libksba8 1.6.6-1build1 deb
|
||||
libldap-common 2.6.10+dfsg-0ubuntu0.24.04.1 deb
|
||||
libldap2 2.6.10+dfsg-0ubuntu0.24.04.1 deb
|
||||
libllvm18 1:18.1.3-1ubuntu1 deb
|
||||
liblz4-1 1.9.4-1build1.1 deb
|
||||
liblzma5 5.6.1+really5.4.5-1ubuntu0.2 deb
|
||||
libmd0 1.1.0-2build1.1 deb
|
||||
libmount1 2.39.3-9ubuntu6.4 deb
|
||||
libncursesw6 6.4+20240113-1ubuntu2 deb
|
||||
libnettle8t64 3.9.1-2.2build1.1 deb
|
||||
libnghttp2-14 1.59.0-1ubuntu0.2 deb
|
||||
libnpth0t64 1.6-3.1build1 deb
|
||||
libonig5 6.9.9-1build1 deb
|
||||
libp11-kit0 0.25.3-4ubuntu2.1 deb
|
||||
libpam-modules 1.5.3-5ubuntu5.5 deb
|
||||
libpam-modules-bin 1.5.3-5ubuntu5.5 deb
|
||||
libpam-runtime 1.5.3-5ubuntu5.5 deb
|
||||
libpam0g 1.5.3-5ubuntu5.5 deb
|
||||
libpciaccess0 0.17-3ubuntu0.24.04.2 deb
|
||||
libpcre2-8-0 10.42-4ubuntu2.1 deb
|
||||
libproc2-0 2:4.0.4-4ubuntu3.2 deb
|
||||
libpsl5t64 0.21.2-1.1build1 deb
|
||||
libreadline8t64 8.2-4build1 deb
|
||||
librtmp1 2.4+20151223.gitfa8646d.1-2build7 deb
|
||||
libsasl2-2 2.1.28+dfsg1-5ubuntu3.1 deb
|
||||
libsasl2-modules 2.1.28+dfsg1-5ubuntu3.1 deb
|
||||
libsasl2-modules-db 2.1.28+dfsg1-5ubuntu3.1 deb
|
||||
libseccomp2 2.5.5-1ubuntu3.1 deb
|
||||
libselinux1 3.5-2ubuntu2.1 deb
|
||||
libsemanage-common 3.5-1build5 deb
|
||||
libsemanage2 3.5-1build5 deb
|
||||
libsepol2 3.5-2build1 deb
|
||||
libsmartcols1 2.39.3-9ubuntu6.4 deb
|
||||
libsqlite3-0 3.45.1-1ubuntu2.5 deb
|
||||
libss2 1.47.0-2.4~exp1ubuntu4.1 deb
|
||||
libssh-4 0.10.6-2ubuntu0.2 deb
|
||||
libssl3t64 3.0.13-0ubuntu3.7 deb
|
||||
libstdc++6 14.2.0-4ubuntu2~24.04 deb
|
||||
libsystemd0 255.4-1ubuntu8.12 deb
|
||||
libtasn1-6 4.19.0-3ubuntu0.24.04.2 deb
|
||||
libtinfo6 6.4+20240113-1ubuntu2 deb
|
||||
libudev1 255.4-1ubuntu8.12 deb
|
||||
libunistring5 1.1-2build1.1 deb
|
||||
libuuid1 2.39.3-9ubuntu6.4 deb
|
||||
libv4l-0t64 1.26.1-4build3 deb
|
||||
libv4lconvert0t64 1.26.1-4build3 deb
|
||||
libwayland-client0 1.22.0-2.1build1 deb
|
||||
libx11-6 2:1.8.7-1build1 deb
|
||||
libx11-data 2:1.8.7-1build1 deb
|
||||
libx11-xcb1 2:1.8.7-1build1 deb
|
||||
libxau6 1:1.0.9-1build6 deb
|
||||
libxcb-dri2-0 1.15-1ubuntu2 deb
|
||||
libxcb-dri3-0 1.15-1ubuntu2 deb
|
||||
libxcb-present0 1.15-1ubuntu2 deb
|
||||
libxcb-randr0 1.15-1ubuntu2 deb
|
||||
libxcb-shape0 1.15-1ubuntu2 deb
|
||||
libxcb-shm0 1.15-1ubuntu2 deb
|
||||
libxcb-sync1 1.15-1ubuntu2 deb
|
||||
libxcb-xfixes0 1.15-1ubuntu2 deb
|
||||
libxcb1 1.15-1ubuntu2 deb
|
||||
libxdmcp6 1:1.1.3-0ubuntu6 deb
|
||||
libxext6 2:1.3.4-1build2 deb
|
||||
libxfixes3 1:6.0.0-2build1 deb
|
||||
libxml2 2.9.14+dfsg-1.3ubuntu3.7 deb
|
||||
libxshmfence1 1.3-1build5 deb
|
||||
libxxhash0 0.8.2-2build1 deb
|
||||
libzstd1 1.5.5+dfsg2-2build1.1 deb
|
||||
locales 2.39-0ubuntu8.7 deb
|
||||
login 1:4.13+dfsg1-4ubuntu3.2 deb
|
||||
logsave 1.47.0-2.4~exp1ubuntu4.1 deb
|
||||
mawk 1.3.4.20240123-1build1 deb
|
||||
mount 2.39.3-9ubuntu6.4 deb
|
||||
ncurses-base 6.4+20240113-1ubuntu2 deb
|
||||
ncurses-bin 6.4+20240113-1ubuntu2 deb
|
||||
netcat-openbsd 1.226-1ubuntu2 deb
|
||||
ocl-icd-libopencl1 2.3.2-1build1 deb
|
||||
openssl 3.0.13-0ubuntu3.7 deb
|
||||
passwd 1:4.13+dfsg1-4ubuntu3.2 deb
|
||||
perl-base 5.38.2-3.2ubuntu0.2 deb
|
||||
pinentry-curses 1.2.1-3ubuntu5 deb
|
||||
procps 2:4.0.4-4ubuntu3.2 deb
|
||||
publicsuffix 20231001.0357-0.1 deb
|
||||
readline-common 8.2-4build1 deb
|
||||
sed 4.9-2build1 deb
|
||||
sensible-utils 0.0.22 deb
|
||||
shared-mime-info 2.4-4 deb
|
||||
systemd-standalone-sysusers 255.4-1ubuntu8.12 deb
|
||||
sysvinit-utils 3.08-6ubuntu3 deb
|
||||
tar 1.35+dfsg-3build1 deb
|
||||
tzdata 2025b-0ubuntu0.24.04.1 deb
|
||||
ubuntu-keyring 2023.11.28.1 deb
|
||||
unminimize 0.2.1 deb
|
||||
util-linux 2.39.3-9ubuntu6.4 deb
|
||||
xdg-user-dirs 0.18-1build1 deb
|
||||
zlib1g 1:1.3.dfsg-3.1ubuntu2.1 deb
|
||||
|
||||
217
readme-vars.yml
217
readme-vars.yml
@ -2,70 +2,88 @@
|
||||
|
||||
# project information
|
||||
project_name: ffmpeg
|
||||
project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/ffmpeg.png"
|
||||
project_blurb: A complete, cross-platform solution to record, convert and stream audio and video.
|
||||
project_categories: "Media Tools"
|
||||
full_custom_readme: |
|
||||
{% raw -%}
|
||||
[](https://linuxserver.io)
|
||||
|
||||
[](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
|
||||
[](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
|
||||
[](https://discourse.linuxserver.io "post on our community forum.")
|
||||
[](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
|
||||
[](https://anchor.fm/linuxserverio "on hiatus. Coming back soon (late 2018).")
|
||||
[](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
|
||||
|
||||
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring :-
|
||||
|
||||
* regular and timely application updates
|
||||
* easy user mappings (PGID, PUID)
|
||||
* custom base image with s6 overlay
|
||||
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
|
||||
* regular security updates
|
||||
|
||||
|
||||
[](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
|
||||
[](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
|
||||
[](https://discourse.linuxserver.io "post on our community forum.")
|
||||
[](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
|
||||
[](https://github.com/linuxserver "view the source for all of our repositories.")
|
||||
[](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
|
||||
|
||||
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring:
|
||||
|
||||
* regular and timely application updates
|
||||
* easy user mappings (PGID, PUID)
|
||||
* custom base image with s6 overlay
|
||||
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
|
||||
* regular security updates
|
||||
|
||||
Find us at:
|
||||
|
||||
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
|
||||
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
|
||||
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
|
||||
* [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images.
|
||||
* [Podcast](https://anchor.fm/linuxserverio) - on hiatus. Coming back soon (late 2018).
|
||||
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
|
||||
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
|
||||
|
||||
# [linuxserver/ffmpeg](https://github.com/linuxserver/docker-ffmpeg)
|
||||
[](https://github.com/linuxserver/docker-ffmpeg/releases)
|
||||
[](https://microbadger.com/images/linuxserver/ffmpeg "Get your own version badge on microbadger.com")
|
||||
[](https://microbadger.com/images/linuxserver/ffmpeg "Get your own version badge on microbadger.com")
|
||||
[](https://hub.docker.com/r/linuxserver/ffmpeg)
|
||||
[](https://hub.docker.com/r/linuxserver/ffmpeg)
|
||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ffmpeg/job/master/)
|
||||
|
||||
|
||||
[](https://scarf.sh)
|
||||
[](https://github.com/linuxserver/docker-ffmpeg)
|
||||
[](https://github.com/linuxserver/docker-ffmpeg/releases)
|
||||
[](https://github.com/linuxserver/docker-ffmpeg/packages)
|
||||
[](https://gitlab.com/linuxserver.io/docker-ffmpeg/container_registry)
|
||||
[](https://quay.io/repository/linuxserver.io/ffmpeg)
|
||||
[](https://hub.docker.com/r/linuxserver/ffmpeg)
|
||||
[](https://hub.docker.com/r/linuxserver/ffmpeg)
|
||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-ffmpeg/job/master/)
|
||||
|
||||
[FFmpeg](https://ffmpeg.org) - A complete, cross-platform solution to record, convert and stream audio and video.
|
||||
|
||||
|
||||
|
||||
[](https://ffmpeg.org)
|
||||
|
||||
|
||||
## Supported Architectures
|
||||
|
||||
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||
|
||||
Simply pulling `linuxserver/ffmpeg` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
||||
|
||||
|
||||
We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/).
|
||||
|
||||
Simply pulling `lscr.io/linuxserver/ffmpeg:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
|
||||
|
||||
The architectures supported by this image are:
|
||||
|
||||
| Architecture | Tag |
|
||||
| :----: | --- |
|
||||
| x86-64 | amd64-latest |
|
||||
| arm64 | arm64v8-latest |
|
||||
| armhf | arm32v7-latest |
|
||||
|
||||
| Architecture | Available | Tag |
|
||||
| :----: | :----: | ---- |
|
||||
| x86-64 | ✅ | amd64-\<version tag\> |
|
||||
| arm64 | ✅ | arm64v8-\<version tag\> |
|
||||
| armhf | ❌ | |
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
Unlike most of our container library this image is meant to be run ephemerally from the command line parsing user input for a custom FFmpeg command. You will need to understand some Docker basics to use this image and be familiar with how to construct an FFmpeg command. In the commands below we will be bind mounting our current working directory from the CLI to /config, the assumption is that input.mkv is in your current working directory.
|
||||
|
||||
If an input file is detected we will run FFmpeg as that user/group so the output file will match it's permissions.
|
||||
If an input file is detected we will run FFmpeg as that user/group so the output file will match its permissions.
|
||||
The image supports Hardware acceleration on x86 pay close attention to the variables for the examples below.
|
||||
|
||||
|
||||
### Included Intel Drivers (latest versions compiled):
|
||||
|
||||
* iHD Driver: Supports gen8+ (default for Intel)
|
||||
* i965 Driver: Supports gen5+ (for gen5-gen9.5 it can be enabled by setting env var `LIBVA_DRIVER_NAME=i965` in docker arguments)
|
||||
* Libva (VAAPI): Supports gen5+ with i965 driver and gen8+ with iHD driver
|
||||
* Qsv Dispatcher: OneVPL (supports both OneVPL and MSDK runtimes and should automatically switch)
|
||||
* Qsv Runtime:
|
||||
|
||||
* OneVPL: Supports gen12+
|
||||
* MSDK (libmfx): Supports gen8 - gen12
|
||||
|
||||
### Basic Transcode
|
||||
|
||||
```
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
-v $(pwd):/config \
|
||||
linuxserver/ffmpeg \
|
||||
@ -77,9 +95,9 @@ full_custom_readme: |
|
||||
/config/output.mkv
|
||||
```
|
||||
|
||||
### Hardware accelerated (VAAPI)
|
||||
|
||||
```
|
||||
### Hardware accelerated (VAAPI) ([click for more info](https://trac.ffmpeg.org/wiki/Hardware/VAAPI))
|
||||
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
--device=/dev/dri:/dev/dri \
|
||||
-v $(pwd):/config \
|
||||
@ -93,9 +111,26 @@ full_custom_readme: |
|
||||
/config/output.mkv
|
||||
```
|
||||
|
||||
### Nvidia Hardware accelerated
|
||||
### Hardware accelerated (QSV) ([click for more info](https://trac.ffmpeg.org/wiki/Hardware/QuickSync))
|
||||
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
--device=/dev/dri:/dev/dri \
|
||||
-v $(pwd):/config \
|
||||
linuxserver/ffmpeg \
|
||||
-hwaccel qsv \
|
||||
-c:v h264_qsv \
|
||||
-i /config/input.mkv \
|
||||
-c:v h264_qsv \
|
||||
-global_quality 25 \
|
||||
/config/output.mkv
|
||||
```
|
||||
|
||||
### Nvidia Hardware accelerated ([click for more info](https://trac.ffmpeg.org/wiki/HWAccelIntro#CUDANVENCNVDEC))
|
||||
|
||||
Nvidia support __requires__ [Nvidia container toolkit](https://github.com/NVIDIA/nvidia-container-toolkit) and the Nvidia drivers installed on the host.
|
||||
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
--runtime=nvidia \
|
||||
-v $(pwd):/config \
|
||||
@ -109,20 +144,45 @@ full_custom_readme: |
|
||||
/config/output.mkv
|
||||
```
|
||||
|
||||
## Building locally
|
||||
|
||||
If you want to make local modifications to these images for development purposes or just to customize the logic:
|
||||
### Vulkan support
|
||||
|
||||
Vulkan support has been added to x86_64 (tested with Intel and AMD iGPU) ([click for more info](https://trac.ffmpeg.org/wiki/HWAccelIntro#Vulkan)).
|
||||
|
||||
```bash
|
||||
docker run --rm -it \
|
||||
--device=/dev/dri:/dev/dri \
|
||||
-v $(pwd):/config \
|
||||
-e ANV_VIDEO_DECODE=1 \
|
||||
linuxserver/ffmpeg \
|
||||
-init_hw_device "vulkan=vk:0" \
|
||||
-hwaccel vulkan \
|
||||
-hwaccel_output_format vulkan \
|
||||
-i /config/input.mkv \
|
||||
-f null - -benchmark
|
||||
```
|
||||
|
||||
#### Vulkan supports three drivers
|
||||
|
||||
* ANV: To enable for Intel, set the env var `ANV_VIDEO_DECODE=1`
|
||||
* RADV: To enable on AMD, set the env var `RADV_PERFTEST=video_decode`
|
||||
* NVIDIA: To enable on Nvidia, install Nvidia Vulkan Beta drivers on the host per [this article](https://lynne.ee/vulkan-video-decoding.html#driver-support)
|
||||
|
||||
## Building locally
|
||||
|
||||
If you want to make local modifications to these images for development purposes or just to customize the logic:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/linuxserver/docker-ffmpeg.git
|
||||
cd docker-ffmpeg
|
||||
docker build \
|
||||
--no-cache \
|
||||
--pull \
|
||||
-t linuxserver/ffmpeg:latest .
|
||||
-t lscr.io/linuxserver/docker-ffmpeg:latest .
|
||||
```
|
||||
|
||||
|
||||
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
|
||||
```
|
||||
|
||||
```bash
|
||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
```
|
||||
|
||||
@ -130,5 +190,58 @@ full_custom_readme: |
|
||||
|
||||
## Versions
|
||||
|
||||
* **06.01.26:** - Remove mpp from aarch64 build due to upstream DMCA removal. Bump harfbuzz, libdav1d, libdrm, libpng, libva, libvpl, mesa, opus, shaderc and vulkan-sdk.
|
||||
* **01.12.25:** - Bump ffmpeg to 8.0.1.
|
||||
* **19.11.25:** - Bump aom, freetype, harfbuzz, Intel drivers and libs, kvazaar, libdav1d, libdrm, mesa, mpp, openjpeg, shaderc, svt-av1 and vulkan-sdk.
|
||||
* **23.08.25:** - Bump ffmpeg to 8.0. Bump harfbuzz, Intel drivers and libs, libdovi, libdrm, libpng, mesa, ogg, rav1e, shaderc, svt-av1, vulkan-sdk, webp and zimg.
|
||||
* **06.08.25:** - Bump svt-av1.
|
||||
* **07.06.25:** - Bump harfbuzz, libass, libdovi, libplacebo, libpng, mesa, rav1e, shaderc, libvpx and vulkan-sdk.
|
||||
* **04.06.25:** - Add libdrm and rkmpp to arm64 image.
|
||||
* **21.04.25:** - Bump aom, Intel drivers and libs, harfbuzz, mesa, svt-av1, libvpx, libtheora, vulkan-sdk and vvenc.
|
||||
* **07.03.25:** - Bump ffmpeg to 7.1.1, Bump aom, fontconfig, Intel drivers and libs, harfbuzz, libdav1d, libdovi, libdrm, liblc3, libpng, mesa, openjpeg, shaderc, svt-av1, vulkan-sdk, vvenc and webp.
|
||||
* **26.11.24:** - Bump libaom, mesa, rist, srt and libx265.
|
||||
* **07.11.24:** - Bump harfbuzz, Intel drivers and libs, libdav1d, mesa, svtav1, vpx, vulkan sdk and vvenc.
|
||||
* **05.10.24:** - Add support for libvvenc on aarch64. Bump mesa.
|
||||
* **30.09.24:** - Bump ffmpeg for 7.1. Add support for libvvenc (amd64 only) and liblc3. Bump libfribidi and libharfbuzz.
|
||||
* **24.09.24:** - Let ffmpeg terminate gracefully on docker stop/restart. Bump libharfbuzz, libpng, mesa, shaderc and libx265.
|
||||
* **09.09.24:** - Add libzmq.
|
||||
* **31.08.24:** - Bump libaom, libdrm, libvpl, mesa and svtav1. Enable nvdec/nvenc on arm64 (untested).
|
||||
* **17.08.24:** - Bump ffmpeg, freetype, libdovi and mesa.
|
||||
* **14.08.24:** - Add SRT and libRIST.
|
||||
* **01.08.24:** - Add libdav1d. Bump libharfbuzz, various Intel drivers and libs, libass, libdrm, libplacebo, libva, mesa, svtav1, and vulkan sdk.
|
||||
* **21.06.24:** - Bump mesa and libaom. Update lib path for rav1e.
|
||||
* **08.06.24:** - Bump ffmpeg, fribidi, libdrm, mesa and vpx.
|
||||
* **26.05.24:** - Rebase to Ubuntu Noble. Bump libass, libharfbuzz and vulkan-sdk.
|
||||
* **22.05.24:** - Bump Mesa to 24.1.0.
|
||||
* **20.05.24:** - Bump libsvtav1.
|
||||
* **09.05.24:** - Bump libaom, fribidi, kvazaar, various Intel drivers and libs, Mesa, opus, shaderc, webp and x265.
|
||||
* **11.04.24:** - Explicitly disable libdrm on aarch64, add new lib `libxcb-shm0`. Add quick test at the end of build.
|
||||
* **10.04.24:** - Compile ffmpeg with `libfribidi`, `libharfbuzz` and `libfontconfig`, compile libharfbuzz.
|
||||
* **05.04.24:** - Bump ffmpeg to 7.0, bump libdovi, libva, mesa and vulkan-sdk.
|
||||
* **16.03.24:** - Bump libaom, mesa, openjpeg, opus, shaderc and svtav1.
|
||||
* **11.02.24:** - Add Zimg support.
|
||||
* **09.02.24:** - Bump ffmpeg to 6.1.1, bump other deps.
|
||||
* **08.02.24:** - Enable cuda-llvm, clean up rustc.
|
||||
* **01.02.24:** - Bump Mesa to v24.
|
||||
* **21.01.24:** - Add alsa support.
|
||||
* **18.01.24:** - Let the wrapper pass the ffmpeg exit code to docker run. Bump various libs.
|
||||
* **01.01.24:** - Add rav1e support. Bump libaom, fdkaac, libdrm, libvmaf, libvpl, mesa and svt-av1.
|
||||
* **06.12.23:** - Add libplacebo and libdobi to x86_64.
|
||||
* **05.12.23:** - Bump Mesa. Fix vdpau. Fix AMD VAAPI.
|
||||
* **25.11.23:** - Compile Mesa from source. Add proper Vulkan support (env var `ENABLE_VULKAN=true` no longer needed)(tested with Intel).
|
||||
* **22.11.23:** - Add shaderc and (preliminary) Vulkan support (via env var `ENABLE_VULKAN=true`) to x86_64. Bump Intel drivers and other libs.
|
||||
* **13.11.23:** - Bump FFmpeg to 6.1.
|
||||
* **02.11.23:** - Remove `--enable-small` from ffmpeg build options to add back some features.
|
||||
* **05.10.23:** - Add support for SVT-AV1. Update various libraries.
|
||||
* **16.08.23:** - Added support for WebP formats.
|
||||
* **11.08.23:** - Add optional i965 driver for gen5+ support.
|
||||
* **14.06.23:** - Switch to latest iHD for Intel, add qsv support.
|
||||
* **13.06.23:** - Bump to 6.0, update shared libraries, deprecate armhf, combine bin stage.
|
||||
* **14.12.22:** - Rebase to Jammy, bump to 5.1.2.
|
||||
* **19.06.22:** - Rebase to Focal.
|
||||
* **26.08.21:** - Add support for libOpenCL.
|
||||
* **01.07.21:** - Bump to 4.4.
|
||||
* **17.06.20:** - Bump to 4.3.
|
||||
* **16.06.20:** - Add support for libvmaf.
|
||||
* **01.08.19:** - Initial release.
|
||||
{%- endraw %}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#! /bin/bash
|
||||
|
||||
FULL_ARGS=$@
|
||||
FULL_ARGS=( "$@" )
|
||||
|
||||
set_uidgid () {
|
||||
# setup abc based on file perms
|
||||
@ -13,14 +13,13 @@ set_uidgid () {
|
||||
run_ffmpeg () {
|
||||
# we do not have input file or it does not exist on disk just run as root
|
||||
if [ -z ${INPUT_FILE+x} ] || [ ! -f "${INPUT_FILE}" ]; then
|
||||
/usr/local/bin/ffmpeg ${FULL_ARGS}
|
||||
exec /usr/local/bin/ffmpeg "${FULL_ARGS[@]}"
|
||||
# we found the input file run as abc
|
||||
else
|
||||
set_uidgid
|
||||
s6-setuidgid abc \
|
||||
/usr/local/bin/ffmpeg ${FULL_ARGS}
|
||||
exec s6-setuidgid abc \
|
||||
/usr/local/bin/ffmpeg "${FULL_ARGS[@]}"
|
||||
fi
|
||||
exit 0
|
||||
}
|
||||
|
||||
# look for input file value
|
||||
@ -36,29 +35,38 @@ do
|
||||
done
|
||||
|
||||
## hardware support ##
|
||||
FILES=$(find /dev/dri -type c -print 2>/dev/null)
|
||||
FILES=$(find /dev/dri /dev/dvb /dev/snd -type c -print 2>/dev/null)
|
||||
|
||||
for i in $FILES
|
||||
do
|
||||
VIDEO_GID=$(stat -c '%g' "$i")
|
||||
if id -G abc | grep -qw "$VIDEO_GID"; then
|
||||
touch /groupadd
|
||||
else
|
||||
if [ ! "${VIDEO_GID}" == '0' ]; then
|
||||
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
|
||||
if [ -z "${VIDEO_NAME}" ]; then
|
||||
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c8)"
|
||||
groupadd "$VIDEO_NAME"
|
||||
groupmod -g "$VIDEO_GID" "$VIDEO_NAME"
|
||||
fi
|
||||
usermod -a -G "$VIDEO_NAME" abc
|
||||
touch /groupadd
|
||||
VIDEO_GID=$(stat -c '%g' "${i}")
|
||||
VIDEO_UID=$(stat -c '%u' "${i}")
|
||||
# check if user matches device
|
||||
if id -u abc | grep -qw "${VIDEO_UID}"; then
|
||||
echo "**** permissions for ${i} are good ****"
|
||||
else
|
||||
# check if group matches and that device has group rw
|
||||
if id -G abc | grep -qw "${VIDEO_GID}" && [ $(stat -c '%A' "${i}" | cut -b 5,6) = "rw" ]; then
|
||||
echo "**** permissions for ${i} are good ****"
|
||||
# check if device needs to be added to video group
|
||||
elif ! id -G abc | grep -qw "${VIDEO_GID}"; then
|
||||
# check if video group needs to be created
|
||||
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
|
||||
if [ -z "${VIDEO_NAME}" ]; then
|
||||
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-z0-9' | head -c4)"
|
||||
groupadd "${VIDEO_NAME}"
|
||||
groupmod -g "${VIDEO_GID}" "${VIDEO_NAME}"
|
||||
echo "**** creating video group ${VIDEO_NAME} with id ${VIDEO_GID} ****"
|
||||
fi
|
||||
echo "**** adding ${i} to video group ${VIDEO_NAME} with id ${VIDEO_GID} ****"
|
||||
usermod -a -G "${VIDEO_NAME}" abc
|
||||
fi
|
||||
# check if device has group rw
|
||||
if [ $(stat -c '%A' "${i}" | cut -b 5,6) != "rw" ]; then
|
||||
echo -e "**** The device ${i} does not have group read/write permissions, attempting to fix inside the container. ****"
|
||||
chmod g+rw "${i}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ -n "${FILES}" ] && [ ! -f "/groupadd" ]; then
|
||||
usermod -a -G root abc
|
||||
fi
|
||||
|
||||
|
||||
run_ffmpeg
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user