From: Christophe Thommeret <hftom@free.fr>
To: linux-dvb@linuxtv.org, linux-media@vger.kernel.org
Subject: Re: [linux-dvb] How to create a filter which can filte a whole packet(188 byte with 0x47)
Date: Thu, 5 Nov 2009 14:47:36 +0100 [thread overview]
Message-ID: <200911051447.36377.hftom@free.fr> (raw)
In-Reply-To: <25694071.578071257426933010.JavaMail.coremail@app179.163.com>
Le jeudi 5 novembre 2009 14:15:33, wdy9927 a écrit :
> it seems like the sec_filter and the pes_filter cann't do that.
> is there other ways?
>
This should do what you want:
struct dmx_pes_filter_params pesFilterParams;
dmx_pes_type_t pestype = DMX_PES_OTHER;
int dmx = open("/dev/dvb/adapter0/demux0", O_RDWR | O_NONBLOCK );
pesFilterParams.pid = pid;
pesFilterParams.input = DMX_IN_FRONTEND;
pesFilterParams.output = DMX_OUT_TAP;
pesFilterParams.pes_type = pestype;
pesFilterParams.flags = DMX_IMMEDIATE_START;
ioctl( dmx, DMX_SET_PES_FILTER, &pesFilterParams);
--
Christophe Thommeret
prev parent reply other threads:[~2009-11-05 13:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-05 13:15 [linux-dvb] How to create a filter which can filte a whole packet(188 byte with 0x47) wdy9927
2009-11-05 13:47 ` Christophe Thommeret [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=200911051447.36377.hftom@free.fr \
--to=hftom@free.fr \
--cc=linux-dvb@linuxtv.org \
--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