[theora-dev] How to encode with frame offset ?
Timothy B. Terriberry
tterribe at email.unc.edu
Sat Apr 17 18:01:36 PDT 2010
salsaman <salsaman at gmail.com> wrote:
> Hi all,
> looking at the theora spec, it says that it is possible to encode a video
> with a frame offset for the actual image. How is it possible to do that ? I
> don't see any option for it in the encoder_example.
encoder_example does not provide user-visible options to select the
frame offset, but in the (1.0 and later) libtheora API, you can do
this by specifying the pic_x, pic_y, pic_width, and pic_height fields
in the th_info struct when you create the encoder. encoder_example
actually uses these fields to center the picture in the frame when the
picture is not a multiple of 16 (since the frame must be a multiple of
16).
More information about the theora-dev
mailing list