[Vorbis] Fixing corrupted ogg files

Adam Rosi-Kessel adam at rosi-kessel.org
Mon Mar 23 10:16:44 PDT 2009


Ivo Emanuel Gonçalves wrote, on 3/23/2009 12:59 PM:

> Use oggz-sort from the liboggz package.
(just BTW, in Debian, these commands are in the oggz-tools package)

The result is still corrupted -- although the errors are slightly 
different. Although oddly, oggz-validate gives no errors on either the 
source or target file.

# oggz-sort input.ogg -o fixed.ogg

# ogginfo input.ogg |head -5

Processing file "input.ogg"...

New logical stream (#1, serial: 3ab6a24e): type vorbis
Warning: Hole in data (18000 bytes) found at approximate offset 
598803103457738752 bytes. Corrupted ogg.
Warning: Hole in data (22500 bytes) found at approximate offset 
598803103457738752 bytes. Corrupted ogg.

# ogginfo fixed.ogg |head -5

Processing file "fixed.ogg"...

New logical stream (#1, serial: 3ab6a24e): type vorbis
Warning: sequence number gap in stream 1. Got page 4 when expecting page 
1. Indicates missing data.
Warning: discontinuity in stream (1)
Warning: Could not decode vorbis header packet 1 - invalid vorbis stream (1)
Warning: Could not decode vorbis header packet 1 - invalid vorbis stream (1)

Anything else I might try?


More information about the Vorbis mailing list