[Vorbis] Q: merging ogg files

Guentcho Skordev ut13 at rz.uni-karlsruhe.de
Sun Oct 17 10:30:01 PDT 2004


Hello,

I have read that one can merge OGG Vorbis files by simple concatenation. I
have tried this with two files produced by "rec". However, the resuting file
confuses xmms when I scroll and plays sometimes the first and sometimes the
second part (xmms also shows the wrong file length, 14:29, the same length
as the second file; first was 4:33).

Here is what ogginfo says about this file:

|  Processing file "joined.ogg"...
|  
|  New logical stream (#1, serial: 6b8b4567): type vorbis
|  Vorbis headers parsed for stream 1, information follows...
|  Version: 0
|  Vendor: Xiph.Org libVorbis I 20030909 (1.0.1)
|  Channels: 1
|  Rate: 22050
|  
|  Nominal bitrate: 40,222000 kb/s
|  Upper bitrate not set
|  Lower bitrate not set
|  User comments section follows...
|  	COMMENT=/dev/dsp
|  Vorbis stream 1:
|  	Total data length: 1610821 bytes
|  	Playback length: 4m:33.066s
|  	Average bitrate: 47,192021 kbps
|  Logical stream 1 ended
|  Warning: illegally placed page(s) for logical stream 1
|  This indicates a corrupt ogg file: Page found for stream after EOS flag.
|  Warning: sequence number gap in stream 1. Got page 1 when expecting page 384. Indicates missing data.

Is this file broken? Is the problem in the original files? Does
concatenation always work?

(And what happens with files with different sample rates/bitrates)?

Bye,
Guentcho


More information about the Vorbis mailing list