[mythtv-commits] Ticket #11079: nuvexport fail with mythtv 0.26 du to UTC change

MythTV noreply at mythtv.org
Wed Oct 31 09:51:37 UTC 2012

#11079: nuvexport fail with mythtv 0.26 du to UTC change
 Reporter:  zeloise@…             |          Owner:  xris
     Type:  Bug Report - General  |         Status:  new
 Priority:  minor                 |      Milestone:  unknown
Component:  Apps - Nuvexport      |        Version:  Master Head
 Severity:  high                  |     Resolution:
 Keywords:  nuvexport             |  Ticket locked:  0

Comment (by liam_philpott@…):

 I too came across this problem, but I'm using ffmpeg. I'm no Perl expert,
 but I modified export/ffmprg.pm as follows to get it working:

 At the top of the file:

     use Time::Local;

 Then, down at around line 182, where the $mythtranscode command is

         @t = localtime($episode->{'recstartts'});
         $utc_offset_in_seconds = timegm(@t) - timelocal(@t);

     # Here, we have to fork off a copy of mythtranscode (Do not use
 --fifosync with ffmpeg or it will hang)
         my $mythtranscode_bin = find_program('mythtranscode');
         $mythtranscode = "$NICE $mythtranscode_bin --showprogress"
 #                        ." --logpath /tmp --loglevel debug"
                         ." --profile '$episode->{'transcoder'}'"
                         ." --chanid '$episode->{'chanid'}'"
 #                        ." --starttime
                         ." --starttime
 '".unix_to_myth_time($episode->{'recstartts'} -
                         ." --fifodir \"/tmp/fifodir_$$/\"";
         $mythtranscode .= ' --honorcutlist' if ($self->{'use_cutlist'});
         $mythtranscode .= ' --fifosync'     if ($self->{'audioonly'} ||


 So I added the lines that create the '@t' and the '$utc_offset_in_seconds'
 variables, at the start. Then I modified the '--starttime' parameter to
 take account of the UTC offset. This seems to work for recordings created
 both before and after the changeover from Daylight Saving Time.

 I know it's not a definitive solution, but it might help others and
 provide someone more able with some help to create a proper fix.

Ticket URL: <http://code.mythtv.org/trac/ticket/11079#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center

More information about the mythtv-commits mailing list