[mythtv-commits] Ticket #9036: Fix for bug on flowplayer script

MythTV mythtv at cvs.mythtv.org
Mon Nov 1 18:55:45 UTC 2010


#9036: Fix for bug on flowplayer script
--------------------------------------------+-------------------------------
 Reporter:  mythtv@…                        |           Owner:  kormoc    
     Type:  patch                           |          Status:  closed    
 Priority:  minor                           |       Milestone:  0.24      
Component:  Plugin - MythWeb                |         Version:  Trunk Head
 Severity:  medium                          |      Resolution:  Duplicate 
 Keywords:  flash flv flowplayer streaming  |   Ticket locked:  0         
--------------------------------------------+-------------------------------

Comment (by javamatte@…):

 The query is still wrong (at least for my system) in the stream_flv.pl
 script.

 It gets the width/height using this query:
 $sh = $dbh->prepare('SELECT data FROM recordedmarkup WHERE chanid=? AND
 starttime=FROM_UNIXTIME(?) AND data IS NOT NULL ORDER BY data DESC');

 In my database, there is another datum added that might be the number of
 frames (type = 32) and is usually in the tens of thousands. So the width
 is set to 29000 and then the aspect ratio is calculated incorrectly.

 Changing the query to this:
 $sh = $dbh->prepare('SELECT data FROM recordedmarkup WHERE chanid=? AND
 starttime=FROM_UNIXTIME(?) AND data IS NOT NULL ORDER BY type');

 sorts type = 30 first (this contains width in my DB), 31 second (this
 contains height) and then 32 (whatever the absurdly large number is).

 I don't have the setup to provide a patch, but this is the only ref I
 found when googling the problem (squished video in mythweb streaming), so
 I figured I would post it here in case anyone was paying attention.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/9036#comment:4>
MythTV <http://www.mythtv.org/>
MythTV Media Center


More information about the mythtv-commits mailing list