
Recherche avancée
Autres articles (47)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)
Sur d’autres sites (4944)
-
ffmpeg issue on MacOS python environment
6 octobre 2022, par olddonI am trying to generate some animation with matplotlib under MacOS conda enviroment, after I install all the related ffmpeg package


conda install -c conda-forge ffmpeg
# enter conda environment with command: conda activate py38
pip install ffmpeg
pip install ffmpeg-python



I still get error below :


Traceback (most recent call last):
 File "./test2.py", line 23, in <module>
 with writer.saving(fig, "writer_test.mp4", 100):
 File "/Users/******/miniconda3/envs/py38/lib/python3.8/contextlib.py", line 113, in __enter__
 return next(self.gen)
 File "/Users/******/miniconda3/envs/py38/lib/python3.8/site-packages/matplotlib/animation.py", line 229, in saving
 self.setup(fig, outfile, dpi, *args, **kwargs)
 File "/Users/******/miniconda3/envs/py38/lib/python3.8/site-packages/matplotlib/animation.py", line 318, in setup
 self._run()
 File "/Users/******/miniconda3/envs/py38/lib/python3.8/site-packages/matplotlib/animation.py", line 328, in _run
 self._proc = subprocess.Popen(
 File "/Users/******/miniconda3/envs/py38/lib/python3.8/subprocess.py", line 858, in __init__
 self._execute_child(args, executable, preexec_fn, close_fds,
 File "/Users/******/miniconda3/envs/py38/lib/python3.8/subprocess.py", line 1704, in _execute_child
 raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
</module>


Could someone tell me what's the problem and how to fix this ?


Update :
I tried several methods to install ffmpeg :


- 

- pip install ffmpeg && pip install ffmpeg-python
- conda config —add channels conda-forge && conda install ffmpeg
- manully install apporach mentioned by @kesh








All installation succeed with no error, but when run the python script below, still get the same No such file or directory : 'ffmpeg' error


import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
from matplotlib.animation import FFMpegWriter

# Fixing random state for reproducibility
np.random.seed(19680801)


metadata = dict(title='Movie Test', artist='Matplotlib',
 comment='Movie support!')
writer = FFMpegWriter(fps=15, metadata=metadata)

fig = plt.figure()
l, = plt.plot([], [], 'k-o')

plt.xlim(-5, 5)
plt.ylim(-5, 5)

x0, y0 = 0, 0

with writer.saving(fig, "writer_test.mp4", 100):
 for i in range(100):
 x0 += 0.1 * np.random.randn()
 y0 += 0.1 * np.random.randn()
 l.set_data(x0, y0)
 writer.grab_frame()



-
C# : How to get video dimensions using FFMPEG
22 février 2012, par GethuJohnMy goal is to pass a Video file to FFMPEG and to get its dimension as output.How can I achieve this. Can anyone help me out with sample code ?
Thanks.
-
How to get video dimensions using FFMPEG
26 octobre 2012, par GethuJohnMy goal is to pass a Video file to FFMPEG and to get its dimension as output.How can I achieve this. Can anyone help me out with sample code ?