[mythtv-users] Commercial Flagging (UK, DVB-T)
Mark Greenwood
fatgerman at gmail.com
Sat Oct 27 21:34:11 UTC 2012
On 27 Oct 2012, at 22:15, Tim Phipps wrote:
> Quoting Mark Greenwood <fatgerman at gmail.com>:
>> On 26 Oct 2012, at 16:04, Mark Greenwood wrote:
>>> rec.storagegroup, db=db) returns 'None'.
>>
>> Right, found what I suspect is a bug in the python bindings for 0.26
>>
>> sg.dirname+filename == /var/lib/mythtv/recordings1029_20121023230500.mpg
>>
>> So, change the call to
>>
>> sg = findfile('/'+rec.basename, rec.storagegroup, db=db)
>>
>> and the script runs. (Haven't yet checked whether it has found the breaks correctly)
>>
>> Looks like sg.dirname is stripping a trailing slash where it shouldn't. Where should I report this?
>
> I just upgrades to 0.26 to see if I get this problem and I don't. One thing I noticed though is that all my storage groups have a slash at the end. Do yours? I just created a new one in mythtv-setup and it put the slash on the end even though I didn't type it in. It could be that they are meant to have slashes at the end, a bit odd but won't kill anything.
Funnily enough the same thought just occurred to me as this email came in. My storage groups don't have a slash at the end. I'm using a default mythbuntu install, so I didn't create them myself. So it's more likely a mythbuntu bug than an mythtv bug then I guess? When I get a slack minute I'll report it to the mythbuntu guys. I'm loath to change my storage groups now because who knows what else it might break? :)
BTW once I'd made that change, your script ran and detected commercials successfully on two recordings. The CPU usage on my atom/ION backend was still too high to do flagging during recording (not that I actually tried it, but flagging an existing recording I watched 'top' while it ran and the CPU was maxed.) It's quicker than the mythcommflag_wrapper script but uses more CPU, which is not what I was expecting and I don't think it's what you were expecting either :) Must be something odd going on there. I'll keep investigating.
Cheers,
Mark
>
> Cheers,
> Tim.
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
More information about the mythtv-users
mailing list