Skip to contentSkip to conversation

How to create a filter which can filte a whole packet(188 byte with 0x47)

linux-dvb wdy9927 2 participants 2 messages Nov 5, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#1 lore raw
Quoted 3 lines · 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);

Signature · 1 line
Christophe Thommeret