I'm writing a script to transcode recordings but I only want to transcode them if they are not damaged (our TV goings in and out alot). I can't find where the flag for this is located. I'm making the database call with perl $dbh = $Myth->{'dbh'}; my $sgroup = new MythTV::StorageGroup();
Were do I need to look?
How to programically check to see if a recording is damaged
Re: How to programically check to see if a recording is damaged
Python bindings have a way
but if that's not an option, then this will help:
DESCRIBE recordedprogram; and look for:
It's also available via the Services API in: hostname:6544/Dvr/GetRecorded?RecordedId=xxx
in VideoProps, bit 9 (VID_DAMAGED= 0x20.)
Code: Select all
pgm = recording.getRecordedProgram()
pgm.videoprop
DESCRIBE recordedprogram; and look for:
Code: Select all
videoprop | set('HDTV','WIDESCREEN','AVC','720','1080','DAMAGED')
in VideoProps, bit 9 (VID_DAMAGED= 0x20.)
Re: How to programically check to see if a recording is damaged
Hmmm, I'm finding 'video_props' => 43 ?
But searching for videoprops did help me find some documentation I had missed so I'll dig through that and see if what I can find.
Thank you!
But searching for videoprops did help me find some documentation I had missed so I'll dig through that and see if what I can find.
Thank you!
Re: How to programically check to see if a recording is damaged
Ahh, I understand now.
Thank you very much for the help.
Thank you very much for the help.