Re: Video encoded using libtheora-1.1.1 and libogg-1.1.4 plays too fast...
"Timothy B. Terriberry" <[email protected]> Thu, 11 Feb 2010 02:06:26 -0500
| Newsgroups | gmane.comp.multimedia.ogg.theora.devel |
|---|---|
| Message-ID | <[email protected]> |
You seem to be assuming a one-to-one correspondence between packets and pages. This is not correct. A packet can span any number of pages (and usually does for keyframes), and a page may contain all or part of multiple packets (as it usually does when you encode the same frame 300 times, as most of these frames will be very small). You need to write out pages in a loop so long as there are pages ready to be written, instead of just writing 0 or 1 pages after each packet.