diff --git a/cover.jpg b/cover.jpg deleted file mode 100755 index 1567926..0000000 Binary files a/cover.jpg and /dev/null differ diff --git a/hello.m4a b/hello.m4a deleted file mode 100755 index 9d42f4a..0000000 Binary files a/hello.m4a and /dev/null differ diff --git a/o.ipod b/o.ipod deleted file mode 100644 index f3c44d9..0000000 Binary files a/o.ipod and /dev/null differ diff --git a/o.m4a b/o.m4a deleted file mode 100644 index f3c44d9..0000000 Binary files a/o.m4a and /dev/null differ diff --git a/o.mp4 b/o.mp4 deleted file mode 100644 index a5d59d6..0000000 Binary files a/o.mp4 and /dev/null differ diff --git a/out.m4a b/out.m4a deleted file mode 100644 index ea242e6..0000000 Binary files a/out.m4a and /dev/null differ diff --git a/temp_f.py b/temp_f.py deleted file mode 100644 index bcb91fa..0000000 --- a/temp_f.py +++ /dev/null @@ -1,30 +0,0 @@ -import mutagen -import subprocess - -from pydub import effects, AudioSegment -from io import BytesIO -from tempfile import TemporaryFile - -ctr = BytesIO() -# command = "ffmpeg -i Inm-N5rLUSI.m4a -filter:a loudnorm -vn -b:a 128k -c:a aac -f ipod {}".format(tf.name).split(" ") -# print(tf.name) -# proc = subprocess.Popen(command, stderr=subprocess.PIPE) -# out, err = proc.communicate() -# print(err.decode("utf-8")) -with open("Inm-N5rLUSI.m4a", "rb") as audio: - sound = audio.read() -bf = BytesIO(sound) -s = AudioSegment(bf, format="m4a") -s2 = effects.normalize(s) -s2.export(bf, format="m4a") -c = input("Continue? [yes/no] - ") -if c == "yes": - print(tf.closed) - tf.seek(0) - data = BytesIO(tf.read()) - data.seek(0) - print(mutagen.File(data).pprint()) - with open("out.m4a", "wb") as file: - data.seek(0) - file.write(data.read()) -