
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (25)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
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 ;
Sur d’autres sites (4664)
-
Anomalie #3894 : Jointures (erronées ?) avec les boucles documents et leurs critères
26 janvier 2017, par tcharlss (*´_ゝ`)J’ai testé avec divers objets que j’avais sous la main pour voir, on reprenant le même procédé :
- un document attaché à 2 objets, vu=oui pour le N°1, et vu=non pour le N°2
id_patate=1
dans l’URL{id_patate?}{vu=non}
dans la boucle
Ça n’a fait la bonne jointure que pour 1 seul objet, donc c’est plutôt une exception on dirait.
Rigolo : le nom de la jointure superflue s’incrémente entre chaque test, j’ai fini à L8 ! (L5 je l’ai enlevé, c’était sur les auteurs, donc même ambiguïté que pour les mots clés)Album [OK] :¶
SELECT documents.fichier FROM spip_documents AS `documents` INNER JOIN spip_documents_liens AS L1 ON ( L1.id_document = documents.id_document ) WHERE (documents.taille > 0 OR documents.distant=’oui’) AND (L1.id_objet = 1) AND (L1.objet = ’album’) AND (L1.vu = ’non’) GROUP BY documents.id_document
Brève [PAS OK] :¶
SELECT documents.fichier FROM spip_documents AS `documents` INNER JOIN spip_documents_liens AS L2 ON ( L2.id_document = documents.id_document ) INNER JOIN spip_documents_liens AS L1 ON ( L1.id_document = documents.id_document ) WHERE (documents.taille > 0 OR documents.distant=’oui’) AND (L2.id_objet = 1) AND (L2.objet = ’breve’) AND (L1.vu = ’non’) GROUP BY documents.id_document
Forum [PAS OK] :¶
SELECT documents.fichier FROM spip_documents AS `documents` INNER JOIN spip_documents_liens AS L3 ON ( L3.id_document = documents.id_document ) INNER JOIN spip_documents_liens AS L1 ON ( L1.id_document = documents.id_document ) WHERE (documents.taille > 0 OR documents.distant=’oui’) AND (L3.id_objet = 1) AND (L3.objet = ’forum’) AND (L1.vu = ’non’) GROUP BY documents.id_document
Mot [PAS OK] (là c’est un peu spécial car il y a une ambiguïté avec mots_liens) :¶
SELECT documents.fichier FROM spip_documents AS `documents` INNER JOIN spip_mots_liens AS L4 ON ( L4.id_objet = documents.id_document AND L4.objet=’document’) INNER JOIN spip_documents_liens AS L1 ON ( L1.id_document = documents.id_document ) WHERE (documents.taille > 0 OR documents.distant=’oui’) AND (L4.id_mot = 1) AND (L1.vu = ’non’) GROUP BY documents.id_document
Abonnement [PAS OK] :¶
SELECT documents.fichier FROM spip_documents AS `documents` INNER JOIN spip_documents_liens AS L6 ON ( L6.id_document = documents.id_document ) INNER JOIN spip_documents_liens AS L1 ON ( L1.id_document = documents.id_document ) WHERE (documents.taille > 0 OR documents.distant=’oui’) AND (L6.id_objet = 1) AND (L6.objet = ’abonnement’) AND (L1.vu = ’non’) GROUP BY documents.id_document
Ticket [PAS OK] :¶
SELECT documents.fichier FROM spip_documents AS `documents` INNER JOIN spip_documents_liens AS L7 ON ( L7.id_document = documents.id_document ) INNER JOIN spip_documents_liens AS L1 ON ( L1.id_document = documents.id_document ) WHERE (documents.taille > 0 OR documents.distant=’oui’) AND (L7.id_objet = 1) AND (L7.objet = ’ticket’) AND (L1.vu = ’non’) GROUP BY documents.id_document
Adresse [PAS OK] :¶
SELECT documents.fichier FROM spip_documents AS `documents` INNER JOIN spip_documents_liens AS L8 ON ( L8.id_document = documents.id_document ) INNER JOIN spip_documents_liens AS L1 ON ( L1.id_document = documents.id_document ) WHERE (documents.taille > 0 OR documents.distant=’oui’) AND (L8.id_objet = 1) AND (L8.objet = ’adresse’) AND (L1.vu = ’non’) GROUP BY documents.id_document
-
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.
-
FFmpeg : Encode Rgb Frames (AvFrames) to H264
9 juillet 2021, par NoviceAndNoviceWhen I encode Rgb24 frame with H264 I get "input width is greater than than stride"...


By the way if I give raw image which is Yuv420p, ffmpeg successfully encodes it...


What I wanted to know is :


i) Do we have to give Yuv format for encoding ? Can't give rgb frame for encoding h264 ?

ii) If we can give rgb frame, what is the trick ?