Recherche avancée

Médias (91)

Autres articles (67)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (9540)

  • avpacket : add a function for wrapping existing data as side data

    4 octobre 2015, par Anton Khirnov
    avpacket : add a function for wrapping existing data as side data
    
    • [DBH] doc/APIchanges
    • [DBH] libavcodec/avcodec.h
    • [DBH] libavcodec/avpacket.c
    • [DBH] libavcodec/version.h
  • mpeg12dec : Extract CC user data into frame side data

    26 novembre 2013, par John Stebbins
    mpeg12dec : Extract CC user data into frame side data
    

    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DBH] doc/APIchanges
    • [DBH] libavcodec/mpeg12dec.c
    • [DBH] libavutil/frame.h
    • [DBH] libavutil/version.h
  • Unable to save Matplotlib animations using ffmpeg

    23 décembre 2017, par jtpointon

    I have installed ffmpeg and added it to path, and checked it works in command prompt, but I am still unable to save animations. I have tried creating a sin wave that will animate when I don’t try to save it, but throws an error when I do to demonstrate ;

    from __future__ import division

    import numpy as numpy
    from matplotlib import pyplot as pyplot
    from matplotlib import animation

    fig = pyplot.figure()
    ax = pyplot.axes(xlim=(0, 2), ylim=(-2, 2))
    line, = ax.plot([], [], lw=2)

    def init():
       line.set_data([], [])
       return line,

    def animate(i):
       x = numpy.linspace(0, 2, 1000)
       y = numpy.sin(2 * numpy.pi * (x - 0.01 * i))
       line.set_data(x, y)
       return line,

    anim = animation.FuncAnimation(fig, animate, init_func=init, frames=200,
       interval=20, blit=True, repeat=False)

    FFwriter = animation.FFMpegWriter()
    anim.save('animation_testing.mp4', writer = FFwriter)

    pyplot.show()

    When I try to run this it throws the same errors over and over again, I assume as it iterates through each frame ;

    Traceback (most recent call last):
     File "c:\users\james\appdata\local\enthought\canopy\user\lib\site-
    packages\matplotlib\backends\backend_wx.py", line 212, in _on_timer
       TimerBase._on_timer(self)
     File "c:\users\james\appdata\local\enthought\canopy\user\lib\site-
    packages\matplotlib\backend_bases.py", line 1273, in _on_timer
       ret = func(*args, **kwargs)
     File "c:\users\james\appdata\local\enthought\canopy\user\lib\site-
    packages\matplotlib\animation.py", line 910, in _step
       still_going = Animation._step(self, *args)
     File "c:\users\james\appdata\local\enthought\canopy\user\lib\site-
    packages\matplotlib\animation.py", line 769, in _step
       self._draw_next_frame(framedata, self._blit)
     File "c:\users\james\appdata\local\enthought\canopy\user\lib\site-
    packages\matplotlib\animation.py", line 787, in _draw_next_frame
       self._pre_draw(framedata, blit)
     File "c:\users\james\appdata\local\enthought\canopy\user\lib\site-
    packages\matplotlib\animation.py", line 800, in _pre_draw
       self._blit_clear(self._drawn_artists, self._blit_cache)
     File "c:\users\james\appdata\local\enthought\canopy\user\lib\site-
    packages\matplotlib\animation.py", line 840, in _blit_clear
       a.figure.canvas.restore_region(bg_cache[a])
    KeyError:

    Since it mentioned an error in _blit_clear I tried changing blit to False in FuncAnimation, but then it wouldn’t animate in the pyplot.show() when I didn’t try to save.

    I’m unsure as to where the error could be and so can’t work out how to fix this.

    I’m using Windows 10, python 2.7.6 and matplotlib version 1.4.2

    Many Thanks !