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. Regards, Salsaman. http://lives.sourceforge.net https://www.ohloh.net/accounts/salsaman -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20100417/2dce9867/attachment.htm
Timothy B. Terriberry
2010-Apr-18 01:01 UTC
[theora-dev] How to encode with frame offset ?
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).