Skip to content

Commit

Permalink
Switch to vbr encoding for much smaller files
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp123 committed Oct 18, 2017
1 parent 081a0e1 commit 05ea197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp4tomp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main(indir, outdir):
for filename in files:
print("-- converting {0}/{2}.mp4 to {1}/{2}.mp3 --".format(indir, outdir, filename))
call(["mplayer", "-novideo", "-nocorrect-pts", "-ao", "pcm:waveheader", indir + "/" + filename + ".mp4"])
call(["lame", "-h", "-b", "192", "audiodump.wav", outdir + "/" + filename + ".mp3"])
call(["lame", "-v", "audiodump.wav", outdir + "/" + filename + ".mp3"])
os.remove("audiodump.wav")

# set the default directories and try to get input directories
Expand Down

0 comments on commit 05ea197

Please sign in to comment.