Log in

View Full Version : Batch check for ac3?


richarddd
14th March 2010, 21:53
How can I easily check a fair number of avi movie files to see if any have ac3 audio?

I believe I've encoded all audio to mp3, but am not sure. I can check one-by-one with mediainfo or the like, but that would be tedious. I'd like some some of bulk checker that can either confirm that all files are mp3 or identify any files that contain ac3. Video is all xvid, if that matters.

Any suggestions would be appreciated.

Apologies if I've missed something in search or if this is the wrong forum.

kypec
15th March 2010, 06:43
Perhaps you could try to use MediaInfo CLI utility with customized template (with only relevant audio metadata included) and run it in batch mode.
Output of each scan would be saved in some LOG file.
Afterwards you just need to parse that LOG file(s), possibly can be done with FIND command as well.

tebasuna51
15th March 2010, 13:23
For instance:

1) Create a MediaInfo_Audio.cmd file:
* Copy this text (Select all, right-click, Copy)
@echo off
for %%A in (*.avi) do C:\path to your MediaInfo_cli\MediaInfo --Inform=Audio;%%Format%% --LogFile="%%A.log" "%%A"
find "AC-3" *.log
del *.log
pause
* Open Notepad and Paste (Edit -> Paste)
* Replace the "path to your MediaInfo_cli" with your proper path
* File -> Save as...
Name: MediaInfo_Audio.cmd
Type: All files
Code: ANSI

2) Copy the file to the folder with avi's to check

3) Run MediaInfo_Audio.cmd

richarddd
15th March 2010, 15:45
Excellent!

:thanks: