mythcommflag Return Codes

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
nello
Junior
Posts: 27
Joined: Sun Mar 08, 2015 7:33 pm
United States of America

mythcommflag Return Codes

Post by nello » Sun Mar 13, 2016 4:42 am

Is it really true that mythcommflag return codes below 126 should be ignored? That's what seems to be implied by the code posted on this wiki page:

https://www.mythtv.org/wiki/Script_-_RemoveCommercials

Scroll down about halfway and you'll see this:

Code: Select all

if [ $ERROR -gt 126 ]; then
        echo "Commercial flagging failed for ${FILENAME} with error $ERROR"
        exit $ERROR
fi
Does anyone know what the mythcommflag return codes mean? I can't find them documented anywhere; sorry if I've missed something obvious.

Thank you.
- nello

User avatar
paulh
Developer
Posts: 437
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: mythcommflag Return Codes

Post by paulh » Sun Mar 13, 2016 9:43 am

Codes below 127 is the number of adverts found by mythcommflag.

Codes 127 and above are exit error codes. See here for the exit codes

nello
Junior
Posts: 27
Joined: Sun Mar 08, 2015 7:33 pm
United States of America

Re: mythcommflag Return Codes

Post by nello » Sun Mar 13, 2016 2:51 pm

paulh wrote:Codes 127 and above are exit error codes. See here for the exit codes
That's exactly what I was looking for!

Thank you.

- nello

Post Reply