I have encoded successfully a YUV stream by using the encoder_example. Can We encode a row stream (get from a web cam) by using encoder_example. If we can not, is there any other way to encode a row stream by using theora codec. -- Nuwan Millawitiya -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20080116/473c9488/attachment.htm
On Jan 16, 2008 2:36 AM, Nuwan Millawitiya <millawitiya@gmail.com> wrote:> I have encoded successfully a YUV stream by using the encoder_example. Can > We encode a row stream (get from a web cam) by using encoder_example. > If we can not, is there any other way to encode a row stream by using theora > codec.Yes, the encoder_example is a streaming encoder. However, when encoding audio and video into one stream, it will pull from the audio or video stream depending on what it needs now. If you want to feed it audio, but it wants more video (and vice versa) you could deadlock. Keep that in mind. Monty
Oh, and please keep discussions on the list (assuming they're not confidential). Replying only to me directly runs the risk of me not getting around to answering mail for weeks. Monty ---------- Forwarded message ---------- From: <xiphmont@xiph.org> Date: Jan 17, 2008 8:07 AM Subject: Re: [theora-dev] Encoding with encoder_example To: Nuwan Millawitiya <millawitiya@gmail.com> On Jan 16, 2008 11:32 PM, Nuwan Millawitiya <millawitiya@gmail.com> wrote:> But encoder_example have mentioned that it can convert only yuv streams.Specifically, it only parses 'YUV4MPEG2' style streams, a popular format for unix video manipulation tools. The libtheora video submission call wants raw YUV in 4:2:0 format.> Do I have to implement a new function for encode row stream such as > fetch_and_process_video function for yuv streams.No, you need to convert your video input to YUV for the input. Theora internally natively represents video in YUV. At some point, somewhere, there needs to be a conversion to YUV. Monty