
Recherche avancée
Autres articles (31)
-
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. -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site
Sur d’autres sites (6473)
-
How to find the actual size occupied by an AVFrame ?
23 septembre 2013, par jsp99The main task at hand is to find the actual size of a decoded
AVFrame
.Here is some background information about the problem -
I wrote a program which takes as input a media file and displays all the video frames of the file, on the screen. My Code (written in C using SDL and ffmpeg) worked perfectly with .wmv files. When it came to.mkv
files, it failed (SIGSEGV
) due to the following reason :Example : Suppose I have a decoded frame from my video stream of file
(filename.mkv)
inAVFrame *pFrame
. The frame has a pix_fmt (pFrame->pix_fmt
) ofyuv420p
. It has dimensions640 * 346
. The Y-plane has it's linesize (pFrame->linesize[0]
) as672
.I think you get the point here. When I use
avpicture_get_size()
to get the size of the frame, it calculates a wrong size. It takespix_fmt
,width
andheight
as arguments. Nowhere does it consider672
instead of640
.avpicture_get_size() : Calculates the size in bytes that a picture of the given width and height would occupy if stored in the given picture format.
I got around this problem by adding some
yuv420p
frame specific code, which can find the size of the frame in situations like above.- Can someone explain why are most of the decoded frames (from video streams of most of the formats) this way ? And why is it not this way with the
wmv
format ?
But if I have to find the actual size occupied by an
AVFrame
of another format (Eg: yuv410p
), I have to write the format specific code again. Coming to the main problem,-
How can I find the actual size occupied the decoded
AVFrame
(size in bytes occupied by thedata
of theAVFrame
) ? -
I tried using
av_image_get_buffer_size()
, but I couldn't understand how to use thealign
parameter. Can someone explain the usage of the parameteralign
? Tried using many other functions inpixdesc.c
, but I am missing something.
- Can someone explain why are most of the decoded frames (from video streams of most of the formats) this way ? And why is it not this way with the
-
Revision 3c4e9e341f : Adding SSE2 optimized vp9_short_idct32x32_1_add function. Change-Id : I4b1c6bb9f
2 octobre 2013, par Dmitry KovalevChanged Paths :
Modify /vp9/common/vp9_rtcd_defs.sh
Modify /vp9/common/x86/vp9_idct_intrin_sse2.c
Adding SSE2 optimized vp9_short_idct32x32_1_add function.Change-Id : I4b1c6bb9ff615f5872b96ed07dbf0f5e18e63643
-
Revision c64e23832f : Adding const to function arguments. Function list : tx_counts_to_branch_counts
30 septembre 2013, par Dmitry KovalevChanged Paths :
Modify /vp9/common/vp9_entropymode.c
Modify /vp9/common/vp9_entropymode.h
Adding const to function arguments.Function list :
tx_counts_to_branch_counts_32x32
tx_counts_to_branch_counts_8x8
tx_counts_to_branch_counts_8x8
update_ct
update_ct2
update_mode_probsChange-Id : I120d8945a34378cf285d6bd415e23de1d522cf2f