Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (77)

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

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

Sur d’autres sites (6621)

  • Python FuncAnimation is saved only 30%

    14 mars 2018, par cvut

    I am trying to make a movie out of data I’ve calculated. I am using ffmpeg writer. When I start the animation in Spyder it is working fine and goes to the end, but when I try to save it it goes only for first 30% of animation. How can I make it to save the whole animation ?

    Here is a bit of code( it’s long) ; MM is place where the matrices are stored (1200 of them).

    import matplotlib
    matplotlib.use("Agg")
    from mpl_toolkits.mplot3d import axes3d
    import matplotlib.animation as animation
    import numpy as np
    import matplotlib.pyplot as plt
    import matplotlib.cm as cm
    nx = 10
    ny = 10
    X=np.linspace(0, Lx, nx)
    Y=np.linspace(0, Ly, ny)  
    Writer = animation.writers['ffmpeg']
    writer = Writer(fps=15, metadata=dict(artist='Me'), bitrate=1)

    plt.ion()
    fig = plt.figure()
    im = plt.contourf(X, Y, MM[0], np.linspace(T_ok,np.max(MM[-1]),150), cmap =     cm.hot)
    ax = fig.add_subplot(111, projection='3d')  
    plt.colorbar(im)

    def anime(i):
       ax.cla()
       im = ax.contourf(X, Y, MM[i], np.linspace(T_ok,np.max(MM[-1]),150), cmap = cm.hot)
       plt.title('%5.3f'%i)
       return im,

    anim = animation.FuncAnimation(fig, anime)
    anim.save('anime.mp4', writer=writer)

    EDIT : I just set frames to 10000 and it’s working, but I would like to know why. There are 1200 matrices that should be plotted.

  • Batch ffmpeg change

    5 avril 2018, par AniEncoder

    I tried to change the font but it says .ass .text not found
    Its destination is set to another folder
    Files used horrible sub anime 1080p video
    for %%A in (*.mkv) do ffmpeg -i "%%A" -map 0:s:0 "%%A.ass"

    ren *.ass *.txt

    setlocal

    @echo off
    call :FindReplace "Open Sans Semibold" "CronosPro-Bold" "*.txt"
    call :FindReplace "&H00020713" "&H0000003B" "*.txt"
    call :FindReplace ",1.7," ",2," "*.txt"
    @echo on

    ren *.txt *.ass

    for %%A in (*.mkv) do ffmpeg -i "%%A" -i "%%A".ass -c copy -map 0:0 -map 0:1 -map 1:0 -metadata:s:s:0 language=eng -disposition:s:0 default -attach CronosPro-Bold.ttf -metadata:s:3 mimetype=application/x-truetype-font "..\720p\%%A"

    del *.ass

    :FindReplace <findstr> <replstr> <file>
    set tmp="%temp%\tmp.txt"
    If not exist %temp%\_.vbs call :MakeReplace
    for /f "tokens=*" %%a in ('dir "%3" /s /b /a-d /on') do (
     for /f "usebackq" %%b in (`Findstr /mic:"%~1" "%%a"`) do (
       echo(&amp;Echo Replacing "%~1" with "%~2" in file %%~nxa
       &lt;%%a cscript //nologo %temp%\_.vbs "%~1" "%~2">%tmp%
       if exist %tmp% move /Y %tmp% "%%~dpnxa">nul
     )
    )

    del %temp%\_.vbs

    :MakeReplace
    >%temp%\_.vbs echo with Wscript
    >>%temp%\_.vbs echo set args=.arguments
    >>%temp%\_.vbs echo .StdOut.Write _
    >>%temp%\_.vbs echo Replace(.StdIn.ReadAll,args(0),args(1),1,-1,1)
    >>%temp%\_.vbs echo end with
    </file></replstr></findstr>
  • Error while saving a matplotlib animation, missing 'dpi' argument

    27 septembre 2020, par aarcas

    I'm trying to save an animation of matplotlib.animation.AnimationFunc and I get an error saying 'dpi' argument missing. Obviously, I have the dpi set so I don't understand where this error comes from.

    &#xA;&#xA;

    I'm running python 3.6 and matplotlib 3.0.3, I also just installed ffmpeg from ubuntu official repositories (Ubuntu 18.04).

    &#xA;&#xA;

    This is the part of my code that should affect that, although I think it should be something of the system :

    &#xA;&#xA;

    Writer = writers[&#x27;ffmpeg&#x27;]&#xA;writer = Writer(fps=15, metadata=dict(artist=&#x27;Me&#x27;), bitrate=1800,)&#xA;ani = FuncAnimation(fig, anime, interval=time_step *&#xA;                    10**3, frames=F, repeat=False,) &#xA;ani.save(&#x27;standard_map.mp4&#x27;, writer=Writer, dpi=100)&#xA;

    &#xA;&#xA;

    The errors is :

    &#xA;&#xA;

    with writer.saving(self._fig, filename, dpi):&#xA;File "/usr/lib/python3.6/contextlib.py", line 159, in helper&#xA;    return _GeneratorContextManager(func, args, kwds)&#xA;File "/usr/lib/python3.6/contextlib.py", line 60, in __init__&#xA;    self.gen = func(*args, **kwds) TypeError: saving() missing 1 required positional argument: &#x27;dpi&#x27;&#xA;

    &#xA;&#xA;

    I tried both adding the lines they suggested there and the error stills the same.

    &#xA;&#xA;

    plt.rcParams[&#x27;animation.ffmpeg_path&#x27;] = &#x27;/usr/bin/ffmpeg&#x27;&#xA;

    &#xA;&#xA;

    I also tried changing the writer to 'imagemagick' the one set on Ubuntu by default and the error persists.

    &#xA;