Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • 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 (8556)

  • 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;