@@ -16,8 +16,9 @@ We're going to be using Moviepy to do the following:
16
16
17
17
18
18
19
+ ### Installations
19
20
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 ) )
21
22
Moviepy 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!
22
23
23
24
##### macOS:
@@ -33,7 +34,7 @@ Use the [executable](https://www.ffmpeg.org/download.html)
33
34
34
35
35
36
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 ) )
37
38
To add text, you must install ImageMagic.
38
39
39
40
##### macOS:
@@ -50,8 +51,44 @@ Download [here](https://imagemagick.org/script/download.php)
50
51
Use the [ binary or exe] ( https://imagemagick.org/script/download.php#windows )
51
52
52
53
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
54
72
```
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' )
56
86
```
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