Commercial Detection
-
- Junior
- Posts: 19
- Joined: Tue Dec 11, 2018 4:20 pm
- Location: Marlborough UK
Commercial Detection
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.
-
- Junior
- Posts: 19
- Joined: Tue Dec 11, 2018 4:20 pm
- Location: Marlborough UK
Re: Commercial Detection
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?
Re: Commercial Detection
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.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?
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.
-
- Junior
- Posts: 19
- Joined: Tue Dec 11, 2018 4:20 pm
- Location: Marlborough UK
Re: Commercial Detection
Sorry, understood.