
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 (58)
-
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 (...) -
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 -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (11198)
-
Matplotlib animation won't save
17 décembre 2014, par abe678I am trying to learn how to create matplotlib animations by using Jake Vanderplas’s basic example, but I’m having trouble getting the figure to save. I installed ffmpeg on my Mac via homebrew.
The only changes that I have made are to add :
import matplotlib
matplotlib.use('TKAgg')When I run this script I receive the following error :
anim.save('basic_animation.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
TypeError: save() got an unexpected keyword argument 'extra_args'Based on the many other similar questions, I’ve tried setting the ffmpeg path with
plt.rcParams['animation.ffmpeg_path']
but that also gives me an error :
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/__init__.py", line 660, in __setitem__
See rcParams.keys() for a list of valid parameters.' % (key,))
KeyError: 'animation.ffmpeg_path is not a valid rc parameter.See rcParams.keys() for a list of valid parameters.'After removing the rcParams setting, I also tried adjusting the save command to avoid the aforementioned TypeError :
try:
anim.save('basic_animation.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
except TypeError:
anim.save('basic_animation.mp4', fps=30)This runs with no error, but the mp4 file is not created. I have read over every thread and tried every solution I can find, but nothing changes. The plt.show() call works just fine. Can anyone please point me in the right direction ? Thanks !
Update : I’m using matplotlib version 1.1.1
-
Installed ffmpeg, added to path, still can't save animation from Jupyter Notebook
29 avril 2017, par dredre_420I’m trying to simulate a two-body orbit system working on Jupyter Notebook (python). Since the animation can’t display in-line I tried installing ffmpeg and adding it to the system path using steps outlined here : http://adaptivesamples.com/how-to-install-ffmpeg-on-windows/.
However, when I try to save my animation using
anim.save('orbit.mp4', fps=15, extra_args=['-vcodec', 'libx264'])
, I still get the error message :ValueError: Cannot save animation: no writers are available. Please install mencoder or ffmpeg to save animations.
Not sure what else to try at this point, very inexperienced programmer here.
-
encoding wav file for sample
23 février 2017, par deshuI saw one sample in encoding wav file,here is the sample
in this part of code have doubt :
/* encode a single tone sound */
float t, tincr;
t = 0;
tincr = 2 * M_PI * 440.0 / c->sample_rate;
for(i=0; i<2000; i++) {
for(j=0;j* encode the samples */what is 2000 here,in basis of what we have to give this value,because of this i thing my encoding is not correct,any suggestion will be helpfull