
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (61)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 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 (...)
Sur d’autres sites (9012)
-
Merge commit 'd7320ca3ed10f0d35b3740fa03341161e74275ea'
31 octobre 2017, par James Almer -
C++ ffmpeg sws_getCachedContext seg fault when reading opengl buffer
3 juillet 2022, par user19068953I made a program that draws some stuff on opengl, then reads the frames on the screen as rgba and encodes it as a yuv420 video, but I get a segfault when I try to send the red opengl frame to sws_getCachedContext. I used the muxing.c as the encoder and my code is as follows (I used align 256 because i have another framebuffer that uses 128) :


constexpr int ALIGNMENT = 256;
 if (posix_memalign((void**)&state.glBuffer, ALIGNMENT, gl_width * gl_height * 4) != 0) 
 {
 VI_ERROR("Couldn't allocate frame buffer ");
 return false;
 }
 REGISTER("done, returning");
 return true;



Then i read the frame after drawing the stuff i want :


glReadPixels(0, 0,
 gl_width, gl_height, 
 GL_RGBA, GL_UNSIGNED_BYTE, 
 (GLvoid*) state.glBuffer);



The window is the same size as the gl_buffer (I know the result will be flipped, thats ok)


And finally i send it to the encoder(rgb_data is glBuffer) :


void video_encoder::set_frame_yuv_from_rgb(AVFrame *frame, struct SwsContext *sws_context) {
 const int in_linesize[1] = { 4 * width };

width = gl_width;
height = gl_height;
sws_context = sws_getCachedContext(sws_context,
 width, height, AV_PIX_FMT_RGBA,
 width, height, AV_PIX_FMT_YUV420P,
 0, 0, 0, 0);
 
sws_scale(sws_context, (const uint8_t * const *)&rgb_data, in_linesize, 0,
 height, frame->data, frame->linesize);
}



I get a seg fault on sws_getCachedContext any idea why this happens and how do i fix it ?


Edit : width = 512, height = 256, valgrind says : Invalid read of size 16.


-
lavf : Remove a now useless parameter to ffurl_register_protocol
29 octobre 2013, par Martin Storsjölavf : Remove a now useless parameter to ffurl_register_protocol
This was added in 9b07a2dc02e9 as an ABI hack to allow older
code built with lavf 52 to register protocols even if the size
of the URLProtocol struct was increased. Later, registering
protocols from outside of lavf was removed and this workaround
isn’t needed any longer since lavf 53.This removes an unchecked malloc and a memory leak for the cases
when this workaround actually was used - which it hasn’t since
lavf 53.Signed-off-by : Martin Storsjö <martin@martin.st>