[Theora] encoder settings

Karol Bryd karolbe at gmail.com
Thu Sep 8 03:24:09 PDT 2005

On 9/8/05, Thomas Vander Stichele <thomas at apestaart.org> wrote:
> I'd have to look again at what we did (it wasn't necessarily all a
> conscious decision, I sure didn't look at the resulting stream the way
> you did, thanks for that info), but IIRC we added a property to our ogg
> muxer that allows it to flush out a page more frequently.  You should be
> able to do the same thing by flushing using ogg_page_flush IIRC.  In
> your case (if you really want the frame to be sent out as quickly as
> possible) you could even ogg_page_flush after every video frame you
> submit to the theora encoder.  Take into account that you are adding
> extra overhead to the stream in that case, but it seems warranted from
> what little I'm guessing about your application.

You're right. I have just replaced the ogg_stream_packeout to ogg_stream_flush
and bingo! It works great :)  Thanks for the answer!

Fotografia przyrodnicza i nie tylko

"Jakże często szczęście bywa zaprzepaszczone przez zbyt długie
przygotowania - głupie przygotowania!" - J. Austin

More information about the Theora mailing list