
Recherche avancée
Autres articles (58)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (7872)
-
Révision 18651 : lors de la restauration, on utilise sql_insertq_multi
28 octobre 2011, par cedric -Mais si une des donnees echoue, toutes les suivantes de la serie echouent aussi. On verifie donc que le nombre d’enregistrement dans la table est coherent avec le nombre de données insérées. Dans le cas contraire on rejoue l’insertion donnée par donnée pour être sûr que seules les lignes corrompues (...)
-
Révision 108131 : [ux] Placer la prévisualisation du forum sous le forum (au lieu de dessus)
20 décembre 2017, par erational@erational.org -
FFMPEG zip stream c++
26 janvier 2018, par Javier RamírezI have the following code at the start to load a video from a file
SwsContext *img_convert_ctx = NULL;
AVFormatContext *pFormatCtx = NULL;
AVCodecContext *pCodecCtx = NULL;
AVCodec *pCodec = NULL;
AVFrame *pFrameRGB = NULL;
AVFrame *pFrame = NULL;
uint8_t *buffer = NULL;
AVPacket packet;
av_register_all();
if(avformat_open_input(&pFormatCtx,"video.avi",NULL,NULL) != 0)return GL_FALSE;
if(avformat_find_stream_info(pFormatCtx,NULL) < 0)return GL_FALSE;
av_dump_format(pFormatCtx,0,"video.avi",0);
pCodecCtx = pFormatCtx->streams[0]->codec;
pCodec = avcodec_find_decoder(pCodecCtx->codec_id);
if(pCodec == NULL)return GL_FALSE;
if(avcodec_open2(pCodecCtx,pCodec,NULL) < 0)return GL_FALSE;
pFrame = av_frame_alloc();
pFrameRGB = av_frame_alloc();
GLint numBytes;
numBytes = avpicture_get_size(AV_PIX_FMT_RGB24,pCodecCtx->width,pCodecCtx->height); //obsoleto
buffer = (uint8_t *)av_malloc(numBytes*sizeof(uint8_t));
avpicture_fill((AVPicture *)pFrameRGB,buffer,AV_PIX_FMT_RGB24,pCodecCtx->width,pCodecCtx->height); //obsoleto
img_convert_ctx = sws_getContext(pCodecCtx->width,pCodecCtx->height,pCodecCtx->pix_fmt,pCodecCtx->width,pCodecCtx->height,AV_PIX_FMT_RGB24,SWS_BICUBIC,NULL,NULL,NULL);
GLuint fotograma;
GLuint vboLienzo;
GLuint vboImagen;
GLuint CuadroAnc;
GLuint CuadroAlt;
double ticks = 0.0;
int frameFin = 0;
glGenTextures(1,&fotograma);
glBindTexture(GL_TEXTURE_RECTANGLE_ARB,fotograma);
glTexParameteri(GL_TEXTURE_RECTANGLE_ARB,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_RECTANGLE_ARB,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexImage2D(GL_TEXTURE_RECTANGLE_ARB,0,GL_RGB,pCodecCtx->width,pCodecCtx->height,0,GL_RGB,GL_UNSIGNED_BYTE,NULL);
CuadroAnc = pCodecCtx->width;
CuadroAlt = pCodecCtx->height;
GLfloat anc = (GLfloat)pCodecCtx->width/2;
GLfloat alt = (GLfloat)pCodecCtx->height/2;
GLfloat datos[8] = {-anc,alt,-anc,-alt,anc,-alt,anc,alt};
GLfloat dtext[8] = {0.0,0.0,0.0,alt*2.0f,anc*2.0f,alt*2.0f,anc*2.0f,0.0};
glGenBuffers(1,&vboLienzo);
glBindBuffer(GL_ARRAY_BUFFER,vboLienzo);
glBufferData(GL_ARRAY_BUFFER,sizeof(datos),datos,GL_STATIC_DRAW);
glGenBuffers(1,&vboImagen);
glBindBuffer(GL_ARRAY_BUFFER,vboImagen);
glBufferData(GL_ARRAY_BUFFER,sizeof(dtext),dtext,GL_STATIC_DRAW);But now I want to read the video from a zip file. I already have how to extract the data from the zip file, but I do not know what function of ffmpeg I should use to read the data from the zip file.