[x264-devel] Finding access units with intra-refresh

Jason Garrett-Glaser jason at x264.com
Wed Oct 24 00:52:07 CEST 2012


On Tue, Oct 23, 2012 at 3:41 PM, Tim Pitman <tapitman11 at gmail.com> wrote:
> I'm encoding a low latency stream using x264 with intra-refresh and
> decoding using libavcodec. I'm trying to understand the best way to
> pass data to libavcodec because it's giving me some error messages
> ("no frame", etc), even though the stream mostly plays ok. I thought
> that I was passing it one NALU at a time, but it turns out I was only
> passing it all the data between consecutive SPS and PPS. So it seems
> like the  most correct thing to do is get one complete frame and then
> hand that to libavcodec.
>
> My question is how do I find the beginning of a frame? From the spec I
> was hoping to find access unit codes in the headers but I'm not seeing
> any in my test stream. Would intra-refresh have any impact on this?

--aud will add access unit delimiters, but you can also look at the
POC in the slice headers.  Intra refresh isn't related.

Jason


More information about the x264-devel mailing list