[Vorbis-dev] Oggz use
Conrad Parker
conrad at metadecks.org
Wed Aug 12 08:21:14 PDT 2009
2009/8/12 Paul BOUTIN <p.boutin at logosapience.fr>:
> Hi there,
>
> First of all, sorry for my English I'm not a native english speaker.
>
> I need to develop and application witch does 3 tasks with oggs files :
> 1/ chain 2 ogg files
> 2/ extract a part from an ogg file
> 3/ add silence between two chained oggs files.
>
> Basically,
> - For the 1st task, I think that the best way to chain ogg files is to use
> the "cat" (on linux) or "copy /b" (on windows) command.
> - For the 2nd one I found the tools oggz and "oggz-chop" command does it.
good :)
> - For the last task I'm trying to use the liboggz 0.9.9 Write API.
> ...
> I retrieve a new ogg file final.ogg but I can't read it.
> If I do an ogg-z validate I have : Terminal header page has non-zero
> granulepos
>
> I got 2 questions :
> 1. Am I doing something wrong about the 1st 2 tasks
concatenating and using oggz-chop are good.
If it's a single vorbis audio stream then there is also a tool called
vcut which would give more accuracy than oggz-chop.
> 2. any help about task 3 would be appreciated ! (Explanations, solution or
> lead)
The code you posted just creates empty packets. You really need to
create actual audio that just happens to be silent -- eg. create a
silent wav file of the desired length, then encode that.
Conrad.
More information about the Vorbis-dev
mailing list