Forrest logo
back to the mediainfo tool

mediainfo:tldr:d1693

mediainfo: Store the output to a given file along with displaying in the console.
$ mediainfo --Logfile=${out-txt} ${file}
try on your machine

The command mediainfo --Logfile=${out-txt} ${file} is used to extract information about a media file using the mediainfo tool and save the output to a log file.

Here's a breakdown of the command:

  • mediainfo: This is the main command that runs the mediainfo tool. mediainfo is a command-line utility that provides technical and tag information about a media file.
  • --Logfile=${out-txt}: This option specifies the name and location of the log file where the output of the mediainfo command will be saved. In this case, ${out-txt} is likely a placeholder for the desired output file path and name.
  • ${file}: This is another placeholder that is likely intended to represent the media file for which the information is being extracted. The actual media file should be specified at this position, replacing ${file}.

To use this command, you would replace ${out-txt} with the desired path and name for the output log file, and ${file} with the actual media file you want to analyze.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mediainfo tool