
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (46)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (4358)
-
avformat_open_input fails only with a custom IO context
19 janvier 2017, par TimRunning into an odd issue with avformat_open_input, it is failing with :
Invalid data found when processing input
But this only happens when I attempt to read the file using a custom
AVIOContext
.My custom code is as follows (error checking omitted for clarity) :
auto fmtCtx = avformat_alloc_context();
auto ioBufferSize = 32768;
auto ioBuffer = (unsigned char *)av_malloc(ioBufferSize);
auto ioCtx = avio_alloc_context(ioBuffer,
ioBufferSize,
0,
reinterpret_cast<void>(this),
&imageIORead,
NULL,
&imageIOSeek));
fmtCtx -> pb = ioCtx;
fmtCtx -> flags |= AVFMT_FLAG_CUSTOM_IO;
int err = avformat_open_input(&fmtCtx, NULL, NULL, NULL);
</void>imageIOSeek
is never called, but properly handles thewhence
parameter including theAVSEEK_SIZE
option. My file data is already loaded in memory, soimageIORead
is trivial (returning 0 at EOF) :int imageIORead(void *opaque, uint8_t *buf, int buf_size) {
Image *d = (Image *)buf;
int rc = std::min(buf_size, static_cast<int>(d->data.size() - d->pos));
memcpy(buf, d->data.data() + d->pos, rc);
d->pos += rc;
return rc;
}
</int>The data being read is loaded from a file on disk :
/tmp/25.jpeg
The following code is able to open and extract the image correctly :
auto fmtCtx = avformat_alloc_context();
int err = avformat_open_input(&fmtCtx, "/tmp/25.jpeg", NULL, NULL);The project is using a minified version of
libavformat
including only the formats we need. I don’t believe this is the cause of the problem since the file can be open and handled properly when the path is specified. I haven’t seen anyconfigure
options specifically targeting support for custom IO contexts.This is the image in question : 25.jpeg
-
Anomalie #4286 : Notice : _DIR_PLUGINS_AUTO already defined ecrire/inc/plugin.php on line 24
12 février 2019, par PIerre LASZCZAK
— - ecrire/inc/plugin.php (revision ) +++ ecrire/inc/plugin.php (revision ) @@ -21,7 +21,9 @@/** l’adresse du repertoire de telechargement et de decompactage des plugins */
define(’_DIR_PLUGINS_AUTO’, _DIR_PLUGINS . ’auto/’) ;
+if (!defined(’_DIR_PLUGINS_AUTO’))
+ define(’_DIR_PLUGINS_AUTO’, _DIR_PLUGINS . ’auto/’) ;
+#include_spip(’inc/texte’) ; // ????? Appelle public/parametrer trop tot avant la reconstruction du chemin des plugins.
include_spip(’plugins/installer’) ; -
Derive qsv hwdevice from D3D11VA hwdevice using FFMPEG
29 mars 2022, par Caio AugustoI'm trying to derive a QSV hwcontext from D3D11VA device in order to encode d3d11 frames but I'm getting an error when calling av_hwdevice_ctx_create_derived.


buffer_t ctx_buf { av_hwdevice_ctx_alloc(AV_HWDEVICE_TYPE_D3D11VA) };

 auto ctx = (AVD3D11VADeviceContext *)((AVHWDeviceContext *)ctx_buf->data)->hwctx;

 std::fill_n((std::uint8_t *)ctx, sizeof(AVD3D11VADeviceContext), 0);

 auto device = (ID3D11Device *)hwdevice_ctx->data;

 device->AddRef();
 ctx->device = device;

 ctx->lock_ctx = (void *)1;
 ctx->lock = do_nothing;
 ctx->unlock = do_nothing;

 auto err = av_hwdevice_ctx_init(ctx_buf.get());



and then I call


av_hwdevice_ctx_create_derived(&derive_hw_device_ctx, AV_HWDEVICE_TYPE_QSV, ctx_buf.get(), 0);



I'm seeing this in the log :


[AVHWDeviceContext @ 000001de119a9b80] Initialize MFX session: API version is 1.35, implementation version is 1.30
[AVHWDeviceContext @ 000001de119a9b80] Error setting child device handle: -16



Please let me know if you have any idea how to fix it or a different approach to encode d3d11 frames on QSV encoder.


Thank you.


OS: windows 10 64bits
CPU: Intel i5-8400
Graphics card: Nvidia GT1030 (has no hw encoder)