Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (95)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

Sur d’autres sites (6976)

  • doc/mailing-list-faq : auto unsubscribe due to DMARC

    20 avril 2019, par Lou Logan
    doc/mailing-list-faq : auto unsubscribe due to DMARC
    

    Signed-off-by : Lou Logan <lou@lrcd.com>

    • [DH] doc/mailing-list-faq.texi
  • Revision 6809ecc820 : usage.dox : fix doxygen warnings in 1.8.x use \li to denote list items with \if.

    14 mars 2015, par James Zern

    Changed Paths :
     Modify /usage.dox



    usage.dox : fix doxygen warnings in 1.8.x

    use \li to denote list items with \if.

    fixes the following likely visible in <1.8.3 :
    usage.dox : warning : Invalid list item found
    usage.dox : warning : End of list marker found without any preceding list items

    Change-Id : I33c72799edf9f8866596ac8f79247050b8c75681

  • 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;