Hi, I'm new here. I would like to write 2 simple utilities to maniputale OGG files: 1) oggjoin --output-file=result.ogg file1.ogg file2.ogg ... Merge file1, file2, ... into result.ogg file 2) oggpause --output-file=result.ogg --duration=0.5 Generate result.ogg with silence for 0.5 seconds oggpause --output-file=result.ogg --input-file=source.ogg Generate result.ogg with silence equal to the play time of source.ogg Can someone, please, point me out in the right direction. Which library(-ies) should I use? Are there any examples on how to process OGG file header/streams? Perhaps there are utilities similar to what I need already written somewhere out there. I'd love to cut-n-paste. thanks, --Vlad P.S. This is for my little app (gwavmerger.sourceforge.net). I would like to support ogg file format. ______________________________________________________ Vladislav Grinchenko e-mail (w): vgrinche@integ.com Software Engineer (h): 3rdshift@comcast.net Integral Systems, Inc. Focus on quality, and productivity will follow. ______________________________________________________
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 fileTry 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 > > oggpause --output-file=result.ogg --input-file=source.ogg > > Generate result.ogg with silence equal to the play time > of source.ogg > > > Can someone, please, point me out in the right direction. > > Which library(-ies) should I use? > Are there any examples on how to process OGG file header/streams? > Perhaps there are utilities similar to what I need already > written somewhere out there. I'd love to cut-n-paste.libvorbisenc or just oggenc getting passed the right number of 0's as far as I know nobody has written an app that fills this nich
<20040623013832.GY9120@xiph.org> Message-ID: <20040623024419.GB25360@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 secondssox -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.oggCrude 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@zetnet.net> (work) <pm@nowster.zetnet.co.uk> (home)