public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Roberto Ragusa <mail@robertoragusa.it>
To: linux-media@vger.kernel.org
Subject: Re: DVB TS/PES filters
Date: Fri, 03 Feb 2012 11:20:58 +0100	[thread overview]
Message-ID: <4F2BB50A.8080104@robertoragusa.it> (raw)
In-Reply-To: <20120126154015.01eb2c18@tiber>

On 01/26/2012 04:40 PM, Tony Houghton wrote:
> I could do with a little more information about DMX_SET_PES_FILTER.
> Specifically I want to use an output type of DMX_OUT_TS_TAP. I believe
> there's a limit on how many filters can be set, but I don't know whether
> the kernel imposes such a limit or whether it depends on the hardware,
> If the latter, how can I read the limit?
> 
> I looked at the code for GStreamer's dvbsrc and that defines a limit of
> 32 filters. It also implies that using the "magic number" 8192 as the
> pid requests the entire stream.
> 
> I can't find information about these things in the API docs. Is there
> somewhere I can get more details.
> 
> If I ended up wanting enough pids to exceed the limit would it work to
> allow LIMIT - 1 individual pid filters to be set, then after that set
> one for 8192 instead and clear all the others?

It has been a long time since I touched this, anyway...

Yes 8192 is "all PIDs"; this has to be supported by the hardware, which
usually does. All the packets go to the userspace process.

If you ask filters, the kernel uses the HW filters if available/enough,
otherwise it switches to software filtering at the kernel level. Your application
sees only the packets it asked, but the kernel may be getting everything
and filtering itself; this can have some performance implication on slow
(USB) buses.

I suggest you to experiment a little to discover if I said something wrong
and if your hardware (driver) behaves as I said.


-- 
   Roberto Ragusa    mail at robertoragusa.it

      parent reply	other threads:[~2012-02-03 10:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-26 15:40 DVB TS/PES filters Tony Houghton
2012-02-01 13:32 ` Tony Houghton
2012-02-01 17:40   ` Lars Hanisch
2012-02-02 19:04     ` Tony Houghton
2012-02-02 22:35       ` Malcolm Priestley
2012-02-03 10:20 ` Roberto Ragusa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F2BB50A.8080104@robertoragusa.it \
    --to=mail@robertoragusa.it \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox