Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (100)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

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

  • avcodec/jpeg2000dec : Make decoder init-threadsafe

    7 mai 2021, par Andreas Rheinhardt
    avcodec/jpeg2000dec : Make decoder init-threadsafe
    

    The JPEG-2000 decoder and encoder share common luts ; the decoder
    initializes them once, guarded by a dedicated AVOnce, whereas
    the encoder initializes them always during init. This means that
    the decoder is not init-threadsafe ; in fact there is a potential
    data race because these luts can be initialized while an active
    decoder/encoder is using them.

    Fix this and make the decoder init-threadsafe by making the
    initialization function guard initialization itself with a dedicated
    AVOnce.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/jpeg2000.c
    • [DH] libavcodec/jpeg2000dec.c
  • avcodec/mqc : Hardcode tables to save space

    7 mai 2021, par Andreas Rheinhardt
    avcodec/mqc : Hardcode tables to save space
    

    mqc currently initializes three arrays at runtime ; each of them
    has 2 * 47 elements, one is uint16_t, two are uint8_t, so that their
    combined size is 8 * 47. The source data for these initializations
    is contained in an array of 47 elements of size six. Said array is
    only used in order to initialize the other arrays, so the savings
    are just 2 * 47B. Yet this is dwarfed by the size of the code for
    performing the initializations : It is 109B (GCC 10.2, x64, -O3 albeit
    in an av_cold function) ; this does not even include the size of the
    code in the callers. So just hardcode these tables.

    This also fixes a data race, because the encoder always initialized
    these tables during init, although they might already be used at the
    same time by already running encoder/decoder instances.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/j2kenc.c
    • [DH] libavcodec/jpeg2000dec.c
    • [DH] libavcodec/mqc.c
    • [DH] libavcodec/mqc.h
  • Ffmpeg is installed, but I get the exception : You do not have ffmpeg installed on your machine

    13 janvier 2023, par Tin Kommen

    I've searched for hours for a solution, but I haven't found one yet. Maybe someone here knows what is going wrong.

    &#xA;

    I'm trying to make a Bar Chart Race in Python. Although I have downloaded and installed Ffmpeg,&#xA;I keep on getting multiple errors :

    &#xA;

        MovieWriter ffmpeg unavailable; using Pillow instead.&#xA;    Traceback (most recent call last):&#xA;      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 251, in saving&#xA;        yield self&#xA;      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 1161, in save&#xA;        writer.grab_frame(**savefig_kwargs)&#xA;      File "/Users/____/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 549, in grab_frame&#xA;        renderer = self.fig.canvas.get_renderer()&#xA;    AttributeError: &#x27;FigureCanvasBase&#x27; object has no attribute &#x27;get_renderer&#x27;&#xA;&#xA;    During handling of the above exception, another exception occurred:&#xA;&#xA;    Traceback (most recent call last):&#xA;      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/bar_chart_race/_make_chart.py", line 435, in make_animation&#xA;        ret_val = anim.save(self.filename, fps=self.fps, writer=self.writer)&#xA;      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 1161, in save&#xA;        writer.grab_frame(**savefig_kwargs)&#xA;      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line         100, in __exit__&#xA;        self.gen.throw(type, value, traceback)&#xA;      File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site-                        packages/matplotlib/animation.py", line 253, in saving&#xA;        self.finish()&#xA;              File "/Users/____/PycharmProjects/data_visualization/venv/lib/python3.6/site-        packages/matplotlib/animation.py", line 554, in finish&#xA;        self._frames[0].save(&#xA;            IndexError: list index out of range&#xA;&#xA;    During handling of the above exception, another exception occurred:&#xA;&#xA;    Exception: You do not have ffmpeg installed on your machine. Download&#xA;    ffmpeg from here: https://www.ffmpeg.org/download.html.&#xA;    Matplotlib&#x27;s original error message below:&#xA;    list index out of range&#xA;

    &#xA;

    I've tried installing ffmpeg with conda, pip and homebrew. When I check the version, i get the following :

    &#xA;

        ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers&#xA;      built with clang version 9.0.1&#xA;      configuration: --prefix=/Users/___/opt/miniconda3 --cc=x86_64-apple-darwin13.4.0-clang --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-gpl --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-libx264 --enable-pic --enable-pthreads --enable-shared --enable-static --enable-version3 --enable-zlib --enable-libmp3lame&#xA;      libavutil      56. 31.100 / 56. 31.100&#xA;      libavcodec     58. 54.100 / 58. 54.100&#xA;      libavformat    58. 29.100 / 58. 29.100&#xA;      libavdevice    58.  8.100 / 58.  8.100&#xA;      libavfilter     7. 57.100 /  7. 57.100&#xA;      libavresample   4.  0.  0 /  4.  0.  0&#xA;      libswscale      5.  5.100 /  5.  5.100&#xA;      libswresample   3.  5.100 /  3.  5.100&#xA;      libpostproc    55.  5.100 / 55.  5.100&#xA;

    &#xA;

    Here is the code :

    &#xA;

        import numpy as np&#xA;    import pandas as pd&#xA;    import bar_chart_race as bcr&#xA;    import os&#xA;&#xA;&#xA;&#xA;    df = pd.read_csv(&#x27;/Users/____/Documents/data/dummy_data.csv&#x27;, delimiter=&#x27;;&#x27;, encoding="utf-8-sig")&#xA;    bcr.bar_chart_race(&#xA;        df=df,&#xA;        filename=&#x27;test_win2.mov&#x27;,&#xA;        orientation=&#x27;h&#x27;,&#xA;        sort=&#x27;desc&#x27;,&#xA;        n_bars=8,&#xA;        fixed_order=False,&#xA;        fixed_max=False,&#xA;        steps_per_period=50,&#xA;        interpolate_period=False,&#xA;        label_bars=True,&#xA;        bar_size=.95,&#xA;        period_label={&#x27;x&#x27;: .99, &#x27;y&#x27;: .25, &#x27;ha&#x27;: &#x27;right&#x27;, &#x27;va&#x27;: &#x27;center&#x27;},&#xA;        period_summary_func=lambda v, r: {&#x27;x&#x27;: .99, &#x27;y&#x27;: .18,&#xA;                                  &#x27;s&#x27;: f&#x27;Totaal: {v.nlargest(8).sum():,.0f}&#x27;,&#xA;                                  &#x27;ha&#x27;: &#x27;right&#x27;, &#x27;size&#x27;: 8, &#x27;family&#x27;: &#x27;Courier New&#x27;},&#xA;        perpendicular_bar_func=&#x27;median&#x27;,&#xA;        figsize=(3.5, 3),&#xA;        period_length=100,&#xA;        dpi=300,&#xA;        cmap=&#x27;dark12&#x27;,&#xA;        title=&#x27;Title?&#x27;,&#xA;        title_size=&#x27;&#x27;,&#xA;        bar_label_size=4,&#xA;        tick_label_size=4,&#xA;        shared_fontdict={&#x27;family&#x27;: &#x27;Helvetica&#x27;, &#x27;color&#x27;: &#x27;.1&#x27;},&#xA;        scale=&#x27;linear&#x27;,&#xA;        writer=None,&#xA;        fig=None,&#xA;        bar_kwargs={&#x27;alpha&#x27;: .3},&#xA;        filter_column_colors=False)&#xA;

    &#xA;