Linux Media Controller development
 help / color / mirror / Atom feed
* [linux-dvb] How to create a filter which can filte a whole packet(188 byte with 0x47)
@ 2009-11-05 13:15 wdy9927
  2009-11-05 13:47 ` Christophe Thommeret
  0 siblings, 1 reply; 2+ messages in thread
From: wdy9927 @ 2009-11-05 13:15 UTC (permalink / raw)
  To: linux-dvb


[-- Attachment #1.1: Type: text/plain, Size: 88 bytes --]

it seems like the sec_filter and the pes_filter cann't do that.
is there other ways?


 

[-- Attachment #1.2: Type: text/html, Size: 374 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead linux-media@vger.kernel.org
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-dvb] How to create a filter which can filte a whole packet(188 byte with 0x47)
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Thommeret @ 2009-11-05 13:47 UTC (permalink / raw)
  To: linux-dvb, linux-media

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-05 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox