Mailing List Archive

Re: mpeg 2 playback glitches
What did you have to change to get two-PVR-250's to work?
(I have a PVR-250 and a PVR-350 in the same backend.

sjf

At 14:43 7/24/2003, you wrote:
>From: Russ Southern <russ.southern@cox.net>
>Precedence: list
>Subject: Re: [mythtv-users] Re: mpeg2 playback glitches
>Date: Thu, 24 Jul 2003 14:50:51 -0500
>To: Discussion about mythtv <mythtv-users@snowman.net>
>References: <200307220741.h6M7f2Y6017530@www.snowman.net>
> <200307241210.07093.curtis@stanfordcomputing.com>
> <200307241419.21102.ijr@po.cwru.edu>
> <200307241244.14607.curtis@stanfordcomputing.com>
>In-Reply-To: <200307241244.14607.curtis@stanfordcomputing.com>
>Reply-To: Russ Southern <russ.southern@cox.net>,
> Discussion about mythtv <mythtv-users@snowman.net>
>Message-ID: <20030724195051.GB14331@cox.net>
>Content-Type: text/plain; charset=us-ascii
>MIME-Version: 1.0
>Message: 14
>
>On Thu, Jul 24, 2003 at 12:44:14PM -0600, Curtis Stanford wrote:
> > That's why I was trying to draw it back to the original issue. I've been
> > reading the ivtv-devel list and see references to an error I've been
> getting:
> > "Not enough free buffers". I don't know if that's the problem but it's a
> > start.
>
>OK. I can help with this one. Add an option to /etc/modules.conf:
>options ivtv debug=1 mpg_buffers=100
>
>Reload the module and see if you get fewer of these errors. It could be the
>"glitches" are dropped frames. This setting could help.
>
>I have two PVR-250's and had to make a different change to eliminate these
>warnings altogether, but this should be enough for one card.
>
>Russ
>
>P.S. In case you need even more than 100, change the maximum by looking in
>ivtv-driver.c for a line like this:
>
> if ((mpg_buffers > 100) || (mpg_buffers < 15)) {
>
>and change the 100 to a bigger number.



***************************************************************
Steven J. Finnegan, President
Controlsoft Corporation
Phone: (760) 747-5632
WebSite: www.controlsoftcorp.com
E-mail: sjf@controlsoftcorp.com

***************************************************************
Re: mpeg 2 playback glitches [ In reply to ]
On Thu, Jul 24, 2003 at 05:36:28PM -0700, Steven J. Finnegan wrote:
> What did you have to change to get two-PVR-250's to work?
> (I have a PVR-250 and a PVR-350 in the same backend.

Actually, the only change I have made was to significantly increase a
buffer size and number of mpg_buffers in ivtv.

Note: don't increase the buffer size. The ivtv developers say it will
crash when capturing raw video if the size is changed. I only capture
mpeg, so I don't care, but ymmv. To be safe, just increase your number
of buffers using the instructions below. If you still want to mess with
dma_buffer_size, look in ivtv.h for "#define IVTV_DMA_BUF_SIZE". The
comment shows two values. Change to the bigger number, recompile,
install.

I increased the maximum number of buffers (it's just a check at load time)
available. You can have up to 100 by default (you add an option in
modules.conf):

options ivtv mpg_buffers=100

but with two cards I needed more to prevent the "Not enough free buffers"
messages. Look for this line in ivtv-driver.c:

if ((mpg_buffers > 100) || (mpg_buffers < 15)) {

and change the 100 to a bigger number. Recompile and install. Then change
modules.conf to use the new number. I suspect 128 would be enough, but
again, ymmv.

----

Now, if I can just get someone to answer how to set options on the card(s)
at capture time (in myth), I'll be totally set (how do I set hue,
brightness, contrast, etc. on the card before each capture?).

Enjoy!

Russ
Re: Re: mpeg 2 playback glitches [ In reply to ]
On Friday 25 July 2003 11:06 am, Russ Southern wrote:
> Now, if I can just get someone to answer how to set options on the card(s)
> at capture time (in myth), I'll be totally set (how do I set hue,
> brightness, contrast, etc. on the card before each capture?).

picture controls (hue, constrast, brightness, color) are all set on a
per-channel basis, and are stored in the channels table (fixed scale of
0-65535, translated into the actual scale when they're actually set).

The other controls (mpeg settings, etc) are waiting on me or someone else to
get around to a better recording profile system that handles different types
of cards better.

Isaac
_______________________________________________
mythtv-users mailing list
mythtv-users@snowman.net
http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
Re: Re: mpeg 2 playback glitches [ In reply to ]
On Fri, Jul 25, 2003 at 11:13:07AM -0400, Isaac Richards wrote:
> On Friday 25 July 2003 11:06 am, Russ Southern wrote:
> > Now, if I can just get someone to answer how to set options on the card(s)
> > at capture time (in myth), I'll be totally set (how do I set hue,
> > brightness, contrast, etc. on the card before each capture?).
>
> picture controls (hue, constrast, brightness, color) are all set on a
> per-channel basis, and are stored in the channels table (fixed scale of
> 0-65535, translated into the actual scale when they're actually set).

Ah, I see. So, having watched live tv and set options on that channel, it
will automagically keep that when recording later? Nice. Thank you (even
if it isn't automagic, I can set all the channels anyway).

> The other controls (mpeg settings, etc) are waiting on me or someone else to
> get around to a better recording profile system that handles different types
> of cards better.

I'd love to contribute, but probably need a less ambitious starting point.
I know this topic came up recently, but do you have any TODO suggestions?

Russ