[mythtv-users] anyone h.264 transcoding? want to share your magic?

Hika van den Hoven hikavdh at gmail.com
Mon Feb 16 15:12:04 UTC 2015


Hoi Peter,

Monday, February 16, 2015, 4:17:36 PM, you wrote:

> On 02/15/2015 08:37 PM, Brian J. Murrell wrote:
>> 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.
>>
>>
>> _______________________________________________

> 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.

>                     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

> Peter

Exactly what I was thinking: The difference between starttime and
endtime in the recorded table. I always adapt endtime after a
transcoding. (and to be sure I synchronize progstart and progend to
them)





Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list