Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Fwd: Playback of recordings end prematurely

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


jcerruti at gmail

Aug 27, 2008, 4:12 PM

Post #1 of 6 (786 views)
Permalink
Fwd: Playback of recordings end prematurely

I'm not too sure this made it to the list, thus resending. Apologies if
duplicated.

-----------

Hello all,

I wonder if someone could give me some advice on how to go about resolving
this issue.

For a long while (I don't know when this started, probably about a year ago)
all the recordings from shows end earlier than their real length when played
from the mythTV "watch recordings" page. For example, when I record a
program of 30 minutes length, playback shows a duration of 23:47. I noticed
that the recording is indeed longer than that, for example, by playing back
the .mpg file externally using mplayer. Also, depending on how playback is
configured in mythTV, it would continue playing past 23:47, only the
progress counter would stop moving (it remains in 23:47 of 23:47) and also
many navigation functions (FFWD, RWD) are lost. Also is commercial
auto-skip. In fact: I have a slight suspicion that in many cases, commercial
flagging is not worken as well as it could because of this.

A couple more details: I notice that the "end time" reported by the mythTV
player is suspiciously similar for similar length recordings. Something
like: 30 mins -> 23:47; 1hr -> 47:58; etc. Also, I verified the guide data
is reasonably OK (this time discrepancy doesn't seem to come from there). I
am currently running mythtv 0.21 from mythbuntu 8.04.1 out-of-the-box. I use
a Hauppauge 500 with ivtv 1.1.0. Only unusual setting is that because of my
location (Argentina) I'm using Pal-Nc and a custom-written XMLTV grabber.

Any advice on how to go about diagnosing this or tips to try to fix it would
be greatly appreciated.

Thanks,

Julian


mtdean at thirdcontact

Aug 27, 2008, 6:42 PM

Post #2 of 6 (723 views)
Permalink
Re: Fwd: Playback of recordings end prematurely [In reply to]

On 08/27/2008 07:12 PM, Julian Cerruti wrote:
> I wonder if someone could give me some advice on how to go about
> resolving this issue.
>
> For a long while (I don't know when this started, probably about a
> year ago) all the recordings from shows end earlier than their real
> length when played from the mythTV "watch recordings" page. For
> example, when I record a program of 30 minutes length, playback shows
> a duration of 23:47. I noticed that the recording is indeed longer
> than that, for example, by playing back the .mpg file externally using
> mplayer. Also, depending on how playback is configured in mythTV, it
> would continue playing past 23:47, only the progress counter would
> stop moving (it remains in 23:47 of 23:47) and also many navigation
> functions (FFWD, RWD) are lost. Also is commercial auto-skip. In fact:
> I have a slight suspicion that in many cases, commercial flagging is
> not worken as well as it could because of this.
>
> A couple more details: I notice that the "end time" reported by the
> mythTV player is suspiciously similar for similar length recordings.
> Something like: 30 mins -> 23:47; 1hr -> 47:58; etc. Also, I verified
> the guide data is reasonably OK (this time discrepancy doesn't seem to
> come from there). I am currently running mythtv 0.21 from mythbuntu
> 8.04.1 out-of-the-box. I use a Hauppauge 500 with ivtv 1.1.0. Only
> unusual setting is that because of my location (Argentina) I'm using
> Pal-Nc and a custom-written XMLTV grabber.
>
> Any advice on how to go about diagnosing this or tips to try to fix it
> would be greatly appreciated.

The approach Myth uses to calculate duration of the recordings is
imprecise with certain types of shows (i.e. shows broadcast with one
frame rate while part--such as commercials--use another). The "issue"
is purely cosmetic but fixing it properly is a /lot/ of work, so fixing
it has been very low priority (for the couple of years the plan has been
in place to fix it).

There are tickets related to the issue and it will eventually be fixed.
Until then, just get used to how your local channels work and "adjust"
in your head. Soon, when someone says, "Let's meet in an hour," you'll
show up 1 hour 8 minutes and 34 seconds later and get accused of being
late, but you'll know--from watching your TV shows--that 52:30 is really
one hour, so you're actually on time. :)

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jcerruti at gmail

Sep 2, 2008, 4:00 AM

Post #3 of 6 (703 views)
Permalink
Re: Fwd: Playback of recordings end prematurely [In reply to]

Hi Mike,

:-)

Thanks for the background. Could you please point me to the tickets that
reference this problem? Who knows, maybe one day, in a parallel universe, I
will have time, skill and thoroughness enough that I may want to take a
crack at it. Or, it could just satisfy my technical curiosity to understand
what the problem is in more detail.

Regards,

Julian

On Wed, Aug 27, 2008 at 10:42 PM, Michael T. Dean
<mtdean [at] thirdcontact>wrote:

> On 08/27/2008 07:12 PM, Julian Cerruti wrote:
> > I wonder if someone could give me some advice on how to go about
> > resolving this issue.
> >
> > For a long while (I don't know when this started, probably about a
> > year ago) all the recordings from shows end earlier than their real
> > length when played from the mythTV "watch recordings" page. For
> > example, when I record a program of 30 minutes length, playback shows
> > a duration of 23:47. I noticed that the recording is indeed longer
> > than that, for example, by playing back the .mpg file externally using
> > mplayer. Also, depending on how playback is configured in mythTV, it
> > would continue playing past 23:47, only the progress counter would
> > stop moving (it remains in 23:47 of 23:47) and also many navigation
> > functions (FFWD, RWD) are lost. Also is commercial auto-skip. In fact:
> > I have a slight suspicion that in many cases, commercial flagging is
> > not worken as well as it could because of this.
> >
> > A couple more details: I notice that the "end time" reported by the
> > mythTV player is suspiciously similar for similar length recordings.
> > Something like: 30 mins -> 23:47; 1hr -> 47:58; etc. Also, I verified
> > the guide data is reasonably OK (this time discrepancy doesn't seem to
> > come from there). I am currently running mythtv 0.21 from mythbuntu
> > 8.04.1 out-of-the-box. I use a Hauppauge 500 with ivtv 1.1.0. Only
> > unusual setting is that because of my location (Argentina) I'm using
> > Pal-Nc and a custom-written XMLTV grabber.
> >
> > Any advice on how to go about diagnosing this or tips to try to fix it
> > would be greatly appreciated.
>
> The approach Myth uses to calculate duration of the recordings is
> imprecise with certain types of shows (i.e. shows broadcast with one
> frame rate while part--such as commercials--use another). The "issue"
> is purely cosmetic but fixing it properly is a /lot/ of work, so fixing
> it has been very low priority (for the couple of years the plan has been
> in place to fix it).
>
> There are tickets related to the issue and it will eventually be fixed.
> Until then, just get used to how your local channels work and "adjust"
> in your head. Soon, when someone says, "Let's meet in an hour," you'll
> show up 1 hour 8 minutes and 34 seconds later and get accused of being
> late, but you'll know--from watching your TV shows--that 52:30 is really
> one hour, so you're actually on time. :)
>
> Mike
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


knowledgejunkie at gmail

Sep 2, 2008, 4:30 AM

Post #4 of 6 (697 views)
Permalink
Re: Fwd: Playback of recordings end prematurely [In reply to]

On 28/08/2008, Michael T. Dean <mtdean [at] thirdcontact> wrote:
> On 08/27/2008 07:12 PM, Julian Cerruti wrote:
> > I wonder if someone could give me some advice on how to go about
> > resolving this issue.
> >
> > For a long while (I don't know when this started, probably about a
> > year ago) all the recordings from shows end earlier than their real
> > length when played from the mythTV "watch recordings" page. For
> > example, when I record a program of 30 minutes length, playback shows
> > a duration of 23:47. I noticed that the recording is indeed longer
> > than that, for example, by playing back the .mpg file externally using
> > mplayer. Also, depending on how playback is configured in mythTV, it
> > would continue playing past 23:47, only the progress counter would
> > stop moving (it remains in 23:47 of 23:47) and also many navigation
> > functions (FFWD, RWD) are lost. Also is commercial auto-skip. In fact:
> > I have a slight suspicion that in many cases, commercial flagging is
> > not worken as well as it could because of this.
> >
> > A couple more details: I notice that the "end time" reported by the
> > mythTV player is suspiciously similar for similar length recordings.
> > Something like: 30 mins -> 23:47; 1hr -> 47:58; etc. Also, I verified
> > the guide data is reasonably OK (this time discrepancy doesn't seem to
> > come from there). I am currently running mythtv 0.21 from mythbuntu
> > 8.04.1 out-of-the-box. I use a Hauppauge 500 with ivtv 1.1.0. Only
> > unusual setting is that because of my location (Argentina) I'm using
> > Pal-Nc and a custom-written XMLTV grabber.
> >
> > Any advice on how to go about diagnosing this or tips to try to fix it
> > would be greatly appreciated.
>
>
> The approach Myth uses to calculate duration of the recordings is
> imprecise with certain types of shows (i.e. shows broadcast with one
> frame rate while part--such as commercials--use another). The "issue"
> is purely cosmetic but fixing it properly is a /lot/ of work, so fixing
> it has been very low priority (for the couple of years the plan has been
> in place to fix it).

Mike,

Out of interest, do you know if in-stream rate changing for TV
broadcasts routinely occurs all over the world, or is limited to
certian markets (29.97 vs 23.97 vs 59.94 vs 60 etc)?

Julian's original post made me wonder whether the 30 minute recording
had its length calculated using one framerate but was actually
recorded at another in its (near) entireity, giving the wildly
inaccurate programme timing.

Nick
--
Nick Morrott

MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Sep 2, 2008, 8:47 AM

Post #5 of 6 (683 views)
Permalink
Re: Fwd: Playback of recordings end prematurely [In reply to]

On 09/02/2008 07:00 AM, Julian Cerruti wrote:
> On Wed, Aug 27, 2008 at 10:42 PM, Michael T. Dean wrote:
>> On 08/27/2008 07:12 PM, Julian Cerruti wrote:
>>
>>> I wonder if someone could give me some advice on how to go about
>>> resolving this issue.
>>>
>>> For a long while (I don't know when this started, probably about a
>>> year ago) all the recordings from shows end earlier than their real
>>> length when played from the mythTV "watch recordings" page. For
>>> example, when I record a program of 30 minutes length, playback shows
>>> a duration of 23:47. I noticed that the recording is indeed longer
>>> than that, for example, by playing back the .mpg file externally using
>>> mplayer. Also, depending on how playback is configured in mythTV, it
>>> would continue playing past 23:47, only the progress counter would
>>> stop moving (it remains in 23:47 of 23:47) and also many navigation
>>> functions (FFWD, RWD) are lost. Also is commercial auto-skip.

Somehow I missed that last statement in the original post. IME, playing
beyond the "end" of the recording should not happen in a properly
functioning Myth box. Instead, for the issue I was talking about, the
30-minute recording whose length shows as 23:47 should just take 30:00
to play back (with the progress counter moving slightly slower than real
time--i.e. the seconds increment every 1.26 seconds).

If your system keeps playing past the displayed end time, it means you
probably have a problem with the data in your database (i.e. invalid
starttime and/or endtime values and possibly broken seektables). The
fact that the data for every new recording is wrong seems to indicate a
time problem on your system. If you have multiple backends, you
probably have different times on the different systems (they should
really be synchronized with ntp). If you have only a single, you're
probably losing ticks somewhere (I think some versions of the ivtv
driver can cause this with some configurations).

I highly recommend running optimize_mythdb.pl as a first step, then
trying to figure out if anything untoward is going on with your clocks.

>>> In fact:
>>> I have a slight suspicion that in many cases, commercial flagging is
>>> not worken as well as it could because of this.
>>>
>>> A couple more details: I notice that the "end time" reported by the
>>> mythTV player is suspiciously similar for similar length recordings.
>>> Something like: 30 mins -> 23:47; 1hr -> 47:58; etc. Also, I verified
>>> the guide data is reasonably OK (this time discrepancy doesn't seem to
>>> come from there). I am currently running mythtv 0.21 from mythbuntu
>>> 8.04.1 out-of-the-box. I use a Hauppauge 500 with ivtv 1.1.0. Only
>>> unusual setting is that because of my location (Argentina) I'm using
>>> Pal-Nc and a custom-written XMLTV grabber.
>>>

And, again, I missed that important statement. I don't think the issue
I described should happen with a PVR-x50-created recording. If so, it
would be due to the difference between a 12- and 15-frame GOP length,
but I'd think more PAL users would have said something about the
inaccuracy. So, if that is the issue, I'd assume your ivtv
configuration needs fixing. (But, as an NTSC/15-frame/GOP user, I'm not
able to help with that.)

>>> Any advice on how to go about diagnosing this or tips to try to fix it
>>> would be greatly appreciated.
>>>
>> The approach Myth uses to calculate duration of the recordings is
>> imprecise with certain types of shows (i.e. shows broadcast with one
>> frame rate while part--such as commercials--use another). The "issue"
>> is purely cosmetic but fixing it properly is a /lot/ of work, so fixing
>> it has been very low priority (for the couple of years the plan has been
>> in place to fix it).
>>
>> There are tickets related to the issue and it will eventually be fixed.
>> Until then, just get used to how your local channels work and "adjust"
>> in your head. Soon, when someone says, "Let's meet in an hour," you'll
>> show up 1 hour 8 minutes and 34 seconds later and get accused of being
>> late, but you'll know--from watching your TV shows--that 52:30 is really
>> one hour, so you're actually on time. :)
>>
> Thanks for the background. Could you please point me to the tickets that
> reference this problem? Who knows, maybe one day, in a parallel universe, I
> will have time, skill and thoroughness enough that I may want to take a
> crack at it. Or, it could just satisfy my technical curiosity to understand
> what the problem is in more detail.

#799 and #1088 , for what it's worth. I didn't mention them before
because most anyone who reads through them (actually most anyone would
only read a couple statements on them before they) would think they
don't apply.

But, now, I'm thinking you weren't describing the problem I thought.
Sorry for the false lead. It's still possible that the display issue is
related to MARK_GOP_START (and a 12- vs 15-frames/GOP distinction), but
if your system continues to play beyond the "end" of the recording,
there's something more happening, too, and you can probably fix it.

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Sep 2, 2008, 8:47 AM

Post #6 of 6 (687 views)
Permalink
Re: Fwd: Playback of recordings end prematurely [In reply to]

On 09/02/2008 07:30 AM, Nick Morrott wrote:

> Out of interest, do you know if in-stream rate changing for TV
> broadcasts routinely occurs all over the world, or is limited to
> certian markets (29.97 vs 23.97 vs 59.94 vs 60 etc)?


TTBOMK, it occurs frequently in digital television broadcasts pretty
much everywhere (if not everywhere). But, it shouldn't occur on
ivtv-created recordings.

> Julian's original post made me wonder whether the 30 minute recording
> had its length calculated using one framerate but was actually
> recorded at another in its (near) entireity, giving the wildly
> inaccurate programme timing.


Yeah, it's possible that his ivtv is recording with 12frames/GOP (as
he's in a PAL area), but, IIRC, Myth always assumes 15frames/GOP for
ivtv recordings.

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.