
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (75)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (10693)
-
write to file and use ffmpeg simultaneously to convert current file
15 avril 2015, par ZakukashiHere’s my use-case :
User uploads a video file.avi (2GB) to my server, the server slowly writes the bytes to a file. Can I use ffmpeg in a way that it will tail the file being written and convert it to a new file.mp4 ? I tried using the normal approach from file.avi to file.mp4 but after some time ffmpeg says read error. Im assuming that it runs out of bytes to convert thus beating the upload speed. Can I just have it tail the file ? -
How do I pass a file path with spaces as an argument in FFmpeg/cmd via python ?
12 octobre 2022, par At BayBasically the code below is taking wav files saved in a folder location
ufolder
, and trimming them to one minute clips and saving those clips in a new folderdfolder
. I'm using python, cmd, and ffmpeg to do this.

The problem is that the original folder location has spaces in it, so I get an error which reads :
W:\ARCHIVESNAS1\INGEST\01: No such file or directory


If I were to use cmd directly, I would circumvent this problem with quotes.


ffmpeg -ss 0 -t 10 -i "W:\ARCHIVESNAS1\INGEST\01 PLEASE REVIEW\Levy\GeorgeBloodShipments\_6-Ready-for-Ingest\SREDReels20210805\26368\data" "C:\Users\myname\Downloads\practice"



How do I include quotes with a command that's using variables. Adding quotes, as I do immediately below, doesn't work.


os.system("ffmpeg -ss 0 -t 10 -i **"{0}" "{1}"**".format(filepathO, filepathN))



import os
ufolder = r'W:\ARCHIVESNAS1\INGEST\01 PLEASE REVIEW\Levy\GeorgeBloodShipments\_6-Ready-for-Ingest\SREDReels20210805\26368\data'
dfolder = r'C:\Users\myname\Downloads\practice'
for filename in os.listdir(ufolder):
 if (filename.endswith(".wav")): #or .avi, .mpeg, whatever.
 filepathO = str(ufolder)+"\\"+str(filename)
 filepathN = str(dfolder)+"\\"+"CLIPPED"+str(filename)
 os.system("ffmpeg -ss 0 -t 10 -i {0} {1}".format(filepathO, filepathN))
 else:
 continue



-
MoviePy error : failed to read the first frame of video file ****. That might mean that the file is corrupted
14 juillet 2022, par Udit Hari VashishtI am trying to reverse a video using MoviePy. My code is as under : -


from moviepy.editor import VideoFileClip
from moviepy.video.fx.all import time_mirror

clip = VideoFileClip("udit.mp4")

clip = clip.fx(time_mirror)

clip.write_videofile("reversed.mp4")



But, when I run it I get the following error :-


Traceback (most recent call last):
 File "/Users/uditvashisht/projects/experiments/script.py", line 6, in <module>
 clip = clip.fx(time_mirror)
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 212, in fx
 return func(self, *args, **kwargs)
 File "", line 2, in time_mirror
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 54, in requires_duration
 return f(clip, *a, **k)
 File "", line 2, in time_mirror
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 29, in apply_to_mask
 newclip = f(clip, *a, **k)
 File "", line 2, in time_mirror
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 41, in apply_to_audio
 newclip = f(clip, *a, **k)
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/fx/time_mirror.py", line 13, in time_mirror
 return self.fl_time(lambda t: self.duration - t, keep_duration=True)
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 187, in fl_time
 return self.fl(lambda gf, t: gf(t_func(t)), apply_to,
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 136, in fl
 newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
 File "", line 2, in set_make_frame
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 14, in outplace
 f(newclip, *a, **k)
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/VideoClip.py", line 644, in set_make_frame
 self.size = self.get_frame(0).shape[:2][::-1]
 File "", line 2, in get_frame
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 89, in wrapper
 return f(*new_a, **new_kw)
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 93, in get_frame
 return self.make_frame(t)
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 136, in <lambda>
 newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 187, in <lambda>
 return self.fl(lambda gf, t: gf(t_func(t)), apply_to,
 File "", line 2, in get_frame
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/decorators.py", line 89, in wrapper
 return f(*new_a, **new_kw)
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/Clip.py", line 93, in get_frame
 return self.make_frame(t)
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/io/VideoFileClip.py", line 113, in <lambda>
 self.make_frame = lambda t: self.reader.get_frame(t)
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/io/ffmpeg_reader.py", line 184, in get_frame
 result = self.read_frame()
 File "/opt/homebrew/lib/python3.9/site-packages/moviepy/video/io/ffmpeg_reader.py", line 133, in read_frame
 raise IOError(("MoviePy error: failed to read the first frame of "
OSError: MoviePy error: failed to read the first frame of video file udit.mp4. That might mean that the file is corrupted. That may also mean that you are using a deprecated version of FFMPEG. On Ubuntu/Debian for instance the version in the repos is deprecated. Please update to a recent version from the website
</lambda></lambda></lambda></module>


I have tried the code on both Mac and Windows PC. The other functionality of MoviePy works fine, but I am not able to reverse the video. Both of my systems have ImageMagick and FFMPEG installed.