
Recherche avancée
Autres articles (83)
-
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 (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6107)
-
ffmpeg low speed and wrong bitrate
31 août 2018, par ngc3o34My goal is to compress video making it’s bitrate lower.
For experiment I used following commandffmpeg -ss 00:00:00 -i V.mkv -to 00:10:00 -c:a copy -b:v 7500k -maxrate 7500k -minrate 5500k -bufsize 1M V7500.mkv
1. What are possible reasons speed of conversion was close to 1.0x utilizing all 8 cores ?
2. Bitrate of output video stream is about 4700 (5500 was set as minrate). Is there proper way to specify bitrate ?Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0x55e54ad189a0] using SAR=1/1
[libx264 @ 0x55e54ad189a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55e54ad189a0] profile High, level 4.0
[libx264 @ 0x55e54ad189a0] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=7500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=7500 vbv_bufsize=1000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'V7500.mkv':
Metadata:
title : Valerian.and.the.City.of.a.Thousand.Planets.2017.1080p.BluRay.x264.DTS-HD.MA.7.1-FGT
encoder : Lavf57.83.100
Chapter #0:0: start 0.000000, end 600.000000
Metadata:
title : Chapter 01
Stream #0:0(eng): Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1920x804 [SAR 1:1 DAR 160:67], q=-1--1, 7500 kb/s, 23.98 fps, 1k tbn, 23.98 tbc (default)
Metadata:
title : Valerian.and.the.City.of.a.Thousand.Planets.2017.1080p.BluRay.x264.DTS-HD.MA.7.1-FGT
DURATION : 02:17:03.277000000
encoder : Lavc57.107.100 libx264
Side data:
cpb: bitrate max/min/avg: 7500000/0/7500000 buffer size: 1000000 vbv_delay: -1
Stream #0:1(eng): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp (default)
Metadata:
title : Valerian.and.the.City.of.a.Thousand.Planets.2017.1080p.BluRay.x264.DTS-HD.MA.7.1-FGT
ENCODER : Lavc57.107.100 aac
DURATION : 02:17:03.317000000
Past duration 0.994987 too large
frame=14385 fps= 31 q=-1.0 Lsize= 363641kB time=00:09:59.99 bitrate=4964.9kbits/s speed=1.28x -
Anomalie #4438 : Manque Msg :message:lien_reponse_message :
22 mars 2020Ça m’interroge...
Les chaines de langues sont dans ’forum’, là : https://git.spip.net/spip/forum/src/branch/master/lang/forum_fr.php#L129
Donc appeler `_T(’message:lien_reponse_message’)` ne donnera rien, quelque soit la version de SPIP.
Cette chaine (forum:lien_reponse_message) est appelé si le message a un `id_parent`.La question semble plutôt :
- soit `#OBJET` qui vaut ’message’ est erroné (ça devait être autre chose (genre l’objet du parent), mais un bug remplit a rempli ’message’ ?
- soit on avait jamais eu ce cas simplement ? -
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)