
Recherche avancée
Autres articles (87)
-
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 ;
-
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 (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (8201)
-
Evolution #2759 (Nouveau) : aucun message d’erreur si le logo est trop grand
15 juin 2012, par erational -une broutille : si le site est configuré avec une limite de taille d’upload pour le logo ex. define(’_LOGO_MAX_WIDTH’,1500) ; si le rédacteur essaie d’uploader un logo dépassant cette limite, l’upload échoue mais aucun message n’est affiché et le rédacteur ne comprend pas pourquoi cela ne fonctionne (...)
-
avfilter/vf_corr : for all zero returns zero score instead of 1
3 décembre 2023, par Paul B Mahol -
libavcodec avcodec_open2 returns -22
28 juillet 2012, par buchtakI am trying to learn how to encode video using libavcodec library. I use the following initialization :
avcodec_register_all();
// This works fine.
AVCodec *avcodec = avcodec_find_encoder( CODEC_ID_H264 );
AVCodecContext *avctx = avcodec_alloc_context3( avcodec );
avctx->bit_rate = 400000;
avctx->width = 640;
avctx->height = 480;
avctx->time_base.den = 15;
avctx->time_base.num = 1;
avctx->gop_size = 10;
avctx->max_b_frames = 1;
avctx->pix_fmt = PIX_FMT_YUV420P;
av_opt_set( avctx->priv_data, "preset", "slow", 0 );
// ret should be zero, but it's negative
int ret = avcodec_open2( avctx, avcodec, NULL );However,
avcodec_open2(...)
always returns a negative value. Theavcodec_find_encoder(...)
works fine and the returned pointer is notNULL
. I use Win7 x64, 64-bit Zeranoe FFmpeg build fromhttp://ffmpeg.zeranoe.com/builds/
According to the readme the FFmpeg version is 2012-06-22 git-c17808c built with
--enable-libx264
. I also triedCODEC_ID_MPEG1VIDEO
and changing some of the initialization parameters, but no matter what I do, theavcodec_open2(...)
always returns value-22
. The decoding/encoding example provided with the Zeranoe build (it's the same one as http://ffmpeg.org/doxygen/trunk/api-example_8c-source.html) does not work either...