Menu

MediaInfo Batch Command to Export MP3 Duration: Screen Display

Help
raywood
2017-01-28
2018-04-27
  • raywood

    raywood - 2017-01-28

    Here's my attempt at a simple Windows batch file to produce a list indicating the playing length of each MP3 in a folder:

    @echo off
    cls
    mediainfo --output=General;%%FileName%%.%%FileExtension%%^|%%Duration/String3%%\r\n *.mp3 *.wav > MP3Duration.txt
    

    This works. My only question: is there a way to display the results onscreen as well as putting them into a text file?

     
  • Antonio R.

    Antonio R. - 2018-04-27

    I have both in the same folder, the GUI version that is called MediaInfo.exe, and the CLI version that I renamed to MediaInfoCLI.exe, I put the mediainfo folder in the Windows path.

    Use the CLI (Command Line) version.
    http://mediainfo.sourceforge.net/fr/Download/Windows and the command below:

    @ECHO off
    CLS
    MediaInfoCLI.exe --output=General;%%FileName%%.%%FileExtension%%^|%%Duration/String3%%\r\n *.mp3 *.wav --LogFile=MP3_Duration
    PAUSE
    
     

    Last edit: Antonio R. 2018-04-27

Log in to post a comment.