[ogg-dev] Fixing ogg vorbis corruption caused by bad metadata

Adam Rosi-Kessel adam at rosi-kessel.org
Thu Jun 18 07:21:02 PDT 2009

On Thu, Jun 18, 2009 at 11:12:30PM +0900, Conrad Parker wrote:
> > [etc, same through packetno 16]
> >
> > 00:00:00.460: serialno 1225743615, calc. gpos 20288, packetno 17: 448 bytes
> >
> > [real data here]
> yow, that's pretty badly corrupted, the vorbis codebooks (usually the
> third packet) is completely gone. It looks like you'd need to throw
> away the first 16 packets, start with fresh headers, and copy in the
> rest of the data (packet by packet, or page by page?)

Maybe the metadata writer somehow spilled over the second packet into the
third? In any case, is this something I can do myself -- insert fresh
headers, and then start with packetno 17? I tried doing this with the
oggz-dump trick, and the resulting file validated but wouldn't play. I
tried running the resulting file through the various other tools
(oggz-sort, hogg reconstruct) with no luck.


More information about the ogg-dev mailing list