How can I extract tags from a MP4 file with MP4Box or mediainfo on the command line
With MediaInfo:
mediainfo --Output=XML input.mp4
With MP4Box – this won't give you XML though and generally seems hard to parse:
mp4box input.mp4 -info
You can get more detailed output in XML with:
mp4box input.mp4 -diso
That would create a file called
input_info.xml
. This will be too much information for your use case though, I guess.
Related videos on Youtube
![Endoro](https://i.stack.imgur.com/srn7r.jpg?s=256&g=1)
Endoro
How to Write a Batch File What is delayed expansion? Why does delayed expansion fail when inside a piped block of code? endlocal & set in case of delayed expansion What are the undocumented features and limitations of FINDSTR? How does the Windows Command Interpreter parse scripts? How does the Windows RENAME command interpret wildcards? Rules for how CMD parses numbers What encoding/code page is cmd using UTF-8 codepage 65001 in Windows - part I UTF-8 codepage 65001 in Windows - part II How to replace "=","*", ":" in a variable Find and Replace: Aacini's FindRepl.BAT Find and Replace: dbenham's JREPL.BAT FOR loop is stripping out blank lines? Copying files with name containing just numbers using a batchfile Short course in escaping special characters Survey of algorithms for computing string length Batch file to delete files older than N days How can a .bat file be 'converted' to .exe without third party tools? How to calculate a date/time difference How to get 64 tokens with FOR /f loop
Updated on September 18, 2022Comments
-
Endoro almost 2 years
I want to extract tag information like title, author, encoded date, tagged date and so on from several video, audio and subtitle tracks in .mp4 files (for later use in mkvmerge). I need the extracted information in a text or xml file and searching for the command line parameters. I know the MP4Box docu/mediainfo docu, but they are not very helpful. If you have experience in this, please help.