Skip to content

Commit fd027f7

Browse files
committed
just few changes..
1 parent c7a75f2 commit fd027f7

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

downloader.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
banner.WelcomeBanner()
1010
videoURL = str(input("Enter Video Link : "))
1111

12-
# Only Enable for dev. purposes.
12+
# Don't Enable if you're don't know what it does.
1313
# videoURL = 'https://www.youtube.com/watch?v=mDTMBdYAjHI'
1414

1515
os.system('cls')
@@ -24,7 +24,7 @@
2424

2525
mediaPath = f"{os.getcwd()}/vids"
2626

27-
# print("-------VIDEOS-------")
27+
# -------VIDEOS-------
2828

2929
for count, stream in enumerate(streams, start=1):
3030
# print(f"{count}. Res: {stream.resolution} | Size:{stream.filesize_mb} mb")
@@ -48,7 +48,8 @@
4848
print("Wrong Input! Try Again!")
4949
sys.exit()
5050

51-
# print("-------AUDIOS-------")
51+
# -------AUDIOS-------
52+
5253
for stream in yt.streams.filter(only_audio=True, abr="128kbps"):
5354
stream.download(filename=f"{yt.title}.mp3", output_path=mediaPath)
5455
print("Audio Downloaded. ✔")

modules/vidmerge.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11

2+
# import os
3+
# import ffmpeg
4+
5+
6+
# def merge(title, outVidTitle):
7+
8+
# input_video = os.path.join(os.getcwd(), "vids",f"{title}.mp4")
9+
# input_audio = os.path.join(os.getcwd(), "vids",f"{title}.mp3")
10+
11+
# f_vid = ffmpeg.input(input_video)
12+
# f_aud = ffmpeg.input(input_audio)
13+
14+
# ffmpeg.concat(f_vid, f_aud, v=1, a=1).output(f"vids/{outVidTitle}.mp4").run()
15+
#
216
import os
3-
# from moviepy.editor import VideoFileClip, AudioFileClip
417
import ffmpeg
518

19+
620
def merge(title, outVidTitle):
721

822
input_video = os.path.join(os.getcwd(), "vids",f"{title}.mp4")
@@ -14,11 +28,3 @@ def merge(title, outVidTitle):
1428
ffmpeg.concat(f_vid, f_aud, v=1, a=1).output(f"vids/{outVidTitle}.mp4").run()
1529

1630

17-
18-
19-
20-
21-
22-
23-
24-

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
moviepy==1.0.3
1+
ffmpeg_python==0.2.0
2+
python_ffmpeg==2.0.10
23
pytube==15.0.0
34
tabulate==0.9.0

0 commit comments

Comments
 (0)