<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/15/2015 08:37 PM, Brian J.
Murrell wrote:<br>
</div>
<blockquote cite="mid:1424050641.30329.178.camel@interlinx.bc.ca"
type="cite">And when I play in mythavtest it now thinks this 30
minute file is only
10 minutes log when Mplayer is perfectly capable of playing the
full 30
minutes long.
b.
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
</pre>
</blockquote>
<br>
I think I may know what the problem is. The rebuilding of the seek
table messes up the recording duration in myth tv. I solve it with
the following code in my transcode script. That figure in
recordedmarkup gets an incorrect value for the length of the
recording and mythtv uses it to determine the length.<br>
<br>
mythcommflag --rebuild --chanid "$chanid"
--starttime "$starttime" || echo Return Code is $?<br>
# Fix duration<br>
duration=`mediainfo '--Inform=Video;%Duration%'
"$storagedir/$realfile"` || echo Return Code is $?<br>
if [[ "$duration" == "" ]] ; then<br>
echo "Error no duration found for $file"<br>
else<br>
echo "update recordedmarkup set data =
'$duration' " \<br>
"where chanid = '$chanid' and starttime
= '$starttime' and type = '33' and mark = '0';" | \<br>
$mysqlcmd<br>
fi<br>
<br>
Peter<br>
<br>
<br>
<br>
</body>
</html>