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 » Thu Apr 26, 2018 11:16 pm

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: 981
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 » Fri Apr 27, 2018 12:17 am

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 » Fri Apr 27, 2018 1:45 am

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 » Fri Apr 27, 2018 2:27 am

Ahh, I understand now.

Thank you very much for the help.

Post Reply