Mailing List archive

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

[linux-dvb] Re: V4 API proposal



Johannes Stezenbach writes:

 > Currently the API makes no guarantee on data alignment when you read()
 > PES data from the demux. For sections, it is guaranteed that each read()
 > wil get exactly one section with the start of the section at the start
 > of the buffer, provided the buffer is large enough. If the buffer is too
 > small, consecutive read()s will get the remainder of the section.
 > 
 > We could try to do the same for PES filters, or shouldn't we?
 > 

There are various problems with that.

1) You don't know how long a video PES will be when it starts.
2) There is no maximum size for video PES.
3) The TS is usually not muxed on the PES level, at least from my
   experience.

This will lead to much larger problems than finding a PES header.

Marcus

-- 
/--------------------------------------------------------------------\
| Dr. Marcus O.C. Metzler        |                                   |
|--------------------------------|-----------------------------------|
| mocm@metzlerbros.de            | http://www.metzlerbros.de/        |
\--------------------------------------------------------------------/





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



Home | Main Index | Thread Index