Hello. I use ogg to play video with theora/vorbis bitstream. But if have high bitrate 10-15 megabit/sec is problem. Distance between audio and video data put together 4-5 megabytes. New data accomulate in ogg_stream_state use ogg_stream_pagein. ogg_stream_state.body_storage come to 4-5 megabytes _os_body_expand is very slow. Problem is in string: os->body_storage+=(needed+1024); all time spent in _ogg_realloc. What is my mistake? PS: I use latest version (libogg-1.1.3) -- Poskryakov Dmitry Balmer Programmer KranX Productions
> New data accomulate in ogg_stream_state use ogg_stream_pagein.Check that the pages are increasing in timestamps (eg, run oggz-validate from oggz-tools, from www.annodex.net). Check that you're not pulling only one packet per page (eg, loop over packetout and not adding new data from the framer when you still have data to build packets from).