
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (70)
-
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 (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (13104)
-
Revision ae14b37431 : Merge "Remove claims of universal target support from the build system."
13 mai 2015, par Tom FineganMerge "Remove claims of universal target support from the build system."
-
python ffmpeg "The system cannot find the file specified" [on hold]
5 avril 2016, par k7zhengI’m pretty new to Python but I’ve been stuck on this for a while.
Whenever I run :
import subprocess, os
os.ffmpeg = "/absolute/path/to/ffmpeg"
subprocess.ffmpeg = "/absolute/path/to/ffmpeg"
subprocess.call(['ffmpeg', '-i', 'C://Users//k7zheng//Desktop//A1//1.avi', '-r', '0.05', "newfiles//%02d.png"])I get the following :
Traceback (most recent call last):
File "C:/Users/k7zheng/Desktop/FT1.py", line 4, in <module>
subprocess.call(['ffmpeg -i C:\\Users\k\Desktop\A1\1.avi -r 0.05 "newfiles\%02d.png"'])
File "C:\Python34\lib\subprocess.py", line 537, in call with Popen(*popenargs, **kwargs) as p:
File "C:\Python34\lib\subprocess.py", line 859, in __init__
restore_signals, start_new_session)
File "C:\Python34\lib\subprocess.py", line 1114, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
</module>Can you help me spot my issue ?
I’ve tried :- changing slashes / to \ to double \ slashes
- getting rid of the 2nd and 3rd lines
- adding os.chdir(r"C :\software\ffmpeg\ffmpeg-20160330-git-be746e-win64-static\bin")
- changing line 4 to subprocess.call(’ffmpeg -i c :\users\k7zheng\desktop\c1\1 -r -0.05 "newfiles\%02d.png"’, shell=True)
I’m running Python 3.4.4
-
"The system cannot find the file specified" when animating with ffmpeg in matplotlib
27 novembre 2019, par algolI am trying to generate a movie from a stack of numpy arrays using a function I have used on a different computer (a mac) on my home computer (Windows 10). Here is the function that I am using :
def make_animation(frames,name):
plt.rcParams['animation.ffmpeg_path'] = u'C:\ffmpeg-20190320-0739d5c-win64-static\bin\ffmpeg.exe'
n_images=frames.shape[2]
assert (n_images>1)
figsize=(10,10)
fig, ax = plt.subplots(figsize=figsize)
fig.tight_layout()
fig.subplots_adjust(left=0, bottom=0, right=1, top=1, wspace=None, hspace=None)
#lineR, = ax.plot(xaxis_data[0],R_data[0],'c-',label="resources")
img = ax.imshow(frames[:,:,0], animated = True)
def updatefig(img_num):
#lineR.set_data(xaxis_data[img_num],R_data[img_num],'r-')
img.set_data(frames[:,:,img_num])
return [img]
ani = animation.FuncAnimation(fig, updatefig, np.arange(1, n_images), interval=50, blit=True)
mywriter = animation.FFMpegWriter(fps = 20)
#ani.save('mymovie.mp4',writer=mywriter)
ani.save(f"D:\{name}.mp4",writer=mywriter)
plt.close(fig)Here is the error that I am getting :
Traceback (most recent call last):
File "", line 1, in <module>
make_animation(stack,'full_test')
File "", line 27, in make_animation
ani.save(f"D:\{name}.mp4",writer=mywriter)
File "C:\Users\~snip~\Anaconda3\lib\site-packages\matplotlib\animation.py", line 1136, in save
with writer.saving(self._fig, filename, dpi):
File "C:\Users\~snip~\Anaconda3\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "C:\Users\~snip~\Anaconda3\lib\site-packages\matplotlib\animation.py", line 228, in saving
self.setup(fig, outfile, dpi, *args, **kwargs)
File "C:\Users\~snip~\Anaconda3\lib\site-packages\matplotlib\animation.py", line 352, in setup
self._run()
File "C:\Users\~snip~\Anaconda3\lib\site-packages\matplotlib\animation.py", line 363, in _run
creationflags=subprocess_creation_flags)
File "C:\Users\~snip~\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 143, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\Users\~snip~\Anaconda3\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Users\~snip~\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
</module>I know this code basically works since I have used it before on another computer. My guess is that something about ffmpeg is messed up or something about the output path is wrong. I’m not sure what could be wrong with the ffmpeg since I definitely have it installed (via conda) and the path is pretty straightforward. On the other hand I’m not sure what could be wrong with the output path.