This is a controlled environment so I'm shure that my TS has only one
video and one audio stream.
I'd like to get the size of the video unit while parsing the PES at
the beginning so I can allocate a buffer with the correct size and
later when I find the next PES pass it to the decoder.

On Fri, Jun 18, 2010 at 4:05 AM, Mike Scheutzow <[email protected]> wrote:
> Matteo Mandelli wrote:
>>
>> I've got an h264 video into a transport stream container.
>> The PES_packet_length is 0, "unbounded packet".
>>
>> I can find out all the info I need from parsing the h264 bitstream but
>> not the size of the Video Unit...
>>
>> Do I need to parse the TS until I find the next PES to find out the
>> unit size
>
> Yes.
> You don't explain why you want this particular piece of data. Nearly all
> applications find it more useful to extract individual compressed pictures.
> You are aware that a PES Packet might contain multiple pictures, right?
>
> --
> Mike Scheutzow
>
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to