
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (82)
-
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 ;
-
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 (...)
Sur d’autres sites (12132)
-
lavc/hevcdec : Put slice address checking after hwaccel decode slice
24 juin 2024, par Fei Wang -
lavc/vaapi_encode_h264 : add "coder" option support
8 août 2017, par Jun Zhaolavc/vaapi_encode_h264 : add "coder" option support
Follow libx264 style to support "coder" option, and set it to
cabac by default.Signed-off-by : Yi A Wang <yi.a.wang@intel.com>
Signed-off-by : Jun Zhao <jun.zhao@intel.com>
Reviewed-by : Steven Liu <lingjiujianke@gmail.com>
Signed-off-by : Mark Thompson <sw@jkqxz.net> -
Why does moviepy complain about bitrate while generating audiofile ?
6 octobre 2023, par RomanI have just try to use
moviepy
library for the first time. Generation of movies fromnumpy
arrays was really simple, intuitive and worked out of box. This is what I tried :


from moviepy.editor import VideoClip
import numpy as np

def make_frame(t):

 val = int(255.0*(t/3.0))

 ls = []
 for height in range(100):
 row = []
 for width in range(300):
 row.append([val,0,0])
 ls.append(row)
 frame = np.array(ls)
 return frame

animation = VideoClip(make_frame, duration = 3)

animation.write_gif('first_try.gif', fps=24)
animation.write_videofile('first_try.mp4', fps=24)




Then I wanted to use
moviepy
to generate sound. In theory it should work in a very similar way. Here is what I tried :


from moviepy.editor import AudioClip
import numpy as np

make_frame = lambda t : 2*[ np.sin(404 * 2 * np.pi * t) ]
clip = AudioClip(make_frame, duration=5)

clip.write_audiofile('sound.mp4')




However, I got an error message :



[MoviePy] Writing audio in sound.mp4
|----------| 0/111 0% [elapsed: 00:00 left: ?, ? iters/sec]Traceback (most recent call last):
 File "sound.py", line 9, in <module>
 clip.write_audiofile('sound.mp4')
 File "<string>", line 2, in write_audiofile
 File "/usr/local/lib/python2.7/dist-packages/moviepy/decorators.py", line 54, in requires_duration
 return f(clip, *a, **k)
 File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/AudioClip.py", line 204, in write_audiofile
 verbose=verbose, ffmpeg_params=ffmpeg_params)
 File "<string>", line 2, in ffmpeg_audiowrite
 File "/usr/local/lib/python2.7/dist-packages/moviepy/decorators.py", line 54, in requires_duration
 return f(clip, *a, **k)
 File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 162, in ffmpeg_audiowrite
 writer.write_frames(chunk)
 File "/usr/local/lib/python2.7/dist-packages/moviepy/audio/io/ffmpeg_audiowriter.py", line 122, in write_frames
 raise IOError(error)
IOError: [Errno 32] Broken pipe

MoviePy error: FFMPEG encountered the following error while writing file sound.mp4:

Invalid encoder type 'libx264'


The audio export failed, possily because the bitrate you specified was two high or too low for the video codec.
</string></string></module>



Does anybody know what this error means and how this problem can be resolved ?