Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (26)

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

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (5048)

  • FFMPEG crop boundaries animation

    28 septembre 2021, par VlFedotov

    I'm looking for a way to make crop filter params depends on current time.

    


    Now I have 2 videos - white and aqua squares in one split output video, and this code works fine :

    


    ffmpeg -i out/i1.mp4 -i out/i2.mp4 -filter_complex "[0:v]crop=iw/2:ih:0:0[left];[1:v]crop=iw/2:ih:ow:0[right];[left][right]hstack" out/generated.mp4


    


    My question is - how to make the border between two videos floating, animated ? For example from left side of output vide to the right ?

    


    I already tried to use t param, e.g. like this :

    


    ffmpeg -i out/i1.mp4 -i out/i2.mp4 -filter_complex "[0:v]crop=iw/2+t:ih:0:0[left];[1:v]crop=iw/2-t:ih:ow:0[right];[left][right]hstack" out/generated.mp4


    


    But it throws an error :

    


    [Parsed_crop_0 @ 0x7fa46060eec0] Error when evaluating the expression 'iw/2+t'

[Parsed_crop_0 @ 0x7fa46060eec0] Failed to configure input pad on Parsed_crop_0

Error reinitializing filters!

Failed to inject frame into filter network: Invalid argument

Error while processing the decoded data for stream #1:0


    


    Can anybody help me to solve this ? Or explain - why it isn't possible ?

    


  • avcodec/h274 : add film grain synthesis routine

    17 août 2021, par Niklas Haas
    avcodec/h274 : add film grain synthesis routine
    

    This could arguably also be a vf, but I decided to put it here since
    decoders are technically required to apply film grain during the output
    step, and I would rather want to avoid requiring users insert the
    correct film grain synthesis filter on their own.

    The code, while in C, is written in a way that unrolls/vectorizes fairly
    well under -O3, and is reasonably cache friendly. On my CPU, a single
    thread pushes about 400 FPS at 1080p.

    Apart from hand-written assembly, one possible avenue of improvement
    would be to change the access order to compute the grain row-by-row
    rather than in 8x8 blocks. This requires some redundant PRNG calls, but
    would make the algorithm more cache-oblivious.

    The implementation has been written to the wording of SMPTE RDD 5-2006
    as faithfully as I can manage. However, apart from passing a visual
    inspection, no guarantee of correctness can be made due to the lack of
    any publicly available reference implementation against which to
    compare it.

    Signed-off-by : Niklas Haas <git@haasn.dev>
    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/Makefile
    • [DH] libavcodec/h274.c
    • [DH] libavcodec/h274.h
  • AttributeError while saving an animation using celluloid, Python 3.9

    26 juillet 2021, par rafael gf

    I'm trying to create a simple animation using the celluloid library, but I'm getting an attribute error when trying to save it. I'm not familiar with ffmpeg, but I read I should install it and point to its executable file for the saving to work, not sure what's going wrong. The massage I'm getting is :

    &#xA;

    Exception has occurred: AttributeError&#xA;type object &#x27;FuncAnimation&#x27; has no attribute &#x27;_first_draw_id&#x27;&#xA; File "C:\Users\Fernando\Documents\Circulos\circulos.py", line 102, in <module>  anim.save(anim, filename="my_animation.gif", writer=FFwriter)&#xA;</module>

    &#xA;

    I'll out the simplification version of the code below - I'm suppressing the part where I do some tucking with the circles, but I've done some testing plot by plot and it is working fine.

    &#xA;

    import smtplib, os&#xA;import matplotlib.pyplot as plt&#xA;from matplotlib import animation&#xA;import math&#xA;from celluloid import Camera&#xA;&#xA;plt.rcParams[&#x27;animation.ffmpeg_path&#x27;] = os.getcwd() &#x2B; &#x27;\\Circulos\\ffmpeg\\bin\\ffmpeg.exe&#x27;&#xA;&#xA;&#xA;#axes&#xA;figure, axes = plt.subplots()&#xA;axes.set_aspect(1)&#xA;axes.set_xlim((-xmax(C)),(xmax(C)))&#xA;axes.set_ylim((-ymax(C)),(ymax(C)))&#xA;&#xA;b = 0&#xA;&#xA;#add initial circles&#xA;for a in range 5:&#xA;    draw_circle = plt.Circle((a, a), 2, fc = &#x27;None&#x27;, ec = &#x27;r&#x27;)&#xA;    axes.add_artist(draw_circle)&#xA;&#xA;&#xA;#create figure and camera&#xA;figure, axes = plt.subplots()&#xA;axes.set_aspect(1)&#xA;axes.set_xlim((-xmax(C)),(xmax(C)))&#xA;axes.set_ylim((-ymax(C)),(ymax(C)))&#xA;camera = Camera(figure) &#xA;&#xA;Frame_time = 10&#xA;&#xA;for b in range(Frame_time):&#xA;&#xA;     #add circles&#xA;     for a in range 5:&#xA;        draw_circle = plt.Circle((a, a), 2, fc = &#x27;None&#x27;, ec = &#x27;r&#x27;)&#xA;        axes.add_artist(draw_circle)&#xA;&#xA;    #Frame Picture&#xA;    camera.snap()&#xA;&#xA;&#xA;#create animation&#xA;anim = camera.animate()&#xA;anim = animation.FuncAnimation&#xA;FFwriter = animation.FFMpegWriter()&#xA;anim.save(anim, filename="my_animation.gif", writer=FFwriter)&#xA;

    &#xA;

    I'm working on VS code, the latest version I just updated it, and python 3.9

    &#xA;