Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (88)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (10717)

  • avcodec/mqc : Hardcode tables to save space

    7 mai 2021, par Andreas Rheinhardt
    avcodec/mqc : Hardcode tables to save space
    

    mqc currently initializes three arrays at runtime ; each of them
    has 2 * 47 elements, one is uint16_t, two are uint8_t, so that their
    combined size is 8 * 47. The source data for these initializations
    is contained in an array of 47 elements of size six. Said array is
    only used in order to initialize the other arrays, so the savings
    are just 2 * 47B. Yet this is dwarfed by the size of the code for
    performing the initializations : It is 109B (GCC 10.2, x64, -O3 albeit
    in an av_cold function) ; this does not even include the size of the
    code in the callers. So just hardcode these tables.

    This also fixes a data race, because the encoder always initialized
    these tables during init, although they might already be used at the
    same time by already running encoder/decoder instances.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/j2kenc.c
    • [DH] libavcodec/jpeg2000dec.c
    • [DH] libavcodec/mqc.c
    • [DH] libavcodec/mqc.h
  • I cant save the animation

    17 mai 2021, par Gokul

    i tried various examples though i cant find proper solution. This is the example code of my project i want to save this in a mp4 format and i used ffmpeg. Any suggestion for this would be appreciated. Thank you in advance

    &#xA;

    import pandas as pd&#xA;import numpy as np&#xA;import ma``tplotlib.pyplot as plt&#xA;import matplotlib.animation as animation&#xA;&#xA;df = data.iloc[0:250, 4:12]&#xA;df1 = df2.iloc[:,0:3]&#xA;&#xA;a1 = df.iloc[:,0]/2&#xA;a2 = df.iloc[:,1]/2&#xA;b1 = df.iloc[:,2]/2&#xA;b2 = df.iloc[:,3]/2&#xA;c1 = df.iloc[:,4]/2&#xA;c2 = df.iloc[:,5]/2&#xA;m1 = df1.iloc[:,0]&#xA;m2 = df1.iloc[:,1]&#xA;m3 = df1.iloc[:,2]&#xA;&#xA;fig ,ax = plt.subplots()&#xA;&#xA;l1, = ax.plot (vert1, vert2, &#x27;ro&#x27;, markersize = m1[0])&#xA;l2, = ax.plot (long1, long2, &#x27;ro&#x27;, markersize = m2[0])&#xA;l3, = ax.plot (tras1, tras2, &#x27;ro&#x27;, markersize = m3[0])&#xA;&#xA;def init():    &#xA;    l1.set_data([],[])&#xA;    l2.set_data([],[])&#xA;    l3.set_data([],[])&#xA;    &#xA;    return (l1,l2,l3)&#xA;&#xA;def animate(i,l1,l2,l3):&#xA;    &#xA;    l1.set_data(vert1[i], vert2[i])&#xA;    l1.set_markersize(m1[i])&#xA;    l2.set_data(long1[i], long2[i])&#xA;    l2.set_markersize(m2[i])&#xA;    l3.set_data(tras1[i], tras2[i])&#xA;    l3.set_markersize(m3[i])&#xA;&#xA;    return (l1,l2,l3)&#xA;&#xA;Writer = animation.writers[&#x27;ffmpeg&#x27;]&#xA;writer = Writer(fps= 100, metadata = dict(artist = &#x27;me&#x27;), bitrate = 1800)&#xA;&#xA;ani = animation.FuncAnimation(fig, animate, fargs=(l1,l2,l3), init_func=init, interval=10, blit=False)&#xA;ani.save(&#x27;/Users/gokulthangavel/Downloads/basic_animation.mp4&#x27;, writer = writer)&#xA;&#xA;plt.show()&#xA;

    &#xA;

  • I cant save the animation in ffmpeg

    22 mai 2021, par Gokul

    i tried various examples though i cant find proper solution. This is the example code of my project i want to save this in a mp4 format and i used ffmpeg. the animation was saved if I use df = pd.DataFrame(np.random.rand(250,3)) but it is not working for my sample code, it showed key error = 0. Note : df1 = pd.DataFrame(np.random.randint(5,15,[250,3])).&#xA;Any suggestion for this would be appreciated. Thank you in advance

    &#xA;

    import pandas as pd&#xA;import numpy as np&#xA;import ma``tplotlib.pyplot as plt&#xA;import matplotlib.animation as animation&#xA;&#xA;df = data.iloc[0:250, 4:12]&#xA;df1 = df2.iloc[:,0:3]&#xA;&#xA;a1 = df.iloc[:,0]/2&#xA;a2 = df.iloc[:,1]/2&#xA;b1 = df.iloc[:,2]/2&#xA;b2 = df.iloc[:,3]/2&#xA;c1 = df.iloc[:,4]/2&#xA;c2 = df.iloc[:,5]/2&#xA;m1 = df1.iloc[:,0]&#xA;m2 = df1.iloc[:,1]&#xA;m3 = df1.iloc[:,2]&#xA;&#xA;fig ,ax = plt.subplots()&#xA;&#xA;l1, = ax.plot (vert1, vert2, &#x27;ro&#x27;, markersize = m1[0])&#xA;l2, = ax.plot (long1, long2, &#x27;ro&#x27;, markersize = m2[0])&#xA;l3, = ax.plot (tras1, tras2, &#x27;ro&#x27;, markersize = m3[0])&#xA;&#xA;def init():    &#xA;    l1.set_data([],[])&#xA;    l2.set_data([],[])&#xA;    l3.set_data([],[])&#xA;    &#xA;    return (l1,l2,l3)&#xA;&#xA;def animate(i,l1,l2,l3):&#xA;    &#xA;    l1.set_data(vert1[i], vert2[i])&#xA;    l1.set_markersize(m1[i])&#xA;    l2.set_data(long1[i], long2[i])&#xA;    l2.set_markersize(m2[i])&#xA;    l3.set_data(tras1[i], tras2[i])&#xA;    l3.set_markersize(m3[i])&#xA;&#xA;    return (l1,l2,l3)&#xA;&#xA;Writer = animation.writers[&#x27;ffmpeg&#x27;]&#xA;writer = Writer(fps= 100, metadata = dict(artist = &#x27;me&#x27;), bitrate = 1800)&#xA;&#xA;ani = animation.FuncAnimation(fig, animate, fargs=(l1,l2,l3), init_func=init, interval=10, blit=False)&#xA;ani.save(&#x27;/Users/gokulthangavel/Downloads/basic_animation.mp4&#x27;, writer = writer)&#xA;&#xA;plt.show()&#xA;

    &#xA;