
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (111)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (9784)
-
Icecast : always send a content-type
11 novembre 2014, par Marvin ScholzIcecast : always send a content-type
use a default (audio/mpeg for historical reason) if none. Required since Icecast 2.4.1
Not using AVOption default because this breaks content-type warnings (needs to
detect if no type was set by the user)Signed-off-by : Michael Niedermayer <michaelni@gmx.at>
-
What's the point of passing address of pointer to function that needs pointer to pointer ?
16 août 2019, par Guerlando OCsI’m reading an example of ffmpeg decoding and it has the address of a pointer being passed to a function :
static AVBufferRef *hw_device_ctx = NULL;
if ((err = av_hwdevice_ctx_create(&hw_device_ctx, type,
NULL, NULL, 0)) < 0) {What’s the point of passing the address of a pointer as an argument ?
I understand that when we pass the pointer itself, if the pointer has address
0x123456
, then the function is going to be able to modify what’s the object that is in this address. But when I pass the address of a pointer, I’m passing the address of where this pointer number is allocated ?If I understood right, I’m passing the address of the variable that stores
0x123456
? Why the function needs it ?Also, suppose that I want to store
hw_device_ctx
in aunique_ptr
like this :std::unique_ptr<avbufferred> hw_pointer;
</avbufferred>How can I pass it to
av_hwdevice_ctx_create
? Because I get an error when I doav_hwdevice_ctx_create(&hw_pointer.get(),...
It says :
expression must be an lvalue or a function designator
-
Making new struct point to data from old struct without old struct deleting it
14 août 2019, par Guerlando OCsHere’s how I decode videos in ffmpeg :
AVFrame* avFrame;
avFrame = av_frame_alloc();
int receiveFrameResult = avcodec_receive_frame(avCodecContext, avFrame);Now my
AVFrame
struct has video data in itsuint8_t * data
field.I want to create my own struct
myNewStruct
which holds the data thatAVFrame
has inuint8_t * data[]
.The problem is that I don’t want to waste CPU time by copying value by value from
avFrame->data
tomyNewStruct->buffer
.I also can’t simply copy the data like this :
myNewStruct.buffer[i] = new uint8_t;
myNewStruct.buffer[i] = avFrame->data[i];because when
avFrame
gets destructed, it deletes the allocated data fordata
. I also can’t avoid deletingavFrame
because it contains other unuseful fields that I don’t want inmyNewStruct
.How should I make
myNewStruct->buffer
point to the same data asavFrame->data
points, but without worrying ifavFrame
is going to delete it ?UPDATE :
AVFrame
is from ffmpeg so I don’t have any control of its contents, therefore I cannot make its pointers of typeshared_ptr