[Vorbis] Q: merging ogg files

Paul Martin pm
Tue Jun 22 19:44:19 PDT 2004


<20040623013832.GY9120 at xiph.org>
Message-ID: <20040623024419.GB25360 at nowster.zetnet.co.uk>

On Tue, Jun 22, 2004 at 06:38:32PM -0700, Arc Riley wrote:
> On Tue, Jun 22, 2004 at 04:32:16PM -0400, Vladislav Grinchenko wrote:
> >
> > 1) oggjoin --output-file=result.ogg file1.ogg file2.ogg ...
> >
> >    Merge file1, file2, ... into result.ogg file
>
> Try cat >outputfile.ogg file1.ogg file2.ogg file3.ogg (etc)
>
> > 2) oggpause --output-file=result.ogg --duration=0.5
> >
> >    Generate result.ogg with silence for 0.5 seconds

sox -r 44100 -c 2 -t sw /dev/zero result.ogg trim 0 0.5

> >    oggpause --output-file=result.ogg --input-file=source.ogg
> >
> >    Generate result.ogg with silence equal to the play time
> >    of source.ogg

Crude way:

sox source.ogg -v 0 -t .aiff - | sox -t .aiff - result.ogg

(sox segfaults if source and destination are both vorbis files)

--
Paul Martin <pm at zetnet.net> (work)
<pm at nowster.zetnet.co.uk> (home)


More information about the Vorbis mailing list