Keeping video audio and removing all other metadata

Started by ijenjcdkmsd, April 27, 2024, 01:55:36 PM

Previous topic - Next topic

ijenjcdkmsd

As the subject title says, I am struggling to keep my video's audio whilst removing all other metadata. Currently just using the -all tag which of course removes everything but is there a way to save the audio data and then re apply it to the video or is there a way to just ignore audio during the initial cli request.

The file is .mp4

StarGeek

Exiftool cannot do any edits to any tracks in a video, audio or otherwise.  If you have a file that exiftool is removing audio from, then it would be appreciated if you share it because that would be a bug.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

ijenjcdkmsd

Sorry I think this was a mistake on my end, I just redid it and there now seems to be sound.

Would you be able to let me know how you would go about removing all metadata from a mp4 given it's file path?

Currently I am doing something like this:
                powershell_command = rf""".\exiftool.exe -overwrite_original -all="{file_path}" """
                subprocess.run(["powershell", "-Command", powershell_command], shell=True)

but I am getting the error: 'No file specified'

ijenjcdkmsd

ignore this too, this now works:
powershell_command = rf""".\exiftool.exe -overwrite_original -all= "{file_path}" """

StarGeek

You might want to add this as well
-CreateDate= -ModifyDate= -Track*Date= -Media*Date=

These are tags that cannot be removed from an MP4 file and are unaffected by -All=. The above options will set these time stamps to 0.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype