Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (103)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (15757)

  • lavc : add hevc_vulkan hardware encoder

    14 septembre 2024, par Lynne
    lavc : add hevc_vulkan hardware encoder
    

    This commit adds a Vulkan hardware HEVC encoder, with full support
    of the spec - I, P, and B-frames.

    • [DH] configure
    • [DH] libavcodec/Makefile
    • [DH] libavcodec/allcodecs.c
    • [DH] libavcodec/vulkan_encode_h265.c
    • [DH] libavcodec/vulkan_hevc.c
    • [DH] libavcodec/vulkan_video.c
    • [DH] libavcodec/vulkan_video.h
  • lavc : Make hardware config method support more explicit for hwaccels

    8 décembre 2017, par Thomas Guillem
    lavc : Make hardware config method support more explicit for hwaccels
    

    This fixes the use of old ad-hoc methods which are still supported by some
    hwaccels which also support newer methods (DXVA2, VAAPI, VDPAU,
    videotoolbox) - without the method being visible here, ff_get_format()
    would refuse to use it.

    Signed-off-by : Mark Thompson <sw@jkqxz.net>

    • [DH] libavcodec/hwaccel.h
  • FFmpeg : The hardware pixel format is not supported by the device type

    14 mars 2024, par ffvideoner

    Windows, C#, FFmpeg.AutoGen

    &#xA;

    I want to use hardware acceleration to encode videos using FFmpeg.

    &#xA;

    These are parts of my code :

    &#xA;

    AVBufferRef* hw_device_ctx = null;&#xA;int err = ffmpeg.av_hwdevice_ctx_create(&amp;hw_device_ctx, AVHWDeviceType.AV_HWDEVICE_TYPE_DXVA2, null, null, 0);&#xA;&#xA;AVBufferRef* hw_frames_ref;&#xA;AVHWFramesContext* frames_ctx = null;&#xA;&#xA;hw_frames_ref = ffmpeg.av_hwframe_ctx_alloc(hw_device_ctx);&#xA;&#xA;frames_ctx = (AVHWFramesContext*)(hw_frames_ref->data);&#xA;&#xA;for (int i = 0; i &lt; 256; i&#x2B;&#x2B;)&#xA;{&#xA;&#xA;    frames_ctx->format    = (AVPixelFormat)i;&#xA;    frames_ctx->sw_format = (AVPixelFormat)i;&#xA;    &#xA;    frames_ctx->width = ctx->width;&#xA;    frames_ctx->height = ctx->height;&#xA;    frames_ctx->initial_pool_size = 20;&#xA;    &#xA;    ffmpeg.av_hwframe_ctx_init(hw_frames_ref);&#xA;&#xA;}&#xA;

    &#xA;

    That is, all AVPixelFormat values are enumerated.

    &#xA;

    Besides AV_HWDEVICE_TYPE_DXVA2 I also use AV_HWDEVICE_TYPE_CUDA and AV_HWDEVICE_TYPE_D3D11VA.

    &#xA;

    I get one response for all AVHWDeviceType and for all AVPixelFormat :

    &#xA;

    The hardware pixel format %PixelFormat% is not supported by the device type %DeviceType%&#xA;

    &#xA;

    Why isn't any pixel format supported ?

    &#xA;

    FFmpeg code sources :

    &#xA;

    int av_hwframe_ctx_init(AVBufferRef *ref)&#xA;{&#xA;    FFHWFramesContext *ctxi = (FFHWFramesContext*)ref->data;&#xA;    AVHWFramesContext *ctx  = &amp;ctxi->p;&#xA;    const enum AVPixelFormat *pix_fmt;&#xA;    int ret;&#xA;&#xA;    if (ctxi->source_frames) {&#xA;        /* A derived frame context is already initialised. */&#xA;        return 0;&#xA;    }&#xA;&#xA;    /* validate the pixel format */&#xA;    for (pix_fmt = ctxi->hw_type->pix_fmts; *pix_fmt != AV_PIX_FMT_NONE; pix_fmt&#x2B;&#x2B;) {&#xA;        if (*pix_fmt == ctx->format)&#xA;            break;&#xA;    }&#xA;    if (*pix_fmt == AV_PIX_FMT_NONE) {&#xA;        av_log(ctx, AV_LOG_ERROR,&#xA;               "The hardware pixel format &#x27;%s&#x27; is not supported by the device type &#x27;%s&#x27;\n",&#xA;               av_get_pix_fmt_name(ctx->format), ctxi->hw_type->name);&#xA;        return AVERROR(ENOSYS);&#xA;    }&#xA;&#xA;}&#xA;

    &#xA;

    ...

    &#xA;

    const HWContextType ff_hwcontext_type_dxva2 = {&#xA;    .type                 = AV_HWDEVICE_TYPE_DXVA2,&#xA;    .name                 = "DXVA2",&#xA;&#xA;    .device_hwctx_size    = sizeof(AVDXVA2DeviceContext),&#xA;    .frames_hwctx_size    = sizeof(DXVA2FramesContext),&#xA;&#xA;    .device_create        = dxva2_device_create,&#xA;    .frames_init          = dxva2_frames_init,&#xA;    .frames_uninit        = dxva2_frames_uninit,&#xA;    .frames_get_buffer    = dxva2_get_buffer,&#xA;    .transfer_get_formats = dxva2_transfer_get_formats,&#xA;    .transfer_data_to     = dxva2_transfer_data_to,&#xA;    .transfer_data_from   = dxva2_transfer_data_from,&#xA;    .map_from             = dxva2_map_from,&#xA;&#xA;    .pix_fmts             = (const enum AVPixelFormat[]){ AV_PIX_FMT_DXVA2_VLD, AV_PIX_FMT_NONE },&#xA;};&#xA;

    &#xA;

    Similarly for other device types.

    &#xA;

    That is, at least one pixel format must be supported !

    &#xA;