hannels > 8) {
av_log(s, AV_LOG_ERROR, "Channels %d not supported!\n", channels);
return AVERROR_INVALIDDATA;
}
--
2.45.2
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/
)
FATE_ATRAC3 += fate-atrac3-1
--
2.45.2
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
dt
wrote:
> asivery via ffmpeg-devel:
>
> > I'm sending the patch again, so that it is correctly rebased on the current
> > master.
> > Here are the two sample files required by the FATE test:
> > https://0x0.st/Xaw2.aea/boxboy333_house_mus
queue_family_(tx/comp/encode/decode)_index) must also be included in
+ * this list until they're removed after deprecation.
+ */
+AVVulkanDeviceQueueFamily qf[16];
+int nb_qf;
} AVVulkanDeviceContext;
/**
--
2.45.1.288.g0e0cd299f1
_________
(qf->queue_family = vk_qf_get_index(s, dev_family, &qf->nb_queues));
diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h
index 15d954fcb8..bedadedde6 100644
--- a/libavutil/vulkan.h
+++ b/libavutil/vulkan.h
@@ -257,7 +257,7 @@ typedef struct FFVulkanContext {
AVHWFramesContext *frames;
A
* duplicates.
+ *
+ * For compatibility reasons, all the enabled queue families listed above
+ * (queue_family_(tx/comp/encode/decode)_index) must also be included in
+ * this list until they're removed after deprecation.
+ */
+ AVVulkanDeviceQueueFamily qf[16];
+int nb_qf;
(qf->queue_family = vk_qf_get_index(s, dev_family, &qf->nb_queues));
diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h
index 15d954fcb8..bedadedde6 100644
--- a/libavutil/vulkan.h
+++ b/libavutil/vulkan.h
@@ -257,7 +257,7 @@ typedef struct FFVulkanContext {
AVHWFramesContext *frames;
A
On 09/07/2024 08:57, Anton Khirnov wrote:
Quoting Lynne via ffmpeg-devel (2024-07-09 03:07:12)
@@ -151,6 +162,17 @@ typedef struct AVVulkanDeviceContext {
* Similar to lock_queue(), unlocks a queue. Must only be called after
locking.
*/
void (*unlock_queue)(struct
ates.
+ *
+ * For compatibility reasons, all the enabled queue families listed above
+ * (queue_family_(tx/comp/encode/decode)_index) must also be included in
+ * this list until they're removed after deprecation.
+ */
+AVVulkanDeviceQueueFamily qf[16];
+int nb_qf;
} A
On 10/07/2024 10:18, Anton Khirnov wrote:
Quoting Lynne via ffmpeg-devel (2024-07-10 01:56:57)
On 09/07/2024 08:57, Anton Khirnov wrote:
Quoting Lynne via ffmpeg-devel (2024-07-09 03:07:12)
@@ -151,6 +162,17 @@ typedef struct AVVulkanDeviceContext {
* Similar to lock_queue(), unlocks
, NULL, &device_list);
-if (ret < S_OK)
+if (ret < S_OK && ret != AVERROR(EIO))
goto error;
ret = dshow_cycle_devices(avctx, devenum, AudioDevice, AudioSourceDevice,
NULL, NULL, &device_list);
--
2.43.0
______
\
+nb_field = hwctx->qf[i].num; \
+} \
+} while (0)
-av_free(qf);
+for (uint32_t i = 0; i < hwctx->nb_qf; i++) {
+ SET_OLD_QF(hwctx->queue_family_index, hwctx->nb_graphics_queues,
VK_QUEUE_GRAPHICS_B
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
-Original Message-
From: ffmpeg-devel On Behalf Of Roger Pack
Sent: Wednesday, July 17, 2024 3:03 AM
To: FFmpeg development discussions and patches
Subject: Re: [FFmpeg-devel] [PATCH] avdevice/dshow: Don't skip audio devices if
no video device is present
> LGTM
I also need thi
t32_t nb_mem;
-
-AVBufferPool *buf_pool;
} FFVkVideoCommon;
/**
@@ -63,11 +61,6 @@ VkVideoComponentBitDepthFlagBitsKHR
ff_vk_depth_from_av_depth(int depth);
int ff_vk_h264_level_to_av(StdVideoH264LevelIdc level);
int ff_vk_h265_level_to_av(StdVideoH265LevelIdc level);
-typedef str
+if (err < 0) {
+ff_vk_exec_discard_deps(&p->vkctx, exec);
+} else if (!upload) {
+ ff_vk_exec_wait(&p->vkctx, exec);
+if (!host_mapped)
+ err = copy_buffer_data(hwfc, bufs[0], swf, region, planes, 0);
}
end:
-for (int i = 0;
On 19/07/2024 15:45, Tong Wu wrote:
From: Tong Wu
Sent: 2024年7月8日 23:13
To: [email protected]
Cc: Tong Wu
Subject: [FFmpeg-devel][PATCH 1/2] lavc/hw_base_encode: correct the
timestamp when input_order = decode_delay
Fixed the command line: ffmpeg -hwaccel vaapi -pix_fmt nv12 -s:v
On 20/07/2024 01:42, Michael Niedermayer wrote:
On Thu, May 30, 2024 at 04:37:08AM +0200, Lynne via ffmpeg-devel wrote:
This commit adds a decoder for the frequency-domain part of USAC.
Changes over version 4:
- Actually reset entropy decoding upon configuration.
- Support for LFE channels
headers CoreVideo/CVImageBuffer.h
kCVImageBufferTransferFunction_SMPTE_ST_428_1 "-framework CoreVideo"
+check_func_headers CoreVideo/CVBuffer.h CVBufferCopyAttachments
"-framework CoreVideo"
}
enabled metal && test_cmd $metalcc -v || disable metal
--
2.39.3 (Apple Git-146)
___
if (tmp)
+attachments = CFDictionaryCreateCopy(NULL, tmp);
#endif
if (attachments) {
colorspace =
CVImageBufferCreateColorSpaceFromAttachments(attachments);
--
2.39.3 (Apple Git-146)
___
ffmpeg-devel mailing list
ffmpeg
#endif /* AVCODEC_ITUT35_H */
OpenPGP_0xA2FEA5F03F034464.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
->output_element, 0, sizeof(ac->output_element));
}
return 0;
}
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg
Good morning,
can someone merge this little fix?
Best
Jens
-Original Message-
From: ffmpeg-devel On Behalf Of Roger Pack
Sent: Wednesday, July 17, 2024 3:03 AM
To: FFmpeg development discussions and patches
Subject: Re: [FFmpeg-devel] [PATCH] avdevice/dshow: Don't skip audio de
-Original Message-
From: Roger Pack
Sent: Monday, July 22, 2024 5:52 PM
To: patches
Cc: FFmpeg development discussions and patches
Subject: Re: [FFmpeg-devel] [PATCH] avdevice/dshow: Don't skip audio devices if
no video device is present
On Wed, Jul 17, 2024 at 1:43 AM pa
-Original Message-
From: Roger Pack
Sent: Monday, July 22, 2024 5:52 PM
To: patches
Cc: FFmpeg development discussions and patches
Subject: Re: [FFmpeg-devel] [PATCH] avdevice/dshow: Don't skip audio devices if
no video device is present
On Wed, Jul 17, 2024 at 1:43 AM pa
-Original Message-
From: Michael Niedermayer
Sent: Tuesday, July 23, 2024 10:22 PM
To: FFmpeg development discussions and patches
Cc: patches
Subject: Re: [FFmpeg-devel] [PATCH] avdevice/dshow: Don't skip audio devices if
no video device is present
On Tue, Jul 23, 2024 at
OG_DEBUG, "Transform tree:\n");
+av_log((void *)&tx_class, AV_LOG_DEBUG, "Transform tree:\n");
print_tx_structure(*ctx, 0);
#endif
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
On 26/07/2024 10:22, Andreas Rheinhardt wrote:
Lynne via ffmpeg-devel:
Its not feasible to add an AVClass in the main context, as
it would waste space, as the main context is recursive, and
every bit of assembly would need to be changed.
While its true that on paper av_log has access to the
On 26/07/2024 09:47, Anton Khirnov wrote:
Quoting Lynne via ffmpeg-devel (2024-07-26 08:42:11)
Its not feasible to add an AVClass in the main context, as
it would waste space, as the main context is recursive, and
every bit of assembly would need to be changed.
While its true that on paper
On 26/07/2024 11:03, Andreas Rheinhardt wrote:
Lynne via ffmpeg-devel:
On 26/07/2024 10:22, Andreas Rheinhardt wrote:
Lynne via ffmpeg-devel:
Its not feasible to add an AVClass in the main context, as
it would waste space, as the main context is recursive, and
every bit of assembly would need
On 28/07/2024 15:06, Tong Wu wrote:
Tong Wu:
Subject: [FFmpeg-devel][PATCH 2/2] lavc/d3d12va_encode: trim header
alignment at output
It is d3d12va's requirement that the FrameStartOffset must be aligned as per
hardware limitation. However, we could trim this alignment at output to reduce
#include "aac_defines.h"
Sure, LGTM
OpenPGP_0xA2FEA5F03F034464.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mai
penPGP_signature.asc
Description: OpenPGP digital signature
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
g kCVImageBufferCGColorSpaceKey is removed
// if the above code is not used or fails.
--
2.39.3 (Apple Git-146)
___________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above,
Key);
if (src->color_trc != AVCOL_TRC_UNSPECIFIED)
--
2.39.3 (Apple Git-146)
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmp
+
+#ifndef AVUTIL_HWCONTEXT_V4L2REQUEST_H
+#define AVUTIL_HWCONTEXT_V4L2REQUEST_H
+
+/**
+ * @file
+ * An API-specific header for AV_HWDEVICE_TYPE_V4L2REQUEST.
+ */
+
+/**
+ * V4L2 Request API device details.
+ *
+ * Allocated as AVHWDeviceContext.hwctx
+ */
+typedef struct AVV4L2RequestDevi
ates.
+ *
+ * For compatibility reasons, all the enabled queue families listed above
+ * (queue_family_(tx/comp/encode/decode)_index) must also be included in
+ * this list until they're removed after deprecation.
+ */
+AVVulkanDeviceQueueFamily qf[32];
+int nb_q
(qf->queue_family = vk_qf_get_index(s, dev_family, &qf->nb_queues));
diff --git a/libavutil/vulkan.h b/libavutil/vulkan.h
index 81898841ad..eaefc954ed 100644
--- a/libavutil/vulkan.h
+++ b/libavutil/vulkan.h
@@ -258,7 +258,7 @@ typedef struct FFVulkanContext {
AVHWFramesContext *frames;
\
+nb_field = hwctx->qf[i].num; \
+} \
+} while (0)
-av_free(qf);
+for (uint32_t i = 0; i < hwctx->nb_qf; i++) {
+ SET_OLD_QF(hwctx->queue_family_index, hwctx->nb_graphics_queues,
VK_QUEUE_GRAPHICS_B
RIX},
+{ VK_NV_OPTICAL_FLOW_EXTENSION_NAME,
FF_VK_EXT_OPTICAL_FLOW },
#ifdef _WIN32
{ VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME,
FF_VK_EXT_EXTERNAL_WIN32_MEMORY },
{ VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME,
FF_VK_EXT_EXTERNAL_WIN32_SEM },
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
H264LevelIdc level);
int ff_vk_h265_level_to_av(StdVideoH265LevelIdc level);
-typedef struct FFVkVideoBuffer {
-FFVkBuffer buf;
-uint8_t *mem;
-} FFVkVideoBuffer;
-
-/**
- * Get a mapped FFVkPooledBuffer with a specific guaranteed minimum size
- * from a pool.
- */
-int ff_vk_video_get_buffer
;
-} VulkanQueueCtx;
-
typedef struct VulkanDevicePriv {
/**
* The public AVVulkanDeviceContext. See hwcontext_vulkan.h for it.
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo
RROR(ENOSYS);
else
-return vulkan_transfer_data(hwfc, dst, src, 0);
+return vulkan_transfer_frame(hwfc, (AVFrame *)src, dst, 1);
}
}
@@ -3833,7 +3990,7 @@ static int vulkan_transfer_data_from(AVHWFramesContext
*hwfc, AVFrame *dst,
if (dst->hw_frames_ctx)
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
ufferDeviceAddress;
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
);
+shaderc_compile_options_set_generate_debug_info(opts);
shaderc_compile_options_set_optimization_level(opts,
shaderc_optimization_level_performance);
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
ffmpeg
XT_SHADER_OBJECT },
#ifdef _WIN32
{ VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME,
FF_VK_EXT_EXTERNAL_WIN32_MEMORY },
{ VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME,
FF_VK_EXT_EXTERNAL_WIN32_SEM },
--
2.45.2.753.g447d99e1c3b
___
s->hwctx->alloc,
&buf->buf);
if (ret != VK_SUCCESS) {
av_log(s, AV_LOG_ERROR, "Failed to create buffer: %s\n",
ff_vk_ret2str(ret));
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg-devel mailing list
ffmpeg-deve
},
{ VK_KHR_VIDEO_DECODE_AV1_EXTENSION_NAME,
FF_VK_EXT_VIDEO_DECODE_AV1 },
};
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
f);
if (ret != VK_SUCCESS)
return ret;
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
ops);
+vtctx->supported_props = NULL;
+}
}
vtctx->frame_ct_out = 0;
--
2.39.3 (Apple Git-146)
___________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link abo
x, AV_LOG_WARNING,
"Color space %s is not supported.\n",
av_color_space_name(src->colorspace));
--
2.39.3 (Apple Git-146)
___________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-dev
ISCV_FD_ZBA (LIBAVUTIL_VERSION_MAJOR < 60)
+#define FF_API_VULKAN_FIXED_QUEUES (LIBAVUTIL_VERSION_MAJOR < 60)
/**
* @}
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/lis
out of the system,
but only the cycles are of interest.
OpenPGP_0xA2FEA5F03F034464.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
pipeline_layout);
av_free(desc_layouts);
if (ret != VK_SUCCESS) {
-av_log(s, AV_LOG_ERROR, "Unable to init pipeline layout: %s\n",
+av_log(s->log, AV_LOG_ERROR, "Unable to init pipeline layout: %s\n",
ff_vk_ret2str(ret));
return A
Pictures =
ctx->caps.maxActiveReferencePictures;
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
goto fail;
}
-if (debug_mode) {
+/* Setup debugging callback if needed */
+ if ((debug_mode == FF_VULKAN_DEBUG_VALIDATE) ||
+(debug_mode == FF_VULKAN_DEBUG_PRINTF) ||
+(debug_mode == FF_VULKAN_DEBUG_PRACTICES)) {
VkDebugUtilsMessengerCreateInfoEXT dbg = {
.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT,
.messageSeverity = VK_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT
|
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
, },
{ VK_EXT_PHYSICAL_DEVICE_DRM_EXTENSION_NAME,
FF_VK_EXT_DEVICE_DRM },
{ VK_EXT_SHADER_ATOMIC_FLOAT_EXTENSION_NAME,
FF_VK_EXT_ATOMIC_FLOAT },
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
= &hwctx->device_features;
+
+/* Setup enabled queue families */
+if ((err = setup_queue_families(ctx, &dev_info)))
+ goto end;
+
ret = vk->CreateDevice(hwctx->phys_dev, &dev_info, hwctx->alloc,
&hwctx->act_dev);
--
2
preferrances of the general/approximate release date?
thx
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject
NCODE_QUEUE = 1ULL << 28, /*
VK_KHR_video_encode_queue */
FF_VK_EXT_VIDEO_ENCODE_H264 = 1ULL << 29, /* VK_KHR_video_encode_h264
*/
FF_VK_EXT_VIDEO_ENCODE_H265 = 1ULL << 30, /* VK_KHR_video_encode_h265
*/
--
2.45.2.753.g447d99e1c3b
______
amp; VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR) &&
+!(ff_vk_find_struct(hwctx->create_pnext,
VK_STRUCTURE_TYPE_VIDEO_PROFILE_LIST_INFO_KHR)) &&
+p->video_maint_1_features.videoMaintenance1)
+hwctx->img_flags |= VK_IMAGE_CREATE_VIDEO_PROFILE_INDEPENDENT_B
On 14/08/2024 12:18, Andreas Rheinhardt wrote:
Lynne via ffmpeg-devel:
The issue is that VulkanContext mostly always used the AVClass *
from its structure, which we don't set in decode.
---
libavcodec/vulkan_decode.c| 2 ++
libavfilter/vf_avgblur_vulkan.c | 2 ++
libavf
t_frames->sw_format = s->input_frames->sw_format;
output_frames->width = ctx->inputs[0]->w;
output_frames->height= ctx->inputs[0]->h;
+((AVVTFramesContext *)output_frames->hwctx)->color_range =
((AVVTFramesContext *)input_frames->hwctx)->color_rang
iv;
VAEncPictureParameterBufferVP9 *vpic = vaapi_pic->codec_picture_params;
int i;
int num_tile_columns;
@@ -106,7 +106,7 @@ static int
vaapi_encode_vp9_init_picture_params(AVCodecContext *avctx,
case FF_HW_PICTURE_TYPE_P:
av_assert0(!pic->nb_refs[1]);
{
May 13th, 2024, Sovereign Tech Fund
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with su
ax_b_depth > 0) { @@ -124,8 +124,8 @@ static int
vaapi_encode_vp9_init_picture_params(AVCodecContext *avctx,
case FF_HW_PICTURE_TYPE_B:
av_assert0(pic->nb_refs[0] && pic->nb_refs[1]);
{
-VAAPIEncodeVP9Picture *href0 = pic->refs[0][0]->priv_data,
- *href1 = pic->refs[1][0]->priv_data;
+VAAPIEncodeVP9Picture *href0 = pic->refs[0][0]->codec_priv,
+ *href1 = pic->refs[1][0]->codec_priv;
av_assert0(href0->slot < pic->b_depth + 1 &&
href1->slot < pic->b_depth + 1);
@@ -163,7 +163,7 @@ static int
vaapi_encode_vp9_init_picture_params(AVCodecContext *avctx,
for (int j = 0; j < pic->nb_refs[i]; j++) {
FFHWBaseEncodePicture *ref_pic = pic->refs[i][j];
int slot;
-slot = ((VAAPIEncodeVP9Picture*)ref_pic->priv_data)->slot;
+slot = ((VAAPIEncodeVP9Picture*)ref_pic->codec_priv)->slot;
av_assert0(vpic->reference_frames[slot] == VA_INVALID_SURFACE);
vpic->reference_frames[slot] = ((VAAPIEncodePicture *)ref_pic)-
recon_surface;
}
--
2.45.2.753.g447d99e1c3b
Thanks for the refactor.
It looks like an untested patch which still has some compile errors.
Anyways I could help test and verify when everything's ready.
Best Regards,
Tong
I sent the correct patch to IRC for someone to test, but there was no
response.
I've replied with V2. Verified that VAAPI works, but I have no Windows
system. Could you test, and if any fixes are required, make them?
OpenPGP_0xA2FEA5F03F034464.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
WBaseEncodePicture *pic)
{
FFHWBaseEncodeContext *base_ctx = avctx->priv_data;
VAAPIEncodeVP9Context *priv = avctx->priv_data;
-const FFHWBaseEncodePicture *pic = &vaapi_pic->base;
-VAAPIEncodeVP9Picture *hpic = pic->priv_data;
+VAAPIEn
On 16/08/2024 12:48, J. Dekker wrote:
Lynne via ffmpeg-devel writes:
On 13/08/2024 16:03, J. Dekker wrote:
Port dav1d's checkasm output format to FFmpeg's checkasm, includes
relative speedups and aligns results.
Signed-off-by: J. Dekker
---
tests/checkasm/check
gital signature
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
On 20/08/2024 22:33, Michael Niedermayer wrote:
On Tue, Aug 20, 2024 at 02:36:53PM +0200, Lynne via ffmpeg-devel wrote:
On 20/08/2024 14:13, [email protected] wrote:
More generally, which is the recommanded way to cut a video with a specific
starting point and specific length, with minimal re
9%)
rename libavcodec/{opustab.h => opus/tab.h} (98%)
Sure.
LGTM.
OpenPGP_0xA2FEA5F03F034464.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
StdVideoH264ProfileIdc profile);
+
/**
* Initialize video session, allocating and binding necessary memory.
*/
--
2.45.2.753.g447d99e1c3b
___________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscri
&priv->units, &unit_opts);
+ if (err < 0)
+ return err;
*vseq = (VAEncSequenceParameterBufferH264) {
.seq_parameter_set_id = sps->seq_parameter_set_id,
@@ -660,7 +444,7 @@ static int
vaapi_encode_h264_init_picture_params(AVCodecContext *avctx,
}
}
hpic->pic_order_cnt = pic->display_order - hpic->last_idr_frame;
-if (priv->raw_sps.pic_order_cnt_type == 2) {
+if (priv->units.raw_sps.pic_order_cnt_type == 2) {
hpic->pic_order_cnt *= 2;
}
@@ -870,8 +654,8 @@ static int
vaapi_encode_h264_init_slice_params(AVCodecContext *avctx,
VAAPIEncodePicture *vaapi_pic = pic->priv;
VAAPIEncodeH264Picture *hpic = pic->codec_priv;
FFHWBaseEncodePicture *prev = pic->prev;
-H264RawSPS *sps = &priv->raw_sps;
-H264RawPPS *pps = &priv->raw_pps;
+H264RawSPS *sps = &priv->units.raw_sps;
+H264RawPPS *pps = &priv->units.raw_pps;
H264RawSliceHeader*sh = &priv->raw_slice.header;
VAEncPictureParameterBufferH264 *vpic = vaapi_pic->codec_picture_params;
VAEncSliceParameterBufferH264 *vslice = slice->codec_slice_params;
@@ -923,7 +707,7 @@ static int
vaapi_encode_h264_init_slice_params(AVCodecContext *avctx,
++keep;
}
}
-av_assert0(keep <= priv->dpb_frames);
+av_assert0(keep <= priv->units.dpb_frames);
if (discard == 0) {
sh->adaptive_ref_pic_marking_mode_flag = 0;
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
OMEM);
-goto fail;
-}
pic->recon_surface =
(VASurfaceID)(uintptr_t)base_pic->recon_image->data[3];
av_log(avctx, AV_LOG_DEBUG, "Recon surface is %#x.\n", pic->recon_surface);
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg
vk_init(FFVulkanContext *s, void *log_parent,
+ AVBufferRef *device_ref, AVBufferRef *frames_ref);
+
/**
* Converts Vulkan return values to strings
*/
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
hwframe_ctx_init(frames_ref);
if (err < 0) {
av_buffer_unref(&frames_ref);
--
2.45.2.753.g447d99e1c3b
___________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link abo
,
FFVkExecContext *e,
VkQueryResultFlags qf = 0;
if (!e->had_submission)
-return VK_NOT_READY;
+return VK_INCOMPLETE;
qf |= pool->query_64bit ?
VK_QUERY_RESULT_64_BIT : 0x0;
--
2.45.2.753.g447d99e1c3b
___
ffmpeg
priv = av_mallocz(ctx->op->priv_size);
--
2.45.2.753.g447d99e1c3b
_______________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
ms.initial_buffer_fullness,
+.bit_rate = ctx->va_bit_rate,
+};
-pps->transform_8x8_mode_flag = 1;
-}
+int err = ff_hw_base_encode_init_params_h264(base_ctx, avctx,
+ &priv->units, &unit_opts);
+ if (err < 0)
+return
!hwctx->usage ||
+ (hwctx->usage & VK_IMAGE_USAGE_STORAGE_BIT));
if (err < 0)
return err;
}
--
2.45.2.753.g447d99e1c3b
___________
ffmpeg-devel mailing list
[email protected]
https
;
#include
@@ -32,6 +33,14 @@ typedef struct FFVkVideoSession {
VkVideoSessionKHR session;
VkDeviceMemory *mem;
uint32_t nb_mem;
+
+ VkSamplerYcbcrConversion yuv_sampler;
+
+AVBufferRef *dpb_hwfc_ref;
+int layered_dpb;
+AVFrame *layered_frame;
+VkImageView layered_view;
+VkImageAspectFlags layered_aspect;
} FFVkVideoCommon;
/**
@@ -74,10 +83,17 @@ StdVideoH264LevelIdc ff_vk_h264_level_to_vk(int level_idc);
StdVideoH264ProfileIdc ff_vk_h264_profile_to_vk(int profile);
int ff_vk_h264_profile_to_av(StdVideoH264ProfileIdc profile);
+/**
+ * Creates image views for video frames.
+ */
+int ff_vk_create_view(FFVulkanContext *s, FFVkVideoCommon *common,
+ VkImageView *view, VkImageAspectFlags *aspect,
+ AVVkFrame *src, VkFormat vkf, int is_dpb);
+
/**
* Initialize video session, allocating and binding necessary memory.
*/
-int ff_vk_video_common_init(void *log, FFVulkanContext *s,
+int ff_vk_video_common_init(AVCodecContext *avctx, FFVulkanContext *s,
FFVkVideoCommon *common,
VkVideoSessionCreateInfoKHR *session_create);
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
ase 0xfd92477a: /* BestPractices-vkAllocateMemory-small-allocation */
case 0x30f4ac70: /* VUID-VkImageCreateInfo-pNext-06811 */
return VK_FALSE;
default:
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
ht
rn const VkComponentMapping ff_comp_identity_map;
+/**
+ * Initializes the AVClass, in case this context is not used
+ * as the main user's context.
+ * May use either a frames context reference, or a device context reference.
+ */
+int ff_vk_init(FFVulkanContext *s, void *log_parent,
+
_BIT : 0x0;
qf |= pool->query_statuses ?
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@f
vk_exec_get(FFVkExecPool *pool);
/**
* Performs nb_queries queries and returns their results and statuses.
- * Execution must have been waited on to produce valid results.
*/
VkResult ff_vk_exec_get_query(FFVulkanContext *s, FFVkExecContext *e,
- void **data, i
else
+err = prepare_frame(hwfc, &fp->compute_exec, f, PREP_MODE_GENERAL);
if (err)
goto fail;
--
2.45.2.753.g447d99e1c3b
___________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-de
; 0)
-goto fail;
-
/* Create queue context */
vk_desc = get_codecdesc(avctx->codec_id);
err = ff_vk_video_qf_init(s, &ctx->qf,
--
2.45.2.753.g447d99e1c3b
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailm
e.asc
Description: OpenPGP digital signature
___
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
On 01/08/2024 19:07, Michael Niedermayer wrote:
On Thu, Aug 01, 2024 at 05:11:18PM +0200, Lynne via ffmpeg-devel wrote:
On 31/07/2024 21:54, Michael Niedermayer wrote:
Fixes: out of array access
Fixes:
70734/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-4741427068731392
On 04/09/2024 16:09, Tong Wu wrote:
Lynne:
Subject: [FFmpeg-devel] [PATCH 02/10] hw_base_encode: move VAAPI SPS/PPS
constructors to a shared file
---
libavcodec/Makefile | 2 +-
libavcodec/hw_base_encode_h264.c | 265
+++ libavcodec/hw_base_encode_h264
On 04/09/2024 16:36, Tong Wu wrote:
Lynne:
Subject: [FFmpeg-devel] [PATCH 03/10] hw_base_encode: allocate DPB image
upfront
Vulkan requires this, as it needs to initialize state upfront.
---
libavcodec/d3d12va_encode.c | 6 --
libavcodec/hw_base_encode.c | 6 ++
libavcodec/vaapi_encode.c
break;
}
You should hook up FFCodec.flush instead. That's what nvenc uses to
reset the GOP.
OpenPGP_0xA2FEA5F03F034464.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
___________
ffmpeg-d
On 06/09/2024 11:48, Tong Wu wrote:
Lynne:
To: Tong Wu ; FFmpeg development discussions and
patches
Subject: Re: [FFmpeg-devel] [PATCH 02/10] hw_base_encode: move VAAPI
SPS/PPS constructors to a shared file
On 04/09/2024 16:09, Tong Wu wrote:
Lynne:
Subject: [FFmpeg-devel] [PATCH 02/10
help_children(bsf->priv_class, AV_OPT_FLAG_BSF_PARAM);
--
2.45.2.753.g447d99e1c3b
_______
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
This commit adds the common Vulkan video encoding framework.
It makes full use of the asynchronous features of our new common
hardware encoding code, and of Vulkan.
The code is able to handle anything from H264 to AV1 and MJPEG.
---
configure | 2 +
libavcodec/Makefile|
This commit adds the first Vulkan hardware encoder.
Currently, P, and **B**-frames are supported. This marks the
first implementation to support both.
The encoder has feature-parity with VAAPI.
---
configure |1 +
libavcodec/Makefile |3 +
libavcodec/all
On 09/09/2024 11:57, Anton Khirnov wrote:
Quoting Lynne via ffmpeg-devel (2024-09-09 10:34:21)
This solves
ffmpeg -help bsf=trace_headers =>
Supported codecs: av1 h264 hevc vvc mjpeg mpeg2video vp8 vp9
---
fftools/opt_common.c | 1 +
1 file changed, 1 insertion(+)
Looks ok
Pus
This commit adds the common Vulkan video encoding framework.
It makes full use of the asynchronous features of our new common
hardware encoding code, and of Vulkan.
The code is able to handle anything from H264 to AV1 and MJPEG.
---
configure | 2 +
libavcodec/Makefile|
201 - 300 of 3425 matches
Mail list logo