Skip to content

Commit af443d9

Browse files
Update index.rst
from moviepy.editor import * # Charger la voix off (à générer avant) voix = AudioFileClip("voix_off_masculine.mp3") # Charger les images correspondantes images = [ "mystere5_bloop.png", "mystere4_yonaguni.png", "mystere3_baltique.png", "mystere2_ourang.png", "mystere1_heracleion.png" ] # Créer un diaporama (20s par image, ajustable) clips = [ImageClip(img).set_duration(20).resize(height=720) for img in images] # Concaténer les images video = concatenate_videoclips(clips, method="compose") # Ajouter la voix off video = video.set_audio(voix) # Ajouter musique d’ambiance musique = AudioFileClip("mystere_music.mp3").volumex(0.2) final_audio = CompositeAudioClip([voix.volumex(1), musique]) video = video.set_audio(final_audio) # Exporter en MP4 video.write_videofile("video_mysteres.mp4", fps=24)
1 parent 4cfc8b9 commit af443d9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

source/index.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,4 @@ The :doc:`discussions/index` section provides in-depth explanations and discussi
8383
about topics, such as:
8484

8585
* :doc:`discussions/deploying-python-applications`
86-
* :doc:`discussions/pip-vs-easy-install`
87-
88-
Reference
89-
=========
90-
91-
* The :doc:`specifications/index` section for packaging interoperability specifications.
92-
* The list of :doc:`other projects <key_projects>` maintained by members of the Python Packaging Authority.
93-
* The :doc:`glossary` for definitions of terms used in Python packaging.
86+
* :doc:`discus

0 commit comments

Comments
 (0)