
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (111)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)
Sur d’autres sites (9768)
-
AndroidBitmap_lockPixels always failing
25 avril 2013, par user1568549In my
jni
module I copy images tobitmaps
, which were previously
passed from my java application.I do this using
AndroidBitmap_lockPixels/AndroidBitmap_unlockPixels
.
Basically, it renders the image correctly, but there're strange
effects : sometimes the application gets stuck, or after some time
AndroidBitmap_lockPixels
always returns -3(ANDROID_BITMAP_RESULT_ALLOCATION_FAILED)
. I guess this is because I
update these bitmaps not from theGUI
thread, isn't it ?If so, what would be correct way to "post" this operation to the GUI
thread ? Is it possible in
jni
?Thanks.
-
AndroidBitmap_lockPixels failing with -3 code
24 avril 2013, par user1568549In my
jni
module I copy images tobitmaps
, which were previously
passed from my java application.I do this using
AndroidBitmap_lockPixels/AndroidBitmap_unlockPixels
.
Basically, it renders the image correctly, but there're strange
effects : sometimes the application gets stuck, or after some time
AndroidBitmap_lockPixels
always returns -3(ANDROID_BITMAP_RESULT_ALLOCATION_FAILED)
. I guess this is because I
update these bitmaps not from theGUI
thread, isn't it ?If so, what would be correct way to "post" this operation to the GUI
thread ? Is it possible in
jni
?Thanks.
-
How do I use ffmpeg with Python by passing File Objects (instead of locations to files on disk)
1er mai 2012, par Lyle PrattI'm trying to use ffmpeg with Python's subprocess module to convert some audio files. I grab the audio files from a URL and would like to just be able to pass the Python File Objects to ffmpeg, instead of first saving them to disk. It would also be very nice if I could just get back a file stream instead of having ffmpeg save the output to a file.
For reference, this is what I'm doing now :
tmp = "/dev/shm"
audio_wav_file = requests.get(audio_url)
## ## ##
## This is what I don't want to have to do ##
wavfile = open(tmp+filename, 'wrb')
wavfile.write(audio_wav_file.content)
wavfile.close()
## ## ##
conversion = subprocess.Popen('ffmpeg -i "'+tmp+filename+'" -y "'+tmp+filename_noext+'.flac" 2>&1', shell = True, stdout = subprocess.PIPE).stdout.read()Does anyone know how to do this ?
Thanks !