Skip to content

Commit 2b37f06

Browse files
committed
alphabet addition
1 parent a894e82 commit 2b37f06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+72
-39
lines changed

Pipfile.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

alphatest.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from conf import SAMPLE_INPUTS,SAMPLE_OUTPUTS
2+
from moviepy.editor import *
3+
import glob, os
4+
5+
word="karen"
6+
os.chdir(SAMPLE_INPUTS)
7+
clips = [None]*len(word)
8+
for i,l in enumerate(word):
9+
filename= l+".mp4"
10+
filepath = os.path.join("alphabets", filename)
11+
print(filepath)
12+
clip= VideoFileClip(filepath)
13+
clips[i]=clip
14+
clip = concatenate_videoclips(clips,method='compose')
15+
os.chdir(SAMPLE_INPUTS)
16+
filename= word+".mp4"
17+
clip.write_videofile(filename)

data/samples/input/He (1).mp4

34.2 KB
Binary file not shown.

data/samples/input/He.mp4

34.2 KB
Binary file not shown.

data/samples/input/alphabets/a.mp4

21.4 KB
Binary file not shown.

data/samples/input/alphabets/b.mp4

66.8 KB
Binary file not shown.

data/samples/input/alphabets/c.mp4

109 KB
Binary file not shown.

data/samples/input/alphabets/d.mp4

85.4 KB
Binary file not shown.

data/samples/input/alphabets/e.mp4

55.8 KB
Binary file not shown.

data/samples/input/alphabets/f.mp4

69.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)