[mythtv-commits] Ticket #7659: Determine audio properties from recorded file instead of schedule data

MythTV mythtv at cvs.mythtv.org
Wed Nov 25 14:40:57 UTC 2009


#7659: Determine audio properties from recorded file instead of schedule data
----------------------------------+-----------------------------------------
 Reporter:  doug@…                |       Owner:  ijr    
     Type:  patch                 |      Status:  new    
 Priority:  minor                 |   Milestone:  unknown
Component:  MythTV - General      |     Version:  head   
 Severity:  medium                |     Mlocked:  0      
----------------------------------+-----------------------------------------
 Hi All,

 I found that the audio properties (e.g. Dolby, Stereo, etc) in my schedule
 data were often different from the actual content of my recorded files.
 This is a patch to update the audio properties after a recording finishes
 with the values that are in the file as opposed to the ones passed from
 the listings source.

 The patch includes a new class called AudioPropsGenerator which works
 similarly to PreviewGenerator. It takes a ProgramInfo and will then
 determine the AudioProperties in the current thread or a new thread.  I've
 also updated tv_rec.cpp to call this Generator after a  recording ends.
 Finally, each decoder (avformatdecoder, nuppeldecoder, etc) is responsible
 for doing the actual work of determining the audio properties.  The
 generator then takes the new value and updates the db.

 There are a few open issues (mainly around my ignorance):[[BR]]

 1. I don't know too much about audio processing, so I guessed that the
 speaker layout is a good proxy for determining the audio props.  This
 seems to prove true for my test cases, but I don't know if this applies to
 everyone.
 [[BR]]

 2. I don't know too much about the hard hearing properties so I guessed on
 that too.
 [[BR]]

 3. I don't know what the visual impair property is so I ignored it
 [[BR]]

 4. I don't have any recorders that use the nuppledecoder so I wrote the
 code, but I couldn't test it.
 [[BR]]

 Thanks! [[BR]]

 Doug

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/7659>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list