Commercial Detection

For discussion of topics specific to MythTV on linux
Post Reply
ceesquared
Junior
Posts: 19
Joined: Tue Dec 11, 2018 4:20 pm
Location: Marlborough UK
Great Britain

Commercial Detection

Post by ceesquared »

I'm on Freesat (UK) and mythtv v31. I have tried 3 methods of commercial detection, Two detecting silences and one built in. mythcommflag works on logo detect except that Film4 does not have a logo. Does anybody know of a BASH routine that will detect if a recording is on Film4( or any other channel) and call silence.py instead of mythcommflag. My BE setup for commercial detection calls mythcommflag.sh and so any parameter can be passed to this via mythcommflag.sh to do the IF THEN ELSE routine. Many thanks for any suggestions.
ceesquared
Junior
Posts: 19
Joined: Tue Dec 11, 2018 4:20 pm
Location: Marlborough UK
Great Britain

Re: Commercial Detection

Post by ceesquared »

I have discovered that Film4 has CHANID which is a multiple of the channel that I receive on(10300 vs 300) so I can do chanid =chanid % 1000 to bring CHANID down to a receive channel. Is this on the right lines?
User avatar
kmdewaal
Developer
Posts: 739
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Commercial Detection

Post by kmdewaal »

I have discovered that Film4 has CHANID which is a multiple of the channel that I receive on(10300 vs 300) so I can do chanid =chanid % 1000 to bring CHANID down to a receive channel. Is this on the right lines?
No, this is not a good idea. The chanid is the unique key in the database table channel and it can in principle have any numeric value. The logic that makes the chanid values does use the channel number but if the chanid value is already in use it selects another value.
For instance, if you do a rescan then channel 300 can be deleted and there can be a new channel 300. This will then get a new chanid which will NOT be 10300.
ceesquared
Junior
Posts: 19
Joined: Tue Dec 11, 2018 4:20 pm
Location: Marlborough UK
Great Britain

Re: Commercial Detection

Post by ceesquared »

Sorry, understood.
Post Reply