[theora] encoding image from a webcam

Ralph Giles giles at thaumas.net
Wed Nov 25 14:30:17 PST 2009


2009/11/25 Mircea Gliga <mgliga at integrasoft.ro>:

> [...] Then I allocate a th_enc_ctx handle and repeatedly call
> th_encode_flushheader().
> Do I have to save this header packets? Do i have to provide this header
> packets to the decoder when I
> initialize it? Because the documentation says Parse the header packets by
> repeatedly calling
> th_decode_headerin().

Yes, you have to pass the headers into the decoder to configure it to
correctly parse the data packets.

 -r


More information about the theora mailing list