Compare commits
74 Commits
f37-riscv6
...
rawhide
Author | SHA1 | Date | |
---|---|---|---|
|
69d06fe675 | ||
|
805473621e | ||
|
51db0dbaf0 | ||
|
0179ea0006 | ||
|
fe4d7dd258 | ||
|
55ef1c245c | ||
|
175f57600b | ||
|
16078d1d91 | ||
|
16bba3567b | ||
|
db2acb3681 | ||
|
324d6a3037 | ||
|
a4fcaad3a2 | ||
|
46131eefb0 | ||
|
45f69ccd8a | ||
|
774d42a007 | ||
|
67cc0fa210 | ||
|
b58631f030 | ||
|
1a68b30970 | ||
|
5b76b46070 | ||
|
2fe1d67c6d | ||
|
bea10e455b | ||
|
e4f0babc79 | ||
|
b05e4ff557 | ||
|
f3982b50da | ||
|
37bbe8c93a | ||
|
e691a74e2b | ||
|
9f0ba814c4 | ||
|
cc897ea5ca | ||
|
b3cfba90d4 | ||
|
d30a3b67b3 | ||
|
853aa9d7cf | ||
|
8be4d0455d | ||
|
0bad397a42 | ||
|
60f694e267 | ||
|
9bc65b1ebf | ||
|
717e5ed377 | ||
|
a8da7eeb17 | ||
|
d0a510651e | ||
|
897126763d | ||
|
c5e3c6b45d | ||
|
92fb6f4896 | ||
|
5d50a92a6f | ||
|
7204b79850 | ||
|
a0b0941d9b | ||
|
7a3b9cb05b | ||
|
fb3e130083 | ||
|
1bf8efa434 | ||
|
b5a29aa6c4 | ||
|
4d26310d1d | ||
|
b78409f0ff | ||
|
1ab39370ca | ||
|
30f7e744e6 | ||
|
c8373e6bd5 | ||
|
03288939b1 | ||
|
d7bb75a2c6 | ||
|
be0b562a32 | ||
|
d1fae7471b | ||
|
9c2f813c87 | ||
|
04c040828d | ||
|
a8c440ac75 | ||
|
cb6d660a34 | ||
|
4c7c44eb6a | ||
|
ec5387b4b2 | ||
|
71fac2e7b2 | ||
|
aea1720295 | ||
|
03bf8f1491 | ||
|
5ca5b0d944 | ||
|
45f894ec0e | ||
|
dab172bcf5 | ||
|
ebc2dc9a50 | ||
|
4c74eebb95 | ||
|
21b47e575a | ||
|
510b513281 | ||
|
bcf9b4a180 |
109
0001-lavc-libopenh264-Drop-openh264-runtime-version-check.patch
Normal file
109
0001-lavc-libopenh264-Drop-openh264-runtime-version-check.patch
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
From a641e629591d68bd3edd99bddec623dc31295f6b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kalev Lember <klember@redhat.com>
|
||||||
|
Date: Wed, 6 Dec 2023 14:37:34 +0100
|
||||||
|
Subject: [PATCH] lavc/libopenh264: Drop openh264 runtime version checks
|
||||||
|
|
||||||
|
Years ago, openh264 releases often changed their ABI without changing
|
||||||
|
the library soname. To avoid running into ABI issues, a version check
|
||||||
|
was added to lavc libopenh264 code to error out at runtime in case the
|
||||||
|
build time and runtime openh264 versions don't match.
|
||||||
|
|
||||||
|
This should no longer be an issue with newer openh264 releases and we
|
||||||
|
can drop the runtime version check and rely on upstream doing the right
|
||||||
|
thing and bump the library soname if the ABI changes, similar to how
|
||||||
|
other libraries are consumed in ffmpeg.
|
||||||
|
|
||||||
|
Almost all major distributions now include openh264 and this means there
|
||||||
|
are more eyes on ABI changes and issues are discovered and reported
|
||||||
|
quickly. See e.g. https://github.com/cisco/openh264/issues/3564 where an
|
||||||
|
ABI issue was quickly discovered and fixed.
|
||||||
|
|
||||||
|
Relaxing the check allows downstream distributions to build ffmpeg
|
||||||
|
against e.g. openh264 2.3.1 and ship an update to ABI-compatible
|
||||||
|
openh264 2.4.0, without needing to coordinate a lock step update between
|
||||||
|
ffmpeg and openh264 (which can be difficult if openh264 is distributed
|
||||||
|
by Cisco and ffmpeg comes from the distro, such as is the case for
|
||||||
|
Fedora).
|
||||||
|
|
||||||
|
Signed-off-by: Kalev Lember <klember@redhat.com>
|
||||||
|
---
|
||||||
|
libavcodec/libopenh264.c | 15 ---------------
|
||||||
|
libavcodec/libopenh264.h | 2 --
|
||||||
|
libavcodec/libopenh264dec.c | 4 ----
|
||||||
|
libavcodec/libopenh264enc.c | 4 ----
|
||||||
|
4 files changed, 25 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libavcodec/libopenh264.c b/libavcodec/libopenh264.c
|
||||||
|
index 0f6d28ed88..c80c85ea8b 100644
|
||||||
|
--- a/libavcodec/libopenh264.c
|
||||||
|
+++ b/libavcodec/libopenh264.c
|
||||||
|
@@ -46,18 +46,3 @@ void ff_libopenh264_trace_callback(void *ctx, int level, const char *msg)
|
||||||
|
int equiv_ffmpeg_log_level = libopenh264_to_ffmpeg_log_level(level);
|
||||||
|
av_log(ctx, equiv_ffmpeg_log_level, "%s\n", msg);
|
||||||
|
}
|
||||||
|
-
|
||||||
|
-int ff_libopenh264_check_version(void *logctx)
|
||||||
|
-{
|
||||||
|
- // Mingw GCC < 4.7 on x86_32 uses an incorrect/buggy ABI for the WelsGetCodecVersion
|
||||||
|
- // function (for functions returning larger structs), thus skip the check in those
|
||||||
|
- // configurations.
|
||||||
|
-#if !defined(_WIN32) || !defined(__GNUC__) || !ARCH_X86_32 || AV_GCC_VERSION_AT_LEAST(4, 7)
|
||||||
|
- OpenH264Version libver = WelsGetCodecVersion();
|
||||||
|
- if (memcmp(&libver, &g_stCodecVersion, sizeof(libver))) {
|
||||||
|
- av_log(logctx, AV_LOG_ERROR, "Incorrect library version loaded\n");
|
||||||
|
- return AVERROR(EINVAL);
|
||||||
|
- }
|
||||||
|
-#endif
|
||||||
|
- return 0;
|
||||||
|
-}
|
||||||
|
diff --git a/libavcodec/libopenh264.h b/libavcodec/libopenh264.h
|
||||||
|
index dbb9c5d429..0b462d6fdc 100644
|
||||||
|
--- a/libavcodec/libopenh264.h
|
||||||
|
+++ b/libavcodec/libopenh264.h
|
||||||
|
@@ -34,6 +34,4 @@
|
||||||
|
|
||||||
|
void ff_libopenh264_trace_callback(void *ctx, int level, const char *msg);
|
||||||
|
|
||||||
|
-int ff_libopenh264_check_version(void *logctx);
|
||||||
|
-
|
||||||
|
#endif /* AVCODEC_LIBOPENH264_H */
|
||||||
|
diff --git a/libavcodec/libopenh264dec.c b/libavcodec/libopenh264dec.c
|
||||||
|
index 7d650ae03e..b6a9bba2dc 100644
|
||||||
|
--- a/libavcodec/libopenh264dec.c
|
||||||
|
+++ b/libavcodec/libopenh264dec.c
|
||||||
|
@@ -52,13 +52,9 @@ static av_cold int svc_decode_init(AVCodecContext *avctx)
|
||||||
|
{
|
||||||
|
SVCContext *s = avctx->priv_data;
|
||||||
|
SDecodingParam param = { 0 };
|
||||||
|
- int err;
|
||||||
|
int log_level;
|
||||||
|
WelsTraceCallback callback_function;
|
||||||
|
|
||||||
|
- if ((err = ff_libopenh264_check_version(avctx)) < 0)
|
||||||
|
- return AVERROR_DECODER_NOT_FOUND;
|
||||||
|
-
|
||||||
|
if (WelsCreateDecoder(&s->decoder)) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Unable to create decoder\n");
|
||||||
|
return AVERROR_UNKNOWN;
|
||||||
|
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
|
||||||
|
index f518d0894e..6f231d22b2 100644
|
||||||
|
--- a/libavcodec/libopenh264enc.c
|
||||||
|
+++ b/libavcodec/libopenh264enc.c
|
||||||
|
@@ -110,14 +110,10 @@ static av_cold int svc_encode_init(AVCodecContext *avctx)
|
||||||
|
{
|
||||||
|
SVCContext *s = avctx->priv_data;
|
||||||
|
SEncParamExt param = { 0 };
|
||||||
|
- int err;
|
||||||
|
int log_level;
|
||||||
|
WelsTraceCallback callback_function;
|
||||||
|
AVCPBProperties *props;
|
||||||
|
|
||||||
|
- if ((err = ff_libopenh264_check_version(avctx)) < 0)
|
||||||
|
- return AVERROR_ENCODER_NOT_FOUND;
|
||||||
|
-
|
||||||
|
if (WelsCreateSVCEncoder(&s->encoder)) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Unable to create encoder\n");
|
||||||
|
return AVERROR_UNKNOWN;
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
137
0001-lavc-vaapi_decode-Make-it-possible-to-send-multiple-.patch
Normal file
137
0001-lavc-vaapi_decode-Make-it-possible-to-send-multiple-.patch
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
From 5176821735c397de2a108cd266a6c6759a5e0ffe Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Rosca <nowrep@gmail.com>
|
||||||
|
Date: Wed, 8 May 2024 09:11:11 +0200
|
||||||
|
Subject: [PATCH 1/2] lavc/vaapi_decode: Make it possible to send multiple
|
||||||
|
slice params buffers
|
||||||
|
|
||||||
|
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
|
||||||
|
Signed-off-by: David Rosca <nowrep@gmail.com>
|
||||||
|
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
|
||||||
|
(cherry picked from commit fe9d889dcd79ea18d4dfaa39df4ddbd4c8c3b15c)
|
||||||
|
|
||||||
|
[modified to drop h264/hevc/vc1 parts stripped in Fedora Linux]
|
||||||
|
---
|
||||||
|
libavcodec/vaapi_av1.c | 2 +-
|
||||||
|
libavcodec/vaapi_decode.c | 3 ++-
|
||||||
|
libavcodec/vaapi_decode.h | 1 +
|
||||||
|
libavcodec/vaapi_mjpeg.c | 2 +-
|
||||||
|
libavcodec/vaapi_mpeg2.c | 2 +-
|
||||||
|
libavcodec/vaapi_mpeg4.c | 2 +-
|
||||||
|
libavcodec/vaapi_vp8.c | 2 +-
|
||||||
|
libavcodec/vaapi_vp9.c | 2 +-
|
||||||
|
8 files changed, 9 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
|
||||||
|
index 1f9a6071ba..03771dd3e0 100644
|
||||||
|
--- a/libavcodec/vaapi_av1.c
|
||||||
|
+++ b/libavcodec/vaapi_av1.c
|
||||||
|
@@ -409,7 +409,7 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
|
||||||
|
.tg_end = s->tg_end,
|
||||||
|
};
|
||||||
|
|
||||||
|
- err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param,
|
||||||
|
+ err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param, 1,
|
||||||
|
sizeof(VASliceParameterBufferAV1),
|
||||||
|
buffer,
|
||||||
|
size);
|
||||||
|
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
|
||||||
|
index ceac769c52..9344c21fd2 100644
|
||||||
|
--- a/libavcodec/vaapi_decode.c
|
||||||
|
+++ b/libavcodec/vaapi_decode.c
|
||||||
|
@@ -62,6 +62,7 @@ int ff_vaapi_decode_make_param_buffer(AVCodecContext *avctx,
|
||||||
|
int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
|
||||||
|
VAAPIDecodePicture *pic,
|
||||||
|
const void *params_data,
|
||||||
|
+ int nb_params,
|
||||||
|
size_t params_size,
|
||||||
|
const void *slice_data,
|
||||||
|
size_t slice_size)
|
||||||
|
@@ -90,7 +91,7 @@ int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
|
||||||
|
|
||||||
|
vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context,
|
||||||
|
VASliceParameterBufferType,
|
||||||
|
- params_size, 1, (void*)params_data,
|
||||||
|
+ params_size, nb_params, (void*)params_data,
|
||||||
|
&pic->slice_buffers[index]);
|
||||||
|
if (vas != VA_STATUS_SUCCESS) {
|
||||||
|
av_log(avctx, AV_LOG_ERROR, "Failed to create slice "
|
||||||
|
diff --git a/libavcodec/vaapi_decode.h b/libavcodec/vaapi_decode.h
|
||||||
|
index 6beda14e52..702171e108 100644
|
||||||
|
--- a/libavcodec/vaapi_decode.h
|
||||||
|
+++ b/libavcodec/vaapi_decode.h
|
||||||
|
@@ -73,6 +73,7 @@ int ff_vaapi_decode_make_param_buffer(AVCodecContext *avctx,
|
||||||
|
int ff_vaapi_decode_make_slice_buffer(AVCodecContext *avctx,
|
||||||
|
VAAPIDecodePicture *pic,
|
||||||
|
const void *params_data,
|
||||||
|
+ int nb_params,
|
||||||
|
size_t params_size,
|
||||||
|
const void *slice_data,
|
||||||
|
size_t slice_size);
|
||||||
|
diff --git a/libavcodec/vaapi_mjpeg.c b/libavcodec/vaapi_mjpeg.c
|
||||||
|
index 5b8d47bb2a..9557cf5f9b 100644
|
||||||
|
--- a/libavcodec/vaapi_mjpeg.c
|
||||||
|
+++ b/libavcodec/vaapi_mjpeg.c
|
||||||
|
@@ -131,7 +131,7 @@ static int vaapi_mjpeg_decode_slice(AVCodecContext *avctx,
|
||||||
|
sp.components[i].ac_table_selector = s->ac_index[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
- err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, sizeof(sp), buffer, size);
|
||||||
|
+ err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, 1, sizeof(sp), buffer, size);
|
||||||
|
if (err)
|
||||||
|
goto fail;
|
||||||
|
|
||||||
|
diff --git a/libavcodec/vaapi_mpeg2.c b/libavcodec/vaapi_mpeg2.c
|
||||||
|
index eeb4e87321..171a742c7f 100644
|
||||||
|
--- a/libavcodec/vaapi_mpeg2.c
|
||||||
|
+++ b/libavcodec/vaapi_mpeg2.c
|
||||||
|
@@ -162,7 +162,7 @@ static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
|
||||||
|
};
|
||||||
|
|
||||||
|
err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
|
||||||
|
- &slice_param, sizeof(slice_param),
|
||||||
|
+ &slice_param, 1, sizeof(slice_param),
|
||||||
|
buffer, size);
|
||||||
|
if (err < 0) {
|
||||||
|
ff_vaapi_decode_cancel(avctx, pic);
|
||||||
|
diff --git a/libavcodec/vaapi_mpeg4.c b/libavcodec/vaapi_mpeg4.c
|
||||||
|
index 363b686e42..612de10cd7 100644
|
||||||
|
--- a/libavcodec/vaapi_mpeg4.c
|
||||||
|
+++ b/libavcodec/vaapi_mpeg4.c
|
||||||
|
@@ -169,7 +169,7 @@ static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer
|
||||||
|
};
|
||||||
|
|
||||||
|
err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
|
||||||
|
- &slice_param, sizeof(slice_param),
|
||||||
|
+ &slice_param, 1, sizeof(slice_param),
|
||||||
|
buffer, size);
|
||||||
|
if (err < 0) {
|
||||||
|
ff_vaapi_decode_cancel(avctx, pic);
|
||||||
|
diff --git a/libavcodec/vaapi_vp8.c b/libavcodec/vaapi_vp8.c
|
||||||
|
index 31137a45bd..66fdde1f39 100644
|
||||||
|
--- a/libavcodec/vaapi_vp8.c
|
||||||
|
+++ b/libavcodec/vaapi_vp8.c
|
||||||
|
@@ -209,7 +209,7 @@ static int vaapi_vp8_decode_slice(AVCodecContext *avctx,
|
||||||
|
for (i = 0; i < 8; i++)
|
||||||
|
sp.partition_size[i+1] = s->coeff_partition_size[i];
|
||||||
|
|
||||||
|
- err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, sizeof(sp), data, data_size);
|
||||||
|
+ err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, 1, sizeof(sp), data, data_size);
|
||||||
|
if (err)
|
||||||
|
goto fail;
|
||||||
|
|
||||||
|
diff --git a/libavcodec/vaapi_vp9.c b/libavcodec/vaapi_vp9.c
|
||||||
|
index 9dc7d5e72b..ff11022db7 100644
|
||||||
|
--- a/libavcodec/vaapi_vp9.c
|
||||||
|
+++ b/libavcodec/vaapi_vp9.c
|
||||||
|
@@ -158,7 +158,7 @@ static int vaapi_vp9_decode_slice(AVCodecContext *avctx,
|
||||||
|
}
|
||||||
|
|
||||||
|
err = ff_vaapi_decode_make_slice_buffer(avctx, pic,
|
||||||
|
- &slice_param, sizeof(slice_param),
|
||||||
|
+ &slice_param, 1, sizeof(slice_param),
|
||||||
|
buffer, size);
|
||||||
|
if (err) {
|
||||||
|
ff_vaapi_decode_cancel(avctx, pic);
|
||||||
|
--
|
||||||
|
2.45.1
|
||||||
|
|
112
0002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-m.patch
Normal file
112
0002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-m.patch
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
From 1740980b070897fd147b2d1a5259c9d7957d58a8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Rosca <nowrep@gmail.com>
|
||||||
|
Date: Wed, 8 May 2024 09:11:13 +0200
|
||||||
|
Subject: [PATCH 2/2] lavc/vaapi_av1: Avoid sending the same slice buffer
|
||||||
|
multiple times
|
||||||
|
|
||||||
|
When there are multiple tiles in one slice buffer, use multiple slice
|
||||||
|
params to avoid sending the same slice buffer multiple times and thus
|
||||||
|
increasing the bitstream size the driver will need to upload to hw.
|
||||||
|
|
||||||
|
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
|
||||||
|
Signed-off-by: David Rosca <nowrep@gmail.com>
|
||||||
|
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
|
||||||
|
(cherry picked from commit d2d911eb9a2fc6eb8d86b3ae025a56c1a2692fba)
|
||||||
|
---
|
||||||
|
libavcodec/vaapi_av1.c | 47 +++++++++++++++++++++++++++++-------------
|
||||||
|
1 file changed, 33 insertions(+), 14 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
|
||||||
|
index 03771dd3e0..ea8dd4d93d 100644
|
||||||
|
--- a/libavcodec/vaapi_av1.c
|
||||||
|
+++ b/libavcodec/vaapi_av1.c
|
||||||
|
@@ -19,6 +19,7 @@
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/frame.h"
|
||||||
|
+#include "libavutil/mem.h"
|
||||||
|
#include "hwaccel_internal.h"
|
||||||
|
#include "vaapi_decode.h"
|
||||||
|
#include "internal.h"
|
||||||
|
@@ -42,6 +43,9 @@ typedef struct VAAPIAV1DecContext {
|
||||||
|
*/
|
||||||
|
VAAPIAV1FrameRef ref_tab[AV1_NUM_REF_FRAMES];
|
||||||
|
AVFrame *tmp_frame;
|
||||||
|
+
|
||||||
|
+ int nb_slice_params;
|
||||||
|
+ VASliceParameterBufferAV1 *slice_params;
|
||||||
|
} VAAPIAV1DecContext;
|
||||||
|
|
||||||
|
static VASurfaceID vaapi_av1_surface_id(AV1Frame *vf)
|
||||||
|
@@ -97,6 +101,8 @@ static int vaapi_av1_decode_uninit(AVCodecContext *avctx)
|
||||||
|
for (int i = 0; i < FF_ARRAY_ELEMS(ctx->ref_tab); i++)
|
||||||
|
av_frame_free(&ctx->ref_tab[i].frame);
|
||||||
|
|
||||||
|
+ av_freep(&ctx->slice_params);
|
||||||
|
+
|
||||||
|
return ff_vaapi_decode_uninit(avctx);
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -393,13 +399,24 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
|
||||||
|
{
|
||||||
|
const AV1DecContext *s = avctx->priv_data;
|
||||||
|
VAAPIDecodePicture *pic = s->cur_frame.hwaccel_picture_private;
|
||||||
|
- VASliceParameterBufferAV1 slice_param;
|
||||||
|
- int err = 0;
|
||||||
|
+ VAAPIAV1DecContext *ctx = avctx->internal->hwaccel_priv_data;
|
||||||
|
+ int err, nb_params;
|
||||||
|
+
|
||||||
|
+ nb_params = s->tg_end - s->tg_start + 1;
|
||||||
|
+ if (ctx->nb_slice_params < nb_params) {
|
||||||
|
+ ctx->slice_params = av_realloc_array(ctx->slice_params,
|
||||||
|
+ nb_params,
|
||||||
|
+ sizeof(*ctx->slice_params));
|
||||||
|
+ if (!ctx->slice_params) {
|
||||||
|
+ ctx->nb_slice_params = 0;
|
||||||
|
+ err = AVERROR(ENOMEM);
|
||||||
|
+ goto fail;
|
||||||
|
+ }
|
||||||
|
+ ctx->nb_slice_params = nb_params;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
for (int i = s->tg_start; i <= s->tg_end; i++) {
|
||||||
|
- memset(&slice_param, 0, sizeof(VASliceParameterBufferAV1));
|
||||||
|
-
|
||||||
|
- slice_param = (VASliceParameterBufferAV1) {
|
||||||
|
+ ctx->slice_params[i - s->tg_start] = (VASliceParameterBufferAV1) {
|
||||||
|
.slice_data_size = s->tile_group_info[i].tile_size,
|
||||||
|
.slice_data_offset = s->tile_group_info[i].tile_offset,
|
||||||
|
.slice_data_flag = VA_SLICE_DATA_FLAG_ALL,
|
||||||
|
@@ -408,18 +425,20 @@ static int vaapi_av1_decode_slice(AVCodecContext *avctx,
|
||||||
|
.tg_start = s->tg_start,
|
||||||
|
.tg_end = s->tg_end,
|
||||||
|
};
|
||||||
|
-
|
||||||
|
- err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &slice_param, 1,
|
||||||
|
- sizeof(VASliceParameterBufferAV1),
|
||||||
|
- buffer,
|
||||||
|
- size);
|
||||||
|
- if (err) {
|
||||||
|
- ff_vaapi_decode_cancel(avctx, pic);
|
||||||
|
- return err;
|
||||||
|
- }
|
||||||
|
}
|
||||||
|
|
||||||
|
+ err = ff_vaapi_decode_make_slice_buffer(avctx, pic, ctx->slice_params, nb_params,
|
||||||
|
+ sizeof(VASliceParameterBufferAV1),
|
||||||
|
+ buffer,
|
||||||
|
+ size);
|
||||||
|
+ if (err)
|
||||||
|
+ goto fail;
|
||||||
|
+
|
||||||
|
return 0;
|
||||||
|
+
|
||||||
|
+fail:
|
||||||
|
+ ff_vaapi_decode_cancel(avctx, pic);
|
||||||
|
+ return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
const FFHWAccel ff_av1_vaapi_hwaccel = {
|
||||||
|
--
|
||||||
|
2.45.1
|
||||||
|
|
352
enable_decoders
352
enable_decoders
@ -1,74 +1,313 @@
|
|||||||
## module name # reason for enablement in ffmpeg (usually there is another package that already got legal review)
|
## module name # reason for enablement in ffmpeg (usually there is another package that already got legal review)
|
||||||
|
aasc
|
||||||
libfdk_aac # fdk-aac-free
|
libfdk_aac # fdk-aac-free
|
||||||
ac3
|
ac3
|
||||||
|
acelp_kelvin
|
||||||
|
adpcm_4xm
|
||||||
|
adpcm_adx
|
||||||
|
adpcm_afc
|
||||||
|
adpcm_agm
|
||||||
|
adpcm_aica
|
||||||
|
adpcm_argo
|
||||||
|
adpcm_ct
|
||||||
|
adpcm_dtk
|
||||||
|
adpcm_ea
|
||||||
|
adpcm_ea_maxis_xa
|
||||||
|
adpcm_ea_r1
|
||||||
|
adpcm_ea_r2
|
||||||
|
adpcm_ea_r3
|
||||||
|
adpcm_ea_xas
|
||||||
|
adpcm_g722
|
||||||
|
adpcm_g726
|
||||||
|
adpcm_g726le
|
||||||
|
adpcm_ima_acorn
|
||||||
|
adpcm_ima_alp
|
||||||
|
adpcm_ima_amv
|
||||||
|
adpcm_ima_apc
|
||||||
|
adpcm_ima_apm
|
||||||
|
adpcm_ima_cunning
|
||||||
|
adpcm_ima_dat4
|
||||||
|
adpcm_ima_dk3
|
||||||
|
adpcm_ima_dk4
|
||||||
|
adpcm_ima_ea_eacs
|
||||||
|
adpcm_ima_ea_sead
|
||||||
|
adpcm_ima_iss
|
||||||
|
adpcm_ima_moflex
|
||||||
|
adpcm_ima_mtf
|
||||||
|
adpcm_ima_oki
|
||||||
|
adpcm_ima_qt
|
||||||
|
adpcm_ima_qt_at
|
||||||
|
adpcm_ima_rad
|
||||||
|
adpcm_ima_smjpeg
|
||||||
|
adpcm_ima_ssi
|
||||||
|
adpcm_ima_wav
|
||||||
|
adpcm_ima_ws
|
||||||
|
adpcm_ms
|
||||||
|
adpcm_mtaf
|
||||||
|
adpcm_psx
|
||||||
|
adpcm_sbpro_2
|
||||||
|
adpcm_sbpro_3
|
||||||
|
adpcm_sbpro_4
|
||||||
|
adpcm_swf
|
||||||
|
adpcm_thp
|
||||||
|
adpcm_thp_le
|
||||||
|
adpcm_vima
|
||||||
|
adpcm_xa
|
||||||
|
adpcm_xmd
|
||||||
|
adpcm_yamaha
|
||||||
|
adpcm_zork
|
||||||
|
alac
|
||||||
|
alias_pix
|
||||||
|
amrnb
|
||||||
|
amrwb
|
||||||
|
amv
|
||||||
|
anm
|
||||||
ansi # trivial
|
ansi # trivial
|
||||||
|
anull
|
||||||
|
apac
|
||||||
|
ape
|
||||||
apng # animated png
|
apng # animated png
|
||||||
|
arbc
|
||||||
|
argo
|
||||||
ass # trivial
|
ass # trivial
|
||||||
|
asv1
|
||||||
|
asv2
|
||||||
|
atrac1
|
||||||
|
atrac3
|
||||||
|
atrac3al
|
||||||
|
atrac3p
|
||||||
|
atrac3pal
|
||||||
|
aura
|
||||||
|
aura2
|
||||||
|
av1 # libaom
|
||||||
av1_qsv # libaom
|
av1_qsv # libaom
|
||||||
ayuv # trivial
|
ayuv # trivial
|
||||||
|
bethsoftvid # trivial
|
||||||
|
bfi # trivial
|
||||||
|
bink
|
||||||
|
binkaudio_dct
|
||||||
|
binkaudio_rdft
|
||||||
|
bintext
|
||||||
|
bitpacked # trivial
|
||||||
bmp # trivial
|
bmp # trivial
|
||||||
|
bmv_audio
|
||||||
|
bmv_video
|
||||||
|
bonk
|
||||||
|
brender_pix
|
||||||
|
c93
|
||||||
|
cbd2_dpcm
|
||||||
|
ccaption
|
||||||
|
cdgraphics
|
||||||
|
cdtoons
|
||||||
|
cdxl
|
||||||
|
cinepak
|
||||||
|
clearvideo
|
||||||
|
cljr
|
||||||
|
cook
|
||||||
|
cpia
|
||||||
|
cscd
|
||||||
|
cyuv
|
||||||
|
dca
|
||||||
|
dds
|
||||||
|
derf_dpcm
|
||||||
|
dfa
|
||||||
|
dfpwm
|
||||||
dirac # dirac
|
dirac # dirac
|
||||||
|
dnxhd
|
||||||
|
dolby_e
|
||||||
|
dpx
|
||||||
|
dsd_lsbf
|
||||||
|
dsd_msbf
|
||||||
|
dsicinaudio
|
||||||
|
dsicinvideo
|
||||||
|
dss_sp
|
||||||
|
dvaudio
|
||||||
|
dvbsub
|
||||||
|
dvdsub
|
||||||
|
dvvideo
|
||||||
|
dxa
|
||||||
|
dxtory
|
||||||
|
eacmv
|
||||||
|
eamad
|
||||||
|
eatgq
|
||||||
|
eatgv
|
||||||
|
eatqi
|
||||||
|
eightbps
|
||||||
|
eightsvx_exp
|
||||||
|
eightsvx_fib
|
||||||
|
escape124
|
||||||
|
escape130
|
||||||
|
evrc
|
||||||
exr # openEXR
|
exr # openEXR
|
||||||
ffv1 # ffmpeg
|
ffv1 # ffmpeg
|
||||||
ffvhuff # ffmpeg
|
ffvhuff # ffmpeg
|
||||||
ffwavesynth # pseudo
|
ffwavesynth # pseudo
|
||||||
|
fits
|
||||||
flac # libFLAC
|
flac # libFLAC
|
||||||
|
flashsv
|
||||||
|
flashsv2
|
||||||
|
flic
|
||||||
|
flv
|
||||||
|
fmvc
|
||||||
|
fourxm
|
||||||
|
ftr # fdk-aac
|
||||||
|
g723_1
|
||||||
|
g729
|
||||||
|
gdv
|
||||||
|
gem
|
||||||
gif # libpng
|
gif # libpng
|
||||||
|
gremlin_dpcm
|
||||||
gsm # libgsm
|
gsm # libgsm
|
||||||
|
gsm_ms
|
||||||
|
gsm_ms_at
|
||||||
|
h261
|
||||||
|
h263
|
||||||
|
h263_v4l2m2m
|
||||||
|
h263i
|
||||||
|
h263p
|
||||||
|
hap
|
||||||
|
hca
|
||||||
|
hcom
|
||||||
|
hdr
|
||||||
|
hnm4_video
|
||||||
|
hq_hqa
|
||||||
|
hqx
|
||||||
huffyuv # trivial+zlib
|
huffyuv # trivial+zlib
|
||||||
|
hymt # huffyuv-mt
|
||||||
|
iac
|
||||||
|
idcin
|
||||||
|
idf
|
||||||
|
iff_ilbm
|
||||||
ilbc # ilbc
|
ilbc # ilbc
|
||||||
|
imc
|
||||||
|
indeo2
|
||||||
|
indeo3
|
||||||
|
indeo4
|
||||||
|
indeo5
|
||||||
|
interplay_acm
|
||||||
|
interplay_dpcm
|
||||||
|
interplay_video
|
||||||
|
ipu
|
||||||
|
jacosub
|
||||||
jpeg2000 # openjpeg2
|
jpeg2000 # openjpeg2
|
||||||
|
jpegls
|
||||||
|
jv
|
||||||
|
kgv1
|
||||||
|
kmvc
|
||||||
|
lagarith
|
||||||
libaom # libaom
|
libaom # libaom
|
||||||
libaom_av1 # libaom
|
libaom_av1 # libaom
|
||||||
libcodec2 # codec2
|
libcodec2 # codec2
|
||||||
libdav1d # av1
|
libdav1d # av1
|
||||||
libgsm # libgsm
|
libgsm # libgsm
|
||||||
|
libgsm_ms # libgsm
|
||||||
libilbc # ilbc
|
libilbc # ilbc
|
||||||
libjxl # libjxl
|
libjxl # libjxl
|
||||||
|
libopencore_amrnb # opencore-amr
|
||||||
|
libopencore_amrwb # opencore-amr
|
||||||
libopenh264 # openh264_dlopen
|
libopenh264 # openh264_dlopen
|
||||||
libopenjpeg # openjpeg
|
libopenjpeg # openjpeg
|
||||||
libopus # opus
|
libopus # opus
|
||||||
|
librsvg # librsvg
|
||||||
libschroedinger # schroedinger
|
libschroedinger # schroedinger
|
||||||
libspeex # speex
|
libspeex # speex
|
||||||
libvorbis # libvorbis
|
libvorbis # libvorbis
|
||||||
libvpx_vp8 # libvpx
|
libvpx_vp8 # libvpx
|
||||||
libvpx_vp9 # libvpx
|
libvpx_vp9 # libvpx
|
||||||
|
libzvbi_teletext # zvbi
|
||||||
|
loco
|
||||||
|
lscr
|
||||||
|
m101
|
||||||
|
mace3
|
||||||
|
mace6
|
||||||
|
mdec
|
||||||
|
media100
|
||||||
|
metasound
|
||||||
|
microdvd
|
||||||
|
mimic
|
||||||
|
misc4
|
||||||
mjpeg # mjpegtools
|
mjpeg # mjpegtools
|
||||||
mjpeg_qsv # mjpegtools
|
mjpeg_qsv # mjpegtools
|
||||||
|
mjpegb
|
||||||
|
mlp
|
||||||
|
mmvideo
|
||||||
|
motionpixels
|
||||||
mp1 # twolame/lame
|
mp1 # twolame/lame
|
||||||
mp1float # twolame/lame
|
mp1float # twolame/lame
|
||||||
mp2 # twolame
|
mp2 # twolame
|
||||||
mp2float # twolame
|
mp2float # twolame
|
||||||
mp3 # lame
|
mp3 # lame
|
||||||
|
mp3adu
|
||||||
|
mp3adufloat
|
||||||
mp3float # lame
|
mp3float # lame
|
||||||
|
mp3on4
|
||||||
|
mp3on4float
|
||||||
|
mpc7
|
||||||
|
mpc8
|
||||||
mpeg1video
|
mpeg1video
|
||||||
mpeg1_v4l2m2m
|
mpeg1_v4l2m2m
|
||||||
mpeg2video
|
mpeg2video
|
||||||
mpeg2_qsv
|
mpeg2_qsv
|
||||||
mpeg2_v4l2m2m
|
mpeg2_v4l2m2m
|
||||||
|
mpeg4
|
||||||
|
mpeg4_v4l2m2m
|
||||||
|
mpegvideo
|
||||||
|
mpl2
|
||||||
|
msa1
|
||||||
|
mscc
|
||||||
|
msmpeg4v1
|
||||||
|
msmpeg4v2
|
||||||
|
msmpeg4v3
|
||||||
|
msnsiren
|
||||||
|
msp2
|
||||||
|
msrle
|
||||||
|
mss1
|
||||||
|
mss2
|
||||||
|
msvideo1
|
||||||
|
mszh
|
||||||
|
mts2
|
||||||
|
mv30
|
||||||
|
mvc1
|
||||||
|
mvc2
|
||||||
|
mvdv
|
||||||
|
mvha
|
||||||
|
mwsc
|
||||||
|
mxpeg
|
||||||
|
nellymoser
|
||||||
|
nuv
|
||||||
|
on2avc
|
||||||
opus # libopus
|
opus # libopus
|
||||||
|
paf_audio
|
||||||
|
paf_video
|
||||||
pam # trivial
|
pam # trivial
|
||||||
pbm # trivial
|
pbm # trivial
|
||||||
pcm_alaw # trivial
|
pcm_alaw # trivial
|
||||||
pcm_bluray
|
pcm_bluray
|
||||||
pcm_dvd
|
pcm_dvd
|
||||||
|
pcm_f16le # trivial
|
||||||
|
pcm_f24le # trivial
|
||||||
pcm_f32be # trivial
|
pcm_f32be # trivial
|
||||||
pcm_f32le # trivial
|
pcm_f32le # trivial
|
||||||
pcm_f64be # trivial
|
pcm_f64be # trivial
|
||||||
pcm_f64le # trivial
|
pcm_f64le # trivial
|
||||||
|
pcm_lxf # trivial
|
||||||
pcm_mulaw # trivial
|
pcm_mulaw # trivial
|
||||||
pcm_s16be # trivial
|
pcm_s16be # trivial
|
||||||
pcm_s16be_planar # trivial
|
pcm_s16be_planar # trivial
|
||||||
pcm_s16le # trivial
|
pcm_s16le # trivial
|
||||||
pcm_s16le_planar # trivial
|
pcm_s16le_planar # trivial
|
||||||
pcm_s24be # trivial
|
pcm_s24be # trivial
|
||||||
|
pcm_s24daud # trivial
|
||||||
pcm_s24le # trivial
|
pcm_s24le # trivial
|
||||||
pcm_s24le_planar # trivial
|
pcm_s24le_planar # trivial
|
||||||
pcm_s32be # trivial
|
pcm_s32be # trivial
|
||||||
pcm_s32le # trivial
|
pcm_s32le # trivial
|
||||||
pcm_s32le_planar # trivial
|
pcm_s32le_planar # trivial
|
||||||
|
pcm_s64be # trivial
|
||||||
|
pcm_s64le # trivial
|
||||||
pcm_s8 # trivial
|
pcm_s8 # trivial
|
||||||
pcm_s8_planar # trivial
|
pcm_s8_planar # trivial
|
||||||
|
pcm_sga # trivial
|
||||||
pcm_u16be # trivial
|
pcm_u16be # trivial
|
||||||
pcm_u16le # trivial
|
pcm_u16le # trivial
|
||||||
pcm_u24be # trivial
|
pcm_u24be # trivial
|
||||||
@ -76,44 +315,157 @@ pcm_u24le # trivial
|
|||||||
pcm_u32be # trivial
|
pcm_u32be # trivial
|
||||||
pcm_u32le # trivial
|
pcm_u32le # trivial
|
||||||
pcm_u8 # trivial
|
pcm_u8 # trivial
|
||||||
|
pcm_vidc # trivial
|
||||||
pcx
|
pcx
|
||||||
|
pfm # trivial
|
||||||
pgm # trivial
|
pgm # trivial
|
||||||
pgmyuv # trivial
|
pgmyuv # trivial
|
||||||
pgssub # mkvtoolnix
|
pgssub # mkvtoolnix
|
||||||
pgx
|
pgx
|
||||||
|
phm # trivial
|
||||||
|
photocd
|
||||||
|
pictor
|
||||||
|
pjs
|
||||||
png # libpng
|
png # libpng
|
||||||
ppm # trivial
|
ppm # trivial
|
||||||
|
prosumer
|
||||||
|
psd
|
||||||
|
ptx
|
||||||
|
qcelp
|
||||||
|
qdm2
|
||||||
|
qdmc
|
||||||
|
qdraw
|
||||||
|
qoi
|
||||||
|
qpeg
|
||||||
|
qtrle
|
||||||
|
r10k
|
||||||
|
r210
|
||||||
|
ra_144
|
||||||
|
ra_288
|
||||||
|
rasc
|
||||||
rawvideo # trivial
|
rawvideo # trivial
|
||||||
|
realtext
|
||||||
|
rka
|
||||||
|
rl2
|
||||||
|
roq
|
||||||
|
roq_dpcm
|
||||||
|
rpza
|
||||||
|
rscc
|
||||||
|
rv10
|
||||||
|
rv20
|
||||||
|
s302m
|
||||||
|
sami
|
||||||
|
sanm
|
||||||
|
sbc
|
||||||
|
screenpresso
|
||||||
|
sdx2_dpcm
|
||||||
sgi # trivial
|
sgi # trivial
|
||||||
|
sgirle # trivial
|
||||||
|
shorten
|
||||||
|
simbiosis_imx
|
||||||
|
sipr
|
||||||
|
siren
|
||||||
|
smackaud
|
||||||
|
smacker
|
||||||
|
smc
|
||||||
|
smvjpeg
|
||||||
|
snow
|
||||||
|
sol_dpcm
|
||||||
|
sonic
|
||||||
|
sp5x
|
||||||
|
speedhq
|
||||||
|
speex
|
||||||
|
srgc
|
||||||
srt # trivial
|
srt # trivial
|
||||||
ssa # trivial
|
ssa # trivial
|
||||||
|
stl
|
||||||
|
subrip
|
||||||
|
subviewer
|
||||||
|
subviewer1
|
||||||
sunrast # trivial
|
sunrast # trivial
|
||||||
|
svq1
|
||||||
|
svq3
|
||||||
|
tak
|
||||||
targa # trivial
|
targa # trivial
|
||||||
|
targa_y216
|
||||||
|
tdsc
|
||||||
text # trivial
|
text # trivial
|
||||||
theora # libtheora
|
theora # libtheora
|
||||||
|
thp
|
||||||
|
tiertexseqvideo
|
||||||
tiff # libtiff
|
tiff # libtiff
|
||||||
|
tmv
|
||||||
|
truehd
|
||||||
|
truemotion1
|
||||||
|
truemotion2
|
||||||
|
truemotion2rt
|
||||||
|
truespeech
|
||||||
|
tscc
|
||||||
|
tscc2
|
||||||
|
tta
|
||||||
|
twinvq
|
||||||
|
txd
|
||||||
|
ulti
|
||||||
|
utvideo
|
||||||
v210 # trivial
|
v210 # trivial
|
||||||
v210x # trivial
|
v210x # trivial
|
||||||
v308 # trivial
|
v308 # trivial
|
||||||
v408 # trivial
|
v408 # trivial
|
||||||
v410 # trivial
|
v410 # trivial
|
||||||
|
vb
|
||||||
|
vble
|
||||||
|
vcr1
|
||||||
|
vmdaudio
|
||||||
|
vmdvideo
|
||||||
|
vmnc
|
||||||
|
vnull
|
||||||
vorbis # libvorbis
|
vorbis # libvorbis
|
||||||
vp3 # libav
|
vp3 # libav
|
||||||
|
vp4 # libav
|
||||||
vp5 # libav
|
vp5 # libav
|
||||||
vp6 # libav
|
vp6 # libav
|
||||||
vp6a # libav
|
vp6a # libav
|
||||||
vp6f # libav
|
vp6f # libav
|
||||||
|
vp7 # libav
|
||||||
vp8 # libvpx
|
vp8 # libvpx
|
||||||
vp8_qsv # libvpx
|
vp8_qsv # libvpx
|
||||||
vp8_v4l2m2m # libvpx
|
vp8_v4l2m2m # libvpx
|
||||||
vp9 # libvpx
|
vp9 # libvpx
|
||||||
vp9_qsv # libvpx
|
vp9_qsv # libvpx
|
||||||
vp9_v4l2m2m # libvpx
|
vp9_v4l2m2m # libvpx
|
||||||
|
vplayer
|
||||||
|
vqa
|
||||||
|
vqc
|
||||||
|
wady_dpcm
|
||||||
|
wavarc
|
||||||
|
wavpack
|
||||||
|
wbmp
|
||||||
|
wcmv
|
||||||
webp # libwebp
|
webp # libwebp
|
||||||
webvtt # trivial
|
webvtt # trivial
|
||||||
|
wmav1
|
||||||
|
wmav2
|
||||||
|
wmavoice
|
||||||
|
wmv1
|
||||||
|
wmv2
|
||||||
|
wnv1
|
||||||
wrapped_avframe # passthrough
|
wrapped_avframe # passthrough
|
||||||
|
ws_snd1
|
||||||
|
xan_dpcm
|
||||||
|
xan_wc3
|
||||||
|
xan_wc4
|
||||||
|
xbin
|
||||||
xbm # trivial
|
xbm # trivial
|
||||||
|
xface
|
||||||
|
xl
|
||||||
|
xpm
|
||||||
|
xsub
|
||||||
xwd # xwd
|
xwd # xwd
|
||||||
y41p # trivial
|
y41p # trivial
|
||||||
|
ylc
|
||||||
|
yop
|
||||||
yuv4 # trivial
|
yuv4 # trivial
|
||||||
|
zero12v
|
||||||
|
zerocodec
|
||||||
zlib # zlib
|
zlib # zlib
|
||||||
|
zmbv # dosbox
|
||||||
|
@ -1,20 +1,68 @@
|
|||||||
## module name # reason for enablement in ffmpeg (usually there is another package that already got legal review)
|
## module name # reason for enablement in ffmpeg (usually there is another package that already got legal review)
|
||||||
|
a64multi
|
||||||
|
a64multi5
|
||||||
|
aac
|
||||||
libfdk_aac # fdk-aac-free
|
libfdk_aac # fdk-aac-free
|
||||||
ac3
|
ac3
|
||||||
|
adpcm_adx
|
||||||
|
adpcm_argo
|
||||||
|
adpcm_g722
|
||||||
|
adpcm_g726
|
||||||
|
adpcm_g726le
|
||||||
|
adpcm_ima_alp
|
||||||
|
adpcm_ima_amv
|
||||||
|
adpcm_ima_apm
|
||||||
|
adpcm_ima_qt
|
||||||
|
adpcm_ima_ssi
|
||||||
|
adpcm_ima_wav
|
||||||
|
adpcm_ima_ws
|
||||||
|
adpcm_ms
|
||||||
|
adpcm_swf
|
||||||
|
adpcm_yamaha
|
||||||
|
alac
|
||||||
|
alias_pix
|
||||||
|
amv
|
||||||
|
anull
|
||||||
apng # libpng
|
apng # libpng
|
||||||
ass # trivial
|
ass # trivial
|
||||||
|
asv1
|
||||||
|
asv2
|
||||||
|
av1_amf
|
||||||
|
av1_nvenc
|
||||||
|
av1_qsv
|
||||||
|
av1_vaapi
|
||||||
ayuv # trival
|
ayuv # trival
|
||||||
|
bitpacked # trivial
|
||||||
bmp # trivial
|
bmp # trivial
|
||||||
|
cinepak
|
||||||
|
cljr
|
||||||
|
dca
|
||||||
|
dfpwm
|
||||||
|
dnxhd
|
||||||
|
dpx
|
||||||
|
dvbsub
|
||||||
|
dvdsub
|
||||||
|
dvvideo
|
||||||
|
exr
|
||||||
ffv1
|
ffv1
|
||||||
ffvhuff # trivial+zlib
|
ffvhuff # trivial+zlib
|
||||||
flac # libFLAC
|
flac # libFLAC
|
||||||
|
flashsv
|
||||||
|
flashsv2
|
||||||
|
flv
|
||||||
|
g723_1
|
||||||
gif # libpng
|
gif # libpng
|
||||||
|
h261
|
||||||
|
h263
|
||||||
h263_v4l2m2m # hardware
|
h263_v4l2m2m # hardware
|
||||||
|
h263p
|
||||||
h264_amf # hardware
|
h264_amf # hardware
|
||||||
h264_nvenc # hardware
|
h264_nvenc # hardware
|
||||||
h264_qsv # hardware
|
h264_qsv # hardware
|
||||||
h264_v4l2m2m # hardware
|
h264_v4l2m2m # hardware
|
||||||
h264_vaapi # hardware
|
h264_vaapi # hardware
|
||||||
|
hap
|
||||||
|
hdr
|
||||||
hevc_amf # hardware
|
hevc_amf # hardware
|
||||||
hevc_nvenc # hardware
|
hevc_nvenc # hardware
|
||||||
hevc_qsv # hardware
|
hevc_qsv # hardware
|
||||||
@ -28,9 +76,11 @@ libaom # libaom
|
|||||||
libaom_av1 # libaom
|
libaom_av1 # libaom
|
||||||
libcodec2 # codec2
|
libcodec2 # codec2
|
||||||
libgsm # libgsm
|
libgsm # libgsm
|
||||||
|
libgsm_ms # libgsm
|
||||||
libilbc # ilbc
|
libilbc # ilbc
|
||||||
libjxl # libjxl
|
libjxl # libjxl
|
||||||
libmp3lame # lame
|
libmp3lame # lame
|
||||||
|
libopencore_amrnb
|
||||||
libopenh264 # openh264_dlopen
|
libopenh264 # openh264_dlopen
|
||||||
libopenjpeg # openjpeg
|
libopenjpeg # openjpeg
|
||||||
libopus # opus
|
libopus # opus
|
||||||
@ -40,21 +90,29 @@ libspeex # speex
|
|||||||
libsvtav1
|
libsvtav1
|
||||||
libtheora # libtheora
|
libtheora # libtheora
|
||||||
libtwolame # twolame
|
libtwolame # twolame
|
||||||
|
libvo_amrwbenc
|
||||||
libvorbis # libvorbis
|
libvorbis # libvorbis
|
||||||
libvpx_vp8 # libvpx
|
libvpx_vp8 # libvpx
|
||||||
libvpx_vp9 # libvpx
|
libvpx_vp9 # libvpx
|
||||||
libwebp # libwebp
|
libwebp # libwebp
|
||||||
libwebp_anim # libwebp
|
libwebp_anim # libwebp
|
||||||
|
libxvid # xvidcore
|
||||||
mjpeg # mjpegtools
|
mjpeg # mjpegtools
|
||||||
mjpeg_qsv # mjpegtools
|
mjpeg_qsv # mjpegtools
|
||||||
mjpeg_vaapi # mjpegtools
|
mjpeg_vaapi # mjpegtools
|
||||||
|
mlp
|
||||||
mp2 # twolame
|
mp2 # twolame
|
||||||
mp2fixed # twolame
|
mp2fixed # twolame
|
||||||
mpeg1video
|
mpeg1video
|
||||||
mpeg2video
|
mpeg2video
|
||||||
mpeg2_qsv
|
mpeg2_qsv
|
||||||
mpeg2_vaapi
|
mpeg2_vaapi
|
||||||
|
mpeg4
|
||||||
mpeg4_v4l2m2m # hardware
|
mpeg4_v4l2m2m # hardware
|
||||||
|
msmpeg4v2
|
||||||
|
msmpeg4v3
|
||||||
|
msvideo1
|
||||||
|
nellymoser
|
||||||
opus # opus
|
opus # opus
|
||||||
pam
|
pam
|
||||||
pbm # trivial
|
pbm # trivial
|
||||||
@ -86,32 +144,67 @@ pcm_u8 # trivial
|
|||||||
pcx
|
pcx
|
||||||
pgm # trivial
|
pgm # trivial
|
||||||
pgmyuv # trivial
|
pgmyuv # trivial
|
||||||
|
phm # trivial
|
||||||
png # libpng
|
png # libpng
|
||||||
ppm # trivial
|
ppm # trivial
|
||||||
|
qoi
|
||||||
|
qtrle
|
||||||
|
r10k # trivial
|
||||||
|
r210 # trivial
|
||||||
|
ra_144
|
||||||
rawvideo # trivial
|
rawvideo # trivial
|
||||||
|
roq
|
||||||
|
roq_dpcm
|
||||||
|
rpza
|
||||||
|
rv10
|
||||||
|
rv20
|
||||||
|
s302m
|
||||||
|
sbc
|
||||||
sgi # trivial
|
sgi # trivial
|
||||||
|
smc
|
||||||
|
snow
|
||||||
|
sonic
|
||||||
|
sonic_ls
|
||||||
|
speedhq
|
||||||
srt # trivial
|
srt # trivial
|
||||||
ssa # trivial
|
ssa # trivial
|
||||||
|
subrip # trivial
|
||||||
sunrast # trivial
|
sunrast # trivial
|
||||||
|
svq1
|
||||||
targa # trivial
|
targa # trivial
|
||||||
text # trivial
|
text # trivial
|
||||||
tiff # libtiff
|
tiff # libtiff
|
||||||
|
truehd
|
||||||
|
tta
|
||||||
|
ttml
|
||||||
|
utvideo
|
||||||
v210 # trivial
|
v210 # trivial
|
||||||
v308 # trivial
|
v308 # trivial
|
||||||
v408 # trivial
|
v408 # trivial
|
||||||
v410 # trivial
|
v410 # trivial
|
||||||
vc1_qsv # hardware
|
vc1_qsv # hardware
|
||||||
vc1_v4l2m2m # hardware
|
vc1_v4l2m2m # hardware
|
||||||
|
vc2 # dirac
|
||||||
|
vnull
|
||||||
vorbis # libvorbis
|
vorbis # libvorbis
|
||||||
vp8_qsv # libvpx
|
vp8_qsv # libvpx
|
||||||
vp8_v4l2m2m # libvpx
|
vp8_v4l2m2m # libvpx
|
||||||
vp8_vaapi # libvpx
|
vp8_vaapi # libvpx
|
||||||
vp9_qsv # libvpx
|
vp9_qsv # libvpx
|
||||||
vp9_vaapi # libvpx
|
vp9_vaapi # libvpx
|
||||||
|
wavpack
|
||||||
|
wbmp
|
||||||
webvtt # trivial
|
webvtt # trivial
|
||||||
|
wmav1
|
||||||
|
wmav2
|
||||||
|
wmv1
|
||||||
|
wmv2
|
||||||
wrapped_avframe # passthrough
|
wrapped_avframe # passthrough
|
||||||
xbm # (X11)
|
xbm # (X11)
|
||||||
|
xface
|
||||||
|
xsub
|
||||||
xwd # xwd
|
xwd # xwd
|
||||||
y41p # trivial
|
y41p # trivial
|
||||||
yuv4 # trivial
|
yuv4 # trivial
|
||||||
zlib # zlib
|
zlib # zlib
|
||||||
|
zmbv # dosbox
|
||||||
|
54
ffmpeg-CVE-2023-49528.patch
Normal file
54
ffmpeg-CVE-2023-49528.patch
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
From 2d9ed64859c9887d0504cd71dbd5b2c15e14251a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Paul B Mahol <onemda@gmail.com>
|
||||||
|
Date: Sat, 25 Nov 2023 12:54:28 +0100
|
||||||
|
Subject: [PATCH] avfilter/af_dialoguenhance: fix overreads
|
||||||
|
|
||||||
|
---
|
||||||
|
libavfilter/af_dialoguenhance.c | 17 +++++++++--------
|
||||||
|
1 file changed, 9 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libavfilter/af_dialoguenhance.c b/libavfilter/af_dialoguenhance.c
|
||||||
|
index 1762ea7cde..29c8ab10a7 100644
|
||||||
|
--- a/libavfilter/af_dialoguenhance.c
|
||||||
|
+++ b/libavfilter/af_dialoguenhance.c
|
||||||
|
@@ -96,12 +96,12 @@ static int config_input(AVFilterLink *inlink)
|
||||||
|
if (!s->window)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
- s->in_frame = ff_get_audio_buffer(inlink, s->fft_size * 4);
|
||||||
|
- s->center_frame = ff_get_audio_buffer(inlink, s->fft_size * 4);
|
||||||
|
- s->out_dist_frame = ff_get_audio_buffer(inlink, s->fft_size * 4);
|
||||||
|
- s->windowed_frame = ff_get_audio_buffer(inlink, s->fft_size * 4);
|
||||||
|
- s->windowed_out = ff_get_audio_buffer(inlink, s->fft_size * 4);
|
||||||
|
- s->windowed_prev = ff_get_audio_buffer(inlink, s->fft_size * 4);
|
||||||
|
+ s->in_frame = ff_get_audio_buffer(inlink, (s->fft_size + 2) * 2);
|
||||||
|
+ s->center_frame = ff_get_audio_buffer(inlink, (s->fft_size + 2) * 2);
|
||||||
|
+ s->out_dist_frame = ff_get_audio_buffer(inlink, (s->fft_size + 2) * 2);
|
||||||
|
+ s->windowed_frame = ff_get_audio_buffer(inlink, (s->fft_size + 2) * 2);
|
||||||
|
+ s->windowed_out = ff_get_audio_buffer(inlink, (s->fft_size + 2) * 2);
|
||||||
|
+ s->windowed_prev = ff_get_audio_buffer(inlink, (s->fft_size + 2) * 2);
|
||||||
|
if (!s->in_frame || !s->windowed_out || !s->windowed_prev ||
|
||||||
|
!s->out_dist_frame || !s->windowed_frame || !s->center_frame)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
@@ -250,6 +250,7 @@ static int de_stereo(AVFilterContext *ctx, AVFrame *out)
|
||||||
|
float *right_osamples = (float *)out->extended_data[1];
|
||||||
|
float *center_osamples = (float *)out->extended_data[2];
|
||||||
|
const int offset = s->fft_size - s->overlap;
|
||||||
|
+ const int nb_samples = FFMIN(s->overlap, s->in->nb_samples);
|
||||||
|
float vad;
|
||||||
|
|
||||||
|
// shift in/out buffers
|
||||||
|
@@ -258,8 +259,8 @@ static int de_stereo(AVFilterContext *ctx, AVFrame *out)
|
||||||
|
memmove(left_out, &left_out[s->overlap], offset * sizeof(float));
|
||||||
|
memmove(right_out, &right_out[s->overlap], offset * sizeof(float));
|
||||||
|
|
||||||
|
- memcpy(&left_in[offset], left_samples, s->overlap * sizeof(float));
|
||||||
|
- memcpy(&right_in[offset], right_samples, s->overlap * sizeof(float));
|
||||||
|
+ memcpy(&left_in[offset], left_samples, nb_samples * sizeof(float));
|
||||||
|
+ memcpy(&right_in[offset], right_samples, nb_samples * sizeof(float));
|
||||||
|
memset(&left_out[offset], 0, s->overlap * sizeof(float));
|
||||||
|
memset(&right_out[offset], 0, s->overlap * sizeof(float));
|
||||||
|
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
@ -1,3 +1,5 @@
|
|||||||
|
From: Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
fdk-aac-free-devel is GPL compatible
|
fdk-aac-free-devel is GPL compatible
|
||||||
|
|
||||||
See https://bugzilla.redhat.com/show_bug.cgi?id=1501522#c112
|
See https://bugzilla.redhat.com/show_bug.cgi?id=1501522#c112
|
||||||
|
67
ffmpeg-c99.patch
Normal file
67
ffmpeg-c99.patch
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
From 42982b5a5d461530a792e69b3e8abdd9d6d67052 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Frank Plowman <post@frankplowman.com>
|
||||||
|
Date: Fri, 22 Dec 2023 12:00:01 +0000
|
||||||
|
Subject: [PATCH] avformat/ffrtmpcrypt: Fix int-conversion warning
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
Content-type: text/plain
|
||||||
|
|
||||||
|
The gcrypt definition of `bn_new` used to use the return statement
|
||||||
|
on errors, with an AVERROR return value, regardless of the signature
|
||||||
|
of the function where the macro is used - it is called in
|
||||||
|
`dh_generate_key` and `ff_dh_init` which return pointers. As a result,
|
||||||
|
compiling with gcrypt and the ffrtmpcrypt protocol resulted in an
|
||||||
|
int-conversion warning. GCC 14 may upgrade these to errors [1].
|
||||||
|
|
||||||
|
This patch fixes the problem by changing the macro to remove `AVERROR`
|
||||||
|
and instead set `bn` to null if the allocation fails. This is the
|
||||||
|
behaviour of all the other `bn_new` implementations and so the result is
|
||||||
|
already checked at all the callsites. AFAICT, this should be the only
|
||||||
|
change needed to get ffmpeg off Fedora's naughty list of projects with
|
||||||
|
warnings which may be upgraded to errors in GCC 14 [2].
|
||||||
|
|
||||||
|
[1]: https://gcc.gnu.org/pipermail/gcc/2023-May/241264.html
|
||||||
|
[2]: https://www.mail-archive.com/devel@lists.fedoraproject.org/msg196024.html
|
||||||
|
|
||||||
|
Signed-off-by: Frank Plowman <post@frankplowman.com>
|
||||||
|
Signed-off-by: Martin Storsjö <martin@martin.st>
|
||||||
|
---
|
||||||
|
libavformat/rtmpdh.c | 21 ++++++++++++---------
|
||||||
|
1 file changed, 12 insertions(+), 9 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libavformat/rtmpdh.c b/libavformat/rtmpdh.c
|
||||||
|
index 5ddae537a1..6a6c2ccd87 100644
|
||||||
|
--- a/libavformat/rtmpdh.c
|
||||||
|
+++ b/libavformat/rtmpdh.c
|
||||||
|
@@ -113,15 +113,18 @@ static int bn_modexp(FFBigNum bn, FFBigNum y, FFBigNum q, FFBigNum p)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#elif CONFIG_GCRYPT
|
||||||
|
-#define bn_new(bn) \
|
||||||
|
- do { \
|
||||||
|
- if (!gcry_control(GCRYCTL_INITIALIZATION_FINISHED_P)) { \
|
||||||
|
- if (!gcry_check_version("1.5.4")) \
|
||||||
|
- return AVERROR(EINVAL); \
|
||||||
|
- gcry_control(GCRYCTL_DISABLE_SECMEM, 0); \
|
||||||
|
- gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0); \
|
||||||
|
- } \
|
||||||
|
- bn = gcry_mpi_new(1); \
|
||||||
|
+#define bn_new(bn) \
|
||||||
|
+ do { \
|
||||||
|
+ if (!gcry_control(GCRYCTL_INITIALIZATION_FINISHED_P)) { \
|
||||||
|
+ if (gcry_check_version("1.5.4")) { \
|
||||||
|
+ gcry_control(GCRYCTL_DISABLE_SECMEM, 0); \
|
||||||
|
+ gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0); \
|
||||||
|
+ } \
|
||||||
|
+ } \
|
||||||
|
+ if (gcry_control(GCRYCTL_INITIALIZATION_FINISHED_P)) \
|
||||||
|
+ bn = gcry_mpi_new(1); \
|
||||||
|
+ else \
|
||||||
|
+ bn = NULL; \
|
||||||
|
} while (0)
|
||||||
|
#define bn_free(bn) gcry_mpi_release(bn)
|
||||||
|
#define bn_set_word(bn, w) gcry_mpi_set_ui(bn, w)
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
46
ffmpeg-chromium.patch
Normal file
46
ffmpeg-chromium.patch
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
From d32aacab65a322b66d6a1b48f6cdb03e42bde0f9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Frank Liberato <liberato@chromium.org>
|
||||||
|
Date: Wed, 7 Jul 2021 19:01:22 -0700
|
||||||
|
Subject: [PATCH] Add av_stream_get_first_dts for Chromium
|
||||||
|
|
||||||
|
---
|
||||||
|
libavformat/avformat.h | 4 ++++
|
||||||
|
libavformat/utils.c | 7 +++++++
|
||||||
|
2 files changed, 11 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
|
||||||
|
index 1916aa2dc5..e6682849fa 100644
|
||||||
|
--- a/libavformat/avformat.h
|
||||||
|
+++ b/libavformat/avformat.h
|
||||||
|
@@ -1019,6 +1019,10 @@ attribute_deprecated
|
||||||
|
int64_t av_stream_get_end_pts(const AVStream *st);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+// Chromium: We use the internal field first_dts vvv
|
||||||
|
+int64_t av_stream_get_first_dts(const AVStream *st);
|
||||||
|
+// Chromium: We use the internal field first_dts ^^^
|
||||||
|
+
|
||||||
|
#define AV_PROGRAM_RUNNING 1
|
||||||
|
|
||||||
|
/**
|
||||||
|
diff --git a/libavformat/utils.c b/libavformat/utils.c
|
||||||
|
index cf4d68bff9..7d750abf88 100644
|
||||||
|
--- a/libavformat/utils.c
|
||||||
|
+++ b/libavformat/utils.c
|
||||||
|
@@ -55,6 +55,13 @@ int ff_unlock_avformat(void)
|
||||||
|
return ff_mutex_unlock(&avformat_mutex) ? -1 : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+// Chromium: We use the internal field first_dts vvv
|
||||||
|
+int64_t av_stream_get_first_dts(const AVStream *st)
|
||||||
|
+{
|
||||||
|
+ return cffstream(st)->first_dts;
|
||||||
|
+}
|
||||||
|
+// Chromium: We use the internal field first_dts ^^^
|
||||||
|
+
|
||||||
|
/* an arbitrarily chosen "sane" max packet size -- 50M */
|
||||||
|
#define SANE_CHUNK_SIZE (50000000)
|
||||||
|
|
||||||
|
--
|
||||||
|
2.41.0
|
||||||
|
|
@ -8,14 +8,14 @@ without any further arguments can produce a result even on a
|
|||||||
reduced codec selection list.
|
reduced codec selection list.
|
||||||
|
|
||||||
---
|
---
|
||||||
libavformat/matroskaenc.c | 19 +++++++++++++------
|
libavformat/matroskaenc.c | 20 ++++++++++++++------
|
||||||
1 file changed, 13 insertions(+), 6 deletions(-)
|
1 file changed, 14 insertions(+), 6 deletions(-)
|
||||||
|
|
||||||
Index: ffmpeg-5.0/libavformat/matroskaenc.c
|
Index: ffmpeg-6.0/libavformat/matroskaenc.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- ffmpeg-5.0.orig/libavformat/matroskaenc.c 2022-01-14 19:45:40.000000000 +0100
|
--- ffmpeg-6.0.orig/libavformat/matroskaenc.c
|
||||||
+++ ffmpeg-5.0/libavformat/matroskaenc.c 2022-02-04 08:29:14.582130919 +0100
|
+++ ffmpeg-6.0/libavformat/matroskaenc.c
|
||||||
@@ -2887,16 +2887,24 @@ static int mkv_query_codec(enum AVCodecI
|
@@ -3321,16 +3321,25 @@ static int mkv_query_codec(enum AVCodecI
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,18 +24,19 @@ Index: ffmpeg-5.0/libavformat/matroskaenc.c
|
|||||||
+ CONFIG_AAC_ENCODER ? AV_CODEC_ID_AAC : \
|
+ CONFIG_AAC_ENCODER ? AV_CODEC_ID_AAC : \
|
||||||
+ CONFIG_VORBIS_ENCODER ? AV_CODEC_ID_VORBIS : \
|
+ CONFIG_VORBIS_ENCODER ? AV_CODEC_ID_VORBIS : \
|
||||||
+ AV_CODEC_ID_AC3
|
+ AV_CODEC_ID_AC3
|
||||||
const AVOutputFormat ff_matroska_muxer = {
|
+
|
||||||
.name = "matroska",
|
const FFOutputFormat ff_matroska_muxer = {
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("Matroska"),
|
.p.name = "matroska",
|
||||||
.mime_type = "video/x-matroska",
|
.p.long_name = NULL_IF_CONFIG_SMALL("Matroska"),
|
||||||
.extensions = "mkv",
|
.p.mime_type = "video/x-matroska",
|
||||||
|
.p.extensions = "mkv",
|
||||||
.priv_data_size = sizeof(MatroskaMuxContext),
|
.priv_data_size = sizeof(MatroskaMuxContext),
|
||||||
- .audio_codec = CONFIG_LIBVORBIS_ENCODER ?
|
- .p.audio_codec = CONFIG_LIBVORBIS_ENCODER ?
|
||||||
- AV_CODEC_ID_VORBIS : AV_CODEC_ID_AC3,
|
- AV_CODEC_ID_VORBIS : AV_CODEC_ID_AC3,
|
||||||
- .video_codec = CONFIG_LIBX264_ENCODER ?
|
- .p.video_codec = CONFIG_LIBX264_ENCODER ?
|
||||||
- AV_CODEC_ID_H264 : AV_CODEC_ID_MPEG4,
|
- AV_CODEC_ID_H264 : AV_CODEC_ID_MPEG4,
|
||||||
+ .audio_codec = PREFAUDIO,
|
+ .p.audio_codec = PREFAUDIO,
|
||||||
+ .video_codec =
|
+ .p.video_codec =
|
||||||
+ CONFIG_LIBVPX_VP9_ENCODER ? AV_CODEC_ID_VP9 : \
|
+ CONFIG_LIBVPX_VP9_ENCODER ? AV_CODEC_ID_VP9 : \
|
||||||
+ CONFIG_LIBX264_ENCODER ? AV_CODEC_ID_H264 : \
|
+ CONFIG_LIBX264_ENCODER ? AV_CODEC_ID_H264 : \
|
||||||
+ CONFIG_LIBVPX_VP8_ENCODER ? AV_CODEC_ID_VP8 : \
|
+ CONFIG_LIBVPX_VP8_ENCODER ? AV_CODEC_ID_VP8 : \
|
||||||
@ -44,13 +45,13 @@ Index: ffmpeg-5.0/libavformat/matroskaenc.c
|
|||||||
.init = mkv_init,
|
.init = mkv_init,
|
||||||
.deinit = mkv_deinit,
|
.deinit = mkv_deinit,
|
||||||
.write_header = mkv_write_header,
|
.write_header = mkv_write_header,
|
||||||
@@ -2954,8 +2962,7 @@ const AVOutputFormat ff_matroska_audio_m
|
@@ -3388,8 +3397,7 @@ const FFOutputFormat ff_matroska_audio_m
|
||||||
.mime_type = "audio/x-matroska",
|
.p.mime_type = "audio/x-matroska",
|
||||||
.extensions = "mka",
|
.p.extensions = "mka",
|
||||||
.priv_data_size = sizeof(MatroskaMuxContext),
|
.priv_data_size = sizeof(MatroskaMuxContext),
|
||||||
- .audio_codec = CONFIG_LIBVORBIS_ENCODER ?
|
- .p.audio_codec = CONFIG_LIBVORBIS_ENCODER ?
|
||||||
- AV_CODEC_ID_VORBIS : AV_CODEC_ID_AC3,
|
- AV_CODEC_ID_VORBIS : AV_CODEC_ID_AC3,
|
||||||
+ .audio_codec = PREFAUDIO,
|
+ .p.audio_codec = PREFAUDIO,
|
||||||
.video_codec = AV_CODEC_ID_NONE,
|
.p.video_codec = AV_CODEC_ID_NONE,
|
||||||
.init = mkv_init,
|
.init = mkv_init,
|
||||||
.deinit = mkv_deinit,
|
.deinit = mkv_deinit,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
From 4739b0c97b3378bdaf737171777fe9a71a53eff1 Mon Sep 17 00:00:00 2001
|
From 3daa49cae0bfc3de434dd28c3a23ae877f0639db Mon Sep 17 00:00:00 2001
|
||||||
From: Neal Gompa <ngompa@fedoraproject.org>
|
From: Neal Gompa <ngompa@fedoraproject.org>
|
||||||
Date: Wed, 12 Oct 2022 09:41:27 -0400
|
Date: Thu, 4 Jan 2024 10:21:17 -0500
|
||||||
Subject: [PATCH] avcodec/openh264: Add the ability to dlopen() OpenH264
|
Subject: [PATCH] lavc/openh264: Add the ability to dlopen() OpenH264
|
||||||
|
|
||||||
We can't directly depend on OpenH264, but we can weakly link to it
|
We can't directly depend on OpenH264, but we can weakly link to it
|
||||||
and gracefully expose the capability.
|
and gracefully expose the capability.
|
||||||
@ -14,20 +14,20 @@ Signed-off-by: Neal Gompa <ngompa@fedoraproject.org>
|
|||||||
---
|
---
|
||||||
configure | 3 +
|
configure | 3 +
|
||||||
libavcodec/Makefile | 1 +
|
libavcodec/Makefile | 1 +
|
||||||
libavcodec/libopenh264.c | 18 +++-
|
libavcodec/libopenh264.c | 5 ++
|
||||||
libavcodec/libopenh264_dlopen.c | 147 ++++++++++++++++++++++++++++++++
|
libavcodec/libopenh264_dlopen.c | 147 ++++++++++++++++++++++++++++++++
|
||||||
libavcodec/libopenh264_dlopen.h | 58 +++++++++++++
|
libavcodec/libopenh264_dlopen.h | 58 +++++++++++++
|
||||||
libavcodec/libopenh264dec.c | 10 +++
|
libavcodec/libopenh264dec.c | 10 +++
|
||||||
libavcodec/libopenh264enc.c | 10 +++
|
libavcodec/libopenh264enc.c | 10 +++
|
||||||
7 files changed, 245 insertions(+), 2 deletions(-)
|
7 files changed, 234 insertions(+)
|
||||||
create mode 100644 libavcodec/libopenh264_dlopen.c
|
create mode 100644 libavcodec/libopenh264_dlopen.c
|
||||||
create mode 100644 libavcodec/libopenh264_dlopen.h
|
create mode 100644 libavcodec/libopenh264_dlopen.h
|
||||||
|
|
||||||
diff --git a/configure b/configure
|
diff --git a/configure b/configure
|
||||||
index ba5793b2ff..8855c1a908 100755
|
index 1f0b9497cb..97fa4a5d6a 100755
|
||||||
--- a/configure
|
--- a/configure
|
||||||
+++ b/configure
|
+++ b/configure
|
||||||
@@ -251,6 +251,7 @@ External library support:
|
@@ -249,6 +249,7 @@ External library support:
|
||||||
--enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]
|
--enable-libopencore-amrwb enable AMR-WB decoding via libopencore-amrwb [no]
|
||||||
--enable-libopencv enable video filtering via libopencv [no]
|
--enable-libopencv enable video filtering via libopencv [no]
|
||||||
--enable-libopenh264 enable H.264 encoding via OpenH264 [no]
|
--enable-libopenh264 enable H.264 encoding via OpenH264 [no]
|
||||||
@ -35,7 +35,7 @@ index ba5793b2ff..8855c1a908 100755
|
|||||||
--enable-libopenjpeg enable JPEG 2000 de/encoding via OpenJPEG [no]
|
--enable-libopenjpeg enable JPEG 2000 de/encoding via OpenJPEG [no]
|
||||||
--enable-libopenmpt enable decoding tracked files via libopenmpt [no]
|
--enable-libopenmpt enable decoding tracked files via libopenmpt [no]
|
||||||
--enable-libopenvino enable OpenVINO as a DNN module backend
|
--enable-libopenvino enable OpenVINO as a DNN module backend
|
||||||
@@ -1844,6 +1845,7 @@ EXTERNAL_LIBRARY_LIST="
|
@@ -1871,6 +1872,7 @@ EXTERNAL_LIBRARY_LIST="
|
||||||
libmysofa
|
libmysofa
|
||||||
libopencv
|
libopencv
|
||||||
libopenh264
|
libopenh264
|
||||||
@ -43,7 +43,7 @@ index ba5793b2ff..8855c1a908 100755
|
|||||||
libopenjpeg
|
libopenjpeg
|
||||||
libopenmpt
|
libopenmpt
|
||||||
libopenvino
|
libopenvino
|
||||||
@@ -6596,6 +6598,7 @@ enabled libopencv && { check_headers opencv2/core/core_c.h &&
|
@@ -6765,6 +6767,7 @@ enabled libopencv && { check_headers opencv2/core/core_c.h &&
|
||||||
require libopencv opencv2/core/core_c.h cvCreateImageHeader -lopencv_core -lopencv_imgproc; } ||
|
require libopencv opencv2/core/core_c.h cvCreateImageHeader -lopencv_core -lopencv_imgproc; } ||
|
||||||
require_pkg_config libopencv opencv opencv/cxcore.h cvCreateImageHeader; }
|
require_pkg_config libopencv opencv opencv/cxcore.h cvCreateImageHeader; }
|
||||||
enabled libopenh264 && require_pkg_config libopenh264 openh264 wels/codec_api.h WelsGetCodecVersion
|
enabled libopenh264 && require_pkg_config libopenh264 openh264 wels/codec_api.h WelsGetCodecVersion
|
||||||
@ -52,19 +52,19 @@ index ba5793b2ff..8855c1a908 100755
|
|||||||
{ require_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version -DOPJ_STATIC && add_cppflags -DOPJ_STATIC; } }
|
{ require_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version -DOPJ_STATIC && add_cppflags -DOPJ_STATIC; } }
|
||||||
enabled libopenmpt && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create -lstdc++ && append libopenmpt_extralibs "-lstdc++"
|
enabled libopenmpt && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create -lstdc++ && append libopenmpt_extralibs "-lstdc++"
|
||||||
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
|
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
|
||||||
index 457ec58377..08a26fba5f 100644
|
index 580a8d6b54..c27d229f6d 100644
|
||||||
--- a/libavcodec/Makefile
|
--- a/libavcodec/Makefile
|
||||||
+++ b/libavcodec/Makefile
|
+++ b/libavcodec/Makefile
|
||||||
@@ -1075,6 +1075,7 @@ OBJS-$(CONFIG_LIBMP3LAME_ENCODER) += libmp3lame.o
|
@@ -1115,6 +1115,7 @@ OBJS-$(CONFIG_LIBMP3LAME_ENCODER) += libmp3lame.o
|
||||||
OBJS-$(CONFIG_LIBOPENCORE_AMRNB_DECODER) += libopencore-amr.o
|
OBJS-$(CONFIG_LIBOPENCORE_AMRNB_DECODER) += libopencore-amr.o
|
||||||
OBJS-$(CONFIG_LIBOPENCORE_AMRNB_ENCODER) += libopencore-amr.o
|
OBJS-$(CONFIG_LIBOPENCORE_AMRNB_ENCODER) += libopencore-amr.o
|
||||||
OBJS-$(CONFIG_LIBOPENCORE_AMRWB_DECODER) += libopencore-amr.o
|
OBJS-$(CONFIG_LIBOPENCORE_AMRWB_DECODER) += libopencore-amr.o
|
||||||
+OBJS-$(CONFIG_LIBOPENH264_DLOPEN) += libopenh264_dlopen.o
|
+OBJS-$(CONFIG_LIBOPENH264_DLOPEN) += libopenh264_dlopen.o
|
||||||
OBJS-$(CONFIG_LIBOPENH264_DECODER) += libopenh264dec.o libopenh264.o
|
OBJS-$(CONFIG_LIBOPENH264_DECODER) += libopenh264dec.o libopenh264.o
|
||||||
OBJS-$(CONFIG_LIBOPENH264_ENCODER) += libopenh264enc.o libopenh264.o
|
OBJS-$(CONFIG_LIBOPENH264_ENCODER) += libopenh264enc.o libopenh264.o
|
||||||
OBJS-$(CONFIG_LIBOPENJPEG_DECODER) += libopenjpegdec.o
|
OBJS-$(CONFIG_LIBOPENJPEG_ENCODER) += libopenjpegenc.o
|
||||||
diff --git a/libavcodec/libopenh264.c b/libavcodec/libopenh264.c
|
diff --git a/libavcodec/libopenh264.c b/libavcodec/libopenh264.c
|
||||||
index 0f6d28ed88..a124c3fa1e 100644
|
index c80c85ea8b..128c3d9846 100644
|
||||||
--- a/libavcodec/libopenh264.c
|
--- a/libavcodec/libopenh264.c
|
||||||
+++ b/libavcodec/libopenh264.c
|
+++ b/libavcodec/libopenh264.c
|
||||||
@@ -20,8 +20,13 @@
|
@@ -20,8 +20,13 @@
|
||||||
@ -81,26 +81,6 @@ index 0f6d28ed88..a124c3fa1e 100644
|
|||||||
|
|
||||||
#include "libavutil/error.h"
|
#include "libavutil/error.h"
|
||||||
#include "libavutil/log.h"
|
#include "libavutil/log.h"
|
||||||
@@ -52,8 +57,17 @@ int ff_libopenh264_check_version(void *logctx)
|
|
||||||
// Mingw GCC < 4.7 on x86_32 uses an incorrect/buggy ABI for the WelsGetCodecVersion
|
|
||||||
// function (for functions returning larger structs), thus skip the check in those
|
|
||||||
// configurations.
|
|
||||||
-#if !defined(_WIN32) || !defined(__GNUC__) || !ARCH_X86_32 || AV_GCC_VERSION_AT_LEAST(4, 7)
|
|
||||||
- OpenH264Version libver = WelsGetCodecVersion();
|
|
||||||
+ // Also, for dlopened OpenH264, we should not do the version check. It's too punitive.
|
|
||||||
+#if !defined(_WIN32) || !defined(__GNUC__) || !ARCH_X86_32 || AV_GCC_VERSION_AT_LEAST(4, 7) || !defined(CONFIG_LIBOPENH264_DLOPEN)
|
|
||||||
+ OpenH264Version libver;
|
|
||||||
+
|
|
||||||
+#ifdef CONFIG_LIBOPENH264_DLOPEN
|
|
||||||
+ if (loadLibOpenH264(logctx)) {
|
|
||||||
+ return AVERROR_EXTERNAL;
|
|
||||||
+ }
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+ libver = WelsGetCodecVersion();
|
|
||||||
if (memcmp(&libver, &g_stCodecVersion, sizeof(libver))) {
|
|
||||||
av_log(logctx, AV_LOG_ERROR, "Incorrect library version loaded\n");
|
|
||||||
return AVERROR(EINVAL);
|
|
||||||
diff --git a/libavcodec/libopenh264_dlopen.c b/libavcodec/libopenh264_dlopen.c
|
diff --git a/libavcodec/libopenh264_dlopen.c b/libavcodec/libopenh264_dlopen.c
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000..49ea8ff44f
|
index 0000000000..49ea8ff44f
|
||||||
@ -319,7 +299,7 @@ index 0000000000..d7d8bb7cad
|
|||||||
+
|
+
|
||||||
+#endif /* HAVE_LIBOPENH264_DLOPEN_H */
|
+#endif /* HAVE_LIBOPENH264_DLOPEN_H */
|
||||||
diff --git a/libavcodec/libopenh264dec.c b/libavcodec/libopenh264dec.c
|
diff --git a/libavcodec/libopenh264dec.c b/libavcodec/libopenh264dec.c
|
||||||
index 007f86b619..57aa3bc1d1 100644
|
index b6a9bba2dc..e042189161 100644
|
||||||
--- a/libavcodec/libopenh264dec.c
|
--- a/libavcodec/libopenh264dec.c
|
||||||
+++ b/libavcodec/libopenh264dec.c
|
+++ b/libavcodec/libopenh264dec.c
|
||||||
@@ -19,8 +19,12 @@
|
@@ -19,8 +19,12 @@
|
||||||
@ -335,7 +315,7 @@ index 007f86b619..57aa3bc1d1 100644
|
|||||||
|
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "libavutil/fifo.h"
|
#include "libavutil/fifo.h"
|
||||||
@@ -56,6 +60,12 @@ static av_cold int svc_decode_init(AVCodecContext *avctx)
|
@@ -55,6 +59,12 @@ static av_cold int svc_decode_init(AVCodecContext *avctx)
|
||||||
int log_level;
|
int log_level;
|
||||||
WelsTraceCallback callback_function;
|
WelsTraceCallback callback_function;
|
||||||
|
|
||||||
@ -345,11 +325,11 @@ index 007f86b619..57aa3bc1d1 100644
|
|||||||
+ }
|
+ }
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
if ((err = ff_libopenh264_check_version(avctx)) < 0)
|
if (WelsCreateDecoder(&s->decoder)) {
|
||||||
return AVERROR_DECODER_NOT_FOUND;
|
av_log(avctx, AV_LOG_ERROR, "Unable to create decoder\n");
|
||||||
|
return AVERROR_UNKNOWN;
|
||||||
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
|
diff --git a/libavcodec/libopenh264enc.c b/libavcodec/libopenh264enc.c
|
||||||
index db252aace1..75289678da 100644
|
index 6f231d22b2..3f0e990d80 100644
|
||||||
--- a/libavcodec/libopenh264enc.c
|
--- a/libavcodec/libopenh264enc.c
|
||||||
+++ b/libavcodec/libopenh264enc.c
|
+++ b/libavcodec/libopenh264enc.c
|
||||||
@@ -19,8 +19,12 @@
|
@@ -19,8 +19,12 @@
|
||||||
@ -365,7 +345,7 @@ index db252aace1..75289678da 100644
|
|||||||
|
|
||||||
#include "libavutil/attributes.h"
|
#include "libavutil/attributes.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
@@ -137,6 +141,12 @@ static av_cold int svc_encode_init(AVCodecContext *avctx)
|
@@ -114,6 +118,12 @@ static av_cold int svc_encode_init(AVCodecContext *avctx)
|
||||||
WelsTraceCallback callback_function;
|
WelsTraceCallback callback_function;
|
||||||
AVCPBProperties *props;
|
AVCPBProperties *props;
|
||||||
|
|
||||||
@ -375,9 +355,9 @@ index db252aace1..75289678da 100644
|
|||||||
+ }
|
+ }
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
if ((err = ff_libopenh264_check_version(avctx)) < 0)
|
if (WelsCreateSVCEncoder(&s->encoder)) {
|
||||||
return AVERROR_ENCODER_NOT_FOUND;
|
av_log(avctx, AV_LOG_ERROR, "Unable to create encoder\n");
|
||||||
|
return AVERROR_UNKNOWN;
|
||||||
--
|
--
|
||||||
2.36.1
|
2.43.0
|
||||||
|
|
||||||
|
131
ffmpeg-gcc14.patch
Normal file
131
ffmpeg-gcc14.patch
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
From 68ef9a29478fad450ec29ec14120afad3938e75b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sandro Mani <manisandro@gmail.com>
|
||||||
|
Date: Tue, 30 Jan 2024 09:16:13 +0100
|
||||||
|
Subject: [PATCH] Fix -Wint-conversion and -Wincompatible-pointer-types errors
|
||||||
|
|
||||||
|
---
|
||||||
|
libavcodec/pcm-bluray.c | 4 ++--
|
||||||
|
libavcodec/pcm-dvd.c | 2 +-
|
||||||
|
libavcodec/vulkan_av1.c | 2 +-
|
||||||
|
libavcodec/vulkan_decode.c | 6 +++---
|
||||||
|
libavcodec/vulkan_video.c | 2 +-
|
||||||
|
libavfilter/vsrc_testsrc_vulkan.c | 4 ++--
|
||||||
|
libavutil/hwcontext_vaapi.c | 2 +-
|
||||||
|
7 files changed, 11 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libavcodec/pcm-bluray.c b/libavcodec/pcm-bluray.c
|
||||||
|
index f656095..56fa373 100644
|
||||||
|
--- a/libavcodec/pcm-bluray.c
|
||||||
|
+++ b/libavcodec/pcm-bluray.c
|
||||||
|
@@ -167,7 +167,7 @@ static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame,
|
||||||
|
samples *= num_source_channels;
|
||||||
|
if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) {
|
||||||
|
#if HAVE_BIGENDIAN
|
||||||
|
- bytestream2_get_buffer(&gb, dst16, buf_size);
|
||||||
|
+ bytestream2_get_buffer(&gb, (uint8_t*)dst16, buf_size);
|
||||||
|
#else
|
||||||
|
do {
|
||||||
|
*dst16++ = bytestream2_get_be16u(&gb);
|
||||||
|
@@ -187,7 +187,7 @@ static int pcm_bluray_decode_frame(AVCodecContext *avctx, AVFrame *frame,
|
||||||
|
if (AV_SAMPLE_FMT_S16 == avctx->sample_fmt) {
|
||||||
|
do {
|
||||||
|
#if HAVE_BIGENDIAN
|
||||||
|
- bytestream2_get_buffer(&gb, dst16, avctx->ch_layout.nb_channels * 2);
|
||||||
|
+ bytestream2_get_buffer(&gb, (uint8_t*)dst16, avctx->ch_layout.nb_channels * 2);
|
||||||
|
dst16 += avctx->ch_layout.nb_channels;
|
||||||
|
#else
|
||||||
|
channel = avctx->ch_layout.nb_channels;
|
||||||
|
diff --git a/libavcodec/pcm-dvd.c b/libavcodec/pcm-dvd.c
|
||||||
|
index 419b2a1..319746c 100644
|
||||||
|
--- a/libavcodec/pcm-dvd.c
|
||||||
|
+++ b/libavcodec/pcm-dvd.c
|
||||||
|
@@ -157,7 +157,7 @@ static void *pcm_dvd_decode_samples(AVCodecContext *avctx, const uint8_t *src,
|
||||||
|
switch (avctx->bits_per_coded_sample) {
|
||||||
|
case 16: {
|
||||||
|
#if HAVE_BIGENDIAN
|
||||||
|
- bytestream2_get_buffer(&gb, dst16, blocks * s->block_size);
|
||||||
|
+ bytestream2_get_buffer(&gb, (uint8_t*)dst16, blocks * s->block_size);
|
||||||
|
dst16 += blocks * s->block_size / 2;
|
||||||
|
#else
|
||||||
|
int samples = blocks * avctx->ch_layout.nb_channels;
|
||||||
|
diff --git a/libavcodec/vulkan_av1.c b/libavcodec/vulkan_av1.c
|
||||||
|
index 4998bf7..9730e4b 100644
|
||||||
|
--- a/libavcodec/vulkan_av1.c
|
||||||
|
+++ b/libavcodec/vulkan_av1.c
|
||||||
|
@@ -180,7 +180,7 @@ static int vk_av1_create_params(AVCodecContext *avctx, AVBufferRef **buf)
|
||||||
|
.sType = VK_STRUCTURE_TYPE_VIDEO_SESSION_PARAMETERS_CREATE_INFO_KHR,
|
||||||
|
.pNext = &av1_params,
|
||||||
|
.videoSession = ctx->common.session,
|
||||||
|
- .videoSessionParametersTemplate = NULL,
|
||||||
|
+ .videoSessionParametersTemplate = VK_NULL_HANDLE,
|
||||||
|
};
|
||||||
|
|
||||||
|
err = ff_vk_decode_create_params(buf, avctx, ctx, &session_params_create);
|
||||||
|
diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c
|
||||||
|
index a89d84f..fdbcbb4 100644
|
||||||
|
--- a/libavcodec/vulkan_decode.c
|
||||||
|
+++ b/libavcodec/vulkan_decode.c
|
||||||
|
@@ -188,9 +188,9 @@ int ff_vk_decode_prepare_frame(FFVulkanDecodeContext *dec, AVFrame *pic,
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
vkpic->dpb_frame = NULL;
|
||||||
|
- vkpic->img_view_ref = NULL;
|
||||||
|
- vkpic->img_view_out = NULL;
|
||||||
|
- vkpic->img_view_dest = NULL;
|
||||||
|
+ vkpic->img_view_ref = VK_NULL_HANDLE;
|
||||||
|
+ vkpic->img_view_out = VK_NULL_HANDLE;
|
||||||
|
+ vkpic->img_view_dest = VK_NULL_HANDLE;
|
||||||
|
|
||||||
|
vkpic->destroy_image_view = vk->DestroyImageView;
|
||||||
|
vkpic->wait_semaphores = vk->WaitSemaphores;
|
||||||
|
diff --git a/libavcodec/vulkan_video.c b/libavcodec/vulkan_video.c
|
||||||
|
index 236aa12..c5144bd 100644
|
||||||
|
--- a/libavcodec/vulkan_video.c
|
||||||
|
+++ b/libavcodec/vulkan_video.c
|
||||||
|
@@ -287,7 +287,7 @@ av_cold void ff_vk_video_common_uninit(FFVulkanContext *s,
|
||||||
|
if (common->session) {
|
||||||
|
vk->DestroyVideoSessionKHR(s->hwctx->act_dev, common->session,
|
||||||
|
s->hwctx->alloc);
|
||||||
|
- common->session = NULL;
|
||||||
|
+ common->session = VK_NULL_HANDLE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (common->nb_mem && common->mem)
|
||||||
|
diff --git a/libavfilter/vsrc_testsrc_vulkan.c b/libavfilter/vsrc_testsrc_vulkan.c
|
||||||
|
index 8761c21..1720bfa 100644
|
||||||
|
--- a/libavfilter/vsrc_testsrc_vulkan.c
|
||||||
|
+++ b/libavfilter/vsrc_testsrc_vulkan.c
|
||||||
|
@@ -231,7 +231,7 @@ static int testsrc_vulkan_activate(AVFilterContext *ctx)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
err = ff_vk_filter_process_simple(&s->vkctx, &s->e, &s->pl, s->picref, NULL,
|
||||||
|
- NULL, &s->opts, sizeof(s->opts));
|
||||||
|
+ VK_NULL_HANDLE, &s->opts, sizeof(s->opts));
|
||||||
|
if (err < 0)
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
@@ -250,7 +250,7 @@ static int testsrc_vulkan_activate(AVFilterContext *ctx)
|
||||||
|
frame->sample_aspect_ratio = s->sar;
|
||||||
|
if (!s->draw_once) {
|
||||||
|
err = ff_vk_filter_process_simple(&s->vkctx, &s->e, &s->pl, frame, NULL,
|
||||||
|
- NULL, &s->opts, sizeof(s->opts));
|
||||||
|
+ VK_NULL_HANDLE, &s->opts, sizeof(s->opts));
|
||||||
|
if (err < 0) {
|
||||||
|
av_frame_free(&frame);
|
||||||
|
return err;
|
||||||
|
diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c
|
||||||
|
index 12bc951..d326ad6 100644
|
||||||
|
--- a/libavutil/hwcontext_vaapi.c
|
||||||
|
+++ b/libavutil/hwcontext_vaapi.c
|
||||||
|
@@ -1203,7 +1203,7 @@ static int vaapi_map_from_drm(AVHWFramesContext *src_fc, AVFrame *dst,
|
||||||
|
|
||||||
|
if (!use_prime2 || vas != VA_STATUS_SUCCESS) {
|
||||||
|
int k;
|
||||||
|
- unsigned long buffer_handle;
|
||||||
|
+ size_t buffer_handle;
|
||||||
|
VASurfaceAttribExternalBuffers buffer_desc;
|
||||||
|
VASurfaceAttrib buffer_attrs[2] = {
|
||||||
|
{
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
@ -1,60 +0,0 @@
|
|||||||
From: Jan Engelhardt <jengelh@inai.de>
|
|
||||||
Date: 2016-04-10 23:23:53.138440254 +0200
|
|
||||||
|
|
||||||
Improve the error messages a bit to say what's really going on
|
|
||||||
(in light of a reduced build).
|
|
||||||
|
|
||||||
---
|
|
||||||
fftools/ffmpeg.c | 2 +-
|
|
||||||
fftools/ffmpeg_filter.c | 4 ++--
|
|
||||||
fftools/ffmpeg_opt.c | 2 +-
|
|
||||||
3 files changed, 4 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
Index: ffmpeg-5.0/fftools/ffmpeg.c
|
|
||||||
===================================================================
|
|
||||||
--- ffmpeg-5.0.orig/fftools/ffmpeg.c 2022-01-14 19:45:39.000000000 +0100
|
|
||||||
+++ ffmpeg-5.0/fftools/ffmpeg.c 2022-02-04 08:16:14.606621540 +0100
|
|
||||||
@@ -2871,7 +2871,7 @@ static int init_input_stream(int ist_ind
|
|
||||||
if (ist->decoding_needed) {
|
|
||||||
const AVCodec *codec = ist->dec;
|
|
||||||
if (!codec) {
|
|
||||||
- snprintf(error, error_len, "Decoder (codec %s) not found for input stream #%d:%d",
|
|
||||||
+ snprintf(error, error_len, "This build of ffmpeg does not include a \"%s\" decoder needed for input stream #%d:%d.",
|
|
||||||
avcodec_get_name(ist->dec_ctx->codec_id), ist->file_index, ist->st->index);
|
|
||||||
return AVERROR(EINVAL);
|
|
||||||
}
|
|
||||||
Index: ffmpeg-5.0/fftools/ffmpeg_filter.c
|
|
||||||
===================================================================
|
|
||||||
--- ffmpeg-5.0.orig/fftools/ffmpeg_filter.c 2022-01-14 19:45:39.000000000 +0100
|
|
||||||
+++ ffmpeg-5.0/fftools/ffmpeg_filter.c 2022-02-04 08:16:14.607621538 +0100
|
|
||||||
@@ -925,7 +925,7 @@ static int configure_input_filter(Filter
|
|
||||||
{
|
|
||||||
if (!ifilter->ist->dec) {
|
|
||||||
av_log(NULL, AV_LOG_ERROR,
|
|
||||||
- "No decoder for stream #%d:%d, filtering impossible\n",
|
|
||||||
+ "This build of ffmpeg does not have a suitable decoder for stream #%d:%d enabled, filtering impossible\n",
|
|
||||||
ifilter->ist->file_index, ifilter->ist->st->index);
|
|
||||||
return AVERROR_DECODER_NOT_FOUND;
|
|
||||||
}
|
|
||||||
@@ -1094,7 +1094,7 @@ int configure_filtergraph(FilterGraph *f
|
|
||||||
if (!ost->enc) {
|
|
||||||
/* identical to the same check in ffmpeg.c, needed because
|
|
||||||
complex filter graphs are initialized earlier */
|
|
||||||
- av_log(NULL, AV_LOG_ERROR, "Encoder (codec %s) not found for output stream #%d:%d\n",
|
|
||||||
+ av_log(NULL, AV_LOG_ERROR, "This build of ffmpeg does not include a \"%s\" encoder needed for output stream #%d:%d.\n",
|
|
||||||
avcodec_get_name(ost->st->codecpar->codec_id), ost->file_index, ost->index);
|
|
||||||
ret = AVERROR(EINVAL);
|
|
||||||
goto fail;
|
|
||||||
Index: ffmpeg-5.0/fftools/ffmpeg_opt.c
|
|
||||||
===================================================================
|
|
||||||
--- ffmpeg-5.0.orig/fftools/ffmpeg_opt.c 2022-01-14 19:45:39.000000000 +0100
|
|
||||||
+++ ffmpeg-5.0/fftools/ffmpeg_opt.c 2022-02-04 08:16:14.607621538 +0100
|
|
||||||
@@ -1406,7 +1406,7 @@ static int choose_encoder(OptionsContext
|
|
||||||
if (!ost->enc) {
|
|
||||||
av_log(NULL, AV_LOG_FATAL, "Automatic encoder selection failed for "
|
|
||||||
"output stream #%d:%d. Default encoder for format %s (codec %s) is "
|
|
||||||
- "probably disabled. Please choose an encoder manually.\n",
|
|
||||||
+ "probably disabled or this build of ffmpeg does not include that codec. Please choose an encoder manually.\n",
|
|
||||||
ost->file_index, ost->index, s->oformat->name,
|
|
||||||
avcodec_get_name(ost->st->codecpar->codec_id));
|
|
||||||
return AVERROR_ENCODER_NOT_FOUND;
|
|
99
ffmpeg-vulkan.patch
Normal file
99
ffmpeg-vulkan.patch
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
From: Jan Ekström <jeebjp@gmail.com>
|
||||||
|
Date: Wed, 14 Feb 2024 20:40:54 +0000 (+0200)
|
||||||
|
Subject: {avcodec,tests}: rename the bundled Mesa AV1 vulkan video headers
|
||||||
|
X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/fef22c87ada4517441701e6e61e062c9f4399c8e
|
||||||
|
|
||||||
|
{avcodec,tests}: rename the bundled Mesa AV1 vulkan video headers
|
||||||
|
|
||||||
|
This together with adjusting the inclusion define allows for the
|
||||||
|
build to not fail with latest Vulkan-Headers that contain the
|
||||||
|
stabilized Vulkan AV1 decoding definitions.
|
||||||
|
|
||||||
|
Compilation fails currently as the AV1 header is getting included
|
||||||
|
via hwcontext_vulkan.h -> <vulkan/vulkan.h> -> vulkan_core.h, which
|
||||||
|
finally includes vk_video/vulkan_video_codec_av1std.h and the decode
|
||||||
|
header, leading to the bundled header to never defining anything
|
||||||
|
due to the inclusion define being the same.
|
||||||
|
|
||||||
|
This fix is imperfect, as it leads to additional re-definition
|
||||||
|
warnings for things such as
|
||||||
|
VK_STD_VULKAN_VIDEO_CODEC_AV1_DECODE_SPEC_VERSION. , but it is
|
||||||
|
not clear how to otherwise have the bundled version trump the
|
||||||
|
actually standardized one for a short-term compilation fix.
|
||||||
|
|
||||||
|
(cherry picked from commit e06ce6d2b45edac4a2df04f304e18d4727417d24)
|
||||||
|
---
|
||||||
|
|
||||||
|
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
|
||||||
|
index ec57e53e30..eb25707ef5 100644
|
||||||
|
--- a/libavcodec/Makefile
|
||||||
|
+++ b/libavcodec/Makefile
|
||||||
|
@@ -1284,7 +1284,7 @@ SKIPHEADERS += %_tablegen.h \
|
||||||
|
aacenc_quantization.h \
|
||||||
|
aacenc_quantization_misc.h \
|
||||||
|
bitstream_template.h \
|
||||||
|
- vulkan_video_codec_av1std.h \
|
||||||
|
+ vulkan_video_codec_av1std_mesa.h \
|
||||||
|
$(ARCH)/vpx_arith.h \
|
||||||
|
|
||||||
|
SKIPHEADERS-$(CONFIG_AMF) += amfenc.h
|
||||||
|
@@ -1306,7 +1306,7 @@ SKIPHEADERS-$(CONFIG_XVMC) += xvmc.h
|
||||||
|
SKIPHEADERS-$(CONFIG_VAAPI) += vaapi_decode.h vaapi_hevc.h vaapi_encode.h
|
||||||
|
SKIPHEADERS-$(CONFIG_VDPAU) += vdpau.h vdpau_internal.h
|
||||||
|
SKIPHEADERS-$(CONFIG_VIDEOTOOLBOX) += videotoolbox.h vt_internal.h
|
||||||
|
-SKIPHEADERS-$(CONFIG_VULKAN) += vulkan.h vulkan_video.h vulkan_decode.h vulkan_video_codec_av1std_decode.h
|
||||||
|
+SKIPHEADERS-$(CONFIG_VULKAN) += vulkan.h vulkan_video.h vulkan_decode.h vulkan_video_codec_av1std_decode_mesa.h
|
||||||
|
SKIPHEADERS-$(CONFIG_V4L2_M2M) += v4l2_buffers.h v4l2_context.h v4l2_m2m.h
|
||||||
|
SKIPHEADERS-$(CONFIG_ZLIB) += zlib_wrapper.h
|
||||||
|
|
||||||
|
diff --git a/libavcodec/vulkan_video.h b/libavcodec/vulkan_video.h
|
||||||
|
index b28e3fe0bd..51f44dd543 100644
|
||||||
|
--- a/libavcodec/vulkan_video.h
|
||||||
|
+++ b/libavcodec/vulkan_video.h
|
||||||
|
@@ -23,8 +23,8 @@
|
||||||
|
#include "vulkan.h"
|
||||||
|
|
||||||
|
#include <vk_video/vulkan_video_codecs_common.h>
|
||||||
|
-#include "vulkan_video_codec_av1std.h"
|
||||||
|
-#include "vulkan_video_codec_av1std_decode.h"
|
||||||
|
+#include "vulkan_video_codec_av1std_mesa.h"
|
||||||
|
+#include "vulkan_video_codec_av1std_decode_mesa.h"
|
||||||
|
|
||||||
|
#define CODEC_VER_MAJ(ver) (ver >> 22)
|
||||||
|
#define CODEC_VER_MIN(ver) ((ver >> 12) & ((1 << 10) - 1))
|
||||||
|
diff --git a/libavcodec/vulkan_video_codec_av1std_decode.h b/libavcodec/vulkan_video_codec_av1std_decode_mesa.h
|
||||||
|
similarity index 89%
|
||||||
|
rename from libavcodec/vulkan_video_codec_av1std_decode.h
|
||||||
|
rename to libavcodec/vulkan_video_codec_av1std_decode_mesa.h
|
||||||
|
index a697c00593..e2f37b4e6e 100644
|
||||||
|
--- a/libavcodec/vulkan_video_codec_av1std_decode.h
|
||||||
|
+++ b/libavcodec/vulkan_video_codec_av1std_decode_mesa.h
|
||||||
|
@@ -14,8 +14,8 @@
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
-#ifndef VULKAN_VIDEO_CODEC_AV1STD_DECODE_H_
|
||||||
|
-#define VULKAN_VIDEO_CODEC_AV1STD_DECODE_H_ 1
|
||||||
|
+#ifndef VULKAN_VIDEO_CODEC_AV1STD_DECODE_MESA_H_
|
||||||
|
+#define VULKAN_VIDEO_CODEC_AV1STD_DECODE_MESA_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This header is NOT YET generated from the Khronos Vulkan XML API Registry.
|
||||||
|
diff --git a/libavcodec/vulkan_video_codec_av1std.h b/libavcodec/vulkan_video_codec_av1std_mesa.h
|
||||||
|
similarity index 99%
|
||||||
|
rename from libavcodec/vulkan_video_codec_av1std.h
|
||||||
|
rename to libavcodec/vulkan_video_codec_av1std_mesa.h
|
||||||
|
index c46236c457..c91589eee2 100644
|
||||||
|
--- a/libavcodec/vulkan_video_codec_av1std.h
|
||||||
|
+++ b/libavcodec/vulkan_video_codec_av1std_mesa.h
|
||||||
|
@@ -14,8 +14,8 @@
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
-#ifndef VULKAN_VIDEO_CODEC_AV1STD_H_
|
||||||
|
-#define VULKAN_VIDEO_CODEC_AV1STD_H_ 1
|
||||||
|
+#ifndef VULKAN_VIDEO_CODEC_AV1STD_MESA_H_
|
||||||
|
+#define VULKAN_VIDEO_CODEC_AV1STD_MESA_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This header is NOT YET generated from the Khronos Vulkan XML API Registry.
|
327
ffmpeg.spec
327
ffmpeg.spec
@ -17,19 +17,11 @@
|
|||||||
%bcond_without lto
|
%bcond_without lto
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch %{ix86}
|
|
||||||
%bcond_with vulkan
|
|
||||||
%else
|
|
||||||
%bcond_without vulkan
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%bcond_without svtav1
|
%bcond_without vpl
|
||||||
%bcond_without mfx
|
|
||||||
%bcond_without vmaf
|
%bcond_without vmaf
|
||||||
%else
|
%else
|
||||||
%bcond_with svtav1
|
%bcond_with vpl
|
||||||
%bcond_with mfx
|
|
||||||
%bcond_with vmaf
|
%bcond_with vmaf
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -41,15 +33,26 @@
|
|||||||
|
|
||||||
%if 0%{?rhel}
|
%if 0%{?rhel}
|
||||||
# Disable dependencies not offered in RHEL/EPEL
|
# Disable dependencies not offered in RHEL/EPEL
|
||||||
%bcond_with crystalhd
|
|
||||||
%bcond_with omxil
|
%bcond_with omxil
|
||||||
%else
|
%else
|
||||||
|
|
||||||
# crystalhd isn't available on IBM Z
|
# Use bundled openh264 headers on older Fedora/RHEL where the noopenh264 stub
|
||||||
%ifarch s390 s390x
|
# package is not available
|
||||||
%bcond_with crystalhd
|
%if 0%{?fedora} && 0%{?fedora} <= 39 || 0%{?rhel} && 0%{?rhel} <= 9
|
||||||
|
%bcond_without bundled_openh264_headers
|
||||||
%else
|
%else
|
||||||
%bcond_without crystalhd
|
%bcond_with bundled_openh264_headers
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Disable some features because RHEL 9 packages are too old
|
||||||
|
%if 0%{?rhel} && 0%{?rhel} <= 9
|
||||||
|
%bcond_with flite
|
||||||
|
%bcond_with lcms2
|
||||||
|
%bcond_with placebo
|
||||||
|
%else
|
||||||
|
%bcond_without flite
|
||||||
|
%bcond_without lcms2
|
||||||
|
%bcond_without placebo
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%bcond_without omxil
|
%bcond_without omxil
|
||||||
@ -69,12 +72,10 @@
|
|||||||
%bcond_without rtmp
|
%bcond_without rtmp
|
||||||
%bcond_without x264
|
%bcond_without x264
|
||||||
%bcond_without x265
|
%bcond_without x265
|
||||||
%bcond_without xvid
|
|
||||||
%else
|
%else
|
||||||
%bcond_with rtmp
|
%bcond_with rtmp
|
||||||
%bcond_with x264
|
%bcond_with x264
|
||||||
%bcond_with x265
|
%bcond_with x265
|
||||||
%bcond_with xvid
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{without lto}
|
%if %{without lto}
|
||||||
@ -86,22 +87,22 @@
|
|||||||
%endif
|
%endif
|
||||||
%global openh264_soversion 7
|
%global openh264_soversion 7
|
||||||
|
|
||||||
%global av_codec_soversion 59
|
%global av_codec_soversion 60
|
||||||
%global av_device_soversion 59
|
%global av_device_soversion 60
|
||||||
%global av_filter_soversion 8
|
%global av_filter_soversion 9
|
||||||
%global av_format_soversion 59
|
%global av_format_soversion 60
|
||||||
%global av_util_soversion 57
|
%global av_util_soversion 58
|
||||||
%global postproc_soversion 56
|
%global postproc_soversion 57
|
||||||
%global swresample_soversion 4
|
%global swresample_soversion 4
|
||||||
%global swscale_soversion 6
|
%global swscale_soversion 7
|
||||||
|
|
||||||
Name: ffmpeg
|
Name: ffmpeg
|
||||||
%global pkg_name %{name}%{?pkg_suffix}
|
%global pkg_name %{name}%{?pkg_suffix}
|
||||||
|
|
||||||
Version: 5.1.2
|
Version: 6.1.1
|
||||||
Release: 1%{?dist}
|
Release: 19%{?dist}
|
||||||
Summary: A complete solution to record, convert and stream audio and video
|
Summary: A complete solution to record, convert and stream audio and video
|
||||||
License: GPLv3+
|
License: GPL-3.0-or-later
|
||||||
URL: https://ffmpeg.org/
|
URL: https://ffmpeg.org/
|
||||||
Source0: ffmpeg%{?pkg_suffix}-%{version}.tar.xz
|
Source0: ffmpeg%{?pkg_suffix}-%{version}.tar.xz
|
||||||
Source1: ffmpeg-dlopen-headers.tar.xz
|
Source1: ffmpeg-dlopen-headers.tar.xz
|
||||||
@ -116,18 +117,36 @@ Source21: enable_encoders
|
|||||||
Source90: ffmpeg_update_free_sources.sh
|
Source90: ffmpeg_update_free_sources.sh
|
||||||
Source91: ffmpeg_gen_free_tarball.sh
|
Source91: ffmpeg_gen_free_tarball.sh
|
||||||
Source92: ffmpeg_get_dlopen_headers.sh
|
Source92: ffmpeg_get_dlopen_headers.sh
|
||||||
|
Source93: ffmpeg_find_free_source_headers.sh
|
||||||
|
|
||||||
# Fixes for reduced codec selection on free build
|
# Fixes for reduced codec selection on free build
|
||||||
Patch1: ffmpeg-codec-choice.patch
|
Patch1: ffmpeg-codec-choice.patch
|
||||||
# Better error messages for free build
|
|
||||||
Patch2: ffmpeg-new-coder-errors.patch
|
|
||||||
# Allow to build with fdk-aac-free
|
# Allow to build with fdk-aac-free
|
||||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=1501522#c112
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=1501522#c112
|
||||||
Patch3: ffmpeg-allow-fdk-aac-free.patch
|
Patch2: ffmpeg-allow-fdk-aac-free.patch
|
||||||
|
# Drop openh264 runtime version checks
|
||||||
|
# https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=10211
|
||||||
|
Patch4: 0001-lavc-libopenh264-Drop-openh264-runtime-version-check.patch
|
||||||
|
Patch5: ffmpeg-c99.patch
|
||||||
|
# Fix build with gcc14 (-Wint-conversion, -Wincompatible-pointer-types)
|
||||||
|
Patch6: ffmpeg-gcc14.patch
|
||||||
|
# Fix build with Vulkan headers >= 1.3.280.0
|
||||||
|
Patch7: ffmpeg-vulkan.patch
|
||||||
|
# Backport fix for CVE-2023-49528
|
||||||
|
Patch8: https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/2d9ed64859c9887d0504cd71dbd5b2c15e14251a#/ffmpeg-CVE-2023-49528.patch
|
||||||
|
# Fixes for Mesa 24.0.6+ / 24.1.4+ VA-API
|
||||||
|
Patch9: 0001-lavc-vaapi_decode-Make-it-possible-to-send-multiple-.patch
|
||||||
|
Patch10: 0002-lavc-vaapi_av1-Avoid-sending-the-same-slice-buffer-m.patch
|
||||||
|
|
||||||
# Set up dlopen for openh264
|
# Set up dlopen for openh264
|
||||||
Patch1001: ffmpeg-dlopen-openh264.patch
|
Patch1001: ffmpeg-dlopen-openh264.patch
|
||||||
|
|
||||||
|
# Add first_dts getter to libavformat for Chromium
|
||||||
|
# See: https://bugzilla.redhat.com/show_bug.cgi?id=2240127
|
||||||
|
# Reference: https://crbug.com/1306560
|
||||||
|
Patch1002: ffmpeg-chromium.patch
|
||||||
|
|
||||||
|
|
||||||
Requires: libavcodec%{?pkg_suffix}%{_isa} = %{version}-%{release}
|
Requires: libavcodec%{?pkg_suffix}%{_isa} = %{version}-%{release}
|
||||||
Requires: libavdevice%{?pkg_suffix}%{_isa} = %{version}-%{release}
|
Requires: libavdevice%{?pkg_suffix}%{_isa} = %{version}-%{release}
|
||||||
Requires: libavfilter%{?pkg_suffix}%{_isa} = %{version}-%{release}
|
Requires: libavfilter%{?pkg_suffix}%{_isa} = %{version}-%{release}
|
||||||
@ -139,18 +158,21 @@ Requires: libswscale%{?pkg_suffix}%{_isa} = %{version}-%{release}
|
|||||||
|
|
||||||
BuildRequires: AMF-devel
|
BuildRequires: AMF-devel
|
||||||
BuildRequires: fdk-aac-free-devel
|
BuildRequires: fdk-aac-free-devel
|
||||||
BuildRequires: flite-devel
|
%if %{with flite}
|
||||||
|
BuildRequires: flite-devel >= 2.2
|
||||||
|
%endif
|
||||||
BuildRequires: game-music-emu-devel
|
BuildRequires: game-music-emu-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: git-core
|
||||||
BuildRequires: gnupg2
|
BuildRequires: gnupg2
|
||||||
BuildRequires: gsm-devel
|
BuildRequires: gsm-devel
|
||||||
BuildRequires: ladspa-devel
|
BuildRequires: ladspa-devel
|
||||||
BuildRequires: lame-devel
|
BuildRequires: lame-devel
|
||||||
%if %{with crystalhd}
|
|
||||||
BuildRequires: libcrystalhd-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: libgcrypt-devel
|
BuildRequires: libgcrypt-devel
|
||||||
BuildRequires: libmysofa-devel
|
BuildRequires: libmysofa-devel
|
||||||
|
BuildRequires: libX11-devel
|
||||||
|
BuildRequires: libXext-devel
|
||||||
|
BuildRequires: libXv-devel
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: nasm
|
BuildRequires: nasm
|
||||||
BuildRequires: perl(Pod::Man)
|
BuildRequires: perl(Pod::Man)
|
||||||
@ -168,8 +190,12 @@ BuildRequires: pkgconfig(frei0r)
|
|||||||
BuildRequires: pkgconfig(fribidi)
|
BuildRequires: pkgconfig(fribidi)
|
||||||
BuildRequires: pkgconfig(gl)
|
BuildRequires: pkgconfig(gl)
|
||||||
BuildRequires: pkgconfig(gnutls)
|
BuildRequires: pkgconfig(gnutls)
|
||||||
|
BuildRequires: pkgconfig(harfbuzz)
|
||||||
BuildRequires: pkgconfig(libilbc)
|
BuildRequires: pkgconfig(libilbc)
|
||||||
BuildRequires: pkgconfig(jack)
|
BuildRequires: pkgconfig(jack)
|
||||||
|
%if %{with lcms2}
|
||||||
|
BuildRequires: pkgconfig(lcms2) >= 2.13
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libass)
|
BuildRequires: pkgconfig(libass)
|
||||||
BuildRequires: pkgconfig(libbluray)
|
BuildRequires: pkgconfig(libbluray)
|
||||||
BuildRequires: pkgconfig(libbs2b)
|
BuildRequires: pkgconfig(libbs2b)
|
||||||
@ -179,14 +205,19 @@ BuildRequires: pkgconfig(libcdio_paranoia)
|
|||||||
BuildRequires: pkgconfig(libchromaprint)
|
BuildRequires: pkgconfig(libchromaprint)
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: pkgconfig(libdrm)
|
BuildRequires: pkgconfig(libdrm)
|
||||||
BuildRequires: pkgconfig(libjxl)
|
BuildRequires: pkgconfig(libjxl) >= 0.7.0
|
||||||
BuildRequires: pkgconfig(libmodplug)
|
BuildRequires: pkgconfig(libmodplug)
|
||||||
%if %{with omxil}
|
%if %{with omxil}
|
||||||
BuildRequires: pkgconfig(libomxil-bellagio)
|
BuildRequires: pkgconfig(libomxil-bellagio)
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: pkgconfig(libopenjp2)
|
BuildRequires: pkgconfig(libopenjp2)
|
||||||
BuildRequires: pkgconfig(libopenmpt)
|
BuildRequires: pkgconfig(libopenmpt)
|
||||||
|
%if %{with placebo}
|
||||||
|
BuildRequires: pkgconfig(libplacebo) >= 4.192.0
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libpulse)
|
BuildRequires: pkgconfig(libpulse)
|
||||||
|
BuildRequires: pkgconfig(librabbitmq)
|
||||||
|
BuildRequires: pkgconfig(librist)
|
||||||
BuildRequires: pkgconfig(librsvg-2.0)
|
BuildRequires: pkgconfig(librsvg-2.0)
|
||||||
BuildRequires: pkgconfig(libssh)
|
BuildRequires: pkgconfig(libssh)
|
||||||
BuildRequires: pkgconfig(libv4l2)
|
BuildRequires: pkgconfig(libv4l2)
|
||||||
@ -197,21 +228,27 @@ BuildRequires: pkgconfig(libwebp)
|
|||||||
BuildRequires: pkgconfig(libxml-2.0)
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
BuildRequires: pkgconfig(libzmq)
|
BuildRequires: pkgconfig(libzmq)
|
||||||
BuildRequires: pkgconfig(lilv-0)
|
BuildRequires: pkgconfig(lilv-0)
|
||||||
|
BuildRequires: pkgconfig(lv2)
|
||||||
BuildRequires: pkgconfig(netcdf)
|
BuildRequires: pkgconfig(netcdf)
|
||||||
BuildRequires: pkgconfig(ogg)
|
BuildRequires: pkgconfig(ogg)
|
||||||
BuildRequires: pkgconfig(openal)
|
BuildRequires: pkgconfig(openal)
|
||||||
|
BuildRequires: pkgconfig(opencore-amrnb)
|
||||||
BuildRequires: pkgconfig(OpenCL)
|
BuildRequires: pkgconfig(OpenCL)
|
||||||
BuildRequires: pkgconfig(opencv4)
|
%if %{without bundled_openh264_headers}
|
||||||
|
BuildRequires: pkgconfig(openh264)
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(opus)
|
BuildRequires: pkgconfig(opus)
|
||||||
BuildRequires: pkgconfig(rav1e)
|
BuildRequires: pkgconfig(rav1e)
|
||||||
BuildRequires: pkgconfig(rubberband)
|
BuildRequires: pkgconfig(rubberband)
|
||||||
BuildRequires: pkgconfig(schroedinger-1.0)
|
BuildRequires: pkgconfig(schroedinger-1.0)
|
||||||
BuildRequires: pkgconfig(sdl2)
|
BuildRequires: pkgconfig(sdl2)
|
||||||
|
BuildRequires: pkgconfig(shaderc) >= 2019.1
|
||||||
BuildRequires: pkgconfig(smbclient)
|
BuildRequires: pkgconfig(smbclient)
|
||||||
BuildRequires: pkgconfig(snappy)
|
BuildRequires: pkgconfig(snappy)
|
||||||
BuildRequires: pkgconfig(soxr)
|
BuildRequires: pkgconfig(soxr)
|
||||||
BuildRequires: pkgconfig(speex)
|
BuildRequires: pkgconfig(speex)
|
||||||
BuildRequires: pkgconfig(srt)
|
BuildRequires: pkgconfig(srt)
|
||||||
|
BuildRequires: pkgconfig(SvtAv1Enc) >= 0.9.0
|
||||||
BuildRequires: pkgconfig(tesseract)
|
BuildRequires: pkgconfig(tesseract)
|
||||||
BuildRequires: pkgconfig(theora)
|
BuildRequires: pkgconfig(theora)
|
||||||
BuildRequires: pkgconfig(twolame)
|
BuildRequires: pkgconfig(twolame)
|
||||||
@ -219,7 +256,9 @@ BuildRequires: pkgconfig(vapoursynth)
|
|||||||
BuildRequires: pkgconfig(vdpau)
|
BuildRequires: pkgconfig(vdpau)
|
||||||
BuildRequires: pkgconfig(vidstab)
|
BuildRequires: pkgconfig(vidstab)
|
||||||
BuildRequires: pkgconfig(vorbis)
|
BuildRequires: pkgconfig(vorbis)
|
||||||
|
BuildRequires: pkgconfig(vo-amrwbenc)
|
||||||
BuildRequires: pkgconfig(vpx)
|
BuildRequires: pkgconfig(vpx)
|
||||||
|
BuildRequires: pkgconfig(vulkan) >= 1.3.255
|
||||||
BuildRequires: pkgconfig(wavpack)
|
BuildRequires: pkgconfig(wavpack)
|
||||||
BuildRequires: pkgconfig(xcb)
|
BuildRequires: pkgconfig(xcb)
|
||||||
BuildRequires: pkgconfig(xcb-render)
|
BuildRequires: pkgconfig(xcb-render)
|
||||||
@ -230,11 +269,8 @@ BuildRequires: pkgconfig(zimg)
|
|||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
BuildRequires: pkgconfig(zvbi-0.2)
|
BuildRequires: pkgconfig(zvbi-0.2)
|
||||||
BuildRequires: texinfo
|
BuildRequires: texinfo
|
||||||
|
BuildRequires: xvidcore-devel
|
||||||
|
|
||||||
%if %{with amr}
|
|
||||||
BuildRequires: pkgconfig(opencore-amrnb)
|
|
||||||
BuildRequires: pkgconfig(vo-amrwbenc)
|
|
||||||
%endif
|
|
||||||
%if %{with dc1394}
|
%if %{with dc1394}
|
||||||
BuildRequires: pkgconfig(libavc1394)
|
BuildRequires: pkgconfig(libavc1394)
|
||||||
BuildRequires: pkgconfig(libdc1394-2)
|
BuildRequires: pkgconfig(libdc1394-2)
|
||||||
@ -243,15 +279,8 @@ BuildRequires: pkgconfig(libiec61883)
|
|||||||
%if %{with rtmp}
|
%if %{with rtmp}
|
||||||
BuildRequires: librtmp-devel
|
BuildRequires: librtmp-devel
|
||||||
%endif
|
%endif
|
||||||
%if %{with mfx}
|
%if %{with vpl}
|
||||||
BuildRequires: pkgconfig(libmfx) < 2.0
|
BuildRequires: pkgconfig(vpl) >= 2.6
|
||||||
%endif
|
|
||||||
%if %{with svtav1}
|
|
||||||
BuildRequires: pkgconfig(SvtAv1Enc) >= 0.8.4
|
|
||||||
%endif
|
|
||||||
%if %{with vulkan}
|
|
||||||
BuildRequires: vulkan-loader-devel
|
|
||||||
BuildRequires: pkgconfig(shaderc) >= 2019.1
|
|
||||||
%endif
|
%endif
|
||||||
%if %{with x264}
|
%if %{with x264}
|
||||||
BuildRequires: pkgconfig(x264)
|
BuildRequires: pkgconfig(x264)
|
||||||
@ -262,9 +291,6 @@ BuildRequires: pkgconfig(x265)
|
|||||||
%if %{with vmaf}
|
%if %{with vmaf}
|
||||||
BuildRequires: pkgconfig(libvmaf)
|
BuildRequires: pkgconfig(libvmaf)
|
||||||
%endif
|
%endif
|
||||||
%if %{with xvid}
|
|
||||||
BuildRequires: xvidcore-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -332,6 +358,7 @@ Requires: libswresample%{?pkg_suffix}%{_isa} = %{version}-%{release}
|
|||||||
## Note, we can do this because openh264 is provided in a default-enabled
|
## Note, we can do this because openh264 is provided in a default-enabled
|
||||||
## third party repository provided by Cisco.
|
## third party repository provided by Cisco.
|
||||||
Recommends: libopenh264.so.%{openh264_soversion}%{?lib64_suffix}
|
Recommends: libopenh264.so.%{openh264_soversion}%{?lib64_suffix}
|
||||||
|
Suggests: openh264%{_isa}
|
||||||
|
|
||||||
%description -n libavcodec%{?pkg_suffix}
|
%description -n libavcodec%{?pkg_suffix}
|
||||||
The libavcodec library provides a generic encoding/decoding framework
|
The libavcodec library provides a generic encoding/decoding framework
|
||||||
@ -538,10 +565,10 @@ This subpackage contains the headers for FFmpeg libswscale.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%if %{with upstream_tarball}
|
%if %{with upstream_tarball}
|
||||||
gpgv2 --quiet --keyring %{SOURCE3} %{SOURCE2} %{SOURCE0}
|
%{gpgverify} --keyring='%{SOURCE3}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%autosetup -a1 -p1
|
%autosetup %{?with_bundled_openh264_headers:-a1} -S git_am
|
||||||
install -m 0644 %{SOURCE20} enable_decoders
|
install -m 0644 %{SOURCE20} enable_decoders
|
||||||
install -m 0644 %{SOURCE21} enable_encoders
|
install -m 0644 %{SOURCE21} enable_encoders
|
||||||
# fix -O3 -g in host_cflags
|
# fix -O3 -g in host_cflags
|
||||||
@ -583,15 +610,17 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
|
|||||||
--enable-gcrypt \
|
--enable-gcrypt \
|
||||||
--enable-gnutls \
|
--enable-gnutls \
|
||||||
--enable-ladspa \
|
--enable-ladspa \
|
||||||
%if %{with vulkan}
|
%if %{with lcms2}
|
||||||
|
--enable-lcms2 \
|
||||||
|
%endif
|
||||||
--enable-libshaderc \
|
--enable-libshaderc \
|
||||||
--enable-vulkan \
|
--enable-vulkan \
|
||||||
%endif
|
|
||||||
--disable-cuda-sdk \
|
--disable-cuda-sdk \
|
||||||
--enable-libaom \
|
--enable-libaom \
|
||||||
--enable-libass \
|
--enable-libass \
|
||||||
--enable-libbluray \
|
--enable-libbluray \
|
||||||
--enable-libbs2b \
|
--enable-libbs2b \
|
||||||
|
--enable-libcaca \
|
||||||
--enable-libcdio \
|
--enable-libcdio \
|
||||||
--enable-libcodec2 \
|
--enable-libcodec2 \
|
||||||
--enable-libdav1d \
|
--enable-libdav1d \
|
||||||
@ -600,10 +629,18 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
|
|||||||
%endif
|
%endif
|
||||||
--enable-libdrm \
|
--enable-libdrm \
|
||||||
--enable-libfdk-aac \
|
--enable-libfdk-aac \
|
||||||
|
%if %{with flite}
|
||||||
|
--enable-libflite \
|
||||||
|
%endif
|
||||||
--enable-libfontconfig \
|
--enable-libfontconfig \
|
||||||
--enable-libfreetype \
|
--enable-libfreetype \
|
||||||
--enable-libfribidi \
|
--enable-libfribidi \
|
||||||
|
--enable-libharfbuzz \
|
||||||
|
--enable-libgme \
|
||||||
--enable-libgsm \
|
--enable-libgsm \
|
||||||
|
%if %{with dc1394}
|
||||||
|
--enable-libiec61883 \
|
||||||
|
%endif
|
||||||
--enable-libilbc \
|
--enable-libilbc \
|
||||||
--enable-libjack \
|
--enable-libjack \
|
||||||
--enable-libjxl \
|
--enable-libjxl \
|
||||||
@ -614,14 +651,17 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
|
|||||||
--enable-libopenjpeg \
|
--enable-libopenjpeg \
|
||||||
--enable-libopenmpt \
|
--enable-libopenmpt \
|
||||||
--enable-libopus \
|
--enable-libopus \
|
||||||
|
%if %{with placebo}
|
||||||
|
--enable-libplacebo \
|
||||||
|
%endif
|
||||||
--enable-libpulse \
|
--enable-libpulse \
|
||||||
|
--enable-librabbitmq \
|
||||||
--enable-librav1e \
|
--enable-librav1e \
|
||||||
|
--enable-librist \
|
||||||
--enable-librsvg \
|
--enable-librsvg \
|
||||||
--enable-librubberband \
|
--enable-librubberband \
|
||||||
--enable-libsnappy \
|
--enable-libsnappy \
|
||||||
%if %{with svtav1}
|
|
||||||
--enable-libsvtav1 \
|
--enable-libsvtav1 \
|
||||||
%endif
|
|
||||||
--enable-libsoxr \
|
--enable-libsoxr \
|
||||||
--enable-libspeex \
|
--enable-libspeex \
|
||||||
--enable-libssh \
|
--enable-libssh \
|
||||||
@ -644,16 +684,15 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
|
|||||||
%if %{with lto}
|
%if %{with lto}
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
%endif
|
%endif
|
||||||
%if %{with mfx}
|
%if %{with vpl}
|
||||||
--enable-libmfx \
|
--enable-libvpl \
|
||||||
%endif
|
%endif
|
||||||
|
--enable-lv2 \
|
||||||
--enable-vaapi \
|
--enable-vaapi \
|
||||||
--enable-vdpau \
|
--enable-vdpau \
|
||||||
%if %{with amr}
|
|
||||||
--enable-libopencore-amrnb \
|
--enable-libopencore-amrnb \
|
||||||
--enable-libopencore-amrwb \
|
--enable-libopencore-amrwb \
|
||||||
--enable-libvo-amrwbenc \
|
--enable-libvo-amrwbenc \
|
||||||
%endif
|
|
||||||
%if %{with x264}
|
%if %{with x264}
|
||||||
--enable-libx264 \
|
--enable-libx264 \
|
||||||
%endif
|
%endif
|
||||||
@ -663,9 +702,7 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
|
|||||||
%if %{with librtmp}
|
%if %{with librtmp}
|
||||||
--enable-librtmp \
|
--enable-librtmp \
|
||||||
%endif
|
%endif
|
||||||
%if %{with xvid}
|
|
||||||
--enable-libxvid \
|
--enable-libxvid \
|
||||||
%endif
|
|
||||||
--enable-openal \
|
--enable-openal \
|
||||||
--enable-opencl \
|
--enable-opencl \
|
||||||
--enable-opengl \
|
--enable-opengl \
|
||||||
@ -677,7 +714,7 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
|
|||||||
--enable-hwaccels \
|
--enable-hwaccels \
|
||||||
--disable-encoders \
|
--disable-encoders \
|
||||||
--disable-decoders \
|
--disable-decoders \
|
||||||
--disable-decoder="mpeg4,h263,h264,hevc,vc1" \
|
--disable-decoder="h264,hevc,vc1" \
|
||||||
--enable-encoder="$(perl -pe 's{^(\w*).*}{$1,}gs' <enable_encoders)" \
|
--enable-encoder="$(perl -pe 's{^(\w*).*}{$1,}gs' <enable_encoders)" \
|
||||||
--enable-decoder="$(perl -pe 's{^(\w*).*}{$1,}gs' <enable_decoders)" \
|
--enable-decoder="$(perl -pe 's{^(\w*).*}{$1,}gs' <enable_decoders)" \
|
||||||
%endif
|
%endif
|
||||||
@ -718,12 +755,12 @@ cat config_components.h
|
|||||||
# Paranoia check
|
# Paranoia check
|
||||||
%if %{without all_codecs}
|
%if %{without all_codecs}
|
||||||
# DECODER
|
# DECODER
|
||||||
for i in MPEG4 H263 H264 HEVC HEVC_RKMPP VC1; do
|
for i in H264 HEVC HEVC_RKMPP VC1; do
|
||||||
grep -q "#define CONFIG_${i}_DECODER 0" config_components.h
|
grep -q "#define CONFIG_${i}_DECODER 0" config_components.h
|
||||||
done
|
done
|
||||||
|
|
||||||
# ENCODER
|
# ENCODER
|
||||||
for i in MPEG4 H263 H263P LIBX264 LIBX264RGB LIBX265 LIBXVID; do
|
for i in LIBX264 LIBX264RGB LIBX265; do
|
||||||
grep -q "#define CONFIG_${i}_ENCODER 0" config_components.h
|
grep -q "#define CONFIG_${i}_ENCODER 0" config_components.h
|
||||||
done
|
done
|
||||||
for i in H264 HEVC; do
|
for i in H264 HEVC; do
|
||||||
@ -846,6 +883,162 @@ rm -rf %{buildroot}%{_datadir}/%{name}/examples
|
|||||||
%{_mandir}/man3/libswscale.3*
|
%{_mandir}/man3/libswscale.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jul 20 2024 Neal Gompa <ngompa@fedoraproject.org> - 6.1.1-19
|
||||||
|
- Backport fixes for Mesa 24.0.6+ / 21.1.4+ changes for VA-API
|
||||||
|
|
||||||
|
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.1-18
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 16 2024 Nicolas Chauvet <kwizart@gmail.com> - 6.1.1-17
|
||||||
|
- Rebuilt for libplacebo/vmaf
|
||||||
|
|
||||||
|
* Wed Jun 19 2024 Dominik Mierzejewski <dominik@greysector.net> - 6.1.1-16
|
||||||
|
- Backport fix for CVE-2023-49528
|
||||||
|
|
||||||
|
* Thu Jun 13 2024 Sandro Mani <manisandro@gmail.com> - 6.1.1-15
|
||||||
|
- Rebuild for tesseract-5.4.1
|
||||||
|
|
||||||
|
* Wed May 29 2024 Robert-André Mauchin <zebob.m@gmail.com> - 6.1.1-14
|
||||||
|
- Rebuild for svt-av1 2.1.0
|
||||||
|
|
||||||
|
* Wed May 22 2024 Simone Caronni <negativo17@gmail.com> - 6.1.1-13
|
||||||
|
- Rebuild for updated VapourSynth.
|
||||||
|
|
||||||
|
* Tue Apr 23 2024 Kalev Lember <klember@redhat.com> - 6.1.1-12
|
||||||
|
- Stop using bundled openh264 headers in F40+ and build against noopenh264
|
||||||
|
- Backport a fix to build with Vulkan headers >= 1.3.280.0
|
||||||
|
|
||||||
|
* Wed Mar 13 2024 Sérgio Basto <sergio@serjux.com> - 6.1.1-11
|
||||||
|
- Rebuild for jpegxl (libjxl) 0.10.2
|
||||||
|
|
||||||
|
* Tue Mar 12 2024 Dominik Mierzejewski <dominik@greysector.net> - 6.1.1-10
|
||||||
|
- Enable drawtext filter (requires libharfbuzz)
|
||||||
|
|
||||||
|
* Wed Feb 14 2024 Sérgio Basto <sergio@serjux.com> - 6.1.1-9
|
||||||
|
- Rebuild for jpegxl (libjxl) 0.9.2 with soname bump
|
||||||
|
|
||||||
|
* Wed Feb 07 2024 Pete Walter <pwalter@fedoraproject.org> - 6.1.1-8
|
||||||
|
- Rebuild for libvpx 1.14.x
|
||||||
|
|
||||||
|
* Sun Jan 28 2024 Sandro Mani <manisandro@gmail.com> - 6.1.1-7
|
||||||
|
- Rebuild (tesseract)
|
||||||
|
|
||||||
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.1-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 15 2024 Neal Gompa <ngompa@fedoraproject.org> - 6.1.1-4
|
||||||
|
- Add missing files for some of the libraries to fix riscv64 builds
|
||||||
|
|
||||||
|
* Fri Jan 12 2024 Fabio Valentini <decathorpe@gmail.com> - 6.1.1-3
|
||||||
|
- Rebuild for dav1d 1.3.0
|
||||||
|
|
||||||
|
* Fri Jan 05 2024 Florian Weimer <fweimer@redhat.com> - 6.1.1-2
|
||||||
|
- Backport upstream patch to fix C compatibility issues
|
||||||
|
|
||||||
|
* Thu Jan 04 2024 Neal Gompa <ngompa@fedoraproject.org> - 6.1.1-1
|
||||||
|
- Update to 6.1.1
|
||||||
|
|
||||||
|
* Thu Jan 04 2024 Neal Gompa <ngompa@fedoraproject.org> - 6.1-1
|
||||||
|
- Rebase to 6.1
|
||||||
|
|
||||||
|
* Wed Dec 06 2023 Kalev Lember <klember@redhat.com> - 6.0.1-2
|
||||||
|
- Prefer openh264 over noopenh264
|
||||||
|
- Backport upstream patch to drop openh264 runtime version checks
|
||||||
|
|
||||||
|
* Sat Nov 11 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.0.1-1
|
||||||
|
- Update to 6.0.1
|
||||||
|
- Add ffmpeg chromium support patch (#2240127)
|
||||||
|
- Use git to apply patches
|
||||||
|
|
||||||
|
* Fri Nov 10 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.0-16
|
||||||
|
- Add patches to support enhanced RTMP and AV1 encoding through VA-API
|
||||||
|
- Force AAC decoding through fdk-aac-free
|
||||||
|
|
||||||
|
* Sun Oct 08 2023 Dominik Mierzejewski <dominik@greysector.net> - 6.0-15
|
||||||
|
- Backport upstream patch to fix segfault when passing non-existent filter
|
||||||
|
option (rfbz#6773)
|
||||||
|
|
||||||
|
* Sat Oct 07 2023 Sandro Mani <manisandro@gmail.com> - 6.0-14
|
||||||
|
- Rebuild (tesseract)
|
||||||
|
|
||||||
|
* Fri Sep 29 2023 Nicolas Chauvet <nchauvet@linagora.com> - 6.0-13
|
||||||
|
- Rebuilt for libplacebo
|
||||||
|
|
||||||
|
* Fri Aug 25 2023 Dominik Mierzejewski <dominik@greysector.net> - 6.0-12
|
||||||
|
- Backport upstream patch to fix assembly with binutils 2.41.
|
||||||
|
|
||||||
|
* Sat Aug 05 2023 Richard Shaw <hobbes1069@gmail.com> - 6.0-11
|
||||||
|
- Rebuild for codec2.
|
||||||
|
|
||||||
|
* Fri Jul 28 2023 Dominik Mierzejewski <dominik@greysector.net> - 6.0-10
|
||||||
|
- Rebuild for libplacebo
|
||||||
|
|
||||||
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.0-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 14 2023 Sandro Mani <manisandro@gmail.com> - 6.0-8
|
||||||
|
- Rebuild (tesseract)
|
||||||
|
|
||||||
|
* Sun Jun 18 2023 Sérgio Basto <sergio@serjux.com> - 6.0-7
|
||||||
|
- Mass rebuild for jpegxl-0.8.1
|
||||||
|
|
||||||
|
* Mon Jun 12 2023 Dominik Mierzejewski <dominik@greysector.net> - 6.0-6
|
||||||
|
- Rebuild for libdc1394
|
||||||
|
|
||||||
|
* Thu Apr 06 2023 Adam Williamson <awilliam@redhat.com> - 6.0-5
|
||||||
|
- Rebuild (tesseract) again
|
||||||
|
|
||||||
|
* Mon Apr 03 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.0-4
|
||||||
|
- Include RISC-V support sources in the tarball
|
||||||
|
|
||||||
|
* Mon Apr 03 2023 Sandro Mani <manisandro@gmail.com> - 6.0-3
|
||||||
|
- Rebuild (tesseract)
|
||||||
|
|
||||||
|
* Wed Mar 22 2023 Nicolas Chauvet <kwizart@gmail.com> - 6.0-2
|
||||||
|
- Backport upstream patches for libplacebo support
|
||||||
|
|
||||||
|
* Sun Mar 12 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.0-1
|
||||||
|
- Rebase to version 6.0
|
||||||
|
- Enable SVT-AV1 on all architectures
|
||||||
|
- Use oneVPL for QSV
|
||||||
|
- Switch to SPDX license identifiers
|
||||||
|
|
||||||
|
* Wed Feb 15 2023 Neal Gompa <ngompa@fedoraproject.org> - 5.1.2-12
|
||||||
|
- Enable support for the RIST protocol through librist
|
||||||
|
|
||||||
|
* Wed Feb 15 2023 Tom Callaway <spot@fedoraproject.org> - 5.1.2-11
|
||||||
|
- bootstrap off
|
||||||
|
|
||||||
|
* Wed Feb 15 2023 Tom Callaway <spot@fedoraproject.org> - 5.1.2-10
|
||||||
|
- rebuild for libvpx (bootstrap)
|
||||||
|
|
||||||
|
* Mon Feb 13 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 5.1.2-9
|
||||||
|
- Enable lcms2, lv2, placebo, rabbitmq, xv
|
||||||
|
|
||||||
|
* Mon Feb 13 2023 Neal Gompa <ngompa@fedoraproject.org> - 5.1.2-8
|
||||||
|
- Disable flite for RHEL 9 as flite is too old
|
||||||
|
|
||||||
|
* Fri Feb 03 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 5.1.2-7
|
||||||
|
- Properly enable caca, flite, gme, iec61883
|
||||||
|
|
||||||
|
* Mon Jan 30 2023 Neal Gompa <ngompa@fedoraproject.org> - 5.1.2-6
|
||||||
|
- Enable more approved codecs
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 15 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 5.1.2-4
|
||||||
|
- Properly enable libzvbi_teletext decoder
|
||||||
|
|
||||||
|
* Fri Dec 23 2022 Sandro Mani <manisandro@gmail.com> - 5.1.2-3
|
||||||
|
- Rebuild (tesseract)
|
||||||
|
|
||||||
|
* Wed Nov 09 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.1.2-2
|
||||||
|
- Unconditionally enable Vulkan
|
||||||
|
|
||||||
* Wed Oct 12 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.1.2-1
|
* Wed Oct 12 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.1.2-1
|
||||||
- Update to version 5.1.2
|
- Update to version 5.1.2
|
||||||
- Refresh dlopen headers and patch for OpenH264 2.3.1
|
- Refresh dlopen headers and patch for OpenH264 2.3.1
|
||||||
|
72
ffmpeg_find_free_source_headers.sh
Executable file
72
ffmpeg_find_free_source_headers.sh
Executable file
@ -0,0 +1,72 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Script to identify trivial new headers for new sources added
|
||||||
|
# Requires: bash, coreutils, tar, xz
|
||||||
|
# Author: Neal Gompa <ngompa@fedoraproject.org>
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
|
FFMPEG_VERSION=$1
|
||||||
|
FF_SRC_DIFF=$2
|
||||||
|
|
||||||
|
if [ -z $1 -o -z $2 ]; then
|
||||||
|
echo "No arguments provided, quitting!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Setting up..."
|
||||||
|
# Get local directory
|
||||||
|
LOCALDIR=$(realpath $(dirname $0))
|
||||||
|
|
||||||
|
# Create working area
|
||||||
|
TMPDIR=$(mktemp -d /tmp/ffsrchdrsXXXXXX)
|
||||||
|
mkdir -pv $TMPDIR
|
||||||
|
|
||||||
|
# Extract ffmpeg sources
|
||||||
|
if [ ! -f "ffmpeg-${FFMPEG_VERSION}.tar.xz" ]; then
|
||||||
|
echo "No ffmpeg tarball, exiting!"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
if [ ! -f "$FF_SRC_DIFF" ]; then
|
||||||
|
echo "No ffmpeg sources diff, exiting!"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
echo "Extracting upstream ffmpeg sources..."
|
||||||
|
tar -C ${TMPDIR} -xf ffmpeg-${FFMPEG_VERSION}.tar.xz
|
||||||
|
|
||||||
|
echo "Generating header list from diff..."
|
||||||
|
# Read in ffmpeg_free_sources diff
|
||||||
|
while IFS= read -r line
|
||||||
|
do
|
||||||
|
if [[ $line = \+* ]]; then
|
||||||
|
ffmpeg_src_file="${line:1}"
|
||||||
|
if [ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_src_file}" ]; then
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}_cb.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}data.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}_data.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
ffmpeg_hdr_file="${ffmpeg_src_file%.c}_tablegen.h"
|
||||||
|
[ -f "${TMPDIR}/ffmpeg-${FFMPEG_VERSION}/${ffmpeg_hdr_file}" ] && echo "${ffmpeg_hdr_file}" >> ${LOCALDIR}/ffmpeg_free_sources
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done < <(cat $FF_SRC_DIFF)
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
echo "Clean up workspace..."
|
||||||
|
rm -rf ${TMPDIR}
|
1047
ffmpeg_free_sources
1047
ffmpeg_free_sources
File diff suppressed because it is too large
Load Diff
4
sources
4
sources
@ -1,4 +1,4 @@
|
|||||||
SHA512 (ffmpeg-free-5.1.2.tar.xz) = 2ccdc49c101ab69d9baa124f871c4808a5a5e5943e8bdbe370199d429122c881a7cf0e28ab35b138899487b922c864df88e7088e44fb0d7b7014f1b236852aa4
|
SHA512 (ffmpeg-free-6.1.1.tar.xz) = f7ca7901b7affa45fd6016b7ac2d7f843f89ad7f813c6f37228d184842aa55167429585e172d3da61ca1ef64818d563199faa7d06295eea1fd829696d28fa044
|
||||||
SHA512 (ffmpeg-5.1.2.tar.xz.asc) = 6afc898e3898a7d34e21f0f0bd0553765a46257332c6ece6226e3e043b842275a8d885b9ccca34bc90a2f008ae5fa14515276d23f921a518a63a47f6504af115
|
SHA512 (ffmpeg-6.1.1.tar.xz.asc) = 0e10c1f560bab0812d759d286656593dea5940f02bb52d88d9ba7f10b12b9cc3d7aa2a41c5f7a45b319069e04dce22dc1286b3c1ba685b35cd6d04cd81c5a0f5
|
||||||
SHA512 (ffmpeg-dlopen-headers.tar.xz) = 97e6986fc2bb9dfa4516135a76b04d27ceb52ff96f0af21a6169919aeefefb4d2e2e24a771959689cdbec385f5d71614ba661223c67c0e94089a6dd823a30099
|
SHA512 (ffmpeg-dlopen-headers.tar.xz) = 97e6986fc2bb9dfa4516135a76b04d27ceb52ff96f0af21a6169919aeefefb4d2e2e24a771959689cdbec385f5d71614ba661223c67c0e94089a6dd823a30099
|
||||||
SHA512 (ffmpeg.keyring) = 9b36506835db36f776b7ddb53ad6fa9e915e6ca2f9c7cfebe8eb45513e1036a985283590a840ca313a111bf35dc3731f68885aaafb1fb7011ec433cc119e5165
|
SHA512 (ffmpeg.keyring) = 9b36506835db36f776b7ddb53ad6fa9e915e6ca2f9c7cfebe8eb45513e1036a985283590a840ca313a111bf35dc3731f68885aaafb1fb7011ec433cc119e5165
|
||||||
|
Loading…
Reference in New Issue
Block a user