
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 (100)
-
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 (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (10497)
-
node.js ffprobe meta data from cp1251 to utf8
23 décembre 2015, par SveratumThe system Centos 6.7 x64. Node.js (v.4.2.3). I get file (*.mp3) in the stream and extract metadata. The files are not stored. Everything in the stream. How can I convert the meta data from cp1251 in utf8 ? Modify the meta data in the file does not necessarily.
-
How to fill an AVFrame with audio data
8 mai 2020, par Denis Gottardellothis is a function taken from an ffmpeg example
How can I fill the frame with my data buffer (const uchar* data, int Length) ?



AVFrame *frame = OutputStreamAudio.pAVFrameTemp;
int j, i, v;
int16_t *q = (int16_t*)frame->data[0];

/* check if we want to generate more frames */
if (av_compare_ts(OutputStreamAudio.next_pts, OutputStreamAudio.pAVCodecContext->time_base, STREAM_DURATION, (AVRational){ 1, 1 }) >= 0) return NULL;
for (j = 0; j nb_samples; j++) {
 v = (int)(sin(OutputStreamAudio.t) * 10000);
 for (i = 0; i < OutputStreamAudio.pAVCodecContext->channels; i++) *q++ = v;
 OutputStreamAudio.t += OutputStreamAudio.tincr;
 OutputStreamAudio.tincr += OutputStreamAudio.tincr2;
}

frame->pts = OutputStreamAudio.next_pts;
OutputStreamAudio.next_pts += frame->nb_samples;

return frame;



-
How to force avcodec to use unaligned frame data planes ?
26 février 2015, par user3244284I have been searching high and low for an option to force avcodec to use unaligned memory for its AVFrame data.
Depending on the pixel format, the horizontal planes of an AVFrame->data may be padded with extra data to be aligned to memory for performance.
eg : a 1920 * 1080 video with 4 bytes per pixel will have 1920 * 4 = 7680 bytes per plane.
With avcodec if you are decoding this video it will create 7808 bytes per plane.
This adds 7808 - 7680 = 128 bytes of extra padding.
For my purposes I would like to force avcodec to use unaligned data so I can copy an entire continuous chunk of frame data instead of copying and formatting smaller pieces one at a time to a continuous chunk.
The following flag found in the headers :
/* encoding support
These flags can be passed in AVCodecContext.flags before initialization.
Note: Not everything is supported yet.
*/
/**
* Allow decoders to produce frames with data planes that are not aligned
* to CPU requirements (e.g. due to cropping).
*/
#define CODEC_FLAG_UNALIGNED 0x0001Setting this AVCodecContext.flags to be CODEC_FLAG_UNALIGNED, the assumption is that the AVFrame->data is now unaligned, this is not the case.
I’m not sure if I am looking at the right place or using this flag correctly.
Regards,
Curious George