Commit 138eb974 authored by Pamal-Ranasinghe's avatar Pamal-Ranasinghe

make slight change in video appending

parent 0c658a5c
...@@ -32,9 +32,10 @@ class WordMapping: ...@@ -32,9 +32,10 @@ class WordMapping:
print(str(self.filtered_sentence[i]) + extension) print(str(self.filtered_sentence[i]) + extension)
bucket.download_file(str(self.filtered_sentence[i])+extension, 'D:/s3_tute/'+str(self.filtered_sentence[i])+extension) bucket.download_file(str(self.filtered_sentence[i])+extension, 'D:/s3_tute/'+str(self.filtered_sentence[i])+extension)
for filename in glob.glob('D:/s3_tute/*.mp4'): for i in range(0, len(self.filtered_sentence)):
clip = VideoFileClip(filename) with open('D:/s3_tute/' + str(self.filtered_sentence[i])+extension) as f:
clip_arr.append(clip) clip = VideoFileClip(f.name)
clip_arr.append(clip)
final = concatenate_videoclips(clip_arr) final = concatenate_videoclips(clip_arr)
final.write_videofile("assets/final_video/final_out.mp4") final.write_videofile("assets/final_video/final_out.mp4")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment