Re: [Libav-user] how to obtain sps and pps

2011-11-15 Thread Alex Cohn
On Wed, Nov 16, 2011 at 02:43, Yingzhou Zhang wrote: > Hey guys,here is one simple question: how do I obtain sps and pps from H264 > stream(over RTP).I know through header & 0x1f==7 || header & 0x1f ==8 to > determine them,but what about their length? As any other NAL unit, the size is either par

[Libav-user] how to obtain sps and pps

2011-11-15 Thread Yingzhou Zhang
Hey guys,here is one simple question: how do I obtain sps and pps from H264 stream(over RTP).I know through header & 0x1f==7 || header & 0x1f ==8 to determine them,but what about their length? Plus how to use them to "init" decoder? I have been googled around,got a little confused,thanks for your