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 1
1
#### LIBRARIES ####
2
2
3
- import subprocess
3
+ import subprocess
4
4
import glob , os
5
5
import shutil
6
6
import random
@@ -13,10 +13,10 @@ class audioEncode:
13
13
input = '-i c:/ffmpeg/input.wav'
14
14
command = [ffmpegpath ]
15
15
codec = ['aac' , 'libmp3lame' , 'hi' ]
16
-
16
+
17
17
def __init__ (self , output ):
18
18
self .output = output
19
-
19
+
20
20
def setCodec (self , codec ):
21
21
if codec == '1' :
22
22
self .codec = '-codec:a libmp3lame -qscale:a 1'
@@ -40,16 +40,16 @@ def setCodec(self, codec):
40
40
self .codec = '-codec:a libmp3lame -qscale:a 0'
41
41
elif codec == 'max' :
42
42
self .codec = '-codec:a libmp3lame -b:a 320k'
43
-
43
+
44
44
def getCodec (self ):
45
- return self .codec
46
-
45
+ return self .code
46
+
47
47
def setOutput (self , output ):
48
48
self .output = output
49
-
49
+
50
50
def getOutput (self ):
51
51
return self .Output
52
-
52
+
53
53
#help
54
54
parser = argparse .ArgumentParser (
55
55
description = '''Convert all *.wav files from a given directory to mp3 lame /n
@@ -96,15 +96,9 @@ def getOutput(self):
96
96
97
97
98
98
99
- #ffmpeg.exe -i input.wav -codec:a aac output.m4a
99
+ #ffmpeg.exe -i input.wav -codec:a aac output.m4a
100
100
101
101
#c:/WinExec/ffmpeg.exe -i c:/WinExec/input.wav -codec:a aac output.m4a
102
102
103
103
104
104
105
-
106
-
107
-
108
-
109
-
110
-
You can’t perform that action at this time.
0 commit comments