[AMC] Skip corrupted media

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
cheesemaker
Posts: 49
Joined: 03 Sep 2012, 10:52

[AMC] Skip corrupted media

Post by cheesemaker »

Hi,

Would it be possible to skip corrupted media with the amc script?

If media is corrupted, it processes it anyway, but it leaves out the video codec and the audio codec.

Thanks,
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [AMC] Skip corrupted media

Post by rednoah »

How do I know if media is corrupted? I think the newer amc scripts have a minDurationMS condition which should work. Corrupt files shouldn't have a mediainfo duration value, and thus be ignored.
:idea: Please read the FAQ and How to Request Help.
cheesemaker
Posts: 49
Joined: 03 Sep 2012, 10:52

Re: [AMC] Skip corrupted media

Post by cheesemaker »

That's interesting. Do I have to set this minDuration manually via --def or is it a standard value? Because recently filebot moved some files which were corrupted (mkvinfo showed misterious segments, filebot left out 1080p and AC3)
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [AMC] Skip corrupted media

Post by rednoah »

It's 10 min by default. But for all the changes I've made in the last couple of months you need the latest revision:
https://sourceforge.net/projects/filebo ... ebot/HEAD/

Try this, if {duration} is empty then these files should be excluded.
:idea: Please read the FAQ and How to Request Help.
cheesemaker
Posts: 49
Joined: 03 Sep 2012, 10:52

Re: [AMC] Skip corrupted media

Post by cheesemaker »

Thanks, I'll try.
Post Reply