Recherche avancée

Médias (91)

Autres articles (111)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (10590)

  • dcaenc : Reverse data layout to prevent data copies during Huffman encoding introduction

    6 janvier 2017, par Daniil Cherednik
    dcaenc : Reverse data layout to prevent data copies during Huffman encoding introduction
    

    Reviewed-by : Rostislav Pehlivanov <atomnuker@gmail.com>

    • [DH] libavcodec/dcaenc.c
  • ffmpeg –i /data/1.mp4 /data/2.mp4 Unable to find a suitable output format for '–i' [duplicate]

    17 octobre 2016, par D.jia

    This question already has an answer here :

    I have installed ffmpeg ,why doesn’t it work when I enter

    ffmpeg –i /data/1.mp4 /data/2.mp4 ??

    Could someone help me to solve it !

  • attempting to save FuncAnimation changes the animation

    25 mars 2024, par pibion

    I am attempting to create and save an animation of a time-varying vector field using matplotlib's FuncAnimation. When I run the animation without attempting to save it, it updates smoothly as expected. However, when I try to save the animation, the vectors increase in length and the animation only appears to update a few times. I've been able to record the screen to get a video file, but I'd like to understand how to save the animation to a video in python.

    &#xA;

    Here is the code to create the vector field animation. I ran this in a local jupyter notebook using python 3.9.12 on Windows.

    &#xA;

    %matplotlib notebook&#xA;import numpy as np&#xA;import matplotlib.pyplot as plt&#xA;import matplotlib.animation as animation&#xA;&#xA;x_min, x_max = -20, 20&#xA;y_min, y_max = 0, 25&#xA;wire_x = -4&#xA;wire_y = 17&#xA;&#xA;# Define the vector field function (example: rotating vector field)&#xA;def vector_field(x, y, t):&#xA;    x = x - wire_x&#xA;    y = y - wire_y&#xA;    r = np.sin(t) / (x**2 &#x2B; y**2)&#xA;    u = -r * y&#xA;    v = r * x&#xA;    return (u, v)&#xA;&#xA;# Define grid&#xA;x = np.linspace(x_min, x_max, 20)&#xA;y = np.linspace(y_min, y_max, 20)&#xA;X, Y = np.meshgrid(x, y)&#xA;&#xA;# Create animation&#xA;fig, ax = plt.subplots(1,1)&#xA;ax.set_aspect(&#x27;equal&#x27;)&#xA;ax.set_xlim(x_min, x_max)&#xA;ax.set_ylim(y_min, y_max)&#xA;ax.set_xlabel(&#x27;X (m)&#x27;)&#xA;ax.set_ylabel(&#x27;Y (m)&#x27;)&#xA;&#xA;u, v = vector_field(X, Y, 1)&#xA;&#xA;quiver = ax.quiver(X, Y, u, v)&#xA;&#xA;time_arr = np.linspace(0,20,200)&#xA;&#xA;plt.show()&#xA;&#xA;def update_quiver(num):&#xA;    t = num * 0.1  # Time step&#xA;    u, v = vector_field(X, Y, t)&#xA;    quiver.set_UVC(u, v)&#xA;&#xA;ani = animation.FuncAnimation(fig, update_quiver, frames=200, interval=50, repeat=False)&#xA;

    &#xA;

    This produces an animation whose vectors smoothly vary in length on my computer.

    &#xA;

    However, when I try to save the animation by adding the lines

    &#xA;

    writervideo = animation.FFMpegWriter(fps=60) &#xA;ani.save(&#x27;field_leftWire.mp4&#x27;, writer=writervideo) &#xA;

    &#xA;

    then the animation changes - the vectors are much longer and it appears to only update a few times throughout the animation.

    &#xA;

    I'll also note that I had to install ffmpeg and restart my computer as outlined in Installation of FFMPEG for Python in WIndows to get the last two lines to run without error.

    &#xA;