You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After muxing a flac file using ffmpeg, I'm trying to add metadata using Mutagen. Post processing in mutagen, the file is still showing Writing Library as ffmpeg in the mediainfo instead of Mutagen.
What I want
What I'm getting
I'm trying below code
def add_metadata_to_flac(file_path, metadata):
audio = FLAC(file_path)
audio.clear()
with open("cover.jpg", "rb") as f:
image = f.read()
picture = mutagen.flac.Picture()
picture.type = 3
picture.data = image
audio.add_picture(picture)
for key, value in metadata.items():
audio[key] = str(value)
audio.save()
Can someone please help me? I don't want ffmpeg to be displayed as writing library
The text was updated successfully, but these errors were encountered:
Should mutagen update it by default every time it writes? Probably, I'm not sure. I personally would say yes, but some users might want to preserve the current behavior.
I think it definitely should update it when calling VComment.clear.
Should mutagen update it by default every time it writes? Probably, I'm not sure. I personally would say yes, but some users might want to preserve the current behavior.
I think it definitely should update it when calling VComment.clear.
This maybe not actually an issue
After muxing a flac file using ffmpeg, I'm trying to add metadata using Mutagen. Post processing in mutagen, the file is still showing Writing Library as ffmpeg in the mediainfo instead of Mutagen.
What I want
What I'm getting
I'm trying below code
Can someone please help me? I don't want ffmpeg to be displayed as writing library
The text was updated successfully, but these errors were encountered: