How to programically check to see if a recording is damaged

Post Reply
alforddm
Newcomer
Posts: 10
Joined: Mon May 23, 2016 5:05 pm
United States of America

How to programically check to see if a recording is damaged

Post by alforddm »

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?
User avatar
bill6502
Developer
Posts: 2323
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: How to programically check to see if a recording is damaged

Post by bill6502 »

Python bindings have a way

Code: Select all

pgm = recording.getRecordedProgram()
    pgm.videoprop
but if that's not an option, then this will help:
DESCRIBE recordedprogram; and look for:

Code: Select all

videoprop               | set('HDTV','WIDESCREEN','AVC','720','1080','DAMAGED')
It's also available via the Services API in: hostname:6544/Dvr/GetRecorded?RecordedId=xxx
in VideoProps, bit 9 (VID_DAMAGED= 0x20.)
alforddm
Newcomer
Posts: 10
Joined: Mon May 23, 2016 5:05 pm
United States of America

Re: How to programically check to see if a recording is damaged

Post by alforddm »

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!
alforddm
Newcomer
Posts: 10
Joined: Mon May 23, 2016 5:05 pm
United States of America

Re: How to programically check to see if a recording is damaged

Post by alforddm »

Ahh, I understand now.

Thank you very much for the help.
Post Reply