Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (13)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately 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, par

    Le 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, par

    Un 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 Jan

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

    &#xA;

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

    &#xA;

  • Permission denied when using matplotlib animation

    19 juillet 2020, par Nate Stemen

    Trying to make an animation using example code found here. I have installed both ffmpeg and yasm, but when I run the code, including the line

    &#xA;&#xA;

    ani.save(&#x27;test.mp4&#x27;, writer = FFwriter, dpi = 40)&#xA;

    &#xA;&#xA;

    I get the following error.

    &#xA;&#xA;

    PermissionError: [Errno 13] Permission denied&#xA;

    &#xA;&#xA;

    (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 of ffmpeg but still can't get the error to go away.

    &#xA;&#xA;

    EDIT&#xA;Here is my imports and such to include more detail

    &#xA;&#xA;

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

    &#xA;

  • How do I properly save an animation involving circles with matplotlib.animation and ffmpeg ?

    12 juillet 2020, par bghost

    I 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.

    &#xA;

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

    &#xA;

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

    &#xA;

    import numpy as np&#xA;import matplotlib.pyplot as plt&#xA;import matplotlib.animation as animation&#xA;&#xA;fig = plt.figure(figsize=(11, 7))&#xA;ax = plt.axes(xlim=(-1.2, 1.2), ylim=(-0.7, 0.7))&#xA;ax.set_aspect(&#x27;equal&#x27;)&#xA;&#xA;dict_circles = {}&#xA;dict_circles[&#x27;ring&#x27;] = plt.Circle((-0.5, 0), 0.5, color=&#x27;b&#x27;, lw=2, fill=False)&#xA;dict_circles[&#x27;disk&#x27;] = plt.Circle((-0.5, 0), 0.5, color=&#x27;b&#x27;, alpha=0.2)&#xA;&#xA;def init():&#xA;    for circle in dict_circles.values():&#xA;        ax.add_patch(circle)&#xA;    return(dict_circles.values())&#xA;&#xA;nb_frames = 100&#xA;X_center = np.linspace(-0.5, 0.5, nb_frames)&#xA;&#xA;def animate(frame):&#xA;    for circle in dict_circles.values():&#xA;        circle.center = (X_center[frame], 0)&#xA;        ax.add_patch(circle)&#xA;    return(dict_circles.values())&#xA;&#xA;ani = animation.FuncAnimation(fig, animate, init_func=init, frames=nb_frames, blit=True, interval=10, repeat=False)&#xA;plt.show()&#xA;&#xA;plt.rcParams[&#x27;animation.ffmpeg_path&#x27;] = &#x27;C:\\ffmpeg\\bin\\ffmpeg.exe&#x27;&#xA;Writer = animation.writers[&#x27;ffmpeg&#x27;]&#xA;writer_ref = Writer(fps=15, bitrate=1800)&#xA;&#xA;ani.save(&#x27;Blue circle.mp4&#x27;, writer=writer_ref)&#xA;

    &#xA;