It is possible to export the full metadata from a video/audio .mp4 (in .txt probably) then modify it to add or remove some tag and upload it back to the video ?
Thanks for your help
+ Reply to Thread
Results 1 to 4 of 4
ffmpeg -i in.mp4 -f ffmetadata in.txt
exiftool in.mp4 >a.txt
ffprobe -show_frames "in.mp4" >B.txt
The above Will all Output MetaData to a text file. The problem is that they all do it differently and the Designations are not always the same for each metadata tag.
Further complicating this is the fact that the writing programs also have there own designations for the metadata tags.
The easiest way is to use ffmpeg to copy all Metadata from source file to the destination file and add the new or changed data.
Adding Encoded/Tagged dates to a video without them:
ffmpeg -i test.mp4 -map_metadata 0 -metadata creation_time="2020-07-30 12:59:20" -c copy C.mp4
Removing Encoded/Tagged dates:
ffmpeg -i test.mp4 -map_metadata 0 -metadata creation_time="" -c copy C.mp4
It is necessry to use the metadata "key=XXXX" format; The recognized list of formats is as listed for mp4:
"creation_time" (Sets both Encoded and aTagged dates in metadata)
Thanks for reply, that's explain a lot.
would it be possible to add "bitrate" or "maximum bitrate" within metadata (for a video that don't have one or both listed) or we are limited to only the list you described ?
Wouldnt do much good sonce you would be telling a 200k bps video that it is 400k. Only way to do that is recode. Bitrate and other is used by codec so lying to it would not be good. If you notice the list of mp4 allowed keys are not needed to have a valid video.
Different formats use different allowable keys. The above list is the only ones i know are allowed for mp4.
Update. You can add anything you want to comments.
remove metadata and keep audios and subtitles using ffmpegBy ekato993 in forum Video Streaming DownloadingReplies: 0Last Post: 6th Jun 2021, 04:28
ffmpeg remove metadataBy osmium in forum EditingReplies: 2Last Post: 18th Feb 2020, 12:57
Add/Remove black borders in the top/bottom of a video without reencoding.By November in forum EditingReplies: 10Last Post: 11th May 2019, 07:48
How to add count of subtitle elements to video metadata for MediaInfo?By elprice7345 in forum Newbie / General discussionsReplies: 4Last Post: 1st May 2019, 15:29
How to add a time stamp below of a screen capture from a video in ffmpeg?By Chemist116 in forum Newbie / General discussionsReplies: 11Last Post: 2nd Jun 2017, 15:08