[ogg-dev] How to fix broken ogg/theora files

Oliver Frommel ofrommel at linuxnewmedia.de
Thu Nov 13 04:30:57 PST 2008


>>
>> Examples of error messages follow:
>> $ oggz-validate jnazario.ogg
>> jnazario.ogg: Error:
>> 00:55:27.957: serialno 0846930886: Packet out of order (previous
>> 00:55:27.960)
>> 01:05:09.077: serialno 0846930886: Packet out of order (previous
>> 01:05:09.080)
>>
>> Are there any tools that can reliably fix broken Ogg/Theora files?
>> What's to be done to create such a tool if there is none yet?
> 
> 
> for that particular error (packets out of order), oggz-sort should be
> able to fix the files for you.
> 

Thanks for the suggestion. Unfortunately it did not help completely.
When we edit the original file with oggCut and then use oggz-validate we
get an error message like the one posted before. Now oggz-sort will fix
the file so oggz-validate doesn't find any errors. However ffmpeg still
produces and error with it:

ffmpeg -i rlang.ogg -ab 56 -ar 22050 -acodec libmp3lame  rlang.flv

[vorbis @ 0x880dbb0]Not a Vorbis I audio packet.
[vorbis @ 0x880dbb0]Not a Vorbis I audio packet.
[vorbis @ 0x880dbb0]Not a Vorbis I audio packet.
[theora @ 0x87fd4f0]Header packet passed to frame decoder, skipping
Error while decoding stream #0.0
[theora @ 0x87fd4f0]Header packet passed to frame decoder, skipping
Error while decoding stream #0.0
[theora @ 0x87fd4f0]Header packet passed to frame decoder, skipping
Error while decoding stream #0.0
[theora @ 0x87fd4f0]Header packet passed to frame decoder, skipping
Error while decoding stream #0.0
[theora @ 0x87fd4f0]Warning, unsupported keyframe coding type?!
[theora @ 0x87fd4f0]Header packet passed to frame decoder, skipping
Error while decoding stream #0.0
Segmentation fault

This is the same error we had before fixing the file with oggz-sort
Any other suggestions?

Best
Oliver



More information about the ogg-dev mailing list