Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (71)

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

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

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

Sur d’autres sites (7713)

  • ffmpeg av_read_frame set timeout through callback, How to reduce the frequency of call callback func

    1er décembre 2015, par ICYMYM

    i have set the timeout of av_read_frame, and it work, but i find that the frequency of the call to the callback function is very high, it’s about 15ms every call, is there a way to increase the interval between two calls ? or reduce call frequency of callback function.

    c code like this :

    int timeout_count = 0;
    AVFormatContext *pFormatCtx = NULL;
    pFormatCtx = avformat_alloc_context();
    pFormatCtx->interrupt_callback.callback = interrupt_cb;
    pFormatCtx->interrupt_callback.opaque = &timeout_count;
    av_dict_set(&opts, "rtsp_transport", "tcp", 0);

    if(avformat_open_input(&pFormatCtx, stream_url, NULL, &opts)!=0)
    {
     printf("open failed\n");
     return -1;
    }

    and the callback func code like this :

    static int interrupt_cb(int *timeout_count)
    {
     (*timeout_count)++;
     if(*timeout_count > 500){
       return 1;  // timeout
     }
     printf("timeout_count:%d\n", (*timeout_count));
     return 0;
    }

    is there a api to set the interval of call callback func ? thanks very much first !

  • avcodec/vvc_mvs : remove an unnecessary AV_ZERO64() call

    24 janvier 2024, par James Almer
    avcodec/vvc_mvs : remove an unnecessary AV_ZERO64() call
    

    Should fix "member access within misaligned address 0xf00 for type 'const union
    av_alias64', which requires 8 byte alignment" errors as reported by GCC ubsan.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/vvc/vvc_mvs.c
  • 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;