File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed
Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change 11#### LIBRARIES ####
22
3- import subprocess
3+ import subprocess
44import glob , os
55import shutil
66import random
@@ -13,10 +13,10 @@ class audioEncode:
1313 input = '-i c:/ffmpeg/input.wav'
1414 command = [ffmpegpath ]
1515 codec = ['aac' , 'libmp3lame' , 'hi' ]
16-
16+
1717 def __init__ (self , output ):
1818 self .output = output
19-
19+
2020 def setCodec (self , codec ):
2121 if codec == '1' :
2222 self .codec = '-codec:a libmp3lame -qscale:a 1'
@@ -40,16 +40,16 @@ def setCodec(self, codec):
4040 self .codec = '-codec:a libmp3lame -qscale:a 0'
4141 elif codec == 'max' :
4242 self .codec = '-codec:a libmp3lame -b:a 320k'
43-
43+
4444 def getCodec (self ):
45- return self .codec
46-
45+ return self .code
46+
4747 def setOutput (self , output ):
4848 self .output = output
49-
49+
5050 def getOutput (self ):
5151 return self .Output
52-
52+
5353#help
5454parser = argparse .ArgumentParser (
5555 description = '''Convert all *.wav files from a given directory to mp3 lame /n
@@ -96,15 +96,9 @@ def getOutput(self):
9696
9797
9898
99- #ffmpeg.exe -i input.wav -codec:a aac output.m4a
99+ #ffmpeg.exe -i input.wav -codec:a aac output.m4a
100100
101101#c:/WinExec/ffmpeg.exe -i c:/WinExec/input.wav -codec:a aac output.m4a
102102
103103
104104
105-
106-
107-
108-
109-
110-
You can’t perform that action at this time.
0 commit comments