From 343c1b2852524e8dd17edfdc8e88f166543fe1eb Mon Sep 17 00:00:00 2001 From: WorldObservationLog Date: Fri, 17 May 2024 21:21:27 +0800 Subject: [PATCH] fix: incorrect profile of mp4 --- src/mp4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mp4.py b/src/mp4.py index 75f15a2..4ddfb23 100644 --- a/src/mp4.py +++ b/src/mp4.py @@ -156,7 +156,7 @@ def encapsulate(song_info: SongInfo, decrypted_media: bytes, atmos_convent: bool f.write(str(nhml_xml)) subprocess.run(f"gpac -i {nhml_name.absolute()} nhmlr -o {song_name.absolute()}", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) - subprocess.run(f'mp4box -add {song_name.absolute()} -brand "M4A " {song_name.absolute()}', + subprocess.run(f'mp4box -add {song_name.absolute()} -ipod {song_name.absolute()}', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) with open(song_name.absolute(), "rb") as f: final_song = f.read()