This commit is contained in:
Xerasin 2020-11-07 12:45:00 -08:00
parent 9d51cac158
commit 2fa18f41dd
6 changed files with 15 additions and 0 deletions

15
convert.py Normal file
View File

@ -0,0 +1,15 @@
import ffmpeg
import sys
import time
import os
import os.path
file_paths = sys.argv[1:]
for p in file_paths:
name = os.path.basename(p)
name = os.path.splitext(name)[0]
stream = ffmpeg.input(p)
stream = ffmpeg.output(stream, name + "_Output.ogg", acodec="libvorbis", audio_bitrate="80k")
ffmpeg.run(stream)
time.sleep(7)