[mythtv-users] anyone h.264 transcoding? want to share your magic?
Brian J. Murrell
brian at interlinx.bc.ca
Mon Feb 16 18:03:24 UTC 2015
On Mon, 2015-02-16 at 10:17 -0500, Peter Bennett (cats22) wrote:
>
> 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.
But why does mythcommflag --rebuild not correct it?
> mythcommflag --rebuild --chanid "$chanid"
> --starttime "$starttime" || echo Return Code is $?
> # Fix duration
> duration=`mediainfo '--Inform=Video;%Duration%'
> "$storagedir/$realfile"` || echo Return Code is $?
> if [[ "$duration" == "" ]] ; then
> echo "Error no duration found for $file"
> else
> echo "update recordedmarkup set data =
> '$duration' " \
> "where chanid = '$chanid' and starttime =
> '$starttime' and type = '33' and mark = '0';" | \
> $mysqlcmd
> fi
Strange. My .mkv files (transcoded with handbrake-cli) don't seem to
have a duration as reported by mediainfo '--Inform=Video;%Duration%'.
b.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150216/ab9a306c/attachment-0001.sig>
More information about the mythtv-users
mailing list