[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec oggvorbis.c,1.20,1.21
Rich Felker
dalias
Sun Sep 4 03:41:56 CEST 2005
On Sat, Sep 03, 2005 at 08:24:52PM -0400, Justin Ruggles wrote:
> Hey,
>
> Rich Felker wrote:
> > What does granule position have to do with this? It's vorbis, not ogg..
>
> The vorbis encoder actually produces ogg packets, then strips the vorbis
> packets from them to pass to the muxer. The vorbis encoder stores the
Uhg!!
> granule position from the ogg packets received by libvorbis to the
> vorbis frame->pts field. The granulepos is given in samples. From what
Then how the hell do we get pts for any packets except the first/last
one in a page?
> So, you are right that the ogg issue is somewhat separate. But if
> vorbis doesn't set the codec time_base to the samplerate, the ogg
> encoder should be modified to not scale the pkt->pts so it gives correct
> output. Or maybe scale it by the actual codec time_base instead of
> assuming it's 1/samplerate.
Now I'm really confused what you mean..
Rich
More information about the ffmpeg-cvslog
mailing list