
Recherche avancée
Autres articles (71)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications 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, parL’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, parChaque 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 ICYMYMi 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 -
Ffmpeg is installed, but I get the exception : You do not have ffmpeg installed on your machine
13 janvier 2023, par Tin KommenI've searched for hours for a solution, but I haven't found one yet. Maybe someone here knows what is going wrong.


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


MovieWriter ffmpeg unavailable; using Pillow instead.
 Traceback (most recent call last):
 File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site- packages/matplotlib/animation.py", line 251, in saving
 yield self
 File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site- packages/matplotlib/animation.py", line 1161, in save
 writer.grab_frame(**savefig_kwargs)
 File "/Users/____/PycharmProjects/data_visualization/venv/lib/python3.6/site- packages/matplotlib/animation.py", line 549, in grab_frame
 renderer = self.fig.canvas.get_renderer()
 AttributeError: 'FigureCanvasBase' object has no attribute 'get_renderer'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
 File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site- packages/bar_chart_race/_make_chart.py", line 435, in make_animation
 ret_val = anim.save(self.filename, fps=self.fps, writer=self.writer)
 File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site- packages/matplotlib/animation.py", line 1161, in save
 writer.grab_frame(**savefig_kwargs)
 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py", line 100, in __exit__
 self.gen.throw(type, value, traceback)
 File "/Users/___/PycharmProjects/data_visualization/venv/lib/python3.6/site- packages/matplotlib/animation.py", line 253, in saving
 self.finish()
 File "/Users/____/PycharmProjects/data_visualization/venv/lib/python3.6/site- packages/matplotlib/animation.py", line 554, in finish
 self._frames[0].save(
 IndexError: list index out of range

 During handling of the above exception, another exception occurred:

 Exception: You do not have ffmpeg installed on your machine. Download
 ffmpeg from here: https://www.ffmpeg.org/download.html.
 Matplotlib's original error message below:
 list index out of range



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


ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
 built with clang version 9.0.1
 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
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100



Here is the code :


import numpy as np
 import pandas as pd
 import bar_chart_race as bcr
 import os



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