
Recherche avancée
Autres articles (54)
-
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
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 -
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 (...)
Sur d’autres sites (10040)
-
AVFrame confusion between width, height and linesize
27 août 2019, par Lucas ZanellaI’m trying to understand AVFrame, specially the linesize property.
Here’s my decoded AVFrame properties :
width = 640
height= 360
linesize[0] = 640
linesize[1] = 320
linesize[2] = 320It’s an YUV 420 planar image (
AV_PIX_FMT_YUVJ420P
)I’m reading this code and here’s the part that deals with AVFrame properties :
int linesize = qAbs(m_format.renderFrame->linesize[i]);
AVRational widthRational = params.yuvwidths[i];
AVRational heightRational = params.yuvheights[i];
int width = linesize * widthRational.num / widthRational.den;
int height = m_format.renderFrame->height * heightRational.num / heightRational.den;
glTexImage2D ( GL_TEXTURE_2D, 0, params.yuvInternalformat[i],width ,height, 0, params.yuvGlFormat[i], params.dataType, NULL);Where, for YUV420P,
widthRational
andheightRational
are1/1
and1/1
fori=0
, and1/2
and1/2
fori = 1,2
. AndyuvInternalformat
andyuvGlFormat
are alwaysGL_RED
.There are a few things that I can’t understand in ths code :
Why he takes an absolute value in
linesize
? Canlinesize
be negative ? There’s nothing about negative values in the documentation. I understand why he makes the fraction multiplication inheight
, but why inlinesize
? Shouldn’tlinesize
be the actualwidth
of the planar image and thus require no multiplication ?So what is
linesize
, how shouldwidth
andheight
be calculated in order to useglTexImage2D
? -
avcodec/v4l2_buffers : read height/width from the proper context
30 août 2019, par Aman Guptaavcodec/v4l2_buffers : read height/width from the proper context
Frames are generally dequeued into capture buffers, so using
the output properties here was incorrect. It happened to work
fine for decoding, since the output/capture buffers have the same
dimensions.For the v4l2 scaler, the dimensions can be different between output
and capture. Using the buffer's associated context makes this code
work correctly regardless of where the frame is coming from.Signed-off-by : Aman Gupta <aman@tmm1.net>
-
FFMPEG - height not divisible by 2
27 septembre 2019, par iSaBoi have an problem with ffmpeg. i would like to format a image sequence into a video. I use the followed command for this :
ffmpeg -framerate 24 -i image%04d.jpeg Project.mp4 -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2"
i have 4 pictures :
- image0001.jpeg
- image0002.jpeg
- image0003.jpeg
- image0004.jpeg
With this command, i get the following error :
[libx264 @ 000001f12e7a0540] height not divisible by 2 (1200x1599)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe
incorrect parameters such as bit_rate, rate, width or height
Conversion failed!Can someone tell me why this mistake comes and how can I fix it ?
Thanks