
Recherche avancée
Médias (2)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (9)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
D’autres logiciels intéressants
12 avril 2011, parOn ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
Videopress
Site Internet : (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (1349)
-
Revision 106594 : Quand il y a changement de borne, il faut faire un z+1 mini pour que ...
8 octobre 2017, par spip.franck@… — LogQuand il y a changement de borne, il faut faire un z+1 mini pour que les sites utilisant déjà le plug le sachent
-
How does FFmpeg calculate linesize alignment ?
27 août 2024, par yaskovdevI am new to video encoding. I am using FFmpeg library to decode the H.264 frame. I have the below C++ code (full code is here) :


AVCodecContext *context = create_codec_context();
AVFrame *decoded_frame = av_frame_alloc();
avcodec_send_packet(context, encoded_packet);
avcodec_receive_frame(context, decoded_frame);

std::cout << decoded_frame->width << "\n"; // prints 1620, as expected
std::cout << decoded_frame->linesize[0] << "\n"; // prints 1664!



What looks strange to me is the
linesize
of the decoded frame. Although thewidth
of the frame is1620
, thelinesize[0]
is1664
. According to this answer, thelinesize
is calculated taking alignment into consideration. In order to get1664
from1620
, one should apply64
as an alignment to the initial width.

My question is, where does this
64
alignment come from ? Searching through FFmpeg code did not give any results. Does the encoded frame itself already have this information ?

If afterwards I decide to "flatten" the decoded frame into a one-dimensional array using av_image_copy_to_buffer(), what alignment should I use ? Should it also be
64
?

-
FFmpeg : how does FFmpeg calculate linesize alignment ?
10 août 2021, par yaskovdevI am new to video encoding. I am using FFmpeg library to decode a H.264 frame. I have the below C++ code (full code is here) :


AVCodecContext *context = create_codec_context();
AVFrame *decoded_frame = av_frame_alloc();
int got_frame;
avcodec_decode_video2(context, decoded_frame, &got_frame, &encoded_frame);

std::cout << decoded_frame->width << std::endl; // prints 1620, as expected
std::cout << decoded_frame->linesize[0] << std::endl; // prints 1664!



What looks strange to me is the
linesize
of the decoded frame. Although thewidth
of the frame is1620
, thelinesize[0]
is1664
. According to this answer, thelinesize
is calculated taking alignment into consideration. In order to get1664
from1620
, one should apply64
as an alignment to the initial width.

My question is, where does this
64
alignment come from ? Searching through FFmpeg code did not give any results. Does the encoded frame itself already have this information ?

If afterwards I decide to "flatten" the decoded frame into a one-dimensional array using av_image_copy_to_buffer(), what alignment should I use ? Should it also be
64
?