ExifTool Forum

General => Metadata => Topic started by: seppo on January 05, 2021, 04:58:59 AM

Title: Check if multiple MP4-files have audio stream in specific directory
Post by: seppo on January 05, 2021, 04:58:59 AM
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..

Title: Re: Check if multiple MP4-files have audio stream in specific directory
Post by: Phil Harvey on January 05, 2021, 08:29:05 AM
Maybe something like this:

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

- Phil
Title: Re: Check if multiple MP4-files have audio stream in specific directory
Post by: seppo on January 07, 2021, 02:40:19 AM
Thanks for the quick reply, Phil.

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

- Seppo