
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 (13)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (4493)
-
Has anyone used the speech driven animation and can you make it work ?
16 août 2020, par hopw JanI'm talking about this repo. I installed all the dependencies but I can't make it work. Any help is highly appreciated ( :


I'm running python 3.7.5.


This is my code :


import sda
import scipy.io.wavfile as wav
from PIL import Image

va = sda.VideoAnimator(gpu=0, model_path="crema")# Instantiate the animator
fs, audio_clip = wav.read("example/audio.wav")
still_frame = Image.open("example/image.bmp")
vid, aud = va(frame, audio_clip, fs=fs)
va.save_video(vid, aud, "generated.mp4")



Sadly it doesn't seem to work and it gives me this error :


Warning (from warnings module):
 File "C:\Users\Alex\AppData\Local\Programs\Python\Python37\lib\site-packages\pydub\utils.py", line 170
 warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
Traceback (most recent call last):
 File "C:\Users\Alex\Desktop\test\test.py", line 8, in <module>
 vid, aud = va(frame, audio_clip, fs=fs)
NameError: name 'frame' is not defined
</module>


Spent about 2 hours and I can't do anything, I'm out of ideas.
If you take the time to help me thank you from the bottom of my heart.


-
Permission denied when using matplotlib animation
19 juillet 2020, par Nate StemenTrying to make an animation using example code found here. I have installed both
ffmpeg
andyasm
, but when I run the code, including the line


ani.save('test.mp4', writer = FFwriter, dpi = 40)




I get the following error.



PermissionError: [Errno 13] Permission denied




(where
FFwriter = animation.FFMpegWriter(fps = 30)
is defined in the beginning of my Jupyter doc). I have tried so much, but can't get anything to work. Even tried changing the permissions offfmpeg
but still can't get the error to go away.


EDIT
Here is my imports and such to include more detail



import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.animation as animation
plt.rcParams['animation.ffmpeg_path'] = '/usr/local/Cellar/ffmpeg/'
FFwriter = animation.FFMpegWriter(fps = 30)



-
How do I properly save an animation involving circles with matplotlib.animation and ffmpeg ?
12 juillet 2020, par bghostI recently tried out matplotlib.animation, and it's a wonderful tool. I can now make and save basic animations (ie that only involve straight lines) without any issues. However, when I made an animation involving circles, even though the interactive display was perfect, the saved mp4 file wasn't really satisfying. In the mp4 file, the edges of the circles were blurred, and if the circles were made semi-transparent (ie with an alpha value < 1), they all suddenly became completely opaque after a couple of frames. I suspected it was due to the fact that my bitrate wasn't high enough, but I went up to 10000 kb/s (instead of 1800), and exactly the same phenomenon occurred.


What can be done to solve these 2 issues (blurred edges + negated transparency) in the generated mp4 file ?


Here is a simple animation that describes what I just said :


import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation

fig = plt.figure(figsize=(11, 7))
ax = plt.axes(xlim=(-1.2, 1.2), ylim=(-0.7, 0.7))
ax.set_aspect('equal')

dict_circles = {}
dict_circles['ring'] = plt.Circle((-0.5, 0), 0.5, color='b', lw=2, fill=False)
dict_circles['disk'] = plt.Circle((-0.5, 0), 0.5, color='b', alpha=0.2)

def init():
 for circle in dict_circles.values():
 ax.add_patch(circle)
 return(dict_circles.values())

nb_frames = 100
X_center = np.linspace(-0.5, 0.5, nb_frames)

def animate(frame):
 for circle in dict_circles.values():
 circle.center = (X_center[frame], 0)
 ax.add_patch(circle)
 return(dict_circles.values())

ani = animation.FuncAnimation(fig, animate, init_func=init, frames=nb_frames, blit=True, interval=10, repeat=False)
plt.show()

plt.rcParams['animation.ffmpeg_path'] = 'C:\\ffmpeg\\bin\\ffmpeg.exe'
Writer = animation.writers['ffmpeg']
writer_ref = Writer(fps=15, bitrate=1800)

ani.save('Blue circle.mp4', writer=writer_ref)