
Recherche avancée
Autres articles (55)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (6944)
-
How to create .so (Shared Object library file) from .c (C file) for Arm Processor ?
2 juillet 2013, par Navjot BediI wanted to create a Prebuilt Shared library .so from .c file for ARM processor. Kindly give me some steps to do this and also how to include and access its functions in android.
-
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.


-
ffmpeg - merge multiple audio file with the single video file at specific time
2 septembre 2021, par Dishant MewadaI have multiple audio files speech_01.mp3, speech_02.mp3 etc. with 5 seconds duration. I want to merge these audio files with a single video file (video.mp4), at every 6 seconds step.


I have tried


ffmpeg -y -i video.mp4 -itsoffset 6 -i speech_01.mp3 -itsoffset 12 -i speech_02.mp3 -filter_complex amix -map 0:v -map 1:a -map 2:a -c:v copy -async 1 -c:a aac -strict experimental output.mp4



For some reason, this method only merges the first audio file.


Thanks.