The HOgg package provides a commandline tool for manipulating Ogg files and a Haskell library implementing Codec.Container.Ogg.
It supports chained and multiplexed Ogg bitstreams conformant with RFC3533, can parse headers for CELT, CMML, FLAC, OggPCM, Speex, Theora and Vorbis, and can read and write Ogg Skeleton bitstreams.
The commandline tool hogg can be used for inspecting, editing and fixing improperly multiplexed Ogg files.
These details are provided for information only. No information here is legal advice and should not be used as such.