Compare commits
886 Commits
Author | SHA1 | Date | |
---|---|---|---|
569a789432 | |||
b36890f293 | |||
7662805806 | |||
b445e67952 | |||
293a602e6f | |||
c98389f743 | |||
890a31b49b | |||
5762e8c223 | |||
c66e8654d3 | |||
dd58003f0c | |||
22009f8153 | |||
8bfb822127 | |||
80a178d335 | |||
90118b85ec | |||
ce5b0ae521 | |||
7d68bf05f2 | |||
741f9f09a7 | |||
9827d2a397 | |||
4e4ed6268c | |||
3f358307d4 | |||
49dc603a7e | |||
9c9d5bc9af | |||
833f59c056 | |||
c6105dcbcd | |||
34ba575e93 | |||
e8bc575304 | |||
778632362f | |||
d580fdacf9 | |||
fb68a11db0 | |||
5c662bbf4c | |||
27fe5ace74 | |||
5805c7d571 | |||
4684230ae5 | |||
e7592e5bbd | |||
99683552f4 | |||
946b581996 | |||
717556bb3c | |||
9e98f7ba0b | |||
fd2416deca | |||
70b0e356b5 | |||
ec49fc8f45 | |||
5b8b185a19 | |||
e276db8230 | |||
40c5f1b9f4 | |||
0793868642 | |||
9508b682df | |||
4304c8bd21 | |||
d642a7af5e | |||
15d39a0ae4 | |||
41d4be87e1 | |||
a5da390ad5 | |||
b96c771c02 | |||
a3d59f258f | |||
201ede0b46 | |||
3b64cf60ef | |||
c59743aed1 | |||
ce4fef8bf5 | |||
4d4388bf62 | |||
5d7ddc217d | |||
1f8d08089d | |||
c78e519a2c | |||
e4ca060d44 | |||
aee86b9b20 | |||
d505e5d46c | |||
a1f41de31c | |||
0f144b81bb | |||
6f0a2d7ad6 | |||
46ef28c470 | |||
270c6fce9c | |||
1ac33dab8a | |||
a8752554ef | |||
da34fb4599 | |||
93976e2534 | |||
0c82344961 | |||
7dd8c987d0 | |||
d039a386b7 | |||
873680be3f | |||
09f9013713 | |||
56f8c998f6 | |||
349b58eecc | |||
b959d27624 | |||
10c88876bc | |||
c6b92d2f4e | |||
70bda63e9d | |||
1c68c6335a | |||
e72bad0214 | |||
1804b4eb32 | |||
1d19b49727 | |||
cbd4dc48f7 | |||
9295130beb | |||
5598d953c3 | |||
396376fd07 | |||
0fe5d095d9 | |||
c760b3218c | |||
c14c227819 | |||
82d140e7d3 | |||
38ecab2019 | |||
38d71e2878 | |||
5db2bab432 | |||
eb230b209c | |||
724ad0736a | |||
8249dc670a | |||
9b3025cd76 | |||
a477f8d2ed | |||
c447171e55 | |||
bf890278c0 | |||
6ebcc05909 | |||
d715a754f1 | |||
d0d8aae880 | |||
b0449badb8 | |||
2ebeb3e9a4 | |||
73b5fc5d98 | |||
cef469de9b | |||
7c904d18ac | |||
f1f3fb794c | |||
737f74db0c | |||
0e1b67f310 | |||
a15bfc298b | |||
ad9364ec80 | |||
c0567694ab | |||
7b6aab919f | |||
4298e9a94d | |||
e7df369012 | |||
6786d1fe98 | |||
8046a30542 | |||
702e11e7ad | |||
47aaf438f6 | |||
c5660a2fe3 | |||
105f314c8e | |||
949b952ef9 | |||
e517e524cc | |||
70c8c16e55 | |||
4f07e4e84e | |||
6929f42dd6 | |||
20bf845ddf | |||
66bd1fb20d | |||
5857c8f7b3 | |||
3662187a26 | |||
2538643d8f | |||
b02d60ae70 | |||
4b2f10e62c | |||
77fa7d0425 | |||
b4843c3c93 | |||
a34f18b836 | |||
037df191bb | |||
011e815b21 | |||
87ee3a9deb | |||
8b1aa0203b | |||
c2e11fe458 | |||
f149931d2f | |||
512fe8083a | |||
f43a71aaa0 | |||
1b3becb8d8 | |||
cea23c6d3f | |||
09afe7f781 | |||
6d8af9bd2a | |||
cf5c490ca7 | |||
740c0f1443 | |||
8e736fc176 | |||
0794129eb3 | |||
a510ee6450 | |||
cadbae2468 | |||
eed4f3bfd2 | |||
1173e86544 | |||
e4f69871fa | |||
847b88a4b4 | |||
beb2862876 | |||
bf9c403d51 | |||
4fc92a4b53 | |||
1db41d1069 | |||
5fce763b97 | |||
8cd96d2a1e | |||
adbbe8b0e2 | |||
8c1377ac0b | |||
f6b6de8146 | |||
d5c4a80332 | |||
89e2887db4 | |||
df491a68fd | |||
4418828161 | |||
158a3f4219 | |||
02c8f9089f | |||
cf638258b7 | |||
ebe0343972 | |||
29d3ae53b9 | |||
2744a17ea0 | |||
649f8542d4 | |||
61b2af2760 | |||
6e5afa8bd5 | |||
3e5859259a | |||
62166944bf | |||
85b34eb0c1 | |||
702d6bda6a | |||
3f9ddde766 | |||
28facf1b5f | |||
c3109dbae1 | |||
6d5c133800 | |||
e979b4ee9d | |||
a2350f473d | |||
36ddb729c5 | |||
cae9b66875 | |||
713613ff6f | |||
c9f3103a02 | |||
de055eec1f | |||
42175c4654 | |||
b309463c3d | |||
82d1853964 | |||
3ea263c5fc | |||
76c5a4779f | |||
1fe245034f | |||
4f496673c2 | |||
06b1779fcb | |||
8872ea8748 | |||
55949027f5 | |||
8d121ed665 | |||
024632c2b0 | |||
30c24bd34a | |||
acf3df4ff3 | |||
9ed037f47d | |||
0add715f1d | |||
09891f4dab | |||
67ea676a43 | |||
10adcb4b30 | |||
51d04c226a | |||
92558ec0fe | |||
099bd45b65 | |||
30326de759 | |||
a0306f7482 | |||
42ba9ed16a | |||
8a99c8191a | |||
287a563a0d | |||
64ebdbb558 | |||
b79b78022a | |||
f5a74179a5 | |||
bb8dc83221 | |||
67c37cd9e2 | |||
e9e97ab726 | |||
181af0c684 | |||
4adf604017 | |||
5c122f7c9c | |||
c490f875e1 | |||
99448ba228 | |||
4f08126a5b | |||
21c9f2a966 | |||
46eb4b8996 | |||
bb34f9235d | |||
162bd7a657 | |||
62b44ac5ed | |||
f3e31a5c17 | |||
8c1c88860b | |||
d976c0a693 | |||
fa34f5e06f | |||
b7ba32c1cb | |||
0ca0001fdc | |||
cedfb4f831 | |||
721da5031c | |||
4cb460ae3a | |||
c4552ae9f6 | |||
49dbae0739 | |||
911b943b8b | |||
dd9b7f02f5 | |||
39020cb85a | |||
1d71c25774 | |||
c3a854dff1 | |||
b4e3a01b9f | |||
4ddec41343 | |||
3bbaab4377 | |||
11b61948a3 | |||
0e943a3418 | |||
6dfde52c97 | |||
4925f91bc5 | |||
cf751b6179 | |||
991e88165e | |||
d11a030f7a | |||
87b01c3d32 | |||
ca5c74009e | |||
2cce057825 | |||
199183c25c | |||
0b17eb8a08 | |||
3ee7f9a5e6 | |||
9531c5f046 | |||
59dacbeb07 | |||
da225b24af | |||
5e09eb862a | |||
e8dfbd5ac8 | |||
a88383e546 | |||
24a6513793 | |||
3527b9abea | |||
b9e4fee2ac | |||
86d9ba2011 | |||
a5954a0e56 | |||
af32d05e64 | |||
15b0e11e31 | |||
7937ee0b73 | |||
03b0960c08 | |||
325c0f2c72 | |||
55882fc657 | |||
8314a4c7c2 | |||
64699c8a2e | |||
5f1c4ec9a2 | |||
1a8e9092ec | |||
9498189e65 | |||
1f3c7e6d57 | |||
1305f7ddcd | |||
779e91a3bf | |||
bc009b7637 | |||
31eb1e7b87 | |||
0a08bf5f80 | |||
6f78cf679d | |||
fe04466198 | |||
89b4c341ce | |||
3882ff91bc | |||
8a7bdc7ac4 | |||
8c6eddfa2e | |||
efff34e346 | |||
4160e3f737 | |||
a9b35cc1c0 | |||
d98946d3e0 | |||
10e5d3f04b | |||
cef5186411 | |||
347ab57c10 | |||
3ebc11408c | |||
e835ae2861 | |||
929c490792 | |||
0ba74560f2 | |||
f649035653 | |||
1355133686 | |||
3916f5661e | |||
2c02ee41d7 | |||
6feb014328 | |||
cce0b1ecea | |||
bfe07187a3 | |||
3997fc0f17 | |||
5620a8c9e5 | |||
bb582ebe7d | |||
6d37472afb | |||
4fcb2b40d3 | |||
bccfb18f53 | |||
5f2ebad096 | |||
fe7561200c | |||
e7c75df13f | |||
8b35b2e525 | |||
4d674f761b | |||
40fe90bc20 | |||
9a8f96b2ed | |||
a10a573f5c | |||
25fa76a356 | |||
c665db4759 | |||
d5bd6f9ad4 | |||
374b082a01 | |||
17a884d920 | |||
2833480ca2 | |||
e6c1284fbb | |||
9439e9cfa5 | |||
1dc6173424 | |||
7f66fd906e | |||
0b265803a0 | |||
94cf0e710c | |||
c03d0d47fa | |||
09c7ec1ae1 | |||
40e5b7394e | |||
72b1609469 | |||
f3ee3cb50c | |||
fc970ce5c9 | |||
28fd5b70cd | |||
f0119c54c9 | |||
6871ab5572 | |||
69be189e3a | |||
31a8e39ab8 | |||
4b812a05a4 | |||
7a2c2d1297 | |||
40ed5758e1 | |||
133280383e | |||
d03e76320b | |||
93772c83b6 | |||
35ba7f701a | |||
f395ddff07 | |||
bdc83043ad | |||
b41416e745 | |||
f92671f85d | |||
3daa10a370 | |||
2556af1128 | |||
d601725d20 | |||
c5e092ec1e | |||
1a1a05ecd9 | |||
b2b694a10d | |||
06a2f9ee63 | |||
79d39d7a40 | |||
acf753a3c9 | |||
14a4ace9aa | |||
5160328d0e | |||
3de52bde87 | |||
8e0b5d08db | |||
caa2be03e7 | |||
6759fcdaa6 | |||
9243908055 | |||
fc1ad0b7bb | |||
d2f08199cc | |||
edab11447a | |||
9797be006b | |||
a6244a53a8 | |||
cce69a7d92 | |||
adb6587fc9 | |||
a6c8b50752 | |||
9224e4d449 | |||
651a8a08d5 | |||
5dae8ce9cb | |||
9acba09e18 | |||
9ff171ccbd | |||
17a391bbb6 | |||
88891083ae | |||
642db20562 | |||
b9b8ff6353 | |||
2a314c642f | |||
6fc9da30b6 | |||
f6ed7d555b | |||
02ad29180a | |||
d8e3b40488 | |||
9b7983ba63 | |||
03903b4c4d | |||
dd516f8032 | |||
4d8606e96c | |||
4b4bec3029 | |||
996f25a956 | |||
b5a7196ba4 | |||
2eb9e69e45 | |||
42d0096596 | |||
d239d88abd | |||
0b5a35f7c3 | |||
f9ab50d7d8 | |||
593861c0b6 | |||
7c87375614 | |||
efd8c865fe | |||
0dd38a5b50 | |||
87b9012ccd | |||
b868eeb3f1 | |||
f7393f5861 | |||
4e6ccf6c56 | |||
d8d0d2e8eb | |||
2cc55e1cba | |||
2cb2a3bab4 | |||
d1172f8441 | |||
8d1f51d2c0 | |||
0c989075bb | |||
e725a0291e | |||
de9323cb23 | |||
5a7523b534 | |||
33a831f9d4 | |||
67f7b7ec28 | |||
f0091d2f75 | |||
9405dd212b | |||
e9460972dd | |||
31f4a1ec6f | |||
abb525a1d3 | |||
95f11eb984 | |||
e9e46dd43a | |||
a9df5e9fd4 | |||
6d1f0b9507 | |||
2c08de2357 | |||
f468eefc97 | |||
e93fa0a7fd | |||
3dbfd7fa9c | |||
e8bbd70c56 | |||
32a6173004 | |||
02fcae1fa6 | |||
652fa4c037 | |||
a608d6fcf5 | |||
84439a368e | |||
491123bfbf | |||
e6fc6b82ea | |||
5090592ece | |||
b41f56e66b | |||
70f763dfd1 | |||
3e80e1b09e | |||
ba90fae02f | |||
17ed5c1f95 | |||
37498178d4 | |||
f2650e526d | |||
26bea9b7ba | |||
5515269387 | |||
c888450b19 | |||
f7903f59d8 | |||
e217d9ae97 | |||
2cd5353b0b | |||
0303cec0b5 | |||
f998889909 | |||
f9448e3906 | |||
a11e8c69f1 | |||
a321d474cb | |||
84f63524db | |||
664d9496ee | |||
28ae0b90f3 | |||
dd359a34c2 | |||
4db4403c3f | |||
e0e705c455 | |||
94cc7ac320 | |||
7e9b0ee660 | |||
12c7cf0b26 | |||
0589934b3f | |||
e6671fa416 | |||
75733a67ea | |||
96e212c554 | |||
08b3597377 | |||
e2cdac131c | |||
cbcba252f1 | |||
e5f2e27aef | |||
53155b3164 | |||
8bcc6956f5 | |||
d4037601d3 | |||
46547d09ff | |||
2ef26b9c22 | |||
0b356d3feb | |||
2c89db5816 | |||
e2d6124e40 | |||
def8638102 | |||
d474bdaf2b | |||
ae6f13027c | |||
edb7b34079 | |||
7fe2d31165 | |||
beb51219ed | |||
2e0bea186f | |||
a38fdfbee1 | |||
504e8288ee | |||
4030a24470 | |||
8e0e355762 | |||
4b60b9b19c | |||
d5e4c908d1 | |||
88676d0be9 | |||
bbc9b2233a | |||
3badc2ce20 | |||
e63d5a5a19 | |||
d90bf363bb | |||
9f3a20fb1e | |||
011d96337e | |||
be01219540 | |||
bfba420158 | |||
7b55091f9a | |||
ae8c11f6d0 | |||
fc15831f10 | |||
a24e6e9e1e | |||
8643245773 | |||
83f10810bb | |||
14a0934fda | |||
b29bb75259 | |||
c77e61ae8b | |||
b389ac1d9b | |||
288ec38050 | |||
bcbe50f12e | |||
5589bd05de | |||
bbf987a0a3 | |||
59b1ca51d3 | |||
ba1adb3f71 | |||
24be6f8054 | |||
66ff6f1516 | |||
c5f1e177aa | |||
3e9e11942a | |||
f030e626e3 | |||
12f45b19ba | |||
2818629b12 | |||
dace609a04 | |||
4df29d3ec1 | |||
7ccc3cbfaa | |||
1970b11e2d | |||
106f64d2f3 | |||
48f721831e | |||
e003c95221 | |||
3313bd3c65 | |||
38e83a336b | |||
a253c7f602 | |||
137e2e7786 | |||
4db3e3e146 | |||
5d2a19ce75 | |||
c1e5085b03 | |||
8069c65527 | |||
e6d2d7b090 | |||
dc3c3643c0 | |||
9d9efb7a4d | |||
248e681b42 | |||
003067f5d1 | |||
814210745a | |||
ecb1e01944 | |||
1daf48dad2 | |||
d1e080165b | |||
8a6b8f0489 | |||
2adee3dedd | |||
f49f9618be | |||
5082fe44c2 | |||
71d7d9bb0f | |||
16206b56df | |||
e7007c57a0 | |||
d36331543a | |||
d610ba9cff | |||
21dd6f02f7 | |||
e7052f0218 | |||
943d61793e | |||
37beea4929 | |||
2d34aa4ab7 | |||
a23d3161d7 | |||
7337becb65 | |||
ecbbef4213 | |||
7ec6e0861f | |||
cd38453a1f | |||
4591386b7c | |||
654595ce44 | |||
959a5f5cca | |||
5b7b0fbae7 | |||
86ca372f36 | |||
e4effbe818 | |||
7df59ab956 | |||
1f5f951819 | |||
9e64dcc10e | |||
b88abef4ed | |||
202c9b2294 | |||
b182e710ce | |||
321e5c624c | |||
f964c48a87 | |||
3462c4e846 | |||
4b01e39b51 | |||
a117053cf3 | |||
85dea9be3a | |||
4377d3fad3 | |||
bf75d4367d | |||
a80f7593b2 | |||
a6e94019d8 | |||
41394598ae | |||
a7926be90b | |||
bd19808ce8 | |||
6e11023709 | |||
c05b4d9fdd | |||
9bc98342e3 | |||
3f86a446f7 | |||
ab3ffd82fb | |||
bcd9da34e6 | |||
772db57862 | |||
97f7cf0387 | |||
61817fd735 | |||
eb9a8397db | |||
31b970a569 | |||
bf6ee242cd | |||
d6c9edfcbc | |||
9a7e0dbb75 | |||
135c3a29e3 | |||
bdb6b00e8c | |||
8bc227b871 | |||
b665f57aae | |||
f2d42b4370 | |||
66f982ab9e | |||
fd722ae3e6 | |||
2f7723b0ad | |||
433d15421e | |||
984a61f8fc | |||
d841b3b298 | |||
ab84a17b1f | |||
e6e4729035 | |||
037bd785ad | |||
7d71b3f0bd | |||
113d4c0895 | |||
5f82e5c644 | |||
b0d30c27f7 | |||
b3e3a99b54 | |||
63de746255 | |||
a30f7acba3 | |||
856e6266bf | |||
029d3c3bed | |||
94f8891d71 | |||
3c6beadec5 | |||
ecbfca8f73 | |||
2d7c1b85a3 | |||
b8fee02976 | |||
1a3a22085f | |||
3bf8f44286 | |||
11a6566093 | |||
de24492a0b | |||
4b2ab5dc19 | |||
d38c6f11df | |||
51373a4998 | |||
42f4912178 | |||
000720e9dc | |||
b64b0ebf02 | |||
38fa5b2ff7 | |||
2de1a9d686 | |||
d9c8c2bc4d | |||
67d0213c27 | |||
62eedc0447 | |||
e36e8e6b0f | |||
cde24dec05 | |||
551909adbd | |||
5744c8a54a | |||
f017fa549d | |||
070b16cc10 | |||
30a2be5bc9 | |||
f0c94ccc0f | |||
1850cec658 | |||
1181c49e06 | |||
6514b6475e | |||
63a79dc7ec | |||
714f8189e7 | |||
bc301388cc | |||
1117fde8fd | |||
af7c4292a4 | |||
56419ce603 | |||
029935ecc2 | |||
bfd09062e4 | |||
1203e68ec6 | |||
d07e03c584 | |||
f749c55b91 | |||
f5e1e84a75 | |||
539139e46b | |||
570981a779 | |||
996221e57d | |||
24158d40c9 | |||
c7ef38f813 | |||
4eafa791e3 | |||
269240128b | |||
ea715c4119 | |||
bf99a09ccf | |||
8974d80115 | |||
d750940807 | |||
b49cadb30a | |||
5bce2f65af | |||
4026ca277b | |||
8d52059629 | |||
966b931454 | |||
987f4ec700 | |||
cc32f9d618 | |||
3a9c9cbf8d | |||
b290815fbb | |||
1e694ac58f | |||
43e84a9660 | |||
c82f2c2638 | |||
b070b776f9 | |||
4ae7792806 | |||
59082dc913 | |||
8999f506a2 | |||
c48d04776a | |||
da7cd05efb | |||
54f0dff608 | |||
4ae60ecc95 | |||
394f7e74ae | |||
d696d7f7f3 | |||
677f8e2a67 | |||
91371bc17e | |||
caff3eb800 | |||
e643154f7b | |||
91507cbb94 | |||
5c3173a2f4 | |||
a3209ea914 | |||
3d252ffad3 | |||
fd7c2762e3 | |||
bb35c41a8d | |||
873f23f0c8 | |||
5a37931ae9 | |||
3b191aeb51 | |||
e65153c7f9 | |||
512485741f | |||
bab5f24e73 | |||
cd44a35b9f | |||
2288c79cf2 | |||
2c2fb948cd | |||
5a2a597ba1 | |||
58f52f56ac | |||
fea57bb55e | |||
1ce4abf089 | |||
9e4350759a | |||
3f53de0b1e | |||
fc05ed52b1 | |||
a3ad9bbf1d | |||
ac17b2aaa6 | |||
3ecc062e96 | |||
64a13744e4 | |||
cb48f7766b | |||
c41cfa07ad | |||
b079974229 | |||
861854a1b5 | |||
ccacc1c830 | |||
c326906198 | |||
10559b3466 | |||
b95f4fc3a3 | |||
1906c9276c | |||
4686b1c4b8 | |||
5bca236c4e | |||
1d3d5b973c | |||
4713cffc89 | |||
4573f0a0a9 | |||
bfddadff1f | |||
e0c329869d | |||
38241d8ad6 | |||
dfd32fe55e | |||
74138e59e9 | |||
ddbeba9021 | |||
5b0edc6888 | |||
011ff20b96 | |||
871a0c28aa | |||
628bf84e42 | |||
3cff1b4e85 | |||
55531b02a5 | |||
52fb49ed1c | |||
d948ba4ffe | |||
f5ddc9632e | |||
5576d4a4ca | |||
0a5eb81720 | |||
78d4b35ede | |||
ed7b3ce6e2 | |||
a0eeef3ef8 | |||
39db2912df | |||
b786a278f3 | |||
816eb3acab | |||
d2efe9c7de | |||
89110385a6 | |||
2be5db0052 | |||
68c24265bc | |||
d2a2c60bed | |||
405fa7ef42 | |||
dfdfbf0bf9 | |||
4e6af07c40 | |||
75530fcd49 | |||
a6e427fb6c | |||
8a046eb2cf | |||
b0841dfc7d | |||
cf6f6f6642 | |||
9d3a2c4e68 | |||
0bfa5dd312 | |||
bc0432b517 | |||
8fccd0798e | |||
3517a9c53c | |||
9296afdc45 | |||
82aee7f226 | |||
fe3d8ac4bb | |||
9eac49cd88 | |||
e4617204b7 | |||
f37501f76a | |||
9e5d393c53 | |||
b599a6b1f4 | |||
b5b64eda35 | |||
ed913d77b8 | |||
9cf0a28e05 | |||
d2bd796ebe | |||
4a012dda14 | |||
063492aa68 | |||
d4e6cf9545 | |||
e01d2d9480 | |||
90159e4cea | |||
c3d0a133a6 | |||
71f4d34d5d | |||
904d742237 | |||
a235255663 | |||
b0a99a749b | |||
4feb53345b | |||
4ca3315ab1 | |||
566f1dc75c | |||
32bff0910e | |||
8b59a0c23a | |||
f82449bbb5 | |||
6d2cebf842 | |||
26a96dbbb6 | |||
9fc7961bc0 | |||
a9abf18adf | |||
fe50e5691a | |||
bb8870e945 | |||
0ef14269af | |||
d7a8ae3c57 | |||
beaf861e2c | |||
7f98c46ad5 | |||
b7fd6e5a56 | |||
ab82bda2b1 | |||
e025161887 | |||
b333a74f26 | |||
7bdc8b7a34 | |||
0804404294 | |||
831a27f759 | |||
ed62183c76 | |||
b507f0f5a6 | |||
1dd6e5f06c | |||
27c57ff047 | |||
3ca042c3f1 | |||
7ce133ed47 | |||
6b0d2a466d | |||
5dde9efd53 | |||
7ac9bf3d5a | |||
44e8ca59ec | |||
1d7f228d2c | |||
89f7f16202 | |||
98b0eccb87 | |||
f1699d3d3b | |||
2b8ae2daeb | |||
3df0a67006 | |||
0a73914d1d |
43
.github/actions/libfdkaac/action.yml
vendored
Normal file
43
.github/actions/libfdkaac/action.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: libfdkaac
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout FDK AAC
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: mstorsjo/fdk-aac
|
||||
ref: ${{ inputs.refId }}
|
||||
path: fdkaac
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build FDK AAC
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd fdkaac ; autoreconf -fiv ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared --disable-static ; make -j 2 ; make install ; cd ../build ; tar czf ../dist/libfdkaac.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libfdkaac-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libfdkaac.tgz
|
44
.github/actions/libkvazaar/action.yml
vendored
Normal file
44
.github/actions/libkvazaar/action.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
name: libkvazaar
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout KVAZAAR
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: ultravideo/kvazaar
|
||||
ref: ${{ inputs.refId }}
|
||||
path: kvazaar
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build KVAZAAR
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd kvazaar ; ./autogen.sh ; CC=cl ./configure --prefix=$(realpath ../build) CPPFLAGS=-DKVZ_STATIC_LIB || true ; make -j ; make install-lib-static ; cd ../build ; tar czf ../dist/libkvazaar.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libopus-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libkvazaar.tgz
|
18
.github/actions/libmfx/action.yml
vendored
Normal file
18
.github/actions/libmfx/action.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: libmfx
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libmfx-${{ runner.os }}-${{ inputs.config }}
|
||||
path: .github/actions/libmfx/libmfx.tgz
|
BIN
.github/actions/libmfx/libmfx.tgz
vendored
Normal file
BIN
.github/actions/libmfx/libmfx.tgz
vendored
Normal file
Binary file not shown.
32
.github/actions/libmp3lame/action.yml
vendored
Normal file
32
.github/actions/libmp3lame/action.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
name: libmp3lame
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm svn
|
||||
path-type: inherit
|
||||
- name: Build LAME
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'svn co https://svn.code.sf.net/p/lame/svn/${{ inputs.refId }}/lame lame ; cd lame ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --enable-nasm --disable-frontend --disable-shared --enable-static ; make -j ; make install ; cd ../build ; tar czf ../dist/libmp3lame.tgz *
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libmp3lame-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libmp3lame.tgz
|
61
.github/actions/liboggvorbis/action.yml
vendored
Normal file
61
.github/actions/liboggvorbis/action.yml
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
name: liboggvorbis
|
||||
|
||||
inputs:
|
||||
libogg_refId:
|
||||
type: string
|
||||
required: true
|
||||
libvorbis_refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout Ogg
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: xiph/ogg
|
||||
ref: ${{ inputs.libogg_refId }}
|
||||
path: ogg
|
||||
- name: Checkout Vorbis
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/vorbis
|
||||
ref: ${{ inputs.libvorbis_refId }}
|
||||
path: vorbis
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Build Ogg
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ogg ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install'
|
||||
- name: Build Vorbis
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vorbis ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install ; sed -i '/^Libs\.private.*/d' ../build/lib/pkgconfig/vorbis.pc ; cd ../build ; tar czf ../dist/liboggvorbis.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: liboggvorbis-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/liboggvorbis.tgz
|
46
.github/actions/libopus/action.yml
vendored
Normal file
46
.github/actions/libopus/action.yml
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
name: libopus
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout OPUS
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: xiph/opus
|
||||
ref: v1.3.1
|
||||
path: opus
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build OPUS
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
cd opus\win32\VS2015
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" /property:Platform=x64 /property:PlatformToolset=v143 opus.vcxproj
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cp x64/${{ inputs.config }}/opus.lib ../../../build/lib/opus.lib ; cd ../../.. ; cp -r opus/include build/include/opus ; cp opus/opus.pc.in build/lib/pkgconfig/opus.pc ; sed -i "s#@prefix@#$(realpath ../../../build)#g" build/lib/pkgconfig/opus.pc ; sed -i "s/@exec_prefix@/\$\{prefix\}/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@libdir@/\$\{prefix\}\/lib/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@includedir@/\$\{prefix\}\/include/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@LIBM@//g" build/lib/pkgconfig/opus.pc; sed -i "s/@VERSION@/2.0.0/g" build/lib/pkgconfig/opus.pc ; cd build ; tar czf ../dist/libopus.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libopus-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libopus.tgz
|
50
.github/actions/libsnappy/action.yml
vendored
Normal file
50
.github/actions/libsnappy/action.yml
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
name: libsnappy
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout Snappy
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: google/snappy
|
||||
ref: ${{ inputs.refId }}
|
||||
path: snappy
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build Snappy
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
cd snappy
|
||||
git submodule update --init
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" .. -DCMAKE_INSTALL_PREFIX=..\..\build -DBUILD_SHARED_LIBS=OFF -DSNAPPY_BUILD_TESTS=OFF
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" Snappy.sln
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cp ${{ inputs.config }}/snappy.lib ../../build/lib/snappy.lib ; cp ../snappy.h ../snappy-c.h ../../build/include/ ; cd ../../build ; tar czf ../dist/libsnappy.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libsnappy-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libsnappy.tgz
|
47
.github/actions/libsvtav1/action.yml
vendored
Normal file
47
.github/actions/libsvtav1/action.yml
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
name: libsvtav1
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b ${{ inputs.refId }} https://gitlab.com/AOMediaCodec/SVT-AV1 svtav1
|
||||
cd svtav1
|
||||
git apply --ignore-whitespace --verbose ..\.github\actions\libsvtav1\patches\A01-metadata-copy-segfault-fix.patch
|
||||
cd ..
|
||||
#- name: Checkout SVT AV1
|
||||
# uses: actions/checkout@v3
|
||||
# with:
|
||||
# repository: AOMediaCodec/SVT-AV1
|
||||
# ref: ${{ inputs.refId }}
|
||||
# path: svtav1
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build SVT AV1
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd svtav1/Build/windows ; ./build.bat 2022 ${{ inputs.config }} static ; cp -r ../../Source/API ../../../build/include/svt-av1 ; cp ../../Bin/${{ inputs.config }}/SvtAv1Enc.lib ../../../build/lib/ ; cp SvtAv1Enc.pc ../../../build/lib/pkgconfig/ ; cd ../../../build ; tar czf ../dist/libsvtav1.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libsvtav1-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libsvtav1.tgz
|
37
.github/actions/libsvtav1/patches/A01-metadata-copy-segfault-fix.patch
vendored
Normal file
37
.github/actions/libsvtav1/patches/A01-metadata-copy-segfault-fix.patch
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
From 213854249dc8d69653a9f3281cdd4c2063cd3779 Mon Sep 17 00:00:00 2001
|
||||
From: Christopher Degawa <christopher.degawa@intel.com>
|
||||
Date: Wed, 10 Aug 2022 13:53:17 -0500
|
||||
Subject: [PATCH] copy_input_buffer: only copy metadata if a frame was actaully
|
||||
sent
|
||||
|
||||
Fixes a segfault if EOS was send through the library without zeroing
|
||||
out the metadata array
|
||||
|
||||
Signed-off-by: Christopher Degawa <christopher.degawa@intel.com>
|
||||
---
|
||||
Source/Lib/Encoder/Globals/EbEncHandle.c | 9 +++++----
|
||||
1 file changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/Source/Lib/Encoder/Globals/EbEncHandle.c b/Source/Lib/Encoder/Globals/EbEncHandle.c
|
||||
index ba5e719a4..fc7a2b1f4 100644
|
||||
--- a/Source/Lib/Encoder/Globals/EbEncHandle.c
|
||||
+++ b/Source/Lib/Encoder/Globals/EbEncHandle.c
|
||||
@@ -4814,11 +4814,12 @@ static void copy_input_buffer(SequenceControlSet* scs, EbBufferHeaderType* dst,
|
||||
} else if (pass != ENCODE_FIRST_PASS || copy_frame) {
|
||||
// Bypass copy for the unecessary picture in IPPP pass
|
||||
// Copy the picture buffer
|
||||
- if (src->p_buffer != NULL)
|
||||
+ if (src->p_buffer != NULL) {
|
||||
copy_frame_buffer(scs, dst->p_buffer, dst_y8b->p_buffer, src->p_buffer, pass);
|
||||
- // Copy the metadata array
|
||||
- if (svt_aom_copy_metadata_buffer(dst, src->metadata) != EB_ErrorNone)
|
||||
- dst->metadata = NULL;
|
||||
+ // Copy the metadata array
|
||||
+ if (svt_aom_copy_metadata_buffer(dst, src->metadata) != EB_ErrorNone)
|
||||
+ dst->metadata = NULL;
|
||||
+ }
|
||||
}
|
||||
|
||||
// Copy the private data list
|
||||
--
|
||||
GitLab
|
48
.github/actions/libvpl/action.yml
vendored
Normal file
48
.github/actions/libvpl/action.yml
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
name: libvpl
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout oneVPL
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: oneapi-src/oneVPL
|
||||
ref: ${{ inputs.refId }}
|
||||
path: onevpl
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Build oneVPL
|
||||
shell: cmd
|
||||
#env:
|
||||
# vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
# msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md temp build dist
|
||||
cd temp
|
||||
cmake.exe -G "Visual Studio 17 2022" ..\onevpl -T host=x64 -A x64 -DBUILD_TOOLS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=..\build -DCMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD=ON
|
||||
MSBuild.exe -t:VPL,INSTALL -p:Configuration=${{ env.msbuildConfig }} -m vpl.sln
|
||||
cd ..\build
|
||||
IF EXIST "lib\vpld.lib" move "lib\vpld.lib" "lib\vpl.lib"
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'rm -rf bin/cmake ; tar czf ../dist/libvpl.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libvpl-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libvpl.tgz
|
38
.github/actions/libvpx/action.yml
vendored
Normal file
38
.github/actions/libvpx/action.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
name: libvpx
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone --depth 1 -b ${{ inputs.refId }} https://github.com/webmproject/libvpx.git vpx
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build LibVpx
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vpx ; ./configure --prefix=../build --target=x86_64-win64-vs17 --enable-vp9-highbitdepth --disable-shared --disable-examples --disable-tools --disable-docs --disable-libyuv --disable-unit_tests ; make -j ; make install ; mv ../build/lib/x64/vpxmd.lib ../build/lib/vpx.lib ; rm -rf ../build/lib/x64 ; cd ../build ; tar czf ../dist/libvpx.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libvpx-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libvpx.tgz
|
43
.github/actions/libx264/action.yml
vendored
Normal file
43
.github/actions/libx264/action.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: libx264
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout X264
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: mirror/x264
|
||||
ref: ${{ inputs.refId }}
|
||||
path: x264
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build X264
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd x264 ; CC=cl ./configure --prefix=$(realpath ../build) --disable-cli --enable-static --enable-pic --libdir=../build/lib ; make -j ; make install-lib-static ; cd ../build ; tar czf ../dist/libx264.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libx264-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libx264.tgz
|
39
.github/actions/libx265-10/action.yml
vendored
Normal file
39
.github/actions/libx265-10/action.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
name: libx265-10
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout X265
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b ${{ inputs.refId }} https://github.com/videolan/x265.git x265
|
||||
- name: Set up MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Set up NASM
|
||||
uses: ilammy/setup-nasm@v1.2.1
|
||||
- name: Build X265 (10 bit)
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
cd x265/build/vc15-x86_64
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj
|
||||
move ${{ inputs.config }}\x265-static.lib ..\..\..\..\dist\x265_10bit.lib
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: x265_10bit-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/x265_10bit.lib
|
43
.github/actions/libx265-12/action.yml
vendored
Normal file
43
.github/actions/libx265-12/action.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
name: libx265-12
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout X265
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b ${{ inputs.refId }} https://github.com/videolan/x265.git x265
|
||||
- name: Set up MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Set up NASM
|
||||
uses: ilammy/setup-nasm@v1.2.1
|
||||
- name: Build X265 (12 bit)
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
cd x265/build/vc15-x86_64
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj
|
||||
move ${{ inputs.config }}\x265-static.lib ..\..\..\..\dist\x265_12bit.lib
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: x265_12bit-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/x265_12bit.lib
|
58
.github/actions/libx265/action.yml
vendored
Normal file
58
.github/actions/libx265/action.yml
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
name: libx265
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout X265
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git clone -b Release_3.5 https://github.com/videolan/x265.git x265
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake
|
||||
path-type: inherit
|
||||
- name: Set up MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
- name: Set up NASM
|
||||
uses: ilammy/setup-nasm@v1.2.1
|
||||
- name: Set up dependant libs
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: build
|
||||
- name: Build X265
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md di dist dist\include dist\lib dist\lib\pkgconfig
|
||||
cd x265/build/vc15-x86_64
|
||||
md work
|
||||
cd work
|
||||
cmake -G "Visual Studio 17 2022" ..\..\..\source -DCMAKE_INSTALL_PREFIX=..\..\..\..\build -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DEXTRA_LIB="libx265_10bit.lib;libx265_12bit.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON
|
||||
MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj
|
||||
cp x265.pc ..\..\..\..\dist\lib\pkgconfig\x265.pc
|
||||
move ${{ inputs.config }}\x265-static.lib ..\..\..\..\build\
|
||||
move x265_config.h ..\..\..\..\dist\include\
|
||||
cd ..\..\..\..
|
||||
"${{ env.vsPath }}VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\lib.exe" /ignore:4006 /ignore:4221 /OUT:dist\lib\x265.lib build\x265-static.lib build\x265_10bit-${{ runner.os }}-${{ inputs.config }}\x265_10bit.lib build\x265_12bit-${{ runner.os }}-${{ inputs.config }}\x265_12bit.lib
|
||||
copy x265\source\x265.h dist\include\
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd dist ; tar czf ../di/libx265.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libx265-${{ runner.os }}-${{ inputs.config }}
|
||||
path: di/libx265.tgz
|
44
.github/actions/libzimg/action.yml
vendored
Normal file
44
.github/actions/libzimg/action.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
name: libzimg
|
||||
|
||||
inputs:
|
||||
refId:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set up GIT
|
||||
shell: cmd
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Checkout ZIMG
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: sekrit-twc/zimg
|
||||
ref: ${{ inputs.refId }}
|
||||
path: zimg
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Build ZIMG
|
||||
shell: cmd
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build build\include build\lib build\lib\pkgconfig dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd zimg ; ./autogen.sh ; ./configure --prefix=$(realpath ../build) ; cd _msvc/zimg ; MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" /property:ConfigurationType=StaticLibrary /property:PlatformToolset=v143 /property:Platform=x64 /property:WholeProgramOptimization=false zimg.vcxproj ; cp x64/${{ inputs.config }}/z.lib ../../../build/lib/zimg.lib ; cd ../.. ; cp src/zimg/api/zimg.h ../build/include/zimg.h ; cp zimg.pc ../build/lib/pkgconfig/zimg.pc ; cd ../build ; tar czf ../dist/libzimg.tgz *'
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libzimg-${{ runner.os }}-${{ inputs.config }}
|
||||
path: dist/libzimg.tgz
|
23
.github/workflows/build.yml
vendored
Normal file
23
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: Build all
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# schedule:
|
||||
# - cron: "0 1 * * *"
|
||||
|
||||
jobs:
|
||||
ffmpeg-static-debug:
|
||||
uses: ./.github/workflows/ffmpeg.yml
|
||||
with:
|
||||
system: windows-2022
|
||||
type: static
|
||||
config: debug
|
||||
ffmpegRef: release/5.1
|
||||
|
||||
ffmpeg-static-release:
|
||||
uses: ./.github/workflows/ffmpeg.yml
|
||||
with:
|
||||
system: windows-2022
|
||||
type: static
|
||||
config: release
|
||||
ffmpegRef: release/5.1
|
220
.github/workflows/ffmpeg-cartwheel.yml
vendored
Normal file
220
.github/workflows/ffmpeg-cartwheel.yml
vendored
Normal file
@ -0,0 +1,220 @@
|
||||
name: 'Build FFmpeg from cartwheel'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
system:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'windows-2022'
|
||||
description: 'System'
|
||||
options:
|
||||
- windows-2022
|
||||
|
||||
type:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'static'
|
||||
description: Type
|
||||
options:
|
||||
- static
|
||||
- shared
|
||||
|
||||
config:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'debug'
|
||||
description: 'Configuration'
|
||||
options:
|
||||
- debug
|
||||
- release
|
||||
|
||||
workflow_call:
|
||||
inputs:
|
||||
system:
|
||||
type: string
|
||||
required: true
|
||||
type:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvpx "
|
||||
NASM_EXECUTABLE: nasm
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
|
||||
jobs:
|
||||
libvpl:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpl
|
||||
with:
|
||||
refId: master
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
liboggvorbis:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/liboggvorbis
|
||||
with:
|
||||
libogg_refId: v1.3.5
|
||||
libvorbis_refId: v1.3.7
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libsvtav1:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsvtav1
|
||||
with:
|
||||
refId: v1.1.0
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libsnappy:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsnappy
|
||||
with:
|
||||
refId: 1.1.9
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libvpx:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpx
|
||||
with:
|
||||
refId: v1.12.0
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libmp3lame:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libmp3lame
|
||||
with:
|
||||
refId: tags/RELEASE__3_100
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libzimg:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libzimg
|
||||
with:
|
||||
refId: release-3.0.4
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libopus:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libopus
|
||||
with:
|
||||
refId: v1.3.1
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libfdkaac:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libfdkaac
|
||||
with:
|
||||
refId: v2.0.2
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx264:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx264
|
||||
with:
|
||||
refId: stable
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265-12:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265-12
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265-10:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265-10
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265:
|
||||
runs-on: ${{ inputs.system }}
|
||||
needs: [libx265-12,libx265-10]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
cartwheel:
|
||||
runs-on: ${{ inputs.system }}
|
||||
needs: [libvpl,libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git config --global user.email "daniel.stankewitz@gmail.com"
|
||||
git config --global user.name "Daniel Stankewitz"
|
||||
- name: Checkout patches
|
||||
uses: actions/checkout@v3.0.0
|
||||
- name: Checkout NvEnc
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: FFmpeg/nv-codec-headers
|
||||
ref: master
|
||||
path: nvenc
|
||||
- name: Checkout AMF
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: GPUOpen-LibrariesAndSDKs/AMF
|
||||
ref: master
|
||||
path: amf
|
||||
- name: Set up artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: build_artifacts
|
||||
- name: Build FFmpeg from Cartwheel
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git checkout b3f9843cffd4118e35bb000779444ca2f4196342 ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0003-dynamic-loading-of-shared-fdk-aac-library-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-static-${{ inputs.config }}.tar.gz *'
|
||||
rem D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git checkout 2757a1d43ca83a3762b24a7ddd74b3291873f89c ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../0001-dynamic-loading-of-shared-fdk-aac-library-cw-5.0.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --pkg-config-flags="--static" --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-static-${{ inputs.config }}.tar.gz *'
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'git config --global user.email "daniel.stankewitz@gmail.com" ; git config --global user.name "Daniel Stankewitz" ; git clone https://github.com/intel-media-ci/cartwheel-ffmpeg --recursive cartwheel ; cd cartwheel ; git submodule update --init --recursive ; cd ffmpeg ; git am ../patches/*.patch ; git apply --ignore-whitespace --verbose ../../libfdkaac-dynlib-5.1.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../cartwheel/ffmpeg ; PKG_CONFIG_PATH=../../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../../build/include" --extra-ldflags="-LIBPATH:../../build/lib" --prefix=../../build --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc ${{ env.variant }} --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *'
|
||||
- name: Publish artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: FFmpeg ${{ runner.os }} ${{ inputs.type }} ${{ inputs.config }} package build
|
||||
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz
|
205
.github/workflows/ffmpeg-lgpl.yaml
vendored
Normal file
205
.github/workflows/ffmpeg-lgpl.yaml
vendored
Normal file
@ -0,0 +1,205 @@
|
||||
name: 'Build FFmpeg (LGPL)'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
system:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'windows-2022'
|
||||
description: 'System'
|
||||
options:
|
||||
- windows-2022
|
||||
|
||||
type:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'shared'
|
||||
description: Type
|
||||
options:
|
||||
- static
|
||||
- shared
|
||||
|
||||
config:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'release'
|
||||
description: 'Configuration'
|
||||
options:
|
||||
- debug
|
||||
- release
|
||||
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
default: 'release/6.1'
|
||||
description: 'FFmpeg refId'
|
||||
|
||||
workflow_call:
|
||||
inputs:
|
||||
system:
|
||||
type: string
|
||||
required: true
|
||||
type:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libvpx --enable-libopus"
|
||||
#--enable-libvorbis
|
||||
NASM_EXECUTABLE: nasm
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared --build-suffix=-voukoderpro' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
|
||||
jobs:
|
||||
libvpl:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpl
|
||||
with:
|
||||
refId: v2023.3.1
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
#liboggvorbis:
|
||||
# runs-on: ${{ inputs.system }}
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# - uses: ./.github/actions/liboggvorbis
|
||||
# with:
|
||||
# libogg_refId: v1.3.5
|
||||
# libvorbis_refId: v1.3.7
|
||||
# config: ${{ inputs.config }}
|
||||
|
||||
libsvtav1:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsvtav1
|
||||
with:
|
||||
refId: v1.4.1
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libsnappy:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsnappy
|
||||
with:
|
||||
refId: 1.1.9
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libvpx:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpx
|
||||
with:
|
||||
refId: v1.13.0
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libmp3lame:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libmp3lame
|
||||
with:
|
||||
refId: tags/RELEASE__3_100
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libzimg:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libzimg
|
||||
with:
|
||||
refId: release-3.0.4
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libopus:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libopus
|
||||
with:
|
||||
refId: v1.3.1
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
#libkvazaar:
|
||||
# runs-on: ${{ inputs.system }}
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# - uses: ./.github/actions/libkvazaar
|
||||
# with:
|
||||
# refId: v2.3.0
|
||||
# config: ${{ inputs.config }}
|
||||
|
||||
ffmpeg:
|
||||
runs-on: ${{ inputs.system }}
|
||||
needs: [libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,libopus]
|
||||
#libkvazaar,liboggvorbis
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Create PFX certificate
|
||||
id: create-pfx
|
||||
shell: pwsh
|
||||
env:
|
||||
PFX_CONTENT: ${{ secrets.CODESIGN_PFX }}
|
||||
run: |
|
||||
$pfxPath = Join-Path -Path $env:RUNNER_TEMP -ChildPath "cert.pfx";
|
||||
$encodedBytes = [System.Convert]::FromBase64String($env:PFX_CONTENT);
|
||||
Set-Content $pfxPath -Value $encodedBytes -AsByteStream;
|
||||
Write-Output "::set-output name=PFX_PATH::$pfxPath";
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git config --global user.email "daniel.stankewitz@gmail.com"
|
||||
git config --global user.name "Daniel Stankewitz"
|
||||
- name: Checkout patches
|
||||
uses: actions/checkout@v3.0.0
|
||||
- name: Checkout FFmpeg
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: FFmpeg/FFmpeg.git
|
||||
ref: ${{ inputs.ffmpegRef }}
|
||||
path: ffmpeg
|
||||
- name: Checkout NvEnc
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: FFmpeg/nv-codec-headers
|
||||
ref: master
|
||||
path: nvenc
|
||||
- name: Checkout AMF
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: GPUOpen-LibrariesAndSDKs/AMF
|
||||
ref: master
|
||||
path: amf
|
||||
- name: Set up artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: build_artifacts
|
||||
- name: Build FFmpeg
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../ffmpeg ; PKG_CONFIG_PATH=../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../build/include" --extra-ldflags="-LIBPATH:../build/lib" --prefix=../build --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc ${{ env.variant }} --enable-runtime-cpudetect --enable-w32threads --enable-cuda ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../build/lib ; rm -rf cmake pkgconfig *.la ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *'
|
||||
- name: Publish FFmpeg artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: FFmpeg ${{ inputs.system }} ${{ inputs.config }}${{ inputs.config }} package build
|
||||
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz
|
230
.github/workflows/ffmpeg.yml
vendored
Normal file
230
.github/workflows/ffmpeg.yml
vendored
Normal file
@ -0,0 +1,230 @@
|
||||
name: 'Build FFmpeg (GPL)'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
system:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'windows-2022'
|
||||
description: 'System'
|
||||
options:
|
||||
- windows-2022
|
||||
|
||||
type:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'static'
|
||||
description: Type
|
||||
options:
|
||||
- static
|
||||
- shared
|
||||
|
||||
config:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'release'
|
||||
description: 'Configuration'
|
||||
options:
|
||||
- debug
|
||||
- release
|
||||
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
default: 'release/6.1'
|
||||
description: 'FFmpeg refId'
|
||||
|
||||
workflow_call:
|
||||
inputs:
|
||||
system:
|
||||
type: string
|
||||
required: true
|
||||
type:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libvorbis --enable-libopus --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfdk-aac"
|
||||
NASM_EXECUTABLE: nasm
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
|
||||
jobs:
|
||||
libvpl:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpl
|
||||
with:
|
||||
refId: v2023.4.0
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
liboggvorbis:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/liboggvorbis
|
||||
with:
|
||||
libogg_refId: v1.3.5
|
||||
libvorbis_refId: v1.3.7
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libsvtav1:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsvtav1
|
||||
with:
|
||||
refId: v1.7.0
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libsnappy:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libsnappy
|
||||
with:
|
||||
refId: 1.1.10
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libvpx:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libvpx
|
||||
with:
|
||||
refId: v1.13.1
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libmp3lame:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libmp3lame
|
||||
with:
|
||||
refId: tags/RELEASE__3_100
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libzimg:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libzimg
|
||||
with:
|
||||
refId: release-3.0.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libopus:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libopus
|
||||
with:
|
||||
refId: v1.4
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libfdkaac:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libfdkaac
|
||||
with:
|
||||
refId: v2.0.2
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx264:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx264
|
||||
with:
|
||||
refId: stable
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265-12:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265-12
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265-10:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265-10
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
libx265:
|
||||
runs-on: ${{ inputs.system }}
|
||||
needs: [libx265-12,libx265-10]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libx265
|
||||
with:
|
||||
refId: Release_3.5
|
||||
config: ${{ inputs.config }}
|
||||
|
||||
ffmpeg:
|
||||
runs-on: ${{ inputs.system }}
|
||||
needs: [libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,liboggvorbis,libopus,libfdkaac,libx264,libx265]
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
||||
path-type: inherit
|
||||
- name: Set up GIT
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
git config --global user.email "daniel.stankewitz@gmail.com"
|
||||
git config --global user.name "Daniel Stankewitz"
|
||||
- name: Checkout patches
|
||||
uses: actions/checkout@v3.0.0
|
||||
- name: Checkout FFmpeg
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: FFmpeg/FFmpeg.git
|
||||
ref: ${{ inputs.ffmpegRef }}
|
||||
path: ffmpeg
|
||||
- name: Checkout NvEnc
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: FFmpeg/nv-codec-headers
|
||||
ref: master
|
||||
path: nvenc
|
||||
- name: Checkout AMF
|
||||
uses: actions/checkout@v3.0.0
|
||||
with:
|
||||
repository: GPUOpen-LibrariesAndSDKs/AMF
|
||||
ref: master
|
||||
path: amf
|
||||
- name: Set up artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: build_artifacts
|
||||
- name: Build FFmpeg
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ffmpeg ; git apply --ignore-whitespace ../libfdkaac.patch ; cd ../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../ffmpeg ; PKG_CONFIG_PATH=../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../build/include" --extra-ldflags="-LIBPATH:../build/lib" --prefix=../build --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc ${{ env.variant }} --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *'
|
||||
- name: Publish FFmpeg artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: FFmpeg ${{ inputs.system }} ${{ inputs.config }}${{ inputs.config }} package build
|
||||
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz
|
71
.github/workflows/test.yml
vendored
Normal file
71
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
name: 'Test'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
system:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'windows-2022'
|
||||
description: 'System'
|
||||
options:
|
||||
- windows-2022
|
||||
|
||||
type:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'shared'
|
||||
description: Type
|
||||
options:
|
||||
- static
|
||||
- shared
|
||||
|
||||
config:
|
||||
type: choice
|
||||
required: true
|
||||
default: 'release'
|
||||
description: 'Configuration'
|
||||
options:
|
||||
- debug
|
||||
- release
|
||||
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
default: 'release/6.1'
|
||||
description: 'FFmpeg refId'
|
||||
|
||||
workflow_call:
|
||||
inputs:
|
||||
system:
|
||||
type: string
|
||||
required: true
|
||||
type:
|
||||
type: string
|
||||
required: true
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
ffmpegRef:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libvpx --enable-libopus --enable-libkvazaar"
|
||||
#--enable-libvorbis
|
||||
NASM_EXECUTABLE: nasm
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared --build-suffix=-voukoderpro' }}
|
||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||
|
||||
jobs:
|
||||
libkvazaar:
|
||||
runs-on: ${{ inputs.system }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./.github/actions/libkvazaar
|
||||
with:
|
||||
refId: v2.3.0
|
||||
config: ${{ inputs.config }}
|
||||
|
24
README.md
24
README.md
@ -1,23 +1,3 @@
|
||||
# voukoder-ffmpeg-buildscript
|
||||
# voukoder-ffmpeg
|
||||
|
||||
Builds static libraries of ffmeg and external libraries (x264 8bit, x265 8,10 and 12bit) to be used in the voukoder project.
|
||||
|
||||
## Install msys2
|
||||
- Get the 64bit version of msys2 from msys2.org
|
||||
- Install it
|
||||
|
||||
## Start msys2
|
||||
- Open a command prompt
|
||||
- Run "vcvarsall.bat amd64" in "c:\program files (x86)\microsoft visual studio\2017\community\VC\Auxiliary\Build"
|
||||
- Run msys2 with "msys2_shell.cmd -mingw64 -full-path"
|
||||
|
||||
## Install development tools
|
||||
- Install CMakeGui in Windows to have the VisualStudio templates ready
|
||||
- Install "pacman -S base-devel binutils git make pkg-config" in msys2
|
||||
- Install nasm to /usr/bin/nasm.exe
|
||||
- Install cmake gui
|
||||
- Add cmake path to path variable
|
||||
|
||||
## Starting the build
|
||||
- Have the build.sh file at i.e. "/home/daniel/ffmpeg/build.sh"
|
||||
- Start the build by either "./build.sh debug" or "./build.sh release"
|
||||
Provides a FFmpeg static libs to be used with Voukoder. They are being built using a GitHub action worflow.
|
||||
|
185
build_tc.sh
185
build_tc.sh
@ -1,185 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
STEP=$1
|
||||
MODE=$2
|
||||
CPU_CORES=$3
|
||||
ENABLED_TOOLS=$4
|
||||
SRC=`realpath src`
|
||||
BUILD=`realpath build`
|
||||
|
||||
if [ "$MODE" == "debug" ]; then
|
||||
MSBUILD_CONFIG=Debug
|
||||
elif [ "$MODE" == "release" ]; then
|
||||
MSBUILD_CONFIG=Release
|
||||
else
|
||||
echo "Please supply build mode [debug|release]!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "$BUILD" ]; then
|
||||
mkdir $BUILD $BUILD/include $BUILD/lib
|
||||
fi
|
||||
|
||||
function compile {
|
||||
cd $SRC/$1
|
||||
if [ -f autogen.sh ]; then
|
||||
./autogen.sh
|
||||
fi
|
||||
CC=cl ./configure --prefix=$BUILD $2
|
||||
make -j $CPU_CORES
|
||||
make install
|
||||
}
|
||||
|
||||
if [ "$STEP" == "opus" ]; then
|
||||
cd $SRC/opus/win32/VS2015
|
||||
echo \nConverting project file ...
|
||||
sed -i 's/v140/v141/g' opus.vcxproj
|
||||
echo Building project 'opus' ...
|
||||
MSBuild.exe /maxcpucount:$CPU_CORES /property:Configuration="$MSBUILD_CONFIG" /property:Platform=x64 opus.vcxproj
|
||||
echo Done.
|
||||
cp x64/$MSBUILD_CONFIG/opus.lib $BUILD/lib/opus.lib
|
||||
cp -r $SRC/opus/include $BUILD/include/opus
|
||||
cp $SRC/opus/opus.pc.in $BUILD/lib/pkgconfig/opus.pc
|
||||
sed -i "s#@prefix@#$BUILD#g" $BUILD/lib/pkgconfig/opus.pc
|
||||
sed -i "s/@exec_prefix@/\$\{prefix\}/g" $BUILD/lib/pkgconfig/opus.pc
|
||||
sed -i "s/@libdir@/\$\{prefix\}\/lib/g" $BUILD/lib/pkgconfig/opus.pc
|
||||
sed -i "s/@includedir@/\$\{prefix\}\/include/g" $BUILD/lib/pkgconfig/opus.pc
|
||||
sed -i "s/@LIBM@//g" $BUILD/lib/pkgconfig/opus.pc
|
||||
sed -i "s/@VERSION@/2.0.0/g" $BUILD/lib/pkgconfig/opus.pc
|
||||
elif [ "$STEP" == "libfdk-aac" ]; then
|
||||
compile fdk-aac "--disable-static --disable-shared"
|
||||
elif [ "$STEP" == "lame" ]; then
|
||||
compile lame "--enable-nasm --disable-frontend --disable-shared --enable-static"
|
||||
elif [ "$STEP" == "zimg" ]; then
|
||||
cd $SRC/zimg
|
||||
./autogen.sh
|
||||
./configure --prefix=$BUILD
|
||||
cd _msvc/zimg
|
||||
MSBuild.exe /maxcpucount:$CPU_CORES /property:Configuration="$MSBUILD_CONFIG" /property:Platform=x64 /property:WholeProgramOptimization=false zimg.vcxproj
|
||||
cp x64/$MSBUILD_CONFIG/z.lib $BUILD/lib/zimg.lib
|
||||
cd ../..
|
||||
cp src/zimg/api/zimg.h $BUILD/include/zimg.h
|
||||
cp zimg.pc $BUILD/lib/pkgconfig/zimg.pc
|
||||
elif [ "$STEP" == "x264" ]; then
|
||||
cd $SRC/x264
|
||||
CC=cl ./configure --prefix=$BUILD --extra-cflags='-DNO_PREFIX' --disable-cli --enable-static --libdir=$BUILD/lib
|
||||
make -j $CPU_CORES
|
||||
make install-lib-static
|
||||
elif [ "$STEP" == "x265" ]; then
|
||||
# checkout manually (cmake is getting values from git)
|
||||
cd $src/..
|
||||
if [ ! -d $SRC/x265/.git ]; then
|
||||
git clone https://github.com/videolan/x265.git --branch stable $SRC/x265
|
||||
fi
|
||||
git reset --hard
|
||||
git pull
|
||||
cd $SRC/x265/build/vc15-x86_64
|
||||
rm -rf work*
|
||||
mkdir work work10 work12
|
||||
# 12bit
|
||||
cd work12
|
||||
cmake -G "Visual Studio 15 Win64" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON
|
||||
MSBuild.exe /maxcpucount:$CPU_CORES /property:Configuration="$MSBUILD_CONFIG" x265-static.vcxproj
|
||||
cp $MSBUILD_CONFIG/x265-static.lib ../work/x265_12bit.lib
|
||||
# 10bit
|
||||
cd ../work10
|
||||
cmake -G "Visual Studio 15 Win64" ../../../source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF
|
||||
MSBuild.exe /maxcpucount:$CPU_CORES /property:Configuration="$MSBUILD_CONFIG" x265-static.vcxproj
|
||||
cp $MSBUILD_CONFIG/x265-static.lib ../work/x265_10bit.lib
|
||||
# 8bit - main
|
||||
cd ../work
|
||||
cmake -G "Visual Studio 15 Win64" ../../../source -DCMAKE_INSTALL_PREFIX=$BUILD -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DEXTRA_LIB="x265_10bit.lib;x265_12bit.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON
|
||||
#-DSTATIC_LINK_CRT=ON
|
||||
MSBuild.exe /maxcpucount:$CPU_CORES /property:Configuration="$MSBUILD_CONFIG" x265-static.vcxproj
|
||||
cp $MSBUILD_CONFIG/x265-static.lib ./x265_main.lib
|
||||
LIB.EXE /ignore:4006 /ignore:4221 /OUT:x265.lib x265_main.lib x265_10bit.lib x265_12bit.lib
|
||||
cp x265.lib $BUILD/lib/x265.lib
|
||||
cp x265.pc $BUILD/lib/pkgconfig/x265.pc
|
||||
cp x265_config.h $BUILD/include/
|
||||
cp ../../../source/x265.h $BUILD/include/
|
||||
elif [ "$STEP" == "libogg" ]; then
|
||||
compile libogg "--disable-shared"
|
||||
elif [ "$STEP" == "libvorbis" ]; then
|
||||
compile libvorbis "--disable-shared"
|
||||
sed -i '/^Libs\.private.*/d' $BUILD/lib/pkgconfig/vorbis.pc # don't need m.lib on windows
|
||||
elif [ "$STEP" == "libvpx" ]; then
|
||||
cd $SRC/libvpx
|
||||
./configure --prefix=$BUILD --target=x86_64-win64-vs15 --enable-vp9-highbitdepth --disable-shared --disable-examples --disable-tools --disable-docs --disable-libyuv --disable-unit_tests --disable-postproc
|
||||
make -j $CPU_CORES
|
||||
make install
|
||||
mv $BUILD/lib/x64/vpxmd.lib $BUILD/lib/vpx.lib
|
||||
rm -rf $BUILD/lib/x64
|
||||
elif [ "$STEP" == "snappy" ]; then
|
||||
cd $SRC/snappy
|
||||
rm -rf work
|
||||
mkdir work
|
||||
cd work
|
||||
cmake -G "Visual Studio 15 Win64" .. -DCMAKE_INSTALL_PREFIX=$BUILD -DBUILD_SHARED_LIBS=OFF -DSNAPPY_BUILD_TESTS=OFF
|
||||
MSBuild.exe /maxcpucount:$CPU_CORES /property:Configuration="$MSBUILD_CONFIG" Snappy.sln
|
||||
cp $MSBUILD_CONFIG/snappy.lib $BUILD/lib/snappy.lib
|
||||
cp ../snappy.h ../snappy-c.h $BUILD/include/
|
||||
elif [ "$STEP" == "libaom" ]; then
|
||||
cd $SRC/libaom
|
||||
rm -rf work
|
||||
mkdir work
|
||||
cd work
|
||||
cmake -G "Visual Studio 15 Win64" .. -DENABLE_{DOCS,TOOLS,TESTS}=off -DAOM_TARGET_CPU=x86_64 -DCMAKE_INSTALL_PREFIX=$BUILD
|
||||
MSBuild.exe /maxcpucount:$CPU_CORES /property:Configuration="$MSBUILD_CONFIG" AOM.sln
|
||||
cp $MSBUILD_CONFIG/aom.lib $BUILD/lib/aom.lib
|
||||
cp -r ../aom $BUILD/include/aom
|
||||
cmake -DAOM_CONFIG_DIR=. -DAOM_ROOT=.. -DCMAKE_INSTALL_PREFIX=@prefix@ -DCMAKE_PROJECT_NAME=aom -DCONFIG_MULTITHREAD=true -DHAVE_PTHREAD_H=false -P "../build/cmake/pkg_config.cmake"
|
||||
sed -i "s#@prefix@#$BUILD#g" aom.pc
|
||||
sed -i '/^Libs\.private.*/d' aom.pc
|
||||
sed -i 's/-lm//' aom.pc
|
||||
cp aom.pc $BUILD/lib/pkgconfig/aom.pc
|
||||
|
||||
elif [ "$STEP" == "ffmpeg" ]; then
|
||||
echo "### Copying NVENC headers ..."
|
||||
cd $SRC/ffnvcodec
|
||||
make PREFIX=$BUILD install
|
||||
|
||||
echo "### Copying AMF headers ..."
|
||||
cp -a $SRC/amf/amf/public/include $BUILD/include/AMF
|
||||
|
||||
echo "### Applying patches ..."
|
||||
cd $SRC/ffmpeg
|
||||
|
||||
ffbranch=$(git rev-parse --abbrev-ref HEAD)
|
||||
echo "FFMpeg branch: $ffbranch ..."
|
||||
if [ "$ffbranch" == "release/4.0" ]; then
|
||||
patch -N -p1 -i ../../patches/0001-dynamic-loading-of-shared-fdk-aac-library-4.0.patch
|
||||
patch -N -p0 -i ../../patches/0002-patch-ffmpeg-to-new-fdk-api.patch
|
||||
else
|
||||
patch -N -p1 -i ../../patches/0001-dynamic-loading-of-shared-fdk-aac-library.patch
|
||||
fi
|
||||
|
||||
echo "### Compiling FFMpeg ..."
|
||||
cd $SRC/ffmpeg
|
||||
if [ "$MODE" == "debug" ]; then
|
||||
CFLAGS=-MDd
|
||||
elif [ "$MODE" == "release" ]; then
|
||||
CFLAGS=-MD
|
||||
fi
|
||||
PKG_CONFIG_PATH=$BUILD/lib/pkgconfig:$PKG_CONFIG_PATH ./configure --toolchain=msvc --extra-cflags="$CFLAGS -I$BUILD/include" --extra-ldflags="-LIBPATH:$BUILD/lib" --prefix=$BUILD --pkg-config-flags="--static" --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-network --enable-w32threads $ENABLED_TOOLS
|
||||
make -j $CPU_CORES
|
||||
make install
|
||||
|
||||
# rename *.a to *.lib
|
||||
cd $BUILD/lib
|
||||
for file in *.a; do
|
||||
mv "$file" "`basename "$file" .a`.lib"
|
||||
done
|
||||
|
||||
# clean up
|
||||
rm -rf $BUILD/lib/pkgconfig $BUILD/lib/fdk-aac.lib $BUILD/lib/*.la
|
||||
|
||||
# Create archives
|
||||
cd $BUILD
|
||||
mkdir ../dist 2>/dev/null
|
||||
tar czf ../dist/ffmpeg-win64-static-$MODE.tar.gz *
|
||||
cd $SRC/ffmpeg
|
||||
tar czf ../../dist/ffmpeg-win64-static-src-$MODE.tar.gz *
|
||||
else
|
||||
echo "Unknown build step!"
|
||||
exit 1
|
||||
fi
|
@ -1,38 +1,25 @@
|
||||
From 099b9eaee7cc6dae0ace4d8ce83cbb65449eb901 Mon Sep 17 00:00:00 2001
|
||||
From: sherpya <sherpya@netfarm.it>
|
||||
Date: Sun, 4 Dec 2016 01:28:51 +0100
|
||||
Subject: [PATCH 1/6] dynamic loading of shared fdk-aac library
|
||||
|
||||
---
|
||||
configure | 6 +--
|
||||
libavcodec/libfdk-aac_internal.h | 84 ++++++++++++++++++++++++++++++++
|
||||
libavcodec/libfdk-aacdec.c | 32 ++++++++++--
|
||||
libavcodec/libfdk-aacenc.c | 25 +++++++++-
|
||||
4 files changed, 138 insertions(+), 9 deletions(-)
|
||||
create mode 100644 libavcodec/libfdk-aac_internal.h
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 25120337de..36e8d99f00 100755
|
||||
index b6616f00b6..d02f5099fe 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -1675,7 +1675,6 @@ EXTERNAL_LIBRARY_GPL_LIST="
|
||||
@@ -1774,7 +1774,6 @@ EXTERNAL_LIBRARY_GPL_LIST="
|
||||
|
||||
EXTERNAL_LIBRARY_NONFREE_LIST="
|
||||
decklink
|
||||
libndi_newtek
|
||||
- libfdk_aac
|
||||
openssl
|
||||
libtls
|
||||
"
|
||||
@@ -1713,6 +1712,7 @@ EXTERNAL_LIBRARY_LIST="
|
||||
libcelt
|
||||
libcodec2
|
||||
libdc1394
|
||||
|
||||
@@ -1873,6 +1872,7 @@ EXTERNAL_LIBRARY_LIST="
|
||||
openssl
|
||||
pocketsphinx
|
||||
vapoursynth
|
||||
+ libfdk_aac
|
||||
libdrm
|
||||
libflite
|
||||
libfontconfig
|
||||
@@ -6064,9 +6064,7 @@ enabled libcodec2 && require libcodec2 codec2/codec2.h codec2_create -lc
|
||||
enabled libdavs2 && require_pkg_config libdavs2 "davs2 >= 1.5.115" davs2.h davs2_decoder_open
|
||||
"
|
||||
|
||||
HWACCEL_AUTODETECT_LIBRARY_LIST="
|
||||
@@ -6581,9 +6581,7 @@ enabled libdav1d && require_pkg_config libdav1d "dav1d >= 0.5.0" "dav1d
|
||||
enabled libdavs2 && require_pkg_config libdavs2 "davs2 >= 1.6.0" davs2.h davs2_decoder_open
|
||||
enabled libdc1394 && require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new
|
||||
enabled libdrm && require_pkg_config libdrm libdrm xf86drm.h drmGetVersion
|
||||
-enabled libfdk_aac && { check_pkg_config libfdk_aac fdk-aac "fdk-aac/aacenc_lib.h" aacEncOpen ||
|
||||
@ -44,7 +31,7 @@ index 25120337de..36e8d99f00 100755
|
||||
enabled fontconfig && enable libfontconfig
|
||||
diff --git a/libavcodec/libfdk-aac_internal.h b/libavcodec/libfdk-aac_internal.h
|
||||
new file mode 100644
|
||||
index 0000000000..cd1e6e3340
|
||||
index 0000000000..9bcfdb9aba
|
||||
--- /dev/null
|
||||
+++ b/libavcodec/libfdk-aac_internal.h
|
||||
@@ -0,0 +1,84 @@
|
||||
@ -132,19 +119,20 @@ index 0000000000..cd1e6e3340
|
||||
+} aacDecLib;
|
||||
+
|
||||
+#endif /* AVCODEC_LIBFDK_AAC_INTERNAL_H */
|
||||
\ No newline at end of file
|
||||
diff --git a/libavcodec/libfdk-aacdec.c b/libavcodec/libfdk-aacdec.c
|
||||
index 1abe1d8438..ef7728c368 100644
|
||||
index 8c1586e25e..25f68cdd10 100644
|
||||
--- a/libavcodec/libfdk-aacdec.c
|
||||
+++ b/libavcodec/libfdk-aacdec.c
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "libavutil/opt.h"
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "avcodec.h"
|
||||
#include "internal.h"
|
||||
#include "codec_internal.h"
|
||||
#include "decode.h"
|
||||
+#include "libfdk-aac_internal.h"
|
||||
|
||||
#ifdef AACDECODER_LIB_VL0
|
||||
#define FDKDEC_VER_AT_LEAST(vl0, vl1) \
|
||||
@@ -47,6 +48,8 @@ enum ConcealMethod {
|
||||
@@ -48,6 +49,8 @@ enum ConcealMethod {
|
||||
typedef struct FDKAACDecContext {
|
||||
const AVClass *class;
|
||||
HANDLE_AACDECODER handle;
|
||||
@ -153,7 +141,7 @@ index 1abe1d8438..ef7728c368 100644
|
||||
uint8_t *decoder_buffer;
|
||||
int decoder_buffer_size;
|
||||
uint8_t *anc_buffer;
|
||||
@@ -99,7 +102,7 @@ static const AVClass fdk_aac_dec_class = {
|
||||
@@ -113,7 +116,7 @@ static const AVClass fdk_aac_dec_class = {
|
||||
static int get_stream_info(AVCodecContext *avctx)
|
||||
{
|
||||
FDKAACDecContext *s = avctx->priv_data;
|
||||
@ -162,7 +150,7 @@ index 1abe1d8438..ef7728c368 100644
|
||||
int channel_counts[0x24] = { 0 };
|
||||
int i, ch_error = 0;
|
||||
uint64_t ch_layout = 0;
|
||||
@@ -211,8 +214,10 @@ static av_cold int fdk_aac_decode_close(AVCodecContext *avctx)
|
||||
@@ -231,8 +234,10 @@ static av_cold int fdk_aac_decode_close(AVCodecContext *avctx)
|
||||
{
|
||||
FDKAACDecContext *s = avctx->priv_data;
|
||||
|
||||
@ -175,7 +163,7 @@ index 1abe1d8438..ef7728c368 100644
|
||||
av_freep(&s->decoder_buffer);
|
||||
av_freep(&s->anc_buffer);
|
||||
|
||||
@@ -224,6 +229,27 @@ static av_cold int fdk_aac_decode_init(AVCodecContext *avctx)
|
||||
@@ -244,6 +249,27 @@ static av_cold int fdk_aac_decode_init(AVCodecContext *avctx)
|
||||
FDKAACDecContext *s = avctx->priv_data;
|
||||
AAC_DECODER_ERROR err;
|
||||
|
||||
@ -204,28 +192,27 @@ index 1abe1d8438..ef7728c368 100644
|
||||
if (!s->handle) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Error opening decoder\n");
|
||||
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c
|
||||
index 5620bb5951..c4519b6b74 100644
|
||||
index 54549de473..9e93ce092c 100644
|
||||
--- a/libavcodec/libfdk-aacenc.c
|
||||
+++ b/libavcodec/libfdk-aacenc.c
|
||||
@@ -26,6 +26,8 @@
|
||||
#include "audio_frame_queue.h"
|
||||
#include "internal.h"
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "codec_internal.h"
|
||||
#include "encode.h"
|
||||
#include "profiles.h"
|
||||
+#include "libfdk-aac_internal.h"
|
||||
+
|
||||
|
||||
#ifdef AACENCODER_LIB_VL0
|
||||
#define FDKENC_VER_AT_LEAST(vl0, vl1) \
|
||||
((AACENCODER_LIB_VL0 > vl0) || \
|
||||
@@ -45,6 +47,8 @@ typedef struct AACContext {
|
||||
@@ -46,6 +47,8 @@ typedef struct AACContext {
|
||||
int latm;
|
||||
int header_period;
|
||||
int vbr;
|
||||
|
||||
+ void *hLib;
|
||||
+ aacEncLib pfn;
|
||||
|
||||
AudioFrameQueue afq;
|
||||
} AACContext;
|
||||
|
||||
@@ -108,8 +112,10 @@ static int aac_encode_close(AVCodecContext *avctx)
|
||||
@@ -111,8 +114,10 @@ static int aac_encode_close(AVCodecContext *avctx)
|
||||
{
|
||||
AACContext *s = avctx->priv_data;
|
||||
|
||||
@ -235,10 +222,10 @@ index 5620bb5951..c4519b6b74 100644
|
||||
+ s->pfn.aacEncClose(&s->handle);
|
||||
+ dlclose(s->hLib);
|
||||
+ }
|
||||
av_freep(&avctx->extradata);
|
||||
ff_af_queue_close(&s->afq);
|
||||
|
||||
@@ -126,6 +132,21 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
|
||||
return 0;
|
||||
@@ -128,6 +133,21 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
|
||||
int aot = FF_PROFILE_AAC_LOW + 1;
|
||||
int sce = 0, cpe = 0;
|
||||
|
||||
@ -257,8 +244,6 @@ index 5620bb5951..c4519b6b74 100644
|
||||
+ DLSYM(aacEncoder_SetParam);
|
||||
+#define aacEncoder_SetParam s->pfn.aacEncoder_SetParam
|
||||
+
|
||||
if ((err = aacEncOpen(&s->handle, 0, avctx->channels)) != AACENC_OK) {
|
||||
if ((err = aacEncOpen(&s->handle, 0, avctx->ch_layout.nb_channels)) != AACENC_OK) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Unable to open the encoder: %s\n",
|
||||
aac_get_error(err));
|
||||
--
|
||||
2.19.0
|
@ -1,261 +0,0 @@
|
||||
From 3429a813b77a7658d2ee59be7c9228e306d86d14 Mon Sep 17 00:00:00 2001
|
||||
From: sherpya <sherpya@netfarm.it>
|
||||
Date: Sun, 4 Dec 2016 01:28:51 +0100
|
||||
Subject: [PATCH 1/6] dynamic loading of shared fdk-aac library
|
||||
|
||||
---
|
||||
configure | 6 ++--
|
||||
libavcodec/libfdk-aacdec.c | 73 ++++++++++++++++++++++++++++++++++++++++++++--
|
||||
libavcodec/libfdk-aacenc.c | 59 +++++++++++++++++++++++++++++++++++--
|
||||
3 files changed, 129 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 0b01a221c7..9dae091033 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -1563,7 +1563,6 @@ EXTERNAL_LIBRARY_GPL_LIST="
|
||||
EXTERNAL_LIBRARY_NONFREE_LIST="
|
||||
decklink
|
||||
libndi_newtek
|
||||
- libfdk_aac
|
||||
openssl
|
||||
libtls
|
||||
"
|
||||
@@ -1597,6 +1596,7 @@ EXTERNAL_LIBRARY_LIST="
|
||||
libcaca
|
||||
libcelt
|
||||
libdc1394
|
||||
+ libfdk_aac
|
||||
libdrm
|
||||
libflite
|
||||
libfontconfig
|
||||
@@ -5841,9 +5841,7 @@ enabled libcelt && require libcelt celt/celt.h celt_decode -lcelt0 &&
|
||||
enabled libcaca && require_pkg_config libcaca caca caca.h caca_create_canvas
|
||||
enabled libdc1394 && require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new
|
||||
enabled libdrm && require_pkg_config libdrm libdrm xf86drm.h drmGetVersion
|
||||
-enabled libfdk_aac && { check_pkg_config libfdk_aac fdk-aac "fdk-aac/aacenc_lib.h" aacEncOpen ||
|
||||
- { require libfdk_aac fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac &&
|
||||
- warn "using libfdk without pkg-config"; } }
|
||||
+enabled libfdk_aac && { check_header fdk-aac/aacenc_lib.h || die "ERROR: aacenc_lib.h not found"; }
|
||||
flite_extralibs="-lflite_cmu_time_awb -lflite_cmu_us_awb -lflite_cmu_us_kal -lflite_cmu_us_kal16 -lflite_cmu_us_rms -lflite_cmu_us_slt -lflite_usenglish -lflite_cmulex -lflite"
|
||||
enabled libflite && require libflite "flite/flite.h" flite_init $flite_extralibs
|
||||
enabled fontconfig && enable libfontconfig
|
||||
diff --git a/libavcodec/libfdk-aacdec.c b/libavcodec/libfdk-aacdec.c
|
||||
index 677b11088b..d191133ae0 100644
|
||||
--- a/libavcodec/libfdk-aacdec.c
|
||||
+++ b/libavcodec/libfdk-aacdec.c
|
||||
@@ -17,6 +17,17 @@
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
+#ifndef _WIN32
|
||||
+#include <dlfcn.h>
|
||||
+#define LIBNAME "libfdk-aac.so.1"
|
||||
+#else
|
||||
+#include <windows.h>
|
||||
+#define LIBNAME "libfdk-aac-1.dll"
|
||||
+#define dlopen(fname, f) ((void *) LoadLibraryA(fname))
|
||||
+#define dlclose(handle) FreeLibrary((HMODULE) handle)
|
||||
+#define dlsym(handle, name) GetProcAddress((HMODULE) handle, name)
|
||||
+#endif
|
||||
+
|
||||
#include <fdk-aac/aacdecoder_lib.h>
|
||||
|
||||
#include "libavutil/channel_layout.h"
|
||||
@@ -25,6 +36,37 @@
|
||||
#include "avcodec.h"
|
||||
#include "internal.h"
|
||||
|
||||
+typedef LINKSPEC_H HANDLE_AACDECODER (*imp_aacDecoder_Open)(TRANSPORT_TYPE transportFmt, UINT nrOfLayers);
|
||||
+typedef LINKSPEC_H void (*imp_aacDecoder_Close)(HANDLE_AACDECODER self);
|
||||
+typedef LINKSPEC_H AAC_DECODER_ERROR (*imp_aacDecoder_Fill)(HANDLE_AACDECODER self, UCHAR *pBuffer[], const UINT bufferSize[], UINT *bytesValid);
|
||||
+typedef LINKSPEC_H AAC_DECODER_ERROR (*imp_aacDecoder_DecodeFrame)(HANDLE_AACDECODER self, INT_PCM *pTimeData, const INT timeDataSize, const UINT flags);
|
||||
+typedef LINKSPEC_H CStreamInfo* (*imp_aacDecoder_GetStreamInfo)(HANDLE_AACDECODER self);
|
||||
+typedef LINKSPEC_H AAC_DECODER_ERROR (*imp_aacDecoder_ConfigRaw)(HANDLE_AACDECODER self, UCHAR *conf[], const UINT length[]);
|
||||
+typedef LINKSPEC_H AAC_DECODER_ERROR (*imp_aacDecoder_SetParam)(const HANDLE_AACDECODER self, const AACDEC_PARAM param, const INT value);
|
||||
+typedef LINKSPEC_H AAC_DECODER_ERROR (*imp_aacDecoder_AncDataInit)(HANDLE_AACDECODER self, UCHAR *buffer, int size);
|
||||
+
|
||||
+typedef struct _aacDecLib {
|
||||
+ imp_aacDecoder_Open aacDecoder_Open;
|
||||
+ imp_aacDecoder_Close aacDecoder_Close;
|
||||
+ imp_aacDecoder_Fill aacDecoder_Fill;
|
||||
+ imp_aacDecoder_DecodeFrame aacDecoder_DecodeFrame;
|
||||
+ imp_aacDecoder_ConfigRaw aacDecoder_ConfigRaw;
|
||||
+ imp_aacDecoder_GetStreamInfo aacDecoder_GetStreamInfo;
|
||||
+ imp_aacDecoder_SetParam aacDecoder_SetParam;
|
||||
+ imp_aacDecoder_AncDataInit aacDecoder_AncDataInit;
|
||||
+} aacDecLib;
|
||||
+
|
||||
+#define DLSYM(x) \
|
||||
+ do \
|
||||
+ { \
|
||||
+ s->pfn.x = ( imp_##x ) dlsym(s->hLib, AV_STRINGIFY(x)); \
|
||||
+ if (!s->pfn.x ) \
|
||||
+ { \
|
||||
+ av_log(avctx, AV_LOG_ERROR, "Unable to find symbol " AV_STRINGIFY(x) " in dynamic " LIBNAME "\n"); \
|
||||
+ return -1; \
|
||||
+ } \
|
||||
+ } while (0)
|
||||
+
|
||||
/* The version macro is introduced the same time as the setting enum was
|
||||
* changed, so this check should suffice. */
|
||||
#ifndef AACDECODER_LIB_VL0
|
||||
@@ -41,6 +83,8 @@ enum ConcealMethod {
|
||||
typedef struct FDKAACDecContext {
|
||||
const AVClass *class;
|
||||
HANDLE_AACDECODER handle;
|
||||
+ void *hLib;
|
||||
+ aacDecLib pfn;
|
||||
uint8_t *decoder_buffer;
|
||||
int decoder_buffer_size;
|
||||
uint8_t *anc_buffer;
|
||||
@@ -88,7 +132,7 @@ static const AVClass fdk_aac_dec_class = {
|
||||
static int get_stream_info(AVCodecContext *avctx)
|
||||
{
|
||||
FDKAACDecContext *s = avctx->priv_data;
|
||||
- CStreamInfo *info = aacDecoder_GetStreamInfo(s->handle);
|
||||
+ CStreamInfo *info = s->pfn.aacDecoder_GetStreamInfo(s->handle);
|
||||
int channel_counts[0x24] = { 0 };
|
||||
int i, ch_error = 0;
|
||||
uint64_t ch_layout = 0;
|
||||
@@ -200,8 +244,10 @@ static av_cold int fdk_aac_decode_close(AVCodecContext *avctx)
|
||||
{
|
||||
FDKAACDecContext *s = avctx->priv_data;
|
||||
|
||||
- if (s->handle)
|
||||
- aacDecoder_Close(s->handle);
|
||||
+ if (s->hLib && s->handle) {
|
||||
+ s->pfn.aacDecoder_Close(s->handle);
|
||||
+ dlclose(s->hLib);
|
||||
+ }
|
||||
av_freep(&s->decoder_buffer);
|
||||
av_freep(&s->anc_buffer);
|
||||
|
||||
@@ -213,6 +259,27 @@ static av_cold int fdk_aac_decode_init(AVCodecContext *avctx)
|
||||
FDKAACDecContext *s = avctx->priv_data;
|
||||
AAC_DECODER_ERROR err;
|
||||
|
||||
+ if (!(s->hLib = dlopen(LIBNAME, RTLD_NOW))) {
|
||||
+ av_log(avctx, AV_LOG_ERROR, "Unable to load " LIBNAME "\n");
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ DLSYM(aacDecoder_Open);
|
||||
+#define aacDecoder_Open s->pfn.aacDecoder_Open
|
||||
+ DLSYM(aacDecoder_Close);
|
||||
+ DLSYM(aacDecoder_Fill);
|
||||
+#define aacDecoder_Fill s->pfn.aacDecoder_Fill
|
||||
+ DLSYM(aacDecoder_DecodeFrame);
|
||||
+#define aacDecoder_DecodeFrame s->pfn.aacDecoder_DecodeFrame
|
||||
+ DLSYM(aacDecoder_GetStreamInfo);
|
||||
+#define aacDecoder_GetStreamInfo s->pfn.aacDecoder_GetStreamInfo
|
||||
+ DLSYM(aacDecoder_ConfigRaw);
|
||||
+#define aacDecoder_ConfigRaw s->pfn.aacDecoder_ConfigRaw
|
||||
+ DLSYM(aacDecoder_SetParam);
|
||||
+#define aacDecoder_SetParam s->pfn.aacDecoder_SetParam
|
||||
+ DLSYM(aacDecoder_AncDataInit);
|
||||
+#define aacDecoder_AncDataInit s->pfn.aacDecoder_AncDataInit
|
||||
+
|
||||
s->handle = aacDecoder_Open(avctx->extradata_size ? TT_MP4_RAW : TT_MP4_ADTS, 1);
|
||||
if (!s->handle) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Error opening decoder\n");
|
||||
diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c
|
||||
index d47137b227..6295af3858 100644
|
||||
--- a/libavcodec/libfdk-aacenc.c
|
||||
+++ b/libavcodec/libfdk-aacenc.c
|
||||
@@ -17,6 +17,17 @@
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
+#ifndef _WIN32
|
||||
+#include <dlfcn.h>
|
||||
+#define LIBNAME "libfdk-aac.so.1"
|
||||
+#else
|
||||
+#include <windows.h>
|
||||
+#define LIBNAME "libfdk-aac-1.dll"
|
||||
+#define dlopen(fname, f) ((void *) LoadLibraryA(fname))
|
||||
+#define dlclose(handle) FreeLibrary((HMODULE) handle)
|
||||
+#define dlsym(handle, name) GetProcAddress((HMODULE) handle, name)
|
||||
+#endif
|
||||
+
|
||||
#include <fdk-aac/aacenc_lib.h>
|
||||
|
||||
#include "libavutil/channel_layout.h"
|
||||
@@ -26,6 +37,31 @@
|
||||
#include "audio_frame_queue.h"
|
||||
#include "internal.h"
|
||||
|
||||
+typedef AACENC_ERROR (*imp_aacEncOpen)(HANDLE_AACENCODER *phAacEncoder, const UINT encModules, const UINT maxChannels);
|
||||
+typedef AACENC_ERROR (*imp_aacEncClose)(HANDLE_AACENCODER *phAacEncoder);
|
||||
+typedef AACENC_ERROR (*imp_aacEncEncode)(const HANDLE_AACENCODER hAacEncoder, const AACENC_BufDesc *inBufDesc, const AACENC_BufDesc *outBufDesc, const AACENC_InArgs *inargs, AACENC_OutArgs *outargs);
|
||||
+typedef AACENC_ERROR (*imp_aacEncInfo)(const HANDLE_AACENCODER hAacEncoder, AACENC_InfoStruct *pInfo);
|
||||
+typedef AACENC_ERROR (*imp_aacEncoder_SetParam)(const HANDLE_AACENCODER hAacEncoder, const AACENC_PARAM param, const UINT value);
|
||||
+
|
||||
+typedef struct _aacEncLib {
|
||||
+ imp_aacEncOpen aacEncOpen;
|
||||
+ imp_aacEncClose aacEncClose;
|
||||
+ imp_aacEncEncode aacEncEncode;
|
||||
+ imp_aacEncInfo aacEncInfo;
|
||||
+ imp_aacEncoder_SetParam aacEncoder_SetParam;
|
||||
+} aacEncLib;
|
||||
+
|
||||
+#define DLSYM(x) \
|
||||
+ do \
|
||||
+ { \
|
||||
+ s->pfn.x = ( imp_##x ) dlsym(s->hLib, AV_STRINGIFY(x)); \
|
||||
+ if (!s->pfn.x ) \
|
||||
+ { \
|
||||
+ av_log(avctx, AV_LOG_ERROR, "Unable to find symbol " AV_STRINGIFY(x) " in dynamic " LIBNAME "\n"); \
|
||||
+ return -1; \
|
||||
+ } \
|
||||
+ } while (0)
|
||||
+
|
||||
typedef struct AACContext {
|
||||
const AVClass *class;
|
||||
HANDLE_AACENCODER handle;
|
||||
@@ -36,6 +72,8 @@ typedef struct AACContext {
|
||||
int header_period;
|
||||
int vbr;
|
||||
|
||||
+ void *hLib;
|
||||
+ aacEncLib pfn;
|
||||
AudioFrameQueue afq;
|
||||
} AACContext;
|
||||
|
||||
@@ -96,8 +134,10 @@ static int aac_encode_close(AVCodecContext *avctx)
|
||||
{
|
||||
AACContext *s = avctx->priv_data;
|
||||
|
||||
- if (s->handle)
|
||||
- aacEncClose(&s->handle);
|
||||
+ if (s->hLib && s->handle) {
|
||||
+ s->pfn.aacEncClose(&s->handle);
|
||||
+ dlclose(s->hLib);
|
||||
+ }
|
||||
av_freep(&avctx->extradata);
|
||||
ff_af_queue_close(&s->afq);
|
||||
|
||||
@@ -114,6 +154,21 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
|
||||
int aot = FF_PROFILE_AAC_LOW + 1;
|
||||
int sce = 0, cpe = 0;
|
||||
|
||||
+ if (!(s->hLib = dlopen(LIBNAME, RTLD_NOW))) {
|
||||
+ av_log(avctx, AV_LOG_ERROR, "Unable to load " LIBNAME "\n");
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
+ DLSYM(aacEncOpen);
|
||||
+#define aacEncOpen s->pfn.aacEncOpen
|
||||
+ DLSYM(aacEncClose);
|
||||
+ DLSYM(aacEncEncode);
|
||||
+#define aacEncEncode s->pfn.aacEncEncode
|
||||
+ DLSYM(aacEncInfo);
|
||||
+#define aacEncInfo s->pfn.aacEncInfo
|
||||
+ DLSYM(aacEncoder_SetParam);
|
||||
+#define aacEncoder_SetParam s->pfn.aacEncoder_SetParam
|
||||
+
|
||||
if ((err = aacEncOpen(&s->handle, 0, avctx->channels)) != AACENC_OK) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Unable to open the encoder: %s\n",
|
||||
aac_get_error(err));
|
||||
--
|
||||
2.15.1
|
@ -1,57 +0,0 @@
|
||||
--- libavcodec/libfdk-aacenc.c.orig 2018-09-04 17:31:43.145385000 +0200
|
||||
+++ libavcodec/libfdk-aacenc.c 2018-09-04 17:39:10.786071200 +0200
|
||||
@@ -289,7 +289,7 @@
|
||||
}
|
||||
|
||||
avctx->frame_size = info.frameLength;
|
||||
- avctx->initial_padding = info.encoderDelay;
|
||||
+ avctx->initial_padding = info.nDelay;
|
||||
ff_af_queue_init(avctx, &s->afq);
|
||||
|
||||
if (avctx->flags & AV_CODEC_FLAG_GLOBAL_HEADER) {
|
||||
@@ -322,28 +322,35 @@
|
||||
int out_buffer_size, out_buffer_element_size;
|
||||
void *in_ptr, *out_ptr;
|
||||
int ret;
|
||||
+ uint8_t dummy_buf[1];
|
||||
AACENC_ERROR err;
|
||||
|
||||
/* handle end-of-stream small frame and flushing */
|
||||
if (!frame) {
|
||||
+ /* Must be a non-null pointer, even if it's a dummy. We could use
|
||||
+ * the address of anything else on the stack as well. */
|
||||
+ in_ptr = dummy_buf;
|
||||
+ in_buffer_size = 0;
|
||||
+
|
||||
in_args.numInSamples = -1;
|
||||
} else {
|
||||
- in_ptr = frame->data[0];
|
||||
- in_buffer_size = 2 * avctx->channels * frame->nb_samples;
|
||||
- in_buffer_element_size = 2;
|
||||
-
|
||||
- in_args.numInSamples = avctx->channels * frame->nb_samples;
|
||||
- in_buf.numBufs = 1;
|
||||
- in_buf.bufs = &in_ptr;
|
||||
- in_buf.bufferIdentifiers = &in_buffer_identifier;
|
||||
- in_buf.bufSizes = &in_buffer_size;
|
||||
- in_buf.bufElSizes = &in_buffer_element_size;
|
||||
+ in_ptr = frame->data[0];
|
||||
+ in_buffer_size = 2 * avctx->channels * frame->nb_samples;
|
||||
+
|
||||
+ in_args.numInSamples = avctx->channels * frame->nb_samples;
|
||||
|
||||
/* add current frame to the queue */
|
||||
if ((ret = ff_af_queue_add(&s->afq, frame)) < 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
+ in_buffer_element_size = 2;
|
||||
+ in_buf.numBufs = 1;
|
||||
+ in_buf.bufs = &in_ptr;
|
||||
+ in_buf.bufferIdentifiers = &in_buffer_identifier;
|
||||
+ in_buf.bufSizes = &in_buffer_size;
|
||||
+ in_buf.bufElSizes = &in_buffer_element_size;
|
||||
+
|
||||
/* The maximum packet size is 6144 bits aka 768 bytes per channel. */
|
||||
if ((ret = ff_alloc_packet2(avctx, avpkt, FFMAX(8192, 768 * avctx->channels), 0)) < 0)
|
||||
return ret;
|
@ -1,13 +0,0 @@
|
||||
--- libavformat/matroskaenc.c 2018-08-10 22:18:59.051659000 +0200
|
||||
+++ libavformat/matroskaenc2.c 2018-08-10 22:18:31.932030400 +0200
|
||||
@@ -2671,8 +2671,8 @@
|
||||
}
|
||||
|
||||
for (i = 0; i < s->nb_streams; i++) {
|
||||
- // ms precision is the de-facto standard timescale for mkv files
|
||||
- avpriv_set_pts_info(s->streams[i], 64, 1, 1000);
|
||||
+ // ms precision is the de-facto standard timescale for mkv files (Patched: We're using microseconds!!)
|
||||
+ avpriv_set_pts_info(s->streams[i], 64, 1, 1000000);
|
||||
}
|
||||
|
||||
return 0;
|
Reference in New Issue
Block a user