
Recherche avancée
Médias (3)
-
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
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (75)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
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 ;
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (9383)
-
How to save an SDL bitmap to memory and load it back ?
19 novembre 2012, par NavI have a bunch of RWops functions :
static int myseekfunc(SDL_RWops *context, int offset, int whence) { SDL_SetError("Can't seek in this kind of RWops"); return(-1); }
static int myreadfunc(SDL_RWops *context, void *ptr, int size, int maxnum) { memset(ptr,0,size*maxnum); return(maxnum); }
static int mywritefunc(SDL_RWops *context, const void *ptr, int size, int num) { return(num); }
static int myclosefunc(SDL_RWops *context)
{
if(context->type != 0xdeadbeef) { SDL_SetError("Wrong kind of RWops for myclosefunc()"); return(-1); }
free(context->hidden.unknown.data1);
SDL_FreeRW(context);
return(0);
}
// Note that this function is NOT static -- we want it directly callable from other source files
SDL_RWops *MyCustomRWop()
{
SDL_RWops *c=SDL_AllocRW();
if(c==NULL) return(NULL);
c->seek =myseekfunc;
c->read =myreadfunc;
c->write=mywritefunc;
c->close=myclosefunc;
c->type =0xdeadbeef;
printf("deadbeef=%d\n",c->type);
c->hidden.unknown.data1=malloc(256);//IS THIS CORRECT?
return(c);
}with which I'm trying to write a BMP into memory and then extract it back. The below code is from tutorial02.
Two problems I'm facing are :
1. Unless I callSDL_DisplayYUVOverlay
, theSDL_SaveBMP
function outputs a blank BMP file to the hard disk. How can I output a BMP file without having to callSDL_DisplayYUVOverlay
?
2. Although I'm able to save the BMP to memory withSDL_SaveBMP_RW
and free the memory with filestream->close, I'm unable to load the BMP back from memory withSDL_SaveBMP
. The application crashes while trying to load it. Is it because of thec->hidden.unknown.data1=malloc(256);
code above ? What would be the right way of allocating this memory ?AVFormatContext *pFormatCtx = NULL;
int i, videoStream;
AVCodecContext *pCodecCtx = NULL;
AVCodec *pCodec = NULL;
AVFrame *pFrame = NULL;
AVPacket packet;
SDL_Overlay *bmp = NULL;
SDL_Surface *screen = NULL;
SDL_Surface *screen2 = NULL;
SDL_Rect rect;
....
....
if(frameFinished)
{
SDL_LockYUVOverlay(bmp);//-----------lock
AVPicture pict;
pict.data[0] = bmp->pixels[0];
pict.data[1] = bmp->pixels[2];
pict.data[2] = bmp->pixels[1];
pict.linesize[0] = bmp->pitches[0];
pict.linesize[1] = bmp->pitches[2];
pict.linesize[2] = bmp->pitches[1];
// Convert the image into YUV format that SDL uses
sws_scale( sws_ctx, (uint8_t const * const *)pFrame->data, pFrame->linesize, 0, pCodecCtx->height, pict.data, pict.linesize );
SDL_UnlockYUVOverlay(bmp);//-----------unlock
rect.x = 0;
rect.y = 0;
rect.w = pCodecCtx->width;
rect.h = pCodecCtx->height;
SDL_DisplayYUVOverlay(bmp, &rect);
++i;
SDL_RWops *filestream = MyCustomRWop();//SDL_AllocRW();
SDL_SaveBMP_RW (screen, filestream, i);
screen2 = SDL_LoadBMP_RW(filestream,1);//LOADING IS THE PROBLEM HERE. DON'T KNOW WHY
filestream->close;
SDL_SaveBMP(screen, filepointer); -
tests/*.sh : Switch back to /bin/sh.
27 novembre 2014, par Erik de Castro Lopotests/*.sh : Switch back to /bin/sh.
Jan Stary reported that on OpenBSD bash isn’t located in /bin/
which means that the test fail. He also noted that there didn’t
seem to be anything bash specific in the tests.This patch takes some suggestions from Jan, plus a few fixes tested
on Debian using the bin/sh provided by bash and dash.Suggested-by : Jan Stary <hans@stare.cz>
- [DH] test/common.sh.in
- [DH] test/test_bins.sh
- [DH] test/test_compression.sh
- [DH] test/test_flac.sh
- [DH] test/test_grabbag.sh
- [DH] test/test_libFLAC++.sh
- [DH] test/test_libFLAC.sh
- [DH] test/test_metaflac.sh
- [DH] test/test_replaygain.sh
- [DH] test/test_seeking.sh
- [DH] test/test_streams.sh
- [DH] test/test_wrapper.sh
-
How to convert mpeg-dash files back to mp4 or mkv via FFMPEG
15 janvier 2017, par Saif UllahRecently I tried downloading a video file via a program called "video cache view", it created two video files instead of one numbered as mpegdashtmp1.mp4 which are i guess in some mpeg-dash format. I searched about it and came to know that out of these two files one should contain the audio and the other will be the video part. How can I convert those files to mp4/mkv via FFMPEG.