[mythtv-users] 0.24 Python Bindings - Transcode Wrapper Script

Raymond Wagner raymond at wagnerrp.com
Thu Feb 17 02:29:20 UTC 2011


On 2/16/2011 19:51, Robert Houghton wrote:
> On Wed, Feb 16, 2011 at 10:11 AM, Raymond Wagner <raymond at wagnerrp.com 
> <mailto:raymond at wagnerrp.com>> wrote:
>
>     On 2/16/2011 12:46, Robert Houghton wrote:
>     > http://www.mythtv.org/wiki/High_Quality_Transcode
>
>     After looking at this script, I'm not entirely sure how it's working.
>     The chanid/starttime pair in the recorded table is the primary
>     key, and
>     thus must be unique.  In your script, when inserting the new
>     recording,
>     you replace the old starttime with a new one.  However reading back
>     through the code, you split apart the old starttime, and use that to
>     create the same exact new time.  I don't understand why the database
>     wouldn't refuse the new record every time, and cause the script to die
>     at the end.
>
>
> Seconds are incremented.
>
>    $secs = $secs + $iter; // creates unique chan_starttime for db entry
>    $newstarttime = sprintf "%04d-%02d-%02d %02d:%02d:%02d",
>                      $year, $month, $day, $hour, $mins, $secs;

Ah, missed that line, thanks.


More information about the mythtv-users mailing list