
Recherche avancée
Autres articles (105)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (14846)
-
How do I pre-allocate the memory for libavcodec to write decoded frame data ?
18 décembre 2018, par codemonkeyI am trying to decode a video with libav by following the demo code : here
I need to be able to control where the frame data in
pFrame->data[0]
is stored. I have tried settingpFrame->data
to my own buffer as follows :// Determine required buffer size and allocate buffer
int numBytes = av_image_get_buffer_size(pixFmt, width, height, 1);
(uint8_t*) dataBuff = (uint8_t*) malloc (numBytes * sizeof(uint8_t));
// Assign buffer to image planes in pFrame
av_image_fill_arrays(frame->data, frame->linesize, dataBuff, pixFmt, width,
height, 1);While this does set
pFrame->data
to bedataBuff
(if I print their addresses, they are the same), this callret = avcodec_receive_frame(pCodecContext, pFrame)
to receive the decoded data always writes the data to a different address. It seems to manage its own memory somewhere in the underlying API and ignores thedataBuff
that I assigned topFrame
right before.So I’m stuck—how can I tell
libav
to write decoded frame data to memory that I pre-allocate ? I’ve seen people ask similar questions online and in the libav forum but haven’t been able to find an answer.Many thanks
-
How to make a video file from H264 encoded data [on hold]
4 décembre 2014, par vominhtien961476I received
H264
encoded data from Camera (frame by frame). Then I want to make a video File (AVI, MP4,...). So Is there any simple way to put directly these data to container whithout decode the h264 data -> convert to Bitmap -> encode again to make a video file as I did. -
Get CC(Closed Caption) data from video file using ffmpeg
18 septembre 2014, par mail2vgunaI am using the following ffmpeg command to extract the CC(Closed Caption) data from .ts file.
ffmpeg -i input.ts -an -vn -bsf:s mov2textsub -scodec copy -f rawvideo sub.txt
FFMPEG -i input.ts -vn -an -codec:s:0.1 srt sub.srt
ffmpeg -threads 4 -i input.ts -vn -an -codec:s:0.2 srt englishSubtitle.srtBut i did not get the cc data, its says "invalid frame dimensions 0x0" error.
Help me to extract the cc data from .ts file using ffmpeg.