Page 1 of 1

--filter option not applying with -mediainfo?

Posted: 30 Jul 2015, 10:20
by Automator
Hi there,

I was trying to use -media info to check if my movies all had at least a two audio lines... but it also wrote out all the audio lines for .nfo files... which I don't need in my info.

So I used --filter "ext != /nfo/" to filter it out... which did not work...

Is is possible that --filter does not work with -mediainfo?

Cheers
Automator

Re: --filter option not applying with -mediainfo?

Posted: 30 Jul 2015, 11:02
by rednoah
--filter indeed does not work for -mediainfo

--filter is used for -rename and amc script calls where it is used to filter metadata. It can't be used to filter input files. You can use find | xargs for that.

Re: --filter option not applying with -mediainfo?

Posted: 30 Jul 2015, 11:24
by Automator
For all the people who are not master of find and xargs here is a sample:

Code: Select all

find /path/where/you/want/to/search/ -name "*.mkv" -print0 | xargs -0 filebot -mediainfo --format "{fn}.{ext}:{media.AudioCount}"

Re: --filter option not applying with -mediainfo?

Posted: 30 Jul 2015, 13:08
by rednoah
-mediainfo --filter supported with r3160