Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dc12ba0

Browse files
minor adjustments to indent
1 parent 1f6150f commit dc12ba0

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

encode.py

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#### LIBRARIES ####
22

3-
import subprocess
3+
import subprocess
44
import glob, os
55
import shutil
66
import 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
5454
parser=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-

0 commit comments

Comments
 (0)