[mythtv-commits] Ticket #11248: Playback of transcoded recording is 50 seconds short

MythTV noreply at mythtv.org
Sun Nov 18 20:29:33 UTC 2012


#11248: Playback of transcoded recording is 50 seconds short
---------------------------------------------+----------------------
     Reporter:  Peter Bennett <pgbennett@…>  |      Owner:  cpinkham
         Type:  Bug Report - General         |     Status:  new
     Priority:  minor                        |  Milestone:  unknown
    Component:  MythTV - Mythcommflag        |    Version:  0.25.3
     Severity:  medium                       |   Keywords:
Ticket locked:  0                            |
---------------------------------------------+----------------------
 I am transcoding shows to X264 with handbrake, updating the recorded
 table with the new file name (mkv extension) ("update recorded set
 basename = '$file'
 where basename = '$basename.mpg';"), and then running "mythcommflag
 --rebuild  --chanid xxx --starttime xxx"

 All works very well, except when playing back the recordings through the
 frontend they stop playing about 50 seconds before the end of the
 recording, losing part of the last scene of the show. Playing the file
 through VLC is fine, the missing scene plays correctly up to the end and
 the closing credits play.

 I found the cause of the problem. The recordedmarkup table has an entry
 for the duration in milliseconds. This was showing a value of 3551460
 which is about 59 minutes and 11 seconds. I updated that in the
 database, now the show plays correctly to the end.
 Since the original recording was 60 minutes,
 I am not sure where the 59 minutes 11 seconds comes from, but after
 transcoding the recording has the correct 60 minute length.

 This is the database update script I used
 {{{
 duration=`mediainfo '--Inform=Video;%Duration%' "$file"`
 echo "update recordedmarkup set data = '$duration' " \
      "where chanid = '$chanid' and starttime = '$starttime' and type =
 '33' and mark = '0';" | \
      $mysqlcmd
 }}}

 Can the mythcommflag --rebuild command also fix the recordedmarkup table
 entries?

 Version: 2:0.25.3+fixes.20121117.addfa54-0ubuntu0mythbuntu3

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11248>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list