Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (51)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin 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 (...)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

Sur d’autres sites (7050)

  • Revision 80e5326cf2 : Use offset mode info when filling pc tree. Use the appropriate subblock offset

    23 mai 2014, par Alex Converse

    Changed Paths :
     Modify /vp9/encoder/vp9_encodeframe.c



    Use offset mode info when filling pc tree.

    Use the appropriate subblock offset mode info rather than the parent
    block base, when filling mbmi in the pc tree in nonrd_use_partition.
    This mimics what is done in the vertical case and what is done for
    both cases in nonrd_pick_partition.

    This change has little practical effect at the moment since in speed 5
    rt horizontal and vertical partitions are currently only used unpaired
    at edges of the picture.

    Change-Id : I4632f66ca84086dac56c7d36b45ddbe38a06f42a

  • Matplotlib : animation saved with trace

    25 mai 2020, par Thiziri yoor

    In the following Python code, I am trying to make an animation of a 2 rotating vectors around the origin. I am using matplotlib 3.2.1 and Python 3.8.2 on Ubuntu 20.04.

    



    
import numpy as np
import matplotlib.pyplot as plt

from matplotlib.animation import FuncAnimation


r = 2.0

def circle(phi):
    return np.array([r*np.cos(phi), r*np.sin(phi)])

fig, ax = plt.subplots(figsize=(10,6))
ax.axis([-3.5*r,3.5*r,-2.5*r,2.5*r])
ax.get_xaxis().set_visible(False)
ax.get_yaxis().set_visible(False)

# set equal aspect
ax.set_aspect("equal")

point, = ax.plot(0, r, marker="o")


traj = plt.Circle((0,0), r, fill=False, color='black')
ax.add_artist(traj) # draw the circular trajectory

def update(phi):

    x, y = circle(phi)
    point.set_data([x], [y])
    er_vec = np.array([0.5*x, 0.5*y])
    eθ_vec = np.array([-0.5*y, 0.5*x])


    er_arr = plt.arrow(x, y, dx=er_vec[0], dy=er_vec[1], head_width=0.1, head_length=0.2, color='gray')
    eθ_arr = plt.arrow(x, y, dx=eθ_vec[0], dy=eθ_vec[1], head_width=0.1, head_length=0.2, color='grey')

    annot_er = plt.text(1.7*x, 1.7*y, r'$\mathbf{e}_r$', fontsize=11)
    annot_eθ = plt.text(1.1*(x-0.5*y), 1.1*(y+0.5*x), r'$\mathbf{e}_\theta$', fontsize=11) 

    ax.add_artist(er_arr)    
    ax.add_artist(eθ_arr)
    ax.add_artist(annot_er)
    ax.add_artist(annot_eθ)
    return point, er_arr, eθ_arr, annot_er, annot_eθ

anim = FuncAnimation(fig, update, interval=10, blit=True, repeat=False, frames=np.linspace(0, 2.0*np.pi, 360, endpoint=False))
plt.show()


    



    The code above runs smoothly and without any issues.
This is a screenshot of the animation :

    



    enter image description here

    



    However, when I try to save the animation to an mp4 video :

    



    anim.save('anim-issue.mp4', writer='ffmpeg')


    



    the animation in the video appears with traces which, something like this screenshot :

    



    enter image description here

    



    Could someone help me fix that issue with the video animation ?

    



    I appreciate your help.

    



    Edit 1 : According to this answer this is due to blit=True. But that doesn't solve the issue here, since the arrows have no set_position method.

    



    Edit 2 : I found another related question with the same issue I described above but I don't know how to adapt my code to make it work as expected in both cases (plt.show, anim.save).

    


  • Fix configure problem with out-of-source-tree build for fate-related .mak files in...

    26 juin 2011, par Paul Sterne

    Fix configure problem with out-of-source-tree build for fate-related .mak files in...