
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (106)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (11695)
-
ffmpeg : Use actual frame dimensions in checks in sub2video_update()
15 août 2015, par Michael Niedermayer -
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
-
How to get actual PTS and DTS after frame decoding with libavcodec of FFmpeg
17 décembre 2022, par ElijaC++, FFmpeg, libavcodec, video frames decoding.


To parse data from the network and split it into frames, I use the
av_parser_parse2(_parser, _context, &_packet_encoded_frame->data, &_packet_encoded_frame->size, data, data_size, pts ? pts : AV_NOPTS_VALUE, dts ? dts : AV_NOPTS_VALUE, 0)
function to which I pass non-zero values PTS and DTS as inputs.

Next, I use the
avcodec_send_packet(_context, _packet_encoded_frame)
andavcodec_receive_frame(_context, _frame)
functions to decode the frames.

Why do I ALWAYS have PTS(_frame->pts) and DTS(_frame->pkt_dts) equal to AV_NOPTS_VALUE after SUCCESSFUL frame decoding ? How can I get the actual PTS and DTS values of that frame after decoding a frame ? What am I doing wrong ?