How to create a filter which can filte a whole packet(188 byte with 0x47)
it seems like the sec_filter and the pes_filter cann't do that. is there other ways?
_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Quoted 3 lines · Le jeudi 5 novembre 2009 14:15:33, wdy9927 a écrit :
it seems like the
sec_filterand thepes_filtercann'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