Omnibus commited on
Commit
21fcda9
·
1 Parent(s): d9a2e36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,9 +8,9 @@ uid=uuid.uuid4()
8
  def load_video_yt(vid):
9
  yt = YouTube(vid)
10
  vid = yt.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first().download(filename=f"{uid}-tmp.mp4")
11
- vid_aud = yt.streams.filter(only_audio=True)[0].download(filename=f"{uid}-tmp_aud.mp4")
12
  print (f'Video Length: {yt.length}')
13
- return f"{uid}-tmp_aud.mp4"
14
 
15
  def trim_vid():
16
  ffmpeg_extract_subclip("video1.mp4", start_time, end_time, targetname="test.mp4")
 
8
  def load_video_yt(vid):
9
  yt = YouTube(vid)
10
  vid = yt.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first().download(filename=f"{uid}-tmp.mp4")
11
+ #vid_aud = yt.streams.filter(only_audio=True)[0].download(filename=f"{uid}-tmp_aud.mp4")
12
  print (f'Video Length: {yt.length}')
13
+ return f"{uid}-tmp.mp4"
14
 
15
  def trim_vid():
16
  ffmpeg_extract_subclip("video1.mp4", start_time, end_time, targetname="test.mp4")