Check if multiple MP4-files have audio stream in specific directory

Started by seppo, January 05, 2021, 04:58:59 AM

Previous topic - Next topic

seppo

Hi Guys,

Could you help a Newbie out?
I'm trying to  find a command that displays which *.mp4 files in a specific folder has an audio stream and write the filename (and write the filename and) this to an .txt file.

Working on a MacBook and want to use this on both windows and iOS..
so far I came up with the following command:

exiftool -p "$filename has $AudioFormat" -q -f DIR > Filenames_with_audiostream.txt

Is there someone who could help me in the right direction and could explain what I'm doing wrong.

Thanks in advance..


Phil Harvey

Maybe something like this:

exiftool -if '$audioformat' -p '$filename has $AudioFormat' -q -f -ext mp4 DIR > Filenames_with_audiostream.txt

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

seppo

Thanks for the quick reply, Phil.

The command you suggested works!
Thank you for taking the time to help someone (me) out.

- Seppo