[Ffmpeg-devel] ogg vorbis encode?

Alexander Strasser eclipse7
Sun Aug 14 15:17:16 CEST 2005


Alexander Strasser wrote:
[...]
> > > vorbis in ogg encoding did work fine in the past, but indeed it seems broken
> > > currently, i dont know why
> > 
> > It's because the encoder was fixed to output its headers as extradata
> > rather than (incorrectly) as audio frames, but the ogg muxer has not
> > been fixed to convert them back to packets for the broken ogg header
> > format.. At least that's my guess.
> 
>   I looked into this last night and it seems Rich is right.
> The encoding of vorbis extra data was changed recently. But
> the ogg writer wasn't updated and expects the old extradata.
>   When i extract the vorbis headers from extradata like in
> vorbis.c (in case of the new extradata encoding) then it seems
> to work correctly.
> 
>   Patch attached, tho i am sure it may not be the best solution.

  Hmm, it wouldn't work when copying some combinations that
used the old extradata format for vorbis storage, wouldn't it?

  So maybe it is best to support the old and the new format here too?

  Alex (beastd)





More information about the ffmpeg-devel mailing list