I've used ffprobe to export the metadata from a video file as a JSON file (metadata.json) and then removed several chapters from the JSON metadata file using jq metadata_clean.json.
I'm now looking for a way to import the JSON metadata file (metadata_clean.json) back into the video file.
I've looked at ffmpeg but it appears to only accept its own standard metadata file format.
Any suggestions appreciated, thanks.