--filter option not applying with -mediainfo?

Any questions? Need some help?
Post Reply
Automator
Posts: 36
Joined: 30 Jul 2015, 10:17

--filter option not applying with -mediainfo?

Post 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
User avatar
rednoah
The Source
Posts: 23949
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
Automator
Posts: 36
Joined: 30 Jul 2015, 10:17

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

Post 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}"
User avatar
rednoah
The Source
Posts: 23949
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

-mediainfo --filter supported with r3160
:idea: Please read the FAQ and How to Request Help.
Post Reply