Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: TS payload extraction?
Andy Coates wrote:
>
> Is there a way with a full-featured card to just read the payload
> only from one of the devices (dvr?)
>
> At the moment I'm using:
>
> pesFilterParams.pid = pid;
> pesFilterParams.input = DMX_IN_FRONTEND;
> pesFilterParams.output = DMX_OUT_TS_TAP;
> pesFilterParams.pes_type = pestype; // this is currently DMX_PES_OTHER
> pesFilterParams.flags = DMX_IMMEDIATE_START;
>
> And that gives me a TS stream containing the pid I've set.
>
> Is there a way for the drivers to do all the work and just give me
> the payload data?
For PES data use:
pesFilterParams.output = DMX_OUT_TAP;
and read from the demux device (not the dvr device). You will then get
PES packets, but the reads are not aligned -- you have to search for the
start of the first PES packet manually.
Johannes
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index