Recherche avancée

Médias (91)

Autres articles (103)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (10097)

  • swresample/resample : speed up upsampling by precomputing sines

    9 novembre 2015, par Ganesh Ajjanagadde
    swresample/resample : speed up upsampling by precomputing sines
    

    When upsampling, factor is set to 1 and sines need to be evaluated only
    once for each phase, and the complexity should not depend on the number
    of filter taps. This does the desired precomputation, yielding
    significant speedups. Hard guarantees on the gain are not possible, but gains
    themselves are obvious and are illustrated below.

    Sample benchmark (x86-64, Haswell, GNU/Linux)
    test : fate-swr-resample-dblp-2626-44100
    old :
    29161085 decicycles in build_filter (loop 1000), 256 runs, 0 skips
    28821467 decicycles in build_filter (loop 1000), 512 runs, 0 skips
    28668201 decicycles in build_filter (loop 1000), 1000 runs, 24 skips

    new :
    14351936 decicycles in build_filter (loop 1000), 256 runs, 0 skips
    14306652 decicycles in build_filter (loop 1000), 512 runs, 0 skips
    14299923 decicycles in build_filter (loop 1000), 1000 runs, 24 skips

    Note that this does not statically allocate the sin lookup table. This
    may be done for the default 1024 phases, yielding a 512*8 = 4kB array
    which should be small enough.
    This should yield a small improvement. Nevertheless, this is separate from
    this patch, is more ambiguous due to the binary increase, and requires a
    lut to be generated offline.

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com>

    • [DH] libswresample/resample.c
  • swresample/resample : speed up build_filter for Blackman-Nuttall filter

    5 novembre 2015, par Ganesh Ajjanagadde
    swresample/resample : speed up build_filter for Blackman-Nuttall filter
    

    This uses the trigonometric double and triple angle formulae to avoid
    repeated (expensive) evaluation of libc’s cos().

    Sample benchmark (x86-64, Haswell, GNU/Linux)
    test : fate-swr-resample-dblp-44100-2626
    old :
    1104466600 decicycles in build_filter(loop 1000), 256 runs, 0 skips
    1096765286 decicycles in build_filter(loop 1000), 512 runs, 0 skips
    1070479590 decicycles in build_filter(loop 1000), 1024 runs, 0 skips

    new :
    588861423 decicycles in build_filter(loop 1000), 256 runs, 0 skips
    591262754 decicycles in build_filter(loop 1000), 512 runs, 0 skips
    577355145 decicycles in build_filter(loop 1000), 1024 runs, 0 skips

    This results in small differences with the old expression :
    difference (worst case on [0, 2*M_PI]), argmax 0.008 :
    max diff (relative) : 0.000000000000157289807188
    blackman_old(0.008) : 0.000363951585488813192382
    blackman_new(0.008) : 0.000363951585488755946507

    These are judged to be insignificant for the performance gain. PSNR to
    reference file is unchanged up to second decimal point for instance.

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com>

    • [DH] libswresample/resample.c
  • Animation speed adjustment using ffmpeg in Python

    5 novembre 2015, par neither-nor

    I’m been for years using stock ffmpeg script to sequentially snitch together temporal plots in Python. However, I cannot figure out the trivial issue of how to, for instance, slow down the animation speed so that the resultant video file has a longer duration.

    Example :

    import matplotlib.pyplot as plt
    import os, sys

    for t in range(100):
       plt.cla()
       plt.text(0.5, 0.5, 'time %02d'%(t+1))
       plt.draw()

       fname = '_tmp%02d.png'%(t+1)
       plt.savefig(fname)

    os.system("ffmpeg -i _tmp%02d.png -pix_fmt yuv420p -r 20 -b:v 20M flipbook.mp4")
    os.system("rm _tmp*.png")    

    The resulting "flip book" takes 4s and the time stamp increases steadily. However, I tried to make the animation last twice as long by testing the following :

    1. Change 20 after -r to 1 : this still lasts 4s but now the time stamp "leaps" nonlinearly

    2. Change 20M to 1M : no discernible effect

    I can’t find much information about this line of code, either the usage of each flag or how to modify aspects of it (e.g.,speed).