Displaying 1 result from an estimated 1 matches for "m_oggfil".
Did you mean:
m_oggfile
2008 Nov 30
1
ogg_stream_pageout function...
...ra_encode_YUVin(&m_encoder, &m_buffer);
while(theora_encode_packetout(&m_encoder, isLastFrame, &packet))
ogg_stream_packetin(&m_oggStream, &packet);
while (ogg_stream_pageout(&m_oggStream, &page))
{
fwrite(page.header,page.header_len, 1, m_oggFile);
fwrite(page.body,page.body_len, 1, m_oggFile);
}
This piece of code runs in real-time. I want to remove the last while block
and save theora packets directly to a temporary file. Then when capture is
finished I read packets from temp file and send them to ogg_stream_pageout.
Does th...