Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: Data returned by read() when doing PES filtering



Holger Waechtler wrote:
> James Green wrote:
> >
> >I think all I need to do is read blocks of data from demux0, prepend each
> >block with a PES header, and write it to my output file. I tried doing
> >this by hand, and also using the mpegtools library.

See apps/test/test_tt.c for a useful example (the reverse stuff is only
for teletext/VBI data).

> The data you get is just the PES payload including the header.
> Unfortunally PES packets can get arbitrary long, thus you have to search 
> manually in your application for the start bytes.

I think only video PES can have a lenght > 0xffff.

Johannes


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index