
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (68)
-
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. -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (9786)
-
FFmpeg av_hwdevice_ctx_create returns ENOMEM
4 mars 2021, par lnogueirI am trying to perform h264 video encoding on a GPU using the ffmpeg's vaapi library.


I have been following this example from ffmpeg Github repo.


It fails for me here :


AVBufferRef* vaapi_encoder;
int err = av_hwdevice_ctx_create(&vaapi_encoder, AV_HWDEVICE_TYPE_VAAPI,
 NULL, NULL, 0);



This returns -12, which maps to
ENOMEM
(out of memory) error, but that doesn't make sense to me because I have plenty of memory.

For reference, this is my output after running 'vainfo' :


libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
 VAProfileMPEG2Simple : VAEntrypointVLD
 VAProfileMPEG2Main : VAEntrypointVLD
 VAProfileH264Main : VAEntrypointVLD
 VAProfileH264Main : VAEntrypointEncSliceLP
 VAProfileH264High : VAEntrypointVLD
 VAProfileH264High : VAEntrypointEncSliceLP
 VAProfileJPEGBaseline : VAEntrypointVLD
 VAProfileJPEGBaseline : VAEntrypointEncPicture
 VAProfileH264ConstrainedBaseline: VAEntrypointVLD
 VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
 VAProfileVP8Version0_3 : VAEntrypointVLD
 VAProfileHEVCMain : VAEntrypointVLD
 VAProfileHEVCMain10 : VAEntrypointVLD
 VAProfileVP9Profile0 : VAEntrypointVLD
 VAProfileVP9Profile2 : VAEntrypointVLD



Thanks !


-
php fread returns empty after one time of execution for popen
20 avril 2021, par HamedI'm trying to get real-time output from ffmpeg command with popen, but it returns empty after one time of execution in the loop.


<?php

$a = popen('ffpb -i mymovie.mp4 -vf subtitles=subtitles.srt mysubtitledmovie.mp4 2>&1', 'r');


while (true) {
 $b = fread($a, 2096);

 var_dump($b) . "<br />\n";

 ob_flush();
 flush();

 sleep(1);
}



The output : :


mymovie.mp4: 0%| | 0/61080.0 [00:00<?, ? frames/s]"
string(105) "Unexpected exception: 'ascii' codec can't encode characters in position 43-47: ordinal 
not in range(128)
"
string(0) ""
string(0) ""
string(0) ""



-
Fix misc swapped dot and carriage returns in av_log calls.
3 août 2012, par Clément BœschFix misc swapped dot and carriage returns in av_log calls.