@@ -16,8 +16,9 @@ We're going to be using Moviepy to do the following:
1616
1717
1818
19+ ### Installations
1920
20- ### [ FFmpeg] ( https://www.ffmpeg.org/download.html ) ([ Link] ( https://www.ffmpeg.org/download.html ) )
21+ #### [ FFmpeg] ( https://www.ffmpeg.org/download.html ) ([ Link] ( https://www.ffmpeg.org/download.html ) )
2122Moviepy and ffmpeg work well together. ffmpeg can do most/all of this on it's own but, as far as this writing, lacks Python bindings. Thus, moviepy is used!
2223
2324##### macOS:
@@ -33,7 +34,7 @@ Use the [executable](https://www.ffmpeg.org/download.html)
3334
3435
3536
36- ### [ ImageMagick] ( https://imagemagick.org/script/download.php ) ([ Link] ( https://imagemagick.org/script/download.php ) )
37+ #### [ ImageMagick] ( https://imagemagick.org/script/download.php ) ([ Link] ( https://imagemagick.org/script/download.php ) )
3738To add text, you must install ImageMagic.
3839
3940##### macOS:
@@ -50,8 +51,44 @@ Download [here](https://imagemagick.org/script/download.php)
5051Use the [ binary or exe] ( https://imagemagick.org/script/download.php#windows )
5152
5253
53- ### [ Moviepy] ( https://zulko.github.io/moviepy/ ) ([ Link] ( https://zulko.github.io/moviepy/ ) )
54+
55+ ### Base Project
56+
57+
58+ #### 1. Start project
59+ We're using pipenv and [ Moviepy] ( https://zulko.github.io/moviepy/ ) ([ Link] ( https://zulko.github.io/moviepy/ ) )
60+
61+ ```
62+ cd path/to/your/project/folder/
63+ ```
64+
65+ ```
66+ pipenv install --python 3.8 moviepy
67+ pipenv shell
68+ mkdir data
69+ mkdir data/samples
70+ mkdir data/samples/inputs
71+ mkdir data/samples/outputs
5472```
55- pipenv install moviepy
73+
74+
75+ #### 2. Create ` conf.py `
76+
77+ ``` python
78+ import os
79+
80+ ABS_PATH = os.path.abspath(__file__ )
81+ BASE_DIR = os.path.dirname(ABS_PATH )
82+ DATA_DIR = os.path.join(BASE_DIR , " data" )
83+ SAMPLE_DIR = os.path.join(DATA_DIR , " samples" )
84+ SAMPLE_INPUTS = os.path.join(SAMPLE_DIR , " inputs" )
85+ SAMPLE_OUTPUTS = os.path.join(SAMPLE_DIR , ' outputs' )
5686```
57- This is what we'll use for Day 15.
87+
88+
89+ #### 3. Download sample audio and video
90+
91+ - [ audio.mp3] ( https://github.com/codingforentrepreneurs/30-Days-of-Python/raw/master/tutorial-reference/Day%2015/data/samples/inputs/audio.mp3 )
92+ - [ sample.mp4] ( https://github.com/codingforentrepreneurs/30-Days-of-Python/raw/master/tutorial-reference/Day%2015/data/samples/inputs/sample.mp4 )
93+
94+ Once downloaded, move these files to your project's ` data/samples/inputs ` directory.
0 commit comments