Jump to content

Use MediaInfo CLI to crawl your drives and curate your video libraries


FunkyBuddha

Recommended Posts

I've been using Tdarr to transcode my video files. My problem was I can search for video files but am not able to identify the codec. Almost saved 3TB so far using Tdarr. This allows for more strategic transcoding.

 

Instructions:

  1. Download MediaInfo CLI (command line version of the UI)
  2. Create an inform file (this contains the parameters to be run)
  3. Create batch file to recursively crawl your media libraries
  4. The final output is a csv file in my Ram Drive which can be opened by a spreadsheet or any analytical tools.

 

Inform file (C:\temp\getvidnfo.txt):

Quote

General;""%FolderName%"",""%FileNameExtension%"",%FileSize%,
Video;""%Format%""
File_End;

Batch file:

Quote

@echo
echo FolderName,FileName,FileSize,Codec > R:\temp\mediainfo.csv
set vidpath=\\MyVid\Collection
pushd "%vidpath%"
for /r %%i in ("*.mp4", "*.avi", "*.divx", "*.mkv") do C:\temp\mediainfo --Inform=file://C:\temp\getvidnfo.txt "%%i" >> R:\temp\mediainfo.csv
popd

 

Link to comment

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...