Skip to content

Commit 036ee22

Browse files
committed
whitespace-safe subproccess
1 parent 59c930c commit 036ee22

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pytubeTest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,4 @@
4747
faceFrame = frame.crop((left,top,right,bottom-height*0.3))
4848
faceFrame.save(faceFilename)
4949

50-
command = "ffmpeg -i "+latest_file+" -ab 160k -ac 2 -ar 44100 -vn "+folderNumber+"/audio.wav"
51-
52-
subprocess.call(command, shell=True)
50+
subprocess.run(["ffmpeg", "-i", latest_file, "-ab", "160k", "-ac", "2", "-ar", "44100", "-vn", folderNumber+"/audio.wav"])

0 commit comments

Comments
 (0)